@colijnit/sharedcomponents 256.2.7 → 256.2.9
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/bundles/colijnit-sharedcomponents.umd.js +329 -269
- package/bundles/colijnit-sharedcomponents.umd.js.map +1 -1
- package/colijnit-sharedcomponents.d.ts +9 -9
- package/colijnit-sharedcomponents.metadata.json +1 -1
- package/esm2015/colijnit-sharedcomponents.js +10 -10
- package/esm2015/lib/components/custom-pdf/custom-pdf-dialog.component.js +20 -23
- package/esm2015/lib/components/send-method-dialog/components/additional-file-button/additional-file-button.component.js +15 -3
- package/esm2015/lib/components/send-method-dialog/components/send-method-email/send-method-email.component.js +26 -2
- package/esm2015/lib/components/send-method-dialog/components/send-method-email/send-method-email.module.js +4 -2
- package/esm2015/lib/components/send-method-dialog/components/send-method-printer/send-method-printer.component.js +32 -24
- package/esm2015/lib/components/send-method-dialog/send-method-dialog.component.js +34 -4
- package/esm2015/lib/enum/icon.enum.js +2 -1
- package/esm2015/lib/model/icon-svg.js +2 -1
- package/esm2015/lib/res/dictionary/dictionaries.js +2 -2
- package/fesm2015/colijnit-sharedcomponents.js +481 -407
- package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
- package/lib/components/custom-pdf/custom-pdf-dialog.component.d.ts +7 -4
- package/lib/components/send-method-dialog/components/additional-file-button/additional-file-button.component.d.ts +4 -0
- package/lib/components/send-method-dialog/components/additional-file-button/style/_layout.scss +2 -2
- package/lib/components/send-method-dialog/components/additional-file-button/style/_material-definition.scss +2 -2
- package/lib/components/send-method-dialog/components/send-method-email/send-method-email.component.d.ts +9 -0
- package/lib/components/send-method-dialog/components/send-method-printer/send-method-printer.component.d.ts +4 -0
- package/lib/components/send-method-dialog/components/send-method-printer/style/_layout.scss +6 -0
- package/lib/components/send-method-dialog/components/signature-button/style/_layout.scss +4 -2
- package/lib/components/send-method-dialog/send-method-dialog.component.d.ts +7 -0
- package/lib/enum/icon.enum.d.ts +1 -0
- package/package.json +1 -1
|
@@ -16,8 +16,12 @@ export declare class CustomPdfDialogComponent implements OnInit, AfterViewInit {
|
|
|
16
16
|
additionalFileChangeEvent: EventEmitter<CoDocument>;
|
|
17
17
|
canvas: HTMLCanvasElement;
|
|
18
18
|
context: CanvasRenderingContext2D;
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
signaturePads: {
|
|
20
|
+
[key: string]: SignaturePad;
|
|
21
|
+
};
|
|
22
|
+
signatureCanvases: {
|
|
23
|
+
[key: string]: ElementRef;
|
|
24
|
+
};
|
|
21
25
|
fileBody: any;
|
|
22
26
|
fileStyle: string;
|
|
23
27
|
constructor(iconCacheService: IconCacheService, _sanitizer: DomSanitizer);
|
|
@@ -28,7 +32,6 @@ export declare class CustomPdfDialogComponent implements OnInit, AfterViewInit {
|
|
|
28
32
|
extractBodyContents(html: string): string[];
|
|
29
33
|
handleSaveClicked(): Promise<void>;
|
|
30
34
|
dataURItoBlob(dataURI: any): File;
|
|
31
|
-
handleClear(
|
|
32
|
-
private _initCanvas;
|
|
35
|
+
handleClear(): void;
|
|
33
36
|
private _resizeSignatureCanvas;
|
|
34
37
|
}
|
|
@@ -7,12 +7,16 @@ import { CoDocument } from "@colijnit/mainapi/build/model/co-document";
|
|
|
7
7
|
export declare class AdditionalFileButtonComponent {
|
|
8
8
|
iconCacheService: IconCacheService;
|
|
9
9
|
readonly icons: typeof Icon;
|
|
10
|
+
isActive: boolean;
|
|
10
11
|
request: ReportingDocumentEmailSignDocBaseRequest | ReportingDocumentPrintSignDocBaseRequest;
|
|
11
12
|
additionalFileContents: any;
|
|
12
13
|
additionalFileName: string;
|
|
13
14
|
additionalFileChangeEvent: EventEmitter<CoDocument>;
|
|
15
|
+
openPdfProgrammatically: EventEmitter<void>;
|
|
16
|
+
openForSave(): void;
|
|
14
17
|
showClass(): boolean;
|
|
15
18
|
show: boolean;
|
|
16
19
|
constructor(iconCacheService: IconCacheService);
|
|
17
20
|
handleToggleDialog(): void;
|
|
21
|
+
toggleActive(): void;
|
|
18
22
|
}
|
package/lib/components/send-method-dialog/components/additional-file-button/style/_layout.scss
CHANGED
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
cursor: pointer;
|
|
12
12
|
border: 1px solid $sc-co-signature-button-selected-background-color;
|
|
13
13
|
.co-icon {
|
|
14
|
-
width:
|
|
15
|
-
height:
|
|
14
|
+
width: $sc-co-signature-button-icon-width;
|
|
15
|
+
height: $sc-co-signature-button-icon-height;
|
|
16
16
|
svg {
|
|
17
17
|
fill: $sc-co-signature-button-selected-background-color;
|
|
18
18
|
}
|
|
@@ -3,6 +3,6 @@ $sc-co-signature-button-width: 40px !default;
|
|
|
3
3
|
$sc-co-signature-button-background-color: #ffffff !default;
|
|
4
4
|
$sc-co-signature-button-selected-background-color: #1A73E8 !default;
|
|
5
5
|
$sc-co-signature-button-border-radius: 5px !default;
|
|
6
|
-
$sc-co-signature-button-icon-height:
|
|
7
|
-
$sc-co-signature-button-icon-width:
|
|
6
|
+
$sc-co-signature-button-icon-height: 24px !default;
|
|
7
|
+
$sc-co-signature-button-icon-width: 24px !default;
|
|
8
8
|
$sc-co-signature-button-icon-selected-color: white !default;
|
|
@@ -2,18 +2,27 @@ import { EventEmitter, OnInit } from '@angular/core';
|
|
|
2
2
|
import { SendMethodService } from '../../service/send-method.service';
|
|
3
3
|
import { EmailAddressViewmodel } from '../../model/email-address-viewmodel';
|
|
4
4
|
import { ReportLayoutSelectionEmail } from '@colijnit/mainapi/build/model/report-layout-selection-email.bo';
|
|
5
|
+
import { CoDocument } from "@colijnit/mainapi/build/model/co-document";
|
|
6
|
+
import { AdditionalFileButtonComponent } from "../additional-file-button/additional-file-button.component";
|
|
5
7
|
export declare class SendMethodEmailComponent implements OnInit {
|
|
6
8
|
sendMethodService: SendMethodService;
|
|
9
|
+
additionalFileButtonRef: AdditionalFileButtonComponent;
|
|
7
10
|
emailAddresses: string[];
|
|
8
11
|
layouts: ReportLayoutSelectionEmail[];
|
|
9
12
|
pdfDoc: any;
|
|
10
13
|
disablePdfPreview: boolean;
|
|
11
14
|
emailUnsignedPossible: boolean;
|
|
15
|
+
additionalFileContents: any;
|
|
16
|
+
additionalFileName: string;
|
|
17
|
+
isAdditionalDocEnabled: boolean;
|
|
12
18
|
showFilePreview: EventEmitter<number>;
|
|
13
19
|
loadDefaultPrinterName: EventEmitter<number>;
|
|
20
|
+
additionalFileChangeEvent: EventEmitter<CoDocument>;
|
|
14
21
|
showClass(): boolean;
|
|
15
22
|
emailAddressViewmodels: EmailAddressViewmodel[];
|
|
16
23
|
constructor(sendMethodService: SendMethodService);
|
|
17
24
|
ngOnInit(): void;
|
|
18
25
|
handleCheckedEmail(emailAddressViewmodel: EmailAddressViewmodel): void;
|
|
26
|
+
openAdditionalFileDialog(): void;
|
|
27
|
+
isAdditionalFileActive(): boolean;
|
|
19
28
|
}
|
|
@@ -5,10 +5,12 @@ import { Printer } from '@colijnit/mainapi/build/model/printer.bo';
|
|
|
5
5
|
import { Icon } from '../../../../enum/icon.enum';
|
|
6
6
|
import { IconCacheService } from '../../../../service/icon-cache.service';
|
|
7
7
|
import { CoDocument } from '@colijnit/mainapi/build/model/co-document';
|
|
8
|
+
import { AdditionalFileButtonComponent } from "../additional-file-button/additional-file-button.component";
|
|
8
9
|
export declare class SendMethodPrinterComponent {
|
|
9
10
|
sendMethodService: SendMethodService;
|
|
10
11
|
iconCacheService: IconCacheService;
|
|
11
12
|
showClass(): boolean;
|
|
13
|
+
additionalFileButtonRef: AdditionalFileButtonComponent;
|
|
12
14
|
printerList: Printer[];
|
|
13
15
|
defaultPrinter: Printer;
|
|
14
16
|
layouts: ReportLayoutSelectionPrint[];
|
|
@@ -25,4 +27,6 @@ export declare class SendMethodPrinterComponent {
|
|
|
25
27
|
constructor(sendMethodService: SendMethodService, iconCacheService: IconCacheService);
|
|
26
28
|
handleDefaultPrinterUserChange(checked: boolean): void;
|
|
27
29
|
handleDefaultPrinterAllUsersChange(checked: boolean): void;
|
|
30
|
+
openAdditionalFileDialog(): void;
|
|
31
|
+
isAdditionalFileActive(): boolean;
|
|
28
32
|
}
|
|
@@ -14,11 +14,13 @@
|
|
|
14
14
|
background-color: $sc-co-signature-button-background-color;
|
|
15
15
|
border-radius: $sc-co-signature-button-border-radius;
|
|
16
16
|
cursor: pointer;
|
|
17
|
+
border: 1px solid $sc-co-signature-button-selected-background-color;
|
|
17
18
|
.co-icon {
|
|
18
19
|
width: $sc-co-signature-button-icon-width;
|
|
19
20
|
height: $sc-co-signature-button-icon-height;
|
|
20
|
-
|
|
21
|
-
|
|
21
|
+
svg {
|
|
22
|
+
fill: $sc-co-signature-button-selected-background-color;
|
|
23
|
+
}
|
|
22
24
|
}
|
|
23
25
|
&.selected {
|
|
24
26
|
background-color: $sc-co-signature-button-selected-background-color;
|
|
@@ -11,6 +11,8 @@ import { Printer } from '@colijnit/mainapi/build/model/printer.bo';
|
|
|
11
11
|
import { ReportingDocumentEmailSignDocBaseRequest } from '@colijnit/mainapi/build/model/reporting-document-email-sign-doc-base-request';
|
|
12
12
|
import { ReportingDocumentPrintSignDocBaseRequest } from '@colijnit/mainapi/build/model/reporting-document-print-sign-doc-base-request';
|
|
13
13
|
import { CoDocument } from '@colijnit/mainapi/build/model/co-document';
|
|
14
|
+
import { SendMethodPrinterComponent } from "./components/send-method-printer/send-method-printer.component";
|
|
15
|
+
import { SendMethodEmailComponent } from "./components/send-method-email/send-method-email.component";
|
|
14
16
|
export declare const sendMethodsWithIcon: SendMethod[];
|
|
15
17
|
export declare class SendMethodDialogComponent implements OnInit, OnDestroy {
|
|
16
18
|
iconCacheService: IconCacheService;
|
|
@@ -26,6 +28,8 @@ export declare class SendMethodDialogComponent implements OnInit, OnDestroy {
|
|
|
26
28
|
webServiceItems: ElementRef;
|
|
27
29
|
pdfItems: ElementRef;
|
|
28
30
|
purchaseItems: ElementRef;
|
|
31
|
+
printerComponentRef: SendMethodPrinterComponent;
|
|
32
|
+
emailComponentRef: SendMethodEmailComponent;
|
|
29
33
|
printerList: Printer[];
|
|
30
34
|
reportingDocumentPrintRequest: ReportingDocumentPrintSignDocBaseRequest;
|
|
31
35
|
reportingDocumentEmailRequest: ReportingDocumentEmailSignDocBaseRequest;
|
|
@@ -69,6 +73,7 @@ export declare class SendMethodDialogComponent implements OnInit, OnDestroy {
|
|
|
69
73
|
showWebservice: boolean;
|
|
70
74
|
showPdf: boolean;
|
|
71
75
|
selectedPurchaseMethod: any;
|
|
76
|
+
additionalFileHasBeenSaved: boolean;
|
|
72
77
|
handlePurchaseMethodChange(method: any): void;
|
|
73
78
|
private _subscriptions;
|
|
74
79
|
constructor(iconCacheService: IconCacheService, _sendMethodService: SendMethodService);
|
|
@@ -76,7 +81,9 @@ export declare class SendMethodDialogComponent implements OnInit, OnDestroy {
|
|
|
76
81
|
ngOnDestroy(): void;
|
|
77
82
|
handleSignatureStart(): void;
|
|
78
83
|
handleCombinedClick(): void;
|
|
84
|
+
handleAdditionalFileSaved(file: CoDocument): void;
|
|
79
85
|
handleOkClick(): void;
|
|
86
|
+
private _continueHandleOkClick;
|
|
80
87
|
handleSendMethodClick(sendMethod: SendMethod): void;
|
|
81
88
|
private _initDefaultSendMethod;
|
|
82
89
|
private _selectDefaultSendMethod;
|
package/lib/enum/icon.enum.d.ts
CHANGED
|
@@ -38,6 +38,7 @@ export declare enum Icon {
|
|
|
38
38
|
EyeRegular = "eye_regular",
|
|
39
39
|
FileExportRegular = "file_export_regular",
|
|
40
40
|
FileExportSolid = "file_export_solid",
|
|
41
|
+
FileMagnifyingGlass = "file_magnifying_glass",
|
|
41
42
|
FilePdfRegular = "file_pdf_regular",
|
|
42
43
|
FilePdfSolid = "file_pdf_solid",
|
|
43
44
|
FileSignatureRegular = "file_signature_regular",
|