aeb-ui-kit 3.2.0-preview.634 → 3.2.0-preview.638

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.
@@ -1,9 +1,9 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Component, ViewEncapsulation, Input, ViewChild, NgModule, EventEmitter, forwardRef, Output, HostBinding, Directive, Optional, Self, HostListener, ContentChild, Injectable, Inject, Pipe, LOCALE_ID, ViewChildren, inject, ChangeDetectorRef, ContentChildren, ChangeDetectionStrategy } from '@angular/core';
2
+ import { Component, ViewEncapsulation, Input, ViewChild, NgModule, EventEmitter, forwardRef, ChangeDetectionStrategy, Output, HostBinding, Directive, Optional, Self, HostListener, ContentChild, Injectable, Inject, Pipe, LOCALE_ID, ViewChildren, inject, ChangeDetectorRef, ContentChildren } 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 i1$1 from '@angular/forms';
6
- import { NG_VALUE_ACCESSOR, FormControl, Validators, FormsModule, ReactiveFormsModule } from '@angular/forms';
6
+ import { NG_VALUE_ACCESSOR, FormsModule, FormControl, Validators, ReactiveFormsModule } from '@angular/forms';
7
7
  import { timer, map, takeUntil, fromEvent } from 'rxjs';
8
8
  import { trigger, state, style, transition, animate } from '@angular/animations';
9
9
  import * as i2 from '@angular/platform-browser';
