zek 17.3.30 → 17.3.34
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/esm2022/lib/components/base.component.mjs +1 -1
- package/esm2022/lib/modules/date-ago/date-ago.pipe.mjs +5 -5
- package/esm2022/lib/modules/edit-toolbar/edit-toolbar.mjs +1 -1
- package/esm2022/lib/modules/modal/modal/modal.component.mjs +60 -44
- package/esm2022/lib/utils/date-helper.mjs +1 -2
- package/esm2022/lib/utils/excel-helper.mjs +13 -0
- package/esm2022/lib/utils/index.mjs +2 -1
- package/fesm2022/zek.mjs +115 -88
- package/fesm2022/zek.mjs.map +1 -1
- package/lib/components/base.component.d.ts +1 -1
- package/lib/modules/date-ago/date-ago.pipe.d.ts +3 -3
- package/lib/modules/edit-toolbar/edit-toolbar.d.ts +1 -1
- package/lib/modules/modal/modal/modal.component.d.ts +22 -7
- package/lib/utils/bootstrap.helper.d.ts +1 -1
- package/lib/utils/excel-helper.d.ts +3 -0
- package/lib/utils/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -8,7 +8,7 @@ export declare class BaseComponent<TModel = any> extends CoreComponent {
|
|
|
8
8
|
protected readonly route: ActivatedRoute;
|
|
9
9
|
protected readonly router: Router;
|
|
10
10
|
private _readOnly;
|
|
11
|
-
get readOnly():
|
|
11
|
+
get readOnly(): boolean;
|
|
12
12
|
set readOnly(v: BooleanInput);
|
|
13
13
|
private _url;
|
|
14
14
|
protected get url(): string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class
|
|
3
|
+
export declare class ZekDateAgoPipe implements PipeTransform {
|
|
4
4
|
transform(value: any, args?: any): string | Date | null;
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
6
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ZekDateAgoPipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<ZekDateAgoPipe, "dateAgo", true>;
|
|
7
7
|
}
|
|
@@ -17,7 +17,7 @@ export declare class ZekEditToolbar {
|
|
|
17
17
|
get showPrint(): BooleanInput;
|
|
18
18
|
set showPrint(v: BooleanInput);
|
|
19
19
|
private _readOnly;
|
|
20
|
-
get readOnly():
|
|
20
|
+
get readOnly(): boolean;
|
|
21
21
|
set readOnly(v: BooleanInput);
|
|
22
22
|
onSave: EventEmitter<any>;
|
|
23
23
|
onCancel: EventEmitter<any>;
|
|
@@ -6,8 +6,8 @@ import { ValidEventArgs } from '../../../models/valid-event-args.model';
|
|
|
6
6
|
import { ModalSize } from '../../../models';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
export declare class ZekModal extends CoreComponent {
|
|
9
|
-
|
|
10
|
-
constructor(
|
|
9
|
+
protected readonly translate: TranslateService;
|
|
10
|
+
constructor();
|
|
11
11
|
destroy(): Promise<void>;
|
|
12
12
|
init(): void;
|
|
13
13
|
private _uniqueId;
|
|
@@ -78,28 +78,43 @@ export declare class ZekModal extends CoreComponent {
|
|
|
78
78
|
static ɵfac: i0.ɵɵFactoryDeclaration<ZekModal, never>;
|
|
79
79
|
static ɵcmp: i0.ɵɵComponentDeclaration<ZekModal, "zek-modal", never, { "id": { "alias": "id"; "required": false; }; "model": { "alias": "model"; "required": false; }; "showOk": { "alias": "showOk"; "required": false; }; "disabledOk": { "alias": "disabledOk"; "required": false; }; "showCancel": { "alias": "showCancel"; "required": false; }; "autoHide": { "alias": "autoHide"; "required": false; }; "title": { "alias": "title"; "required": false; }; "text": { "alias": "text"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "okButtonText": { "alias": "okButtonText"; "required": false; }; "componentType": { "alias": "componentType"; "required": false; }; "size": { "alias": "size"; "required": false; }; "large": { "alias": "large"; "required": false; }; "xl": { "alias": "xl"; "required": false; }; "scrollable": { "alias": "scrollable"; "required": false; }; "fullscreen": { "alias": "fullscreen"; "required": false; }; "showHeader": { "alias": "showHeader"; "required": false; }; "showFooter": { "alias": "showFooter"; "required": false; }; }, { "onShown": "onShown"; "onHidden": "onHidden"; "onOk": "onOk"; "onValidating": "onValidating"; }, never, ["header", "*", "footer"], false, never>;
|
|
80
80
|
}
|
|
81
|
+
/**
|
|
82
|
+
* @deprecated Please use ZekModal
|
|
83
|
+
*/
|
|
81
84
|
export declare class ZekDeleteModal extends ZekModal {
|
|
82
|
-
constructor(
|
|
85
|
+
constructor();
|
|
83
86
|
static ɵfac: i0.ɵɵFactoryDeclaration<ZekDeleteModal, never>;
|
|
84
87
|
static ɵcmp: i0.ɵɵComponentDeclaration<ZekDeleteModal, "zek-delete-modal", never, {}, {}, never, ["header", "*", "footer"], false, never>;
|
|
85
88
|
}
|
|
89
|
+
/**
|
|
90
|
+
* @deprecated Please use ZekModal
|
|
91
|
+
*/
|
|
86
92
|
export declare class ZekApproveModal extends ZekModal {
|
|
87
|
-
constructor(
|
|
93
|
+
constructor();
|
|
88
94
|
static ɵfac: i0.ɵɵFactoryDeclaration<ZekApproveModal, never>;
|
|
89
95
|
static ɵcmp: i0.ɵɵComponentDeclaration<ZekApproveModal, "zek-approve-modal", never, {}, {}, never, ["header", "*", "footer"], false, never>;
|
|
90
96
|
}
|
|
97
|
+
/**
|
|
98
|
+
* @deprecated Please use ZekModal
|
|
99
|
+
*/
|
|
91
100
|
export declare class ZekSubmitModal extends ZekModal {
|
|
92
|
-
constructor(
|
|
101
|
+
constructor();
|
|
93
102
|
static ɵfac: i0.ɵɵFactoryDeclaration<ZekSubmitModal, never>;
|
|
94
103
|
static ɵcmp: i0.ɵɵComponentDeclaration<ZekSubmitModal, "zek-submit-modal", never, {}, {}, never, ["header", "*", "footer"], false, never>;
|
|
95
104
|
}
|
|
105
|
+
/**
|
|
106
|
+
* @deprecated Please use ZekModal
|
|
107
|
+
*/
|
|
96
108
|
export declare class ZekDisapproveModal extends ZekModal {
|
|
97
|
-
constructor(
|
|
109
|
+
constructor();
|
|
98
110
|
static ɵfac: i0.ɵɵFactoryDeclaration<ZekDisapproveModal, never>;
|
|
99
111
|
static ɵcmp: i0.ɵɵComponentDeclaration<ZekDisapproveModal, "zek-disapprove-modal", never, {}, {}, never, ["header", "*", "footer"], false, never>;
|
|
100
112
|
}
|
|
113
|
+
/**
|
|
114
|
+
* @deprecated Please use ZekModal
|
|
115
|
+
*/
|
|
101
116
|
export declare class ZekRestoreModal extends ZekModal {
|
|
102
|
-
constructor(
|
|
117
|
+
constructor();
|
|
103
118
|
static ɵfac: i0.ɵɵFactoryDeclaration<ZekRestoreModal, never>;
|
|
104
119
|
static ɵcmp: i0.ɵɵComponentDeclaration<ZekRestoreModal, "zek-restore-modal", never, {}, {}, never, ["header", "*", "footer"], false, never>;
|
|
105
120
|
}
|
|
@@ -16,7 +16,7 @@ export declare enum Color {
|
|
|
16
16
|
Dark = 8
|
|
17
17
|
}
|
|
18
18
|
export declare class BootstrapHelper {
|
|
19
|
-
static cssColor(color?: Color | null): "" | "bg-primary text-white" | "bg-
|
|
19
|
+
static cssColor(color?: Color | null): "" | "bg-primary text-white" | "bg-success text-white" | "bg-danger text-white" | "bg-warning text-dark" | "bg-dark text-white" | "bg-secondary text-white" | "bg-info text-dark";
|
|
20
20
|
static cssIcon(type: ComponentType): string | null;
|
|
21
21
|
static cssButton(type: ComponentType): string;
|
|
22
22
|
static cssAlert(type?: AlertType | null): string;
|
package/lib/utils/index.d.ts
CHANGED