aeb-ui-kit 9.1.0-preview.1107 → 9.1.0-preview.1113
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 +28 -246
- package/fesm2022/aeb-ui-kit.mjs.map +1 -1
- package/index.d.ts +24 -98
- package/package.json +1 -1
package/fesm2022/aeb-ui-kit.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { ViewChild, Input, ViewEncapsulation, Component, NgModule, HostBinding,
|
|
|
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,
|
|
6
|
+
import { NG_VALUE_ACCESSOR, FormBuilder, FormControl, Validators, FormsModule, ReactiveFormsModule, NgControl } from '@angular/forms';
|
|
7
7
|
import { Subject, timer, map, takeUntil, Subscription, Observable, BehaviorSubject, withLatestFrom, filter, switchMap, take, merge, startWith, mergeMap, iif, of, tap, fromEvent, debounce, debounceTime } from 'rxjs';
|
|
8
8
|
import { trigger, state, transition, style, animate } from '@angular/animations';
|
|
9
9
|
import { DomSanitizer } from '@angular/platform-browser';
|
|
@@ -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
|
|
|
@@ -3876,6 +3757,7 @@ class SelectComponent {
|
|
|
3876
3757
|
this.optionSelect = new EventEmitter();
|
|
3877
3758
|
this.isSelect = true;
|
|
3878
3759
|
this.isOpen = false;
|
|
3760
|
+
this.maxShownItems = 5;
|
|
3879
3761
|
}
|
|
3880
3762
|
clickOutside() {
|
|
3881
3763
|
this.handleClickOutside();
|
|
@@ -3952,7 +3834,7 @@ class SelectComponent {
|
|
|
3952
3834
|
useExisting: forwardRef(() => SelectComponent),
|
|
3953
3835
|
multi: true
|
|
3954
3836
|
}
|
|
3955
|
-
], hostDirectives: [{ directive: ClickOutsideDirective, outputs: ["clickOutside", "clickOutside"] }], ngImport: i0, template: "<div\n class=\"aeb-select__selected-item\"\n
|
|
3837
|
+
], 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 <ul\n class=\"aeb-select__menu\"\n [class.open]=\"isOpen\"\n [class.top]=\"direction === 'top'\"\n [class.bottom]=\"direction === 'bottom'\"\n [style.--max-items]=\"maxShownItems\"\n >\n @for (option of options; track option.value) {\n <li\n class=\"aeb-select__menu-item\"\n [class.active]=\"option.value === selectedOption?.value\"\n [class.has-additional]=\"option.additional\"\n (click)=\"setValue(option.value)\"\n >\n <p>{{ option.label }}</p>\n @if (option.additional) {\n <small>{{ option.additional }}</small>\n }\n </li>\n }\n </ul>\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}.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)}.aeb-select__menu{position:absolute;z-index:2;width:100%;background:var(--c-bg-light);padding:0;margin:0;list-style:none;border-radius:12px;box-shadow:0 4px 12px #27303e26;max-height:calc(var(--max-items, 5) * 56px);overflow-y:auto;display:block;opacity:0;visibility:hidden;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-select__menu.bottom{top:calc(100% + 4px);transform-origin:top center;transform:scaleY(.8) rotateX(-60deg)}.aeb-select__menu.top{bottom:calc(100% + 4px);top:auto;transform-origin:bottom center;transform:scaleY(.8) rotateX(60deg)}.aeb-select__menu.open{opacity:1;visibility:visible;transform:scaleY(1) rotateX(0)}.aeb-select__menu-item{padding:18px 14px;height:56px;box-sizing:border-box;line-height:20px;text-overflow:ellipsis;overflow:hidden;cursor:pointer}.aeb-select__menu-item:hover,.aeb-select__menu-item.active{background-color:var(--c-bg-surface)}.aeb-select__menu-item p{margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.aeb-select__menu-item.has-additional{padding:10px 14px}.aeb-select__menu-item.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}\n"], encapsulation: i0.ViewEncapsulation.None }); }
|
|
3956
3838
|
}
|
|
3957
3839
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: SelectComponent, decorators: [{
|
|
3958
3840
|
type: Component,
|
|
@@ -3967,7 +3849,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
3967
3849
|
useExisting: forwardRef(() => SelectComponent),
|
|
3968
3850
|
multi: true
|
|
3969
3851
|
}
|
|
3970
|
-
], standalone: false, template: "<div\n class=\"aeb-select__selected-item\"\n
|
|
3852
|
+
], 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 <ul\n class=\"aeb-select__menu\"\n [class.open]=\"isOpen\"\n [class.top]=\"direction === 'top'\"\n [class.bottom]=\"direction === 'bottom'\"\n [style.--max-items]=\"maxShownItems\"\n >\n @for (option of options; track option.value) {\n <li\n class=\"aeb-select__menu-item\"\n [class.active]=\"option.value === selectedOption?.value\"\n [class.has-additional]=\"option.additional\"\n (click)=\"setValue(option.value)\"\n >\n <p>{{ option.label }}</p>\n @if (option.additional) {\n <small>{{ option.additional }}</small>\n }\n </li>\n }\n </ul>\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}.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)}.aeb-select__menu{position:absolute;z-index:2;width:100%;background:var(--c-bg-light);padding:0;margin:0;list-style:none;border-radius:12px;box-shadow:0 4px 12px #27303e26;max-height:calc(var(--max-items, 5) * 56px);overflow-y:auto;display:block;opacity:0;visibility:hidden;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-select__menu.bottom{top:calc(100% + 4px);transform-origin:top center;transform:scaleY(.8) rotateX(-60deg)}.aeb-select__menu.top{bottom:calc(100% + 4px);top:auto;transform-origin:bottom center;transform:scaleY(.8) rotateX(60deg)}.aeb-select__menu.open{opacity:1;visibility:visible;transform:scaleY(1) rotateX(0)}.aeb-select__menu-item{padding:18px 14px;height:56px;box-sizing:border-box;line-height:20px;text-overflow:ellipsis;overflow:hidden;cursor:pointer}.aeb-select__menu-item:hover,.aeb-select__menu-item.active{background-color:var(--c-bg-surface)}.aeb-select__menu-item p{margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.aeb-select__menu-item.has-additional{padding:10px 14px}.aeb-select__menu-item.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}\n"] }]
|
|
3971
3853
|
}], ctorParameters: () => [], propDecorators: { label: [{
|
|
3972
3854
|
type: Input
|
|
3973
3855
|
}], options: [{
|
|
@@ -3993,14 +3875,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
3993
3875
|
|
|
3994
3876
|
class SelectModule {
|
|
3995
3877
|
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, ClickOutsideDirective], exports: [SelectComponent] }); }
|
|
3997
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: SelectModule, imports: [CommonModule] }); }
|
|
3878
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.2.4", ngImport: i0, type: SelectModule, declarations: [SelectComponent], imports: [CommonModule, ClickOutsideDirective, FormFieldModule], exports: [SelectComponent] }); }
|
|
3879
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: SelectModule, imports: [CommonModule, FormFieldModule] }); }
|
|
3998
3880
|
}
|
|
3999
3881
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: SelectModule, decorators: [{
|
|
4000
3882
|
type: NgModule,
|
|
4001
3883
|
args: [{
|
|
4002
3884
|
declarations: [SelectComponent],
|
|
4003
|
-
imports: [CommonModule, ClickOutsideDirective],
|
|
3885
|
+
imports: [CommonModule, ClickOutsideDirective, FormFieldModule],
|
|
4004
3886
|
exports: [SelectComponent]
|
|
4005
3887
|
}]
|
|
4006
3888
|
}] });
|
|
@@ -4350,94 +4232,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
4350
4232
|
}]
|
|
4351
4233
|
}] });
|
|
4352
4234
|
|
|
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
4235
|
class ResponseComponent {
|
|
4442
4236
|
constructor() {
|
|
4443
4237
|
this.mode = 'light';
|
|
@@ -5379,7 +5173,6 @@ class AebUiKitModule {
|
|
|
5379
5173
|
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.2.4", ngImport: i0, type: AebUiKitModule, imports: [ButtonModule,
|
|
5380
5174
|
CodeInputModule,
|
|
5381
5175
|
CheckboxModule,
|
|
5382
|
-
CheckboxOldModule,
|
|
5383
5176
|
HeaderModule,
|
|
5384
5177
|
SidebarModule,
|
|
5385
5178
|
SliderModule,
|
|
@@ -5398,7 +5191,6 @@ class AebUiKitModule {
|
|
|
5398
5191
|
NotificationsModule,
|
|
5399
5192
|
DatepickerModule,
|
|
5400
5193
|
RadioButtonsModule,
|
|
5401
|
-
RadioButtonsOldModule,
|
|
5402
5194
|
AccordionModule,
|
|
5403
5195
|
CommentModule,
|
|
5404
5196
|
FooterModule,
|
|
@@ -5413,7 +5205,6 @@ class AebUiKitModule {
|
|
|
5413
5205
|
ModalModule,
|
|
5414
5206
|
ResponseModule], exports: [ButtonModule,
|
|
5415
5207
|
CheckboxModule,
|
|
5416
|
-
CheckboxOldModule,
|
|
5417
5208
|
HeaderModule,
|
|
5418
5209
|
SidebarModule,
|
|
5419
5210
|
SliderModule,
|
|
@@ -5432,7 +5223,6 @@ class AebUiKitModule {
|
|
|
5432
5223
|
NotificationsModule,
|
|
5433
5224
|
DatepickerModule,
|
|
5434
5225
|
RadioButtonsModule,
|
|
5435
|
-
RadioButtonsOldModule,
|
|
5436
5226
|
AccordionModule,
|
|
5437
5227
|
CommentModule,
|
|
5438
5228
|
FooterModule,
|
|
@@ -5449,7 +5239,6 @@ class AebUiKitModule {
|
|
|
5449
5239
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AebUiKitModule, imports: [ButtonModule,
|
|
5450
5240
|
CodeInputModule,
|
|
5451
5241
|
CheckboxModule,
|
|
5452
|
-
CheckboxOldModule,
|
|
5453
5242
|
HeaderModule,
|
|
5454
5243
|
SidebarModule,
|
|
5455
5244
|
SliderModule,
|
|
@@ -5468,7 +5257,6 @@ class AebUiKitModule {
|
|
|
5468
5257
|
NotificationsModule,
|
|
5469
5258
|
DatepickerModule,
|
|
5470
5259
|
RadioButtonsModule,
|
|
5471
|
-
RadioButtonsOldModule,
|
|
5472
5260
|
AccordionModule,
|
|
5473
5261
|
CommentModule,
|
|
5474
5262
|
FooterModule,
|
|
@@ -5483,7 +5271,6 @@ class AebUiKitModule {
|
|
|
5483
5271
|
ModalModule,
|
|
5484
5272
|
ResponseModule, ButtonModule,
|
|
5485
5273
|
CheckboxModule,
|
|
5486
|
-
CheckboxOldModule,
|
|
5487
5274
|
HeaderModule,
|
|
5488
5275
|
SidebarModule,
|
|
5489
5276
|
SliderModule,
|
|
@@ -5502,7 +5289,6 @@ class AebUiKitModule {
|
|
|
5502
5289
|
NotificationsModule,
|
|
5503
5290
|
DatepickerModule,
|
|
5504
5291
|
RadioButtonsModule,
|
|
5505
|
-
RadioButtonsOldModule,
|
|
5506
5292
|
AccordionModule,
|
|
5507
5293
|
CommentModule,
|
|
5508
5294
|
FooterModule,
|
|
@@ -5524,7 +5310,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
5524
5310
|
ButtonModule,
|
|
5525
5311
|
CodeInputModule,
|
|
5526
5312
|
CheckboxModule,
|
|
5527
|
-
CheckboxOldModule,
|
|
5528
5313
|
HeaderModule,
|
|
5529
5314
|
SidebarModule,
|
|
5530
5315
|
SliderModule,
|
|
@@ -5543,7 +5328,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
5543
5328
|
NotificationsModule,
|
|
5544
5329
|
DatepickerModule,
|
|
5545
5330
|
RadioButtonsModule,
|
|
5546
|
-
RadioButtonsOldModule,
|
|
5547
5331
|
AccordionModule,
|
|
5548
5332
|
CommentModule,
|
|
5549
5333
|
FooterModule,
|
|
@@ -5561,7 +5345,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
5561
5345
|
exports: [
|
|
5562
5346
|
ButtonModule,
|
|
5563
5347
|
CheckboxModule,
|
|
5564
|
-
CheckboxOldModule,
|
|
5565
5348
|
HeaderModule,
|
|
5566
5349
|
SidebarModule,
|
|
5567
5350
|
SliderModule,
|
|
@@ -5580,7 +5363,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
5580
5363
|
NotificationsModule,
|
|
5581
5364
|
DatepickerModule,
|
|
5582
5365
|
RadioButtonsModule,
|
|
5583
|
-
RadioButtonsOldModule,
|
|
5584
5366
|
AccordionModule,
|
|
5585
5367
|
CommentModule,
|
|
5586
5368
|
FooterModule,
|
|
@@ -5757,5 +5539,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
|
|
|
5757
5539
|
* Generated bundle index. Do not edit.
|
|
5758
5540
|
*/
|
|
5759
5541
|
|
|
5760
|
-
export { AccordionComponent, AccordionModule, ActionBarComponent, ActionBarModule, AebSwitchComponent, AebSwitchModule, AebUiKitModule, AutofocusDirective, BreadcrumpsComponent, ButtonComponent, ButtonLeftIconDirective, ButtonModule, ButtonRightIconDirective, CheckboxComponent,
|
|
5542
|
+
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, 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
5543
|
//# sourceMappingURL=aeb-ui-kit.mjs.map
|