@@ -96,6 +96,7 @@ class CheckboxComponent {
96
96
  this.isChecked = false;
97
97
  this.isDisabled = false;
98
98
  this.isValid = true;
99
+ this.hasText = true;
99
100
  this.name = null;
100
101
  // eslint-disable-next-line @angular-eslint/no-output-native
101
102
  this.change = new EventEmitter();
@@ -112,11 +113,8 @@ class CheckboxComponent {
112
113
  get checkboxError() {
113
114
  return !this.isValid;
114
115
  }
115
- get checkboxCheckedDisabled() {
116
- return this.isChecked && this.isDisabled;
117
- }
118
116
  handleChange(event) {
119
- event.stopPropagation();
117
+ event.preventDefault();
120
118
  this.isChecked = !this.isChecked;
121
119
  this._onTouched();
122
120
  this._onChangeFn(this.isChecked);
@@ -127,6 +125,7 @@ class CheckboxComponent {
127
125
  return;
128
126
  }
129
127
  this.isChecked = !!value;
128
+ this.change.emit(this.isChecked);
130
129
  }
131
130
  registerOnChange(fn) {
132
131
  this._onChangeFn = fn;
@@ -148,13 +147,13 @@ class CheckboxComponent {
148
147
  }
149
148
  }
150
149
  CheckboxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CheckboxComponent, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
151
- CheckboxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: CheckboxComponent, selector: "aeb-checkbox", inputs: { id: "id", isChecked: "isChecked", isDisabled: "isDisabled", isValid: "isValid", name: "name" }, outputs: { change: "change" }, host: { properties: { "class.aeb-checkbox": "this.checkBoxClass", "class.aeb-checkbox-checked": "this.checkboxChecked", "class.aeb-checkbox-disabled": "this.checkboxDisabled", "class.aeb-checkbox-error": "this.checkboxError", "class.aeb-checkbox-checked-disabled": "this.checkboxCheckedDisabled" } }, providers: [
150
+ CheckboxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: CheckboxComponent, selector: "aeb-checkbox", inputs: { id: "id", isChecked: "isChecked", isDisabled: "isDisabled", isValid: "isValid", hasText: "hasText", name: "name" }, outputs: { change: "change" }, host: { properties: { "class.aeb-checkbox": "this.checkBoxClass", "class.aeb-checkbox--checked": "this.checkboxChecked", "class.aeb-checkbox--disabled": "this.checkboxDisabled", "class.aeb-checkbox--error": "this.checkboxError" } }, providers: [
152
151
  {
153
152
  provide: NG_VALUE_ACCESSOR,
154
153
  useExisting: forwardRef(() => CheckboxComponent),
155
154
  multi: true
156
155
  }
157
- ], viewQueries: [{ propertyName: "checkboxInput", first: true, predicate: ["checkbox"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: "<label [attr.for]=\"id\" class=\"aeb-checkbox-layout\">\n <div class=\"aeb-checkbox-container\">\n <input\n #checkbox\n type=\"checkbox\"\n [id]=\"id\"\n [attr.name]=\"name\"\n [checked]=\"isChecked\"\n [disabled]=\"isDisabled\"\n (change)=\"handleChange($event)\"\n hidden\n />\n <div class=\"aeb-checkbox-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-label\">\n <ng-content></ng-content>\n </div>\n </div>\n</label>\n", styles: [".aeb-checkbox-container{display:inline-flex;align-items:flex-start;justify-content:flex-start;cursor:pointer}.aeb-checkbox-layout{display:flex;color:var(--color-mono-brand-dark);-webkit-user-select:none;user-select:none}.aeb-checkbox-indicator{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:22px;height:22px;background-color:var(--color-mono-clear);border:var(--border-skinny) solid var(--gray-primary);border-radius:var(--border-lightly-rounded)}.aeb-checkbox-indicator>svg{opacity:var(--100-total)}@media (hover: hover){.aeb-checkbox-indicator:hover{border:var(--border-skinny) solid var(--color-turquoise-neutral)}.aeb-checkbox-indicator:active{position:relative;padding:2px;background-image:var(--active-gradient);border:var(--no-border)}.aeb-checkbox-indicator:active:before{position:absolute;top:2px;left:2px;z-index:0;width:18px;height:18px;content:\"\";background-color:var(--color-mono-clear);border-radius:2px}}.aeb-checkbox-label{margin-top:1px;margin-left:12px;font:var(--web-tp-body-16-r);line-height:22px;color:var(--color-mono-brand-dark);-webkit-user-select:none;user-select:none}.aeb-checkbox-checked .aeb-checkbox-indicator{background-color:var(--color-blue-brand);border-color:var(--color-blue-brand)}.aeb-checkbox-checked .aeb-checkbox-indicator>svg{opacity:var(--0-zero)}@media (hover: hover){.aeb-checkbox-checked .aeb-checkbox-indicator:hover{background-color:var(--color-turquoise-neutral);border:var(--border-skinny) solid var(--color-turquoise-neutral)}.aeb-checkbox-checked .aeb-checkbox-indicator:active{background-image:var(--active-gradient)}.aeb-checkbox-checked .aeb-checkbox-indicator:active:hover{background-image:var(--active-gradient);border:var(--no-border)}.aeb-checkbox-checked .aeb-checkbox-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-disabled .aeb-checkbox-indicator{border:var(--border-skinny) solid var(--gray-primary)}@media (hover: hover){.aeb-checkbox-disabled .aeb-checkbox-indicator:hover{border:var(--border-skinny) solid var(--gray-primary)}.aeb-checkbox-disabled .aeb-checkbox-indicator:active{background:white!important;border:var(--border-skinny) solid var(--gray-primary)!important}.aeb-checkbox-disabled .aeb-checkbox-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-disabled .aeb-checkbox-label{opacity:.6}.aeb-checkbox-checked-disabled .aeb-checkbox-indicator{background:var(--gray-primary)}@media (hover: hover){.aeb-checkbox-checked-disabled .aeb-checkbox-indicator:hover{background:var(--gray-primary)}.aeb-checkbox-checked-disabled .aeb-checkbox-indicator:active{background:var(--gray-primary)!important;border:var(--no-border)!important}.aeb-checkbox-checked-disabled .aeb-checkbox-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-error .aeb-checkbox-indicator{color:var(--color-red-neutral)!important;border-color:var(--color-red-neutral)!important}.aeb-checkbox-error .aeb-checkbox-label{color:var(--color-red-neutral)!important}\n"], encapsulation: i0.ViewEncapsulation.None });
156
+ ], viewQueries: [{ propertyName: "checkboxInput", first: true, predicate: ["checkbox"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: "<label [attr.for]=\"id\">\n <input\n #checkbox\n type=\"checkbox\"\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__indicator\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n >\n <rect width=\"24\" height=\"24\" rx=\"4\" />\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M10.2857 16L6 12.1538L7.2 11.0769L10.2857 13.8462L16.8 8L18 9.07692L10.2857 16Z\"\n fill=\"white\"\n />\n </svg>\n </div>\n <div class=\"aeb-checkbox__label\" *ngIf=\"hasText\">\n <ng-content></ng-content>\n </div>\n</label>\n", styles: [".aeb-checkbox{--checkbox-color-default: var(--color-blue-brand);--checkbox-color-hover: var(--color-blue-brand-dark);--checkbox-color-active: var(--color-blue-dark);--checkbox-color-disabled: var(--color-blue-light);--checkbox-color-error: var(--color-red-neutral);--checkbox-color-error-hover: var(--color-red-light-neutral);--checkbox-color-error-active: var(--color-red-dark-neutral);--text-color-default: var(--color-mono-brand-dark);--text-color-alternate: var(--color-mono-gray-darker);display:block;box-sizing:border-box;width:-moz-fit-content;width:fit-content;-webkit-tap-highlight-color:transparent}.aeb-checkbox label{display:flex;align-items:flex-start;justify-content:flex-start;cursor:pointer;gap:12px}.aeb-checkbox__indicator{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:24px;height:24px;background-color:transparent;border:var(--border-skinny) solid var(--checkbox-color-default);border-radius:var(--border-lightly-rounded)}.aeb-checkbox__indicator>svg{opacity:var(--100-total)}.aeb-checkbox__label{font:var(--web-tp-body-16-r);line-height:20px;color:var(--text-color-default);-webkit-user-select:none;user-select:none;align-self:center}.aeb-checkbox--checked .aeb-checkbox__indicator{border:none;border-width:0}.aeb-checkbox--checked .aeb-checkbox__indicator>svg{opacity:var(--0-zero)}.aeb-checkbox--checked .aeb-checkbox__indicator>svg rect{fill:var(--checkbox-color-default)}.aeb-checkbox--error .aeb-checkbox__indicator{border-color:var(--checkbox-color-error)}.aeb-checkbox--error .aeb-checkbox__label{color:var(--text-color-alternate)}.aeb-checkbox--disabled{pointer-events:none}.aeb-checkbox--disabled label{cursor:default}.aeb-checkbox--disabled .aeb-checkbox__indicator{border-color:var(--checkbox-color-disabled)}.aeb-checkbox--disabled .aeb-checkbox__label{color:var(--text-color-alternate)}.aeb-checkbox.aeb-checkbox--checked.aeb-checkbox--error .aeb-checkbox__indicator>svg rect{fill:var(--checkbox-color-error)}.aeb-checkbox.aeb-checkbox--checked.aeb-checkbox--disabled .aeb-checkbox__indicator>svg rect{fill:var(--checkbox-color-disabled)}@media (hover: hover){.aeb-checkbox:hover .aeb-checkbox__indicator{border-color:var(--checkbox-color-hover)}.aeb-checkbox:hover.aeb-checkbox--checked svg rect{fill:var(--checkbox-color-hover)}.aeb-checkbox:hover.aeb-checkbox--error .aeb-checkbox__indicator{border-color:var(--checkbox-color-error-hover)}.aeb-checkbox:hover.aeb-checkbox--checked.aeb-checkbox--error svg rect{fill:var(--checkbox-color-error-hover)}}.aeb-checkbox:active .aeb-checkbox__indicator{border-color:var(--checkbox-color-active)}.aeb-checkbox:active.aeb-checkbox--checked svg rect{fill:var(--checkbox-color-active)}.aeb-checkbox:active.aeb-checkbox--error .aeb-checkbox__indicator{border-color:var(--checkbox-color-error-active)}.aeb-checkbox:active.aeb-checkbox--checked.aeb-checkbox--error svg rect{fill:var(--checkbox-color-error-active)}body.dark .aeb-checkbox{--checkbox-color-default: var(--color-blue-brand-light);--checkbox-color-hover: var(--color-blue-brand);--checkbox-color-active: var(--color-blue-brand-dark);--checkbox-color-disabled: var(--color-mono-brand-dark);--checkbox-color-error: var(--color-red-neutral);--checkbox-color-error-hover: var(--color-red-light-neutral);--checkbox-color-error-active: var(--color-red-dark-neutral);--text-color-default: var(--color-mono-clear);--text-color-alternate: var(--color-mono-gray-soft)}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
158
157
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CheckboxComponent, decorators: [{
159
158
  type: Component,
160
159
  args: [{ selector: 'aeb-checkbox', encapsulation: ViewEncapsulation.None, providers: [
@@ -163,7 +162,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
163
162
  useExisting: forwardRef(() => CheckboxComponent),
164
163
  multi: true
165
164
  }
166
- ], template: "<label [attr.for]=\"id\" class=\"aeb-checkbox-layout\">\n <div class=\"aeb-checkbox-container\">\n <input\n #checkbox\n type=\"checkbox\"\n [id]=\"id\"\n [attr.name]=\"name\"\n [checked]=\"isChecked\"\n [disabled]=\"isDisabled\"\n (change)=\"handleChange($event)\"\n hidden\n />\n <div class=\"aeb-checkbox-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-label\">\n <ng-content></ng-content>\n </div>\n </div>\n</label>\n", styles: [".aeb-checkbox-container{display:inline-flex;align-items:flex-start;justify-content:flex-start;cursor:pointer}.aeb-checkbox-layout{display:flex;color:var(--color-mono-brand-dark);-webkit-user-select:none;user-select:none}.aeb-checkbox-indicator{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:22px;height:22px;background-color:var(--color-mono-clear);border:var(--border-skinny) solid var(--gray-primary);border-radius:var(--border-lightly-rounded)}.aeb-checkbox-indicator>svg{opacity:var(--100-total)}@media (hover: hover){.aeb-checkbox-indicator:hover{border:var(--border-skinny) solid var(--color-turquoise-neutral)}.aeb-checkbox-indicator:active{position:relative;padding:2px;background-image:var(--active-gradient);border:var(--no-border)}.aeb-checkbox-indicator:active:before{position:absolute;top:2px;left:2px;z-index:0;width:18px;height:18px;content:\"\";background-color:var(--color-mono-clear);border-radius:2px}}.aeb-checkbox-label{margin-top:1px;margin-left:12px;font:var(--web-tp-body-16-r);line-height:22px;color:var(--color-mono-brand-dark);-webkit-user-select:none;user-select:none}.aeb-checkbox-checked .aeb-checkbox-indicator{background-color:var(--color-blue-brand);border-color:var(--color-blue-brand)}.aeb-checkbox-checked .aeb-checkbox-indicator>svg{opacity:var(--0-zero)}@media (hover: hover){.aeb-checkbox-checked .aeb-checkbox-indicator:hover{background-color:var(--color-turquoise-neutral);border:var(--border-skinny) solid var(--color-turquoise-neutral)}.aeb-checkbox-checked .aeb-checkbox-indicator:active{background-image:var(--active-gradient)}.aeb-checkbox-checked .aeb-checkbox-indicator:active:hover{background-image:var(--active-gradient);border:var(--no-border)}.aeb-checkbox-checked .aeb-checkbox-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-disabled .aeb-checkbox-indicator{border:var(--border-skinny) solid var(--gray-primary)}@media (hover: hover){.aeb-checkbox-disabled .aeb-checkbox-indicator:hover{border:var(--border-skinny) solid var(--gray-primary)}.aeb-checkbox-disabled .aeb-checkbox-indicator:active{background:white!important;border:var(--border-skinny) solid var(--gray-primary)!important}.aeb-checkbox-disabled .aeb-checkbox-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-disabled .aeb-checkbox-label{opacity:.6}.aeb-checkbox-checked-disabled .aeb-checkbox-indicator{background:var(--gray-primary)}@media (hover: hover){.aeb-checkbox-checked-disabled .aeb-checkbox-indicator:hover{background:var(--gray-primary)}.aeb-checkbox-checked-disabled .aeb-checkbox-indicator:active{background:var(--gray-primary)!important;border:var(--no-border)!important}.aeb-checkbox-checked-disabled .aeb-checkbox-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-error .aeb-checkbox-indicator{color:var(--color-red-neutral)!important;border-color:var(--color-red-neutral)!important}.aeb-checkbox-error .aeb-checkbox-label{color:var(--color-red-neutral)!important}\n"] }]
165
+ ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<label [attr.for]=\"id\">\n <input\n #checkbox\n type=\"checkbox\"\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__indicator\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n >\n <rect width=\"24\" height=\"24\" rx=\"4\" />\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M10.2857 16L6 12.1538L7.2 11.0769L10.2857 13.8462L16.8 8L18 9.07692L10.2857 16Z\"\n fill=\"white\"\n />\n </svg>\n </div>\n <div class=\"aeb-checkbox__label\" *ngIf=\"hasText\">\n <ng-content></ng-content>\n </div>\n</label>\n", styles: [".aeb-checkbox{--checkbox-color-default: var(--color-blue-brand);--checkbox-color-hover: var(--color-blue-brand-dark);--checkbox-color-active: var(--color-blue-dark);--checkbox-color-disabled: var(--color-blue-light);--checkbox-color-error: var(--color-red-neutral);--checkbox-color-error-hover: var(--color-red-light-neutral);--checkbox-color-error-active: var(--color-red-dark-neutral);--text-color-default: var(--color-mono-brand-dark);--text-color-alternate: var(--color-mono-gray-darker);display:block;box-sizing:border-box;width:-moz-fit-content;width:fit-content;-webkit-tap-highlight-color:transparent}.aeb-checkbox label{display:flex;align-items:flex-start;justify-content:flex-start;cursor:pointer;gap:12px}.aeb-checkbox__indicator{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:24px;height:24px;background-color:transparent;border:var(--border-skinny) solid var(--checkbox-color-default);border-radius:var(--border-lightly-rounded)}.aeb-checkbox__indicator>svg{opacity:var(--100-total)}.aeb-checkbox__label{font:var(--web-tp-body-16-r);line-height:20px;color:var(--text-color-default);-webkit-user-select:none;user-select:none;align-self:center}.aeb-checkbox--checked .aeb-checkbox__indicator{border:none;border-width:0}.aeb-checkbox--checked .aeb-checkbox__indicator>svg{opacity:var(--0-zero)}.aeb-checkbox--checked .aeb-checkbox__indicator>svg rect{fill:var(--checkbox-color-default)}.aeb-checkbox--error .aeb-checkbox__indicator{border-color:var(--checkbox-color-error)}.aeb-checkbox--error .aeb-checkbox__label{color:var(--text-color-alternate)}.aeb-checkbox--disabled{pointer-events:none}.aeb-checkbox--disabled label{cursor:default}.aeb-checkbox--disabled .aeb-checkbox__indicator{border-color:var(--checkbox-color-disabled)}.aeb-checkbox--disabled .aeb-checkbox__label{color:var(--text-color-alternate)}.aeb-checkbox.aeb-checkbox--checked.aeb-checkbox--error .aeb-checkbox__indicator>svg rect{fill:var(--checkbox-color-error)}.aeb-checkbox.aeb-checkbox--checked.aeb-checkbox--disabled .aeb-checkbox__indicator>svg rect{fill:var(--checkbox-color-disabled)}@media (hover: hover){.aeb-checkbox:hover .aeb-checkbox__indicator{border-color:var(--checkbox-color-hover)}.aeb-checkbox:hover.aeb-checkbox--checked svg rect{fill:var(--checkbox-color-hover)}.aeb-checkbox:hover.aeb-checkbox--error .aeb-checkbox__indicator{border-color:var(--checkbox-color-error-hover)}.aeb-checkbox:hover.aeb-checkbox--checked.aeb-checkbox--error svg rect{fill:var(--checkbox-color-error-hover)}}.aeb-checkbox:active .aeb-checkbox__indicator{border-color:var(--checkbox-color-active)}.aeb-checkbox:active.aeb-checkbox--checked svg rect{fill:var(--checkbox-color-active)}.aeb-checkbox:active.aeb-checkbox--error .aeb-checkbox__indicator{border-color:var(--checkbox-color-error-active)}.aeb-checkbox:active.aeb-checkbox--checked.aeb-checkbox--error svg rect{fill:var(--checkbox-color-error-active)}body.dark .aeb-checkbox{--checkbox-color-default: var(--color-blue-brand-light);--checkbox-color-hover: var(--color-blue-brand);--checkbox-color-active: var(--color-blue-brand-dark);--checkbox-color-disabled: var(--color-mono-brand-dark);--checkbox-color-error: var(--color-red-neutral);--checkbox-color-error-hover: var(--color-red-light-neutral);--checkbox-color-error-active: var(--color-red-dark-neutral);--text-color-default: var(--color-mono-clear);--text-color-alternate: var(--color-mono-gray-soft)}\n"] }]
167
166
  }], ctorParameters: function () { return [{ type: i0.Renderer2 }]; }, propDecorators: { checkboxInput: [{
168
167
  type: ViewChild,
169
168
  args: ['checkbox', { static: true }]
@@ -175,6 +174,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
175
174
  type: Input
176
175
  }], isValid: [{
177
176
  type: Input
177
+ }], hasText: [{
178
+ type: Input
178
179
  }], name: [{
179
180
  type: Input
180
181
  }], change: [{
@@ -184,16 +185,134 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
184
185
  args: ['class.aeb-checkbox']
185
186
  }], checkboxChecked: [{
186
187
  type: HostBinding,
187
- args: ['class.aeb-checkbox-checked']
188
+ args: ['class.aeb-checkbox--checked']
188
189
  }], checkboxDisabled: [{
189
190
  type: HostBinding,
190
- args: ['class.aeb-checkbox-disabled']
191
+ args: ['class.aeb-checkbox--disabled']
191
192
  }], checkboxError: [{
192
193
  type: HostBinding,
193
- args: ['class.aeb-checkbox-error']
194
- }], checkboxCheckedDisabled: [{
194
+ args: ['class.aeb-checkbox--error']
195
+ }] } });
196
+
197
+ class CheckboxModule {
198
+ }
199
+ CheckboxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CheckboxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
200
+ CheckboxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: CheckboxModule, declarations: [CheckboxComponent], imports: [CommonModule, FormsModule], exports: [CheckboxComponent] });
201
+ CheckboxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CheckboxModule, imports: [CommonModule, FormsModule] });
202
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CheckboxModule, decorators: [{
203
+ type: NgModule,
204
+ args: [{
205
+ declarations: [CheckboxComponent],
206
+ imports: [CommonModule, FormsModule],
207
+ exports: [CheckboxComponent]
208
+ }]
209
+ }] });
210
+
211
+ class CheckboxOldComponent {
212
+ constructor(renderer) {
213
+ this.renderer = renderer;
214
+ this.isChecked = false;
215
+ this.isDisabled = false;
216
+ this.isValid = true;
217
+ this.name = null;
218
+ // eslint-disable-next-line @angular-eslint/no-output-native
219
+ this.change = new EventEmitter();
220
+ this.checkBoxOldClass = true;
221
+ this._onChangeFn = () => { };
222
+ this._onTouched = () => { };
223
+ }
224
+ get checkboxOldChecked() {
225
+ return this.isChecked;
226
+ }
227
+ get checkboxOldDisabled() {
228
+ return this.isDisabled;
229
+ }
230
+ get checkboxOldError() {
231
+ return !this.isValid;
232
+ }
233
+ get checkboxOldCheckedDisabled() {
234
+ return this.isChecked && this.isDisabled;
235
+ }
236
+ handleChange(event) {
237
+ console.log('dds');
238
+ event.stopPropagation();
239
+ this.isChecked = !this.isChecked;
240
+ this._onTouched();
241
+ this._onChangeFn(this.isChecked);
242
+ this.change.emit(event.target.checked);
243
+ }
244
+ writeValue(value) {
245
+ if (value === null || value === '') {
246
+ return;
247
+ }
248
+ this.isChecked = !!value;
249
+ }
250
+ registerOnChange(fn) {
251
+ this._onChangeFn = fn;
252
+ }
253
+ registerOnTouched(fn) {
254
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
255
+ this._onTouched = fn;
256
+ }
257
+ setDisabledState(isDisabled) {
258
+ this.isDisabled = isDisabled;
259
+ this.renderer.setProperty(this.checkboxOldInput.nativeElement, 'disabled', isDisabled);
260
+ }
261
+ ngOnChanges(changes) {
262
+ if (changes.isChecked) {
263
+ this._onTouched();
264
+ this._onChangeFn(changes.isChecked.currentValue);
265
+ this.change.emit(changes.isChecked.currentValue);
266
+ }
267
+ }
268
+ }
269
+ CheckboxOldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CheckboxOldComponent, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
270
+ CheckboxOldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: CheckboxOldComponent, 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: [
271
+ {
272
+ provide: NG_VALUE_ACCESSOR,
273
+ useExisting: forwardRef(() => CheckboxOldComponent),
274
+ multi: true
275
+ }
276
+ ], 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></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(--darkblue);-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(--white);border:2px solid var(--gray-primary);border-radius:4px}.aeb-checkbox-old-indicator>svg{opacity:0}@media (hover: hover){.aeb-checkbox-old-indicator:hover{border:2px solid var(--blue-turquoise)}.aeb-checkbox-old-indicator:active{position:relative;padding:2px;background-image:var(--active-gradient);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(--darkblue);-webkit-user-select:none;user-select:none}.aeb-checkbox-old-checked .aeb-checkbox-old-indicator{background-color:var(--blue);border-color:var(--blue)}.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(--blue-turquoise);border:2px solid var(--blue-turquoise)}.aeb-checkbox-old-checked .aeb-checkbox-old-indicator:active{background-image:var(--active-gradient)}.aeb-checkbox-old-checked .aeb-checkbox-old-indicator:active:hover{background-image:var(--active-gradient);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(--gray-primary)}@media (hover: hover){.aeb-checkbox-old-disabled .aeb-checkbox-old-indicator:hover{border:2px solid var(--gray-primary)}.aeb-checkbox-old-disabled .aeb-checkbox-old-indicator:active{background:white!important;border:2px solid var(--gray-primary)!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(--gray-primary)}@media (hover: hover){.aeb-checkbox-old-checked-disabled .aeb-checkbox-old-indicator:hover{background:var(--gray-primary)}.aeb-checkbox-old-checked-disabled .aeb-checkbox-old-indicator:active{background:var(--gray-primary)!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(--red)!important;border-color:var(--red)!important}.aeb-checkbox-old-error .aeb-checkbox-old-label{color:var(--red)!important}\n"], encapsulation: i0.ViewEncapsulation.None });
277
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CheckboxOldComponent, decorators: [{
278
+ type: Component,
279
+ args: [{ selector: 'aeb-checkbox-old', encapsulation: ViewEncapsulation.None, providers: [
280
+ {
281
+ provide: NG_VALUE_ACCESSOR,
282
+ useExisting: forwardRef(() => CheckboxOldComponent),
283
+ multi: true
284
+ }
285
+ ], 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></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(--darkblue);-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(--white);border:2px solid var(--gray-primary);border-radius:4px}.aeb-checkbox-old-indicator>svg{opacity:0}@media (hover: hover){.aeb-checkbox-old-indicator:hover{border:2px solid var(--blue-turquoise)}.aeb-checkbox-old-indicator:active{position:relative;padding:2px;background-image:var(--active-gradient);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(--darkblue);-webkit-user-select:none;user-select:none}.aeb-checkbox-old-checked .aeb-checkbox-old-indicator{background-color:var(--blue);border-color:var(--blue)}.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(--blue-turquoise);border:2px solid var(--blue-turquoise)}.aeb-checkbox-old-checked .aeb-checkbox-old-indicator:active{background-image:var(--active-gradient)}.aeb-checkbox-old-checked .aeb-checkbox-old-indicator:active:hover{background-image:var(--active-gradient);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(--gray-primary)}@media (hover: hover){.aeb-checkbox-old-disabled .aeb-checkbox-old-indicator:hover{border:2px solid var(--gray-primary)}.aeb-checkbox-old-disabled .aeb-checkbox-old-indicator:active{background:white!important;border:2px solid var(--gray-primary)!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(--gray-primary)}@media (hover: hover){.aeb-checkbox-old-checked-disabled .aeb-checkbox-old-indicator:hover{background:var(--gray-primary)}.aeb-checkbox-old-checked-disabled .aeb-checkbox-old-indicator:active{background:var(--gray-primary)!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(--red)!important;border-color:var(--red)!important}.aeb-checkbox-old-error .aeb-checkbox-old-label{color:var(--red)!important}\n"] }]
286
+ }], ctorParameters: function () { return [{ type: i0.Renderer2 }]; }, propDecorators: { checkboxOldInput: [{
287
+ type: ViewChild,
288
+ args: ['checkbox-old', { static: true }]
289
+ }], id: [{
290
+ type: Input
291
+ }], isChecked: [{
292
+ type: Input
293
+ }], isDisabled: [{
294
+ type: Input
295
+ }], isValid: [{
296
+ type: Input
297
+ }], name: [{
298
+ type: Input
299
+ }], change: [{
300
+ type: Output
301
+ }], checkBoxOldClass: [{
302
+ type: HostBinding,
303
+ args: ['class.aeb-checkbox-old']
304
+ }], checkboxOldChecked: [{
305
+ type: HostBinding,
306
+ args: ['class.aeb-checkbox-old-checked']
307
+ }], checkboxOldDisabled: [{
195
308
  type: HostBinding,
196
- args: ['class.aeb-checkbox-checked-disabled']
309
+ args: ['class.aeb-checkbox-old-disabled']
310
+ }], checkboxOldError: [{
311
+ type: HostBinding,
312
+ args: ['class.aeb-checkbox-old-error']
313
+ }], checkboxOldCheckedDisabled: [{
314
+ type: HostBinding,
315
+ args: ['class.aeb-checkbox-old-checked-disabled']
197
316
  }] } });
198
317
 
199
318
  /**
@@ -202,50 +321,52 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
202
321
  * работа с элементами формы (установка значения, валидация, включение/выключение) должна осуществляться
203
322
  * через поле `checkboxFormGroup`, а не через поля объектов `checkboxArray`
204
323
  */
205
- class CheckboxGroupComponent {
324
+ class CheckboxGroupOldComponent {
206
325
  constructor(formBuilder) {
207
326
  this.formBuilder = formBuilder;
208
- this.checkboxArray = [];
209
- this.checkboxFormGroup = this.formBuilder.group({});
327
+ this.checkboxOldArray = [];
328
+ this.checkboxOldFormGroup = this.formBuilder.group({});
210
329
  }
211
330
  ngOnInit() {
212
- this.checkboxArray.forEach((checkBox) => {
213
- const checkboxControl = new FormControl({
214
- value: checkBox.checked,
215
- disabled: checkBox.disabled
216
- }, checkBox.required ? Validators.requiredTrue : Validators.nullValidator);
217
- this.checkboxFormGroup.addControl(checkBox.name, checkboxControl);
331
+ this.checkboxOldArray.forEach((checkBoxOld) => {
332
+ const checkboxOldControl = new FormControl({
333
+ value: checkBoxOld.checked,
334
+ disabled: checkBoxOld.disabled
335
+ }, checkBoxOld.required
336
+ ? Validators.requiredTrue
337
+ : Validators.nullValidator);
338
+ this.checkboxOldFormGroup.addControl(checkBoxOld.name, checkboxOldControl);
218
339
  });
219
340
  }
220
- isControlValid(checkbox) {
221
- if (checkbox.checkValidationAfterUncheck &&
222
- !this.checkboxFormGroup.get(checkbox.name).dirty &&
223
- !this.checkboxFormGroup.get(checkbox.name).touched) {
341
+ isControlValid(checkboxOld) {
342
+ if (checkboxOld.checkValidationAfterUncheck &&
343
+ !this.checkboxOldFormGroup.get(checkboxOld.name).dirty &&
344
+ !this.checkboxOldFormGroup.get(checkboxOld.name).touched) {
224
345
  return true;
225
346
  }
226
- return this.checkboxFormGroup.get(checkbox.name)?.valid;
347
+ return this.checkboxOldFormGroup.get(checkboxOld.name)?.valid;
227
348
  }
228
349
  }
229
- CheckboxGroupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CheckboxGroupComponent, deps: [{ token: i1$1.FormBuilder }], target: i0.ɵɵFactoryTarget.Component });
230
- CheckboxGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: CheckboxGroupComponent, 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 <aeb-checkbox\n class=\"aeb-checkbox-layout\"\n *ngFor=\"let data of checkboxArray\"\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</form>\n", styles: [".aeb-checkbox-group__header{margin-bottom:16px;font-size:var(--font-size-s);color:var(--gray-primary)}.aeb-checkbox-layout{margin-bottom:16px}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: CheckboxComponent, selector: "aeb-checkbox", inputs: ["id", "isChecked", "isDisabled", "isValid", "name"], outputs: ["change"] }], encapsulation: i0.ViewEncapsulation.None });
231
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CheckboxGroupComponent, decorators: [{
350
+ CheckboxGroupOldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CheckboxGroupOldComponent, deps: [{ token: i1$1.FormBuilder }], target: i0.ɵɵFactoryTarget.Component });
351
+ CheckboxGroupOldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: CheckboxGroupOldComponent, selector: "aeb-checkbox-group", inputs: { checkboxOldArray: "checkboxOldArray" }, ngImport: i0, template: "<div class=\"aeb-checkbox-group-old__header\">\u0413\u0440\u0443\u043F\u043F\u0430 \u0447\u0435\u043A\u0431\u043E\u043A\u0441\u043E\u0432</div>\n<form [formGroup]=\"checkboxOldFormGroup\">\n <aeb-checkbox-old\n class=\"aeb-checkbox-layout\"\n *ngFor=\"let data of checkboxOldArray\"\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-old>\n</form>\n", styles: [".aeb-checkbox-group-old__header{margin-bottom:16px;font-size:var(--font-size-s);color:var(--gray-primary)}.aeb-checkbox-layout{margin-bottom:16px}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: CheckboxOldComponent, selector: "aeb-checkbox-old", inputs: ["id", "isChecked", "isDisabled", "isValid", "name"], outputs: ["change"] }] });
352
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CheckboxGroupOldComponent, decorators: [{
232
353
  type: Component,
233
- args: [{ selector: 'aeb-checkbox-group', encapsulation: ViewEncapsulation.None, 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 <aeb-checkbox\n class=\"aeb-checkbox-layout\"\n *ngFor=\"let data of checkboxArray\"\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</form>\n", styles: [".aeb-checkbox-group__header{margin-bottom:16px;font-size:var(--font-size-s);color:var(--gray-primary)}.aeb-checkbox-layout{margin-bottom:16px}\n"] }]
234
- }], ctorParameters: function () { return [{ type: i1$1.FormBuilder }]; }, propDecorators: { checkboxArray: [{
354
+ args: [{ selector: 'aeb-checkbox-group', template: "<div class=\"aeb-checkbox-group-old__header\">\u0413\u0440\u0443\u043F\u043F\u0430 \u0447\u0435\u043A\u0431\u043E\u043A\u0441\u043E\u0432</div>\n<form [formGroup]=\"checkboxOldFormGroup\">\n <aeb-checkbox-old\n class=\"aeb-checkbox-layout\"\n *ngFor=\"let data of checkboxOldArray\"\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-old>\n</form>\n", styles: [".aeb-checkbox-group-old__header{margin-bottom:16px;font-size:var(--font-size-s);color:var(--gray-primary)}.aeb-checkbox-layout{margin-bottom:16px}\n"] }]
355
+ }], ctorParameters: function () { return [{ type: i1$1.FormBuilder }]; }, propDecorators: { checkboxOldArray: [{
235
356
  type: Input
236
357
  }] } });
237
358
 
238
- class CheckboxModule {
359
+ class CheckboxOldModule {
239
360
  }
240
- CheckboxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CheckboxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
241
- CheckboxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: CheckboxModule, declarations: [CheckboxComponent, CheckboxGroupComponent], imports: [CommonModule, FormsModule, ReactiveFormsModule], exports: [CheckboxComponent, CheckboxGroupComponent] });
242
- CheckboxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CheckboxModule, imports: [CommonModule, FormsModule, ReactiveFormsModule] });
243
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CheckboxModule, decorators: [{
361
+ CheckboxOldModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CheckboxOldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
362
+ CheckboxOldModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: CheckboxOldModule, declarations: [CheckboxOldComponent, CheckboxGroupOldComponent], imports: [CommonModule, FormsModule, ReactiveFormsModule], exports: [CheckboxOldComponent, CheckboxGroupOldComponent] });
363
+ CheckboxOldModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CheckboxOldModule, imports: [CommonModule, FormsModule, ReactiveFormsModule] });
364
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CheckboxOldModule, decorators: [{
244
365
  type: NgModule,
245
366
  args: [{
246
- declarations: [CheckboxComponent, CheckboxGroupComponent],
367
+ declarations: [CheckboxOldComponent, CheckboxGroupOldComponent],
247
368
  imports: [CommonModule, FormsModule, ReactiveFormsModule],
248
- exports: [CheckboxComponent, CheckboxGroupComponent]
369
+ exports: [CheckboxOldComponent, CheckboxGroupOldComponent]
249
370
  }]
250
371
  }] });
