zek 14.2.89 → 14.2.91
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 +2 -2
- package/esm2020/lib/components/core-ui.component.mjs +4 -4
- package/esm2020/lib/components/core.component.mjs +1 -1
- package/esm2020/lib/components/edit-base.component.mjs +1 -1
- package/esm2020/lib/components/list-base.component.mjs +1 -1
- package/esm2020/lib/models/pager.model.mjs +1 -8
- package/esm2020/lib/modules/alert/alert/alert.mjs +2 -2
- package/esm2020/lib/modules/bb/bb-modal-base.component.mjs +2 -2
- package/esm2020/lib/modules/bb/bb-modal-toolbar.mjs +2 -2
- package/esm2020/lib/modules/bb/bb.component.mjs +5 -5
- package/esm2020/lib/modules/edit-toolbar/edit-toolbar.component.mjs +4 -4
- package/esm2020/lib/modules/file-viewer/file-viewer.mjs +2 -2
- package/esm2020/lib/modules/file-viewer/module.mjs +5 -5
- package/esm2020/lib/modules/grid-toolbar/grid-toolbar/grid-toolbar.component.mjs +11 -11
- package/esm2020/lib/modules/list-toolbar/list-toolbar.component.mjs +7 -7
- package/esm2020/lib/modules/loading/loading.component.mjs +5 -5
- package/esm2020/lib/modules/loading/loading.module.mjs +9 -9
- package/esm2020/lib/modules/modal/filter-modal/filter-modal.component.mjs +6 -6
- package/esm2020/lib/modules/modal/modal/modal.component.mjs +35 -35
- package/esm2020/lib/modules/modal/modal.module.mjs +40 -40
- package/esm2020/lib/modules/modal/sum-modal/sum-modal.component.mjs +5 -5
- package/esm2020/lib/modules/page-title/page-title.component.mjs +2 -2
- package/esm2020/lib/modules/pager/pager/pager.component.mjs +6 -6
- package/esm2020/lib/modules/pager/pager.module.mjs +10 -10
- package/esm2020/lib/modules/password/password.component.mjs +2 -2
- package/esm2020/lib/modules/progress/progress.mjs +5 -5
- package/esm2020/lib/modules/radio/radio-button.component.mjs +2 -2
- package/esm2020/lib/modules/readonly/readonly.directive.mjs +2 -2
- package/esm2020/lib/modules/select/select.mjs +2 -2
- package/esm2020/lib/utils/convert.mjs +4 -1
- package/fesm2015/zek.mjs +149 -153
- package/fesm2015/zek.mjs.map +1 -1
- package/fesm2020/zek.mjs +149 -153
- package/fesm2020/zek.mjs.map +1 -1
- package/lib/components/edit-base.component.d.ts +3 -3
- package/lib/components/list-base.component.d.ts +4 -4
- package/lib/modules/file-viewer/file-viewer.d.ts +2 -2
- package/lib/modules/file-viewer/module.d.ts +1 -1
- package/lib/modules/loading/loading.component.d.ts +3 -3
- package/lib/modules/loading/loading.module.d.ts +4 -4
- package/lib/modules/modal/filter-modal/filter-modal.component.d.ts +4 -4
- package/lib/modules/modal/modal/modal.component.d.ts +18 -18
- package/lib/modules/modal/modal.module.d.ts +4 -4
- package/lib/modules/modal/sum-modal/sum-modal.component.d.ts +3 -3
- package/lib/modules/pager/pager/pager.component.d.ts +3 -3
- package/lib/modules/pager/pager.module.d.ts +4 -4
- package/lib/utils/convert.d.ts +1 -0
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ import { ActivatedRoute, Router } from '@angular/router';
|
|
|
2
2
|
import { NgForm } from '@angular/forms';
|
|
3
3
|
import { BaseComponent } from './base.component';
|
|
4
4
|
import { IObjectConstructor, PrintType } from '../models';
|
|
5
|
-
import {
|
|
5
|
+
import { ZekModal } from '../modules/modal/modal/modal.component';
|
|
6
6
|
import { AlertService } from '../services/alert.service';
|
|
7
7
|
import { TranslateService } from '@ngx-translate/core';
|
|
8
8
|
import { IService } from '../services';
|
|
@@ -15,8 +15,8 @@ export declare class EditFormComponent<TModel = any> extends BaseComponent<TMode
|
|
|
15
15
|
ids?: number[];
|
|
16
16
|
comment?: string;
|
|
17
17
|
};
|
|
18
|
-
protected readonly approveModal?:
|
|
19
|
-
protected readonly disapproveModal?:
|
|
18
|
+
protected readonly approveModal?: ZekModal;
|
|
19
|
+
protected readonly disapproveModal?: ZekModal;
|
|
20
20
|
init(): void;
|
|
21
21
|
bindModel(): Promise<void>;
|
|
22
22
|
protected initCreate(): void;
|
|
@@ -3,7 +3,7 @@ import { TranslateService } from '@ngx-translate/core';
|
|
|
3
3
|
import { IService } from '../services';
|
|
4
4
|
import { BaseComponent } from './base.component';
|
|
5
5
|
import { PagedList, Pager, PrintType } from '../models';
|
|
6
|
-
import {
|
|
6
|
+
import { ZekModal } from '../modules/modal/modal/modal.component';
|
|
7
7
|
import { AlertService } from '../services/alert.service';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
export declare class ListBaseComponent<TService extends IService = IService> extends BaseComponent<PagedList> {
|
|
@@ -18,13 +18,13 @@ export declare class ListBaseComponent<TService extends IService = IService> ext
|
|
|
18
18
|
selectedIds: any[];
|
|
19
19
|
pager: Pager;
|
|
20
20
|
sumModel: any;
|
|
21
|
-
protected readonly filterModal?:
|
|
21
|
+
protected readonly filterModal?: ZekModal | null;
|
|
22
22
|
approveModel: {
|
|
23
23
|
ids?: number[];
|
|
24
24
|
comment?: string;
|
|
25
25
|
};
|
|
26
|
-
protected readonly approveModal?:
|
|
27
|
-
protected readonly disapproveModal?:
|
|
26
|
+
protected readonly approveModal?: ZekModal | null;
|
|
27
|
+
protected readonly disapproveModal?: ZekModal | null;
|
|
28
28
|
constructor(service: TService, translate: TranslateService, alert: AlertService, route: ActivatedRoute, router: Router);
|
|
29
29
|
init(): void;
|
|
30
30
|
bindModel(): Promise<void>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ZekModal } from '../modal';
|
|
2
2
|
import { CoreComponent } from '../../components';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class ZekFileViewer<TModal extends
|
|
4
|
+
export declare class ZekFileViewer<TModal extends ZekModal = ZekModal> extends CoreComponent {
|
|
5
5
|
viewModal?: TModal | null;
|
|
6
6
|
src?: string | null;
|
|
7
7
|
show(url: string, extension?: string | null): void;
|
|
@@ -5,6 +5,6 @@ import * as i3 from "../modal/modal.module";
|
|
|
5
5
|
import * as i4 from "../safe/safe.module";
|
|
6
6
|
export declare class FileViewerModule {
|
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<FileViewerModule, never>;
|
|
8
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FileViewerModule, [typeof i1.ZekFileViewer], [typeof i2.CommonModule, typeof i3.
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FileViewerModule, [typeof i1.ZekFileViewer], [typeof i2.CommonModule, typeof i3.ZekModalModule, typeof i4.SafeModule], [typeof i1.ZekFileViewer]>;
|
|
9
9
|
static ɵinj: i0.ɵɵInjectorDeclaration<FileViewerModule>;
|
|
10
10
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { OnInit, OnDestroy } from '@angular/core';
|
|
2
2
|
import { LoadingInterceptor } from './loading-interceptor';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class
|
|
4
|
+
export declare class ZekLoading implements OnInit, OnDestroy {
|
|
5
5
|
private readonly loadingInterceptor;
|
|
6
6
|
show: boolean;
|
|
7
7
|
private subscription?;
|
|
8
8
|
constructor(loadingInterceptor: LoadingInterceptor);
|
|
9
9
|
ngOnInit(): void;
|
|
10
10
|
ngOnDestroy(): void;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
12
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ZekLoading, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ZekLoading, "zek-loading", never, {}, {}, never, never, false>;
|
|
13
13
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./loading.component";
|
|
3
3
|
import * as i2 from "@angular/common";
|
|
4
|
-
export declare class
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
6
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<
|
|
7
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<
|
|
4
|
+
export declare class ZekLoadingModule {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ZekLoadingModule, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ZekLoadingModule, [typeof i1.ZekLoading], [typeof i2.CommonModule], [typeof i1.ZekLoading]>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ZekLoadingModule>;
|
|
8
8
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { ZekModal } from '../modal/modal.component';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class
|
|
4
|
+
export declare class ZekFilterModal extends ZekModal {
|
|
5
5
|
onReset: EventEmitter<any>;
|
|
6
6
|
reset(): void;
|
|
7
7
|
protected getModalElement(): HTMLElement | null;
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
9
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ZekFilterModal, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ZekFilterModal, "zek-filter-modal", never, {}, { "onReset": "onReset"; }, never, ["*"], false>;
|
|
10
10
|
}
|
|
@@ -4,7 +4,7 @@ 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";
|
|
7
|
-
export declare class
|
|
7
|
+
export declare class ZekModal extends CoreComponent {
|
|
8
8
|
private readonly translate;
|
|
9
9
|
constructor(translate: TranslateService);
|
|
10
10
|
destroy(): Promise<void>;
|
|
@@ -60,31 +60,31 @@ export declare class ModalComponent extends CoreComponent {
|
|
|
60
60
|
hide(): void;
|
|
61
61
|
ok(): void;
|
|
62
62
|
keyDown(e: Event): void;
|
|
63
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
64
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
63
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ZekModal, never>;
|
|
64
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ZekModal, "zek-modal", never, { "model": "model"; "showOk": "showOk"; "disabledOk": "disabledOk"; "showCancel": "showCancel"; "autoHide": "autoHide"; "title": "title"; "text": "text"; "icon": "icon"; "okButtonText": "okButtonText"; "componentType": "componentType"; "large": "large"; "xl": "xl"; "scrollable": "scrollable"; "fullscreen": "fullscreen"; "showHeader": "showHeader"; "showFooter": "showFooter"; }, { "onShown": "onShown"; "onHidden": "onHidden"; "onOk": "onOk"; "onValidating": "onValidating"; }, never, ["header", "*", "footer"], false>;
|
|
65
65
|
}
|
|
66
|
-
export declare class
|
|
66
|
+
export declare class ZekDeleteModal extends ZekModal {
|
|
67
67
|
constructor(translate: TranslateService);
|
|
68
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
69
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
68
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ZekDeleteModal, never>;
|
|
69
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ZekDeleteModal, "zek-delete-modal", never, {}, {}, never, ["header", "*", "footer"], false>;
|
|
70
70
|
}
|
|
71
|
-
export declare class
|
|
71
|
+
export declare class ZekApproveModal extends ZekModal {
|
|
72
72
|
constructor(translate: TranslateService);
|
|
73
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
74
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
73
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ZekApproveModal, never>;
|
|
74
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ZekApproveModal, "zek-approve-modal", never, {}, {}, never, ["header", "*", "footer"], false>;
|
|
75
75
|
}
|
|
76
|
-
export declare class
|
|
76
|
+
export declare class ZekSubmitModal extends ZekModal {
|
|
77
77
|
constructor(translate: TranslateService);
|
|
78
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
79
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
78
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ZekSubmitModal, never>;
|
|
79
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ZekSubmitModal, "zek-submit-modal", never, {}, {}, never, ["header", "*", "footer"], false>;
|
|
80
80
|
}
|
|
81
|
-
export declare class
|
|
81
|
+
export declare class ZekDisapproveModal extends ZekModal {
|
|
82
82
|
constructor(translate: TranslateService);
|
|
83
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
84
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
83
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ZekDisapproveModal, never>;
|
|
84
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ZekDisapproveModal, "zek-disapprove-modal", never, {}, {}, never, ["header", "*", "footer"], false>;
|
|
85
85
|
}
|
|
86
|
-
export declare class
|
|
86
|
+
export declare class ZekRestoreModal extends ZekModal {
|
|
87
87
|
constructor(translate: TranslateService);
|
|
88
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
89
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
88
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ZekRestoreModal, never>;
|
|
89
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ZekRestoreModal, "zek-restore-modal", never, {}, {}, never, ["header", "*", "footer"], false>;
|
|
90
90
|
}
|
|
@@ -5,8 +5,8 @@ import * as i3 from "./sum-modal/sum-modal.component";
|
|
|
5
5
|
import * as i4 from "@angular/common";
|
|
6
6
|
import * as i5 from "@angular/router";
|
|
7
7
|
import * as i6 from "@ngx-translate/core";
|
|
8
|
-
export declare class
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
10
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<
|
|
11
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<
|
|
8
|
+
export declare class ZekModalModule {
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ZekModalModule, never>;
|
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ZekModalModule, [typeof i1.ZekModal, typeof i1.ZekDeleteModal, typeof i1.ZekApproveModal, typeof i1.ZekSubmitModal, typeof i1.ZekDisapproveModal, typeof i1.ZekRestoreModal, typeof i2.ZekFilterModal, typeof i3.ZekSumModal], [typeof i4.CommonModule, typeof i5.RouterModule, typeof i6.TranslateModule], [typeof i1.ZekModal, typeof i1.ZekDeleteModal, typeof i1.ZekApproveModal, typeof i1.ZekSubmitModal, typeof i1.ZekDisapproveModal, typeof i1.ZekRestoreModal, typeof i2.ZekFilterModal, typeof i3.ZekSumModal]>;
|
|
11
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ZekModalModule>;
|
|
12
12
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class
|
|
2
|
+
export declare class ZekSumModal {
|
|
3
3
|
model: any;
|
|
4
4
|
private modal?;
|
|
5
5
|
sum(): void;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
7
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ZekSumModal, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ZekSumModal, "zek-sum-modal", never, { "model": "model"; }, {}, never, never, false>;
|
|
8
8
|
}
|
|
@@ -2,7 +2,7 @@ import { EventEmitter } from '@angular/core';
|
|
|
2
2
|
import { BooleanInput } from '../../../components';
|
|
3
3
|
import { Pager } from '../../../models';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class
|
|
5
|
+
export declare class ZekPager {
|
|
6
6
|
pager: Pager;
|
|
7
7
|
private _showPageSize;
|
|
8
8
|
get showPageSize(): boolean;
|
|
@@ -12,6 +12,6 @@ export declare class PagerComponent {
|
|
|
12
12
|
setPageSize(pageSize: number): void;
|
|
13
13
|
onPageChange: EventEmitter<number>;
|
|
14
14
|
onPageSizeChange: EventEmitter<number>;
|
|
15
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ZekPager, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ZekPager, "zek-pager", never, { "pager": "pager"; "showPageSize": "showPageSize"; "pagerAlign": "pagerAlign"; }, { "onPageChange": "onPageChange"; "onPageSizeChange": "onPageSizeChange"; }, never, never, false>;
|
|
17
17
|
}
|
|
@@ -2,8 +2,8 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
import * as i1 from "./pager/pager.component";
|
|
3
3
|
import * as i2 from "@angular/common";
|
|
4
4
|
import * as i3 from "@ngx-translate/core";
|
|
5
|
-
export declare class
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
7
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<
|
|
8
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<
|
|
5
|
+
export declare class ZekPagerModule {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ZekPagerModule, never>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ZekPagerModule, [typeof i1.ZekPager], [typeof i2.CommonModule, typeof i3.TranslateModule], [typeof i1.ZekPager]>;
|
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ZekPagerModule>;
|
|
9
9
|
}
|
package/lib/utils/convert.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export declare class Convert {
|
|
2
2
|
static toBoolean(value: any): boolean;
|
|
3
|
+
static toBooleanProperty(value: any): boolean;
|
|
3
4
|
static parseNumber(value: any): number | null;
|
|
4
5
|
static toNumber(value: any, defaultValue?: number): number;
|
|
5
6
|
static isNumber(value: any): boolean;
|