zek 14.2.38 → 14.2.48
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/components/base.component.mjs +3 -2
- package/esm2020/lib/components/core-ui.component.mjs +20 -5
- package/esm2020/lib/modules/age/age.pipe.mjs +2 -3
- package/esm2020/lib/modules/alert/alert/alert.component.mjs +1 -1
- package/esm2020/lib/modules/bb/bb-modal-base.component.mjs +9 -2
- package/esm2020/lib/modules/bb/bb-modal-toolbar.mjs +9 -2
- package/esm2020/lib/modules/bb/bb.component.mjs +32 -8
- package/esm2020/lib/modules/card/card/card.component.mjs +1 -1
- package/esm2020/lib/modules/edit-toolbar/edit-toolbar.component.mjs +23 -4
- package/esm2020/lib/modules/file/file-size.pipe.mjs +3 -3
- package/esm2020/lib/modules/grid-toolbar/grid-toolbar/grid-toolbar.component.mjs +72 -11
- package/esm2020/lib/modules/index.mjs +3 -1
- package/esm2020/lib/modules/list-toolbar/list-toolbar.component.mjs +44 -7
- package/esm2020/lib/modules/modal/modal/modal.component.mjs +72 -8
- package/esm2020/lib/modules/page-title/page-title.component.mjs +11 -1
- package/esm2020/lib/modules/pager/pager/pager.component.mjs +9 -2
- package/esm2020/lib/modules/password/password.component.mjs +9 -2
- package/esm2020/lib/modules/radio/radio-button.component.mjs +3 -3
- package/esm2020/lib/modules/readonly/readonly.directive.mjs +5 -5
- package/esm2020/lib/modules/select/index.mjs +3 -0
- package/esm2020/lib/modules/select/model.mjs +4 -0
- package/esm2020/lib/modules/select/module.mjs +28 -0
- package/esm2020/lib/modules/select/select.mjs +198 -0
- package/esm2020/lib/modules/select2/select2.component.mjs +1 -1
- package/esm2020/lib/modules/select2-multiple/select2-multiple.component.mjs +1 -1
- package/esm2020/lib/modules/validator/field-validator.component.mjs +1 -1
- package/esm2020/lib/modules/validators/directive.mjs +75 -0
- package/esm2020/lib/modules/validators/index.mjs +4 -0
- package/esm2020/lib/modules/validators/module.mjs +22 -0
- package/esm2020/lib/modules/validators/validator.mjs +72 -0
- package/esm2020/lib/modules/wizard/wizard/wizard.component.mjs +1 -1
- package/esm2020/lib/services/auth.service.mjs +2 -2
- package/esm2020/lib/utils/array-helper.mjs +25 -9
- package/esm2020/lib/utils/bitwise-helper.mjs +3 -3
- package/esm2020/lib/utils/convert.mjs +1 -1
- package/esm2020/lib/utils/date-helper.mjs +2 -2
- package/esm2020/lib/utils/filter-helper.mjs +2 -2
- package/esm2020/lib/utils/object-helper.mjs +17 -4
- package/esm2020/lib/utils/string-helper.mjs +9 -18
- package/esm2020/lib/utils/time-helper.mjs +2 -2
- package/fesm2015/zek.mjs +734 -91
- package/fesm2015/zek.mjs.map +1 -1
- package/fesm2020/zek.mjs +734 -91
- package/fesm2020/zek.mjs.map +1 -1
- package/lib/components/base.component.d.ts +3 -2
- package/lib/components/core-ui.component.d.ts +9 -4
- package/lib/modules/bb/bb-modal-base.component.d.ts +4 -2
- package/lib/modules/bb/bb-modal-toolbar.d.ts +4 -1
- package/lib/modules/bb/bb.component.d.ts +13 -10
- package/lib/modules/edit-toolbar/edit-toolbar.component.d.ts +10 -3
- package/lib/modules/grid-toolbar/grid-toolbar/grid-toolbar.component.d.ts +31 -10
- package/lib/modules/index.d.ts +2 -0
- package/lib/modules/list-toolbar/list-toolbar.component.d.ts +19 -6
- package/lib/modules/modal/modal/modal.component.d.ts +31 -11
- package/lib/modules/page-title/page-title.component.d.ts +4 -1
- package/lib/modules/pager/pager/pager.component.d.ts +4 -1
- package/lib/modules/password/password.component.d.ts +4 -1
- package/lib/modules/radio/radio-button.component.d.ts +0 -6
- package/lib/modules/readonly/readonly.directive.d.ts +3 -2
- package/lib/modules/select/index.d.ts +2 -0
- package/lib/modules/select/model.d.ts +5 -0
- package/lib/modules/select/module.d.ts +9 -0
- package/lib/modules/select/select.d.ts +42 -0
- package/lib/modules/validators/directive.d.ts +67 -0
- package/lib/modules/validators/index.d.ts +3 -0
- package/lib/modules/validators/module.d.ts +8 -0
- package/lib/modules/validators/validator.d.ts +33 -0
- package/lib/utils/array-helper.d.ts +2 -1
- package/lib/utils/bitwise-helper.d.ts +2 -2
- package/lib/utils/object-helper.d.ts +6 -0
- package/lib/utils/string-helper.d.ts +3 -3
- package/package.json +1 -1
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
2
2
|
import { PrintType } from '../models/print.model';
|
|
3
3
|
import { CoreComponent } from './core.component';
|
|
4
|
+
import { BooleanInput } from './types';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class BaseComponent<TModel = any> extends CoreComponent {
|
|
6
7
|
protected readonly route: ActivatedRoute;
|
|
7
8
|
protected readonly router: Router;
|
|
8
9
|
constructor(route: ActivatedRoute, router: Router);
|
|
9
10
|
private _readOnly;
|
|
10
|
-
get readOnly():
|
|
11
|
-
set readOnly(v:
|
|
11
|
+
get readOnly(): BooleanInput;
|
|
12
|
+
set readOnly(v: BooleanInput);
|
|
12
13
|
protected readonly url: string;
|
|
13
14
|
model?: TModel | null;
|
|
14
15
|
protected getParam(name: string): string | null;
|
|
@@ -8,9 +8,6 @@ export declare class CoreUiComponent extends CoreComponent implements AfterConte
|
|
|
8
8
|
protected _renderer: Renderer2;
|
|
9
9
|
protected _elementRef: ElementRef;
|
|
10
10
|
constructor(_renderer: Renderer2, _elementRef: ElementRef);
|
|
11
|
-
private _isInitialized;
|
|
12
|
-
private _disabled;
|
|
13
|
-
private _required;
|
|
14
11
|
/** The method to be called in order to update ngModel */
|
|
15
12
|
_onChange: (value: any) => void;
|
|
16
13
|
/**
|
|
@@ -30,6 +27,7 @@ export declare class CoreUiComponent extends CoreComponent implements AfterConte
|
|
|
30
27
|
get name(): string;
|
|
31
28
|
set name(value: string);
|
|
32
29
|
onNameChanged(): void;
|
|
30
|
+
private _isInitialized;
|
|
33
31
|
get isInitialized(): boolean;
|
|
34
32
|
protected _value: any;
|
|
35
33
|
get value(): any;
|
|
@@ -41,10 +39,17 @@ export declare class CoreUiComponent extends CoreComponent implements AfterConte
|
|
|
41
39
|
* @param newValue
|
|
42
40
|
*/
|
|
43
41
|
setNgModel(newValue: any): void;
|
|
42
|
+
private _readonly;
|
|
43
|
+
/** Whether the component is disabled */
|
|
44
|
+
get readonly(): boolean;
|
|
45
|
+
set readonly(value: BooleanInput);
|
|
46
|
+
onReadOnlyChanged(): void;
|
|
47
|
+
private _disabled;
|
|
44
48
|
/** Whether the component is disabled */
|
|
45
49
|
get disabled(): boolean;
|
|
46
50
|
set disabled(value: BooleanInput);
|
|
47
51
|
onDisabledChanged(): void;
|
|
52
|
+
private _required;
|
|
48
53
|
/** Whether the component is required */
|
|
49
54
|
get required(): boolean;
|
|
50
55
|
set required(value: BooleanInput);
|
|
@@ -77,5 +82,5 @@ export declare class CoreUiComponent extends CoreComponent implements AfterConte
|
|
|
77
82
|
*/
|
|
78
83
|
setDisabledState(isDisabled: boolean): void;
|
|
79
84
|
static ɵfac: i0.ɵɵFactoryDeclaration<CoreUiComponent, never>;
|
|
80
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CoreUiComponent, never, never, { "name": "name"; "value": "value"; "disabled": "disabled"; "required": "required"; }, { "change": "change"; "changing": "changing"; }, never, never, false>;
|
|
85
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CoreUiComponent, never, never, { "name": "name"; "value": "value"; "readonly": "readonly"; "disabled": "disabled"; "required": "required"; }, { "change": "change"; "changing": "changing"; }, never, never, false>;
|
|
81
86
|
}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { EventEmitter } from "@angular/core";
|
|
2
|
-
import { CoreComponent } from "../../components";
|
|
2
|
+
import { BooleanInput, CoreComponent } from "../../components";
|
|
3
3
|
import { PagedList } from "../../models";
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class ButtonBrowseModalBaseComponent extends CoreComponent {
|
|
6
6
|
type?: string | null;
|
|
7
7
|
filter: any;
|
|
8
8
|
data?: PagedList | null;
|
|
9
|
-
|
|
9
|
+
private _multiSelect;
|
|
10
|
+
get multiSelect(): BooleanInput;
|
|
11
|
+
set multiSelect(v: BooleanInput);
|
|
10
12
|
value: any;
|
|
11
13
|
onChoose: EventEmitter<any>;
|
|
12
14
|
choose(value: any): void;
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { BooleanInput } from '../../components';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class ButtonBrowseModalToolbarComponent {
|
|
4
5
|
onSearch: EventEmitter<any>;
|
|
5
6
|
search(): void;
|
|
6
7
|
onReset: EventEmitter<any>;
|
|
7
8
|
reset(): void;
|
|
8
|
-
|
|
9
|
+
private _multiSelect;
|
|
10
|
+
get multiSelect(): BooleanInput;
|
|
11
|
+
set multiSelect(v: BooleanInput);
|
|
9
12
|
onChooseAll: EventEmitter<any>;
|
|
10
13
|
chooseAll(): void;
|
|
11
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonBrowseModalToolbarComponent, never>;
|
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { BooleanInput } from '../../components';
|
|
2
3
|
import { CoreUiComponent } from '../../components/core-ui.component';
|
|
3
4
|
import { KeyPair, PagedList } from '../../models';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
|
-
/**
|
|
6
|
-
* Provider Expression that allows mat-radio-group to register as a ControlValueAccessor. This
|
|
7
|
-
* allows it to support [(ngModel)] and ngControl.
|
|
8
|
-
* @docs-private
|
|
9
|
-
*/
|
|
10
|
-
export declare const ZEK_BB_CONTROL_VALUE_ACCESSOR: any;
|
|
11
6
|
export declare class ButtonBrowseComponent extends CoreUiComponent {
|
|
12
7
|
destroy(): Promise<void>;
|
|
13
8
|
private _uniqueId;
|
|
@@ -23,10 +18,18 @@ export declare class ButtonBrowseComponent extends CoreUiComponent {
|
|
|
23
18
|
get text(): string | null;
|
|
24
19
|
set text(v: string | null);
|
|
25
20
|
onTextChanged(): void;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
21
|
+
private _readOnly;
|
|
22
|
+
get readOnly(): boolean;
|
|
23
|
+
set readOnly(v: BooleanInput);
|
|
24
|
+
private _hide;
|
|
25
|
+
get hide(): boolean;
|
|
26
|
+
set hide(v: BooleanInput);
|
|
27
|
+
private _showInput;
|
|
28
|
+
get showInput(): boolean;
|
|
29
|
+
set showInput(v: BooleanInput);
|
|
30
|
+
private _multiSelect;
|
|
31
|
+
get multiSelect(): BooleanInput;
|
|
32
|
+
set multiSelect(v: BooleanInput);
|
|
30
33
|
onShowModal: EventEmitter<any>;
|
|
31
34
|
onChooseAll: EventEmitter<any>;
|
|
32
35
|
onKeyPairChange: EventEmitter<KeyPair<any, any>>;
|
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { BooleanInput } from '../../components';
|
|
2
3
|
import { PrintType } from '../../models/print.model';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class EditToolbarComponent {
|
|
5
6
|
printType: typeof PrintType;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
private _showExport;
|
|
8
|
+
get showExport(): BooleanInput;
|
|
9
|
+
set showExport(v: BooleanInput);
|
|
10
|
+
private _showPrint;
|
|
11
|
+
get showPrint(): BooleanInput;
|
|
12
|
+
set showPrint(v: BooleanInput);
|
|
13
|
+
private _readOnly;
|
|
14
|
+
get readOnly(): boolean;
|
|
15
|
+
set readOnly(v: BooleanInput);
|
|
9
16
|
onSave: EventEmitter<any>;
|
|
10
17
|
onCancel: EventEmitter<any>;
|
|
11
18
|
cancel(): void;
|
|
@@ -1,19 +1,40 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { BooleanInput } from '../../../components';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class GridToolbarComponent {
|
|
4
5
|
model: any;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
private _showEdit;
|
|
7
|
+
get showEdit(): boolean;
|
|
8
|
+
set showEdit(v: BooleanInput);
|
|
9
|
+
private _editEnabled;
|
|
10
|
+
get editEnabled(): boolean;
|
|
11
|
+
set editEnabled(v: BooleanInput);
|
|
12
|
+
private _showDelete;
|
|
13
|
+
get showDelete(): boolean;
|
|
14
|
+
set showDelete(v: BooleanInput);
|
|
15
|
+
private _deleteEnabled;
|
|
16
|
+
get deleteEnabled(): boolean;
|
|
17
|
+
set deleteEnabled(v: BooleanInput);
|
|
18
|
+
private _showRestore;
|
|
19
|
+
get showRestore(): boolean;
|
|
20
|
+
set showRestore(v: BooleanInput);
|
|
21
|
+
private _restoreEnabled;
|
|
22
|
+
get restoreEnabled(): boolean;
|
|
23
|
+
set restoreEnabled(v: BooleanInput);
|
|
11
24
|
approveText: string;
|
|
12
|
-
|
|
13
|
-
|
|
25
|
+
private _showApprove;
|
|
26
|
+
get showApprove(): boolean;
|
|
27
|
+
set showApprove(v: BooleanInput);
|
|
28
|
+
private _approveEnabled;
|
|
29
|
+
get approveEnabled(): boolean;
|
|
30
|
+
set approveEnabled(v: BooleanInput);
|
|
14
31
|
disapproveText: string;
|
|
15
|
-
|
|
16
|
-
|
|
32
|
+
private _showDisapprove;
|
|
33
|
+
get showDisapprove(): boolean;
|
|
34
|
+
set showDisapprove(v: BooleanInput);
|
|
35
|
+
private _disapproveEnabled;
|
|
36
|
+
get disapproveEnabled(): boolean;
|
|
37
|
+
set disapproveEnabled(v: BooleanInput);
|
|
17
38
|
onEdit: EventEmitter<any>;
|
|
18
39
|
edit(): void;
|
|
19
40
|
onDelete: EventEmitter<any>;
|
package/lib/modules/index.d.ts
CHANGED
|
@@ -20,9 +20,11 @@ export * from './radio';
|
|
|
20
20
|
export * from './readonly';
|
|
21
21
|
export * from './recaptcha/index';
|
|
22
22
|
export * from './safe';
|
|
23
|
+
export * from './select';
|
|
23
24
|
export * from './select2';
|
|
24
25
|
export * from './select2-multiple';
|
|
25
26
|
export * from './sort';
|
|
26
27
|
export * from './time';
|
|
27
28
|
export * from './validator';
|
|
29
|
+
export * from './validators';
|
|
28
30
|
export * from './wizard';
|
|
@@ -1,17 +1,30 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import { Router } from '@angular/router';
|
|
3
|
+
import { BooleanInput } from '../../components';
|
|
3
4
|
import { PrintType } from '../../models/print.model';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class ListToolbarComponent {
|
|
6
7
|
private readonly router;
|
|
7
8
|
constructor(router: Router);
|
|
8
9
|
printType: typeof PrintType;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
private _isFiltered;
|
|
11
|
+
get isFiltered(): BooleanInput;
|
|
12
|
+
set isFiltered(v: BooleanInput);
|
|
13
|
+
private _showCreate;
|
|
14
|
+
get showCreate(): BooleanInput;
|
|
15
|
+
set showCreate(v: BooleanInput);
|
|
16
|
+
private _showFilter;
|
|
17
|
+
get showFilter(): BooleanInput;
|
|
18
|
+
set showFilter(v: BooleanInput);
|
|
19
|
+
private _showPrint;
|
|
20
|
+
get showPrint(): BooleanInput;
|
|
21
|
+
set showPrint(v: BooleanInput);
|
|
22
|
+
private _showSum;
|
|
23
|
+
get showSum(): BooleanInput;
|
|
24
|
+
set showSum(v: BooleanInput);
|
|
25
|
+
private _showExport;
|
|
26
|
+
get showExport(): boolean;
|
|
27
|
+
set showExport(v: BooleanInput);
|
|
15
28
|
onRefresh: EventEmitter<any>;
|
|
16
29
|
onFilter: EventEmitter<any>;
|
|
17
30
|
refresh(): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import { TranslateService } from '@ngx-translate/core';
|
|
3
|
-
import { CoreComponent } from '../../../components';
|
|
3
|
+
import { BooleanInput, CoreComponent } from '../../../components';
|
|
4
4
|
import { ComponentType } from '../../../utils';
|
|
5
5
|
import { ValidEventArgs } from '../../../models/valid-event-args.model';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
@@ -13,10 +13,18 @@ export declare class ModalComponent extends CoreComponent {
|
|
|
13
13
|
hiddenHandler?: number | null;
|
|
14
14
|
model: any;
|
|
15
15
|
readonly elementId: string;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
private _showOk;
|
|
17
|
+
get showOk(): boolean;
|
|
18
|
+
set showOk(v: BooleanInput);
|
|
19
|
+
private _disabledOk;
|
|
20
|
+
get disabledOk(): boolean;
|
|
21
|
+
set disabledOk(v: BooleanInput);
|
|
22
|
+
private _showCancel;
|
|
23
|
+
get showCancel(): boolean;
|
|
24
|
+
set showCancel(v: BooleanInput);
|
|
25
|
+
private _autoHide;
|
|
26
|
+
get autoHide(): boolean;
|
|
27
|
+
set autoHide(v: BooleanInput);
|
|
20
28
|
title?: string | null;
|
|
21
29
|
text?: string | null;
|
|
22
30
|
icon?: string | null;
|
|
@@ -25,12 +33,24 @@ export declare class ModalComponent extends CoreComponent {
|
|
|
25
33
|
onHidden: EventEmitter<any>;
|
|
26
34
|
onOk: EventEmitter<any>;
|
|
27
35
|
componentType: ComponentType;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
36
|
+
private _large;
|
|
37
|
+
get large(): boolean;
|
|
38
|
+
set large(v: BooleanInput);
|
|
39
|
+
private _xl;
|
|
40
|
+
get xl(): boolean;
|
|
41
|
+
set xl(v: BooleanInput);
|
|
42
|
+
private _scrollable;
|
|
43
|
+
get scrollable(): boolean;
|
|
44
|
+
set scrollable(v: BooleanInput);
|
|
45
|
+
private _fullscreen;
|
|
46
|
+
get fullscreen(): boolean;
|
|
47
|
+
set fullscreen(v: BooleanInput);
|
|
48
|
+
private _showHeader;
|
|
49
|
+
get showHeader(): boolean;
|
|
50
|
+
set showHeader(v: BooleanInput);
|
|
51
|
+
private _showFooter;
|
|
52
|
+
get showFooter(): boolean;
|
|
53
|
+
set showFooter(v: BooleanInput);
|
|
34
54
|
onValidating: EventEmitter<ValidEventArgs>;
|
|
35
55
|
private _modal;
|
|
36
56
|
protected getModalElement(): HTMLElement | null;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
import { BooleanInput } from '../../components';
|
|
1
2
|
import * as i0 from "@angular/core";
|
|
2
3
|
export declare class PageTitleComponent {
|
|
3
4
|
icon?: string;
|
|
4
5
|
title?: string;
|
|
5
|
-
|
|
6
|
+
private _isEditPage;
|
|
7
|
+
get isEditPage(): boolean;
|
|
8
|
+
set isEditPage(v: BooleanInput);
|
|
6
9
|
modelId?: number | null;
|
|
7
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<PageTitleComponent, never>;
|
|
8
11
|
static ɵcmp: i0.ɵɵComponentDeclaration<PageTitleComponent, "zek-page-title", never, { "icon": "icon"; "title": "title"; "isEditPage": "isEditPage"; "modelId": "modelId"; }, {}, never, never, false>;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { BooleanInput } from '../../../components';
|
|
2
3
|
import { Pager } from '../../../models';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class PagerComponent {
|
|
5
6
|
pager: Pager;
|
|
6
|
-
|
|
7
|
+
private _showPageSize;
|
|
8
|
+
get showPageSize(): boolean;
|
|
9
|
+
set showPageSize(v: BooleanInput);
|
|
7
10
|
pagerAlign: string;
|
|
8
11
|
setPage(page: number): void;
|
|
9
12
|
setPageSize(pageSize: number): void;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { BooleanInput } from '../../components';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class PasswordComponent {
|
|
4
5
|
name: string;
|
|
5
|
-
|
|
6
|
+
private _required;
|
|
7
|
+
get required(): boolean;
|
|
8
|
+
set required(v: BooleanInput);
|
|
6
9
|
minlength: number | string | null;
|
|
7
10
|
maxlength: number | string | null;
|
|
8
11
|
model?: string | null;
|
|
@@ -2,12 +2,6 @@ import { ChangeDetectorRef, ElementRef, OnInit, Renderer2 } from '@angular/core'
|
|
|
2
2
|
import { BooleanInput } from '../../components';
|
|
3
3
|
import { CoreUiComponent } from '../../components/core-ui.component';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
/**
|
|
6
|
-
* Provider Expression that allows mat-radio-group to register as a ControlValueAccessor. This
|
|
7
|
-
* allows it to support [(ngModel)] and ngControl.
|
|
8
|
-
* @docs-private
|
|
9
|
-
*/
|
|
10
|
-
export declare const ZEK_RADIO_CONTROL_VALUE_ACCESSOR: any;
|
|
11
5
|
export declare class RadioComponent extends CoreUiComponent implements OnInit {
|
|
12
6
|
private _changeDetector;
|
|
13
7
|
constructor(_changeDetector: ChangeDetectorRef, _renderer: Renderer2, _elementRef: ElementRef);
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { BooleanInput } from '../../components';
|
|
1
2
|
import * as i0 from "@angular/core";
|
|
2
3
|
export declare class ReadOnlyDirective {
|
|
3
|
-
|
|
4
|
-
|
|
4
|
+
_readonly: boolean;
|
|
5
|
+
readonly(v: BooleanInput): void;
|
|
5
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<ReadOnlyDirective, never>;
|
|
6
7
|
static ɵdir: i0.ɵɵDirectiveDeclaration<ReadOnlyDirective, "[readonly],[readOnly]", never, { "readonly": "readonly"; }, {}, never, never, false>;
|
|
7
8
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./select";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@angular/forms";
|
|
5
|
+
export declare class ZekSelectModule {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ZekSelectModule, never>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ZekSelectModule, [typeof i1.ZekSelectMultiple], [typeof i2.CommonModule, typeof i3.FormsModule], [typeof i1.ZekSelectMultiple]>;
|
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ZekSelectModule>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { ElementRef, Renderer2 } from '@angular/core';
|
|
2
|
+
import { BooleanInput, CoreUiComponent } from '../../components';
|
|
3
|
+
import { KeyPairOption } from './model';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class ZekSelectMultiple extends CoreUiComponent {
|
|
6
|
+
constructor(renderer: Renderer2, elementRef: ElementRef);
|
|
7
|
+
private _uniqueId;
|
|
8
|
+
/** The unique ID for the radio button. */
|
|
9
|
+
id: string;
|
|
10
|
+
valueField?: string | null;
|
|
11
|
+
textField?: string | null;
|
|
12
|
+
checkedTextField?: string | null;
|
|
13
|
+
css: 'primary' | 'secondary' | 'success' | 'danger ' | 'warning' | 'info' | 'light' | 'dark';
|
|
14
|
+
get placeholder(): string;
|
|
15
|
+
set placeholder(value: string | null | undefined);
|
|
16
|
+
private _placeholder;
|
|
17
|
+
get label(): string;
|
|
18
|
+
set label(value: string | null | undefined);
|
|
19
|
+
private _label;
|
|
20
|
+
get multiple(): BooleanInput;
|
|
21
|
+
set multiple(value: BooleanInput);
|
|
22
|
+
private _multiple;
|
|
23
|
+
private _selected;
|
|
24
|
+
get data(): any[] | null | undefined;
|
|
25
|
+
set data(value: any[] | null | undefined);
|
|
26
|
+
private _data?;
|
|
27
|
+
normalized: KeyPairOption[];
|
|
28
|
+
onDataChanged(): void;
|
|
29
|
+
_text: string;
|
|
30
|
+
onValueChanged(): void;
|
|
31
|
+
init(): void;
|
|
32
|
+
private _normalizeData;
|
|
33
|
+
/**
|
|
34
|
+
* Sets the selected option based on a value. If no option can be
|
|
35
|
+
* found with the designated value, the select trigger is cleared.
|
|
36
|
+
*/
|
|
37
|
+
private _setSelectionByValue;
|
|
38
|
+
toggleChecked(v: any): void;
|
|
39
|
+
private _initText;
|
|
40
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ZekSelectMultiple, never>;
|
|
41
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ZekSelectMultiple, "zek-select,[zek-select]", never, { "id": "id"; "valueField": "valueField"; "textField": "textField"; "checkedTextField": "checkedTextField"; "css": "css"; "placeholder": "placeholder"; "label": "label"; "multiple": "multiple"; "data": "data"; }, {}, never, never, false>;
|
|
42
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { OnChanges, SimpleChanges } from "@angular/core";
|
|
2
|
+
import { AbstractControl, ValidationErrors, Validator, ValidatorFn } from "@angular/forms";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
declare abstract class AbstractValidatorDirective implements Validator, OnChanges {
|
|
5
|
+
private _validator;
|
|
6
|
+
private _onChange;
|
|
7
|
+
/**
|
|
8
|
+
* A flag that tracks whether this validator is enabled.
|
|
9
|
+
*
|
|
10
|
+
* Marking it `internal` (vs `protected`), so that this flag can be used in host bindings of
|
|
11
|
+
* directive classes that extend this base class.
|
|
12
|
+
* @internal
|
|
13
|
+
*/
|
|
14
|
+
_enabled?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Name of an input that matches directive selector attribute (e.g. `minlength` for
|
|
17
|
+
* `MinLengthDirective`). An input with a given name might contain configuration information (like
|
|
18
|
+
* `minlength='10'`) or a flag that indicates whether validator should be enabled (like
|
|
19
|
+
* `[required]='false'`).
|
|
20
|
+
*
|
|
21
|
+
* @internal
|
|
22
|
+
*/
|
|
23
|
+
abstract inputName: string;
|
|
24
|
+
/**
|
|
25
|
+
* Creates an instance of a validator (specific to a directive that extends this base class).
|
|
26
|
+
*
|
|
27
|
+
* @internal
|
|
28
|
+
*/
|
|
29
|
+
abstract createValidator(input: unknown): ValidatorFn;
|
|
30
|
+
/**
|
|
31
|
+
* Performs the necessary input normalization based on a specific logic of a Directive.
|
|
32
|
+
* For example, the function might be used to convert string-based representation of the
|
|
33
|
+
* `minlength` input to an integer value that can later be used in the `Validators.minLength`
|
|
34
|
+
* validator.
|
|
35
|
+
*
|
|
36
|
+
* @internal
|
|
37
|
+
*/
|
|
38
|
+
abstract normalizeInput(input: unknown): unknown;
|
|
39
|
+
/** @nodoc */
|
|
40
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
41
|
+
/** @nodoc */
|
|
42
|
+
validate(control: AbstractControl): ValidationErrors | null;
|
|
43
|
+
/** @nodoc */
|
|
44
|
+
registerOnValidatorChange(fn: () => void): void;
|
|
45
|
+
/**
|
|
46
|
+
* @description
|
|
47
|
+
* Determines whether this validator should be active or not based on an input.
|
|
48
|
+
* Base class implementation checks whether an input is defined (if the value is different from
|
|
49
|
+
* `null` and `undefined`). Validator classes that extend this base class can override this
|
|
50
|
+
* function with the logic specific to a particular validator directive.
|
|
51
|
+
*/
|
|
52
|
+
enabled(input: unknown): boolean;
|
|
53
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractValidatorDirective, never>;
|
|
54
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractValidatorDirective, never, never, {}, {}, never, never, false>;
|
|
55
|
+
}
|
|
56
|
+
export declare class RangeValidator extends AbstractValidatorDirective {
|
|
57
|
+
range: [number, number] | null;
|
|
58
|
+
/** @internal */
|
|
59
|
+
inputName: string;
|
|
60
|
+
/** @internal */
|
|
61
|
+
normalizeInput: (input: string | number) => number;
|
|
62
|
+
/** @internal */
|
|
63
|
+
createValidator: (range: [number]) => ValidatorFn;
|
|
64
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RangeValidator, never>;
|
|
65
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RangeValidator, "input[type=number][range][formControlName],input[type=number][range][formControl],input[type=number][range][ngModel]", never, { "range": "range"; }, {}, never, never, false>;
|
|
66
|
+
}
|
|
67
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./directive";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
export declare class ValidatorsModule {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ValidatorsModule, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ValidatorsModule, [typeof i1.RangeValidator], [typeof i2.CommonModule], [typeof i1.RangeValidator]>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ValidatorsModule>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { AbstractControl, ValidationErrors, ValidatorFn } from "@angular/forms";
|
|
2
|
+
/**
|
|
3
|
+
* Function that has `ValidatorFn` shape, but performs no operation.
|
|
4
|
+
*/
|
|
5
|
+
export declare function nullValidator(control: AbstractControl): ValidationErrors | null;
|
|
6
|
+
export declare class Validators {
|
|
7
|
+
/**
|
|
8
|
+
* @description
|
|
9
|
+
* Validator that requires the control's value to be less than or equal to the provided number.
|
|
10
|
+
*
|
|
11
|
+
* @usageNotes
|
|
12
|
+
*
|
|
13
|
+
* ### Validate against a range 0 - 15
|
|
14
|
+
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* const control = new FormControl(16, Validators.max([0,15]));
|
|
17
|
+
*
|
|
18
|
+
* console.log(control.errors); // {range: {min: 0, max: 15, actual: 16}}
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* @returns A validator function that returns an error map with the
|
|
22
|
+
* `range` property if the validation check fails, otherwise `null`.
|
|
23
|
+
*
|
|
24
|
+
* @see `updateValueAndValidity()`
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
static range(min: number, max: number): ValidatorFn;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Validator that requires the control's value to be between provided numbers.
|
|
31
|
+
* See `Validators.range` for additional information.
|
|
32
|
+
*/
|
|
33
|
+
export declare function rangeValidator(range: Array<number>): ValidatorFn;
|
|
@@ -2,7 +2,8 @@ import { KeyPair, KeyPairEx, Tree } from "../models";
|
|
|
2
2
|
export declare class ArrayHelper {
|
|
3
3
|
static insert(value: any[], index: number, v: any): void;
|
|
4
4
|
static contains(value: any[], v: any): boolean;
|
|
5
|
-
static distinct(
|
|
5
|
+
static distinct(source: any[]): any[];
|
|
6
|
+
static filterByKey(filterValue: any, key: string, array: any[]): any[];
|
|
6
7
|
static flattenArray(value: any[]): any[];
|
|
7
8
|
private static getChildren;
|
|
8
9
|
static treeToKeyPairArray(value: Tree[]): KeyPair<any, any>[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare class BitwiseHelper {
|
|
2
|
-
static
|
|
3
|
-
static
|
|
2
|
+
static hasFlag(flags: number, flagToCheck: any): boolean;
|
|
3
|
+
static addFlags(flags: number, ...flagsToAdd: any[]): number;
|
|
4
4
|
}
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
export declare class ObjectHelper {
|
|
2
2
|
static isDefined(value: any): boolean;
|
|
3
3
|
static isObject(value: any): boolean;
|
|
4
|
+
/**
|
|
5
|
+
* Check if the object is a string or array before evaluating the length attribute.
|
|
6
|
+
* This avoids falsely rejecting objects that contain a custom length attribute.
|
|
7
|
+
* For example, the object {id: 1, length: 0, width: 0} should not be returned as empty.
|
|
8
|
+
*/
|
|
9
|
+
static isEmptyValue(value: any): boolean;
|
|
4
10
|
static isEmpty(obj: any): boolean;
|
|
5
11
|
static deleteNullKeys(val: any): void;
|
|
6
12
|
static isBoolean(val: any): boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export declare class StringHelper {
|
|
2
2
|
static firstUpper(v?: string | null): string | null | undefined;
|
|
3
|
-
static isNullOrEmpty(
|
|
4
|
-
static isNullOrWhiteSpace(
|
|
3
|
+
static isNullOrEmpty(value?: string | null): boolean;
|
|
4
|
+
static isNullOrWhiteSpace(value?: string | null): boolean;
|
|
5
5
|
static tryTrim(val: string | undefined | null): string | null | undefined;
|
|
6
|
-
static ifNullEmpty(
|
|
6
|
+
static ifNullEmpty(value?: string | null): string;
|
|
7
7
|
static join(val: string | undefined | null, separator: string, part: string | undefined | null): string | null | undefined;
|
|
8
8
|
}
|