ngx-techlify-checksheet 18.1.0 → 18.3.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/esm2022/lib/checksheet/checksheet-format-form/checksheet-format-form.component.mjs +38 -35
- package/esm2022/lib/checksheet/checksheet-list/checksheet-list.component.mjs +16 -6
- package/esm2022/lib/checksheet/checksheet-question/checksheet-question.component.mjs +3 -3
- package/fesm2022/ngx-techlify-checksheet.mjs +81 -66
- package/fesm2022/ngx-techlify-checksheet.mjs.map +1 -1
- package/lib/checksheet/checksheet-format-form/checksheet-format-form.component.d.ts +5 -11
- package/lib/checksheet/checksheet-list/checksheet-list.component.d.ts +6 -3
- package/package.json +1 -1
|
@@ -1,22 +1,15 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import { FormValidatorService } from 'ngx-techlify-core';
|
|
4
|
-
import { NgxSpinnerService } from 'ngx-spinner';
|
|
5
|
-
import { AlertService, ErrorHandlerService, DataManager } from 'ngx-techlify-core';
|
|
2
|
+
import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
|
|
3
|
+
import { AlertService, FormValidatorService } from 'ngx-techlify-core';
|
|
6
4
|
import { ActivatedRoute } from '@angular/router';
|
|
7
5
|
import { Location } from '@angular/common';
|
|
8
|
-
import { MatDialog } from '@angular/material/dialog';
|
|
9
6
|
import { ChecksheetFormatService } from '../checksheet-format.service';
|
|
10
7
|
import * as i0 from "@angular/core";
|
|
11
8
|
export declare class ChecksheetFormatFormComponent implements OnInit {
|
|
12
9
|
private formValidatorService;
|
|
13
10
|
private fb;
|
|
14
|
-
private spinnerService;
|
|
15
11
|
private alertService;
|
|
16
12
|
location: Location;
|
|
17
|
-
private errorHandler;
|
|
18
|
-
private dataManager;
|
|
19
|
-
private dialog;
|
|
20
13
|
private route;
|
|
21
14
|
private checksheetFormatService;
|
|
22
15
|
checksheetForm: UntypedFormGroup;
|
|
@@ -26,8 +19,8 @@ export declare class ChecksheetFormatFormComponent implements OnInit {
|
|
|
26
19
|
id: number;
|
|
27
20
|
disableInput: boolean;
|
|
28
21
|
isLoading: boolean;
|
|
29
|
-
|
|
30
|
-
constructor(formValidatorService: FormValidatorService, fb: UntypedFormBuilder,
|
|
22
|
+
isShowChecksheetInfo: boolean;
|
|
23
|
+
constructor(formValidatorService: FormValidatorService, fb: UntypedFormBuilder, alertService: AlertService, location: Location, route: ActivatedRoute, checksheetFormatService: ChecksheetFormatService);
|
|
31
24
|
ngOnInit(): void;
|
|
32
25
|
/**
|
|
33
26
|
* Create a check-sheet form.
|
|
@@ -40,6 +33,7 @@ export declare class ChecksheetFormatFormComponent implements OnInit {
|
|
|
40
33
|
getErrorMessage(field: string): any;
|
|
41
34
|
submit(): void;
|
|
42
35
|
loadChecksheetFormat(): void;
|
|
36
|
+
handleCancel(): void;
|
|
43
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<ChecksheetFormatFormComponent, never>;
|
|
44
38
|
static ɵcmp: i0.ɵɵComponentDeclaration<ChecksheetFormatFormComponent, "app-checksheet-format-form", never, { "disableInput": { "alias": "disableInput"; "required": false; }; }, {}, never, never, false, never>;
|
|
45
39
|
}
|
|
@@ -2,7 +2,7 @@ import { OnInit } from '@angular/core';
|
|
|
2
2
|
import { UntypedFormBuilder } from '@angular/forms';
|
|
3
3
|
import { RequestHelperService, TechlifyListingControllerInterface, TimelineValue, AlertService } from 'ngx-techlify-core';
|
|
4
4
|
import { ChecksheetService } from '../checksheet.service';
|
|
5
|
-
import { ActivatedRoute } from "@angular/router";
|
|
5
|
+
import { ActivatedRoute, Router } from "@angular/router";
|
|
6
6
|
import { Sort } from "@angular/material/sort";
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
export declare class ChecksheetListComponent extends TechlifyListingControllerInterface implements OnInit {
|
|
@@ -11,11 +11,13 @@ export declare class ChecksheetListComponent extends TechlifyListingControllerIn
|
|
|
11
11
|
private service;
|
|
12
12
|
private requestHelperService;
|
|
13
13
|
private activatedRoute;
|
|
14
|
+
private router;
|
|
14
15
|
submittableId: number;
|
|
15
16
|
submittableType: string;
|
|
17
|
+
basePath: string[];
|
|
16
18
|
displayedColumns: any[];
|
|
17
19
|
with: string;
|
|
18
|
-
constructor(alertService: AlertService, fb: UntypedFormBuilder, service: ChecksheetService, requestHelperService: RequestHelperService, activatedRoute: ActivatedRoute);
|
|
20
|
+
constructor(alertService: AlertService, fb: UntypedFormBuilder, service: ChecksheetService, requestHelperService: RequestHelperService, activatedRoute: ActivatedRoute, router: Router);
|
|
19
21
|
ngOnInit(): void;
|
|
20
22
|
private createForm;
|
|
21
23
|
loadData(): void;
|
|
@@ -28,6 +30,7 @@ export declare class ChecksheetListComponent extends TechlifyListingControllerIn
|
|
|
28
30
|
private subscribeToFormChanges;
|
|
29
31
|
private subscribeToRouteChanges;
|
|
30
32
|
onSortChange(sort: Sort): void;
|
|
33
|
+
navigateTo(pathSegments: string[]): Promise<boolean>;
|
|
31
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<ChecksheetListComponent, never>;
|
|
32
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ChecksheetListComponent, "app-checksheet-list", never, { "submittableId": { "alias": "submittableId"; "required": false; }; "submittableType": { "alias": "submittableType"; "required": false; }; }, {}, never, never, false, never>;
|
|
35
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChecksheetListComponent, "app-checksheet-list", never, { "submittableId": { "alias": "submittableId"; "required": false; }; "submittableType": { "alias": "submittableType"; "required": false; }; "basePath": { "alias": "basePath"; "required": false; }; }, {}, never, never, false, never>;
|
|
33
36
|
}
|