251
372
 
@@ -4783,6 +4904,7 @@ AebUiKitModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version:
4783
4904
  AebUiKitModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: AebUiKitModule, imports: [CodeInputModule,
4784
4905
  NewButtonModule,
4785
4906
  CheckboxModule,
4907
+ CheckboxOldModule,
4786
4908
  HeaderModule,
4787
4909
  SidebarModule,
4788
4910
  SliderModule,
@@ -4816,6 +4938,7 @@ AebUiKitModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version:
4816
4938
  ModalModule,
4817
4939
  ResponseModule], exports: [NewButtonModule,
4818
4940
  CheckboxModule,
4941
+ CheckboxOldModule,
4819
4942
  HeaderModule,
4820
4943
  SidebarModule,
4821
4944
  SliderModule,
@@ -4851,6 +4974,7 @@ AebUiKitModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version:
4851
4974
  AebUiKitModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: AebUiKitModule, imports: [CodeInputModule,
4852
4975
  NewButtonModule,
4853
4976
  CheckboxModule,
4977
+ CheckboxOldModule,
4854
4978
  HeaderModule,
4855
4979
  SidebarModule,
4856
4980
  SliderModule,
@@ -4884,6 +5008,7 @@ AebUiKitModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version:
4884
5008
  ModalModule,
4885
5009
  ResponseModule, NewButtonModule,
4886
5010
  CheckboxModule,
5011
+ CheckboxOldModule,
4887
5012
  HeaderModule,
4888
5013
  SidebarModule,
4889
5014
  SliderModule,
@@ -4924,6 +5049,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
4924
5049
  CodeInputModule,
4925
5050
  NewButtonModule,
4926
5051
  CheckboxModule,
5052
+ CheckboxOldModule,
4927
5053
  HeaderModule,
4928
5054
  SidebarModule,
4929
5055
  SliderModule,
@@ -4960,6 +5086,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
4960
5086
  exports: [
4961
5087
  NewButtonModule,
4962
5088
  CheckboxModule,
5089
+ CheckboxOldModule,
4963
5090
  HeaderModule,
4964
5091
  SidebarModule,
4965
5092
  SliderModule,
@@ -5238,5 +5365,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
5238
5365
  * Generated bundle index. Do not edit.
5239
5366
  */
5240
5367
 
5241
- export { AccordionComponent, AccordionModule, ActionBarComponent, ActionBarModule, AebUiKitModule, BreadcrumpsComponent, CheckboxComponent, CheckboxGroupComponent, CheckboxModule, ClickOutsideDirective, ClickOutsideModule, CodeInputComponent, CodeInputModule, CommentComponent, CommentModule, CreditItemCardComponent, CreditItemCardModule, DateToStrPipe, DatepickerComponent, DatepickerCoreComponent, DatepickerModule, DatepickerMonthComponent, DatepickerTilesComponent, DragAndDropDirective, DropdownComponent, DropdownModule, ErrorMessageDirective, FieldSliderComponent, FieldSliderModule, FileAttachComponent, FileAttachModule, FilterTagComponent, FilterTagsComponent, FilterTagsModule, FooterBottomComponent, FooterComponent, FooterMenuComponent, FooterModule, FooterTopComponent, FormFieldComponent, FormFieldDirective, FormFieldModule, HeaderComponent, HeaderModule, HeadingComponent, HeadingModule, IconDirective, LabelComponent, LabelDirective, LabelModule, LogoComponent, ModalComponent, ModalModule, NewButtonComponent, NewButtonModule, NewsCardComponent, NewsCardModule, NotificationComponent, NotificationsComponent, NotificationsModule, OptionComponent, PaginationComponent, PaginationModule, PaginationOldComponent, PaginationOldModule, PopUpComponent, PopUpDirective, PopUpModule, ProductTitleComponent, RadioButtonsComponent, RadioButtonsModule, ResponseComponent, ResponseModule, SearchComponent, SearchModule, SelectComponent, SelectModule, SidebarComponent, SidebarModule, SliderComponent, SliderModule, SpanSubtitleDirective, SpanTitleDirective, SpinnerComponent, SpinnerModule, StepperComponent, StepperModule, StepperStepComponent, TabDirective, TableComponent, TableModule, TabsComponent, TabsModule, TagTabComponent, TagTabModule, TooltipComponent, TooltipDirective, TooltipModule, VisaComponent, VisaItemComponent, VisaModule };
5368
+ export { AccordionComponent, AccordionModule, ActionBarComponent, ActionBarModule, AebUiKitModule, BreadcrumpsComponent, CheckboxComponent, CheckboxGroupOldComponent, CheckboxModule, CheckboxOldComponent, CheckboxOldModule, ClickOutsideDirective, ClickOutsideModule, CodeInputComponent, CodeInputModule, CommentComponent, CommentModule, CreditItemCardComponent, CreditItemCardModule, DateToStrPipe, DatepickerComponent, DatepickerCoreComponent, DatepickerModule, DatepickerMonthComponent, DatepickerTilesComponent, DragAndDropDirective, DropdownComponent, DropdownModule, ErrorMessageDirective, FieldSliderComponent, FieldSliderModule, FileAttachComponent, FileAttachModule, FilterTagComponent, FilterTagsComponent, FilterTagsModule, FooterBottomComponent, FooterComponent, FooterMenuComponent, FooterModule, FooterTopComponent, FormFieldComponent, FormFieldDirective, FormFieldModule, HeaderComponent, HeaderModule, HeadingComponent, HeadingModule, IconDirective, LabelComponent, LabelDirective, LabelModule, LogoComponent, ModalComponent, ModalModule, NewButtonComponent, NewButtonModule, NewsCardComponent, NewsCardModule, NotificationComponent, NotificationsComponent, NotificationsModule, OptionComponent, PaginationComponent, PaginationModule, PaginationOldComponent, PaginationOldModule, PopUpComponent, PopUpDirective, PopUpModule, ProductTitleComponent, RadioButtonsComponent, RadioButtonsModule, ResponseComponent, ResponseModule, SearchComponent, SearchModule, SelectComponent, SelectModule, SidebarComponent, SidebarModule, SliderComponent, SliderModule, SpanSubtitleDirective, SpanTitleDirective, SpinnerComponent, SpinnerModule, StepperComponent, StepperModule, StepperStepComponent, TabDirective, TableComponent, TableModule, TabsComponent, TabsModule, TagTabComponent, TagTabModule, TooltipComponent, TooltipDirective, TooltipModule, VisaComponent, VisaItemComponent, VisaModule };
5242
5369
  //# sourceMappingURL=aeb-ui-kit.mjs.map