aeb-ui-kit 2.1.0-mr.448-devops-update-ci → 2.1.0-mr.458-devops-update-ci
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/checkbox/checkbox-group/checkbox-group.component.mjs +25 -14
- package/esm2020/lib/checkbox/checkbox.component.mjs +40 -70
- package/esm2020/lib/code-input/code-input.module.mjs +5 -5
- package/esm2020/lib/comment/comment.component.mjs +8 -8
- package/esm2020/lib/comment/comment.module.mjs +7 -7
- package/esm2020/lib/field-slider/field-slider.component.mjs +3 -3
- package/esm2020/lib/footer/abstract/base-content-projectable.component.mjs +4 -2
- package/esm2020/lib/footer/footer-top/footer-top.component.mjs +2 -3
- package/esm2020/lib/tabs/tabs.component.mjs +3 -3
- package/fesm2015/aeb-ui-kit.mjs +82 -99
- package/fesm2015/aeb-ui-kit.mjs.map +1 -1
- package/fesm2020/aeb-ui-kit.mjs +81 -99
- package/fesm2020/aeb-ui-kit.mjs.map +1 -1
- package/lib/checkbox/checkbox-group/checkbox-group.component.d.ts +21 -8
- package/lib/checkbox/checkbox.component.d.ts +14 -21
- package/lib/code-input/code-input.module.d.ts +1 -1
- package/lib/comment/comment.module.d.ts +4 -4
- package/lib/footer/abstract/base-content-projectable.component.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,24 +1,37 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { FormBuilder, FormGroup } from '@angular/forms';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* @param label Текст, который будет находиться справа от чекбокса
|
|
6
|
+
* @param id Опциональное свойство, уникальный id чекбокса
|
|
7
|
+
* @param name Имя чекбокса, будет использоваться как имя Control'а в `checkboxFormGroup`
|
|
8
|
+
* @param checked Значение состояния чекбокса при инициализации
|
|
9
|
+
* @param required Включает валидацию, проверяющую, находится ли чекбокс в состоянии True
|
|
10
|
+
* @param checkValidationAfterUncheck Должна ли валидация происходить после изменения состояния (или же она должна осуществляться сразу)
|
|
11
|
+
* @param disabled Значение состояния контрола выключен/включен при инициализации
|
|
12
|
+
*/
|
|
4
13
|
export interface CheckBoxModel {
|
|
5
14
|
label: string;
|
|
6
|
-
id
|
|
15
|
+
id?: string;
|
|
7
16
|
name: string;
|
|
8
|
-
value: string;
|
|
9
17
|
checked: boolean;
|
|
10
18
|
required: boolean;
|
|
11
|
-
|
|
19
|
+
checkValidationAfterUncheck?: boolean;
|
|
12
20
|
disabled: boolean;
|
|
13
|
-
onChange?: (event: Event) => void;
|
|
14
21
|
}
|
|
22
|
+
/**
|
|
23
|
+
* Готовый компонент для группы чекбоксов. Принимает на вход в свойстве `checkboxArray` массив объектов,
|
|
24
|
+
* реализующих интерфейс `CheckBoxModel`. В целях обеспечения иммутабельности и явности,
|
|
25
|
+
* работа с элементами формы (установка значения, валидация, включение/выключение) должна осуществляться
|
|
26
|
+
* через поле `checkboxFormGroup`, а не через поля объектов `checkboxArray`
|
|
27
|
+
*/
|
|
15
28
|
export declare class CheckboxGroupComponent implements OnInit {
|
|
16
29
|
private formBuilder;
|
|
17
|
-
|
|
18
|
-
|
|
30
|
+
checkboxArray: CheckBoxModel[];
|
|
31
|
+
readonly checkboxFormGroup: FormGroup;
|
|
19
32
|
constructor(formBuilder: FormBuilder);
|
|
20
33
|
ngOnInit(): void;
|
|
21
|
-
|
|
34
|
+
isControlValid(checkbox: CheckBoxModel): boolean;
|
|
22
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxGroupComponent, never>;
|
|
23
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxGroupComponent, "aeb-checkbox-group", never, { "
|
|
36
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxGroupComponent, "aeb-checkbox-group", never, { "checkboxArray": "checkboxArray"; }, {}, never, never, false>;
|
|
24
37
|
}
|
|
@@ -1,35 +1,28 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ElementRef, Renderer2 } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor } from '@angular/forms';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class CheckboxComponent implements ControlValueAccessor {
|
|
5
|
-
private
|
|
5
|
+
private renderer;
|
|
6
|
+
checkboxInput: ElementRef;
|
|
6
7
|
id: string;
|
|
7
|
-
|
|
8
|
+
isValid: boolean;
|
|
8
9
|
name: string | null;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
private _required;
|
|
14
|
-
constructor(_changeDetectorRef: ChangeDetectorRef);
|
|
10
|
+
checkBoxClass: boolean;
|
|
11
|
+
isChecked: boolean;
|
|
12
|
+
isDisabled: boolean;
|
|
13
|
+
constructor(renderer: Renderer2);
|
|
15
14
|
get checkboxChecked(): boolean;
|
|
16
15
|
get checkboxDisabled(): boolean;
|
|
17
16
|
get checkboxError(): boolean;
|
|
18
17
|
get checkboxCheckedDisabled(): boolean;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
set checked(value: boolean);
|
|
23
|
-
get required(): boolean;
|
|
24
|
-
set required(value: boolean);
|
|
25
|
-
writeValue(value: any): void;
|
|
18
|
+
hostChangeHandler(event: Event): void;
|
|
19
|
+
handleClick(event: Event): void;
|
|
20
|
+
writeValue(value: unknown): void;
|
|
26
21
|
registerOnChange(fn: (value: any) => void): void;
|
|
27
22
|
registerOnTouched(fn: any): void;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
private _controlValueAccessorChangeFn;
|
|
23
|
+
setDisabledState(isDisabled: boolean): void;
|
|
24
|
+
private _onChangeFn;
|
|
31
25
|
private _onTouched;
|
|
32
|
-
private _emitChangeEvent;
|
|
33
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxComponent, never>;
|
|
34
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxComponent, "aeb-checkbox", never, { "id": "id"; "
|
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxComponent, "aeb-checkbox", never, { "id": "id"; "isValid": "isValid"; "name": "name"; }, {}, never, ["*"], false>;
|
|
35
28
|
}
|
|
@@ -4,6 +4,6 @@ import * as i2 from "@angular/common";
|
|
|
4
4
|
import * as i3 from "@angular/forms";
|
|
5
5
|
export declare class CodeInputModule {
|
|
6
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<CodeInputModule, never>;
|
|
7
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CodeInputModule, [typeof i1.CodeInputComponent], [typeof i2.CommonModule, typeof i3.FormsModule
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CodeInputModule, [typeof i1.CodeInputComponent], [typeof i2.CommonModule, typeof i3.FormsModule], [typeof i1.CodeInputComponent]>;
|
|
8
8
|
static ɵinj: i0.ɵɵInjectorDeclaration<CodeInputModule>;
|
|
9
9
|
}
|
|
@@ -2,11 +2,11 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
import * as i1 from "./comment.component";
|
|
3
3
|
import * as i2 from "@angular/common";
|
|
4
4
|
import * as i3 from "../tooltip/tooltip.module";
|
|
5
|
-
import * as i4 from "
|
|
6
|
-
import * as i5 from "
|
|
7
|
-
import * as i6 from "../
|
|
5
|
+
import * as i4 from "@angular/forms";
|
|
6
|
+
import * as i5 from "../new-button/new-button.module";
|
|
7
|
+
import * as i6 from "../form-field/form-field.module";
|
|
8
8
|
export declare class CommentModule {
|
|
9
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<CommentModule, never>;
|
|
10
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CommentModule, [typeof i1.CommentComponent], [typeof i2.CommonModule, typeof i3.TooltipModule, typeof i4.
|
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CommentModule, [typeof i1.CommentComponent], [typeof i2.CommonModule, typeof i3.TooltipModule, typeof i4.ReactiveFormsModule, typeof i5.NewButtonModule, typeof i6.FormFieldModule], [typeof i1.CommentComponent]>;
|
|
11
11
|
static ɵinj: i0.ɵɵInjectorDeclaration<CommentModule>;
|
|
12
12
|
}
|
|
@@ -3,6 +3,7 @@ import * as i0 from "@angular/core";
|
|
|
3
3
|
export declare abstract class BaseContentProjectableFooterComponent implements AfterViewInit {
|
|
4
4
|
content: ElementRef;
|
|
5
5
|
hasContent: boolean;
|
|
6
|
+
private cdr;
|
|
6
7
|
ngAfterViewInit(): void;
|
|
7
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaseContentProjectableFooterComponent, never>;
|
|
8
9
|
static ɵcmp: i0.ɵɵComponentDeclaration<BaseContentProjectableFooterComponent, "ng-component", never, {}, {}, never, never, false>;
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{ "name": "aeb-ui-kit", "version": "2.1.0-mr.
|
|
1
|
+
{ "name": "aeb-ui-kit", "version": "2.1.0-mr.458-devops-update-ci", "dependencies": { "@storybook/addon-docs": "^6.5.9", "storybook-addon-designs": "^6.3.1", "tslib": "^2.4.0" }, "peerDependencies": { "@angular/animations": "^13.0.0 || ^14.0.0 || ^15.0.0", "@angular/common": "^13.0.0 || ^14.0.0 || ^15.0.0", "@angular/compiler": "^13.0.0 || ^14.0.0 || ^15.0.0", "@angular/core": "^13.0.0 || ^14.0.0 || ^15.0.0", "@angular/forms": "^13.0.0 || ^14.0.0 || ^15.0.0", "@angular/platform-browser": "^13.0.0 || ^14.0.0 || ^15.0.0", "@angular/platform-browser-dynamic": "^13.0.0 || ^14.0.0 || ^15.0.0", "@angular/router": "^14.3.0", "date-fns": "2.28.0", "ngx-mask": "^14.2.4", "rxjs": "^7.8.1", "sass": "^1.53.0", "zone.js": "~0.11.4" }, "module": "fesm2015/aeb-ui-kit.mjs", "es2020": "fesm2020/aeb-ui-kit.mjs", "esm2020": "esm2020/aeb-ui-kit.mjs", "fesm2020": "fesm2020/aeb-ui-kit.mjs", "fesm2015": "fesm2015/aeb-ui-kit.mjs", "typings": "index.d.ts", "exports": { "./package.json": { "default": "./package.json" }, ".": { "types": "./index.d.ts", "esm2020": "./esm2020/aeb-ui-kit.mjs", "es2020": "./fesm2020/aeb-ui-kit.mjs", "es2015": "./fesm2015/aeb-ui-kit.mjs", "node": "./fesm2015/aeb-ui-kit.mjs", "default": "./fesm2020/aeb-ui-kit.mjs" } }, "sideEffects": false }
|