@colijnit/sharedcomponents 257.1.0 → 257.1.2

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.
Files changed (39) hide show
  1. package/bundles/colijnit-sharedcomponents.umd.js +528 -351
  2. package/bundles/colijnit-sharedcomponents.umd.js.map +1 -1
  3. package/colijnit-sharedcomponents.d.ts +121 -117
  4. package/colijnit-sharedcomponents.metadata.json +1 -1
  5. package/esm2015/colijnit-sharedcomponents.js +122 -118
  6. package/esm2015/lib/components/preview-pdf-dialog/preview-pdf-dialog.component.js +77 -0
  7. package/esm2015/lib/components/preview-pdf-dialog/preview-pdf-dialog.module.js +26 -0
  8. package/esm2015/lib/components/send-method-dialog/components/layout-selection/layout-selection.component.js +19 -5
  9. package/esm2015/lib/components/send-method-dialog/components/pdf-preview/pdf-preview.component.js +46 -0
  10. package/esm2015/lib/components/send-method-dialog/components/pdf-preview/pdf-preview.module.js +25 -0
  11. package/esm2015/lib/components/send-method-dialog/components/send-method-email/send-method-email.component.js +24 -16
  12. package/esm2015/lib/components/send-method-dialog/components/send-method-email/send-method-email.module.js +4 -2
  13. package/esm2015/lib/components/send-method-dialog/components/send-method-pdf/send-method-pdf.component.js +13 -4
  14. package/esm2015/lib/components/send-method-dialog/components/send-method-pdf/send-method-pdf.module.js +4 -2
  15. package/esm2015/lib/components/send-method-dialog/components/send-method-printer/send-method-printer.component.js +39 -31
  16. package/esm2015/lib/components/send-method-dialog/components/send-method-printer/send-method-printer.module.js +7 -5
  17. package/esm2015/lib/components/send-method-dialog/send-method-dialog.component.js +13 -3
  18. package/esm2015/lib/res/dictionary/dictionaries.js +3 -3
  19. package/fesm2015/colijnit-sharedcomponents.js +431 -223
  20. package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
  21. package/lib/components/preview-pdf-dialog/preview-pdf-dialog.component.d.ts +18 -0
  22. package/lib/components/preview-pdf-dialog/preview-pdf-dialog.module.d.ts +2 -0
  23. package/lib/components/preview-pdf-dialog/style/_layout.scss +22 -0
  24. package/lib/components/preview-pdf-dialog/style/_material-definition.scss +0 -0
  25. package/lib/components/preview-pdf-dialog/style/_theme.scss +5 -0
  26. package/lib/components/preview-pdf-dialog/style/material.scss +4 -0
  27. package/lib/components/send-method-dialog/components/layout-selection/layout-selection.component.d.ts +2 -1
  28. package/lib/components/send-method-dialog/components/pdf-preview/pdf-preview.component.d.ts +14 -0
  29. package/lib/components/send-method-dialog/components/pdf-preview/pdf-preview.module.d.ts +2 -0
  30. package/lib/components/send-method-dialog/components/pdf-preview/style/_layout.scss +29 -0
  31. package/lib/components/send-method-dialog/components/pdf-preview/style/_material-definition.scss +8 -0
  32. package/lib/components/send-method-dialog/components/pdf-preview/style/_theme.scss +4 -0
  33. package/lib/components/send-method-dialog/components/pdf-preview/style/material.scss +4 -0
  34. package/lib/components/send-method-dialog/components/send-method-email/send-method-email.component.d.ts +3 -1
  35. package/lib/components/send-method-dialog/components/send-method-pdf/send-method-pdf.component.d.ts +3 -0
  36. package/lib/components/send-method-dialog/components/send-method-printer/send-method-printer.component.d.ts +4 -2
  37. package/lib/components/send-method-dialog/send-method-dialog.component.d.ts +2 -0
  38. package/lib/res/dictionary/dictionaries.d.ts +2 -117
  39. package/package.json +1 -1
