@colijnit/sharedcomponents 1.0.47 → 1.0.48
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 +228 -5
- package/bundles/colijnit-sharedcomponents.umd.js.map +1 -1
- package/colijnit-sharedcomponents.metadata.json +1 -1
- package/esm2015/lib/components/simple-tags/simple-tags.component.js +231 -0
- package/esm2015/lib/components/simple-tags/simple-tags.module.js +26 -0
- package/esm2015/lib/enum/icon.enum.js +5 -1
- package/esm2015/lib/model/icon-svg.js +6 -2
- package/esm2015/lib/service/shared-connector.service.js +32 -1
- package/esm2015/lib/service/shared.service.js +11 -1
- package/esm2015/public-api.js +3 -1
- package/fesm2015/colijnit-sharedcomponents.js +301 -3
- package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
- package/lib/components/screen-config-generator/style/_layout.scss +10 -4
- package/lib/components/simple-tags/simple-tags.component.d.ts +31 -0
- package/lib/components/simple-tags/simple-tags.module.d.ts +2 -0
- package/lib/components/simple-tags/style/_layout.scss +232 -0
- package/lib/components/simple-tags/style/_material-definition.scss +19 -0
- package/lib/components/simple-tags/style/_theme.scss +4 -0
- package/lib/components/simple-tags/style/material.scss +4 -0
- package/lib/enum/icon.enum.d.ts +5 -1
- package/lib/service/shared-connector.service.d.ts +4 -0
- package/lib/service/shared.service.d.ts +4 -0
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
|
@@ -20,11 +20,17 @@
|
|
|
20
20
|
background: #f6f6f6;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
margin-left:
|
|
23
|
+
.level2 {
|
|
24
|
+
margin-left: 10px;
|
|
25
25
|
}
|
|
26
|
-
|
|
27
|
-
margin-left:
|
|
26
|
+
.level3 {
|
|
27
|
+
margin-left: 20px;
|
|
28
|
+
}
|
|
29
|
+
.level4 {
|
|
30
|
+
margin-left: 30px;
|
|
31
|
+
}
|
|
32
|
+
.level5 {
|
|
33
|
+
margin-left: 40px;
|
|
28
34
|
}
|
|
29
35
|
}
|
|
30
36
|
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { EventEmitter } from "@angular/core";
|
|
2
|
+
import { IconCacheService } from "../../service/icon-cache.service";
|
|
3
|
+
import { Icon } from "../../enum/icon.enum";
|
|
4
|
+
import { CdkDragDrop } from "@angular/cdk/drag-drop";
|
|
5
|
+
import { SharedService } from "../../service/shared.service";
|
|
6
|
+
import { TagTreeItem } from "@colijnit/mainapi/build/model/tag-tree-item.bo";
|
|
7
|
+
export declare class SimpleTagsComponent {
|
|
8
|
+
iconCacheService: IconCacheService;
|
|
9
|
+
sharedService: SharedService;
|
|
10
|
+
readonly icon: typeof Icon;
|
|
11
|
+
set tags(tags: TagTreeItem[]);
|
|
12
|
+
set linkedTags(tags: TagTreeItem[]);
|
|
13
|
+
get linkedTags(): TagTreeItem[];
|
|
14
|
+
closeClick: EventEmitter<void>;
|
|
15
|
+
saveClick: EventEmitter<TagTreeItem[]>;
|
|
16
|
+
breadCrumbs: TagTreeItem[];
|
|
17
|
+
displayTags: TagTreeItem[];
|
|
18
|
+
searchString: string;
|
|
19
|
+
private _tags;
|
|
20
|
+
private _linkedTags;
|
|
21
|
+
showClass(): boolean;
|
|
22
|
+
constructor(iconCacheService: IconCacheService, sharedService: SharedService);
|
|
23
|
+
setRootDisplayTags(): void;
|
|
24
|
+
handleTagSelected(selectedTag: TagTreeItem): void;
|
|
25
|
+
handleCrumbClicked(tag: TagTreeItem, index: number): void;
|
|
26
|
+
handleAddTag(event: CdkDragDrop<TagTreeItem[], any>): void;
|
|
27
|
+
deleteLinkedTag(tag: TagTreeItem): void;
|
|
28
|
+
searchCollection(): void;
|
|
29
|
+
handleSaveTags(): void;
|
|
30
|
+
private _loadThumbnail;
|
|
31
|
+
}
|
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
@include export-module('cc-simple-tags-layout') {
|
|
2
|
+
.co-simple-tags {
|
|
3
|
+
|
|
4
|
+
.header-wrapper {
|
|
5
|
+
display: flex;
|
|
6
|
+
column-gap: $sc-co-simple-tags-header-column-gap;
|
|
7
|
+
align-items: center;
|
|
8
|
+
margin-bottom: $sc-co-simple-tags-header-margin-bottom;
|
|
9
|
+
.co-dialog-header-title {
|
|
10
|
+
margin: 0;
|
|
11
|
+
}
|
|
12
|
+
.co-icon {
|
|
13
|
+
width: $sc-co-simple-tags-header-icon-size;
|
|
14
|
+
height: $sc-co-simple-tags-header-icon-size;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.dialog-content-wrapper {
|
|
19
|
+
display: flex;
|
|
20
|
+
flex-direction: row;
|
|
21
|
+
width: 50vw;
|
|
22
|
+
height: 50vh;
|
|
23
|
+
column-gap: $sc-co-simple-tags-content-column-gap;
|
|
24
|
+
|
|
25
|
+
.collection-navigation {
|
|
26
|
+
width: $sc-co-simple-tags-navigation-width;
|
|
27
|
+
display: flex;
|
|
28
|
+
flex-direction: column;
|
|
29
|
+
row-gap: $sc-co-simple-tags-navigation-column-gap;
|
|
30
|
+
overflow-x: hidden;
|
|
31
|
+
padding-right: 3px;
|
|
32
|
+
|
|
33
|
+
.co-input-search {
|
|
34
|
+
display: block;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.breadcrumbs {
|
|
38
|
+
display: flex;
|
|
39
|
+
flex-direction: row;
|
|
40
|
+
align-items: center;
|
|
41
|
+
|
|
42
|
+
.co-icon {
|
|
43
|
+
cursor: pointer;
|
|
44
|
+
width: $sc-co-simple-tags-navigation-home-icon-size;
|
|
45
|
+
height: $sc-co-simple-tags-navigation-home-icon-size;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.crumbs {
|
|
49
|
+
display: flex;
|
|
50
|
+
overflow: hidden;
|
|
51
|
+
white-space: nowrap;
|
|
52
|
+
text-overflow: ellipsis;
|
|
53
|
+
|
|
54
|
+
.crumb {
|
|
55
|
+
cursor: pointer;
|
|
56
|
+
overflow: hidden;
|
|
57
|
+
white-space: nowrap;
|
|
58
|
+
text-overflow: ellipsis;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.spacer {
|
|
62
|
+
margin: 0 5px;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.collection-view {
|
|
68
|
+
display: flex;
|
|
69
|
+
flex-direction: column;
|
|
70
|
+
row-gap: $sc-co-simple-tags-navigation-collection-row-gap;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.linked-tags-view {
|
|
75
|
+
width: $sc-co-simple-tags-linked-tags-width;
|
|
76
|
+
display: flex;
|
|
77
|
+
flex-direction: column;
|
|
78
|
+
row-gap: $sc-co-simple-tags-linked-tags-row-gap;
|
|
79
|
+
|
|
80
|
+
.view-wrapper {
|
|
81
|
+
display: grid;
|
|
82
|
+
grid-template-columns: 50% 50%;
|
|
83
|
+
grid-auto-rows: $sc-co-simple-tags-linked-tags-tag-height;
|
|
84
|
+
column-gap: $sc-co-simple-tags-linked-tags-gap-size;
|
|
85
|
+
row-gap: $sc-co-simple-tags-linked-tags-gap-size;
|
|
86
|
+
width: calc(100% - #{$sc-co-simple-tags-linked-tags-gap-size});
|
|
87
|
+
height: 100%;
|
|
88
|
+
|
|
89
|
+
.collection-item {
|
|
90
|
+
visibility: hidden;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.collection-item {
|
|
96
|
+
border-radius: $sc-co-simple-tags-collection-item-border-radius;
|
|
97
|
+
padding: $sc-co-simple-tags-collection-item-padding;
|
|
98
|
+
border: $sc-co-simple-tags-collection-item-border;
|
|
99
|
+
display: flex;
|
|
100
|
+
cursor: pointer;
|
|
101
|
+
&:hover {
|
|
102
|
+
background-color: $sc-co-simple-tags-collection-item-background-color;
|
|
103
|
+
}
|
|
104
|
+
&.draggable {
|
|
105
|
+
cursor: move;
|
|
106
|
+
}
|
|
107
|
+
&.disabled {
|
|
108
|
+
background-color: $sc-co-simple-tags-collection-item-background-color;
|
|
109
|
+
cursor: default;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
span {
|
|
113
|
+
margin-left: 10px;
|
|
114
|
+
overflow: hidden;
|
|
115
|
+
white-space: nowrap;
|
|
116
|
+
text-overflow: ellipsis;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.co-icon {
|
|
120
|
+
width: $sc-co-simple-tags-collection-item-icon-size;
|
|
121
|
+
height: $sc-co-simple-tags-collection-item-icon-size;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.tag-item {
|
|
126
|
+
display: flex;
|
|
127
|
+
border: $sc-co-simple-tags-collection-item-border;
|
|
128
|
+
border-radius: $sc-co-simple-tags-collection-item-border-radius;
|
|
129
|
+
align-items: center;
|
|
130
|
+
justify-content: space-between;
|
|
131
|
+
overflow: hidden;
|
|
132
|
+
|
|
133
|
+
.thumbnail-description {
|
|
134
|
+
display: flex;
|
|
135
|
+
height: 100%;
|
|
136
|
+
align-items: center;
|
|
137
|
+
overflow: hidden;
|
|
138
|
+
|
|
139
|
+
.thumbnail-wrapper {
|
|
140
|
+
height: inherit;
|
|
141
|
+
|
|
142
|
+
img {
|
|
143
|
+
height: inherit;
|
|
144
|
+
padding: 5px;
|
|
145
|
+
border-radius: $sc-co-simple-tags-collection-item-border-radius;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.co-icon {
|
|
150
|
+
margin: 0 8px;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.description-wrapper {
|
|
154
|
+
display: flex;
|
|
155
|
+
flex-direction: column;
|
|
156
|
+
row-gap: 2px;
|
|
157
|
+
justify-content: center;
|
|
158
|
+
overflow: hidden;
|
|
159
|
+
|
|
160
|
+
.description {
|
|
161
|
+
font-weight: bold;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
span {
|
|
165
|
+
overflow: hidden;
|
|
166
|
+
white-space: nowrap;
|
|
167
|
+
text-overflow: ellipsis;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.delete-tag {
|
|
173
|
+
cursor: pointer;
|
|
174
|
+
margin: $sc-co-simple-tags-linked-tag-delete-icon-margin;
|
|
175
|
+
width: $sc-co-simple-tags-linked-tag-delete-icon-size;
|
|
176
|
+
height: $sc-co-simple-tags-linked-tag-delete-icon-size;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.commit-button-wrapper {
|
|
182
|
+
width: 100%;
|
|
183
|
+
display: flex;
|
|
184
|
+
justify-content: center;
|
|
185
|
+
column-gap: 4px;
|
|
186
|
+
|
|
187
|
+
co-button {
|
|
188
|
+
height: auto;
|
|
189
|
+
width: auto;
|
|
190
|
+
background-color: #f5f5fc;
|
|
191
|
+
border-bottom: 2px solid #DCE4EA;
|
|
192
|
+
cursor: pointer;
|
|
193
|
+
|
|
194
|
+
&:not(.circle) {
|
|
195
|
+
padding: 10px;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
&.cancel-button {
|
|
199
|
+
padding: 5px;
|
|
200
|
+
co-icon {
|
|
201
|
+
width: 15px;
|
|
202
|
+
height: 15px;
|
|
203
|
+
svg { // for fontawesome icons
|
|
204
|
+
fill: #475060;
|
|
205
|
+
}
|
|
206
|
+
& [fill] { // for own icons
|
|
207
|
+
fill: #475060;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
co-icon {
|
|
214
|
+
width: 20px;
|
|
215
|
+
height: 20px;
|
|
216
|
+
svg { // for fontawesome icons
|
|
217
|
+
fill: #1A73E8;
|
|
218
|
+
}
|
|
219
|
+
& [fill] { // for own icons
|
|
220
|
+
fill: #1A73E8;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
.disabled {
|
|
225
|
+
cursor: default;
|
|
226
|
+
opacity: 0.6;
|
|
227
|
+
}
|
|
228
|
+
.clickable {
|
|
229
|
+
cursor: pointer;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
$sc-co-simple-tags-header-column-gap: 10px !default;
|
|
2
|
+
$sc-co-simple-tags-header-margin-bottom: 25px !default;
|
|
3
|
+
$sc-co-simple-tags-header-icon-size: 20px !default;
|
|
4
|
+
$sc-co-simple-tags-content-column-gap: 40px !default;
|
|
5
|
+
$sc-co-simple-tags-navigation-column-gap: 15px !default;
|
|
6
|
+
$sc-co-simple-tags-navigation-width: 30% !default;
|
|
7
|
+
$sc-co-simple-tags-navigation-home-icon-size: 15px !default;
|
|
8
|
+
$sc-co-simple-tags-navigation-collection-row-gap: 4px !default;
|
|
9
|
+
$sc-co-simple-tags-linked-tags-width: 70% !default;
|
|
10
|
+
$sc-co-simple-tags-linked-tags-row-gap: 15px !default;
|
|
11
|
+
$sc-co-simple-tags-linked-tags-tag-height: 50px !default;
|
|
12
|
+
$sc-co-simple-tags-linked-tags-gap-size: 10px !default;
|
|
13
|
+
$sc-co-simple-tags-collection-item-border-radius: 7px !default;
|
|
14
|
+
$sc-co-simple-tags-collection-item-padding: 6px !default;
|
|
15
|
+
$sc-co-simple-tags-collection-item-border: 1px solid #dcdcdc !default;
|
|
16
|
+
$sc-co-simple-tags-collection-item-background-color: #f8f8f8 !default;
|
|
17
|
+
$sc-co-simple-tags-collection-item-icon-size: 15px !default;
|
|
18
|
+
$sc-co-simple-tags-linked-tag-delete-icon-size: 15px !default;
|
|
19
|
+
$sc-co-simple-tags-linked-tag-delete-icon-margin: 10px !default;
|
package/lib/enum/icon.enum.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export declare enum Icon {
|
|
|
8
8
|
ArrowPointRight = "arrow_point_right",
|
|
9
9
|
AtSolid = "at_solid",
|
|
10
10
|
BringForwardRegular = "bring_forward_regular",
|
|
11
|
+
CheckDuotone = "check_duotone",
|
|
11
12
|
CheckRound = "check_round",
|
|
12
13
|
DeleteLeftRegular = "delete_left_regular",
|
|
13
14
|
DeliveryTruck = "delivery_truck",
|
|
@@ -19,6 +20,7 @@ export declare enum Icon {
|
|
|
19
20
|
FilePdfRegular = "file_pdf_regular",
|
|
20
21
|
FilePdfSolid = "file_pdf_solid",
|
|
21
22
|
FileSignatureRegular = "file_signature_regular",
|
|
23
|
+
HouseBlankRegular = "house_blank_regular",
|
|
22
24
|
Lock = "lock",
|
|
23
25
|
MessageSmsRegular = "message_sms_regular",
|
|
24
26
|
MessageSmsSolid = "message_sms_solid",
|
|
@@ -27,5 +29,7 @@ export declare enum Icon {
|
|
|
27
29
|
PrintRegular = "print_regular",
|
|
28
30
|
PrintSolid = "print_solid",
|
|
29
31
|
SignatureField = "signature_field",
|
|
30
|
-
|
|
32
|
+
TagRegular = "tag_regular",
|
|
33
|
+
Xml = "xml",
|
|
34
|
+
XSolid = "x_solid"
|
|
31
35
|
}
|
|
@@ -17,6 +17,8 @@ import { Printer } from '@colijnit/mainapi/build/model/printer.bo';
|
|
|
17
17
|
import { DataServiceResponseData } from '@colijnit/ioneconnector/build/model/data-service-response-data';
|
|
18
18
|
import { SendMethod } from '@colijnit/mainapi/build/model/send-method.bo';
|
|
19
19
|
import { StockForecast } from "@colijnit/articleapi/build/model/stock-forecast.bo";
|
|
20
|
+
import { TagCategory } from "@colijnit/mainapi/build/enum/tab-category.enum";
|
|
21
|
+
import { TagTreeItem } from "@colijnit/mainapi/build/model/tag-tree-item.bo";
|
|
20
22
|
export declare class SharedConnectorService {
|
|
21
23
|
private _optionsService;
|
|
22
24
|
articleConnector: Articles;
|
|
@@ -29,6 +31,8 @@ export declare class SharedConnectorService {
|
|
|
29
31
|
getSendMethods(): Promise<SendMethod[]>;
|
|
30
32
|
getScreenConfigTree(): Promise<any>;
|
|
31
33
|
getScreenConfigSubRubric(parentRubricId: number, configId: number, fixedKey: string): Promise<any>;
|
|
34
|
+
getTagsFullTree(category: TagCategory, includeTags: boolean): Promise<TagTreeItem[]>;
|
|
35
|
+
getDocumentContent(id: number, thumbnail?: boolean): Promise<string>;
|
|
32
36
|
getStockHistory(request: GetStockHistoryRequest): Promise<StockHistoryBo[]>;
|
|
33
37
|
getStockInformation(data: ArticleStock): Promise<ArticleStockBo[]>;
|
|
34
38
|
getArtStockStatus(goodId: number, branchNo?: string, requestedAmount?: number, warehouseId?: number): Promise<number>;
|
|
@@ -2,6 +2,8 @@ import { SharedConnectorService } from "./shared-connector.service";
|
|
|
2
2
|
import { OptionsService } from "./options.service";
|
|
3
3
|
import { Printer } from '@colijnit/mainapi/build/model/printer.bo';
|
|
4
4
|
import { SendMethod } from '@colijnit/mainapi/build/model/send-method.bo';
|
|
5
|
+
import { TagCategory } from "@colijnit/mainapi/build/enum/tab-category.enum";
|
|
6
|
+
import { TagTreeItem } from "@colijnit/mainapi/build/model/tag-tree-item.bo";
|
|
5
7
|
export declare class SharedService {
|
|
6
8
|
protected options: OptionsService;
|
|
7
9
|
protected connector: SharedConnectorService;
|
|
@@ -11,4 +13,6 @@ export declare class SharedService {
|
|
|
11
13
|
getSendMethods(): Promise<SendMethod[]>;
|
|
12
14
|
getScreenConfigTree(): Promise<any>;
|
|
13
15
|
getScreenConfigSubRubric(parentRubricId: number, configId: number, fixedKey: string): Promise<any>;
|
|
16
|
+
getTagsFullTree(category: TagCategory, includeTags?: boolean): Promise<TagTreeItem[]>;
|
|
17
|
+
getDocumentContent(docId: number, thumbnail?: boolean): Promise<string>;
|
|
14
18
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -15,4 +15,6 @@ export * from './lib/components/statusbar/statusbar.component';
|
|
|
15
15
|
export * from './lib/components/statusbar/statusbar.module';
|
|
16
16
|
export * from './lib/components/date-planning/date-planning.component';
|
|
17
17
|
export * from './lib/components/date-planning/date-planning.module';
|
|
18
|
+
export * from './lib/components/simple-tags/simple-tags.component';
|
|
19
|
+
export * from './lib/components/simple-tags/simple-tags.module';
|
|
18
20
|
export * from './lib/service/shared.service';
|