ngx-techlify-checksheet 18.0.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/README.md +24 -0
- package/esm2022/lib/@shared/file-upload-button/file-upload-button.component.mjs +50 -0
- package/esm2022/lib/@shared/index.mjs +2 -0
- package/esm2022/lib/@shared/material.module.mjs +171 -0
- package/esm2022/lib/@shared/shared.module.mjs +54 -0
- package/esm2022/lib/checksheet/checksheet-form/checksheet-form.component.mjs +161 -0
- package/esm2022/lib/checksheet/checksheet-form-button/checksheet-form-button.component.mjs +58 -0
- package/esm2022/lib/checksheet/checksheet-format-list/checksheet-format-list.component.mjs +123 -0
- package/esm2022/lib/checksheet/checksheet-format-question.service.mjs +18 -0
- package/esm2022/lib/checksheet/checksheet-format.service.mjs +24 -0
- package/esm2022/lib/checksheet/checksheet-list/checksheet-list.component.mjs +138 -0
- package/esm2022/lib/checksheet/checksheet-node-view/checksheet-node-view.component.mjs +59 -0
- package/esm2022/lib/checksheet/checksheet-question/checksheet-question.component.mjs +174 -0
- package/esm2022/lib/checksheet/checksheet-question-form/checksheet-question-form.component.mjs +148 -0
- package/esm2022/lib/checksheet/checksheet-question-list/checksheet-question-list.component.mjs +161 -0
- package/esm2022/lib/checksheet/checksheet-report/checksheet-report.component.mjs +242 -0
- package/esm2022/lib/checksheet/checksheet-review-button/checksheet-review-button.component.mjs +68 -0
- package/esm2022/lib/checksheet/checksheet-routing.module.mjs +44 -0
- package/esm2022/lib/checksheet/checksheet-submission-answer.service.mjs +18 -0
- package/esm2022/lib/checksheet/checksheet-submission-delete-button/checksheet-submission-delete-button.component.mjs +52 -0
- package/esm2022/lib/checksheet/checksheet-submission-file/checksheet-submission-file-delete-button/checksheet-submission-file-delete-button.component.mjs +55 -0
- package/esm2022/lib/checksheet/checksheet-submission-file/checksheet-submission-files/checksheet-submission-files.component.mjs +67 -0
- package/esm2022/lib/checksheet/checksheet-submission-file-upload/checksheet-submisison-file-upload.component.mjs +46 -0
- package/esm2022/lib/checksheet/checksheet-submission-file.service.mjs +18 -0
- package/esm2022/lib/checksheet/checksheet-submission-form/checksheet-submission-form.component.mjs +131 -0
- package/esm2022/lib/checksheet/checksheet-submission-form-button/checksheet-submission-form-button.component.mjs +58 -0
- package/esm2022/lib/checksheet/checksheet-submission-list/checksheet-submission-list.component.mjs +107 -0
- package/esm2022/lib/checksheet/checksheet-submission-review-button/checksheet-submission-review-button.component.mjs +68 -0
- package/esm2022/lib/checksheet/checksheet-submission-view/checksheet-submission-view.component.mjs +142 -0
- package/esm2022/lib/checksheet/checksheet-submission.service.mjs +36 -0
- package/esm2022/lib/checksheet/checksheet-submittable.type.mjs +2 -0
- package/esm2022/lib/checksheet/checksheet-view/checksheet-view.component.mjs +140 -0
- package/esm2022/lib/checksheet/checksheet.module.mjs +131 -0
- package/esm2022/lib/checksheet/checksheet.service.mjs +44 -0
- package/esm2022/lib/checksheet/mechanical-issue-form/mechanical-issue-form.component.mjs +73 -0
- package/esm2022/ngx-techlify-checksheet.mjs +5 -0
- package/esm2022/public-api.mjs +9 -0
- package/fesm2022/ngx-techlify-checksheet.mjs +2550 -0
- package/fesm2022/ngx-techlify-checksheet.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/@shared/file-upload-button/file-upload-button.component.d.ts +20 -0
- package/lib/@shared/index.d.ts +1 -0
- package/lib/@shared/material.module.d.ts +40 -0
- package/lib/@shared/shared.module.d.ts +14 -0
- package/lib/checksheet/checksheet-form/checksheet-form.component.d.ts +45 -0
- package/lib/checksheet/checksheet-form-button/checksheet-form-button.component.d.ts +29 -0
- package/lib/checksheet/checksheet-format-list/checksheet-format-list.component.d.ts +19 -0
- package/lib/checksheet/checksheet-format-question.service.d.ts +7 -0
- package/lib/checksheet/checksheet-format.service.d.ts +10 -0
- package/lib/checksheet/checksheet-list/checksheet-list.component.d.ts +31 -0
- package/lib/checksheet/checksheet-node-view/checksheet-node-view.component.d.ts +25 -0
- package/lib/checksheet/checksheet-question/checksheet-question.component.d.ts +34 -0
- package/lib/checksheet/checksheet-question-form/checksheet-question-form.component.d.ts +38 -0
- package/lib/checksheet/checksheet-question-list/checksheet-question-list.component.d.ts +26 -0
- package/lib/checksheet/checksheet-report/checksheet-report.component.d.ts +47 -0
- package/lib/checksheet/checksheet-review-button/checksheet-review-button.component.d.ts +32 -0
- package/lib/checksheet/checksheet-routing.module.d.ts +7 -0
- package/lib/checksheet/checksheet-submission-answer.service.d.ts +7 -0
- package/lib/checksheet/checksheet-submission-delete-button/checksheet-submission-delete-button.component.d.ts +24 -0
- package/lib/checksheet/checksheet-submission-file/checksheet-submission-file-delete-button/checksheet-submission-file-delete-button.component.d.ts +24 -0
- package/lib/checksheet/checksheet-submission-file/checksheet-submission-files/checksheet-submission-files.component.d.ts +17 -0
- package/lib/checksheet/checksheet-submission-file-upload/checksheet-submisison-file-upload.component.d.ts +13 -0
- package/lib/checksheet/checksheet-submission-file.service.d.ts +7 -0
- package/lib/checksheet/checksheet-submission-form/checksheet-submission-form.component.d.ts +27 -0
- package/lib/checksheet/checksheet-submission-form-button/checksheet-submission-form-button.component.d.ts +29 -0
- package/lib/checksheet/checksheet-submission-list/checksheet-submission-list.component.d.ts +24 -0
- package/lib/checksheet/checksheet-submission-review-button/checksheet-submission-review-button.component.d.ts +32 -0
- package/lib/checksheet/checksheet-submission-view/checksheet-submission-view.component.d.ts +37 -0
- package/lib/checksheet/checksheet-submission.service.d.ts +22 -0
- package/lib/checksheet/checksheet-submittable.type.d.ts +1 -0
- package/lib/checksheet/checksheet-view/checksheet-view.component.d.ts +37 -0
- package/lib/checksheet/checksheet.module.d.ts +34 -0
- package/lib/checksheet/checksheet.service.d.ts +25 -0
- package/lib/checksheet/mechanical-issue-form/mechanical-issue-form.component.d.ts +21 -0
- package/package.json +45 -0
- package/public-api.d.ts +5 -0
package/index.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { EntityFileService } from 'ngx-techlify-core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class FileUploadButtonComponent {
|
|
5
|
+
private entityFileService;
|
|
6
|
+
config: {
|
|
7
|
+
fileId?: string | undefined;
|
|
8
|
+
multiple?: boolean | undefined;
|
|
9
|
+
accept?: string | undefined;
|
|
10
|
+
};
|
|
11
|
+
uploaded: EventEmitter<any[]>;
|
|
12
|
+
readonly DEFAULT_FILE_ID = "file-upload-button";
|
|
13
|
+
isUploading: boolean;
|
|
14
|
+
constructor(entityFileService: EntityFileService);
|
|
15
|
+
onFileChange(event: any): Promise<void>;
|
|
16
|
+
selectFiles(event: any): void;
|
|
17
|
+
private uploadFiles;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FileUploadButtonComponent, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FileUploadButtonComponent, "app-file-upload-button", never, { "config": { "alias": "config"; "required": false; }; }, { "uploaded": "uploaded"; }, never, never, true, never>;
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './shared.module';
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "@angular/material/autocomplete";
|
|
3
|
+
import * as i2 from "@angular/material/badge";
|
|
4
|
+
import * as i3 from "@angular/material/button";
|
|
5
|
+
import * as i4 from "@angular/material/button-toggle";
|
|
6
|
+
import * as i5 from "@angular/material/card";
|
|
7
|
+
import * as i6 from "@angular/material/checkbox";
|
|
8
|
+
import * as i7 from "@angular/material/chips";
|
|
9
|
+
import * as i8 from "@angular/material/core";
|
|
10
|
+
import * as i9 from "@angular/material/datepicker";
|
|
11
|
+
import * as i10 from "@angular/material/dialog";
|
|
12
|
+
import * as i11 from "@angular/material/divider";
|
|
13
|
+
import * as i12 from "@angular/material/expansion";
|
|
14
|
+
import * as i13 from "@angular/material/form-field";
|
|
15
|
+
import * as i14 from "@angular/material/grid-list";
|
|
16
|
+
import * as i15 from "@angular/material/icon";
|
|
17
|
+
import * as i16 from "@angular/material/input";
|
|
18
|
+
import * as i17 from "@angular/material/list";
|
|
19
|
+
import * as i18 from "@angular/material/menu";
|
|
20
|
+
import * as i19 from "@angular/material/paginator";
|
|
21
|
+
import * as i20 from "@angular/material/progress-bar";
|
|
22
|
+
import * as i21 from "@angular/material/progress-spinner";
|
|
23
|
+
import * as i22 from "@angular/material/radio";
|
|
24
|
+
import * as i23 from "@angular/material/select";
|
|
25
|
+
import * as i24 from "@angular/material/sidenav";
|
|
26
|
+
import * as i25 from "@angular/material/slide-toggle";
|
|
27
|
+
import * as i26 from "@angular/material/slider";
|
|
28
|
+
import * as i27 from "@angular/material/snack-bar";
|
|
29
|
+
import * as i28 from "@angular/material/sort";
|
|
30
|
+
import * as i29 from "@angular/material/stepper";
|
|
31
|
+
import * as i30 from "@angular/material/table";
|
|
32
|
+
import * as i31 from "@angular/material/tabs";
|
|
33
|
+
import * as i32 from "@angular/material/toolbar";
|
|
34
|
+
import * as i33 from "@angular/material/tooltip";
|
|
35
|
+
import * as i34 from "@angular/material/tree";
|
|
36
|
+
export declare class MaterialModule {
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MaterialModule, never>;
|
|
38
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MaterialModule, never, never, [typeof i1.MatAutocompleteModule, typeof i2.MatBadgeModule, typeof i3.MatButtonModule, typeof i4.MatButtonToggleModule, typeof i5.MatCardModule, typeof i6.MatCheckboxModule, typeof i7.MatChipsModule, typeof i8.MatCommonModule, typeof i9.MatDatepickerModule, typeof i10.MatDialogModule, typeof i11.MatDividerModule, typeof i12.MatExpansionModule, typeof i13.MatFormFieldModule, typeof i14.MatGridListModule, typeof i15.MatIconModule, typeof i16.MatInputModule, typeof i8.MatLineModule, typeof i17.MatListModule, typeof i18.MatMenuModule, typeof i8.MatNativeDateModule, typeof i8.MatOptionModule, typeof i19.MatPaginatorModule, typeof i20.MatProgressBarModule, typeof i21.MatProgressSpinnerModule, typeof i8.MatPseudoCheckboxModule, typeof i22.MatRadioModule, typeof i8.MatRippleModule, typeof i23.MatSelectModule, typeof i24.MatSidenavModule, typeof i25.MatSlideToggleModule, typeof i26.MatSliderModule, typeof i27.MatSnackBarModule, typeof i28.MatSortModule, typeof i29.MatStepperModule, typeof i30.MatTableModule, typeof i31.MatTabsModule, typeof i32.MatToolbarModule, typeof i33.MatTooltipModule, typeof i34.MatTreeModule]>;
|
|
39
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MaterialModule>;
|
|
40
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "@angular/flex-layout";
|
|
3
|
+
import * as i2 from "./material.module";
|
|
4
|
+
import * as i3 from "@angular/common";
|
|
5
|
+
import * as i4 from "ngx-permissions";
|
|
6
|
+
import * as i5 from "@angular/forms";
|
|
7
|
+
import * as i6 from "ngx-infinite-scroll";
|
|
8
|
+
import * as i7 from "@angular/router";
|
|
9
|
+
import * as i8 from "ngx-techlify-core";
|
|
10
|
+
export declare class SharedModule {
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SharedModule, never>;
|
|
12
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedModule, never, [typeof i1.FlexLayoutModule, typeof i2.MaterialModule, typeof i3.CommonModule], [typeof i1.FlexLayoutModule, typeof i2.MaterialModule, typeof i4.NgxPermissionsModule, typeof i5.FormsModule, typeof i5.ReactiveFormsModule, typeof i6.InfiniteScrollModule, typeof i7.RouterModule, typeof i8.LoaderModule]>;
|
|
13
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SharedModule>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { UntypedFormGroup, UntypedFormBuilder } from '@angular/forms';
|
|
3
|
+
import { FormValidatorService } from 'ngx-techlify-core';
|
|
4
|
+
import { NgxSpinnerService } from 'ngx-spinner';
|
|
5
|
+
import { AlertService, ErrorHandlerService, DataManager } from 'ngx-techlify-core';
|
|
6
|
+
import { ActivatedRoute } from '@angular/router';
|
|
7
|
+
import { Location } from '@angular/common';
|
|
8
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
9
|
+
import { ChecksheetFormatService } from '../checksheet-format.service';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
export declare class ChecksheetFormComponent implements OnInit {
|
|
12
|
+
private formValidatorService;
|
|
13
|
+
private fb;
|
|
14
|
+
private spinnerService;
|
|
15
|
+
private alertService;
|
|
16
|
+
location: Location;
|
|
17
|
+
private errorHandler;
|
|
18
|
+
private dataManager;
|
|
19
|
+
private dialog;
|
|
20
|
+
private route;
|
|
21
|
+
private checksheetFormatService;
|
|
22
|
+
checksheetForm: UntypedFormGroup;
|
|
23
|
+
updateMode: boolean;
|
|
24
|
+
checksheet: any;
|
|
25
|
+
isSaving: boolean;
|
|
26
|
+
id: number;
|
|
27
|
+
disableInput: boolean;
|
|
28
|
+
isLoading: boolean;
|
|
29
|
+
constructor(formValidatorService: FormValidatorService, fb: UntypedFormBuilder, spinnerService: NgxSpinnerService, alertService: AlertService, location: Location, errorHandler: ErrorHandlerService, dataManager: DataManager, dialog: MatDialog, route: ActivatedRoute, checksheetFormatService: ChecksheetFormatService);
|
|
30
|
+
ngOnInit(): void;
|
|
31
|
+
/**
|
|
32
|
+
* Create a check-sheet form.
|
|
33
|
+
* @private
|
|
34
|
+
*/
|
|
35
|
+
private createForm;
|
|
36
|
+
/**Method to evaluate form fields*/
|
|
37
|
+
isFieldValid(field: string): any;
|
|
38
|
+
/**Method to find error in form fields*/
|
|
39
|
+
getErrorMessage(field: string): any;
|
|
40
|
+
submit(): void;
|
|
41
|
+
publishChecksheet(): void;
|
|
42
|
+
private loadChecksheetFormat;
|
|
43
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChecksheetFormComponent, never>;
|
|
44
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChecksheetFormComponent, "app-checksheet-form", never, { "disableInput": { "alias": "disableInput"; "required": false; }; }, {}, never, never, false, never>;
|
|
45
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { EventEmitter, TemplateRef } from '@angular/core';
|
|
2
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
3
|
+
import { AlertService } from 'ngx-techlify-core';
|
|
4
|
+
import { Router } from '@angular/router';
|
|
5
|
+
import { ChecksheetSubmittableType } from '../checksheet-submittable.type';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class ChecksheetFormButtonComponent {
|
|
8
|
+
matDialog: MatDialog;
|
|
9
|
+
private alertService;
|
|
10
|
+
private router;
|
|
11
|
+
submittableType: ChecksheetSubmittableType;
|
|
12
|
+
submittableId: number;
|
|
13
|
+
saved: EventEmitter<any>;
|
|
14
|
+
constructor(matDialog: MatDialog, alertService: AlertService, router: Router);
|
|
15
|
+
/**
|
|
16
|
+
* Open Checksheet form.
|
|
17
|
+
*
|
|
18
|
+
* @param templateRef
|
|
19
|
+
*/
|
|
20
|
+
openForm(templateRef: TemplateRef<any>): void;
|
|
21
|
+
/**
|
|
22
|
+
* Handle Checksheet save event.
|
|
23
|
+
*
|
|
24
|
+
* @param checksheetSubmission
|
|
25
|
+
*/
|
|
26
|
+
onSaved(checksheetSubmission: any): void;
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChecksheetFormButtonComponent, never>;
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChecksheetFormButtonComponent, "app-checksheet-form-button", never, { "submittableType": { "alias": "submittableType"; "required": false; }; "submittableId": { "alias": "submittableId"; "required": false; }; }, { "saved": "saved"; }, never, never, false, never>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { AlertService, TechlifyListingControllerInterface } from 'ngx-techlify-core';
|
|
3
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
4
|
+
import { ChecksheetFormatService } from "../checksheet-format.service";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class ChecksheetFormatListComponent extends TechlifyListingControllerInterface implements OnInit {
|
|
7
|
+
private dialog;
|
|
8
|
+
private service;
|
|
9
|
+
private alertService;
|
|
10
|
+
displayedColumns: any[];
|
|
11
|
+
constructor(dialog: MatDialog, service: ChecksheetFormatService, alertService: AlertService);
|
|
12
|
+
ngOnInit(): void;
|
|
13
|
+
deactivateChecksheet(checksheet: any): void;
|
|
14
|
+
copyChecksheet(checksheet: any): void;
|
|
15
|
+
unpublishChecksheet(checksheet: any): void;
|
|
16
|
+
loadData(): void;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChecksheetFormatListComponent, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChecksheetFormatListComponent, "app-checksheet-format-list", never, {}, {}, never, never, false, never>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HttpService, TechlifyServiceBaseClass } from 'ngx-techlify-core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ChecksheetFormatQuestionService extends TechlifyServiceBaseClass {
|
|
4
|
+
constructor(httpService: HttpService);
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChecksheetFormatQuestionService, never>;
|
|
6
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ChecksheetFormatQuestionService>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { HttpService, TechlifyServiceBaseClass } from 'ngx-techlify-core';
|
|
2
|
+
import { Observable } from "rxjs";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ChecksheetFormatService extends TechlifyServiceBaseClass {
|
|
5
|
+
constructor(httpService: HttpService);
|
|
6
|
+
copy(model: any): Observable<any>;
|
|
7
|
+
unpublish(model: any): Observable<any>;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChecksheetFormatService, never>;
|
|
9
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ChecksheetFormatService>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { UntypedFormBuilder } from '@angular/forms';
|
|
3
|
+
import { RequestHelperService, TechlifyListingControllerInterface, TimelineValue, AlertService } from 'ngx-techlify-core';
|
|
4
|
+
import { ChecksheetService } from '../checksheet.service';
|
|
5
|
+
import { ActivatedRoute } from "@angular/router";
|
|
6
|
+
import { Sort } from "@angular/material/sort";
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class ChecksheetListComponent extends TechlifyListingControllerInterface implements OnInit {
|
|
9
|
+
private alertService;
|
|
10
|
+
private fb;
|
|
11
|
+
private checksheetSubmissionService;
|
|
12
|
+
private requestHelperService;
|
|
13
|
+
private activatedRoute;
|
|
14
|
+
displayedColumns: any[];
|
|
15
|
+
with: string;
|
|
16
|
+
constructor(alertService: AlertService, fb: UntypedFormBuilder, checksheetSubmissionService: ChecksheetService, requestHelperService: RequestHelperService, activatedRoute: ActivatedRoute);
|
|
17
|
+
ngOnInit(): void;
|
|
18
|
+
private createForm;
|
|
19
|
+
loadData(): void;
|
|
20
|
+
onDurationChange(timelineValue: TimelineValue): void;
|
|
21
|
+
/**
|
|
22
|
+
* Handle Checksheet delete event.
|
|
23
|
+
*/
|
|
24
|
+
onDeleted(): void;
|
|
25
|
+
private updateFormWithQueryParams;
|
|
26
|
+
private subscribeToFormChanges;
|
|
27
|
+
private subscribeToRouteChanges;
|
|
28
|
+
onSortChange(sort: Sort): void;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChecksheetListComponent, never>;
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChecksheetListComponent, "app-checksheet-list", never, {}, {}, never, never, false, never>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Location } from '@angular/common';
|
|
2
|
+
import { OnInit } from '@angular/core';
|
|
3
|
+
import { ActivatedRoute } from '@angular/router';
|
|
4
|
+
import { ChecksheetService } from '../checksheet.service';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class ChecksheetNodeViewComponent implements OnInit {
|
|
7
|
+
location: Location;
|
|
8
|
+
private route;
|
|
9
|
+
private checksheetSubmissionService;
|
|
10
|
+
submission: any;
|
|
11
|
+
submissionId: number;
|
|
12
|
+
isLoading: boolean;
|
|
13
|
+
with: string;
|
|
14
|
+
constructor(location: Location, route: ActivatedRoute, checksheetSubmissionService: ChecksheetService);
|
|
15
|
+
ngOnInit(): void;
|
|
16
|
+
private loadSubmission;
|
|
17
|
+
/**
|
|
18
|
+
* On Checksheet reviewed.
|
|
19
|
+
*
|
|
20
|
+
* @param model
|
|
21
|
+
*/
|
|
22
|
+
onUpdated(model: any): void;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChecksheetNodeViewComponent, never>;
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChecksheetNodeViewComponent, "app-checksheet-node-view", never, {}, {}, never, never, false, never>;
|
|
25
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { Editor } from 'ngx-editor';
|
|
3
|
+
import { ChecksheetSubmissionAnswerService } from '../checksheet-submission-answer.service';
|
|
4
|
+
import { FormControl } from '@angular/forms';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class ChecksheetQuestionComponent implements OnInit {
|
|
7
|
+
private checksheetSubmissionAnswerService;
|
|
8
|
+
questionInfo: any;
|
|
9
|
+
index: any;
|
|
10
|
+
submissionView: boolean;
|
|
11
|
+
submissionId: number;
|
|
12
|
+
disableInput: boolean;
|
|
13
|
+
fileEntityId: number;
|
|
14
|
+
editor: Editor;
|
|
15
|
+
isWorking: boolean;
|
|
16
|
+
isWorkingChange: EventEmitter<boolean>;
|
|
17
|
+
submittedAnswer: FormControl;
|
|
18
|
+
constructor(checksheetSubmissionAnswerService: ChecksheetSubmissionAnswerService);
|
|
19
|
+
ngOnInit(): void;
|
|
20
|
+
onMultiSelectAnswerChange(): void;
|
|
21
|
+
onMultiSelectYesNoAnswerChange(event: any, answer: any): void;
|
|
22
|
+
getSubmittedMCQAnswer(answers?: any[], answer_id?: any): any;
|
|
23
|
+
getSubmittedMSQAnswer(): string;
|
|
24
|
+
private loadAnswer;
|
|
25
|
+
/**
|
|
26
|
+
* Send request to save the question answers.
|
|
27
|
+
*
|
|
28
|
+
* @param answerData
|
|
29
|
+
* @private
|
|
30
|
+
*/
|
|
31
|
+
private saveAnswer;
|
|
32
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChecksheetQuestionComponent, never>;
|
|
33
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChecksheetQuestionComponent, "app-checksheet-question", never, { "questionInfo": { "alias": "questionInfo"; "required": false; }; "index": { "alias": "index"; "required": false; }; "submissionView": { "alias": "submissionView"; "required": false; }; "submissionId": { "alias": "submissionId"; "required": false; }; "disableInput": { "alias": "disableInput"; "required": false; }; "isWorking": { "alias": "isWorking"; "required": false; }; }, { "isWorkingChange": "isWorkingChange"; }, never, never, false, never>;
|
|
34
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { UntypedFormArray, UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
|
|
3
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
4
|
+
import { AlertService, FormValidatorService } from 'ngx-techlify-core';
|
|
5
|
+
import { Editor } from 'ngx-editor';
|
|
6
|
+
import { ChecksheetFormatQuestionService } from '../checksheet-format-question.service';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class ChecksheetQuestionFormComponent implements OnInit, OnDestroy {
|
|
9
|
+
dialogRef: MatDialogRef<ChecksheetQuestionFormComponent>;
|
|
10
|
+
data: any;
|
|
11
|
+
private fb;
|
|
12
|
+
private formValidatorService;
|
|
13
|
+
private alertService;
|
|
14
|
+
private checksheetFormatQuestionService;
|
|
15
|
+
updateMode: boolean;
|
|
16
|
+
questionFormGroup: UntypedFormGroup;
|
|
17
|
+
questionFormFirstAttempt: boolean;
|
|
18
|
+
editor: Editor;
|
|
19
|
+
isSaving: boolean;
|
|
20
|
+
constructor(dialogRef: MatDialogRef<ChecksheetQuestionFormComponent>, data: any, fb: UntypedFormBuilder, formValidatorService: FormValidatorService, alertService: AlertService, checksheetFormatQuestionService: ChecksheetFormatQuestionService);
|
|
21
|
+
/** Method to create a form **/
|
|
22
|
+
private createForm;
|
|
23
|
+
createAnswer(): UntypedFormGroup;
|
|
24
|
+
ngOnDestroy(): void;
|
|
25
|
+
ngOnInit(): void;
|
|
26
|
+
submit(): void;
|
|
27
|
+
cancel(): void;
|
|
28
|
+
get isChoiceTypeSelected(): boolean;
|
|
29
|
+
get answerFormArray(): UntypedFormArray;
|
|
30
|
+
addAnswer(): void;
|
|
31
|
+
questionChange(value: number): void;
|
|
32
|
+
/**Method to evaluate form fields*/
|
|
33
|
+
isFieldValid(field: string, formGroup?: any): any;
|
|
34
|
+
/**Method to find error in form fields*/
|
|
35
|
+
getErrorMessage(field: string, formGroup?: any): any;
|
|
36
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChecksheetQuestionFormComponent, never>;
|
|
37
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChecksheetQuestionFormComponent, "app-checksheet-question-form", never, {}, {}, never, never, false, never>;
|
|
38
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
3
|
+
import { NgxSpinnerService } from 'ngx-spinner';
|
|
4
|
+
import { AlertService, DataManager } from 'ngx-techlify-core';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class ChecksheetQuestionListComponent implements OnInit {
|
|
7
|
+
private spinnerService;
|
|
8
|
+
private alertService;
|
|
9
|
+
private dialog;
|
|
10
|
+
private dataManager;
|
|
11
|
+
checksheet: any;
|
|
12
|
+
checksheetChange: EventEmitter<any>;
|
|
13
|
+
submission: any;
|
|
14
|
+
disableInput: boolean;
|
|
15
|
+
questions: any[];
|
|
16
|
+
constructor(spinnerService: NgxSpinnerService, alertService: AlertService, dialog: MatDialog, dataManager: DataManager);
|
|
17
|
+
ngOnInit(): void;
|
|
18
|
+
onScroll(): void;
|
|
19
|
+
editQuestion(question: any, index: any): void;
|
|
20
|
+
addQuestion(): void;
|
|
21
|
+
moveQuestionUp(index: any): Promise<void>;
|
|
22
|
+
moveQuestionDown(index: any): Promise<void>;
|
|
23
|
+
deleteQuestion(question: any): void;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChecksheetQuestionListComponent, never>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChecksheetQuestionListComponent, "app-checksheet-question-list", never, { "checksheet": { "alias": "checksheet"; "required": false; }; "submission": { "alias": "submission"; "required": false; }; "disableInput": { "alias": "disableInput"; "required": false; }; }, { "checksheetChange": "checksheetChange"; }, never, never, false, never>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { DatePipe } from '@angular/common';
|
|
2
|
+
import { OnInit } from '@angular/core';
|
|
3
|
+
import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
|
|
4
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
5
|
+
import { Router } from '@angular/router';
|
|
6
|
+
import { NgxSpinnerService } from 'ngx-spinner';
|
|
7
|
+
import { AlertService, DataManager, FormValidatorService } from 'ngx-techlify-core';
|
|
8
|
+
import { CurrentUserService } from 'ngx-techlify-core';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
export declare class ChecksheetReportComponent implements OnInit {
|
|
11
|
+
private spinnerService;
|
|
12
|
+
private alertService;
|
|
13
|
+
private router;
|
|
14
|
+
private dataManager;
|
|
15
|
+
private currentUserService;
|
|
16
|
+
private dialog;
|
|
17
|
+
private formValidator;
|
|
18
|
+
private fb;
|
|
19
|
+
private datePipe;
|
|
20
|
+
checksheetSubmissionList: any[];
|
|
21
|
+
pageEvent: any;
|
|
22
|
+
filters: any;
|
|
23
|
+
vehicle: any;
|
|
24
|
+
displayedColumns: any[];
|
|
25
|
+
filterFormGroup: UntypedFormGroup;
|
|
26
|
+
constructor(spinnerService: NgxSpinnerService, alertService: AlertService, router: Router, dataManager: DataManager, currentUserService: CurrentUserService, dialog: MatDialog, formValidator: FormValidatorService, fb: UntypedFormBuilder, datePipe: DatePipe);
|
|
27
|
+
get excelData(): any[];
|
|
28
|
+
ngOnInit(): void;
|
|
29
|
+
private createForm;
|
|
30
|
+
get currentUserId(): any;
|
|
31
|
+
createChecksheetSubmission(): void;
|
|
32
|
+
deactivateChecksheetSubmission(checksheetSubmission: any): void;
|
|
33
|
+
editChecksheetSubmission(checksheetSubmission: any): void;
|
|
34
|
+
viewChecksheetSubmission(checksheetSubmission: any): void;
|
|
35
|
+
reviewChecksheetSubmission(checksheetSubmission: any): void;
|
|
36
|
+
onScroll(): void;
|
|
37
|
+
fetchChecksheetSubmissionsDetails(): Promise<void>;
|
|
38
|
+
reload(): void;
|
|
39
|
+
getFieldValue(field: string): any;
|
|
40
|
+
resetFieldValue(field: string, event: any): void;
|
|
41
|
+
/** Method to evaluate form fields*/
|
|
42
|
+
isFieldValid(field: string): any;
|
|
43
|
+
/** Method to find error in form fields*/
|
|
44
|
+
getErrorMessage(field: string): any;
|
|
45
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChecksheetReportComponent, never>;
|
|
46
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChecksheetReportComponent, "app-checksheet-report", never, { "vehicle": { "alias": "vehicle"; "required": false; }; }, {}, never, never, false, never>;
|
|
47
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { EventEmitter, TemplateRef } from '@angular/core';
|
|
2
|
+
import { AlertService, CredentialsService, User } from 'ngx-techlify-core';
|
|
3
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
4
|
+
import { ChecksheetService } from '../checksheet.service';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class ChecksheetReviewButtonComponent {
|
|
7
|
+
private matDialog;
|
|
8
|
+
private credentialsService;
|
|
9
|
+
private checksheetSubmissionService;
|
|
10
|
+
private alertService;
|
|
11
|
+
submission: any;
|
|
12
|
+
viewType: 'icon' | 'button';
|
|
13
|
+
requestParams: {
|
|
14
|
+
with: string;
|
|
15
|
+
};
|
|
16
|
+
reviewed: EventEmitter<any>;
|
|
17
|
+
user: User;
|
|
18
|
+
isWorking: boolean;
|
|
19
|
+
constructor(matDialog: MatDialog, credentialsService: CredentialsService, checksheetSubmissionService: ChecksheetService, alertService: AlertService);
|
|
20
|
+
/**
|
|
21
|
+
* Show the review dialog.
|
|
22
|
+
*
|
|
23
|
+
* @param templateRef
|
|
24
|
+
*/
|
|
25
|
+
openDialog(templateRef: TemplateRef<any>): void;
|
|
26
|
+
/**
|
|
27
|
+
* Review checksheet.
|
|
28
|
+
*/
|
|
29
|
+
reviewChecksheet(): void;
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChecksheetReviewButtonComponent, never>;
|
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChecksheetReviewButtonComponent, "app-checksheet-review-button", never, { "submission": { "alias": "submission"; "required": false; }; "viewType": { "alias": "viewType"; "required": false; }; "requestParams": { "alias": "requestParams"; "required": false; }; }, { "reviewed": "reviewed"; }, never, never, false, never>;
|
|
32
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "@angular/router";
|
|
3
|
+
export declare class ChecksheetRoutingModule {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChecksheetRoutingModule, never>;
|
|
5
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ChecksheetRoutingModule, never, [typeof i1.RouterModule], [typeof i1.RouterModule]>;
|
|
6
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ChecksheetRoutingModule>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HttpService, TechlifyServiceBaseClass } from 'ngx-techlify-core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ChecksheetSubmissionAnswerService extends TechlifyServiceBaseClass {
|
|
4
|
+
constructor(httpService: HttpService);
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChecksheetSubmissionAnswerService, never>;
|
|
6
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ChecksheetSubmissionAnswerService>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { EventEmitter, TemplateRef } from '@angular/core';
|
|
2
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
3
|
+
import { ChecksheetService } from '../checksheet.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class ChecksheetSubmissionDeleteButtonComponent {
|
|
6
|
+
private matDialog;
|
|
7
|
+
private checksheetSubmissionService;
|
|
8
|
+
checksheetSubmission: any;
|
|
9
|
+
deleted: EventEmitter<any>;
|
|
10
|
+
isDeleting: boolean;
|
|
11
|
+
constructor(matDialog: MatDialog, checksheetSubmissionService: ChecksheetService);
|
|
12
|
+
/**
|
|
13
|
+
* Show delete confirmation dialog.
|
|
14
|
+
*
|
|
15
|
+
* @param templateRef
|
|
16
|
+
*/
|
|
17
|
+
openDialog(templateRef: TemplateRef<any>): void;
|
|
18
|
+
/**
|
|
19
|
+
* Send request to delete the model.
|
|
20
|
+
*/
|
|
21
|
+
deleteModel(): void;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChecksheetSubmissionDeleteButtonComponent, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChecksheetSubmissionDeleteButtonComponent, "app-checksheet-submission-delete-button", never, { "checksheetSubmission": { "alias": "checksheetSubmission"; "required": false; }; }, { "deleted": "deleted"; }, never, never, false, never>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { EventEmitter, TemplateRef } from '@angular/core';
|
|
2
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
3
|
+
import { ChecksheetSubmissionFileService } from '../../checksheet-submission-file.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class ChecksheetSubmissionFileDeleteButtonComponent {
|
|
6
|
+
private matDialog;
|
|
7
|
+
private checksheetSubmissionFileService;
|
|
8
|
+
checksheetSubmissionFile: any;
|
|
9
|
+
deleted: EventEmitter<any>;
|
|
10
|
+
isDeleting: boolean;
|
|
11
|
+
constructor(matDialog: MatDialog, checksheetSubmissionFileService: ChecksheetSubmissionFileService);
|
|
12
|
+
/**
|
|
13
|
+
* Show delete confirmation dialog.
|
|
14
|
+
*
|
|
15
|
+
* @param templateRef
|
|
16
|
+
*/
|
|
17
|
+
openDialog(templateRef: TemplateRef<any>): void;
|
|
18
|
+
/**
|
|
19
|
+
* Send request to delete the model.
|
|
20
|
+
*/
|
|
21
|
+
deleteModel(): void;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChecksheetSubmissionFileDeleteButtonComponent, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChecksheetSubmissionFileDeleteButtonComponent, "app-checksheet-submission-file-delete-button", never, { "checksheetSubmissionFile": { "alias": "checksheetSubmissionFile"; "required": false; }; }, { "deleted": "deleted"; }, never, never, true, never>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { TechlifyListingControllerInterface } from 'ngx-techlify-core';
|
|
3
|
+
import { FormBuilder } from '@angular/forms';
|
|
4
|
+
import { ChecksheetSubmissionFileService } from '../../checksheet-submission-file.service';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class ChecksheetSubmissionFilesComponent extends TechlifyListingControllerInterface implements OnInit {
|
|
7
|
+
private formBuilder;
|
|
8
|
+
private checksheetSubmissionFileService;
|
|
9
|
+
submissionId: number;
|
|
10
|
+
questionId: number;
|
|
11
|
+
displayedColumns: string[];
|
|
12
|
+
constructor(formBuilder: FormBuilder, checksheetSubmissionFileService: ChecksheetSubmissionFileService);
|
|
13
|
+
ngOnInit(): void;
|
|
14
|
+
loadData(): void;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChecksheetSubmissionFilesComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChecksheetSubmissionFilesComponent, "app-checksheet-submission-files", never, { "submissionId": { "alias": "submissionId"; "required": false; }; "questionId": { "alias": "questionId"; "required": false; }; }, {}, never, never, true, never>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { ChecksheetSubmissionFileService } from '../checksheet-submission-file.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ChecksheetSubmissionFileUploadComponent {
|
|
5
|
+
private checksheetSubmissionFileService;
|
|
6
|
+
submissionId: number;
|
|
7
|
+
questionId: number;
|
|
8
|
+
uploaded: EventEmitter<any[]>;
|
|
9
|
+
constructor(checksheetSubmissionFileService: ChecksheetSubmissionFileService);
|
|
10
|
+
onUploadComplete(uploadedFiles: any[]): void;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChecksheetSubmissionFileUploadComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChecksheetSubmissionFileUploadComponent, "app-checksheet-submission-file-upload", never, { "submissionId": { "alias": "submissionId"; "required": false; }; "questionId": { "alias": "questionId"; "required": false; }; }, { "uploaded": "uploaded"; }, never, never, true, never>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HttpService, TechlifyServiceBaseClass } from 'ngx-techlify-core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ChecksheetSubmissionFileService extends TechlifyServiceBaseClass {
|
|
4
|
+
constructor(httpService: HttpService);
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChecksheetSubmissionFileService, never>;
|
|
6
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ChecksheetSubmissionFileService>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { UntypedFormBuilder } from '@angular/forms';
|
|
3
|
+
import { FormValidatorService, TechlifyFormComponentInterface, AlertService } from 'ngx-techlify-core';
|
|
4
|
+
import { ChecksheetService } from '../checksheet.service';
|
|
5
|
+
import { ChecksheetSubmittableType } from '../checksheet-submittable.type';
|
|
6
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class ChecksheetSubmissionFormComponent extends TechlifyFormComponentInterface implements OnInit {
|
|
9
|
+
private fb;
|
|
10
|
+
private checksheetSubmissionService;
|
|
11
|
+
private alertService;
|
|
12
|
+
private dialog;
|
|
13
|
+
submittableType: ChecksheetSubmittableType;
|
|
14
|
+
submittableId: number;
|
|
15
|
+
cancelled: EventEmitter<any>;
|
|
16
|
+
saved: EventEmitter<any>;
|
|
17
|
+
updateMode: boolean;
|
|
18
|
+
checksheetSubmission: any;
|
|
19
|
+
isSaving: boolean;
|
|
20
|
+
constructor(formValidatorService: FormValidatorService, fb: UntypedFormBuilder, checksheetSubmissionService: ChecksheetService, alertService: AlertService, dialog: MatDialog);
|
|
21
|
+
private createForm;
|
|
22
|
+
ngOnInit(): void;
|
|
23
|
+
submit(): void;
|
|
24
|
+
submitChecksheet(): void;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChecksheetSubmissionFormComponent, never>;
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChecksheetSubmissionFormComponent, "app-checksheet-submission-form", never, { "submittableType": { "alias": "submittableType"; "required": false; }; "submittableId": { "alias": "submittableId"; "required": false; }; "checksheetSubmission": { "alias": "checksheetSubmission"; "required": false; }; }, { "cancelled": "cancelled"; "saved": "saved"; }, never, never, false, never>;
|
|
27
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { EventEmitter, TemplateRef } from '@angular/core';
|
|
2
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
3
|
+
import { AlertService } from 'ngx-techlify-core';
|
|
4
|
+
import { Router } from '@angular/router';
|
|
5
|
+
import { ChecksheetSubmittableType } from '../checksheet-submittable.type';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class ChecksheetSubmissionFormButtonComponent {
|
|
8
|
+
matDialog: MatDialog;
|
|
9
|
+
private alertService;
|
|
10
|
+
private router;
|
|
11
|
+
submittableType: ChecksheetSubmittableType;
|
|
12
|
+
submittableId: number;
|
|
13
|
+
saved: EventEmitter<any>;
|
|
14
|
+
constructor(matDialog: MatDialog, alertService: AlertService, router: Router);
|
|
15
|
+
/**
|
|
16
|
+
* Open checksheet submission form.
|
|
17
|
+
*
|
|
18
|
+
* @param templateRef
|
|
19
|
+
*/
|
|
20
|
+
openForm(templateRef: TemplateRef<any>): void;
|
|
21
|
+
/**
|
|
22
|
+
* Handle checksheet submission save event.
|
|
23
|
+
*
|
|
24
|
+
* @param checksheetSubmission
|
|
25
|
+
*/
|
|
26
|
+
onSaved(checksheetSubmission: any): void;
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChecksheetSubmissionFormButtonComponent, never>;
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChecksheetSubmissionFormButtonComponent, "app-checksheet-submission-form-button", never, { "submittableType": { "alias": "submittableType"; "required": false; }; "submittableId": { "alias": "submittableId"; "required": false; }; }, { "saved": "saved"; }, never, never, false, never>;
|
|
29
|
+
}
|