@colijnit/sharedcomponents 1.0.5 → 1.0.8
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 +275 -36
- package/bundles/colijnit-sharedcomponents.umd.js.map +1 -1
- package/colijnit-sharedcomponents.d.ts +5 -4
- package/colijnit-sharedcomponents.metadata.json +1 -1
- package/esm2015/colijnit-sharedcomponents.js +6 -5
- package/esm2015/lib/components/docsign/docsign.component.js +2 -2
- package/esm2015/lib/components/send-method-dialog/enums/send-option.js +8 -0
- package/esm2015/lib/components/send-method-dialog/send-method-dialog.component.js +203 -0
- package/esm2015/lib/components/send-method-dialog/send-method-dialog.module.js +26 -0
- package/esm2015/lib/components/stock/stock-information/stock-information.component.js +1 -4
- package/esm2015/lib/components/stock/stock-information-grid/stock-information-grid.component.js +1 -2
- package/esm2015/lib/components/stock/stock-transfer/stock-transfer.component.js +5 -5
- package/esm2015/lib/components/stock/stock.component.js +1 -8
- package/esm2015/lib/components/stock/stock.module.js +4 -2
- package/esm2015/lib/enum/icon.enum.js +23 -0
- package/esm2015/lib/model/icon-svg.js +22 -0
- package/esm2015/lib/service/icon-cache.service.js +51 -0
- package/esm2015/lib/service/ione-connector-adapter.service.js +22 -3
- package/esm2015/lib/service/stock.service.js +6 -1
- package/esm2015/public-api.js +3 -1
- package/fesm2015/colijnit-sharedcomponents.js +355 -20
- package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
- package/lib/components/send-method-dialog/enums/send-option.d.ts +6 -0
- package/lib/components/send-method-dialog/send-method-dialog.component.d.ts +37 -0
- package/lib/components/send-method-dialog/send-method-dialog.module.d.ts +2 -0
- package/lib/components/send-method-dialog/style/_layout.scss +186 -0
- package/lib/components/send-method-dialog/style/_material-definition.scss +1 -0
- package/lib/components/send-method-dialog/style/_theme.scss +7 -0
- package/lib/components/send-method-dialog/style/material.scss +4 -0
- package/lib/components/stock/stock-information/stock-information.component.d.ts +1 -3
- package/lib/components/stock/stock-transfer/stock-transfer.component.d.ts +1 -0
- package/lib/components/stock/stock.component.d.ts +0 -1
- package/lib/enum/icon.enum.d.ts +21 -0
- package/lib/model/icon-svg.d.ts +4 -0
- package/lib/service/icon-cache.service.d.ts +18 -0
- package/lib/service/ione-connector-adapter.service.d.ts +4 -0
- package/lib/service/stock.service.d.ts +2 -0
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
- package/colijnit-sharedcomponents-1.0.5.tgz +0 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { EventEmitter } from "@angular/core";
|
|
2
|
+
import { Icon } from "../../enum/icon.enum";
|
|
3
|
+
import { IconCacheService } from "../../service/icon-cache.service";
|
|
4
|
+
import { SendOption } from "./enums/send-option";
|
|
5
|
+
import { Printer } from "@colijnit/sharedapi/build/model/printer.bo";
|
|
6
|
+
import { StockService } from "../../service/stock.service";
|
|
7
|
+
export declare class SendMethodDialogComponent {
|
|
8
|
+
iconCacheService: IconCacheService;
|
|
9
|
+
private _stockService;
|
|
10
|
+
readonly icons: typeof Icon;
|
|
11
|
+
readonly sendOption: typeof SendOption;
|
|
12
|
+
sendOptions: {
|
|
13
|
+
option: SendOption;
|
|
14
|
+
iconName: Icon;
|
|
15
|
+
}[];
|
|
16
|
+
activeSendOption: SendOption;
|
|
17
|
+
amountToPrint: number;
|
|
18
|
+
showStandardPrinterOptions: boolean;
|
|
19
|
+
showPrinterSelections: boolean;
|
|
20
|
+
showExitButton: boolean;
|
|
21
|
+
defaultPrinter: string;
|
|
22
|
+
emails: any[];
|
|
23
|
+
models: boolean[];
|
|
24
|
+
layouts: any[];
|
|
25
|
+
selectedLayout: 'Layout 1';
|
|
26
|
+
showDialog: boolean;
|
|
27
|
+
headerTitle: string;
|
|
28
|
+
printerList: Printer[];
|
|
29
|
+
startSignatureClicked: EventEmitter<any>;
|
|
30
|
+
printButtonClicked: EventEmitter<any>;
|
|
31
|
+
showClass(): boolean;
|
|
32
|
+
constructor(iconCacheService: IconCacheService, _stockService: StockService);
|
|
33
|
+
closeDialogClick(): void;
|
|
34
|
+
handleSignatureStart(): void;
|
|
35
|
+
handlePrintClicked(): void;
|
|
36
|
+
togglePrinterSelection(): void;
|
|
37
|
+
}
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
@import "../../../style/mixin";
|
|
2
|
+
@import "../../../style/variables";
|
|
3
|
+
|
|
4
|
+
@include export-module('ione-send-method-dialog-layout') {
|
|
5
|
+
.ione-send-method-dialog {
|
|
6
|
+
.send-method-dialog-wrapper {
|
|
7
|
+
font-family: $sc-font-family;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.dialog-content-wrapper {
|
|
11
|
+
padding: 0 20px 0 20px;
|
|
12
|
+
min-width: 350px;
|
|
13
|
+
min-height: 415px;
|
|
14
|
+
overflow: hidden;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.send-options-wrapper {
|
|
18
|
+
display: flex;
|
|
19
|
+
justify-content: center;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.custom-button-wrapper {
|
|
23
|
+
width: 45px;
|
|
24
|
+
height: 45px;
|
|
25
|
+
background-color: #f5f5fa;
|
|
26
|
+
padding: 5px;
|
|
27
|
+
margin: 5px;
|
|
28
|
+
border-radius: 10px;
|
|
29
|
+
cursor: pointer;
|
|
30
|
+
|
|
31
|
+
co-icon {
|
|
32
|
+
width: 100%;
|
|
33
|
+
height: 100%;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.selected-option {
|
|
38
|
+
background-color: #3e7eff;
|
|
39
|
+
|
|
40
|
+
co-icon svg {
|
|
41
|
+
path {
|
|
42
|
+
fill: white
|
|
43
|
+
}
|
|
44
|
+
rect {
|
|
45
|
+
fill: white
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.email-option-content {
|
|
51
|
+
display: flex;
|
|
52
|
+
flex-direction: column;
|
|
53
|
+
margin: 10px 0 10px;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.emails-container {
|
|
57
|
+
display: flex;
|
|
58
|
+
flex-direction: column;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.lov-wrapper {
|
|
62
|
+
margin: 15px 0 10px;
|
|
63
|
+
border: 1px solid #f6f6f8;
|
|
64
|
+
border-radius: 10px;
|
|
65
|
+
padding: 10px;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.input-checkbox-wrapper {
|
|
69
|
+
padding: 5px;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.input-number-wrapper {
|
|
73
|
+
width: 85px;
|
|
74
|
+
height: 52px;
|
|
75
|
+
margin: 5px;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.print-footer-wrapper {
|
|
79
|
+
display: flex;
|
|
80
|
+
justify-content: center;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.print-button {
|
|
84
|
+
display: flex;
|
|
85
|
+
align-items: center;
|
|
86
|
+
justify-content: center;
|
|
87
|
+
width: 120px;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.number-picker {
|
|
91
|
+
height: 52px;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.signature-button-wrapper {
|
|
95
|
+
display: flex;
|
|
96
|
+
justify-content: center;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.signature-button {
|
|
100
|
+
width: 75px;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.standard-printer-wrapper {
|
|
104
|
+
width: 100%;
|
|
105
|
+
margin: 15px 0 15px;
|
|
106
|
+
display: flex;
|
|
107
|
+
flex-direction: column;
|
|
108
|
+
justify-content: center;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.standard-printer-link {
|
|
112
|
+
display: flex;
|
|
113
|
+
align-items: center;
|
|
114
|
+
cursor: pointer;
|
|
115
|
+
|
|
116
|
+
co-icon svg {
|
|
117
|
+
polygon {
|
|
118
|
+
fill: #3e7eff
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.arrow-icon {
|
|
124
|
+
width: 30px;
|
|
125
|
+
height: 40px;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.standard-printer-message {
|
|
129
|
+
font-family: $sc-font-family;
|
|
130
|
+
font-weight: bold;
|
|
131
|
+
color: #3e7eff;
|
|
132
|
+
font-size: 0.9em;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.standard-printer-selections {
|
|
136
|
+
display: flex;
|
|
137
|
+
flex-direction: column;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.printer-content-container {
|
|
141
|
+
display: flex;
|
|
142
|
+
flex-direction: column;
|
|
143
|
+
align-items: center;
|
|
144
|
+
padding-top: 20px;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.selected-printer-wrapper {
|
|
148
|
+
display: flex;
|
|
149
|
+
align-items: center;
|
|
150
|
+
justify-content: space-between;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.printer-option-list-item {
|
|
154
|
+
display: flex;
|
|
155
|
+
align-items: center;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.printer-details {
|
|
159
|
+
display: flex;
|
|
160
|
+
flex-direction: column;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.printer-name {
|
|
164
|
+
font-weight: bold;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.printer-icon {
|
|
168
|
+
height: 50px;
|
|
169
|
+
width: 50px;
|
|
170
|
+
margin-right: 10px;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.select-printer-arrow {
|
|
174
|
+
width: 25px;
|
|
175
|
+
height: 25px;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.clickable {
|
|
179
|
+
cursor: pointer;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.selection {
|
|
183
|
+
padding: 10px;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
$cc-co-input-number-picker-border-color: #757575;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
export declare class StockInformationComponent implements OnInit {
|
|
1
|
+
export declare class StockInformationComponent {
|
|
3
2
|
stockStatus: string;
|
|
4
3
|
image: string;
|
|
5
4
|
show: boolean;
|
|
6
5
|
hideOrShowLocationTab: boolean;
|
|
7
6
|
article: any;
|
|
8
7
|
constructor();
|
|
9
|
-
ngOnInit(): void;
|
|
10
8
|
}
|
|
@@ -11,6 +11,7 @@ export declare class StockTransferComponent {
|
|
|
11
11
|
handleCancelClicked: EventEmitter<any>;
|
|
12
12
|
handleStickerClicked: EventEmitter<any>;
|
|
13
13
|
allWarehousesDropdownFields: CoDropDownListFields;
|
|
14
|
+
showSendMethodDialog: boolean;
|
|
14
15
|
constructor(_stockService: StockService);
|
|
15
16
|
handleOkClick(): void;
|
|
16
17
|
handleCancelClick(): void;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/** AUTO GENERATED FILE. DO NOT CHANGE.. OR YOU WILL SUFFER THE CONSEQUENCES OF YOUR ACTIONS **/
|
|
2
|
+
export declare enum Icon {
|
|
3
|
+
ArrowFatRight = "arrow_fat_right",
|
|
4
|
+
ArrowPointDown = "arrow_point_down",
|
|
5
|
+
ArrowPointLeft = "arrow_point_left",
|
|
6
|
+
ArrowPointRight = "arrow_point_right",
|
|
7
|
+
CalendarDay = "calendar_day",
|
|
8
|
+
Cancel = "cancel",
|
|
9
|
+
DeliveryTruck = "delivery_truck",
|
|
10
|
+
EditPencil = "edit_pencil",
|
|
11
|
+
Email = "email",
|
|
12
|
+
Pdf = "pdf",
|
|
13
|
+
PlusRound = "plus_round",
|
|
14
|
+
Print = "print",
|
|
15
|
+
SignatureField = "signature_field",
|
|
16
|
+
Tag = "tag",
|
|
17
|
+
ThickLines = "thick_lines",
|
|
18
|
+
ThinLines = "thin_lines",
|
|
19
|
+
Txt = "txt",
|
|
20
|
+
Xml = "xml"
|
|
21
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DomSanitizer, SafeHtml } from "@angular/platform-browser";
|
|
2
|
+
import { Icon } from "../enum/icon.enum";
|
|
3
|
+
export declare class IconCacheService {
|
|
4
|
+
private _sanitizer;
|
|
5
|
+
/**
|
|
6
|
+
* All the icons as a large JSON object, from the all-icons.json file.
|
|
7
|
+
* The object has property keys that are the icon names, and property values with the data string of the actual svg icon.
|
|
8
|
+
*/
|
|
9
|
+
get iconCache(): {
|
|
10
|
+
[iconName: string]: SafeHtml;
|
|
11
|
+
};
|
|
12
|
+
private _iconCache;
|
|
13
|
+
constructor(_sanitizer: DomSanitizer);
|
|
14
|
+
getIcon(iconName: Icon): SafeHtml;
|
|
15
|
+
getIconAsBase64(iconName: Icon): SafeHtml;
|
|
16
|
+
getRawIcon(iconName: Icon): string;
|
|
17
|
+
setIconCache(): void;
|
|
18
|
+
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { Articles } from "@colijnit/articleapi/build/articles";
|
|
2
|
+
import { Sharedapi } from "@colijnit/sharedapi/build/sharedapi";
|
|
3
|
+
import { Printer } from "@colijnit/sharedapi/build/model/printer.bo";
|
|
2
4
|
import { ArticleExtended } from "@colijnit/articleapi/build/model/article-extended.bo";
|
|
3
5
|
import { PrintStockStickers } from "@colijnit/articleapi/build/model/print-stock-stickers";
|
|
4
6
|
import { ArticleFlat } from "@colijnit/articleapi/build/model/article-flat.bo";
|
|
@@ -6,10 +8,12 @@ import { ArticlesPublic } from "@colijnit/articleapi/build/articles-public";
|
|
|
6
8
|
export declare class IoneConnectorAdapterService {
|
|
7
9
|
options: any;
|
|
8
10
|
connector: Articles;
|
|
11
|
+
sharedConnector: Sharedapi;
|
|
9
12
|
private _boFactory;
|
|
10
13
|
constructor();
|
|
11
14
|
connect(options: any): Promise<void>;
|
|
12
15
|
disconnect(): Promise<void>;
|
|
16
|
+
getAllPrinters(showAll?: boolean): Promise<Printer[]>;
|
|
13
17
|
getPrintStockStickers(request: PrintStockStickers): Promise<PrintStockStickers>;
|
|
14
18
|
getArticleFullObject(goodId: number): Promise<ArticleExtended>;
|
|
15
19
|
getArticleFlatObject(goodId: number): Promise<ArticleFlat>;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { IoneConnectorAdapterService } from "./ione-connector-adapter.service";
|
|
2
2
|
import { PrintStockStickers } from "@colijnit/articleapi/build/model/print-stock-stickers";
|
|
3
3
|
import { ArticleFlat } from "@colijnit/articleapi/build/model/article-flat.bo";
|
|
4
|
+
import { Printer } from "@colijnit/sharedapi/build/model/printer.bo";
|
|
4
5
|
export declare class StockService {
|
|
5
6
|
private _connector;
|
|
6
7
|
stockStickers: PrintStockStickers;
|
|
7
8
|
constructor(_connector: IoneConnectorAdapterService);
|
|
8
9
|
connectConnector(options: any): void;
|
|
9
10
|
getPrintStockStickers(data: PrintStockStickers): Promise<void>;
|
|
11
|
+
getAllPrinters(showAll?: boolean): Promise<Printer[]>;
|
|
10
12
|
loadStockLocations(goodId: number): Promise<ArticleFlat>;
|
|
11
13
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -2,3 +2,5 @@ export * from './lib/components/docsign/docsign.component';
|
|
|
2
2
|
export * from './lib/components/docsign/docsign.module';
|
|
3
3
|
export * from './lib/components/stock/stock.component';
|
|
4
4
|
export * from './lib/components/stock/stock.module';
|
|
5
|
+
export * from './lib/components/send-method-dialog/send-method-dialog.component';
|
|
6
|
+
export * from './lib/components/send-method-dialog/send-method-dialog.module';
|
|
Binary file
|