@@ -0,0 +1,18 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import { IconCacheService } from '../../service/icon-cache.service';
3
+ import { Icon } from '../../enum/icon.enum';
4
+ import { DomSanitizer } from '@angular/platform-browser';
5
+ export declare class PreviewPdfDialogComponent implements OnInit {
6
+ iconCacheService: IconCacheService;
7
+ sanitizer: DomSanitizer;
8
+ showClass(): boolean;
9
+ set pdfDoc(value: string);
10
+ get pdfDoc(): string;
11
+ closePDFDialog: EventEmitter<any>;
12
+ readonly icons: typeof Icon;
13
+ pdfUrl: string;
14
+ private _pdfDoc;
15
+ constructor(iconCacheService: IconCacheService, sanitizer: DomSanitizer);
16
+ ngOnInit(): void;
17
+ private _generatePdf;
18
+ }
@@ -0,0 +1,2 @@
1
+ export declare class PreviewPdfDialogModule {
2
+ }
@@ -0,0 +1,22 @@
1
+ @include export-module('co-preview-pdf-dialog-layout') {
2
+ .co-preview-pdf-dialog {
3
+ background: #fff;
4
+ /* Do not change these values, the 'view' of the pdf needs to be this size or else it will not work */
5
+ #pdfBody {
6
+ background: #fff;
7
+ min-width: 1080px;
8
+ overflow-x: scroll;
9
+ }
10
+ .co-dialog {
11
+ .co-dialog-wrapper {
12
+ max-height: 95vh;
13
+ max-width: 1125px;
14
+ width: 100% !important;
15
+ padding: 10px;
16
+ background-color: #f8f8fa;
17
+ }
18
+ }
19
+ }
20
+ }
21
+
22
+
@@ -0,0 +1,5 @@
1
+ @include export-module('co-preview-pdf-dialog-theme') {
2
+ .co-preview-pdf-dialog {
3
+
4
+ }
5
+ }
@@ -0,0 +1,4 @@
1
+ @import "../../../style/mixin";
2
+ @import "./material-definition";
3
+ @import "./layout";
4
+ @import "./theme";
@@ -6,12 +6,13 @@ import { IconCacheService } from "../../../../service/icon-cache.service";
6
6
  export declare class LayoutSelectionComponent implements OnInit {
7
7
  iconCacheService: IconCacheService;
8
8
  readonly icons: typeof Icon;
9
- request: ReportingDocumentBaseRequest;
9
+ set request(value: ReportingDocumentBaseRequest);
10
10
  layouts: ReportLayoutSelectionBase[];
11
11
  requestChange: EventEmitter<ReportingDocumentBaseRequest>;
12
12
  showClass(): boolean;
13
13
  currentLayout: ReportLayoutSelectionBase;
14
14
  showLayoutList: boolean;
15
+ private _request;
15
16
  constructor(iconCacheService: IconCacheService);
16
17
  ngOnInit(): void;
17
18
  handleSelectLayout(reportLayout: ReportLayoutSelectionBase): void;
@@ -0,0 +1,14 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import { Icon } from "../../../../enum/icon.enum";
3
+ import { IconCacheService } from "../../../../service/icon-cache.service";
4
+ export declare class PdfPreviewComponent implements OnInit {
5
+ iconCacheService: IconCacheService;
6
+ showClass(): boolean;
7
+ pdfDoc: any;
8
+ showFilePreview: EventEmitter<void>;
9
+ readonly icons: typeof Icon;
10
+ showDialog: boolean;
11
+ constructor(iconCacheService: IconCacheService);
12
+ ngOnInit(): void;
13
+ showPreviewDialog(): void;
14
+ }
@@ -0,0 +1,2 @@
1
+ export declare class PdfPreviewModule {
2
+ }
@@ -0,0 +1,29 @@
1
+ @include export-module('cc-pdf-preview-layout') {
2
+ .co-pdf-preview {
3
+ .pdf-preview-button {
4
+ height: $sc-co-signature-button-height;
5
+ width: $sc-co-signature-button-width;
6
+ display: flex;
7
+ align-items: center;
8
+ justify-content: center;
9
+ background-color: $sc-co-signature-button-background-color;
10
+ border-radius: $sc-co-signature-button-border-radius;
11
+ cursor: pointer;
12
+ .co-icon {
13
+ width: $sc-co-signature-button-icon-width;
14
+ height: $sc-co-signature-button-icon-height;
15
+ }
16
+ &.selected {
17
+ background-color: $sc-co-signature-button-selected-background-color;
18
+ .co-icon {
19
+ svg { // for fontawesome icons
20
+ fill: $sc-co-signature-button-icon-selected-color;
21
+ }
22
+ & [fill] { // for own icons
23
+ fill: $sc-co-signature-button-icon-selected-color;
24
+ }
25
+ }
26
+ }
27
+ }
28
+ }
29
+ }
@@ -0,0 +1,8 @@
1
+ $sc-co-signature-button-height: 40px !default;
2
+ $sc-co-signature-button-width: 40px !default;
3
+ $sc-co-signature-button-background-color: #f5f5fc !default;
4
+ $sc-co-signature-button-selected-background-color: #1A73E8 !default;
5
+ $sc-co-signature-button-border-radius: 5px !default;
6
+ $sc-co-signature-button-icon-height: 30px !default;
7
+ $sc-co-signature-button-icon-width: 30px !default;
8
+ $sc-co-signature-button-icon-selected-color: white !default;
@@ -0,0 +1,4 @@
1
+ @include export-module('cc-signature-button-theme') {
2
+ .co-signature-button {
3
+ }
4
+ }
@@ -0,0 +1,4 @@
1
+ @import "../../../../../style/mixin";
2
+ @import "./_material-definition";
3
+ @import "./_layout";
4
+ @import "./_theme";
@@ -1,4 +1,4 @@
1
- import { OnInit } from '@angular/core';
1
+ 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';
@@ -6,6 +6,8 @@ export declare class SendMethodEmailComponent implements OnInit {
6
6
  sendMethodService: SendMethodService;
7
7
  emailAddresses: string[];
8
8
  layouts: ReportLayoutSelectionEmail[];
9
+ pdfDoc: any;
10
+ showFilePreview: EventEmitter<void>;
9
11
  showClass(): boolean;
10
12
  emailAddressViewmodels: EmailAddressViewmodel[];
11
13
  constructor(sendMethodService: SendMethodService);
@@ -1,8 +1,11 @@
1
+ import { EventEmitter } from '@angular/core';
1
2
  import { ReportLayoutSelectionPrint } from '@colijnit/mainapi/build/model/report-layout-selection-print.bo';
2
3
  import { SendMethodService } from '../../service/send-method.service';
3
4
  export declare class SendMethodPdfComponent {
4
5
  sendMethodService: SendMethodService;
5
6
  layouts: ReportLayoutSelectionPrint[];
7
+ pdfDoc: any;
8
+ showFilePreview: EventEmitter<void>;
6
9
  showClass(): boolean;
7
10
  constructor(sendMethodService: SendMethodService);
8
11
  }
@@ -8,16 +8,18 @@ import { CoDocument } from "@colijnit/mainapi/build/model/co-document";
8
8
  export declare class SendMethodPrinterComponent {
9
9
  sendMethodService: SendMethodService;
10
10
  iconCacheService: IconCacheService;
11
+ showClass(): boolean;
11
12
  printerList: Printer[];
12
13
  layouts: ReportLayoutSelectionPrint[];
13
14
  isPrinterLayoutsEnabled: boolean;
14
15
  isAdditionalDocEnabled: boolean;
15
- showClass(): boolean;
16
+ pdfDoc: any;
16
17
  additionalFileContents: any;
17
18
  additionalFileName: string;
18
19
  additionalFileChangeEvent: EventEmitter<CoDocument>;
20
+ showFilePreview: EventEmitter<void>;
21
+ protected readonly icons: typeof Icon;
19
22
  constructor(sendMethodService: SendMethodService, iconCacheService: IconCacheService);
20
23
  handleDefaultPrinterUserChange(checked: boolean): void;
21
24
  handleDefaultPrinterAllUsersChange(checked: boolean): void;
22
- protected readonly icons: typeof Icon;
23
25
  }
@@ -44,6 +44,7 @@ export declare class SendMethodDialogComponent implements OnInit, OnDestroy {
44
44
  isAdditionalDocEnabled: boolean;
45
45
  additionalFileName: string;
46
46
  additionalFileContents: any;
47
+ pdfDoc: any;
47
48
  reportingDocumentPrintRequestChange: EventEmitter<ReportingDocumentPrintSignDocBaseRequest>;
48
49
  reportingDocumentEmailRequestChange: EventEmitter<ReportingDocumentEmailSignDocBaseRequest>;
49
50
  reportingDocumentPdfRequestChange: EventEmitter<ReportingDocumentPdfBaseRequest>;
@@ -51,6 +52,7 @@ export declare class SendMethodDialogComponent implements OnInit, OnDestroy {
51
52
  closeClick: EventEmitter<MouseEvent>;
52
53
  okClick: EventEmitter<string>;
53
54
  additionalFileChangeEvent: EventEmitter<CoDocument>;
55
+ showFilePreview: EventEmitter<void>;
54
56
  showClass(): boolean;
55
57
  sendMethods: SendMethod[];
56
58
  activeSendMethod: SendMethod;