aeb-ui-kit 9.1.0-preview.1107 → 9.1.0-preview.1120
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/fesm2022/aeb-ui-kit.mjs +291 -566
- package/fesm2022/aeb-ui-kit.mjs.map +1 -1
- package/index.d.ts +98 -192
- package/package.json +1 -1
package/fesm2022/aeb-ui-kit.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { ViewChild, Input, ViewEncapsulation, Component, NgModule, HostBinding, Directive, inject, ElementRef, HostListener, ContentChild, ChangeDetectionStrategy, Renderer2, EventEmitter, forwardRef, Output, ComponentFactoryResolver, Injector, ApplicationRef, RendererFactory2, Injectable, NgZone, Pipe, LOCALE_ID, ChangeDetectorRef,
|
|
2
|
+
import { ViewChild, Input, ViewEncapsulation, Component, NgModule, HostBinding, Directive, inject, ElementRef, HostListener, ContentChild, ChangeDetectionStrategy, Renderer2, EventEmitter, forwardRef, Output, ComponentFactoryResolver, Injector, ApplicationRef, RendererFactory2, Injectable, NgZone, Pipe, LOCALE_ID, ChangeDetectorRef, input, output, computed, signal, effect, ContentChildren, TemplateRef, ViewChildren } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
4
|
import { CommonModule, DOCUMENT, formatDate, formatNumber } from '@angular/common';
|
|
5
5
|
import * as i3 from '@angular/forms';
|
|
6
|
-
import { NG_VALUE_ACCESSOR,
|
|
7
|
-
import { Subject, timer, map, takeUntil, Subscription,
|
|
6
|
+
import { NG_VALUE_ACCESSOR, FormBuilder, FormControl, Validators, FormsModule, ReactiveFormsModule, NgControl } from '@angular/forms';
|
|
7
|
+
import { Subject, timer, map, takeUntil, Subscription, filter, fromEvent, debounce, debounceTime } from 'rxjs';
|
|
8
8
|
import { trigger, state, transition, style, animate } from '@angular/animations';
|
|
9
9
|
import { DomSanitizer } from '@angular/platform-browser';
|
|
10
10
|
import { addWeeks, addDays, isSameMonth, getWeeksInMonth, startOfMonth, startOfWeek, addMonths, subMonths, eachYearOfInterval, getYear, addYears, subYears, differenceInYears, startOfYear, isToday, isValid, isSameDay, getMonth, setMonth, areIntervalsOverlapping, startOfDay, endOfDay, parse, format, getDaysInMonth, isExists, compareAsc, getDate } from 'date-fns';
|
|
@@ -359,177 +359,58 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
359
359
|
args: ['class.aeb-checkbox--error']
|
|
360
360
|
}] } });
|
|
361
361
|
|
|
362
|
-
class CheckboxModule {
|
|
363
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: CheckboxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
364
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.2.4", ngImport: i0, type: CheckboxModule, declarations: [CheckboxComponent], imports: [CommonModule, FormsModule], exports: [CheckboxComponent] }); }
|
|
365
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: CheckboxModule, imports: [CommonModule, FormsModule] }); }
|
|
366
|
-
}
|
|
367
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: CheckboxModule, decorators: [{
|
|
368
|
-
type: NgModule,
|
|
369
|
-
args: [{
|
|
370
|
-
declarations: [CheckboxComponent],
|
|
371
|
-
imports: [CommonModule, FormsModule],
|
|
372
|
-
exports: [CheckboxComponent]
|
|
373
|
-
}]
|
|
374
|
-
}] });
|
|
375
|
-
|
|
376
|
-
class CheckboxOldComponent {
|
|
377
|
-
constructor() {
|
|
378
|
-
this.renderer = inject(Renderer2);
|
|
379
|
-
this.isChecked = false;
|
|
380
|
-
this.isDisabled = false;
|
|
381
|
-
this.isValid = true;
|
|
382
|
-
this.name = null;
|
|
383
|
-
// eslint-disable-next-line @angular-eslint/no-output-native
|
|
384
|
-
this.change = new EventEmitter();
|
|
385
|
-
this.checkBoxOldClass = true;
|
|
386
|
-
this._onChangeFn = () => { };
|
|
387
|
-
this._onTouched = () => { };
|
|
388
|
-
}
|
|
389
|
-
get checkboxOldChecked() {
|
|
390
|
-
return this.isChecked;
|
|
391
|
-
}
|
|
392
|
-
get checkboxOldDisabled() {
|
|
393
|
-
return this.isDisabled;
|
|
394
|
-
}
|
|
395
|
-
get checkboxOldError() {
|
|
396
|
-
return !this.isValid;
|
|
397
|
-
}
|
|
398
|
-
get checkboxOldCheckedDisabled() {
|
|
399
|
-
return this.isChecked && this.isDisabled;
|
|
400
|
-
}
|
|
401
|
-
handleChange(event) {
|
|
402
|
-
event.stopPropagation();
|
|
403
|
-
this.isChecked = !this.isChecked;
|
|
404
|
-
this._onTouched();
|
|
405
|
-
this._onChangeFn(this.isChecked);
|
|
406
|
-
this.change.emit(event.target.checked);
|
|
407
|
-
}
|
|
408
|
-
writeValue(value) {
|
|
409
|
-
if (value === null || value === '') {
|
|
410
|
-
return;
|
|
411
|
-
}
|
|
412
|
-
this.isChecked = !!value;
|
|
413
|
-
}
|
|
414
|
-
registerOnChange(fn) {
|
|
415
|
-
this._onChangeFn = fn;
|
|
416
|
-
}
|
|
417
|
-
registerOnTouched(fn) {
|
|
418
|
-
this._onTouched = fn;
|
|
419
|
-
}
|
|
420
|
-
setDisabledState(isDisabled) {
|
|
421
|
-
this.isDisabled = isDisabled;
|
|
422
|
-
this.renderer.setProperty(this.checkboxOldInput.nativeElement, 'disabled', isDisabled);
|
|
423
|
-
}
|
|
424
|
-
ngOnChanges(changes) {
|
|
425
|
-
if (changes.isChecked) {
|
|
426
|
-
this._onTouched();
|
|
427
|
-
this._onChangeFn(changes.isChecked.currentValue);
|
|
428
|
-
this.change.emit(changes.isChecked.currentValue);
|
|
429
|
-
}
|
|
430
|
-
}
|
|
431
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: CheckboxOldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
432
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.2.4", type: CheckboxOldComponent, isStandalone: false, selector: "aeb-checkbox-old", inputs: { id: "id", isChecked: "isChecked", isDisabled: "isDisabled", isValid: "isValid", name: "name" }, outputs: { change: "change" }, host: { properties: { "class.aeb-checkbox-old": "this.checkBoxOldClass", "class.aeb-checkbox-old-checked": "this.checkboxOldChecked", "class.aeb-checkbox-old-disabled": "this.checkboxOldDisabled", "class.aeb-checkbox-old-error": "this.checkboxOldError", "class.aeb-checkbox-old-checked-disabled": "this.checkboxOldCheckedDisabled" } }, providers: [
|
|
433
|
-
{
|
|
434
|
-
provide: NG_VALUE_ACCESSOR,
|
|
435
|
-
useExisting: forwardRef(() => CheckboxOldComponent),
|
|
436
|
-
multi: true
|
|
437
|
-
}
|
|
438
|
-
], viewQueries: [{ propertyName: "checkboxOldInput", first: true, predicate: ["checkbox-old"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: "<label [attr.for]=\"id\" class=\"aeb-checkbox-old-layout\">\n <div class=\"aeb-checkbox-old-container\">\n <input\n #checkboxOld\n type=\"checkbox-old\"\n [id]=\"id\"\n [attr.name]=\"name\"\n [checked]=\"isChecked\"\n [disabled]=\"isDisabled\"\n (click)=\"handleChange($event)\"\n hidden\n />\n <div class=\"aeb-checkbox-old-indicator\">\n <svg\n width=\"22\"\n height=\"22\"\n viewBox=\"0 0 22 22\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M9 16L4 11.1923L5.4 9.84615L9 13.3077L16.6 6L18 7.34615L9 16V16Z\"\n fill=\"#EEEEEE\"\n />\n </svg>\n </div>\n <div class=\"aeb-checkbox-old-label\">\n <ng-content />\n </div>\n </div>\n</label>\n", styles: [".aeb-checkbox-old-container{display:inline-flex;align-items:flex-start;justify-content:flex-start;cursor:pointer}.aeb-checkbox-old-layout{display:flex;color:var(--color-mono-900);-webkit-user-select:none;user-select:none}.aeb-checkbox-old-indicator{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:22px;height:22px;background-color:var(--color-mono-0);border:2px solid var(--color-mono-300);border-radius:4px}.aeb-checkbox-old-indicator>svg{opacity:0}@media (hover: hover){.aeb-checkbox-old-indicator:hover{border:2px solid var(--color-blue-600)}.aeb-checkbox-old-indicator:active{position:relative;padding:2px;background-image:var(--color-blue-700);border:none}.aeb-checkbox-old-indicator:active:before{position:absolute;top:2px;left:2px;z-index:0;width:18px;height:18px;content:\"\";background-color:#fff;border-radius:2px}}.aeb-checkbox-old-label{margin-top:1px;margin-left:12px;font-size:16px;font-style:normal;font-weight:400;line-height:22px;color:var(--color-mono-900);-webkit-user-select:none;user-select:none}.aeb-checkbox-old-checked .aeb-checkbox-old-indicator{background-color:var(--color-blue-500);border-color:var(--color-blue-500)}.aeb-checkbox-old-checked .aeb-checkbox-old-indicator>svg{opacity:1}@media (hover: hover){.aeb-checkbox-old-checked .aeb-checkbox-old-indicator:hover{background-color:var(--color-blue-600);border:2px solid var(--color-blue-600)}.aeb-checkbox-old-checked .aeb-checkbox-old-indicator:active{background-image:var(--color-blue-700)}.aeb-checkbox-old-checked .aeb-checkbox-old-indicator:active:hover{background-image:var(--color-blue-700);border:none}.aeb-checkbox-old-checked .aeb-checkbox-old-indicator:active:before{position:absolute;top:2px;left:2px;z-index:0;width:18px;height:18px;content:\"\";background-color:transparent;border-radius:2px}}.aeb-checkbox-old-disabled .aeb-checkbox-old-indicator{border:2px solid var(--color-mono-300)}@media (hover: hover){.aeb-checkbox-old-disabled .aeb-checkbox-old-indicator:hover{border:2px solid var(--color-mono-300)}.aeb-checkbox-old-disabled .aeb-checkbox-old-indicator:active{background:#fff!important;border:2px solid var(--color-mono-300)!important}.aeb-checkbox-old-disabled .aeb-checkbox-old-indicator:active:before{position:absolute;top:2px;left:2px;z-index:0;width:18px;height:18px;content:\"\";background-color:transparent;border-radius:2px}}.aeb-checkbox-old-disabled .aeb-checkbox-old-label{opacity:.6}.aeb-checkbox-old-checked-disabled .aeb-checkbox-old-indicator{background:var(--color-mono-300)}@media (hover: hover){.aeb-checkbox-old-checked-disabled .aeb-checkbox-old-indicator:hover{background:var(--color-mono-300)}.aeb-checkbox-old-checked-disabled .aeb-checkbox-old-indicator:active{background:var(--color-mono-300)!important;border:none!important}.aeb-checkbox-old-checked-disabled .aeb-checkbox-old-indicator:active:before{position:absolute;top:2px;left:2px;z-index:0;width:18px;height:18px;content:\"\";background-color:transparent;border-radius:2px}}.aeb-checkbox-old-error .aeb-checkbox-old-indicator{color:var(--color-red-500)!important;border-color:var(--color-red-500)!important}.aeb-checkbox-old-error .aeb-checkbox-old-label{color:var(--color-red-500)!important}\n"], encapsulation: i0.ViewEncapsulation.None }); }
|
|
439
|
-
}
|
|
440
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: CheckboxOldComponent, decorators: [{
|
|
441
|
-
type: Component,
|
|
442
|
-
args: [{ selector: 'aeb-checkbox-old', encapsulation: ViewEncapsulation.None, providers: [
|
|
443
|
-
{
|
|
444
|
-
provide: NG_VALUE_ACCESSOR,
|
|
445
|
-
useExisting: forwardRef(() => CheckboxOldComponent),
|
|
446
|
-
multi: true
|
|
447
|
-
}
|
|
448
|
-
], standalone: false, template: "<label [attr.for]=\"id\" class=\"aeb-checkbox-old-layout\">\n <div class=\"aeb-checkbox-old-container\">\n <input\n #checkboxOld\n type=\"checkbox-old\"\n [id]=\"id\"\n [attr.name]=\"name\"\n [checked]=\"isChecked\"\n [disabled]=\"isDisabled\"\n (click)=\"handleChange($event)\"\n hidden\n />\n <div class=\"aeb-checkbox-old-indicator\">\n <svg\n width=\"22\"\n height=\"22\"\n viewBox=\"0 0 22 22\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M9 16L4 11.1923L5.4 9.84615L9 13.3077L16.6 6L18 7.34615L9 16V16Z\"\n fill=\"#EEEEEE\"\n />\n </svg>\n </div>\n <div class=\"aeb-checkbox-old-label\">\n <ng-content />\n </div>\n </div>\n</label>\n", styles: [".aeb-checkbox-old-container{display:inline-flex;align-items:flex-start;justify-content:flex-start;cursor:pointer}.aeb-checkbox-old-layout{display:flex;color:var(--color-mono-900);-webkit-user-select:none;user-select:none}.aeb-checkbox-old-indicator{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:22px;height:22px;background-color:var(--color-mono-0);border:2px solid var(--color-mono-300);border-radius:4px}.aeb-checkbox-old-indicator>svg{opacity:0}@media (hover: hover){.aeb-checkbox-old-indicator:hover{border:2px solid var(--color-blue-600)}.aeb-checkbox-old-indicator:active{position:relative;padding:2px;background-image:var(--color-blue-700);border:none}.aeb-checkbox-old-indicator:active:before{position:absolute;top:2px;left:2px;z-index:0;width:18px;height:18px;content:\"\";background-color:#fff;border-radius:2px}}.aeb-checkbox-old-label{margin-top:1px;margin-left:12px;font-size:16px;font-style:normal;font-weight:400;line-height:22px;color:var(--color-mono-900);-webkit-user-select:none;user-select:none}.aeb-checkbox-old-checked .aeb-checkbox-old-indicator{background-color:var(--color-blue-500);border-color:var(--color-blue-500)}.aeb-checkbox-old-checked .aeb-checkbox-old-indicator>svg{opacity:1}@media (hover: hover){.aeb-checkbox-old-checked .aeb-checkbox-old-indicator:hover{background-color:var(--color-blue-600);border:2px solid var(--color-blue-600)}.aeb-checkbox-old-checked .aeb-checkbox-old-indicator:active{background-image:var(--color-blue-700)}.aeb-checkbox-old-checked .aeb-checkbox-old-indicator:active:hover{background-image:var(--color-blue-700);border:none}.aeb-checkbox-old-checked .aeb-checkbox-old-indicator:active:before{position:absolute;top:2px;left:2px;z-index:0;width:18px;height:18px;content:\"\";background-color:transparent;border-radius:2px}}.aeb-checkbox-old-disabled .aeb-checkbox-old-indicator{border:2px solid var(--color-mono-300)}@media (hover: hover){.aeb-checkbox-old-disabled .aeb-checkbox-old-indicator:hover{border:2px solid var(--color-mono-300)}.aeb-checkbox-old-disabled .aeb-checkbox-old-indicator:active{background:#fff!important;border:2px solid var(--color-mono-300)!important}.aeb-checkbox-old-disabled .aeb-checkbox-old-indicator:active:before{position:absolute;top:2px;left:2px;z-index:0;width:18px;height:18px;content:\"\";background-color:transparent;border-radius:2px}}.aeb-checkbox-old-disabled .aeb-checkbox-old-label{opacity:.6}.aeb-checkbox-old-checked-disabled .aeb-checkbox-old-indicator{background:var(--color-mono-300)}@media (hover: hover){.aeb-checkbox-old-checked-disabled .aeb-checkbox-old-indicator:hover{background:var(--color-mono-300)}.aeb-checkbox-old-checked-disabled .aeb-checkbox-old-indicator:active{background:var(--color-mono-300)!important;border:none!important}.aeb-checkbox-old-checked-disabled .aeb-checkbox-old-indicator:active:before{position:absolute;top:2px;left:2px;z-index:0;width:18px;height:18px;content:\"\";background-color:transparent;border-radius:2px}}.aeb-checkbox-old-error .aeb-checkbox-old-indicator{color:var(--color-red-500)!important;border-color:var(--color-red-500)!important}.aeb-checkbox-old-error .aeb-checkbox-old-label{color:var(--color-red-500)!important}\n"] }]
|
|
449
|
-
}], propDecorators: { checkboxOldInput: [{
|
|
450
|
-
type: ViewChild,
|
|
451
|
-
args: ['checkbox-old', { static: true }]
|
|
452
|
-
}], id: [{
|
|
453
|
-
type: Input
|
|
454
|
-
}], isChecked: [{
|
|
455
|
-
type: Input
|
|
456
|
-
}], isDisabled: [{
|
|
457
|
-
type: Input
|
|
458
|
-
}], isValid: [{
|
|
459
|
-
type: Input
|
|
460
|
-
}], name: [{
|
|
461
|
-
type: Input
|
|
462
|
-
}], change: [{
|
|
463
|
-
type: Output
|
|
464
|
-
}], checkBoxOldClass: [{
|
|
465
|
-
type: HostBinding,
|
|
466
|
-
args: ['class.aeb-checkbox-old']
|
|
467
|
-
}], checkboxOldChecked: [{
|
|
468
|
-
type: HostBinding,
|
|
469
|
-
args: ['class.aeb-checkbox-old-checked']
|
|
470
|
-
}], checkboxOldDisabled: [{
|
|
471
|
-
type: HostBinding,
|
|
472
|
-
args: ['class.aeb-checkbox-old-disabled']
|
|
473
|
-
}], checkboxOldError: [{
|
|
474
|
-
type: HostBinding,
|
|
475
|
-
args: ['class.aeb-checkbox-old-error']
|
|
476
|
-
}], checkboxOldCheckedDisabled: [{
|
|
477
|
-
type: HostBinding,
|
|
478
|
-
args: ['class.aeb-checkbox-old-checked-disabled']
|
|
479
|
-
}] } });
|
|
480
|
-
|
|
481
362
|
/**
|
|
482
363
|
* Готовый компонент для группы чекбоксов. Принимает на вход в свойстве `checkboxArray` массив объектов,
|
|
483
364
|
* реализующих интерфейс `CheckBoxModel`. В целях обеспечения иммутабельности и явности,
|
|
484
365
|
* работа с элементами формы (установка значения, валидация, включение/выключение) должна осуществляться
|
|
485
366
|
* через поле `checkboxFormGroup`, а не через поля объектов `checkboxArray`
|
|
486
367
|
*/
|
|
487
|
-
class
|
|
368
|
+
class CheckboxGroupComponent {
|
|
488
369
|
constructor() {
|
|
489
370
|
this.formBuilder = inject(FormBuilder);
|
|
490
|
-
this.
|
|
491
|
-
this.
|
|
371
|
+
this.checkboxArray = [];
|
|
372
|
+
this.checkboxFormGroup = this.formBuilder.group({});
|
|
492
373
|
}
|
|
493
374
|
ngOnInit() {
|
|
494
|
-
this.
|
|
375
|
+
this.checkboxArray.forEach((checkBoxOld) => {
|
|
495
376
|
const checkboxOldControl = new FormControl({
|
|
496
377
|
value: checkBoxOld.checked,
|
|
497
378
|
disabled: checkBoxOld.disabled
|
|
498
379
|
}, checkBoxOld.required
|
|
499
380
|
? Validators.requiredTrue
|
|
500
381
|
: Validators.nullValidator);
|
|
501
|
-
this.
|
|
382
|
+
this.checkboxFormGroup.addControl(checkBoxOld.name, checkboxOldControl);
|
|
502
383
|
});
|
|
503
384
|
}
|
|
504
385
|
isControlValid(checkboxOld) {
|
|
505
386
|
if (checkboxOld.checkValidationAfterUncheck &&
|
|
506
|
-
!this.
|
|
507
|
-
!this.
|
|
387
|
+
!this.checkboxFormGroup.get(checkboxOld.name).dirty &&
|
|
388
|
+
!this.checkboxFormGroup.get(checkboxOld.name).touched) {
|
|
508
389
|
return true;
|
|
509
390
|
}
|
|
510
|
-
return this.
|
|
391
|
+
return this.checkboxFormGroup.get(checkboxOld.name)?.valid;
|
|
511
392
|
}
|
|
512
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type:
|
|
513
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.4", type:
|
|
393
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: CheckboxGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
394
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.4", type: CheckboxGroupComponent, isStandalone: false, selector: "aeb-checkbox-group", inputs: { checkboxArray: "checkboxArray" }, ngImport: i0, template: "<div class=\"aeb-checkbox-group__header\">\u0413\u0440\u0443\u043F\u043F\u0430 \u0447\u0435\u043A\u0431\u043E\u043A\u0441\u043E\u0432</div>\n<form [formGroup]=\"checkboxFormGroup\">\n @for (data of checkboxArray; track data) {\n <aeb-checkbox\n class=\"aeb-checkbox-layout\"\n [id]=\"data.id\"\n [name]=\"data.name\"\n [required]=\"data.required\"\n [isValid]=\"isControlValid(data)\"\n formControlName=\"{{ data.name }}\"\n >\n {{ data.label }}\n </aeb-checkbox>\n }\n</form>\n", styles: [".aeb-checkbox-group__header{margin-bottom:16px;font-size:var(--font-size-s);color:var(--color-mono-300)}.aeb-checkbox-layout{margin-bottom:16px}\n"], dependencies: [{ kind: "directive", type: i3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: CheckboxComponent, selector: "aeb-checkbox", inputs: ["id", "isChecked", "isDisabled", "isValid", "hasText", "name"], outputs: ["change"] }] }); }
|
|
514
395
|
}
|
|
515
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type:
|
|
396
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: CheckboxGroupComponent, decorators: [{
|
|
516
397
|
type: Component,
|
|
517
|
-
args: [{ selector: 'aeb-checkbox-group
|
|
518
|
-
}], propDecorators: {
|
|
398
|
+
args: [{ selector: 'aeb-checkbox-group', standalone: false, template: "<div class=\"aeb-checkbox-group__header\">\u0413\u0440\u0443\u043F\u043F\u0430 \u0447\u0435\u043A\u0431\u043E\u043A\u0441\u043E\u0432</div>\n<form [formGroup]=\"checkboxFormGroup\">\n @for (data of checkboxArray; track data) {\n <aeb-checkbox\n class=\"aeb-checkbox-layout\"\n [id]=\"data.id\"\n [name]=\"data.name\"\n [required]=\"data.required\"\n [isValid]=\"isControlValid(data)\"\n formControlName=\"{{ data.name }}\"\n >\n {{ data.label }}\n </aeb-checkbox>\n }\n</form>\n", styles: [".aeb-checkbox-group__header{margin-bottom:16px;font-size:var(--font-size-s);color:var(--color-mono-300)}.aeb-checkbox-layout{margin-bottom:16px}\n"] }]
|
|
399
|
+
}], propDecorators: { checkboxArray: [{
|
|
519
400
|
type: Input
|
|
520
401
|
}] } });
|
|
521
402
|
|
|
522
|
-
class
|
|
523
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type:
|
|
524
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.2.4", ngImport: i0, type:
|
|
525
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type:
|
|
403
|
+
class CheckboxModule {
|
|
404
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: CheckboxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
405
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.2.4", ngImport: i0, type: CheckboxModule, declarations: [CheckboxComponent, CheckboxGroupComponent], imports: [CommonModule, FormsModule, ReactiveFormsModule], exports: [CheckboxComponent, CheckboxGroupComponent] }); }
|
|
406
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: CheckboxModule, imports: [CommonModule, FormsModule, ReactiveFormsModule] }); }
|
|
526
407
|
}
|
|
527
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type:
|
|
408
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: CheckboxModule, decorators: [{
|
|
528
409
|
type: NgModule,
|
|
529
410
|
args: [{
|
|
530
|
-
declarations: [
|
|
411
|
+
declarations: [CheckboxComponent, CheckboxGroupComponent],
|
|
531
412
|
imports: [CommonModule, FormsModule, ReactiveFormsModule],
|
|
532
|
-
exports: [
|
|
413
|
+
exports: [CheckboxComponent, CheckboxGroupComponent]
|
|
533
414
|
}]
|
|
534
415
|
}] });
|
|
535
416
|
|
|
@@ -909,7 +790,7 @@ class FormFieldComponent {
|
|
|
909
790
|
return false;
|
|
910
791
|
}
|
|
911
792
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: FormFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
912
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.4", type: FormFieldComponent, isStandalone: false, selector: "aeb-form-field", inputs: { isInvalid: "isInvalid", showIcon: "showIcon", showDescription: "showDescription", showErrorMessage: "showErrorMessage", validateOnDirty: "validateOnDirty", 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 />\n\n<div class=\"aeb-label__container\">\n <ng-content select=\"[aebLabel]\" />\n</div>\n\n@if (showIcon) {\n <ng-content select=\"[aebIcon]\" />\n}\n\n@if (showErrorMessage && error && !disabled && !isFocused) {\n <div\n [@labelVisibility]=\"\n showErrorMessage && error && !disabled && !isFocused ? 'visible' : 'void'\n \"\n class=\"aeb-form-field--error-message\"\n >\n <ng-content select=\"[errorMessage]\" />\n </div>\n}\n@if (showDescription && !error && !disabled) {\n <div\n [@labelVisibility]=\"\n showDescription && !error && !disabled ? 'visible' : 'void'\n \"\n class=\"aeb-form-field--description\"\n >\n <ng-content select=\"[description]\" />\n </div>\n}\n", styles: [".aeb-form-field{--border-color-default: var(--c-bg-surface-medium);--border-color-hovered: var(--c-bg-surface);--border-color-active: var(--c-btn-p-default);--border-color-disabled: var(--c-bg-surface-medium);--border-color-warning-default: var(--c-btn-ws-pressed);--border-color-warning-hovered: var(--c-btn-ws-default);--border-color-warning-focused: var(--c-btn-w-default);--border-color-warning-disabled: var(--c-btn-ws-pressed);--background-color-default: var(--c-bg-surface-medium);--background-color-hovered: var(--c-bg-surface);--background-color-focused: var(--c-bg-default);--background-color-disabled: var(--c-bg-surface-medium);--background-color-warning-default: var(--c-btn-ws-pressed);--background-color-warning-hovered: var(--c-btn-ws-default);--background-color-warning-focused: var(--c-bg-default);--background-color-warning-disabled: var(--c-btn-ws-pressed);--label-color-default: var(--c-t-secondary);--label-color-active: var(--c-t-secondary);--label-color-disabled: var(--c-t-secondary);--input-text-color-default: var(--c-t-primary);--input-text-color-disabled: var(--c-t-secondary);--error-text-color: var(--c-t-critical);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-warning-default);background-color:var(--background-color-warning-default)}.aeb-form-field.aeb-form-field--error .aeb-input:hover{border-color:var(--border-color-warning-hovered);background-color:var(--background-color-warning-hovered)}.aeb-form-field.aeb-form-field--error .aeb-input:focus{border-color:var(--border-color-warning-focused);background-color:var(--background-color-warning-focused)}.aeb-form-field.aeb-form-field--error .aeb-input:disabled{border-color:var(--border-color-warning-disabled);background-color:var(--background-color-warning-disabled)}.aeb-form-field.aeb-form-field--error .aeb-label__container{color:var(--label-color-error)}.aeb-form-field--focused .aeb-form-field--description{color:var(--label-color-active)}.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--description{padding:8px 0;font-size:var(--font-size-xxs);color:var(--input-text-color-disabled);overflow-wrap:break-word}.aeb-form-field.aeb-form-field--disabled .aeb-input{border:var(--border-thin) solid var(--border-color-disabled);color:var(--input-text-color-disabled);background-color:var(--background-color-disabled)}.aeb-form-field.aeb-form-field--disabled .aeb-label__container{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);
|
|
793
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.4", type: FormFieldComponent, isStandalone: false, selector: "aeb-form-field", inputs: { isInvalid: "isInvalid", showIcon: "showIcon", showDescription: "showDescription", showErrorMessage: "showErrorMessage", validateOnDirty: "validateOnDirty", 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 />\n\n<div class=\"aeb-label__container\">\n <ng-content select=\"[aebLabel]\" />\n</div>\n\n@if (showIcon) {\n <ng-content select=\"[aebIcon]\" />\n}\n\n@if (showErrorMessage && error && !disabled && !isFocused) {\n <div\n [@labelVisibility]=\"\n showErrorMessage && error && !disabled && !isFocused ? 'visible' : 'void'\n \"\n class=\"aeb-form-field--error-message\"\n >\n <ng-content select=\"[errorMessage]\" />\n </div>\n}\n@if (showDescription && !error && !disabled) {\n <div\n [@labelVisibility]=\"\n showDescription && !error && !disabled ? 'visible' : 'void'\n \"\n class=\"aeb-form-field--description\"\n >\n <ng-content select=\"[description]\" />\n </div>\n}\n", styles: [".aeb-form-field{--border-color-default: var(--c-bg-surface-medium);--border-color-hovered: var(--c-bg-surface);--border-color-active: var(--c-btn-p-default);--border-color-disabled: var(--c-bg-surface-medium);--border-color-warning-default: var(--c-btn-ws-pressed);--border-color-warning-hovered: var(--c-btn-ws-default);--border-color-warning-focused: var(--c-btn-w-default);--border-color-warning-disabled: var(--c-btn-ws-pressed);--background-color-default: var(--c-bg-surface-medium);--background-color-hovered: var(--c-bg-surface);--background-color-focused: var(--c-bg-default);--background-color-disabled: var(--c-bg-surface-medium);--background-color-warning-default: var(--c-btn-ws-pressed);--background-color-warning-hovered: var(--c-btn-ws-default);--background-color-warning-focused: var(--c-bg-default);--background-color-warning-disabled: var(--c-btn-ws-pressed);--label-color-default: var(--c-t-secondary);--label-color-active: var(--c-t-secondary);--label-color-disabled: var(--c-t-secondary);--input-text-color-default: var(--c-t-primary);--input-text-color-disabled: var(--c-t-secondary);--error-text-color: var(--c-t-critical);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-warning-default);background-color:var(--background-color-warning-default)}.aeb-form-field.aeb-form-field--error .aeb-input:hover{border-color:var(--border-color-warning-hovered);background-color:var(--background-color-warning-hovered)}.aeb-form-field.aeb-form-field--error .aeb-input:focus{border-color:var(--border-color-warning-focused);background-color:var(--background-color-warning-focused)}.aeb-form-field.aeb-form-field--error .aeb-input:disabled{border-color:var(--border-color-warning-disabled);background-color:var(--background-color-warning-disabled)}.aeb-form-field.aeb-form-field--error .aeb-label__container{color:var(--label-color-error)}.aeb-form-field--focused .aeb-form-field--description{color:var(--label-color-active)}.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--description{padding:8px 0;font-size:var(--font-size-xxs);color:var(--input-text-color-disabled);overflow-wrap:break-word}.aeb-form-field.aeb-form-field--disabled .aeb-input{border:var(--border-thin) solid var(--border-color-disabled);color:var(--input-text-color-disabled);background-color:var(--background-color-disabled)}.aeb-form-field.aeb-form-field--disabled .aeb-label__container{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);padding:24px 16px 7px;font-size:16px;border:var(--border-thin) solid var(--border-color-default);background-color:var(--background-color-default);border-radius:var(--border-medium-rounded);box-shadow:none;transition:all ease-in-out .2s linear;font-weight:300}.aeb-form-field .aeb-input:hover{background-color:var(--background-color-hovered);border:var(--border-thin) solid var(--border-color-hovered)}.aeb-form-field .aeb-input:focus{outline:none;background-color:var(--background-color-focused);border:var(--border-thin) solid var(--background-color-focused)}.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-50) transparent;scrollbar-width:thin}.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-50);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__container{display:inline-block;position:absolute;top:16px;left:16px;max-width:calc(100% - 32px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:16px;pointer-events:none;background-color:#0000;transition:all .2s ease-out;box-sizing:border-box;-webkit-user-select:none;user-select:none;font-weight:300}.aeb-form-field.aeb-form-field--focused .aeb-label__container,.aeb-form-field.aeb-form-field--has-value .aeb-label__container{line-height:14px;top:8px;font-size:var(--font-size-xxs)}.aeb-form-field.aeb-form-field--focused .aeb-input{border-color:var(--border-color-active)}.aeb-form-field.aeb-form-field--focused .aeb-label__container{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__container{max-width:calc(100% - 56px)}.aeb-form-field *[aebIcon]{position:absolute;top:16px;right:12px;width:24px;height:24px;-webkit-user-select:none;user-select:none}.aeb-form-field *[aebIcon] img{width:24px;height:24px}\n"], animations: [
|
|
913
794
|
trigger('labelVisibility', [
|
|
914
795
|
state('void', style({
|
|
915
796
|
'font-size': '0'
|
|
@@ -935,7 +816,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
935
816
|
transition('void => visible', [animate('.1s')]),
|
|
936
817
|
transition('visible => void', [animate('.05s')])
|
|
937
818
|
])
|
|
938
|
-
], standalone: false, template: "<ng-content />\n\n<div class=\"aeb-label__container\">\n <ng-content select=\"[aebLabel]\" />\n</div>\n\n@if (showIcon) {\n <ng-content select=\"[aebIcon]\" />\n}\n\n@if (showErrorMessage && error && !disabled && !isFocused) {\n <div\n [@labelVisibility]=\"\n showErrorMessage && error && !disabled && !isFocused ? 'visible' : 'void'\n \"\n class=\"aeb-form-field--error-message\"\n >\n <ng-content select=\"[errorMessage]\" />\n </div>\n}\n@if (showDescription && !error && !disabled) {\n <div\n [@labelVisibility]=\"\n showDescription && !error && !disabled ? 'visible' : 'void'\n \"\n class=\"aeb-form-field--description\"\n >\n <ng-content select=\"[description]\" />\n </div>\n}\n", styles: [".aeb-form-field{--border-color-default: var(--c-bg-surface-medium);--border-color-hovered: var(--c-bg-surface);--border-color-active: var(--c-btn-p-default);--border-color-disabled: var(--c-bg-surface-medium);--border-color-warning-default: var(--c-btn-ws-pressed);--border-color-warning-hovered: var(--c-btn-ws-default);--border-color-warning-focused: var(--c-btn-w-default);--border-color-warning-disabled: var(--c-btn-ws-pressed);--background-color-default: var(--c-bg-surface-medium);--background-color-hovered: var(--c-bg-surface);--background-color-focused: var(--c-bg-default);--background-color-disabled: var(--c-bg-surface-medium);--background-color-warning-default: var(--c-btn-ws-pressed);--background-color-warning-hovered: var(--c-btn-ws-default);--background-color-warning-focused: var(--c-bg-default);--background-color-warning-disabled: var(--c-btn-ws-pressed);--label-color-default: var(--c-t-secondary);--label-color-active: var(--c-t-secondary);--label-color-disabled: var(--c-t-secondary);--input-text-color-default: var(--c-t-primary);--input-text-color-disabled: var(--c-t-secondary);--error-text-color: var(--c-t-critical);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-warning-default);background-color:var(--background-color-warning-default)}.aeb-form-field.aeb-form-field--error .aeb-input:hover{border-color:var(--border-color-warning-hovered);background-color:var(--background-color-warning-hovered)}.aeb-form-field.aeb-form-field--error .aeb-input:focus{border-color:var(--border-color-warning-focused);background-color:var(--background-color-warning-focused)}.aeb-form-field.aeb-form-field--error .aeb-input:disabled{border-color:var(--border-color-warning-disabled);background-color:var(--background-color-warning-disabled)}.aeb-form-field.aeb-form-field--error .aeb-label__container{color:var(--label-color-error)}.aeb-form-field--focused .aeb-form-field--description{color:var(--label-color-active)}.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--description{padding:8px 0;font-size:var(--font-size-xxs);color:var(--input-text-color-disabled);overflow-wrap:break-word}.aeb-form-field.aeb-form-field--disabled .aeb-input{border:var(--border-thin) solid var(--border-color-disabled);color:var(--input-text-color-disabled);background-color:var(--background-color-disabled)}.aeb-form-field.aeb-form-field--disabled .aeb-label__container{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);
|
|
819
|
+
], standalone: false, template: "<ng-content />\n\n<div class=\"aeb-label__container\">\n <ng-content select=\"[aebLabel]\" />\n</div>\n\n@if (showIcon) {\n <ng-content select=\"[aebIcon]\" />\n}\n\n@if (showErrorMessage && error && !disabled && !isFocused) {\n <div\n [@labelVisibility]=\"\n showErrorMessage && error && !disabled && !isFocused ? 'visible' : 'void'\n \"\n class=\"aeb-form-field--error-message\"\n >\n <ng-content select=\"[errorMessage]\" />\n </div>\n}\n@if (showDescription && !error && !disabled) {\n <div\n [@labelVisibility]=\"\n showDescription && !error && !disabled ? 'visible' : 'void'\n \"\n class=\"aeb-form-field--description\"\n >\n <ng-content select=\"[description]\" />\n </div>\n}\n", styles: [".aeb-form-field{--border-color-default: var(--c-bg-surface-medium);--border-color-hovered: var(--c-bg-surface);--border-color-active: var(--c-btn-p-default);--border-color-disabled: var(--c-bg-surface-medium);--border-color-warning-default: var(--c-btn-ws-pressed);--border-color-warning-hovered: var(--c-btn-ws-default);--border-color-warning-focused: var(--c-btn-w-default);--border-color-warning-disabled: var(--c-btn-ws-pressed);--background-color-default: var(--c-bg-surface-medium);--background-color-hovered: var(--c-bg-surface);--background-color-focused: var(--c-bg-default);--background-color-disabled: var(--c-bg-surface-medium);--background-color-warning-default: var(--c-btn-ws-pressed);--background-color-warning-hovered: var(--c-btn-ws-default);--background-color-warning-focused: var(--c-bg-default);--background-color-warning-disabled: var(--c-btn-ws-pressed);--label-color-default: var(--c-t-secondary);--label-color-active: var(--c-t-secondary);--label-color-disabled: var(--c-t-secondary);--input-text-color-default: var(--c-t-primary);--input-text-color-disabled: var(--c-t-secondary);--error-text-color: var(--c-t-critical);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-warning-default);background-color:var(--background-color-warning-default)}.aeb-form-field.aeb-form-field--error .aeb-input:hover{border-color:var(--border-color-warning-hovered);background-color:var(--background-color-warning-hovered)}.aeb-form-field.aeb-form-field--error .aeb-input:focus{border-color:var(--border-color-warning-focused);background-color:var(--background-color-warning-focused)}.aeb-form-field.aeb-form-field--error .aeb-input:disabled{border-color:var(--border-color-warning-disabled);background-color:var(--background-color-warning-disabled)}.aeb-form-field.aeb-form-field--error .aeb-label__container{color:var(--label-color-error)}.aeb-form-field--focused .aeb-form-field--description{color:var(--label-color-active)}.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--description{padding:8px 0;font-size:var(--font-size-xxs);color:var(--input-text-color-disabled);overflow-wrap:break-word}.aeb-form-field.aeb-form-field--disabled .aeb-input{border:var(--border-thin) solid var(--border-color-disabled);color:var(--input-text-color-disabled);background-color:var(--background-color-disabled)}.aeb-form-field.aeb-form-field--disabled .aeb-label__container{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);padding:24px 16px 7px;font-size:16px;border:var(--border-thin) solid var(--border-color-default);background-color:var(--background-color-default);border-radius:var(--border-medium-rounded);box-shadow:none;transition:all ease-in-out .2s linear;font-weight:300}.aeb-form-field .aeb-input:hover{background-color:var(--background-color-hovered);border:var(--border-thin) solid var(--border-color-hovered)}.aeb-form-field .aeb-input:focus{outline:none;background-color:var(--background-color-focused);border:var(--border-thin) solid var(--background-color-focused)}.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-50) transparent;scrollbar-width:thin}.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-50);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__container{display:inline-block;position:absolute;top:16px;left:16px;max-width:calc(100% - 32px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:16px;pointer-events:none;background-color:#0000;transition:all .2s ease-out;box-sizing:border-box;-webkit-user-select:none;user-select:none;font-weight:300}.aeb-form-field.aeb-form-field--focused .aeb-label__container,.aeb-form-field.aeb-form-field--has-value .aeb-label__container{line-height:14px;top:8px;font-size:var(--font-size-xxs)}.aeb-form-field.aeb-form-field--focused .aeb-input{border-color:var(--border-color-active)}.aeb-form-field.aeb-form-field--focused .aeb-label__container{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__container{max-width:calc(100% - 56px)}.aeb-form-field *[aebIcon]{position:absolute;top:16px;right:12px;width:24px;height:24px;-webkit-user-select:none;user-select:none}.aeb-form-field *[aebIcon] img{width:24px;height:24px}\n"] }]
|
|
939
820
|
}], propDecorators: { formField: [{
|
|
940
821
|
type: ContentChild,
|
|
941
822
|
args: [FormFieldDirective]
|
|
@@ -2399,258 +2280,94 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
2399
2280
|
}]
|
|
2400
2281
|
}] });
|
|
2401
2282
|
|
|
2402
|
-
class
|
|
2283
|
+
class DropdownMenu {
|
|
2403
2284
|
constructor() {
|
|
2404
|
-
this.
|
|
2405
|
-
this.
|
|
2406
|
-
this.
|
|
2407
|
-
this.
|
|
2408
|
-
this.options = [];
|
|
2409
|
-
this.
|
|
2410
|
-
this.
|
|
2411
|
-
this.
|
|
2412
|
-
this.
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
this.selected = new EventEmitter();
|
|
2416
|
-
this.viewOptionsChange = new EventEmitter();
|
|
2417
|
-
this.viewOptions$ = new Observable();
|
|
2418
|
-
this.focusedOption$ = new BehaviorSubject(-1);
|
|
2419
|
-
}
|
|
2420
|
-
ngOnInit() {
|
|
2421
|
-
this.subscriptions.add(this.arrowKeyPress$.subscribe({
|
|
2422
|
-
next: (direction) => {
|
|
2423
|
-
this.handleArrowKeys(direction, this.focusedOption$.value);
|
|
2285
|
+
this.isOpen = input(true, ...(ngDevMode ? [{ debugName: "isOpen" }] : []));
|
|
2286
|
+
this.direction = input('bottom', ...(ngDevMode ? [{ debugName: "direction" }] : []));
|
|
2287
|
+
this.maxShownOptions = input(5, ...(ngDevMode ? [{ debugName: "maxShownOptions" }] : []));
|
|
2288
|
+
this.optionSize = input('L', ...(ngDevMode ? [{ debugName: "optionSize" }] : []));
|
|
2289
|
+
this.options = input([], ...(ngDevMode ? [{ debugName: "options" }] : []));
|
|
2290
|
+
this.selectedOption = input(...(ngDevMode ? [undefined, { debugName: "selectedOption" }] : []));
|
|
2291
|
+
this.outsideClick = output();
|
|
2292
|
+
this.optionSelect = output();
|
|
2293
|
+
this.optionHeightPx = computed(() => {
|
|
2294
|
+
if (this.optionSize() === 'S') {
|
|
2295
|
+
return 40;
|
|
2424
2296
|
}
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
.pipe(withLatestFrom(this.isOpen$, this.focusedOption$), filter(([, isOpen, focused]) => isOpen && focused !== -1), switchMap(() => this.viewOptions$.pipe(take(1))))
|
|
2428
|
-
.subscribe({
|
|
2429
|
-
next: (value) => {
|
|
2430
|
-
this.selectHandler(value.at(this.focusedOption$.value), this.focusedOption$.value);
|
|
2297
|
+
else if (this.optionSize() === 'M') {
|
|
2298
|
+
return 48;
|
|
2431
2299
|
}
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
if (value === undefined) {
|
|
2435
|
-
value = this.latestDropdownFieldValue;
|
|
2436
|
-
}
|
|
2437
|
-
else {
|
|
2438
|
-
this.latestDropdownFieldValue = value;
|
|
2300
|
+
else if (this.optionSize() === 'L') {
|
|
2301
|
+
return 56;
|
|
2439
2302
|
}
|
|
2440
|
-
|
|
2441
|
-
}), mergeMap((value) => iif(() => this.filter, of(this.filterOptions(value)), of(this.options))), tap((options) => {
|
|
2442
|
-
this.viewOptionsLength = options.length;
|
|
2443
|
-
this.viewOptionsChange.emit([...options]);
|
|
2444
|
-
}));
|
|
2303
|
+
}, ...(ngDevMode ? [{ debugName: "optionHeightPx" }] : []));
|
|
2445
2304
|
}
|
|
2446
|
-
|
|
2447
|
-
this.
|
|
2448
|
-
}
|
|
2449
|
-
ngOnChanges(changes) {
|
|
2450
|
-
if (changes.options) {
|
|
2451
|
-
this.sourceOptionsChanged$.next();
|
|
2452
|
-
}
|
|
2453
|
-
}
|
|
2454
|
-
selectHandler(item, index) {
|
|
2455
|
-
this.optionElementList.toArray().at(index).nativeElement.focus();
|
|
2456
|
-
this.selected.emit([item, index]);
|
|
2457
|
-
}
|
|
2458
|
-
handleArrowKeys(direction, index) {
|
|
2459
|
-
const indexVary = direction === 'down' ? 1 : -1;
|
|
2460
|
-
let nextOptionIndex = index + indexVary;
|
|
2461
|
-
if (nextOptionIndex === this.viewOptionsLength) {
|
|
2462
|
-
nextOptionIndex -= 1;
|
|
2463
|
-
}
|
|
2464
|
-
else if (nextOptionIndex < -1) {
|
|
2465
|
-
nextOptionIndex = -1;
|
|
2466
|
-
}
|
|
2467
|
-
this.focusedOption$.next(nextOptionIndex);
|
|
2468
|
-
}
|
|
2469
|
-
handleMouse(type, index) {
|
|
2470
|
-
if (type === 'move') {
|
|
2471
|
-
if (this.focusedOption$.value === index) {
|
|
2472
|
-
return;
|
|
2473
|
-
}
|
|
2474
|
-
this.focusedOption$.next(index);
|
|
2475
|
-
}
|
|
2476
|
-
else if (type === 'leave') {
|
|
2477
|
-
this.focusedOption$.next(-1);
|
|
2478
|
-
}
|
|
2305
|
+
selectOption(optionValue) {
|
|
2306
|
+
this.optionSelect.emit(optionValue);
|
|
2479
2307
|
}
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
value.toLocaleLowerCase());
|
|
2483
|
-
return values;
|
|
2308
|
+
clickOutside() {
|
|
2309
|
+
this.outsideClick.emit();
|
|
2484
2310
|
}
|
|
2485
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type:
|
|
2486
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.4", type:
|
|
2311
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: DropdownMenu, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2312
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.4", type: DropdownMenu, isStandalone: false, selector: "aeb-dropdown-menu", inputs: { isOpen: { classPropertyName: "isOpen", publicName: "isOpen", isSignal: true, isRequired: false, transformFunction: null }, direction: { classPropertyName: "direction", publicName: "direction", isSignal: true, isRequired: false, transformFunction: null }, maxShownOptions: { classPropertyName: "maxShownOptions", publicName: "maxShownOptions", isSignal: true, isRequired: false, transformFunction: null }, optionSize: { classPropertyName: "optionSize", publicName: "optionSize", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, selectedOption: { classPropertyName: "selectedOption", publicName: "selectedOption", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { outsideClick: "outsideClick", optionSelect: "optionSelect" }, ngImport: i0, template: "<ul\n class=\"aeb-dropdown-menu\"\n [class.open]=\"isOpen()\"\n [class.top]=\"direction() === 'top'\"\n [class.bottom]=\"direction() === 'bottom'\"\n [style.max-height]=\"maxShownOptions() * optionHeightPx() + 'px'\"\n (clickOutside)=\"clickOutside()\"\n>\n @for (option of options(); track option.value) {\n <ul\n class=\"aeb-dropdown-menu__option\"\n [class.active]=\"option === selectedOption()\"\n [class.has-additional]=\"option.additional\"\n [style.height]=\"optionHeightPx() + 'px'\"\n (click)=\"selectOption(option.value)\"\n >\n <p>{{ option.label }}</p>\n @if (option.additional) {\n <small>{{ option.additional }}</small>\n }\n </ul>\n }\n</ul>\n", styles: [".aeb-dropdown-menu{position:absolute;z-index:2;width:100%;left:0;background:var(--c-bg-light);padding:0;margin:0;list-style:none;border-radius:12px;box-shadow:0 4px 12px #27303e26;overflow-y:auto;display:block;opacity:0;visibility:hidden;color:var(--c-t-primary);transform:scaleY(.8) rotateX(-60deg);transform-origin:top center;transition:all .3s cubic-bezier(.4,0,.2,1);transition-property:opacity,transform,visibility;perspective:1000px;transform-style:preserve-3d}.aeb-dropdown-menu__option{padding:0 24px;box-sizing:border-box;line-height:20px;text-overflow:ellipsis;overflow:hidden;cursor:pointer;display:flex;justify-content:center;flex-direction:column}.aeb-dropdown-menu__option:hover,.aeb-dropdown-menu__option.active{background-color:var(--c-bg-surface)}.aeb-dropdown-menu__option p{margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.aeb-dropdown-menu__option.has-additional{padding:0 24px}.aeb-dropdown-menu__option.has-additional small{display:block;margin-top:4px;line-height:16px;font-size:14px;color:var(--c-t-secondary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.aeb-dropdown-menu.bottom{top:calc(100% + 4px);transform-origin:top center;transform:scaleY(.8) rotateX(-60deg)}.aeb-dropdown-menu.top{bottom:calc(100% + 4px);top:auto;transform-origin:bottom center;transform:scaleY(.8) rotateX(60deg)}.aeb-dropdown-menu.open{opacity:1;visibility:visible;transform:scaleY(1) rotateX(0)}\n"], dependencies: [{ kind: "directive", type: ClickOutsideDirective, selector: "[clickOutside]", outputs: ["clickOutside"] }] }); }
|
|
2487
2313
|
}
|
|
2488
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type:
|
|
2314
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: DropdownMenu, decorators: [{
|
|
2489
2315
|
type: Component,
|
|
2490
|
-
args: [{ selector: 'aeb-dropdown-
|
|
2491
|
-
}]
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
}], isOpen$: [{
|
|
2507
|
-
type: Input
|
|
2508
|
-
}], selected: [{
|
|
2509
|
-
type: Output
|
|
2510
|
-
}], viewOptionsChange: [{
|
|
2511
|
-
type: Output
|
|
2512
|
-
}] } });
|
|
2316
|
+
args: [{ selector: 'aeb-dropdown-menu', standalone: false, template: "<ul\n class=\"aeb-dropdown-menu\"\n [class.open]=\"isOpen()\"\n [class.top]=\"direction() === 'top'\"\n [class.bottom]=\"direction() === 'bottom'\"\n [style.max-height]=\"maxShownOptions() * optionHeightPx() + 'px'\"\n (clickOutside)=\"clickOutside()\"\n>\n @for (option of options(); track option.value) {\n <ul\n class=\"aeb-dropdown-menu__option\"\n [class.active]=\"option === selectedOption()\"\n [class.has-additional]=\"option.additional\"\n [style.height]=\"optionHeightPx() + 'px'\"\n (click)=\"selectOption(option.value)\"\n >\n <p>{{ option.label }}</p>\n @if (option.additional) {\n <small>{{ option.additional }}</small>\n }\n </ul>\n }\n</ul>\n", styles: [".aeb-dropdown-menu{position:absolute;z-index:2;width:100%;left:0;background:var(--c-bg-light);padding:0;margin:0;list-style:none;border-radius:12px;box-shadow:0 4px 12px #27303e26;overflow-y:auto;display:block;opacity:0;visibility:hidden;color:var(--c-t-primary);transform:scaleY(.8) rotateX(-60deg);transform-origin:top center;transition:all .3s cubic-bezier(.4,0,.2,1);transition-property:opacity,transform,visibility;perspective:1000px;transform-style:preserve-3d}.aeb-dropdown-menu__option{padding:0 24px;box-sizing:border-box;line-height:20px;text-overflow:ellipsis;overflow:hidden;cursor:pointer;display:flex;justify-content:center;flex-direction:column}.aeb-dropdown-menu__option:hover,.aeb-dropdown-menu__option.active{background-color:var(--c-bg-surface)}.aeb-dropdown-menu__option p{margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.aeb-dropdown-menu__option.has-additional{padding:0 24px}.aeb-dropdown-menu__option.has-additional small{display:block;margin-top:4px;line-height:16px;font-size:14px;color:var(--c-t-secondary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.aeb-dropdown-menu.bottom{top:calc(100% + 4px);transform-origin:top center;transform:scaleY(.8) rotateX(-60deg)}.aeb-dropdown-menu.top{bottom:calc(100% + 4px);top:auto;transform-origin:bottom center;transform:scaleY(.8) rotateX(60deg)}.aeb-dropdown-menu.open{opacity:1;visibility:visible;transform:scaleY(1) rotateX(0)}\n"] }]
|
|
2317
|
+
}] });
|
|
2318
|
+
|
|
2319
|
+
class DropdownMenuModule {
|
|
2320
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: DropdownMenuModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2321
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.2.4", ngImport: i0, type: DropdownMenuModule, declarations: [DropdownMenu], imports: [ClickOutsideDirective], exports: [DropdownMenu] }); }
|
|
2322
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: DropdownMenuModule }); }
|
|
2323
|
+
}
|
|
2324
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: DropdownMenuModule, decorators: [{
|
|
2325
|
+
type: NgModule,
|
|
2326
|
+
args: [{
|
|
2327
|
+
declarations: [DropdownMenu],
|
|
2328
|
+
imports: [ClickOutsideDirective],
|
|
2329
|
+
exports: [DropdownMenu]
|
|
2330
|
+
}]
|
|
2331
|
+
}] });
|
|
2513
2332
|
|
|
2514
|
-
/* eslint-disable @angular-eslint/no-conflicting-lifecycle */
|
|
2515
2333
|
class DropdownComponent {
|
|
2516
|
-
get fieldValue() {
|
|
2517
|
-
return this._fieldValue;
|
|
2518
|
-
}
|
|
2519
|
-
get value() {
|
|
2520
|
-
return this._value;
|
|
2521
|
-
}
|
|
2522
|
-
set disabled(value) {
|
|
2523
|
-
if (value === true) {
|
|
2524
|
-
this.dropdownIsOpen$.next(false);
|
|
2525
|
-
}
|
|
2526
|
-
this._disabled = value;
|
|
2527
|
-
this.statusChanges$.next();
|
|
2528
|
-
}
|
|
2529
|
-
get disabled() {
|
|
2530
|
-
return this._disabled;
|
|
2531
|
-
}
|
|
2532
|
-
set fieldValue(vl) {
|
|
2533
|
-
const match = (this.options || []).find((item) => item.value === vl);
|
|
2534
|
-
if (match) {
|
|
2535
|
-
this.value = match.label;
|
|
2536
|
-
this._fieldValue = match.value;
|
|
2537
|
-
this.selected = match;
|
|
2538
|
-
}
|
|
2539
|
-
else if (vl === null || vl === '') {
|
|
2540
|
-
// обработка сброса значения поля
|
|
2541
|
-
this._fieldValue = '';
|
|
2542
|
-
this._value = '';
|
|
2543
|
-
this.selected = null;
|
|
2544
|
-
}
|
|
2545
|
-
}
|
|
2546
|
-
set value(value) {
|
|
2547
|
-
if (!value) {
|
|
2548
|
-
this.resetValue();
|
|
2549
|
-
return;
|
|
2550
|
-
}
|
|
2551
|
-
this._value = value;
|
|
2552
|
-
}
|
|
2553
2334
|
constructor() {
|
|
2554
|
-
this.cdr = inject(ChangeDetectorRef);
|
|
2555
|
-
this.hasErrorChanges$ = new Subject();
|
|
2556
|
-
this.pending = false;
|
|
2557
|
-
this.valid = false;
|
|
2558
|
-
this.dirty = false;
|
|
2559
|
-
this.touched = false;
|
|
2560
|
-
this._fieldValue = '';
|
|
2561
|
-
this._value = '';
|
|
2562
|
-
this._disabled = false;
|
|
2563
|
-
this.optionSelect = new EventEmitter();
|
|
2564
|
-
this.inputChange = new EventEmitter();
|
|
2565
|
-
this.label = '';
|
|
2566
|
-
this.options = [];
|
|
2567
|
-
this.filter = true;
|
|
2568
|
-
this.hasError = false;
|
|
2569
|
-
this.errorMessageText = '';
|
|
2570
|
-
this.validateOnDirty = false;
|
|
2571
2335
|
this.ngControl = inject(NgControl, { optional: true, self: true });
|
|
2572
|
-
|
|
2573
|
-
this.
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
}
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
!this.dropdownIsOpen$.value &&
|
|
2601
|
-
this.ngControl.control.touched &&
|
|
2602
|
-
(this.validateOnDirty ? this.ngControl.control.dirty : true) &&
|
|
2603
|
-
!this.ngControl.control.valid &&
|
|
2604
|
-
!this.ngControl.control.pending &&
|
|
2605
|
-
!this.disabled) {
|
|
2606
|
-
return true;
|
|
2607
|
-
}
|
|
2608
|
-
else {
|
|
2609
|
-
return false;
|
|
2610
|
-
}
|
|
2611
|
-
}));
|
|
2612
|
-
}
|
|
2613
|
-
}));
|
|
2614
|
-
}
|
|
2615
|
-
ngDoCheck() {
|
|
2616
|
-
if (this.ngControl) {
|
|
2617
|
-
if (this.dirty !== this.ngControl.control.dirty) {
|
|
2618
|
-
this.dirty = this.ngControl.control.dirty;
|
|
2619
|
-
this.statusChanges$.next();
|
|
2620
|
-
}
|
|
2621
|
-
if (this.touched !== this.ngControl.control.touched) {
|
|
2622
|
-
this.touched = this.ngControl.control.touched;
|
|
2623
|
-
this.statusChanges$.next();
|
|
2624
|
-
}
|
|
2625
|
-
if (this.valid !== this.ngControl.control.valid) {
|
|
2626
|
-
this.valid = this.ngControl.control.valid;
|
|
2627
|
-
this.statusChanges$.next();
|
|
2628
|
-
}
|
|
2629
|
-
if (this.pending !== this.ngControl.control.pending) {
|
|
2630
|
-
this.pending = this.ngControl.control.pending;
|
|
2631
|
-
this.statusChanges$.next();
|
|
2632
|
-
}
|
|
2633
|
-
}
|
|
2634
|
-
}
|
|
2635
|
-
ngOnDestroy() {
|
|
2636
|
-
this.dropdownIsOpen$.complete();
|
|
2637
|
-
this.arrowKeyPress$.complete();
|
|
2638
|
-
this.enterKeyPress$.complete();
|
|
2639
|
-
this.inputBlured$.complete();
|
|
2640
|
-
this.statusChanges$.complete();
|
|
2641
|
-
this.hasErrorChanges$.complete();
|
|
2642
|
-
}
|
|
2643
|
-
ngOnChanges(changes) {
|
|
2644
|
-
if (changes.hasError) {
|
|
2645
|
-
this.hasErrorChanges$.next();
|
|
2646
|
-
}
|
|
2336
|
+
// Control state
|
|
2337
|
+
this.controlState = signal({
|
|
2338
|
+
dirty: false,
|
|
2339
|
+
touched: false,
|
|
2340
|
+
pending: false,
|
|
2341
|
+
valid: false
|
|
2342
|
+
}, ...(ngDevMode ? [{ debugName: "controlState" }] : []));
|
|
2343
|
+
// Input signals
|
|
2344
|
+
this.options = input([], ...(ngDevMode ? [{ debugName: "options" }] : []));
|
|
2345
|
+
this.label = input('', ...(ngDevMode ? [{ debugName: "label" }] : []));
|
|
2346
|
+
this.errorMessageText = input('', ...(ngDevMode ? [{ debugName: "errorMessageText" }] : []));
|
|
2347
|
+
this.filter = input(true, ...(ngDevMode ? [{ debugName: "filter" }] : []));
|
|
2348
|
+
this.hasError = input(false, ...(ngDevMode ? [{ debugName: "hasError" }] : []));
|
|
2349
|
+
this.validateOnDirty = input(false, ...(ngDevMode ? [{ debugName: "validateOnDirty" }] : []));
|
|
2350
|
+
this.disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : []));
|
|
2351
|
+
// Output signals
|
|
2352
|
+
this.optionSelect = output();
|
|
2353
|
+
this.inputChange = output();
|
|
2354
|
+
// State signals
|
|
2355
|
+
this.dropdownIsOpen = signal(false, ...(ngDevMode ? [{ debugName: "dropdownIsOpen" }] : []));
|
|
2356
|
+
this.viewOptionsLength = signal(0, ...(ngDevMode ? [{ debugName: "viewOptionsLength" }] : []));
|
|
2357
|
+
this.hasErrorSignal = signal(false, ...(ngDevMode ? [{ debugName: "hasErrorSignal" }] : []));
|
|
2358
|
+
this.valueLabel = signal('', ...(ngDevMode ? [{ debugName: "valueLabel" }] : []));
|
|
2359
|
+
this.value = signal('', ...(ngDevMode ? [{ debugName: "value" }] : []));
|
|
2360
|
+
this.selectedOption = signal(null, ...(ngDevMode ? [{ debugName: "selectedOption" }] : []));
|
|
2361
|
+
this.filteredOptions = signal([], ...(ngDevMode ? [{ debugName: "filteredOptions" }] : []));
|
|
2362
|
+
this.setupControlValueAccessor();
|
|
2363
|
+
this.setupEffects();
|
|
2647
2364
|
}
|
|
2648
2365
|
writeValue(value) {
|
|
2649
|
-
if (this.disabled) {
|
|
2366
|
+
if (this.disabled()) {
|
|
2650
2367
|
return;
|
|
2651
2368
|
}
|
|
2652
|
-
this.
|
|
2653
|
-
this.optionSelect.emit(this.
|
|
2369
|
+
this.value.set(value);
|
|
2370
|
+
this.optionSelect.emit(this.selectedOption());
|
|
2654
2371
|
}
|
|
2655
2372
|
registerOnChange(fn) {
|
|
2656
2373
|
this.onChange = fn;
|
|
@@ -2659,142 +2376,233 @@ class DropdownComponent {
|
|
|
2659
2376
|
this.onTouch = fn;
|
|
2660
2377
|
}
|
|
2661
2378
|
setDisabledState(disabled) {
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
handleArrowKeys(direction) {
|
|
2665
|
-
this.arrowKeyPress$.next(direction);
|
|
2379
|
+
// This is called by Angular forms API
|
|
2380
|
+
// We'll use our disabled input signal instead
|
|
2666
2381
|
}
|
|
2667
2382
|
handleEnterKey() {
|
|
2668
|
-
|
|
2383
|
+
// Implement enter key logic here
|
|
2669
2384
|
}
|
|
2670
2385
|
openHandler() {
|
|
2671
|
-
if (this.disabled) {
|
|
2386
|
+
if (this.disabled()) {
|
|
2672
2387
|
return;
|
|
2673
2388
|
}
|
|
2674
|
-
this.dropdownIsOpen
|
|
2389
|
+
this.dropdownIsOpen.set(!this.dropdownIsOpen());
|
|
2675
2390
|
this.onTouch();
|
|
2676
2391
|
}
|
|
2677
2392
|
clickOutsideHandler() {
|
|
2678
|
-
if (this.dropdownIsOpen
|
|
2679
|
-
this.dropdownIsOpen
|
|
2393
|
+
if (this.dropdownIsOpen()) {
|
|
2394
|
+
this.dropdownIsOpen.set(false);
|
|
2680
2395
|
}
|
|
2681
2396
|
}
|
|
2682
2397
|
inputHandler(term) {
|
|
2683
|
-
if (this.disabled) {
|
|
2398
|
+
if (this.disabled()) {
|
|
2684
2399
|
return;
|
|
2685
2400
|
}
|
|
2686
2401
|
const target = term.target;
|
|
2687
|
-
|
|
2688
|
-
this.
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
value: undefined
|
|
2693
|
-
});
|
|
2402
|
+
const newValue = target.value;
|
|
2403
|
+
this.handleInputChange(newValue);
|
|
2404
|
+
}
|
|
2405
|
+
clickInput() {
|
|
2406
|
+
if (this.disabled()) {
|
|
2694
2407
|
return;
|
|
2695
2408
|
}
|
|
2696
|
-
|
|
2697
|
-
if (
|
|
2698
|
-
|
|
2699
|
-
this.selected = null;
|
|
2700
|
-
this.writeValue(null);
|
|
2701
|
-
}
|
|
2702
|
-
this.writeValue(match.value);
|
|
2703
|
-
this.selected = match;
|
|
2704
|
-
this.onChange(this.selected);
|
|
2409
|
+
this.onTouch();
|
|
2410
|
+
if (!this.dropdownIsOpen()) {
|
|
2411
|
+
this.dropdownIsOpen.set(true);
|
|
2705
2412
|
}
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2413
|
+
}
|
|
2414
|
+
selectHandler(optionValue) {
|
|
2415
|
+
this.selectOption(optionValue);
|
|
2416
|
+
}
|
|
2417
|
+
viewOptionsChangeHandler(options) {
|
|
2418
|
+
this.viewOptionsLength.set(options.length);
|
|
2419
|
+
}
|
|
2420
|
+
setupControlValueAccessor() {
|
|
2421
|
+
if (this.ngControl) {
|
|
2422
|
+
this.ngControl.valueAccessor = this;
|
|
2711
2423
|
}
|
|
2712
2424
|
}
|
|
2713
|
-
|
|
2714
|
-
|
|
2425
|
+
setupEffects() {
|
|
2426
|
+
this.setupFilterEffect();
|
|
2427
|
+
this.setupDisabledEffect();
|
|
2428
|
+
this.setupErrorEffect();
|
|
2429
|
+
this.setupControlStateEffect();
|
|
2430
|
+
this.setupValueSyncEffect();
|
|
2431
|
+
}
|
|
2432
|
+
setupFilterEffect() {
|
|
2433
|
+
effect(() => {
|
|
2434
|
+
const options = this.options();
|
|
2435
|
+
const filterEnabled = this.filter();
|
|
2436
|
+
const searchTerm = this.valueLabel();
|
|
2437
|
+
const filtered = filterEnabled && searchTerm
|
|
2438
|
+
? this.filterOptions(options, searchTerm)
|
|
2439
|
+
: options;
|
|
2440
|
+
this.filteredOptions.set(filtered);
|
|
2441
|
+
this.viewOptionsLength.set(filtered.length);
|
|
2442
|
+
});
|
|
2443
|
+
}
|
|
2444
|
+
setupDisabledEffect() {
|
|
2445
|
+
effect(() => {
|
|
2446
|
+
if (this.disabled()) {
|
|
2447
|
+
this.dropdownIsOpen.set(false);
|
|
2448
|
+
}
|
|
2449
|
+
});
|
|
2450
|
+
}
|
|
2451
|
+
setupErrorEffect() {
|
|
2452
|
+
effect(() => {
|
|
2453
|
+
const error = this.calculateErrorState();
|
|
2454
|
+
this.hasErrorSignal.set(error);
|
|
2455
|
+
});
|
|
2456
|
+
}
|
|
2457
|
+
setupControlStateEffect() {
|
|
2458
|
+
if (!this.ngControl) {
|
|
2715
2459
|
return;
|
|
2716
2460
|
}
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2461
|
+
effect(() => {
|
|
2462
|
+
const control = this.ngControl?.control;
|
|
2463
|
+
if (control) {
|
|
2464
|
+
this.controlState.set({
|
|
2465
|
+
dirty: control.dirty,
|
|
2466
|
+
touched: control.touched,
|
|
2467
|
+
pending: control.pending,
|
|
2468
|
+
valid: control.valid
|
|
2469
|
+
});
|
|
2470
|
+
}
|
|
2471
|
+
});
|
|
2472
|
+
}
|
|
2473
|
+
setupValueSyncEffect() {
|
|
2474
|
+
effect(() => {
|
|
2475
|
+
const fieldValue = this.value();
|
|
2476
|
+
const options = this.options();
|
|
2477
|
+
if (fieldValue) {
|
|
2478
|
+
this.handleValueWithOptions(fieldValue, options);
|
|
2479
|
+
}
|
|
2480
|
+
else if (fieldValue === null || fieldValue === '') {
|
|
2481
|
+
this.valueLabel.set('');
|
|
2482
|
+
this.selectedOption.set(null);
|
|
2483
|
+
}
|
|
2484
|
+
});
|
|
2485
|
+
}
|
|
2486
|
+
filterOptions(options, searchTerm) {
|
|
2487
|
+
return options.filter((option) => option.label.toLowerCase().includes(searchTerm.toLowerCase()));
|
|
2488
|
+
}
|
|
2489
|
+
handleInputChange(newValue) {
|
|
2490
|
+
this.valueLabel.set(newValue);
|
|
2491
|
+
this.inputChange.emit(newValue);
|
|
2492
|
+
if (!newValue) {
|
|
2493
|
+
this.clearSelection();
|
|
2494
|
+
return;
|
|
2720
2495
|
}
|
|
2496
|
+
this.findAndSetMatch(newValue);
|
|
2721
2497
|
}
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
this.
|
|
2728
|
-
this.onChange(this.selected);
|
|
2729
|
-
this.dropdownIsOpen$.next(false);
|
|
2498
|
+
clearSelection() {
|
|
2499
|
+
this.onChange({
|
|
2500
|
+
label: '',
|
|
2501
|
+
value: undefined
|
|
2502
|
+
});
|
|
2503
|
+
this.value.set('');
|
|
2730
2504
|
}
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2505
|
+
findAndSetMatch(newValue) {
|
|
2506
|
+
const match = this.options().find((item) => item.label === newValue);
|
|
2507
|
+
if (match) {
|
|
2508
|
+
this.handleMatchFound(match);
|
|
2509
|
+
}
|
|
2510
|
+
else {
|
|
2511
|
+
this.handleNoMatch(newValue);
|
|
2512
|
+
}
|
|
2734
2513
|
}
|
|
2735
|
-
|
|
2736
|
-
this.
|
|
2737
|
-
|
|
2738
|
-
|
|
2514
|
+
handleMatchFound(match) {
|
|
2515
|
+
if (match.value !== this.value()) {
|
|
2516
|
+
this.selectedOption.set(null);
|
|
2517
|
+
this.value.set('');
|
|
2518
|
+
}
|
|
2519
|
+
this.value.set(match.value);
|
|
2520
|
+
this.selectedOption.set(match);
|
|
2521
|
+
this.onChange(this.selectedOption());
|
|
2522
|
+
}
|
|
2523
|
+
handleNoMatch(newValue) {
|
|
2524
|
+
this.onChange({
|
|
2525
|
+
label: newValue,
|
|
2526
|
+
value: undefined
|
|
2527
|
+
});
|
|
2528
|
+
this.value.set('');
|
|
2529
|
+
}
|
|
2530
|
+
selectOption(optionValue) {
|
|
2531
|
+
const match = this.options().find((item) => item.value === optionValue);
|
|
2532
|
+
if (match) {
|
|
2533
|
+
this.valueLabel.set(match.label);
|
|
2534
|
+
}
|
|
2535
|
+
this.value.set(optionValue);
|
|
2536
|
+
this.onChange(this.selectedOption());
|
|
2537
|
+
this.dropdownIsOpen.set(false);
|
|
2538
|
+
}
|
|
2539
|
+
handleValueWithOptions(fieldValue, options) {
|
|
2540
|
+
const match = options.find((item) => item.value === fieldValue);
|
|
2541
|
+
if (match) {
|
|
2542
|
+
this.valueLabel.set(match.label);
|
|
2543
|
+
this.selectedOption.set(match);
|
|
2544
|
+
}
|
|
2545
|
+
}
|
|
2546
|
+
calculateErrorState() {
|
|
2547
|
+
if (this.hasError()) {
|
|
2548
|
+
return this.hasError() && !this.disabled();
|
|
2549
|
+
}
|
|
2550
|
+
if (!this.ngControl) {
|
|
2551
|
+
return false;
|
|
2552
|
+
}
|
|
2553
|
+
const control = this.ngControl.control;
|
|
2554
|
+
const state = this.controlState();
|
|
2555
|
+
return this.shouldShowError(control, state);
|
|
2556
|
+
}
|
|
2557
|
+
shouldShowError(control, state) {
|
|
2558
|
+
return (!!control &&
|
|
2559
|
+
(!!control.validator || !!control.asyncValidator) &&
|
|
2560
|
+
!this.formFieldRef?.isFocused &&
|
|
2561
|
+
!this.dropdownIsOpen() &&
|
|
2562
|
+
state.touched &&
|
|
2563
|
+
(this.validateOnDirty() ? state.dirty : true) &&
|
|
2564
|
+
!state.valid &&
|
|
2565
|
+
!state.pending &&
|
|
2566
|
+
!this.disabled());
|
|
2739
2567
|
}
|
|
2740
|
-
// eslint-disable-next-line unused-imports/no-unused-vars, @typescript-eslint/no-unused-vars
|
|
2741
2568
|
onChange(value) { }
|
|
2742
2569
|
onTouch() { }
|
|
2743
2570
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: DropdownComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2744
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
2571
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.2.4", type: DropdownComponent, isStandalone: false, selector: "aeb-dropdown", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, errorMessageText: { classPropertyName: "errorMessageText", publicName: "errorMessageText", isSignal: true, isRequired: false, transformFunction: null }, filter: { classPropertyName: "filter", publicName: "filter", isSignal: true, isRequired: false, transformFunction: null }, hasError: { classPropertyName: "hasError", publicName: "hasError", isSignal: true, isRequired: false, transformFunction: null }, validateOnDirty: { classPropertyName: "validateOnDirty", publicName: "validateOnDirty", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { optionSelect: "optionSelect", inputChange: "inputChange" }, viewQueries: [{ propertyName: "formFieldRef", first: true, predicate: FormFieldComponent, descendants: true }], ngImport: i0, template: "<div\n #dropdown\n class=\"aeb-dropdown\"\n clickOutside\n (clickOutside)=\"clickOutsideHandler()\"\n (keydown.tab)=\"clickOutsideHandler()\"\n>\n <aeb-form-field [isInvalid]=\"hasErrorSignal()\" [disabled]=\"disabled()\">\n <label aebLabel>{{ label() }}</label>\n <input\n aebInput\n type=\"text\"\n [ngModel]=\"valueLabel()\"\n (ngModelChange)=\"valueLabel.set($event)\"\n (input)=\"inputHandler($event)\"\n (keydown.tab)=\"clickInput()\"\n (focus)=\"clickInput()\"\n />\n <aeb-dropdown-menu\n [options]=\"filteredOptions()\"\n [isOpen]=\"dropdownIsOpen()\"\n (optionSelect)=\"selectHandler($event)\"\n ></aeb-dropdown-menu>\n <label [errorMessage]>{{ errorMessageText() }}</label>\n </aeb-form-field>\n\n <div\n class=\"aeb-dropdown__icon\"\n [ngClass]=\"{\n 'aeb-dropdown__icon--is-open': dropdownIsOpen()\n }\"\n (click)=\"openHandler()\"\n >\n <svg\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M8 10L11.9293 13.9293C11.9683 13.9683 12.0317 13.9683 12.0707 13.9293L16 10\"\n stroke=\"#1F2632\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </div>\n</div>\n", styles: [".aeb-dropdown{position:relative;width:100%}.aeb-dropdown__icon{position:absolute;top:16px;right:16px;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)}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: FormFieldComponent, selector: "aeb-form-field", inputs: ["isInvalid", "showIcon", "showDescription", "showErrorMessage", "validateOnDirty", "disabled"] }, { kind: "directive", type: FormFieldDirective, selector: "input[aebInput], textarea[aebTextarea]", inputs: ["value"] }, { kind: "directive", type: LabelDirective, selector: "[aebLabel]", inputs: ["aebLabel"] }, { kind: "directive", type: ErrorMessageDirective, selector: "[errorMessage]", inputs: ["errorMessage"] }, { kind: "directive", type: ClickOutsideDirective, selector: "[clickOutside]", outputs: ["clickOutside"] }, { kind: "directive", type: i3.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: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: DropdownMenu, selector: "aeb-dropdown-menu", inputs: ["isOpen", "direction", "maxShownOptions", "optionSize", "options", "selectedOption"], outputs: ["outsideClick", "optionSelect"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
2745
2572
|
}
|
|
2746
2573
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: DropdownComponent, decorators: [{
|
|
2747
2574
|
type: Component,
|
|
2748
|
-
args: [{ selector: 'aeb-dropdown', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<div\n #dropdown\n class=\"aeb-dropdown\"\n clickOutside\n (clickOutside)=\"clickOutsideHandler()\"\n
|
|
2575
|
+
args: [{ selector: 'aeb-dropdown', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<div\n #dropdown\n class=\"aeb-dropdown\"\n clickOutside\n (clickOutside)=\"clickOutsideHandler()\"\n (keydown.tab)=\"clickOutsideHandler()\"\n>\n <aeb-form-field [isInvalid]=\"hasErrorSignal()\" [disabled]=\"disabled()\">\n <label aebLabel>{{ label() }}</label>\n <input\n aebInput\n type=\"text\"\n [ngModel]=\"valueLabel()\"\n (ngModelChange)=\"valueLabel.set($event)\"\n (input)=\"inputHandler($event)\"\n (keydown.tab)=\"clickInput()\"\n (focus)=\"clickInput()\"\n />\n <aeb-dropdown-menu\n [options]=\"filteredOptions()\"\n [isOpen]=\"dropdownIsOpen()\"\n (optionSelect)=\"selectHandler($event)\"\n ></aeb-dropdown-menu>\n <label [errorMessage]>{{ errorMessageText() }}</label>\n </aeb-form-field>\n\n <div\n class=\"aeb-dropdown__icon\"\n [ngClass]=\"{\n 'aeb-dropdown__icon--is-open': dropdownIsOpen()\n }\"\n (click)=\"openHandler()\"\n >\n <svg\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M8 10L11.9293 13.9293C11.9683 13.9683 12.0317 13.9683 12.0707 13.9293L16 10\"\n stroke=\"#1F2632\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </div>\n</div>\n", styles: [".aeb-dropdown{position:relative;width:100%}.aeb-dropdown__icon{position:absolute;top:16px;right:16px;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)}\n"] }]
|
|
2749
2576
|
}], ctorParameters: () => [], propDecorators: { formFieldRef: [{
|
|
2750
2577
|
type: ViewChild,
|
|
2751
2578
|
args: [FormFieldComponent]
|
|
2752
|
-
}], optionSelect: [{
|
|
2753
|
-
type: Output
|
|
2754
|
-
}], inputChange: [{
|
|
2755
|
-
type: Output
|
|
2756
|
-
}], label: [{
|
|
2757
|
-
type: Input
|
|
2758
|
-
}], options: [{
|
|
2759
|
-
type: Input
|
|
2760
|
-
}], filter: [{
|
|
2761
|
-
type: Input
|
|
2762
|
-
}], hasError: [{
|
|
2763
|
-
type: Input
|
|
2764
|
-
}], errorMessageText: [{
|
|
2765
|
-
type: Input
|
|
2766
|
-
}], validateOnDirty: [{
|
|
2767
|
-
type: Input
|
|
2768
|
-
}], disabled: [{
|
|
2769
|
-
type: Input
|
|
2770
|
-
}], fieldValue: [{
|
|
2771
|
-
type: Input
|
|
2772
|
-
}], value: [{
|
|
2773
|
-
type: Input
|
|
2774
2579
|
}] } });
|
|
2775
2580
|
|
|
2776
2581
|
class DropdownModule {
|
|
2777
2582
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: DropdownModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2778
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.2.4", ngImport: i0, type: DropdownModule, declarations: [DropdownComponent
|
|
2583
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.2.4", ngImport: i0, type: DropdownModule, declarations: [DropdownComponent], imports: [CommonModule,
|
|
2779
2584
|
FormFieldModule,
|
|
2780
2585
|
ClickOutsideDirective,
|
|
2781
2586
|
FormsModule,
|
|
2782
|
-
ReactiveFormsModule
|
|
2587
|
+
ReactiveFormsModule,
|
|
2588
|
+
DropdownMenuModule], exports: [DropdownComponent] }); }
|
|
2783
2589
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: DropdownModule, imports: [CommonModule,
|
|
2784
2590
|
FormFieldModule,
|
|
2785
2591
|
FormsModule,
|
|
2786
|
-
ReactiveFormsModule
|
|
2592
|
+
ReactiveFormsModule,
|
|
2593
|
+
DropdownMenuModule] }); }
|
|
2787
2594
|
}
|
|
2788
2595
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: DropdownModule, decorators: [{
|
|
2789
2596
|
type: NgModule,
|
|
2790
2597
|
args: [{
|
|
2791
|
-
declarations: [DropdownComponent
|
|
2598
|
+
declarations: [DropdownComponent],
|
|
2792
2599
|
imports: [
|
|
2793
2600
|
CommonModule,
|
|
2794
2601
|
FormFieldModule,
|
|
2795
2602
|
ClickOutsideDirective,
|
|
2796
2603
|
FormsModule,
|
|
2797
|
-
ReactiveFormsModule
|
|
2604
|
+
ReactiveFormsModule,
|
|
2605
|
+
DropdownMenuModule
|
|
2798
2606
|
],
|
|
2799
2607
|
exports: [DropdownComponent]
|
|
2800
2608
|
}]
|
|
@@ -3876,6 +3684,7 @@ class SelectComponent {
|
|
|
3876
3684
|
this.optionSelect = new EventEmitter();
|
|
3877
3685
|
this.isSelect = true;
|
|
3878
3686
|
this.isOpen = false;
|
|
3687
|
+
this.maxShownItems = 5;
|
|
3879
3688
|
}
|
|
3880
3689
|
clickOutside() {
|
|
3881
3690
|
this.handleClickOutside();
|
|
@@ -3952,7 +3761,7 @@ class SelectComponent {
|
|
|
3952
3761
|
useExisting: forwardRef(() => SelectComponent),
|
|
3953
3762
|
multi: true
|
|
3954
3763
|
}
|
|
3955
|
-
], hostDirectives: [{ directive: ClickOutsideDirective, outputs: ["clickOutside", "clickOutside"] }], ngImport: i0, template: "<div\n class=\"aeb-select__selected-item\"\n
|
|
3764
|
+
], hostDirectives: [{ directive: ClickOutsideDirective, outputs: ["clickOutside", "clickOutside"] }], ngImport: i0, template: "<div class=\"aeb-select\" [class.disabled]=\"disabled\">\n <div\n class=\"aeb-select__selected-item\"\n [class.open]=\"isOpen\"\n [class.error]=\"hasError\"\n (click)=\"!disabled && openDropdown()\"\n >\n <label\n class=\"aeb-select__label\"\n [class.float]=\"selectedOption\"\n [class.placeholder]=\"!selectedOption\"\n >\n {{ label }}\n </label>\n\n @if (selectedOption) {\n <div class=\"aeb-select__selected-text\">\n {{ selectedOption.label }}\n </div>\n }\n </div>\n\n <div\n class=\"aeb-select__icon\"\n [class.open]=\"isOpen\"\n [class.disabled]=\"disabled\"\n >\n <svg\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M8 10L11.9293 13.9293C11.9683 13.9683 12.0317 13.9683 12.0707 13.9293L16 10\"\n stroke=\"#1F2632\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </div>\n\n <aeb-dropdown-menu\n [options]=\"options\"\n [direction]=\"direction\"\n [isOpen]=\"isOpen\"\n [selectedOption]=\"selectedOption\"\n (optionSelect)=\"setValue($event)\"\n ></aeb-dropdown-menu>\n</div>\n", styles: [".aeb-select{position:relative;display:flex;width:100%;min-width:262px;font-size:16px;color:var(--c-t-primary);cursor:pointer;-webkit-user-select:none;user-select:none;font-weight:300}.aeb-select.disabled{cursor:default;pointer-events:none;color:var(--c-t-secondary)}.aeb-select__selected-item{display:flex;align-items:center;width:100%;height:54px;padding:0 52px 0 14px;background:var(--c-bg-surface-medium);border-radius:12px;border:1px solid transparent;position:relative}.aeb-select__selected-item:hover:not(.disabled){background-color:var(--c-bg-surface)}.aeb-select__selected-item.open{border-color:var(--c-btn-p-default);background-color:var(--c-bg-default)}.aeb-select__selected-item.error{background:var(--c-btn-ws-pressed);border-color:var(--c-btn-ws-pressed)}.aeb-select__selected-item.error:hover{background-color:var(--c-btn-ws-default);border-color:var(--c-btn-ws-default)}.aeb-select__selected-item.error.open{background-color:var(--c-bg-default);border-color:var(--c-btn-w-default)}.aeb-select__selected-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;position:absolute;bottom:8px;left:16px;right:52px}.aeb-select__label{font-size:12px;color:var(--c-t-secondary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none}.aeb-select__label.float{position:absolute;left:16px;top:8px;width:calc(100% - 68px)}.aeb-select__label.placeholder{color:var(--c-t-secondary);top:18px;font-size:16px;font-weight:300px;line-height:20px}.aeb-select__icon{position:absolute;top:16px;right:16px;width:24px;height:24px;pointer-events:none;transition:transform .3s cubic-bezier(.4,0,.2,1)}.aeb-select__icon.disabled svg path{stroke:var(--c-i-secondary)}.aeb-select__icon.open{transform:rotate(180deg)}\n"], dependencies: [{ kind: "component", type: DropdownMenu, selector: "aeb-dropdown-menu", inputs: ["isOpen", "direction", "maxShownOptions", "optionSize", "options", "selectedOption"], outputs: ["outsideClick", "optionSelect"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
3956
3765
|
}
|
|
3957
3766
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: SelectComponent, decorators: [{
|
|
3958
3767
|
type: Component,
|
|
@@ -3967,7 +3776,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
3967
3776
|
useExisting: forwardRef(() => SelectComponent),
|
|
3968
3777
|
multi: true
|
|
3969
3778
|
}
|
|
3970
|
-
], standalone: false, template: "<div\n class=\"aeb-select__selected-item\"\n
|
|
3779
|
+
], standalone: false, template: "<div class=\"aeb-select\" [class.disabled]=\"disabled\">\n <div\n class=\"aeb-select__selected-item\"\n [class.open]=\"isOpen\"\n [class.error]=\"hasError\"\n (click)=\"!disabled && openDropdown()\"\n >\n <label\n class=\"aeb-select__label\"\n [class.float]=\"selectedOption\"\n [class.placeholder]=\"!selectedOption\"\n >\n {{ label }}\n </label>\n\n @if (selectedOption) {\n <div class=\"aeb-select__selected-text\">\n {{ selectedOption.label }}\n </div>\n }\n </div>\n\n <div\n class=\"aeb-select__icon\"\n [class.open]=\"isOpen\"\n [class.disabled]=\"disabled\"\n >\n <svg\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M8 10L11.9293 13.9293C11.9683 13.9683 12.0317 13.9683 12.0707 13.9293L16 10\"\n stroke=\"#1F2632\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </div>\n\n <aeb-dropdown-menu\n [options]=\"options\"\n [direction]=\"direction\"\n [isOpen]=\"isOpen\"\n [selectedOption]=\"selectedOption\"\n (optionSelect)=\"setValue($event)\"\n ></aeb-dropdown-menu>\n</div>\n", styles: [".aeb-select{position:relative;display:flex;width:100%;min-width:262px;font-size:16px;color:var(--c-t-primary);cursor:pointer;-webkit-user-select:none;user-select:none;font-weight:300}.aeb-select.disabled{cursor:default;pointer-events:none;color:var(--c-t-secondary)}.aeb-select__selected-item{display:flex;align-items:center;width:100%;height:54px;padding:0 52px 0 14px;background:var(--c-bg-surface-medium);border-radius:12px;border:1px solid transparent;position:relative}.aeb-select__selected-item:hover:not(.disabled){background-color:var(--c-bg-surface)}.aeb-select__selected-item.open{border-color:var(--c-btn-p-default);background-color:var(--c-bg-default)}.aeb-select__selected-item.error{background:var(--c-btn-ws-pressed);border-color:var(--c-btn-ws-pressed)}.aeb-select__selected-item.error:hover{background-color:var(--c-btn-ws-default);border-color:var(--c-btn-ws-default)}.aeb-select__selected-item.error.open{background-color:var(--c-bg-default);border-color:var(--c-btn-w-default)}.aeb-select__selected-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;position:absolute;bottom:8px;left:16px;right:52px}.aeb-select__label{font-size:12px;color:var(--c-t-secondary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none}.aeb-select__label.float{position:absolute;left:16px;top:8px;width:calc(100% - 68px)}.aeb-select__label.placeholder{color:var(--c-t-secondary);top:18px;font-size:16px;font-weight:300px;line-height:20px}.aeb-select__icon{position:absolute;top:16px;right:16px;width:24px;height:24px;pointer-events:none;transition:transform .3s cubic-bezier(.4,0,.2,1)}.aeb-select__icon.disabled svg path{stroke:var(--c-i-secondary)}.aeb-select__icon.open{transform:rotate(180deg)}\n"] }]
|
|
3971
3780
|
}], ctorParameters: () => [], propDecorators: { label: [{
|
|
3972
3781
|
type: Input
|
|
3973
3782
|
}], options: [{
|
|
@@ -3993,14 +3802,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
3993
3802
|
|
|
3994
3803
|
class SelectModule {
|
|
3995
3804
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: SelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
3996
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.2.4", ngImport: i0, type: SelectModule, declarations: [SelectComponent], imports: [CommonModule,
|
|
3997
|
-
|
|
3805
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.2.4", ngImport: i0, type: SelectModule, declarations: [SelectComponent], imports: [CommonModule,
|
|
3806
|
+
ClickOutsideDirective,
|
|
3807
|
+
FormFieldModule,
|
|
3808
|
+
DropdownMenuModule], exports: [SelectComponent] }); }
|
|
3809
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: SelectModule, imports: [CommonModule,
|
|
3810
|
+
FormFieldModule,
|
|
3811
|
+
DropdownMenuModule] }); }
|
|
3998
3812
|
}
|
|
3999
3813
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: SelectModule, decorators: [{
|
|
4000
3814
|
type: NgModule,
|
|
4001
3815
|
args: [{
|
|
4002
3816
|
declarations: [SelectComponent],
|
|
4003
|
-
imports: [
|
|
3817
|
+
imports: [
|
|
3818
|
+
CommonModule,
|
|
3819
|
+
ClickOutsideDirective,
|
|
3820
|
+
FormFieldModule,
|
|
3821
|
+
DropdownMenuModule
|
|
3822
|
+
],
|
|
4004
3823
|
exports: [SelectComponent]
|
|
4005
3824
|
}]
|
|
4006
3825
|
}] });
|
|
@@ -4350,94 +4169,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
4350
4169
|
}]
|
|
4351
4170
|
}] });
|
|
4352
4171
|
|
|
4353
|
-
class RadioButtonsOldComponent {
|
|
4354
|
-
constructor() {
|
|
4355
|
-
this._value = undefined;
|
|
4356
|
-
this.horizontal = false;
|
|
4357
|
-
this.btnChange = new EventEmitter();
|
|
4358
|
-
this.disabled = false;
|
|
4359
|
-
}
|
|
4360
|
-
get value() {
|
|
4361
|
-
return this._value;
|
|
4362
|
-
}
|
|
4363
|
-
/**
|
|
4364
|
-
*/
|
|
4365
|
-
set value(v) {
|
|
4366
|
-
this._value = v;
|
|
4367
|
-
this.onChange(this._value);
|
|
4368
|
-
this.onTouch();
|
|
4369
|
-
}
|
|
4370
|
-
/**
|
|
4371
|
-
* should radio items be placed horizontally
|
|
4372
|
-
*/
|
|
4373
|
-
registerOnChange(fn) {
|
|
4374
|
-
this.onChange = fn;
|
|
4375
|
-
}
|
|
4376
|
-
registerOnTouched(fn) {
|
|
4377
|
-
this.onTouch = fn;
|
|
4378
|
-
}
|
|
4379
|
-
writeValue(value) {
|
|
4380
|
-
if (this.disabled) {
|
|
4381
|
-
return;
|
|
4382
|
-
}
|
|
4383
|
-
this.value = value;
|
|
4384
|
-
if (!this.touched) {
|
|
4385
|
-
this.touched = true;
|
|
4386
|
-
}
|
|
4387
|
-
this.btnChange.emit(value);
|
|
4388
|
-
}
|
|
4389
|
-
setDisabledState(disabled) {
|
|
4390
|
-
this.disabled = disabled;
|
|
4391
|
-
}
|
|
4392
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars, unused-imports/no-unused-vars
|
|
4393
|
-
onChange(value) { }
|
|
4394
|
-
onTouch() { }
|
|
4395
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: RadioButtonsOldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4396
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.4", type: RadioButtonsOldComponent, isStandalone: false, selector: "aeb-radio-buttons-old", inputs: { options: "options", header: "header", hasError: "hasError", horizontal: "horizontal", value: "value" }, outputs: { btnChange: "btnChange" }, providers: [
|
|
4397
|
-
{
|
|
4398
|
-
provide: NG_VALUE_ACCESSOR,
|
|
4399
|
-
useExisting: forwardRef(() => RadioButtonsOldComponent),
|
|
4400
|
-
multi: true
|
|
4401
|
-
}
|
|
4402
|
-
], ngImport: i0, template: "<div\n class=\"aeb-radio-buttons-old\"\n [ngClass]=\"{\n 'aeb-radio-buttons-old--disabled': disabled,\n 'aeb-radio-buttons-old--error': hasError\n }\"\n>\n <div class=\"aeb-radio-buttons-old__header\">\n {{ header }}\n </div>\n <div\n class=\"aeb-radio-buttons-old__items\"\n [ngClass]=\"{ horizontal: horizontal }\"\n >\n @for (option of options; track option) {\n <div\n class=\"aeb-radio-buttons-old__item\"\n (click)=\"writeValue(option.value)\"\n >\n <div class=\"aeb-radio-buttons-old__circle-container\">\n <div\n class=\"aeb-radio-buttons-old__circle\"\n [ngClass]=\"{\n 'aeb-radio-buttons-old__circle--active': value === option.value\n }\"\n ></div>\n </div>\n <span class=\"aeb-radio-buttons-old__label\">\n {{ option.label }}\n </span>\n </div>\n }\n </div>\n</div>\n", styles: [".aeb-radio-buttons-old{color:var(--color-mono-900)}.aeb-radio-buttons-old--disabled{color:var(--color-mono-300);pointer-events:none}.aeb-radio-buttons-old--disabled .aeb-radio-buttons-old__circle{border:var(--border-skinny) solid var(--color-mono-300)}.aeb-radio-buttons-old--disabled .aeb-radio-buttons-old__circle:after{background-color:var(--color-mono-300)}.aeb-radio-buttons-old--error{color:var(--color-red-500)}.aeb-radio-buttons-old--error .aeb-radio-buttons-old__circle{border:var(--border-skinny) solid var(--color-red-500)}.aeb-radio-buttons-old__header{margin-bottom:15px;font-size:var(--font-size-s);color:var(--color-mono-300)}.aeb-radio-buttons-old__items{display:inline-flex;flex-direction:column}.aeb-radio-buttons-old__items.horizontal{flex-direction:row;align-items:flex-start}.aeb-radio-buttons-old__items.horizontal .aeb-radio-buttons-old__item{padding-right:32px;margin-bottom:0}.aeb-radio-buttons-old__item{display:inline-flex;cursor:pointer}.aeb-radio-buttons-old__item:not(:last-child){margin-bottom:15px}.aeb-radio-buttons-old__item:hover .aeb-radio-buttons-old__circle{border:var(--border-skinny) solid var(--color-turquoise-500)}.aeb-radio-buttons-old__item:hover .aeb-radio-buttons-old__circle:after{background-color:var(--color-turquoise-500)}.aeb-radio-buttons-old__item:active .aeb-radio-buttons-old__circle{position:relative;background-image:var(--color-blue-700);border:var(--border-skinny) solid transparent}.aeb-radio-buttons-old__item:active .aeb-radio-buttons-old__circle:before{position:absolute;top:0;z-index:0;width:100%;height:100%;content:\"\";background-color:#fff;border-radius:50%}.aeb-radio-buttons-old__item:active .aeb-radio-buttons-old__circle:after{background-image:var(--color-blue-700)}.aeb-radio-buttons-old__label{display:block;font-size:var(--font-size-s)}.aeb-radio-buttons-old__circle{position:relative;width:16px;height:16px;margin-right:10px;border:var(--border-skinny) solid var(--color-blue-500);border-radius:50%}.aeb-radio-buttons-old__circle--active:after{position:absolute;top:calc(50% - 5px);left:calc(50% - 5px);width:10px;height:10px;content:\"\";background-color:var(--color-blue-500);border-radius:50%}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
4403
|
-
}
|
|
4404
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: RadioButtonsOldComponent, decorators: [{
|
|
4405
|
-
type: Component,
|
|
4406
|
-
args: [{ selector: 'aeb-radio-buttons-old', encapsulation: ViewEncapsulation.None, providers: [
|
|
4407
|
-
{
|
|
4408
|
-
provide: NG_VALUE_ACCESSOR,
|
|
4409
|
-
useExisting: forwardRef(() => RadioButtonsOldComponent),
|
|
4410
|
-
multi: true
|
|
4411
|
-
}
|
|
4412
|
-
], standalone: false, template: "<div\n class=\"aeb-radio-buttons-old\"\n [ngClass]=\"{\n 'aeb-radio-buttons-old--disabled': disabled,\n 'aeb-radio-buttons-old--error': hasError\n }\"\n>\n <div class=\"aeb-radio-buttons-old__header\">\n {{ header }}\n </div>\n <div\n class=\"aeb-radio-buttons-old__items\"\n [ngClass]=\"{ horizontal: horizontal }\"\n >\n @for (option of options; track option) {\n <div\n class=\"aeb-radio-buttons-old__item\"\n (click)=\"writeValue(option.value)\"\n >\n <div class=\"aeb-radio-buttons-old__circle-container\">\n <div\n class=\"aeb-radio-buttons-old__circle\"\n [ngClass]=\"{\n 'aeb-radio-buttons-old__circle--active': value === option.value\n }\"\n ></div>\n </div>\n <span class=\"aeb-radio-buttons-old__label\">\n {{ option.label }}\n </span>\n </div>\n }\n </div>\n</div>\n", styles: [".aeb-radio-buttons-old{color:var(--color-mono-900)}.aeb-radio-buttons-old--disabled{color:var(--color-mono-300);pointer-events:none}.aeb-radio-buttons-old--disabled .aeb-radio-buttons-old__circle{border:var(--border-skinny) solid var(--color-mono-300)}.aeb-radio-buttons-old--disabled .aeb-radio-buttons-old__circle:after{background-color:var(--color-mono-300)}.aeb-radio-buttons-old--error{color:var(--color-red-500)}.aeb-radio-buttons-old--error .aeb-radio-buttons-old__circle{border:var(--border-skinny) solid var(--color-red-500)}.aeb-radio-buttons-old__header{margin-bottom:15px;font-size:var(--font-size-s);color:var(--color-mono-300)}.aeb-radio-buttons-old__items{display:inline-flex;flex-direction:column}.aeb-radio-buttons-old__items.horizontal{flex-direction:row;align-items:flex-start}.aeb-radio-buttons-old__items.horizontal .aeb-radio-buttons-old__item{padding-right:32px;margin-bottom:0}.aeb-radio-buttons-old__item{display:inline-flex;cursor:pointer}.aeb-radio-buttons-old__item:not(:last-child){margin-bottom:15px}.aeb-radio-buttons-old__item:hover .aeb-radio-buttons-old__circle{border:var(--border-skinny) solid var(--color-turquoise-500)}.aeb-radio-buttons-old__item:hover .aeb-radio-buttons-old__circle:after{background-color:var(--color-turquoise-500)}.aeb-radio-buttons-old__item:active .aeb-radio-buttons-old__circle{position:relative;background-image:var(--color-blue-700);border:var(--border-skinny) solid transparent}.aeb-radio-buttons-old__item:active .aeb-radio-buttons-old__circle:before{position:absolute;top:0;z-index:0;width:100%;height:100%;content:\"\";background-color:#fff;border-radius:50%}.aeb-radio-buttons-old__item:active .aeb-radio-buttons-old__circle:after{background-image:var(--color-blue-700)}.aeb-radio-buttons-old__label{display:block;font-size:var(--font-size-s)}.aeb-radio-buttons-old__circle{position:relative;width:16px;height:16px;margin-right:10px;border:var(--border-skinny) solid var(--color-blue-500);border-radius:50%}.aeb-radio-buttons-old__circle--active:after{position:absolute;top:calc(50% - 5px);left:calc(50% - 5px);width:10px;height:10px;content:\"\";background-color:var(--color-blue-500);border-radius:50%}\n"] }]
|
|
4413
|
-
}], propDecorators: { options: [{
|
|
4414
|
-
type: Input
|
|
4415
|
-
}], header: [{
|
|
4416
|
-
type: Input
|
|
4417
|
-
}], hasError: [{
|
|
4418
|
-
type: Input
|
|
4419
|
-
}], horizontal: [{
|
|
4420
|
-
type: Input
|
|
4421
|
-
}], btnChange: [{
|
|
4422
|
-
type: Output
|
|
4423
|
-
}], value: [{
|
|
4424
|
-
type: Input
|
|
4425
|
-
}] } });
|
|
4426
|
-
|
|
4427
|
-
class RadioButtonsOldModule {
|
|
4428
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: RadioButtonsOldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
4429
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.2.4", ngImport: i0, type: RadioButtonsOldModule, declarations: [RadioButtonsOldComponent], imports: [CommonModule], exports: [RadioButtonsOldComponent] }); }
|
|
4430
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: RadioButtonsOldModule, imports: [CommonModule] }); }
|
|
4431
|
-
}
|
|
4432
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: RadioButtonsOldModule, decorators: [{
|
|
4433
|
-
type: NgModule,
|
|
4434
|
-
args: [{
|
|
4435
|
-
declarations: [RadioButtonsOldComponent],
|
|
4436
|
-
imports: [CommonModule],
|
|
4437
|
-
exports: [RadioButtonsOldComponent]
|
|
4438
|
-
}]
|
|
4439
|
-
}] });
|
|
4440
|
-
|
|
4441
4172
|
class ResponseComponent {
|
|
4442
4173
|
constructor() {
|
|
4443
4174
|
this.mode = 'light';
|
|
@@ -5379,7 +5110,6 @@ class AebUiKitModule {
|
|
|
5379
5110
|
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.2.4", ngImport: i0, type: AebUiKitModule, imports: [ButtonModule,
|
|
5380
5111
|
CodeInputModule,
|
|
5381
5112
|
CheckboxModule,
|
|
5382
|
-
CheckboxOldModule,
|
|
5383
5113
|
HeaderModule,
|
|
5384
5114
|
SidebarModule,
|
|
5385
5115
|
SliderModule,
|
|
@@ -5398,7 +5128,6 @@ class AebUiKitModule {
|
|
|
5398
5128
|
NotificationsModule,
|
|
5399
5129
|
DatepickerModule,
|
|
5400
5130
|
RadioButtonsModule,
|
|
5401
|
-
RadioButtonsOldModule,
|
|
5402
5131
|
AccordionModule,
|
|
5403
5132
|
CommentModule,
|
|
5404
5133
|
FooterModule,
|
|
@@ -5409,11 +5138,11 @@ class AebUiKitModule {
|
|
|
5409
5138
|
ActionBarModule,
|
|
5410
5139
|
NewsCardModule,
|
|
5411
5140
|
DropdownModule,
|
|
5141
|
+
DropdownMenuModule,
|
|
5412
5142
|
TableModule,
|
|
5413
5143
|
ModalModule,
|
|
5414
5144
|
ResponseModule], exports: [ButtonModule,
|
|
5415
5145
|
CheckboxModule,
|
|
5416
|
-
CheckboxOldModule,
|
|
5417
5146
|
HeaderModule,
|
|
5418
5147
|
SidebarModule,
|
|
5419
5148
|
SliderModule,
|
|
@@ -5432,7 +5161,6 @@ class AebUiKitModule {
|
|
|
5432
5161
|
NotificationsModule,
|
|
5433
5162
|
DatepickerModule,
|
|
5434
5163
|
RadioButtonsModule,
|
|
5435
|
-
RadioButtonsOldModule,
|
|
5436
5164
|
AccordionModule,
|
|
5437
5165
|
CommentModule,
|
|
5438
5166
|
FooterModule,
|
|
@@ -5443,13 +5171,13 @@ class AebUiKitModule {
|
|
|
5443
5171
|
ActionBarModule,
|
|
5444
5172
|
NewsCardModule,
|
|
5445
5173
|
DropdownModule,
|
|
5174
|
+
DropdownMenuModule,
|
|
5446
5175
|
TableModule,
|
|
5447
5176
|
ModalModule,
|
|
5448
5177
|
ResponseModule] }); }
|
|
5449
5178
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AebUiKitModule, imports: [ButtonModule,
|
|
5450
5179
|
CodeInputModule,
|
|
5451
5180
|
CheckboxModule,
|
|
5452
|
-
CheckboxOldModule,
|
|
5453
5181
|
HeaderModule,
|
|
5454
5182
|
SidebarModule,
|
|
5455
5183
|
SliderModule,
|
|
@@ -5468,7 +5196,6 @@ class AebUiKitModule {
|
|
|
5468
5196
|
NotificationsModule,
|
|
5469
5197
|
DatepickerModule,
|
|
5470
5198
|
RadioButtonsModule,
|
|
5471
|
-
RadioButtonsOldModule,
|
|
5472
5199
|
AccordionModule,
|
|
5473
5200
|
CommentModule,
|
|
5474
5201
|
FooterModule,
|
|
@@ -5479,11 +5206,11 @@ class AebUiKitModule {
|
|
|
5479
5206
|
ActionBarModule,
|
|
5480
5207
|
NewsCardModule,
|
|
5481
5208
|
DropdownModule,
|
|
5209
|
+
DropdownMenuModule,
|
|
5482
5210
|
TableModule,
|
|
5483
5211
|
ModalModule,
|
|
5484
5212
|
ResponseModule, ButtonModule,
|
|
5485
5213
|
CheckboxModule,
|
|
5486
|
-
CheckboxOldModule,
|
|
5487
5214
|
HeaderModule,
|
|
5488
5215
|
SidebarModule,
|
|
5489
5216
|
SliderModule,
|
|
@@ -5502,7 +5229,6 @@ class AebUiKitModule {
|
|
|
5502
5229
|
NotificationsModule,
|
|
5503
5230
|
DatepickerModule,
|
|
5504
5231
|
RadioButtonsModule,
|
|
5505
|
-
RadioButtonsOldModule,
|
|
5506
5232
|
AccordionModule,
|
|
5507
5233
|
CommentModule,
|
|
5508
5234
|
FooterModule,
|
|
@@ -5513,6 +5239,7 @@ class AebUiKitModule {
|
|
|
5513
5239
|
ActionBarModule,
|
|
5514
5240
|
NewsCardModule,
|
|
5515
5241
|
DropdownModule,
|
|
5242
|
+
DropdownMenuModule,
|
|
5516
5243
|
TableModule,
|
|
5517
5244
|
ModalModule,
|
|
5518
5245
|
ResponseModule] }); }
|
|
@@ -5524,7 +5251,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
5524
5251
|
ButtonModule,
|
|
5525
5252
|
CodeInputModule,
|
|
5526
5253
|
CheckboxModule,
|
|
5527
|
-
CheckboxOldModule,
|
|
5528
5254
|
HeaderModule,
|
|
5529
5255
|
SidebarModule,
|
|
5530
5256
|
SliderModule,
|
|
@@ -5543,7 +5269,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
5543
5269
|
NotificationsModule,
|
|
5544
5270
|
DatepickerModule,
|
|
5545
5271
|
RadioButtonsModule,
|
|
5546
|
-
RadioButtonsOldModule,
|
|
5547
5272
|
AccordionModule,
|
|
5548
5273
|
CommentModule,
|
|
5549
5274
|
FooterModule,
|
|
@@ -5554,6 +5279,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
5554
5279
|
ActionBarModule,
|
|
5555
5280
|
NewsCardModule,
|
|
5556
5281
|
DropdownModule,
|
|
5282
|
+
DropdownMenuModule,
|
|
5557
5283
|
TableModule,
|
|
5558
5284
|
ModalModule,
|
|
5559
5285
|
ResponseModule
|
|
@@ -5561,7 +5287,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
5561
5287
|
exports: [
|
|
5562
5288
|
ButtonModule,
|
|
5563
5289
|
CheckboxModule,
|
|
5564
|
-
CheckboxOldModule,
|
|
5565
5290
|
HeaderModule,
|
|
5566
5291
|
SidebarModule,
|
|
5567
5292
|
SliderModule,
|
|
@@ -5580,7 +5305,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
5580
5305
|
NotificationsModule,
|
|
5581
5306
|
DatepickerModule,
|
|
5582
5307
|
RadioButtonsModule,
|
|
5583
|
-
RadioButtonsOldModule,
|
|
5584
5308
|
AccordionModule,
|
|
5585
5309
|
CommentModule,
|
|
5586
5310
|
FooterModule,
|
|
@@ -5591,6 +5315,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
5591
5315
|
ActionBarModule,
|
|
5592
5316
|
NewsCardModule,
|
|
5593
5317
|
DropdownModule,
|
|
5318
|
+
DropdownMenuModule,
|
|
5594
5319
|
TableModule,
|
|
5595
5320
|
ModalModule,
|
|
5596
5321
|
ResponseModule
|
|
@@ -5757,5 +5482,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
5757
5482
|
* Generated bundle index. Do not edit.
|
|
5758
5483
|
*/
|
|
5759
5484
|
|
|
5760
|
-
export { AccordionComponent, AccordionModule, ActionBarComponent, ActionBarModule, AebSwitchComponent, AebSwitchModule, AebUiKitModule, AutofocusDirective, BreadcrumpsComponent, ButtonComponent, ButtonLeftIconDirective, ButtonModule, ButtonRightIconDirective, CheckboxComponent,
|
|
5485
|
+
export { AccordionComponent, AccordionModule, ActionBarComponent, ActionBarModule, AebSwitchComponent, AebSwitchModule, AebUiKitModule, AutofocusDirective, BreadcrumpsComponent, ButtonComponent, ButtonLeftIconDirective, ButtonModule, ButtonRightIconDirective, CheckboxComponent, CheckboxGroupComponent, CheckboxModule, ClickOutsideDirective, CodeInputComponent, CodeInputModule, CommentComponent, CommentModule, CreditItemCardComponent, CreditItemCardModule, DatepickerComponent, DatepickerCoreComponent, DatepickerModule, DatepickerMonthComponent, DatepickerTilesComponent, DragAndDropDirective, DropdownComponent, DropdownMenu, DropdownMenuModule, DropdownModule, ErrorMessageDirective, FileAttachComponent, FileAttachModule, FilterTagComponent, FilterTagsComponent, FilterTagsModule, FooterBottomComponent, FooterComponent, FooterMenuComponent, FooterModule, FooterTopComponent, FormFieldComponent, FormFieldDirective, FormFieldModule, HeaderComponent, HeaderModule, HeadingComponent, HeadingModule, IconDirective, LabelComponent, LabelDirective, LabelModule, LogoComponent, ModalComponent, ModalModule, NewsCardComponent, NewsCardModule, NotificationComponent, NotificationsComponent, NotificationsModule, PaginationComponent, PaginationModule, PopUpComponent, PopUpDirective, PopUpModule, ProductTitleComponent, RadioButtonsComponent, RadioButtonsModule, ResponseComponent, ResponseModule, SearchComponent, SearchModule, SelectComponent, SelectModule, SidebarComponent, SidebarModule, SliderComponent, SliderModule, SpanSubtitleDirective, SpanTitleDirective, SpinnerComponent, SpinnerModule, StepperComponent, StepperModule, StepperStepComponent, TabDirective, TableComponent, TableModule, TabsComponent, TabsModule, TagTabComponent, TagTabModule, TooltipComponent, TooltipDirective, TooltipModule, VisaComponent, VisaItemComponent, VisaModule };
|
|
5761
5486
|
//# sourceMappingURL=aeb-ui-kit.mjs.map
|