@colijnit/sharedcomponents 257.1.1 → 257.1.3
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 +517 -349
- package/bundles/colijnit-sharedcomponents.umd.js.map +1 -1
- package/colijnit-sharedcomponents.d.ts +121 -117
- package/colijnit-sharedcomponents.metadata.json +1 -1
- package/esm2015/colijnit-sharedcomponents.js +122 -118
- package/esm2015/lib/components/email-selector/email-selector.component.js +4 -4
- package/esm2015/lib/components/preview-pdf-dialog/preview-pdf-dialog.component.js +77 -0
- package/esm2015/lib/components/preview-pdf-dialog/preview-pdf-dialog.module.js +26 -0
- package/esm2015/lib/components/send-method-dialog/components/pdf-preview/pdf-preview.component.js +46 -0
- package/esm2015/lib/components/send-method-dialog/components/pdf-preview/pdf-preview.module.js +25 -0
- package/esm2015/lib/components/send-method-dialog/components/printer-selection/printer-selection.component.js +9 -2
- package/esm2015/lib/components/send-method-dialog/components/send-method-email/send-method-email.component.js +24 -16
- 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-pdf/send-method-pdf.component.js +13 -4
- package/esm2015/lib/components/send-method-dialog/components/send-method-pdf/send-method-pdf.module.js +4 -2
- package/esm2015/lib/components/send-method-dialog/components/send-method-printer/send-method-printer.component.js +40 -31
- package/esm2015/lib/components/send-method-dialog/components/send-method-printer/send-method-printer.module.js +7 -5
- package/esm2015/lib/components/send-method-dialog/send-method-dialog.component.js +16 -4
- package/esm2015/lib/res/dictionary/dictionaries.js +3 -3
- package/fesm2015/colijnit-sharedcomponents.js +427 -223
- package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
- package/lib/components/activity-list/style/_layout.scss +2 -1
- package/lib/components/email-selector/style/_layout.scss +16 -3
- package/lib/components/preview-pdf-dialog/preview-pdf-dialog.component.d.ts +18 -0
- package/lib/components/preview-pdf-dialog/preview-pdf-dialog.module.d.ts +2 -0
- package/lib/components/preview-pdf-dialog/style/_layout.scss +22 -0
- package/lib/components/preview-pdf-dialog/style/_material-definition.scss +0 -0
- package/lib/components/preview-pdf-dialog/style/_theme.scss +5 -0
- package/lib/components/preview-pdf-dialog/style/material.scss +4 -0
- package/lib/components/role-email-selector/style/_layout.scss +3 -0
- package/lib/components/role-email-selector/style/_material-definition.scss +3 -3
- package/lib/components/send-method-dialog/components/pdf-preview/pdf-preview.component.d.ts +14 -0
- package/lib/components/send-method-dialog/components/pdf-preview/pdf-preview.module.d.ts +2 -0
- package/lib/components/send-method-dialog/components/pdf-preview/style/_layout.scss +29 -0
- package/lib/components/send-method-dialog/components/pdf-preview/style/_material-definition.scss +8 -0
- package/lib/components/send-method-dialog/components/pdf-preview/style/_theme.scss +4 -0
- package/lib/components/send-method-dialog/components/pdf-preview/style/material.scss +4 -0
- package/lib/components/send-method-dialog/components/printer-selection/printer-selection.component.d.ts +1 -0
- package/lib/components/send-method-dialog/components/send-method-email/send-method-email.component.d.ts +3 -1
- package/lib/components/send-method-dialog/components/send-method-pdf/send-method-pdf.component.d.ts +3 -0
- package/lib/components/send-method-dialog/components/send-method-printer/send-method-printer.component.d.ts +5 -2
- package/lib/components/send-method-dialog/send-method-dialog.component.d.ts +3 -0
- package/lib/components/task-creator/style/_layout.scss +3 -1
- package/lib/res/dictionary/dictionaries.d.ts +6 -0
- package/package.json +2 -2
|
@@ -5,18 +5,18 @@
|
|
|
5
5
|
display: flex;
|
|
6
6
|
flex-direction: column;
|
|
7
7
|
row-gap: 5px;
|
|
8
|
-
padding-left:
|
|
8
|
+
padding-left: 40px;
|
|
9
9
|
.recipients-line {
|
|
10
10
|
width: 100%;
|
|
11
11
|
display: flex;
|
|
12
12
|
flex-direction: row;
|
|
13
13
|
gap: 60px;
|
|
14
14
|
border-bottom: 4px solid #f5f5fc;
|
|
15
|
-
.recipients-bcc, recipients-add {
|
|
15
|
+
.recipients-bcc, .recipients-add {
|
|
16
16
|
display: flex;
|
|
17
17
|
gap: 5px;
|
|
18
18
|
align-items: center;
|
|
19
|
-
width: 80px;
|
|
19
|
+
min-width: 80px;
|
|
20
20
|
label {
|
|
21
21
|
font-size: 12px;
|
|
22
22
|
}
|
|
@@ -39,6 +39,19 @@
|
|
|
39
39
|
}
|
|
40
40
|
.co-input-text {
|
|
41
41
|
width: 100%;
|
|
42
|
+
position: unset;
|
|
43
|
+
.input-wrapper {
|
|
44
|
+
position: unset;
|
|
45
|
+
label {
|
|
46
|
+
left: 0;
|
|
47
|
+
top: 50%;
|
|
48
|
+
transform: translateY(-50%);
|
|
49
|
+
}
|
|
50
|
+
input {
|
|
51
|
+
padding: 0 0 0 10px;
|
|
52
|
+
align-self: center;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
42
55
|
}
|
|
43
56
|
.co-list-of-values {
|
|
44
57
|
min-width: 150px;
|
|
@@ -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,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
|
+
|
|
File without changes
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
$cc-co-role-email-selector-chips-padding: 0 !default;
|
|
1
|
+
$cc-co-role-email-selector-chips-padding: 0 0 0 30px !default;
|
|
2
2
|
$cc-co-role-email-selector-chips-column-gap: 5px !default;
|
|
3
3
|
$cc-co-role-email-selector-chips-row-gap: 2px !default;
|
|
4
4
|
|
|
5
5
|
$cc-co-role-email-selector-chip-font-family: $cc-font-family !default;
|
|
6
|
-
$cc-co-role-email-selector-chip-font-size:
|
|
6
|
+
$cc-co-role-email-selector-chip-font-size: 9px !default;
|
|
7
7
|
$cc-co-role-email-selector-chip-font-color: #000 !default;
|
|
8
8
|
|
|
9
9
|
$cc-co-role-email-selector-chip-background-color: #f5f5fc !default;
|
|
10
10
|
$cc-co-role-email-selector-chip-border-radius: 5px !default;
|
|
11
|
-
$cc-co-role-email-selector-chip-padding:
|
|
11
|
+
$cc-co-role-email-selector-chip-padding: 0px 5px !default;
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
$cc-co-role-email-selector-chip-delete-icon-color: $cc-color-icons-dark !default;
|
|
@@ -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,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
|
+
}
|
package/lib/components/send-method-dialog/components/pdf-preview/style/_material-definition.scss
ADDED
|
@@ -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;
|
|
@@ -10,6 +10,7 @@ export declare class PrinterSelectionComponent implements OnInit {
|
|
|
10
10
|
private _service;
|
|
11
11
|
readonly icons: typeof Icon;
|
|
12
12
|
printers: Printer[];
|
|
13
|
+
defaultPrinter: Printer;
|
|
13
14
|
showClass(): boolean;
|
|
14
15
|
showPrinterList: boolean;
|
|
15
16
|
constructor(sendMethodService: SendMethodService, iconService: IconCacheService, _service: SharedService);
|
|
@@ -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);
|
package/lib/components/send-method-dialog/components/send-method-pdf/send-method-pdf.component.d.ts
CHANGED
|
@@ -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,19 @@ 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[];
|
|
13
|
+
defaultPrinter: Printer;
|
|
12
14
|
layouts: ReportLayoutSelectionPrint[];
|
|
13
15
|
isPrinterLayoutsEnabled: boolean;
|
|
14
16
|
isAdditionalDocEnabled: boolean;
|
|
15
|
-
|
|
17
|
+
pdfDoc: any;
|
|
16
18
|
additionalFileContents: any;
|
|
17
19
|
additionalFileName: string;
|
|
18
20
|
additionalFileChangeEvent: EventEmitter<CoDocument>;
|
|
21
|
+
showFilePreview: EventEmitter<void>;
|
|
22
|
+
protected readonly icons: typeof Icon;
|
|
19
23
|
constructor(sendMethodService: SendMethodService, iconCacheService: IconCacheService);
|
|
20
24
|
handleDefaultPrinterUserChange(checked: boolean): void;
|
|
21
25
|
handleDefaultPrinterAllUsersChange(checked: boolean): void;
|
|
22
|
-
protected readonly icons: typeof Icon;
|
|
23
26
|
}
|
|
@@ -34,6 +34,7 @@ export declare class SendMethodDialogComponent implements OnInit, OnDestroy {
|
|
|
34
34
|
reportingDocumentPdfRequest: ReportingDocumentPdfBaseRequest;
|
|
35
35
|
emailLayouts: ReportLayoutSelectionEmail[];
|
|
36
36
|
printLayouts: ReportLayoutSelectionPrint[];
|
|
37
|
+
defaultPrinter: Printer;
|
|
37
38
|
headerTitle: string;
|
|
38
39
|
emailAddresses: string[];
|
|
39
40
|
defaultSendMethod: string;
|
|
@@ -44,6 +45,7 @@ export declare class SendMethodDialogComponent implements OnInit, OnDestroy {
|
|
|
44
45
|
isAdditionalDocEnabled: boolean;
|
|
45
46
|
additionalFileName: string;
|
|
46
47
|
additionalFileContents: any;
|
|
48
|
+
pdfDoc: any;
|
|
47
49
|
reportingDocumentPrintRequestChange: EventEmitter<ReportingDocumentPrintSignDocBaseRequest>;
|
|
48
50
|
reportingDocumentEmailRequestChange: EventEmitter<ReportingDocumentEmailSignDocBaseRequest>;
|
|
49
51
|
reportingDocumentPdfRequestChange: EventEmitter<ReportingDocumentPdfBaseRequest>;
|
|
@@ -51,6 +53,7 @@ export declare class SendMethodDialogComponent implements OnInit, OnDestroy {
|
|
|
51
53
|
closeClick: EventEmitter<MouseEvent>;
|
|
52
54
|
okClick: EventEmitter<string>;
|
|
53
55
|
additionalFileChangeEvent: EventEmitter<CoDocument>;
|
|
56
|
+
showFilePreview: EventEmitter<void>;
|
|
54
57
|
showClass(): boolean;
|
|
55
58
|
sendMethods: SendMethod[];
|
|
56
59
|
activeSendMethod: SendMethod;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
display: block;
|
|
7
7
|
}
|
|
8
8
|
.task-creator-wrapper {
|
|
9
|
-
margin-left:
|
|
9
|
+
margin-left: 0;
|
|
10
10
|
box-shadow: 0 1px 4px 0 #8083a385;
|
|
11
11
|
border-radius: 5px;
|
|
12
12
|
}
|
|
@@ -35,6 +35,8 @@
|
|
|
35
35
|
height: fit-content;
|
|
36
36
|
box-shadow: 0 2px 2px 0 #0000001A;
|
|
37
37
|
border-radius: 3px;
|
|
38
|
+
background: #ffffff;
|
|
39
|
+
z-index: 2;
|
|
38
40
|
.icon-item {
|
|
39
41
|
display: flex;
|
|
40
42
|
align-items: center;
|
|
@@ -4589,6 +4589,7 @@ export declare class Dictionaries {
|
|
|
4589
4589
|
MUTATION_USER: string;
|
|
4590
4590
|
MY_CLIENTDATA: string;
|
|
4591
4591
|
MY_EMPLOYERS: string;
|
|
4592
|
+
MY_PLANNING: string;
|
|
4592
4593
|
MY_ORDERS: string;
|
|
4593
4594
|
MY_SERVICES: string;
|
|
4594
4595
|
MY_SERVICE_REQUESTS: string;
|
|
@@ -14840,6 +14841,7 @@ export declare class Dictionaries {
|
|
|
14840
14841
|
LOCATIONS: string;
|
|
14841
14842
|
LOCATION_ADVICE: string;
|
|
14842
14843
|
LOCATION_FROM: string;
|
|
14844
|
+
LOCATION_INVENTORY: string;
|
|
14843
14845
|
LOCATION_IS_NOT_VALID_WITHIN_WAREHOUSE: string;
|
|
14844
14846
|
LOCATION_NOT_EDITABLE: string;
|
|
14845
14847
|
LOCATION_NOT_SAME_AS_ROW: string;
|
|
@@ -15396,6 +15398,7 @@ export declare class Dictionaries {
|
|
|
15396
15398
|
MY_ABSENCEFILES: string;
|
|
15397
15399
|
MY_CLIENTDATA: string;
|
|
15398
15400
|
MY_EMPLOYERS: string;
|
|
15401
|
+
MY_PLANNING: string;
|
|
15399
15402
|
MY_ORDERS: string;
|
|
15400
15403
|
MY_SERVICES: string;
|
|
15401
15404
|
MY_SERVICE_REQUESTS: string;
|
|
@@ -16867,6 +16870,8 @@ export declare class Dictionaries {
|
|
|
16867
16870
|
RECALCULATE_ALL_PRICES: string;
|
|
16868
16871
|
RECALCULATE_DELIVERYDATE_FOR_ALL_LINES: string;
|
|
16869
16872
|
RECALCULATE_DEPOSIT_AMOUNT: string;
|
|
16873
|
+
RECALCULATE_FOR_ALL_LOCATIONS: string;
|
|
16874
|
+
RECALCULATE_FOR_SINGLE_LOCATION: string;
|
|
16870
16875
|
RECALCULATE_TO_PAY_DOWN: string;
|
|
16871
16876
|
RECEIPT: string;
|
|
16872
16877
|
RECEIPT_DETAILS: string;
|
|
@@ -18534,6 +18539,7 @@ export declare class Dictionaries {
|
|
|
18534
18539
|
UPDATE_ARTICLE_PRICE: string;
|
|
18535
18540
|
UPDATE_CONTAINER: string;
|
|
18536
18541
|
UPDATE_DATE: string;
|
|
18542
|
+
UPDATE_LOCATION_INVENTORY: string;
|
|
18537
18543
|
UPDATE_SEARCH_INDEXES: string;
|
|
18538
18544
|
UPDATE_SINGLE_SEARCH_INDEX: string;
|
|
18539
18545
|
UPDATE_STOCK: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@colijnit/sharedcomponents",
|
|
3
|
-
"version": "257.1.
|
|
3
|
+
"version": "257.1.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"chart.js": "4.3.0",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"@colijnit/articleapi": ">=257.1.0",
|
|
13
13
|
"@colijnit/mainapi": ">=257.1.0",
|
|
14
14
|
"@colijnit/corecomponents_v12": ">=257.1.0",
|
|
15
|
-
"@colijnit/ioneconnector": ">=257.1.
|
|
15
|
+
"@colijnit/ioneconnector": ">=257.1.1",
|
|
16
16
|
"@colijnit/sharedapi": ">=1.0.20",
|
|
17
17
|
"@colijnit/relationapi": ">=1.0.14",
|
|
18
18
|
"pdf-lib": ">=1.17.1",
|