zek 16.1.11 → 16.1.12
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/edit-base.component.mjs +2 -2
- package/esm2022/lib/components/list-base.component.mjs +1 -1
- package/esm2022/lib/models/approve.moodel.mjs +2 -0
- package/esm2022/lib/models/batch.model.mjs +2 -0
- package/esm2022/lib/models/index.mjs +3 -2
- package/esm2022/lib/services/crud.service.mjs +15 -12
- package/fesm2022/zek.mjs +15 -12
- package/fesm2022/zek.mjs.map +1 -1
- package/lib/components/edit-base.component.d.ts +3 -6
- package/lib/components/list-base.component.d.ts +2 -2
- package/lib/models/{approve-model.d.ts → approve.moodel.d.ts} +1 -1
- package/lib/models/batch.model.d.ts +8 -0
- package/lib/models/index.d.ts +2 -1
- package/lib/services/crud.service.d.ts +2 -0
- package/lib/utils/bootstrap.helper.d.ts +1 -1
- package/package.json +1 -1
- package/esm2022/lib/models/approve-model.mjs +0 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
2
2
|
import { NgForm } from '@angular/forms';
|
|
3
3
|
import { BaseComponent } from './base.component';
|
|
4
|
-
import { IObjectConstructor, PrintType } from '../models';
|
|
4
|
+
import { ApproveModel, IObjectConstructor, PrintType } from '../models';
|
|
5
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';
|
|
@@ -11,10 +11,7 @@ export declare class EditFormComponent<TModel = any> extends BaseComponent<TMode
|
|
|
11
11
|
id?: number | null;
|
|
12
12
|
id2?: number | null;
|
|
13
13
|
form?: NgForm;
|
|
14
|
-
approveModel:
|
|
15
|
-
ids?: number[];
|
|
16
|
-
comment?: string | null;
|
|
17
|
-
};
|
|
14
|
+
approveModel: ApproveModel;
|
|
18
15
|
protected readonly approveModal?: ZekModal;
|
|
19
16
|
protected readonly disapproveModal?: ZekModal;
|
|
20
17
|
init(): void;
|
|
@@ -26,7 +23,7 @@ export declare class EditFormComponent<TModel = any> extends BaseComponent<TMode
|
|
|
26
23
|
protected internalSave(navigateToReturnUrl?: boolean): Promise<boolean>;
|
|
27
24
|
showApproveModal(): void;
|
|
28
25
|
approve(): Promise<void>;
|
|
29
|
-
protected internalApprove(
|
|
26
|
+
protected internalApprove(model?: any): Promise<boolean>;
|
|
30
27
|
showDisapproveModal(): void;
|
|
31
28
|
disapprove(): Promise<void>;
|
|
32
29
|
protected internalDisapprove(model?: any): Promise<boolean>;
|
|
@@ -2,7 +2,7 @@ import { Router, ActivatedRoute } from '@angular/router';
|
|
|
2
2
|
import { TranslateService } from '@ngx-translate/core';
|
|
3
3
|
import { IService } from '../services';
|
|
4
4
|
import { BaseComponent } from './base.component';
|
|
5
|
-
import { PagedList, Pager, PrintType
|
|
5
|
+
import { ApproveModel, PagedList, Pager, PrintType } from '../models';
|
|
6
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";
|
|
@@ -19,7 +19,7 @@ export declare class ListBaseComponent<TService extends IService = IService, TPa
|
|
|
19
19
|
pager: Pager;
|
|
20
20
|
sumModel: any;
|
|
21
21
|
protected readonly filterModal?: ZekModal | null;
|
|
22
|
-
approveModel:
|
|
22
|
+
approveModel: ApproveModel;
|
|
23
23
|
protected readonly approveModal?: ZekModal | null;
|
|
24
24
|
protected approvedMesage: string;
|
|
25
25
|
protected readonly disapproveModal?: ZekModal | null;
|
package/lib/models/index.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export interface IService {
|
|
|
15
15
|
restore(id: any): Observable<any>;
|
|
16
16
|
approve(model: any): Observable<any>;
|
|
17
17
|
disapprove(model: any): Observable<any>;
|
|
18
|
+
batch(model: any): Observable<any>;
|
|
18
19
|
}
|
|
19
20
|
export declare class CrudService extends BaseService implements IService {
|
|
20
21
|
constructor(controller: string, api: WebApiClient, httpErrorHandler: HttpErrorHandler);
|
|
@@ -28,5 +29,6 @@ export declare class CrudService extends BaseService implements IService {
|
|
|
28
29
|
restore(id: any): Observable<any>;
|
|
29
30
|
approve(model: any): Observable<any>;
|
|
30
31
|
disapprove(model: any): Observable<any>;
|
|
32
|
+
batch(model: any): Observable<any>;
|
|
31
33
|
export(model: any, fileTypeId: any): Observable<Blob | null>;
|
|
32
34
|
}
|
|
@@ -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-secondary text-white" | "bg-success text-white" | "bg-danger text-white" | "bg-warning text-dark" | "bg-info text-dark" | "bg-dark text-white";
|
|
20
20
|
static cssIcon(type: ComponentType): string | null;
|
|
21
21
|
static cssButton(type: ComponentType): string;
|
|
22
22
|
static cssAlert(type?: AlertType | null): string;
|
package/package.json
CHANGED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBwcm92ZS1tb2RlbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3play9zcmMvbGliL21vZGVscy9hcHByb3ZlLW1vZGVsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgaW50ZXJmYWNlIGFwcHJvdmVNb2RlbCB7XHJcbiAgICBpZHM/OiBudW1iZXJbXSB8IG51bGw7XHJcbiAgICBzdGF0dXM/OiBudW1iZXIgfCBudWxsXHJcbiAgICBjb21tZW50Pzogc3RyaW5nIHwgbnVsbDtcclxufSJdfQ==
|