@colijnit/sharedcomponents 1.0.46 → 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.
Files changed (35) hide show
  1. package/bundles/colijnit-sharedcomponents.umd.js +292 -8
  2. package/bundles/colijnit-sharedcomponents.umd.js.map +1 -1
  3. package/colijnit-sharedcomponents.metadata.json +1 -1
  4. package/esm2015/lib/components/key-pad/key-pad.component.js +18 -16
  5. package/esm2015/lib/components/key-pad/key-pad.module.js +4 -3
  6. package/esm2015/lib/components/simple-tags/simple-tags.component.js +231 -0
  7. package/esm2015/lib/components/simple-tags/simple-tags.module.js +26 -0
  8. package/esm2015/lib/enum/icon.enum.js +5 -1
  9. package/esm2015/lib/model/icon-svg.js +6 -2
  10. package/esm2015/lib/service/shared-connector.service.js +64 -1
  11. package/esm2015/lib/service/shared.service.js +21 -1
  12. package/esm2015/public-api.js +3 -1
  13. package/fesm2015/colijnit-sharedcomponents.js +362 -19
  14. package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
  15. package/lib/components/key-pad/style/_layout.scss +56 -1
  16. package/lib/components/key-pad/style/_material-definition.scss +4 -2
  17. package/lib/components/screen-config-generator/style/_layout.scss +31 -0
  18. package/lib/components/simple-tags/simple-tags.component.d.ts +31 -0
  19. package/lib/components/simple-tags/simple-tags.module.d.ts +2 -0
  20. package/lib/components/simple-tags/style/_layout.scss +232 -0
  21. package/lib/components/simple-tags/style/_material-definition.scss +19 -0
  22. package/lib/components/simple-tags/style/_theme.scss +4 -0
  23. package/lib/components/simple-tags/style/material.scss +4 -0
  24. package/lib/enum/icon.enum.d.ts +5 -1
  25. package/lib/service/shared-connector.service.d.ts +6 -0
  26. package/lib/service/shared.service.d.ts +6 -0
  27. package/package.json +2 -2
  28. package/public-api.d.ts +2 -0
  29. package/3rdpartylicenses.txt +0 -1112
  30. package/favicon.ico +0 -0
  31. package/index.html +0 -12
  32. package/main.9d48e64dce1f453fb5e6.js +0 -1
  33. package/polyfills.4a44032b137d291298c3.js +0 -1
  34. package/runtime.8aac21847ed3d3829cca.js +0 -1
  35. package/styles.ba023a0306f438960465.css +0 -1
@@ -5,32 +5,76 @@
5
5
  font-family: $sc-key-pad-font-family;
6
6
  font-size: $sc-key-pad-font-size;
7
7
  display: flex;
8
+ width: 100%;
9
+ aspect-ratio: 1/1;
8
10
  .key-pad-wrapper {
9
11
  display: flex;
12
+ width: 100%;
10
13
  flex-direction: column;
11
14
  row-gap: $sc-key-pad-button-gap;
12
15
  padding: $sc-key-pad-button-gap;
13
16
  border-radius: $sc-key-pad-border-radius;
14
17
  }
15
18
  .key-pad-model-wrapper {
19
+ position: relative;
16
20
  font-family: $sc-font-family-digital;
17
- font-size: $sc-key-pad-model-font-size;
21
+ //font-size: $sc-key-pad-model-font-size;
18
22
  display: flex;
23
+ flex-basis: 10%;
19
24
  justify-content: flex-end;
20
25
  padding: $sc-key-pad-model-padding;
21
26
  box-shadow: inset 0px 0px 3px 1px darken($sc-key-pad-button-background-color, 30%);
22
27
  }
28
+ .co-scalable-text {
29
+ display: flex;
30
+ width: 100%;
31
+ justify-content: flex-end;
32
+ }
23
33
  .key-pad-model {
24
34
  user-select: none;
35
+ pointer-events: none;
36
+ display: block;
37
+ position: absolute;
38
+ width: 100%;
39
+ top: 50%;
40
+ transform: translateY(-50%);
41
+ //right: 10%;
42
+ //transform: translate(50%, -50%);
43
+ //foreignObject {
44
+ // overflow: visible;
45
+ //}
46
+ svg {
47
+ position: relative;
48
+ width: 100%;
49
+ }
50
+ .text {
51
+ font-size: $sc-key-pad-model-font-size;
52
+ font-weight: bold;
53
+ /* display: flex; */
54
+ /* align-items: center; */
55
+ /* justify-content: flex-end; */
56
+ /* align-self: auto; */
57
+ position: absolute;
58
+ top: 50%;
59
+ right: 0;
60
+ transform: translateY(-50%);
61
+ }
62
+ }
63
+ .key-pad-button-flex-wrapper {
64
+ display: flex;
65
+ flex-basis: 100%;
25
66
  }
26
67
  .key-pad-button-wrapper {
27
68
  display: grid;
69
+ height: 100%;
70
+ width: 100%;
28
71
  grid-template-columns: $sc-key-pad-button-size $sc-key-pad-button-size $sc-key-pad-button-size $sc-key-pad-button-size;
29
72
  grid-template-rows: $sc-key-pad-button-size $sc-key-pad-button-size $sc-key-pad-button-size $sc-key-pad-button-size;
30
73
  row-gap: $sc-key-pad-button-gap;
31
74
  column-gap: $sc-key-pad-button-gap;
32
75
  }
