@koalarx/ui 13.2.8 → 14.0.0
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/alert/esm2020/lib/dialog-alert.component.mjs +8 -8
- package/alert/esm2020/lib/koala.alert.module.mjs +10 -12
- package/alert/esm2020/lib/koala.alert.service.mjs +4 -4
- package/alert/fesm2015/koalarx-ui-alert.mjs +22 -24
- package/alert/fesm2015/koalarx-ui-alert.mjs.map +1 -1
- package/alert/fesm2020/koalarx-ui-alert.mjs +22 -24
- package/alert/fesm2020/koalarx-ui-alert.mjs.map +1 -1
- package/alert/lib/dialog-alert.component.d.ts +1 -1
- package/alert/package.json +2 -2
- package/button/esm2020/lib/button.component.mjs +9 -9
- package/button/esm2020/lib/koala.button.module.mjs +9 -11
- package/button/fesm2015/koalarx-ui-button.mjs +18 -20
- package/button/fesm2015/koalarx-ui-button.mjs.map +1 -1
- package/button/fesm2020/koalarx-ui-button.mjs +18 -20
- package/button/fesm2020/koalarx-ui-button.mjs.map +1 -1
- package/button/lib/button.component.d.ts +1 -1
- package/button/package.json +2 -2
- package/common/esm2020/lib/services/csv/koala.csv.service.mjs +4 -4
- package/common/esm2020/lib/services/xlsx/koala.xlsx.service.mjs +4 -4
- package/common/fesm2015/koalarx-ui-common.mjs +6 -6
- package/common/fesm2015/koalarx-ui-common.mjs.map +1 -1
- package/common/fesm2020/koalarx-ui-common.mjs +6 -6
- package/common/fesm2020/koalarx-ui-common.mjs.map +1 -1
- package/common/package.json +2 -2
- package/core/esm2020/lib/loader/loader-bar-page.component.mjs +6 -6
- package/core/esm2020/lib/ngx-koala.module.mjs +8 -10
- package/core/esm2020/lib/page/koala.page.module.mjs +16 -18
- package/core/esm2020/lib/page/notifications/notification.component.mjs +11 -11
- package/core/esm2020/lib/page/page.component.mjs +11 -11
- package/core/esm2020/lib/router/koala.parameter-hash-location-stategy.mjs +4 -4
- package/core/esm2020/lib/services/api-requester/koala.api-requester.base.mjs +15 -7
- package/core/esm2020/lib/services/api-requester/koala.api-requester.service.mjs +4 -4
- package/core/esm2020/lib/services/loader/koala.loader.service.mjs +4 -4
- package/core/esm2020/lib/services/openid/koala.oauth2.service.mjs +4 -4
- package/core/esm2020/lib/services/request/koala.request.service.mjs +4 -4
- package/core/esm2020/lib/services/token/koala.token.service.mjs +4 -4
- package/core/fesm2015/koalarx-ui-core.mjs +89 -85
- package/core/fesm2015/koalarx-ui-core.mjs.map +1 -1
- package/core/fesm2020/koalarx-ui-core.mjs +89 -85
- package/core/fesm2020/koalarx-ui-core.mjs.map +1 -1
- package/core/lib/loader/loader-bar-page.component.d.ts +1 -1
- package/core/lib/page/notifications/notification.component.d.ts +1 -1
- package/core/lib/page/page.component.d.ts +1 -1
- package/core/lib/services/api-requester/koala.api-requester.base.d.ts +4 -2
- package/core/package.json +2 -2
- package/dialog/esm2020/lib/dialog.component.mjs +7 -7
- package/dialog/esm2020/lib/koala.dialog.module.mjs +8 -10
- package/dialog/esm2020/lib/koala.dialog.service.mjs +4 -4
- package/dialog/fesm2015/koalarx-ui-dialog.mjs +17 -19
- package/dialog/fesm2015/koalarx-ui-dialog.mjs.map +1 -1
- package/dialog/fesm2020/koalarx-ui-dialog.mjs +17 -19
- package/dialog/fesm2020/koalarx-ui-dialog.mjs.map +1 -1
- package/dialog/lib/dialog.component.d.ts +1 -1
- package/dialog/package.json +2 -2
- package/dynamic-component/esm2020/lib/koala-dynamic-component.directive.mjs +4 -4
- package/dynamic-component/esm2020/lib/koala-dynamic-component.factory.mjs +5 -5
- package/dynamic-component/esm2020/lib/koala-dynamic-component.module.mjs +5 -5
- package/dynamic-component/fesm2015/koalarx-ui-dynamic-component.mjs +11 -11
- package/dynamic-component/fesm2015/koalarx-ui-dynamic-component.mjs.map +1 -1
- package/dynamic-component/fesm2020/koalarx-ui-dynamic-component.mjs +11 -11
- package/dynamic-component/fesm2020/koalarx-ui-dynamic-component.mjs.map +1 -1
- package/dynamic-component/lib/koala-dynamic-component.directive.d.ts +1 -1
- package/dynamic-component/lib/koala-dynamic-component.factory.d.ts +1 -1
- package/dynamic-component/package.json +2 -2
- package/file-button/esm2020/lib/file-button.component.mjs +8 -8
- package/file-button/esm2020/lib/koala.btn-file.service.mjs +4 -4
- package/file-button/esm2020/lib/koala.file-button.module.mjs +8 -10
- package/file-button/fesm2015/koalarx-ui-file-button.mjs +19 -21
- package/file-button/fesm2015/koalarx-ui-file-button.mjs.map +1 -1
- package/file-button/fesm2020/koalarx-ui-file-button.mjs +19 -21
- package/file-button/fesm2020/koalarx-ui-file-button.mjs.map +1 -1
- package/file-button/lib/file-button.component.d.ts +1 -1
- package/file-button/package.json +2 -2
- package/folder-page/esm2020/lib/folder.component.mjs +8 -8
- package/folder-page/esm2020/lib/koala.folder-page.module.mjs +9 -11
- package/folder-page/fesm2015/koalarx-ui-folder-page.mjs +17 -19
- package/folder-page/fesm2015/koalarx-ui-folder-page.mjs.map +1 -1
- package/folder-page/fesm2020/koalarx-ui-folder-page.mjs +17 -19
- package/folder-page/fesm2020/koalarx-ui-folder-page.mjs.map +1 -1
- package/folder-page/lib/folder.component.d.ts +1 -1
- package/folder-page/package.json +2 -2
- package/form/esm2020/lib/btn-submit/btn-submit.component.mjs +7 -7
- package/form/esm2020/lib/directives/koala-autofocus.directive.mjs +4 -4
- package/form/esm2020/lib/dynamic-form/builder/dynamic-form.builder.mjs +1 -1
- package/form/esm2020/lib/dynamic-form/builder/fields/autocomplete.builder.mjs +1 -1
- package/form/esm2020/lib/dynamic-form/builder/fields/field.base.mjs +1 -1
- package/form/esm2020/lib/dynamic-form/builder/fields/field.builder.mjs +1 -1
- package/form/esm2020/lib/dynamic-form/builder/fields/more-items.builder.mjs +1 -1
- package/form/esm2020/lib/dynamic-form/dynamic-form.component.mjs +24 -24
- package/form/esm2020/lib/dynamic-form/interfaces/koala.dynamic-form-config.interface.mjs +1 -1
- package/form/esm2020/lib/dynamic-form/interfaces/koala.dynamic-form-field.interface.mjs +1 -1
- package/form/esm2020/lib/dynamic-form/koala.dynamic-form.service.mjs +5 -5
- package/form/esm2020/lib/form.abstract.mjs +1 -1
- package/form/esm2020/lib/koala.form.module.mjs +21 -23
- package/form/esm2020/lib/show-invalid-fields/show-invalid-fields.mjs +1 -1
- package/form/fesm2015/koalarx-ui-form.mjs +63 -65
- package/form/fesm2015/koalarx-ui-form.mjs.map +1 -1
- package/form/fesm2020/koalarx-ui-form.mjs +63 -65
- package/form/fesm2020/koalarx-ui-form.mjs.map +1 -1
- package/form/lib/btn-submit/btn-submit.component.d.ts +3 -3
- package/form/lib/directives/koala-autofocus.directive.d.ts +1 -1
- package/form/lib/dynamic-form/builder/dynamic-form.builder.d.ts +2 -2
- package/form/lib/dynamic-form/builder/fields/autocomplete.builder.d.ts +2 -2
- package/form/lib/dynamic-form/builder/fields/field.base.d.ts +3 -3
- package/form/lib/dynamic-form/builder/fields/field.builder.d.ts +2 -2
- package/form/lib/dynamic-form/builder/fields/more-items.builder.d.ts +2 -2
- package/form/lib/dynamic-form/dynamic-form.component.d.ts +5 -5
- package/form/lib/dynamic-form/interfaces/koala.dynamic-form-config.interface.d.ts +2 -2
- package/form/lib/dynamic-form/interfaces/koala.dynamic-form-field.interface.d.ts +2 -2
- package/form/lib/dynamic-form/koala.dynamic-form.service.d.ts +7 -7
- package/form/lib/form.abstract.d.ts +2 -2
- package/form/lib/show-invalid-fields/show-invalid-fields.d.ts +2 -2
- package/form/package.json +2 -2
- package/icon/esm2020/lib/icon.component.mjs +4 -4
- package/icon/esm2020/lib/koala.icon.module.mjs +5 -7
- package/icon/fesm2015/koalarx-ui-icon.mjs +7 -9
- package/icon/fesm2015/koalarx-ui-icon.mjs.map +1 -1
- package/icon/fesm2020/koalarx-ui-icon.mjs +7 -9
- package/icon/fesm2020/koalarx-ui-icon.mjs.map +1 -1
- package/icon/lib/icon.component.d.ts +1 -1
- package/icon/package.json +2 -2
- package/icons-animated/esm2020/lib/icons/downloading/downloading-icon-animated.component.mjs +4 -4
- package/icons-animated/esm2020/lib/icons/loading/loading-icon-animated.component.mjs +4 -4
- package/icons-animated/esm2020/lib/icons-animated.component.mjs +7 -7
- package/icons-animated/esm2020/lib/icons-animated.service.mjs +4 -4
- package/icons-animated/esm2020/lib/koala-icons-animated.module.mjs +5 -7
- package/icons-animated/fesm2015/koalarx-ui-icons-animated.mjs +17 -19
- package/icons-animated/fesm2015/koalarx-ui-icons-animated.mjs.map +1 -1
- package/icons-animated/fesm2020/koalarx-ui-icons-animated.mjs +17 -19
- package/icons-animated/fesm2020/koalarx-ui-icons-animated.mjs.map +1 -1
- package/icons-animated/lib/icons/downloading/downloading-icon-animated.component.d.ts +1 -1
- package/icons-animated/lib/icons/loading/loading-icon-animated.component.d.ts +1 -1
- package/icons-animated/lib/icons-animated.component.d.ts +1 -1
- package/icons-animated/package.json +2 -2
- package/list/esm2020/lib/koala.list.module.mjs +15 -17
- package/list/esm2020/lib/koala.list.service.mjs +4 -4
- package/list/esm2020/lib/list.abstract.mjs +1 -1
- package/list/esm2020/lib/list.component.mjs +20 -20
- package/list/esm2020/lib/providers/pagination/pagination.provider.mjs +4 -4
- package/list/fesm2015/koalarx-ui-list.mjs +40 -42
- package/list/fesm2015/koalarx-ui-list.mjs.map +1 -1
- package/list/fesm2020/koalarx-ui-list.mjs +40 -42
- package/list/fesm2020/koalarx-ui-list.mjs.map +1 -1
- package/list/lib/list.abstract.d.ts +2 -2
- package/list/lib/list.component.d.ts +4 -4
- package/list/package.json +2 -2
- package/menu/esm2020/lib/koala.menu.module.mjs +8 -10
- package/menu/esm2020/lib/koala.menu.service.mjs +4 -4
- package/menu/esm2020/lib/menu.component.mjs +7 -7
- package/menu/fesm2015/koalarx-ui-menu.mjs +17 -19
- package/menu/fesm2015/koalarx-ui-menu.mjs.map +1 -1
- package/menu/fesm2020/koalarx-ui-menu.mjs +17 -19
- package/menu/fesm2020/koalarx-ui-menu.mjs.map +1 -1
- package/menu/lib/menu.component.d.ts +1 -1
- package/menu/package.json +2 -2
- package/package.json +6 -6
- package/question/esm2020/lib/dialog-question.component.mjs +9 -9
- package/question/esm2020/lib/koala.question.module.mjs +9 -11
- package/question/esm2020/lib/koala.question.service.mjs +4 -4
- package/question/fesm2015/koalarx-ui-question.mjs +21 -23
- package/question/fesm2015/koalarx-ui-question.mjs.map +1 -1
- package/question/fesm2020/koalarx-ui-question.mjs +21 -23
- package/question/fesm2020/koalarx-ui-question.mjs.map +1 -1
- package/question/lib/dialog-question.component.d.ts +1 -1
- package/question/package.json +2 -2
- package/snackbar/esm2020/lib/koala.snackbar.component.mjs +4 -4
- package/snackbar/esm2020/lib/koala.snackbar.module.mjs +7 -9
- package/snackbar/esm2020/lib/koala.snackbar.service.mjs +4 -4
- package/snackbar/fesm2015/koalarx-ui-snackbar.mjs +12 -14
- package/snackbar/fesm2015/koalarx-ui-snackbar.mjs.map +1 -1
- package/snackbar/fesm2020/koalarx-ui-snackbar.mjs +12 -14
- package/snackbar/fesm2020/koalarx-ui-snackbar.mjs.map +1 -1
- package/snackbar/lib/koala.snackbar.component.d.ts +1 -1
- package/snackbar/package.json +2 -2
- package/alert/koalarx-ui-alert.d.ts +0 -5
- package/button/koalarx-ui-button.d.ts +0 -5
- package/common/koalarx-ui-common.d.ts +0 -5
- package/core/koalarx-ui-core.d.ts +0 -5
- package/dialog/koalarx-ui-dialog.d.ts +0 -5
- package/dynamic-component/koalarx-ui-dynamic-component.d.ts +0 -5
- package/file-button/koalarx-ui-file-button.d.ts +0 -5
- package/folder-page/koalarx-ui-folder-page.d.ts +0 -5
- package/form/koalarx-ui-form.d.ts +0 -5
- package/icon/koalarx-ui-icon.d.ts +0 -5
- package/icons-animated/koalarx-ui-icons-animated.d.ts +0 -5
- package/list/koalarx-ui-list.d.ts +0 -5
- package/menu/koalarx-ui-menu.d.ts +0 -5
- package/question/koalarx-ui-question.d.ts +0 -5
- package/snackbar/koalarx-ui-snackbar.d.ts +0 -5
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { UntypedFormGroup } from '@angular/forms';
|
|
3
3
|
import { ThemePalette } from '@angular/material/core';
|
|
4
4
|
import { BehaviorSubject } from 'rxjs';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class BtnSubmitComponent implements OnInit, OnChanges {
|
|
7
|
-
fg:
|
|
7
|
+
fg: UntypedFormGroup;
|
|
8
8
|
color: ThemePalette;
|
|
9
9
|
btnLabel: string;
|
|
10
10
|
btnSubmitDisabled: boolean;
|
|
@@ -16,5 +16,5 @@ export declare class BtnSubmitComponent implements OnInit, OnChanges {
|
|
|
16
16
|
ngOnInit(): void;
|
|
17
17
|
ngOnChanges(changes: SimpleChanges): void;
|
|
18
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<BtnSubmitComponent, never>;
|
|
19
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BtnSubmitComponent, "koala-submit", never, { "fg": "fg"; "color": "color"; "btnLabel": "btnLabel"; "btnSubmitDisabled": "btnSubmitDisabled"; "loader": "loader"; "iconButton": "iconButton"; "icon": "icon"; "iconColor": "iconColor"; }, {}, never, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BtnSubmitComponent, "koala-submit", never, { "fg": "fg"; "color": "color"; "btnLabel": "btnLabel"; "btnSubmitDisabled": "btnSubmitDisabled"; "loader": "loader"; "iconButton": "iconButton"; "icon": "icon"; "iconColor": "iconColor"; }, {}, never, never, false>;
|
|
20
20
|
}
|
|
@@ -6,5 +6,5 @@ export declare class KoalaAutofocusDirective implements AfterContentInit {
|
|
|
6
6
|
constructor(el: ElementRef);
|
|
7
7
|
ngAfterContentInit(): void;
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<KoalaAutofocusDirective, never>;
|
|
9
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<KoalaAutofocusDirective, "[koalaAutoFocus]", never, { "koalaAutoFocus": "koalaAutoFocus"; }, {}, never>;
|
|
9
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<KoalaAutofocusDirective, "[koalaAutoFocus]", never, { "koalaAutoFocus": "koalaAutoFocus"; }, {}, never, never, false>;
|
|
10
10
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UntypedFormBuilder } from "@angular/forms";
|
|
2
2
|
import { KoalaDynamicFormConfigInterface } from "../interfaces/koala.dynamic-form-config.interface";
|
|
3
3
|
import { KoalaDynamicFormFieldInterface } from "../interfaces/koala.dynamic-form-field.interface";
|
|
4
4
|
import { AutocompleteBuilder } from "./fields/autocomplete.builder";
|
|
@@ -10,7 +10,7 @@ export declare class DynamicFormBuilder {
|
|
|
10
10
|
private fb;
|
|
11
11
|
private deviceService;
|
|
12
12
|
private readonly config;
|
|
13
|
-
constructor(fb:
|
|
13
|
+
constructor(fb: UntypedFormBuilder, deviceService: DeviceDetectorService, configInMemory?: KoalaDynamicFormFieldInterface[]);
|
|
14
14
|
field(label: string, name: string, type: DynamicFormFieldType): FieldBuilder;
|
|
15
15
|
autocomplete(label: string, name: string): AutocompleteBuilder;
|
|
16
16
|
simpleMoreItems(label: string, name: string, btnAddLabel: string, min: number, max: number): MoreItemsBuilder;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { KoalaDynamicFormConfigInterface } from "../../interfaces/koala.dynamic-form-config.interface";
|
|
2
2
|
import { BehaviorSubject, Observable } from "rxjs";
|
|
3
3
|
import { KoalaDynamicAutocompleteOptionsInterface } from "../../interfaces/koala.dynamic-autocomplete-options.interface";
|
|
4
|
-
import {
|
|
4
|
+
import { UntypedFormBuilder } from "@angular/forms";
|
|
5
5
|
import { KoalaDynamicFormAutocompleteMultipleConfigInterface } from "../../interfaces/koala.dynamic-form-autocomplete-multiple-config.interface";
|
|
6
6
|
import { FieldBase } from "./field.base";
|
|
7
7
|
import { DeviceDetectorService } from "ngx-device-detector";
|
|
8
8
|
export declare class AutocompleteBuilder extends FieldBase {
|
|
9
9
|
private service$;
|
|
10
|
-
constructor(label: string, name: string, formConfig: KoalaDynamicFormConfigInterface, fb:
|
|
10
|
+
constructor(label: string, name: string, formConfig: KoalaDynamicFormConfigInterface, fb: UntypedFormBuilder, deviceService: DeviceDetectorService);
|
|
11
11
|
service(service: Observable<KoalaDynamicAutocompleteOptionsInterface[]>): this;
|
|
12
12
|
defaultValueOnClean(value: any): this;
|
|
13
13
|
loadOptions(type: 'all' | 'onDemand', onDemandFilter?: (filter: string) => Observable<KoalaDynamicAutocompleteOptionsInterface[]>): this;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { KoalaDynamicFormFieldInterface } from "../../interfaces/koala.dynamic-form-field.interface";
|
|
2
2
|
import { DynamicFormTypeFieldEnum } from "../../enums/dynamic-form-type-field.enum";
|
|
3
3
|
import { FloatLabelType, MatFormFieldAppearance } from "@angular/material/form-field";
|
|
4
|
-
import { AsyncValidatorFn,
|
|
4
|
+
import { AsyncValidatorFn, UntypedFormBuilder, ValidatorFn } from "@angular/forms";
|
|
5
5
|
import { KoalaDynamicFormConfigInterface } from "../../interfaces/koala.dynamic-form-config.interface";
|
|
6
6
|
import { DeviceDetectorService } from "ngx-device-detector";
|
|
7
7
|
import { DynamicFormBuilder } from "../dynamic-form.builder";
|
|
8
8
|
export declare abstract class FieldBase {
|
|
9
9
|
private formConfig;
|
|
10
|
-
protected fb:
|
|
10
|
+
protected fb: UntypedFormBuilder;
|
|
11
11
|
protected deviceService: DeviceDetectorService;
|
|
12
12
|
protected readonly fieldConfig: KoalaDynamicFormFieldInterface;
|
|
13
|
-
protected constructor(label: string, name: string, type: DynamicFormTypeFieldEnum, formConfig: KoalaDynamicFormConfigInterface, fb:
|
|
13
|
+
protected constructor(label: string, name: string, type: DynamicFormTypeFieldEnum, formConfig: KoalaDynamicFormConfigInterface, fb: UntypedFormBuilder, deviceService: DeviceDetectorService);
|
|
14
14
|
hide(hide?: boolean): this;
|
|
15
15
|
focus(): this;
|
|
16
16
|
syncValidator(validators: ValidatorFn[]): this;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { DynamicFormTypeFieldEnum } from "../../enums/dynamic-form-type-field.enum";
|
|
2
2
|
import { FieldBase } from "./field.base";
|
|
3
|
-
import {
|
|
3
|
+
import { UntypedFormBuilder } from "@angular/forms";
|
|
4
4
|
import { KoalaDynamicFormConfigInterface } from "../../interfaces/koala.dynamic-form-config.interface";
|
|
5
5
|
import { DeviceDetectorService } from "ngx-device-detector";
|
|
6
6
|
export declare class FieldBuilder extends FieldBase {
|
|
7
|
-
constructor(label: string, name: string, type: DynamicFormTypeFieldEnum, formConfig: KoalaDynamicFormConfigInterface, fb:
|
|
7
|
+
constructor(label: string, name: string, type: DynamicFormTypeFieldEnum, formConfig: KoalaDynamicFormConfigInterface, fb: UntypedFormBuilder, deviceService: DeviceDetectorService);
|
|
8
8
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UntypedFormBuilder } from "@angular/forms";
|
|
2
2
|
import { KoalaDynamicFormConfigInterface } from "../../interfaces/koala.dynamic-form-config.interface";
|
|
3
3
|
import { DeviceDetectorService } from "ngx-device-detector";
|
|
4
4
|
import { DynamicFormBuilder } from "../dynamic-form.builder";
|
|
@@ -12,6 +12,6 @@ export declare class MoreItemsBuilder {
|
|
|
12
12
|
private fb;
|
|
13
13
|
private deviceService;
|
|
14
14
|
private fieldConfig;
|
|
15
|
-
constructor(label: string, name: string, btnAddLabel: string, min: number, max: number, formConfig: KoalaDynamicFormConfigInterface, fb:
|
|
15
|
+
constructor(label: string, name: string, btnAddLabel: string, min: number, max: number, formConfig: KoalaDynamicFormConfigInterface, fb: UntypedFormBuilder, deviceService: DeviceDetectorService);
|
|
16
16
|
build(): DynamicFormBuilder;
|
|
17
17
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UntypedFormArray, UntypedFormBuilder, UntypedFormGroup, AbstractControl } from '@angular/forms';
|
|
2
2
|
import { KoalaDynamicFormFieldInterface } from './interfaces/koala.dynamic-form-field.interface';
|
|
3
3
|
import { DynamicFormTypeFieldEnum } from './enums/dynamic-form-type-field.enum';
|
|
4
4
|
import { ElementRef, OnInit } from '@angular/core';
|
|
@@ -17,18 +17,18 @@ import * as i0 from "@angular/core";
|
|
|
17
17
|
export declare class DynamicFormComponent extends FormAbstract implements OnInit {
|
|
18
18
|
private fb;
|
|
19
19
|
private dynamicFormService;
|
|
20
|
-
form:
|
|
20
|
+
form: UntypedFormGroup;
|
|
21
21
|
formConfig: KoalaDynamicFormFieldInterface[];
|
|
22
22
|
showFields: BehaviorSubject<KoalaDynamicFormShowFieldInterface[]>;
|
|
23
23
|
showFieldsMoreItensConfig: KoalaDynamicFormMoreItensShowFieldConfigInterface[];
|
|
24
24
|
setValues: BehaviorSubject<KoalaDynamicSetValueInterface[]>;
|
|
25
25
|
tabIndexStart: number;
|
|
26
|
-
controls:
|
|
26
|
+
controls: UntypedFormArray;
|
|
27
27
|
typeField: typeof DynamicFormTypeFieldEnum;
|
|
28
28
|
hoursAndMinutesMask: string;
|
|
29
29
|
errorMessage: typeof KoalaLanguageHelper;
|
|
30
30
|
autocompleteInput: ElementRef<HTMLInputElement>;
|
|
31
|
-
constructor(fb:
|
|
31
|
+
constructor(fb: UntypedFormBuilder, dynamicFormService: KoalaDynamicFormService);
|
|
32
32
|
ngOnInit(): void;
|
|
33
33
|
hoursAndMinutesApplyMask(index: number, event: KeyboardEvent): void;
|
|
34
34
|
passwordView(index: number): void;
|
|
@@ -49,5 +49,5 @@ export declare class DynamicFormComponent extends FormAbstract implements OnInit
|
|
|
49
49
|
private setConfigDynamicForm;
|
|
50
50
|
private validateAutocompleteSelect;
|
|
51
51
|
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicFormComponent, never>;
|
|
52
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicFormComponent, "koala-dynamic-form", never, { "form": "form"; "formConfig": "formConfig"; "showFields": "showFields"; "showFieldsMoreItensConfig": "showFieldsMoreItensConfig"; "setValues": "setValues"; "tabIndexStart": "tabIndexStart"; }, {}, never, ["[btn-submit]"]>;
|
|
52
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicFormComponent, "koala-dynamic-form", never, { "form": "form"; "formConfig": "formConfig"; "showFields": "showFields"; "showFieldsMoreItensConfig": "showFieldsMoreItensConfig"; "setValues": "setValues"; "tabIndexStart": "tabIndexStart"; }, {}, never, ["[btn-submit]"], false>;
|
|
53
53
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { BehaviorSubject } from 'rxjs';
|
|
2
2
|
import { KoalaDynamicSetValueInterface } from './koala.dynamic-set-value.interface';
|
|
3
3
|
import { KoalaDynamicFormShowFieldInterface } from './koala.dynamic-form-show-field.interface';
|
|
4
|
-
import {
|
|
4
|
+
import { UntypedFormGroup } from '@angular/forms';
|
|
5
5
|
import { KoalaDynamicFormFieldInterface } from './koala.dynamic-form-field.interface';
|
|
6
6
|
export interface KoalaDynamicFormConfigInterface {
|
|
7
|
-
form:
|
|
7
|
+
form: UntypedFormGroup;
|
|
8
8
|
formConfig: KoalaDynamicFormFieldInterface[];
|
|
9
9
|
setValues?: BehaviorSubject<KoalaDynamicSetValueInterface[]>;
|
|
10
10
|
showFields?: BehaviorSubject<KoalaDynamicFormShowFieldInterface[]>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DynamicFormTypeFieldEnum } from '../enums/dynamic-form-type-field.enum';
|
|
2
2
|
import { FloatLabelType, MatFormFieldAppearance } from '@angular/material/form-field';
|
|
3
3
|
import { BehaviorSubject, Observable } from 'rxjs';
|
|
4
|
-
import { AsyncValidatorFn,
|
|
4
|
+
import { AsyncValidatorFn, UntypedFormGroup, ValidatorFn } from '@angular/forms';
|
|
5
5
|
import { KoalaDynamicSetValueInterface } from './koala.dynamic-set-value.interface';
|
|
6
6
|
import { KoalaDynamicAutocompleteOptionsInterface } from './koala.dynamic-autocomplete-options.interface';
|
|
7
7
|
import { KoalaDynamicFormMoreItensShowFieldConfigInterface } from './koala.dynamic-form-more-itens-show-field-config.interface';
|
|
@@ -40,7 +40,7 @@ export interface KoalaDynamicFormFieldInterface {
|
|
|
40
40
|
moreItemsIconFontColor?: string;
|
|
41
41
|
moreItemsIconBackgroundColor?: string;
|
|
42
42
|
moreItemsConfig?: {
|
|
43
|
-
form:
|
|
43
|
+
form: UntypedFormGroup;
|
|
44
44
|
formConfig: KoalaDynamicFormFieldInterface[];
|
|
45
45
|
setValues?: BehaviorSubject<BehaviorSubject<KoalaDynamicSetValueInterface[]>[]>;
|
|
46
46
|
showFieldsConfig?: KoalaDynamicFormMoreItensShowFieldConfigInterface[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
|
|
2
2
|
import { KoalaDynamicSetValueInterface } from './interfaces/koala.dynamic-set-value.interface';
|
|
3
3
|
import { BehaviorSubject, Observable } from 'rxjs';
|
|
4
4
|
import { KoalaDynamicAutocompleteOptionsInterface } from './interfaces/koala.dynamic-autocomplete-options.interface';
|
|
@@ -8,14 +8,14 @@ import { DeviceDetectorService } from "ngx-device-detector";
|
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
export declare type KoalaDynamicFormValidatorType = 'required' | 'min' | 'max';
|
|
10
10
|
export declare class KoalaDynamicFormService {
|
|
11
|
-
protected fb:
|
|
11
|
+
protected fb: UntypedFormBuilder;
|
|
12
12
|
protected deviceService: DeviceDetectorService;
|
|
13
|
-
constructor(fb:
|
|
13
|
+
constructor(fb: UntypedFormBuilder, deviceService: DeviceDetectorService);
|
|
14
14
|
build(): DynamicFormBuilder;
|
|
15
|
-
updateValidator(formGroup:
|
|
16
|
-
disableFields(formGroup:
|
|
17
|
-
emitData(form:
|
|
18
|
-
resetForm(form:
|
|
15
|
+
updateValidator(formGroup: UntypedFormGroup, name: string, type: KoalaDynamicFormValidatorType, value: boolean | number | string): void;
|
|
16
|
+
disableFields(formGroup: UntypedFormGroup, disabled: boolean, fields: string[]): void;
|
|
17
|
+
emitData(form: UntypedFormGroup): {};
|
|
18
|
+
resetForm(form: UntypedFormGroup): void;
|
|
19
19
|
setValuesInMoreItemsForm(subject: BehaviorSubject<BehaviorSubject<KoalaDynamicSetValueInterface[]>[]>, values: KoalaDynamicSetValueInterface[][]): void;
|
|
20
20
|
autocompleteFilterOnServer(request: () => Promise<any[]>, nameConfig: {
|
|
21
21
|
propsByName: string[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ShowInvalidFields } from './show-invalid-fields/show-invalid-fields';
|
|
2
|
-
import {
|
|
2
|
+
import { UntypedFormGroup } from '@angular/forms';
|
|
3
3
|
import { BehaviorSubject } from 'rxjs';
|
|
4
4
|
export declare abstract class FormAbstract {
|
|
5
5
|
private formAbstract;
|
|
@@ -8,7 +8,7 @@ export declare abstract class FormAbstract {
|
|
|
8
8
|
loader: BehaviorSubject<boolean>;
|
|
9
9
|
btnSubmitDisabled: boolean;
|
|
10
10
|
getData: BehaviorSubject<boolean>;
|
|
11
|
-
protected constructor(formAbstract: () =>
|
|
11
|
+
protected constructor(formAbstract: () => UntypedFormGroup);
|
|
12
12
|
selecionarAutocomplete(controlName: string, obj: any, indexName?: string): void;
|
|
13
13
|
btnClickGetData(): void;
|
|
14
14
|
protected enableShowInvalidFields(): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ErrorStateMatcher } from '@angular/material/core';
|
|
2
|
-
import {
|
|
2
|
+
import { UntypedFormControl, FormGroupDirective, NgForm } from '@angular/forms';
|
|
3
3
|
export declare class ShowInvalidFields implements ErrorStateMatcher {
|
|
4
4
|
constructor();
|
|
5
|
-
isErrorState(control:
|
|
5
|
+
isErrorState(control: UntypedFormControl | null, form: FormGroupDirective | NgForm | null): boolean;
|
|
6
6
|
}
|
package/form/package.json
CHANGED
|
@@ -14,13 +14,13 @@
|
|
|
14
14
|
"esm2020": "esm2020/koalarx-ui-form.mjs",
|
|
15
15
|
"fesm2020": "fesm2020/koalarx-ui-form.mjs",
|
|
16
16
|
"fesm2015": "fesm2015/koalarx-ui-form.mjs",
|
|
17
|
-
"typings": "
|
|
17
|
+
"typings": "index.d.ts",
|
|
18
18
|
"exports": {
|
|
19
19
|
"./package.json": {
|
|
20
20
|
"default": "./package.json"
|
|
21
21
|
},
|
|
22
22
|
".": {
|
|
23
|
-
"types": "./
|
|
23
|
+
"types": "./index.d.ts",
|
|
24
24
|
"esm2020": "./esm2020/koalarx-ui-form.mjs",
|
|
25
25
|
"es2020": "./fesm2020/koalarx-ui-form.mjs",
|
|
26
26
|
"es2015": "./fesm2015/koalarx-ui-form.mjs",
|