@bnsights/bbsf-admin-portal 1.0.71 → 1.0.73
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 +9 -0
- package/bnsights-bbsf-admin-portal-1.0.73.tgz +0 -0
- package/bundles/bnsights-bbsf-admin-portal.umd.js +8742 -5535
- package/bundles/bnsights-bbsf-admin-portal.umd.js.map +1 -1
- package/esm2015/lib/Pages/_layout/components/aside/aside-menu/aside-menu.component.js +2 -2
- package/esm2015/lib/Pages/documents/add/add.component.js +142 -0
- package/esm2015/lib/Pages/documents/document-master-layouts/document-master-layouts.component.js +154 -0
- package/esm2015/lib/Pages/documents/document-template-info/document-template-info.component.js +304 -0
- package/esm2015/lib/Pages/documents/document-templates/document-templates.component.js +444 -0
- package/esm2015/lib/Pages/documents/documents-routing.module.js +37 -0
- package/esm2015/lib/Pages/documents/documents.component.js +18 -0
- package/esm2015/lib/Pages/documents/documents.module.js +116 -0
- package/esm2015/lib/Pages/documents/edit/edit.component.js +175 -0
- package/esm2015/lib/Pages/documents/edit-document-template/edit-document-template.component.js +129 -0
- package/esm2015/lib/Pages/home/home.component.js +12 -2
- package/esm2015/lib/Pages/notifications/templates/templates.component.js +1 -1
- package/esm2015/lib/Pages/shared/Services/DocumentHeaderAndFooterTemplate.service.js +36 -0
- package/esm2015/lib/Pages/shared/Services/DocumentTemplateService.service.js +74 -0
- package/esm2015/lib/Pages/shared/Services/injectionModuleService.service.js +8 -1
- package/esm2015/lib/Pages/shared/components/survey/survey.component.js +2 -2
- package/esm2015/lib/Pages/shared/models/DocumentsModels/DocumentExportDTO.js +8 -0
- package/esm2015/lib/Pages/shared/models/DocumentsModels/DocumentHeaderAndFooterTemplate.js +10 -0
- package/esm2015/lib/Pages/shared/models/DocumentsModels/DocumentTemplateDTO.js +10 -0
- package/esm2015/lib/Pages/shared/models/DocumentsModels/DocumentTemplateInfoDTO.js +8 -0
- package/fesm2015/bnsights-bbsf-admin-portal.js +7255 -4190
- package/fesm2015/bnsights-bbsf-admin-portal.js.map +1 -1
- package/lib/Pages/documents/add/add.component.d.ts +40 -0
- package/lib/Pages/documents/document-master-layouts/document-master-layouts.component.d.ts +53 -0
- package/lib/Pages/documents/document-template-info/document-template-info.component.d.ts +66 -0
- package/lib/Pages/documents/document-templates/document-templates.component.d.ts +89 -0
- package/lib/Pages/documents/documents-routing.module.d.ts +7 -0
- package/lib/Pages/documents/documents.component.d.ts +8 -0
- package/lib/Pages/documents/documents.module.d.ts +27 -0
- package/lib/Pages/documents/edit/edit.component.d.ts +42 -0
- package/lib/Pages/documents/edit-document-template/edit-document-template.component.d.ts +39 -0
- package/lib/Pages/shared/Services/DocumentHeaderAndFooterTemplate.service.d.ts +15 -0
- package/lib/Pages/shared/Services/DocumentTemplateService.service.d.ts +25 -0
- package/lib/Pages/shared/Services/injectionModuleService.service.d.ts +2 -0
- package/lib/Pages/shared/models/DocumentsModels/DocumentExportDTO.d.ts +8 -0
- package/lib/Pages/shared/models/DocumentsModels/DocumentHeaderAndFooterTemplate.d.ts +16 -0
- package/lib/Pages/shared/models/DocumentsModels/DocumentTemplateDTO.d.ts +13 -0
- package/lib/Pages/shared/models/DocumentsModels/DocumentTemplateInfoDTO.d.ts +7 -0
- package/package.json +2 -2
- package/src/lib/assets/images/menu/MasterLayout_Document.svg +5 -0
- package/bnsights-bbsf-admin-portal-1.0.71.tgz +0 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { FormGroup } from '@angular/forms';
|
|
3
|
+
import { CheckBoxOptions, FormOptions, MultiLingualHtmlEditorOptions, MultiLingualTextBoxOptions, TextBoxOptions } from '@bnsights/bbsf-controls';
|
|
4
|
+
import { Router } from '@angular/router';
|
|
5
|
+
import { UtilityService, BBSFTranslateService, RequestHandlerService } from '@bnsights/bbsf-utilities';
|
|
6
|
+
import { Observable } from 'rxjs';
|
|
7
|
+
import { DocumentHeaderAndFooterTemplateService } from '../../shared/Services/DocumentHeaderAndFooterTemplate.service';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class AddComponent implements OnInit {
|
|
10
|
+
utilityService: UtilityService;
|
|
11
|
+
private bbsfTranslateService;
|
|
12
|
+
private documentHeaderAndFooterTemplateService;
|
|
13
|
+
private router;
|
|
14
|
+
private requestHandlerService;
|
|
15
|
+
showPageContent: boolean;
|
|
16
|
+
addForm: FormGroup;
|
|
17
|
+
addFormOptions: FormOptions;
|
|
18
|
+
multiLingualName: MultiLingualTextBoxOptions;
|
|
19
|
+
multiLingualHeader: MultiLingualHtmlEditorOptions;
|
|
20
|
+
multiLingualFooter: MultiLingualHtmlEditorOptions;
|
|
21
|
+
multiLingualHeadContent: MultiLingualHtmlEditorOptions;
|
|
22
|
+
AddTop: TextBoxOptions;
|
|
23
|
+
AddBottom: TextBoxOptions;
|
|
24
|
+
AddLeft: TextBoxOptions;
|
|
25
|
+
AddRight: TextBoxOptions;
|
|
26
|
+
AddPageHeight: TextBoxOptions;
|
|
27
|
+
AddPageWidth: TextBoxOptions;
|
|
28
|
+
AddIsLandscape: CheckBoxOptions;
|
|
29
|
+
AddShowPaging: CheckBoxOptions;
|
|
30
|
+
constructor(utilityService: UtilityService, bbsfTranslateService: BBSFTranslateService, documentHeaderAndFooterTemplateService: DocumentHeaderAndFooterTemplateService, router: Router, requestHandlerService: RequestHandlerService);
|
|
31
|
+
ngOnInit(): Promise<void>;
|
|
32
|
+
initializePage(): void;
|
|
33
|
+
getAddModel: () => any[];
|
|
34
|
+
getAddFunction: (AddModel: any) => Observable<any>;
|
|
35
|
+
onAddSuccess: (result: any) => void;
|
|
36
|
+
cancelAdd(): void;
|
|
37
|
+
ngOnDestroy(): void;
|
|
38
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AddComponent, never>;
|
|
39
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AddComponent, "lib-add", never, {}, {}, never, never>;
|
|
40
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { FormGroup } from '@angular/forms';
|
|
3
|
+
import { ConfirmationModalOptions, FilterItem, PagingOptions, TextAreaOptions, TextBoxOptions } from '@bnsights/bbsf-controls';
|
|
4
|
+
import { ClipboardService } from 'ngx-clipboard';
|
|
5
|
+
import { PageInfoService } from '../../../_metronic/core/services/page-info.service';
|
|
6
|
+
import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
|
|
7
|
+
import { AuthService, UtilityService, BBSFTranslateService, EnvironmentService, RequestHandlerService } from '@bnsights/bbsf-utilities';
|
|
8
|
+
import { PagingComponent } from '@bnsights/bbsf-controls/lib/controls/Paging/Paging.component';
|
|
9
|
+
import { Observable } from 'rxjs';
|
|
10
|
+
import { ConfirmationModalComponent } from '@bnsights/bbsf-controls/lib/controls/ConfirmationModal/ConfirmationModal.component';
|
|
11
|
+
import { DocumentHeaderAndFooterTemplateService } from '../../shared/Services/DocumentHeaderAndFooterTemplate.service';
|
|
12
|
+
import * as i0 from "@angular/core";
|
|
13
|
+
export declare class DocumentMasterLayoutsComponent implements OnInit {
|
|
14
|
+
private authService;
|
|
15
|
+
private pageInfoService;
|
|
16
|
+
utilityService: UtilityService;
|
|
17
|
+
private bbsfTranslateService;
|
|
18
|
+
private environmentService;
|
|
19
|
+
private documentHeaderAndFooterTemplateService;
|
|
20
|
+
private _clipboardService;
|
|
21
|
+
private modalService;
|
|
22
|
+
private requestHandlerService;
|
|
23
|
+
showPageContent: boolean;
|
|
24
|
+
apiUrl: string;
|
|
25
|
+
productionMode: boolean;
|
|
26
|
+
documentHeaderAndFooterTemplateForm: FormGroup;
|
|
27
|
+
searchTextBox: TextBoxOptions;
|
|
28
|
+
textInputFilter: FilterItem;
|
|
29
|
+
documentHeaderAndFooterTemplatePagingResult: any[];
|
|
30
|
+
clientSidePagingResult: any[];
|
|
31
|
+
documentHeaderAndFooterTemplatePaging: PagingOptions;
|
|
32
|
+
isFilterLoaded: boolean;
|
|
33
|
+
pagingElement: PagingComponent<any>;
|
|
34
|
+
deleteDocumentHeaderAndFooterTemplateId: string;
|
|
35
|
+
DeleteConfirmationOptions: ConfirmationModalOptions;
|
|
36
|
+
deleteControlLoaded: boolean;
|
|
37
|
+
ConfirmationModalControl: ConfirmationModalComponent;
|
|
38
|
+
GenerateCodeForm: FormGroup;
|
|
39
|
+
GenerateCodeTextArea: TextAreaOptions;
|
|
40
|
+
ValueToCopy: string;
|
|
41
|
+
constructor(authService: AuthService, pageInfoService: PageInfoService, utilityService: UtilityService, bbsfTranslateService: BBSFTranslateService, environmentService: EnvironmentService, documentHeaderAndFooterTemplateService: DocumentHeaderAndFooterTemplateService, _clipboardService: ClipboardService, modalService: NgbModal, requestHandlerService: RequestHandlerService);
|
|
42
|
+
ngOnInit(): Promise<void>;
|
|
43
|
+
initializePage(): void;
|
|
44
|
+
setDocumentHeaderAndFooterTemplateResult(result: any): void;
|
|
45
|
+
searchClientSide(searchValue: any): void;
|
|
46
|
+
showDeleteDocumentHeaderAndFooterTemplateModal(DocumentHeaderandFooterIdEnc: any): void;
|
|
47
|
+
deleteDocumentHeaderAndFooterTemplate: (id: string) => Observable<any>;
|
|
48
|
+
showGenerateCodeModal(GenerateCodeModal: any): void;
|
|
49
|
+
copyInputMessage(): void;
|
|
50
|
+
ngOnDestroy(): void;
|
|
51
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DocumentMasterLayoutsComponent, never>;
|
|
52
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DocumentMasterLayoutsComponent, "lib-document-master-layouts", never, {}, {}, never, never>;
|
|
53
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { Injector, OnInit } from '@angular/core';
|
|
2
|
+
import { ActivatedRoute } from '@angular/router';
|
|
3
|
+
import { AppBaseComponent, DropdownOptions, FormOptions, MultiLingualTextAreaOptions, MultiLingualTextBoxOptions, RepeaterOptions, TextAreaOptions, TextBoxOptions } from '@bnsights/bbsf-controls';
|
|
4
|
+
import { FormGroup } from '@angular/forms';
|
|
5
|
+
import { ClipboardService } from 'ngx-clipboard';
|
|
6
|
+
import { PageInfoService } from '../../../_metronic/core/services/page-info.service';
|
|
7
|
+
import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
|
|
8
|
+
import { UtilityService, BBSFTranslateService, RequestHandlerService } from '@bnsights/bbsf-utilities';
|
|
9
|
+
import { Observable } from 'rxjs';
|
|
10
|
+
import { DocumentTemplateService } from '../../shared/Services/DocumentTemplateService.service';
|
|
11
|
+
import { DatePipe } from '@angular/common';
|
|
12
|
+
import * as saveAs from "file-saver";
|
|
13
|
+
import * as i0 from "@angular/core";
|
|
14
|
+
export declare class DocumentTemplateInfoComponent extends AppBaseComponent implements OnInit {
|
|
15
|
+
private injector;
|
|
16
|
+
utilityService: UtilityService;
|
|
17
|
+
bbsfTranslateService: BBSFTranslateService;
|
|
18
|
+
_clipboardService: ClipboardService;
|
|
19
|
+
templateService: DocumentTemplateService;
|
|
20
|
+
activatedRoute: ActivatedRoute;
|
|
21
|
+
pageInfoService: PageInfoService;
|
|
22
|
+
modalService: NgbModal;
|
|
23
|
+
datepipe: DatePipe;
|
|
24
|
+
requestHandlerService: RequestHandlerService;
|
|
25
|
+
ProductionMode: boolean;
|
|
26
|
+
TemplateId: string;
|
|
27
|
+
TemplateIdEnc: string;
|
|
28
|
+
TemplateInfo: any;
|
|
29
|
+
Template: any;
|
|
30
|
+
isDataLoaded: boolean;
|
|
31
|
+
saveAs: typeof saveAs;
|
|
32
|
+
CategoryList: any[];
|
|
33
|
+
OrganizationList: any[];
|
|
34
|
+
MasterLayoutList: any[];
|
|
35
|
+
GenerateCodeForm: FormGroup;
|
|
36
|
+
IsOpenGenerateCodeModal: boolean;
|
|
37
|
+
GenerateCodeTextArea: TextAreaOptions;
|
|
38
|
+
ValueToCopy: string;
|
|
39
|
+
EditTemplateForm: FormGroup;
|
|
40
|
+
EditTemplateFormOptions: FormOptions;
|
|
41
|
+
EditName: MultiLingualTextBoxOptions;
|
|
42
|
+
EditSysName: TextBoxOptions;
|
|
43
|
+
EditDescription: MultiLingualTextAreaOptions;
|
|
44
|
+
EditOrganization: DropdownOptions;
|
|
45
|
+
EditCategory: DropdownOptions;
|
|
46
|
+
EditMasterLayout: DropdownOptions;
|
|
47
|
+
TestExportDocumentForm: FormGroup;
|
|
48
|
+
TestExportDocumentFormOptions: FormOptions;
|
|
49
|
+
addKeyValueRepeaterOptions: RepeaterOptions;
|
|
50
|
+
constructor(injector: Injector, utilityService: UtilityService, bbsfTranslateService: BBSFTranslateService, _clipboardService: ClipboardService, templateService: DocumentTemplateService, activatedRoute: ActivatedRoute, pageInfoService: PageInfoService, modalService: NgbModal, datepipe: DatePipe, requestHandlerService: RequestHandlerService);
|
|
51
|
+
ngOnInit(): Promise<void>;
|
|
52
|
+
initializePage(): void;
|
|
53
|
+
showGenerateCodeByIdModal(GenerateCodeModal: any): void;
|
|
54
|
+
showGenerateUpdateCodeByIdModal(GenerateCodeModal: any): void;
|
|
55
|
+
copyInputMessage(): void;
|
|
56
|
+
showEditTemplateModal(EditTemplateModal: any): void;
|
|
57
|
+
getEditTemplateModel: () => any[];
|
|
58
|
+
getEditTemplateFunction: (EditModel: any) => Observable<any>;
|
|
59
|
+
showTestExportDocumentModal(TestExportDocumentModal: any): void;
|
|
60
|
+
getTestExportDocumentModel: () => any[];
|
|
61
|
+
getTestExportDocumentFunction: (ExportDocumentTemplateModel: any) => Observable<any>;
|
|
62
|
+
onSuccessExportHandler: (result: any) => void;
|
|
63
|
+
ngOnDestroy(): void;
|
|
64
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DocumentTemplateInfoComponent, never>;
|
|
65
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DocumentTemplateInfoComponent, "lib-document-template-info", never, {}, {}, never, never>;
|
|
66
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { ElementRef, OnInit } from '@angular/core';
|
|
2
|
+
import { FormGroup } from '@angular/forms';
|
|
3
|
+
import { ConfirmationModalOptions, DropdownOptions, FilterItem, FormOptions, MultiLingualTextAreaOptions, MultiLingualTextBoxOptions, PagingOptions, TextAreaOptions, TextBoxOptions } from '@bnsights/bbsf-controls';
|
|
4
|
+
import { ClipboardService } from 'ngx-clipboard';
|
|
5
|
+
import { PageInfoService } from '../../../_metronic/core/services/page-info.service';
|
|
6
|
+
import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
|
|
7
|
+
import { AuthService, UtilityService, BBSFTranslateService, EnvironmentService, RequestHandlerService } from '@bnsights/bbsf-utilities';
|
|
8
|
+
import { PagingComponent } from '@bnsights/bbsf-controls/lib/controls/Paging/Paging.component';
|
|
9
|
+
import { Observable } from 'rxjs';
|
|
10
|
+
import { ConfirmationModalComponent } from '@bnsights/bbsf-controls/lib/controls/ConfirmationModal/ConfirmationModal.component';
|
|
11
|
+
import { DocumentTemplateService } from '../../shared/Services/DocumentTemplateService.service';
|
|
12
|
+
import * as i0 from "@angular/core";
|
|
13
|
+
export declare class DocumentsTemplatesComponent implements OnInit {
|
|
14
|
+
private authService;
|
|
15
|
+
private pageInfoService;
|
|
16
|
+
utilityService: UtilityService;
|
|
17
|
+
private bbsfTranslateService;
|
|
18
|
+
private environmentService;
|
|
19
|
+
private _clipboardService;
|
|
20
|
+
private templateService;
|
|
21
|
+
private modalService;
|
|
22
|
+
private requestHandlerService;
|
|
23
|
+
ShowPageContent: boolean;
|
|
24
|
+
ApiUrl: string;
|
|
25
|
+
ProductionMode: boolean;
|
|
26
|
+
CategoryOptions: DropdownOptions;
|
|
27
|
+
CategoryFilter: FilterItem;
|
|
28
|
+
searchTextBox: TextBoxOptions;
|
|
29
|
+
TextInputFilter: FilterItem;
|
|
30
|
+
TemplateForm: FormGroup;
|
|
31
|
+
TemplatePagingResult: any[];
|
|
32
|
+
clientSidePagingResult: any[];
|
|
33
|
+
TemplatePaging: PagingOptions;
|
|
34
|
+
IsFilterLoaded: boolean;
|
|
35
|
+
IsFilterDataLoaded: boolean;
|
|
36
|
+
pagingElement: PagingComponent<any>;
|
|
37
|
+
CategoryList: any[];
|
|
38
|
+
SelectedTemplateList: any[];
|
|
39
|
+
OrganizationList: any[];
|
|
40
|
+
MasterLayoutList: any[];
|
|
41
|
+
categoriesDDL: ElementRef;
|
|
42
|
+
AddTemplateForm: FormGroup;
|
|
43
|
+
AddTemplateFormOptions: FormOptions;
|
|
44
|
+
AddName: MultiLingualTextBoxOptions;
|
|
45
|
+
AddSysName: TextBoxOptions;
|
|
46
|
+
AddDescription: MultiLingualTextAreaOptions;
|
|
47
|
+
AddOrganization: DropdownOptions;
|
|
48
|
+
AddCategory: DropdownOptions;
|
|
49
|
+
AddMasterLayout: DropdownOptions;
|
|
50
|
+
EditTemplateForm: FormGroup;
|
|
51
|
+
EditTemplateFormOptions: FormOptions;
|
|
52
|
+
EditName: MultiLingualTextBoxOptions;
|
|
53
|
+
EditSysName: TextBoxOptions;
|
|
54
|
+
EditDescription: MultiLingualTextAreaOptions;
|
|
55
|
+
EditOrganization: DropdownOptions;
|
|
56
|
+
EditCategory: DropdownOptions;
|
|
57
|
+
EditMasterLayout: DropdownOptions;
|
|
58
|
+
deletedTemplateId: string;
|
|
59
|
+
DeleteConfirmationOptions: ConfirmationModalOptions;
|
|
60
|
+
deleteControlLoaded: boolean;
|
|
61
|
+
ConfirmationModalControl: ConfirmationModalComponent;
|
|
62
|
+
GenerateCodeForm: FormGroup;
|
|
63
|
+
GenerateCodeTextArea: TextAreaOptions;
|
|
64
|
+
ValueToCopy: string;
|
|
65
|
+
TemplateId: string;
|
|
66
|
+
constructor(authService: AuthService, pageInfoService: PageInfoService, utilityService: UtilityService, bbsfTranslateService: BBSFTranslateService, environmentService: EnvironmentService, _clipboardService: ClipboardService, templateService: DocumentTemplateService, modalService: NgbModal, requestHandlerService: RequestHandlerService);
|
|
67
|
+
ngOnInit(): Promise<void>;
|
|
68
|
+
initializePage(): void;
|
|
69
|
+
loadLists(): void;
|
|
70
|
+
setTemplateListResult(result: any): void;
|
|
71
|
+
searchClientSide(searchValue: any): void;
|
|
72
|
+
showAddTemplateModal(AddTemplateModal: any): void;
|
|
73
|
+
getAddTemplateModel: () => any[];
|
|
74
|
+
getAddTemplateFunction: (AddModel: any) => Observable<any>;
|
|
75
|
+
showEditTemplateModal(templateID: string, EditTemplateModal: any): void;
|
|
76
|
+
getEditTemplateModel: () => any[];
|
|
77
|
+
getEditTemplateFunction: (EditModel: any) => Observable<any>;
|
|
78
|
+
showDeleteEmailTemplateModal(templateID: string): void;
|
|
79
|
+
deleteEmailTemplate: (id: string) => Observable<any>;
|
|
80
|
+
showGenerateCodeAllModal(GenerateCodeModal: any): void;
|
|
81
|
+
showGenerateAllUpdateCodeModal(GenerateCodeModal: any): void;
|
|
82
|
+
showGeneratSysNameModal(GenerateCodeModal: any): void;
|
|
83
|
+
showGenerateCodeByIdModal(templateID: string, GenerateCodeModal: any): void;
|
|
84
|
+
showGenerateUpdateCodeByIdModal(templateID: string, GenerateCodeModal: any): void;
|
|
85
|
+
copyInputMessage(): void;
|
|
86
|
+
ngOnDestroy(): void;
|
|
87
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DocumentsTemplatesComponent, never>;
|
|
88
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DocumentsTemplatesComponent, "lib-document-templates", never, {}, {}, never, never>;
|
|
89
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "@angular/router";
|
|
3
|
+
export declare class DocumentsRoutingModule {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DocumentsRoutingModule, never>;
|
|
5
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DocumentsRoutingModule, never, [typeof i1.RouterModule], [typeof i1.RouterModule]>;
|
|
6
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DocumentsRoutingModule>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class DocumentsComponent implements OnInit {
|
|
4
|
+
constructor();
|
|
5
|
+
ngOnInit(): void;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DocumentsComponent, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DocumentsComponent, "lib-documents", never, {}, {}, never, never>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./documents.component";
|
|
3
|
+
import * as i2 from "./document-master-layouts/document-master-layouts.component";
|
|
4
|
+
import * as i3 from "./add/add.component";
|
|
5
|
+
import * as i4 from "./edit/edit.component";
|
|
6
|
+
import * as i5 from "./document-templates/document-templates.component";
|
|
7
|
+
import * as i6 from "./document-template-info/document-template-info.component";
|
|
8
|
+
import * as i7 from "./edit-document-template/edit-document-template.component";
|
|
9
|
+
import * as i8 from "./documents-routing.module";
|
|
10
|
+
import * as i9 from "@angular/common";
|
|
11
|
+
import * as i10 from "@angular/forms";
|
|
12
|
+
import * as i11 from "@angular/common/http";
|
|
13
|
+
import * as i12 from "../core/auth.module";
|
|
14
|
+
import * as i13 from "@angular/router";
|
|
15
|
+
import * as i14 from "ngx-clipboard";
|
|
16
|
+
import * as i15 from "ng-block-ui";
|
|
17
|
+
import * as i16 from "../_layout/components/subheader/subheader.module";
|
|
18
|
+
import * as i17 from "@bnsights/bbsf-controls";
|
|
19
|
+
import * as i18 from "@angular/material/menu";
|
|
20
|
+
import * as i19 from "@ng-bootstrap/ng-bootstrap";
|
|
21
|
+
import * as i20 from "ng-inline-svg";
|
|
22
|
+
import * as i21 from "../empty-data/empty-data.module";
|
|
23
|
+
export declare class DocumentsModule {
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DocumentsModule, never>;
|
|
25
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DocumentsModule, [typeof i1.DocumentsComponent, typeof i2.DocumentMasterLayoutsComponent, typeof i3.AddComponent, typeof i4.EditComponent, typeof i5.DocumentsTemplatesComponent, typeof i6.DocumentTemplateInfoComponent, typeof i7.EditDocumentTemplateComponent], [typeof i8.DocumentsRoutingModule, typeof i9.CommonModule, typeof i10.ReactiveFormsModule, typeof i11.HttpClientModule, typeof i12.AuthModule, typeof i13.RouterModule, typeof i9.CommonModule, typeof i14.ClipboardModule, typeof i15.BlockUIModule, typeof i10.ReactiveFormsModule, typeof i16.SubheaderModule, typeof i10.FormsModule, typeof i17.BBSFControlsModule, typeof i18.MatMenuModule, typeof i19.NgbModule, typeof i20.InlineSVGModule, typeof i21.EmptyDataModule], never>;
|
|
26
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DocumentsModule>;
|
|
27
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { FormGroup } from '@angular/forms';
|
|
3
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
4
|
+
import { CheckBoxOptions, FormOptions, MultiLingualHtmlEditorOptions, MultiLingualTextBoxOptions, TextBoxOptions } from '@bnsights/bbsf-controls';
|
|
5
|
+
import { UtilityService, BBSFTranslateService, RequestHandlerService } from '@bnsights/bbsf-utilities';
|
|
6
|
+
import { Observable } from 'rxjs';
|
|
7
|
+
import { DocumentHeaderAndFooterTemplateService } from '../../shared/Services/DocumentHeaderAndFooterTemplate.service';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class EditComponent implements OnInit {
|
|
10
|
+
utilityService: UtilityService;
|
|
11
|
+
private bbsfTranslateService;
|
|
12
|
+
private documentHeaderAndFooterTemplateService;
|
|
13
|
+
private activatedRoute;
|
|
14
|
+
private router;
|
|
15
|
+
private requestHandlerService;
|
|
16
|
+
showPageContent: boolean;
|
|
17
|
+
editForm: FormGroup;
|
|
18
|
+
editFormOptions: FormOptions;
|
|
19
|
+
templateId: string;
|
|
20
|
+
multiLingualName: MultiLingualTextBoxOptions;
|
|
21
|
+
multiLingualHeader: MultiLingualHtmlEditorOptions;
|
|
22
|
+
multiLingualFooter: MultiLingualHtmlEditorOptions;
|
|
23
|
+
multiLingualHeadContent: MultiLingualHtmlEditorOptions;
|
|
24
|
+
EditTop: TextBoxOptions;
|
|
25
|
+
EditBottom: TextBoxOptions;
|
|
26
|
+
EditLeft: TextBoxOptions;
|
|
27
|
+
EditRight: TextBoxOptions;
|
|
28
|
+
EditPageHeight: TextBoxOptions;
|
|
29
|
+
EditPageWidth: TextBoxOptions;
|
|
30
|
+
EditIsLandscape: CheckBoxOptions;
|
|
31
|
+
EditShowPaging: CheckBoxOptions;
|
|
32
|
+
constructor(utilityService: UtilityService, bbsfTranslateService: BBSFTranslateService, documentHeaderAndFooterTemplateService: DocumentHeaderAndFooterTemplateService, activatedRoute: ActivatedRoute, router: Router, requestHandlerService: RequestHandlerService);
|
|
33
|
+
ngOnInit(): Promise<void>;
|
|
34
|
+
initializePage(): void;
|
|
35
|
+
getEditModel: () => any[];
|
|
36
|
+
getEditFunction: (AddModel: any) => Observable<any>;
|
|
37
|
+
onEditSuccess: (result: any) => void;
|
|
38
|
+
cancelEdit(): void;
|
|
39
|
+
ngOnDestroy(): void;
|
|
40
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EditComponent, never>;
|
|
41
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EditComponent, "lib-edit", never, {}, {}, never, never>;
|
|
42
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { FormGroup } from '@angular/forms';
|
|
3
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
4
|
+
import { FormOptions, HtmlEditorOptions } from '@bnsights/bbsf-controls';
|
|
5
|
+
import { PageInfoService } from '../../../_metronic/core/services/page-info.service';
|
|
6
|
+
import { UtilityService, BBSFTranslateService, RequestHandlerService } from '@bnsights/bbsf-utilities';
|
|
7
|
+
import { Observable } from 'rxjs';
|
|
8
|
+
import { DocumentTemplateService } from '../../shared/Services/DocumentTemplateService.service';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
export declare class EditDocumentTemplateComponent implements OnInit {
|
|
11
|
+
private pageInfoService;
|
|
12
|
+
utilityService: UtilityService;
|
|
13
|
+
private bbsfTranslateService;
|
|
14
|
+
private templateService;
|
|
15
|
+
private activatedRoute;
|
|
16
|
+
private router;
|
|
17
|
+
private requestHandlerService;
|
|
18
|
+
TemplateId: string;
|
|
19
|
+
Lang: string;
|
|
20
|
+
TemplateInfo: any;
|
|
21
|
+
IsFormLoaded: boolean;
|
|
22
|
+
EditDocumentForm: FormGroup;
|
|
23
|
+
EditDocumentFormOptions: FormOptions;
|
|
24
|
+
DocumentBodyInEnglish: HtmlEditorOptions;
|
|
25
|
+
DocumentBodyInArabic: HtmlEditorOptions;
|
|
26
|
+
DocumentHeadContentInEnglish: HtmlEditorOptions;
|
|
27
|
+
DocumentHeadContentInArabic: HtmlEditorOptions;
|
|
28
|
+
constructor(pageInfoService: PageInfoService, utilityService: UtilityService, bbsfTranslateService: BBSFTranslateService, templateService: DocumentTemplateService, activatedRoute: ActivatedRoute, router: Router, requestHandlerService: RequestHandlerService);
|
|
29
|
+
ngOnInit(): Promise<void>;
|
|
30
|
+
initializePage(): void;
|
|
31
|
+
getEditDocumentModel: () => any[];
|
|
32
|
+
getEditDocumentFunction: (EditModel: any) => Observable<any>;
|
|
33
|
+
onEditDocumentSuccess: (result: any) => void;
|
|
34
|
+
cancelEdit(): void;
|
|
35
|
+
changeCurrentLanguage(lang: string): void;
|
|
36
|
+
ngOnDestroy(): void;
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EditDocumentTemplateComponent, never>;
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EditDocumentTemplateComponent, "lib-edit-document-template", never, {}, {}, never, never>;
|
|
39
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { RequestHandlerService } from "@bnsights/bbsf-utilities";
|
|
2
|
+
import { DocumentHeaderAndFooterTemplate } from "../models/DocumentsModels/DocumentHeaderAndFooterTemplate";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class DocumentHeaderAndFooterTemplateService {
|
|
5
|
+
private http;
|
|
6
|
+
ApiUrl: string;
|
|
7
|
+
constructor(http: RequestHandlerService);
|
|
8
|
+
addDocumentHeaderAndFooterTemplate(AddModel: DocumentHeaderAndFooterTemplate): import("rxjs").Observable<unknown>;
|
|
9
|
+
getDocumentHeaderAndFooterTemplateById(id: string): import("rxjs").Observable<unknown>;
|
|
10
|
+
editDocumentHeaderAndFooterTemplate(EditModel: any): import("rxjs").Observable<unknown>;
|
|
11
|
+
generateCode(): import("rxjs").Observable<unknown>;
|
|
12
|
+
deleteHeaderAndFooterTemplate(id: string): import("rxjs").Observable<unknown>;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DocumentHeaderAndFooterTemplateService, never>;
|
|
14
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DocumentHeaderAndFooterTemplateService>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { RequestHandlerService } from "@bnsights/bbsf-utilities";
|
|
2
|
+
import { DocumentTemplateDTO } from "../models/DocumentsModels/DocumentTemplateDTO";
|
|
3
|
+
import { DocumentTemplateInfoDTO } from "../models/DocumentsModels/DocumentTemplateInfoDTO";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class DocumentTemplateService {
|
|
6
|
+
private http;
|
|
7
|
+
ApiUrl: string;
|
|
8
|
+
constructor(http: RequestHandlerService);
|
|
9
|
+
loaddropdowns(): import("rxjs").Observable<unknown>;
|
|
10
|
+
loadAddDropdowns(): import("rxjs").Observable<unknown>;
|
|
11
|
+
addDocumentTemplate(AddModel: DocumentTemplateDTO): import("rxjs").Observable<unknown>;
|
|
12
|
+
getEditTemplateData(id: string): import("rxjs").Observable<unknown>;
|
|
13
|
+
editDocumentTemplate(EditModel: any): import("rxjs").Observable<unknown>;
|
|
14
|
+
deleteTemplate(id: string): import("rxjs").Observable<unknown>;
|
|
15
|
+
generateCodeAll(): import("rxjs").Observable<unknown>;
|
|
16
|
+
generateAllUpdateCode(): import("rxjs").Observable<unknown>;
|
|
17
|
+
generateSysNames(): import("rxjs").Observable<unknown>;
|
|
18
|
+
generateCodeById(templateId: string): import("rxjs").Observable<unknown>;
|
|
19
|
+
generateUpdateCodeById(templateId: string): import("rxjs").Observable<unknown>;
|
|
20
|
+
getTemplateInfo(id: string): import("rxjs").Observable<unknown>;
|
|
21
|
+
editTemplateInfo(EditModel: DocumentTemplateInfoDTO): import("rxjs").Observable<unknown>;
|
|
22
|
+
exportPDF(model: any): import("rxjs").Observable<unknown>;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DocumentTemplateService, never>;
|
|
24
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DocumentTemplateService>;
|
|
25
|
+
}
|
|
@@ -19,6 +19,7 @@ import { ProvidersModule } from '../../providers/providers.module';
|
|
|
19
19
|
import { AuthenticationModule } from '../../authentication/authentication.module';
|
|
20
20
|
import { UsersModule } from '../../users/users.module';
|
|
21
21
|
import { ActiveDirectoryModule } from '../../ActiveDirectories/active-directory.module';
|
|
22
|
+
import { DocumentsModule } from '../../documents/documents.module';
|
|
22
23
|
import * as i0 from "@angular/core";
|
|
23
24
|
export declare class injectionModuleService {
|
|
24
25
|
static InjectedModules: InjectedModule[];
|
|
@@ -38,6 +39,7 @@ export declare class injectionModuleService {
|
|
|
38
39
|
static getLocalizationsModule(): typeof LocalizationsModule;
|
|
39
40
|
static getRolesModule(): typeof RolesModule;
|
|
40
41
|
static getNotificationsModule(): typeof NotificationsModule;
|
|
42
|
+
static getDocumentsModule(): typeof DocumentsModule;
|
|
41
43
|
static getLookupsModule(): typeof LookupsModule;
|
|
42
44
|
static getDepartmentsModule(): typeof DepartmentsModule;
|
|
43
45
|
static getSectorsModule(): typeof SectorsModule;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { EnglishArabicDTO } from "@bnsights/bbsf-controls";
|
|
2
|
+
export declare class DocumentHeaderAndFooterTemplate {
|
|
3
|
+
ID_GUID: string;
|
|
4
|
+
Name: EnglishArabicDTO;
|
|
5
|
+
Header: EnglishArabicDTO;
|
|
6
|
+
Footer: EnglishArabicDTO;
|
|
7
|
+
HeadContent: EnglishArabicDTO;
|
|
8
|
+
IsLandscape: boolean;
|
|
9
|
+
ShowPaging: boolean;
|
|
10
|
+
TOP: number;
|
|
11
|
+
Bottom: number;
|
|
12
|
+
Right: number;
|
|
13
|
+
Left: number;
|
|
14
|
+
PageHeight: number;
|
|
15
|
+
PageWidth: number;
|
|
16
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { EnglishArabicDTO } from "@bnsights/bbsf-controls";
|
|
2
|
+
export declare class DocumentTemplateDTO {
|
|
3
|
+
ID_GUID: string;
|
|
4
|
+
CategoryItemID_GUID: string;
|
|
5
|
+
Name: EnglishArabicDTO;
|
|
6
|
+
CategoryItemName: EnglishArabicDTO;
|
|
7
|
+
Description: EnglishArabicDTO;
|
|
8
|
+
OrganizationID_GUID: string;
|
|
9
|
+
OrganizationName: EnglishArabicDTO;
|
|
10
|
+
DocumentHeaderAndFooterTemplateID_GUID: string;
|
|
11
|
+
DocumentHeaderAndFooterTemplateName: string;
|
|
12
|
+
SysName: string;
|
|
13
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bnsights/bbsf-admin-portal",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.73",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@amcharts/amcharts5": "^5.2.25",
|
|
6
6
|
"@agm/core": "^3.0.0-beta.0",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@angular/platform-browser": "~12.2.12",
|
|
39
39
|
"@angular/platform-browser-dynamic": "~12.2.12",
|
|
40
40
|
"@angular/router": "~12.2.12",
|
|
41
|
-
"@bnsights/bbsf-controls": "1.0.
|
|
41
|
+
"@bnsights/bbsf-controls": "1.0.84",
|
|
42
42
|
"@bnsights/bbsf-utilities": "1.0.31",
|
|
43
43
|
"@fortawesome/fontawesome-free": "^5.15.1",
|
|
44
44
|
"@ng-bootstrap/ng-bootstrap": "^9.0.2",
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
|
+
<rect opacity="0.5" x="7" y="2" width="14" height="16" rx="3" fill="currentColor"/>
|
|
4
|
+
<rect x="3" y="6" width="14" height="16" rx="3" fill="currentColor"/>
|
|
5
|
+
</svg>
|
|
Binary file
|