33
76
  .key-pad-button {
77
+ position: relative;
34
78
  display: flex;
35
79
  align-items: center;
36
80
  justify-content: center;
@@ -41,6 +85,17 @@
41
85
  width: 45%;
42
86
  height: 45%;
43
87
  }
88
+ .key-pad-button-text {
89
+ position: absolute;
90
+ }
91
+ .text {
92
+ display: flex;
93
+ //width: 100%;
94
+ height: 100%;
95
+ align-items: center;
96
+ justify-content: center;
97
+ font-size: $sc-key-pad-button-font-size;
98
+ }
44
99
  }
45
100
  .button-7 {
46
101
  grid-column: 1 / 1;
@@ -3,7 +3,7 @@ $sc-key-pad-model-font-family: $sc-font-family-digital !default;
3
3
  $sc-key-pad-font-size: $sc-font-size !default;
4
4
  $sc-key-pad-border-radius: 5px !default;
5
5
 
6
- $sc-key-pad-button-size: 40px !default;
6
+ $sc-key-pad-button-size: 4fr !default;
7
7
  $sc-key-pad-button-gap: 10px !default;
8
8
  $sc-key-pad-button-border-radius: 5px !default;
9
9
 
@@ -11,7 +11,9 @@ $sc-key-pad-background-color: #d8d8d8 !default;
11
11
  $sc-key-pad-button-background-color: #555555 !default;
12
12
  $sc-key-pad-button-font-color: white !default;
13
13
 
14
- $sc-key-pad-model-font-size: 30px !default;
14
+ $sc-key-pad-model-font-size: 12px !default;
15
15
  $sc-key-pad-model-padding: 10px !default;
16
16
  $sc-key-pad-model-font-color-positive: #00dc00 !default;
17
17
  $sc-key-pad-model-font-color-negative: red !default;
18
+
19
+ $sc-key-pad-button-font-size: 20px !default;
@@ -3,6 +3,37 @@
3
3
  display: flex;
4
4
  overflow: auto;
5
5
  height: 93vh;
6
+ column-gap: 20px;
7
+
8
+ .tree-wrapper {
9
+
10
+ .tree-entry {
11
+ display: flex;
12
+ flex-direction: column;
13
+
14
+ span {
15
+ padding: 7px;
16
+ border: 1px solid #dddddd;
17
+ border-radius: 5px;
18
+ margin-bottom: 6px;
19
+ cursor: pointer;
20
+ background: #f6f6f6;
21
+ }
22
+
23
+ .level2 {
24
+ margin-left: 10px;
25
+ }
26
+ .level3 {
27
+ margin-left: 20px;
28
+ }
29
+ .level4 {
30
+ margin-left: 30px;
31
+ }
32
+ .level5 {
33
+ margin-left: 40px;
34
+ }
35
+ }
36
+ }
6
37
 
7
38
  .category-wrapper {
8
39
  display: flex;
@@ -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,2 @@
1
+ export declare class SimpleTagsModule {
2
+ }
@@ -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;
@@ -0,0 +1,4 @@
1
+ @include export-module('cc-simple-tags-theme') {
2
+ .co-simple-tags {
3
+ }
4
+ }
@@ -0,0 +1,4 @@
1
+ @import "../../../style/mixin";
2
+ @import "./_material-definition";
3
+ @import "./_layout";
4
+ @import "./_theme";
@@ -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
- Xml = "xml"
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;
@@ -27,6 +29,10 @@ export declare class SharedConnectorService {
27
29
  connect(): Promise<void>;
28
30
  getAllPrinters(): Promise<Printer[]>;
29
31
  getSendMethods(): Promise<SendMethod[]>;
32
+ getScreenConfigTree(): Promise<any>;
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>;
30
36
  getStockHistory(request: GetStockHistoryRequest): Promise<StockHistoryBo[]>;
31
37
  getStockInformation(data: ArticleStock): Promise<ArticleStockBo[]>;
32
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;
@@ -9,4 +11,8 @@ export declare class SharedService {
9
11
  init(options: any): Promise<void>;
10
12
  getAllPrinters(): Promise<Printer[]>;
11
13
  getSendMethods(): Promise<SendMethod[]>;
14
+ getScreenConfigTree(): Promise<any>;
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>;
12
18
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colijnit/sharedcomponents",
3
- "version": "1.0.46",
3
+ "version": "1.0.48",
4
4
  "private": false,
5
5
  "dependencies": {
6
6
  "chart.js": "4.3.0",
@@ -11,7 +11,7 @@
11
11
  "@angular/core": ">=12.2.0",
12
12
  "@colijnit/articleapi": ">=1.0.17",
13
13
  "@colijnit/mainapi": ">=1.0.15",
14
- "@colijnit/corecomponents_v12": ">=12.1.0",
14
+ "@colijnit/corecomponents_v12": ">=12.1.4",
15
15
  "@colijnit/ioneconnector": ">=2.1.15",
16
16
  "@colijnit/sharedapi": ">=1.0.11",
17
17
  "pdf-lib": ">=1.17.1",
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';