@colijnit/sharedcomponents 257.1.5 → 257.1.7

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 (38) hide show
  1. package/bundles/colijnit-sharedcomponents.umd.js +387 -245
  2. package/bundles/colijnit-sharedcomponents.umd.js.map +1 -1
  3. package/colijnit-sharedcomponents.d.ts +130 -129
  4. package/colijnit-sharedcomponents.metadata.json +1 -1
  5. package/esm2015/colijnit-sharedcomponents.js +131 -130
  6. package/esm2015/lib/components/stock/components/allocation-stock-history/allocation-stock-history.component.js +46 -25
  7. package/esm2015/lib/components/stock/components/order-tab/order-tab.component.js +50 -15
  8. package/esm2015/lib/components/stock/components/stock-location/components/stock-location-popup/stock-location-popup.component.js +22 -24
  9. package/esm2015/lib/components/stock/components/stock-location/stock-location.component.js +27 -20
  10. package/esm2015/lib/components/stock/components/stock-tab/stock-tab.component.js +3 -2
  11. package/esm2015/lib/components/stock/service/stock-module-screen-config.service.js +27 -0
  12. package/esm2015/lib/components/stock/stock-information/stock-information.component.js +30 -2
  13. package/esm2015/lib/components/stock/stock-tabs/stock-tabs.component.js +5 -5
  14. package/esm2015/lib/components/stock/stock.component.js +20 -6
  15. package/esm2015/lib/components/stock/stock.module.js +3 -1
  16. package/esm2015/lib/enum/icon.enum.js +4 -1
  17. package/esm2015/lib/model/icon-svg.js +4 -1
  18. package/esm2015/lib/res/dictionary/dictionaries.js +3 -3
  19. package/esm2015/lib/service/shared-connector.service.js +2 -2
  20. package/esm2015/lib/service/shared-event.service.js +15 -0
  21. package/esm2015/public-api.js +2 -1
  22. package/fesm2015/colijnit-sharedcomponents.js +236 -95
  23. package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
  24. package/lib/components/stock/components/allocation-stock-history/allocation-stock-history.component.d.ts +4 -1
  25. package/lib/components/stock/components/order-tab/order-tab.component.d.ts +15 -1
  26. package/lib/components/stock/components/stock-location/components/stock-location-popup/stock-location-popup.component.d.ts +3 -1
  27. package/lib/components/stock/components/stock-location/stock-location.component.d.ts +5 -1
  28. package/lib/components/stock/service/stock-module-screen-config.service.d.ts +9 -0
  29. package/lib/components/stock/stock-information/stock-information.component.d.ts +8 -1
  30. package/lib/components/stock/stock.component.d.ts +5 -2
  31. package/lib/components/stock/style/_layout.scss +57 -5
  32. package/lib/components/stock/style/_material-definition.scss +3 -3
  33. package/lib/components/tab-bar/style/_layout.scss +6 -3
  34. package/lib/enum/icon.enum.d.ts +3 -0
  35. package/lib/res/dictionary/dictionaries.d.ts +11 -0
  36. package/lib/service/shared-event.service.d.ts +4 -0
  37. package/package.json +1 -1
  38. package/public-api.d.ts +1 -0
@@ -2,10 +2,13 @@ import { StockHistoryBo } from '@colijnit/articleapi/build/model/stock-history.b
2
2
  import { Icon } from '../../../../enum/icon.enum';
3
3
  import { BaseStockComponent } from '../../base/base-stock.component';
4
4
  import { StockService } from '../../../../service/stock.service';
5
+ import { SharedEventService } from "../../../../service/shared-event.service";
5
6
  export declare class AllocationStockHistoryComponent extends BaseStockComponent {
6
7
  private _stockService;
8
+ sharedEventService: SharedEventService;
7
9
  readonly icons: typeof Icon;
8
10
  data: StockHistoryBo[];
9
- constructor(_stockService: StockService);
11
+ constructor(_stockService: StockService, sharedEventService: SharedEventService);
10
12
  protected getData(): Promise<void>;
13
+ handleTransactionNavigation(docNr: string): void;
11
14
  }
@@ -6,16 +6,30 @@ import { StockService } from "../../../../service/stock.service";
6
6
  import { ArticleTransaction as ArticleTransactionBo } from "@colijnit/articleapi/build/model/article-transaction.bo";
7
7
  import { PrintPriceStickers } from "@colijnit/sharedapi/build/model/print-price-stickers.bo";
8
8
  import { BaseStockComponent } from '../../base/base-stock.component';
9
+ import { ArticleDetailsBo } from "@colijnit/articleapi/build/model/article-details.bo";
10
+ import { StockLocation } from "@colijnit/articleapi/build/model/stock-location.bo";
11
+ import { ArticleFlat } from "@colijnit/articleapi/build/model/article-flat.bo";
9
12
  export declare class OrderTabComponent extends BaseStockComponent {
10
13
  iconCacheService: IconCacheService;
11
14
  private _stockService;
12
15
  readonly icons: typeof Icon;
16
+ stockLocations: StockLocation[];
17
+ showStockTransfer: boolean;
18
+ allWarehouses: any[];
19
+ articleFlat: ArticleFlat;
13
20
  locationClicked: EventEmitter<ArticleStockBo>;
14
21
  readonly transferIconClicked: EventEmitter<ArticleStockBo>;
15
22
  readonly sendMethodDialogClicked: EventEmitter<PrintPriceStickers>;
23
+ handleStickerClicked: EventEmitter<any>;
24
+ showStockTransferChange: EventEmitter<boolean>;
16
25
  data: ArticleTransactionBo[];
26
+ selectedRow: ArticleDetailsBo | null;
27
+ articleDetails: ArticleDetailsBo;
28
+ showSendMethodDialog: boolean;
17
29
  constructor(iconCacheService: IconCacheService, _stockService: StockService);
18
30
  openSendMethodDialog(data: any): void;
19
- handleStockTransferClick(event: any): void;
31
+ handleStockTransferClick(event: ArticleDetailsBo): void;
32
+ onRowSelected(row: ArticleDetailsBo): void;
33
+ onShowStockTransferChange(show: boolean): void;
20
34
  protected getData(): Promise<void>;
21
35
  }
@@ -13,6 +13,7 @@ export declare class StockLocationPopupComponent {
13
13
  private _stockService;
14
14
  private _changeDetector;
15
15
  readonly icons: typeof Icon;
16
+ editingRow: boolean;
16
17
  showConfirmationDialog: boolean;
17
18
  newStockLine: boolean;
18
19
  selectedArticleDetailsData: ArticleDetailsBo;
@@ -21,7 +22,8 @@ export declare class StockLocationPopupComponent {
21
22
  selectedWarehouse: StockManagementWarehouses;
22
23
  selectedLocationNo: string;
23
24
  articleStockInfo: ArticleDetailsBo[];
24
- togglePopupEvent: EventEmitter<boolean>;
25
+ togglePopupEvent: EventEmitter<void>;
26
+ saveEvent: EventEmitter<boolean>;
25
27
  updateGridData: EventEmitter<ArticleDetailsBo[]>;
26
28
  stockLocations: StockLocation[];
27
29
  stockStatus: StockStatus[];
@@ -39,6 +39,8 @@ export declare class StockLocationComponent extends BaseStockComponent implement
39
39
  data: ArticleDetailsBo[];
40
40
  selectedWarehouse: StockManagementWarehouses;
41
41
  stockLocations: StockLocation[];
42
+ selectedRow: ArticleDetailsBo | null;
43
+ showSendMethodDialog: boolean;
42
44
  private _warehouseNo;
43
45
  private _subs;
44
46
  constructor(iconCacheService: IconCacheService, _stockService: StockService, _changeDetector: ChangeDetectorRef);
@@ -50,6 +52,7 @@ export declare class StockLocationComponent extends BaseStockComponent implement
50
52
  amountInStockChanged(data: any): void;
51
53
  openSendMethodDialog(data: any): void;
52
54
  handleStockTransferClick(event: ArticleDetailsBo): void;
55
+ onRowSelected(row: ArticleDetailsBo): void;
53
56
  onOkClickSendLocations(row: ArticleDetailsBo): void;
54
57
  handleAddRow(): void;
55
58
  handleOkClick(): void;
@@ -61,5 +64,6 @@ export declare class StockLocationComponent extends BaseStockComponent implement
61
64
  locationForDescription(locationNo: string): string;
62
65
  protected getData(): Promise<void>;
63
66
  private _getWarehouseLocations;
64
- handleTogglePopup(saved: boolean): void;
67
+ handleTogglePopup(): void;
68
+ handlePopupSave(saved: boolean): void;
65
69
  }
@@ -0,0 +1,9 @@
1
+ import { BaseModuleScreenConfigService } from "@colijnit/corecomponents_v12";
2
+ import { ObjectConfiguration } from "@colijnit/ioneconnector/build/model/object-configuration";
3
+ import { SharedConnectorService } from "../../../service/shared-connector.service";
4
+ export declare class StockModuleScreenConfigService extends BaseModuleScreenConfigService {
5
+ private _sharedConnectorService;
6
+ screenModuleName: string;
7
+ constructor(_sharedConnectorService: SharedConnectorService);
8
+ protected loadConfigForModule(params: string[], insertRights?: boolean): Promise<ObjectConfiguration[]>;
9
+ }
@@ -1,9 +1,16 @@
1
1
  import { ArticleExtended } from "@colijnit/articleapi/build/model/article-extended.bo";
2
+ import { SharedConnectorService } from "../../../service/shared-connector.service";
2
3
  export declare class StockInformationComponent {
4
+ private _connectorService;
3
5
  image: string;
4
- article: ArticleExtended;
6
+ set article(value: ArticleExtended);
7
+ get article(): ArticleExtended;
5
8
  articleStockState: number;
6
9
  allAvailableStockInformation: number;
7
10
  allTechnicalStockInformation: number;
8
11
  economicalStock: number;
12
+ perceptibleStorage: number;
13
+ private _article;
14
+ constructor(_connectorService: SharedConnectorService);
15
+ private _prepareImage;
9
16
  }
@@ -12,13 +12,15 @@ import { Icon } from '../../enum/icon.enum';
12
12
  import { IconCacheService } from '../../service/icon-cache.service';
13
13
  import { ArticleStockManagement } from '@colijnit/articleapi/build/model/article-stock-management';
14
14
  import { SharedComponentsDictionaryService } from '../../translation/shared-components-dictionary.service';
15
+ import { StockModuleScreenConfigService } from "./service/stock-module-screen-config.service";
15
16
  export declare class StockComponent implements OnDestroy, OnInit {
17
+ iconCacheService: IconCacheService;
16
18
  private _stockService;
17
19
  private _optionsService;
18
20
  private _dictionary;
19
21
  private _changeDetector;
20
22
  private _connector;
21
- iconCacheService: IconCacheService;
23
+ private _screenConfigService;
22
24
  readonly icons: typeof Icon;
23
25
  handleStickerClicked: EventEmitter<any>;
24
26
  set article(articleOrGoodId: ArticleExtended | number);
@@ -42,12 +44,13 @@ export declare class StockComponent implements OnDestroy, OnInit {
42
44
  allAvailableStock: number;
43
45
  allTechnicalStock: number;
44
46
  economicalStock: number;
47
+ perceptibleStorage: number;
45
48
  showSendMethodDialog: boolean;
46
49
  articleStockState: number;
47
50
  warehouses: StockManagementWarehouses[];
48
51
  private _subscriptions;
49
52
  private _goodId;
50
- constructor(_stockService: StockService, _optionsService: OptionsService, _dictionary: SharedComponentsDictionaryService, _changeDetector: ChangeDetectorRef, _connector: SharedConnectorService, iconCacheService: IconCacheService);
53
+ constructor(iconCacheService: IconCacheService, _stockService: StockService, _optionsService: OptionsService, _dictionary: SharedComponentsDictionaryService, _changeDetector: ChangeDetectorRef, _connector: SharedConnectorService, _screenConfigService: StockModuleScreenConfigService);
51
54
  ngOnDestroy(): void;
52
55
  ngOnInit(): void;
53
56
  handleStockTransferClick(event: any): void;
@@ -1,9 +1,38 @@
1
1
  @include export-module('co-stock-layout') {
2
2
  .co-stock {
3
+ co-stock-location {
4
+ position: relative;
5
+ .stock-transfer-add {
6
+ display: flex;
7
+ gap: 5px;
8
+ position: absolute;
9
+ top: -38px;
10
+ left: 200px;
11
+ }
12
+ }
13
+ .stock-transfer-add {
14
+ display: flex;
15
+ gap: 5px;
16
+ co-icon {
17
+ width: 40px;
18
+ border: 1px solid #1A73E8;
19
+ padding: 5px;
20
+ cursor: pointer;
21
+ svg {
22
+ fill: #1A73E8;
23
+ }
24
+ &:hover {
25
+ background: #1A73E8;
26
+ svg {
27
+ fill: #FFF;
28
+ }
29
+ }
30
+ }
31
+ }
3
32
  .stock-grid {
4
33
  co-dialog {
5
34
  .co-dialog-wrapper {
6
- width: 500px;
35
+ width: 600px;
7
36
  display: flex;
8
37
  }
9
38
  .stock-dialog-header {
@@ -19,21 +48,26 @@
19
48
  }
20
49
  .dialog-wrapper {
21
50
  display: flex;
22
- gap: 5px;
51
+ gap: 10px;
23
52
  padding: 10px;
24
53
  flex-direction: column;
25
54
  }
26
55
  .stock-dialog-row {
27
56
  display: flex;
28
57
  align-items: center;
29
- gap: 5px;
58
+ gap: 20px;
30
59
  > * {
31
60
  flex: 1;
32
61
  }
33
62
  .stock-dialog-row-row {
34
63
  display: flex;
35
64
  align-items: center;
36
- gap: 5px;
65
+ gap: 10px;
66
+ }
67
+ co-input-text, co-list-of-values, co-input-number-picker {
68
+ &:before {
69
+ box-shadow: none;
70
+ }
37
71
  }
38
72
  }
39
73
  }
@@ -163,7 +197,7 @@
163
197
  .stock-location-right-group {
164
198
  display: flex;
165
199
  justify-content: flex-end;
166
-
200
+ min-width: 190px;
167
201
  .co-list-of-values {
168
202
  .co-input-text {
169
203
  height: 100%;
@@ -420,6 +454,10 @@
420
454
  .simple-grid {
421
455
  height: $sc-stock-grid-height;
422
456
  overflow: auto;
457
+ thead {
458
+ position: sticky;
459
+ top: 0;
460
+ }
423
461
  .co-grid-toolbar {
424
462
  .co-icon {
425
463
  border-color: #1A73E8;
@@ -520,6 +558,20 @@
520
558
  font-size: 10px;
521
559
  &:nth-child(odd) {
522
560
  background: #f8f8fa;
561
+ &:hover {
562
+ background: #d2e3f9;
563
+ }
564
+ &.selected {
565
+ background: #d2e3f9;
566
+ }
567
+ }
568
+ &:nth-child(even) {
569
+ &:hover {
570
+ background: #d2e3f9;
571
+ }
572
+ &.selected {
573
+ background: #d2e3f9;
574
+ }
523
575
  }
524
576
  }
525
577
  .simple-grid-column-cell-field {
@@ -1,7 +1,7 @@
1
- $sc-stock-info-margin: 10px 0 20px 0 !default;
1
+ $sc-stock-info-margin: 4px 0 20px 0 !default;
2
2
  $sc-stock-info-padding: 15px 10px !default;
3
- $sc-stock-info-border-width: 1px 0 !default;
4
- $sc-stock-info-border-color: #CCCCCC !default;
3
+ $sc-stock-info-border-width: 4px 0 !default;
4
+ $sc-stock-info-border-color: #F4F4F9 !default;
5
5
  $sc-stock-gap: 10px !default;
6
6
  $sc-stock-border-left: none !default;
7
7
  $sc-stock-line-margin: 10px 0 20px 0 !default;
@@ -26,10 +26,13 @@
26
26
  font-weight: bold;
27
27
  color: $sc-color-font;
28
28
  }
29
-
29
+ &:hover {
30
+ filter: brightness(100%);
31
+ }
30
32
  &.active {
31
- background-color: white;
32
- border-bottom: 2px solid #1A73E8;
33
+ span {
34
+ color: #1A73E8;
35
+ }
33
36
  }
34
37
  }
35
38
  }
@@ -10,6 +10,7 @@ export declare enum Icon {
10
10
  ArrowPointLeft = "arrow_point_left",
11
11
  ArrowPointRight = "arrow_point_right",
12
12
  ArrowPointUp = "arrow_point_up",
13
+ ArrowRightArrowLeftRegular = "arrow_right_arrow_left_regular",
13
14
  AtSolid = "at_solid",
14
15
  BarcodeReadRegular = "barcode_read_regular",
15
16
  BellRegular = "bell_regular",
@@ -53,12 +54,14 @@ export declare enum Icon {
53
54
  Pdf = "pdf",
54
55
  PersonDiggingRegular = "person_digging_regular",
55
56
  PinRoundOpen = "pin_round_open",
57
+ PlusRegular = "plus_regular",
56
58
  PlusSimple = "plus_simple",
57
59
  Print = "print",
58
60
  PrintRegular = "print_regular",
59
61
  PrintSolid = "print_solid",
60
62
  RegularFileSignatureCirclePlus = "regular_file_signature_circle_plus",
61
63
  SignatureField = "signature_field",
64
+ SolidBarcodeReadTag = "solid_barcode_read_tag",
62
65
  SquarePlusRegular = "square_plus_regular",
63
66
  TagRegular = "tag_regular",
64
67
  Task = "task",
@@ -3440,6 +3440,7 @@ export declare class Dictionaries {
3440
3440
  MESSAGE_KIND: string;
3441
3441
  MESSAGE_LICENCE_EXPIRES_MONTH: string;
3442
3442
  MESSAGE_LICENSE_EXPIRED: string;
3443
+ MESSAGE_LOGGED_CLIENT_FAILURE: string;
3443
3444
  MESSAGE_LOGGED_IN: string;
3444
3445
  MESSAGE_LOGIN_FAILURE: string;
3445
3446
  MESSAGE_LOGIN_FAILURE2: string;
@@ -4461,6 +4462,7 @@ export declare class Dictionaries {
4461
4462
  IMPORT_RELATION_SUCCESS: string;
4462
4463
  IMPORT_SCHEMAS: string;
4463
4464
  IMPORT_SCHEMA_NAME: string;
4465
+ CHANGE_STOCK_LINE: string;
4464
4466
  CORRECT_ACCEPTED_ORDER: string;
4465
4467
  CORRECT_ALLOCATIONS_FIRST: string;
4466
4468
  CORRECT_ASSIGNMENT_FIRST: string;
@@ -6955,6 +6957,7 @@ export declare class Dictionaries {
6955
6957
  STUDIO_CODE: string;
6956
6958
  SIGN_DOCUMENTS: string;
6957
6959
  SIGN_IN: string;
6960
+ SIGN_UP: string;
6958
6961
  STUK_EENHEID: string;
6959
6962
  STYLEGUIDE: string;
6960
6963
  STYLE_GROUPING: string;
@@ -7687,6 +7690,7 @@ export declare class Dictionaries {
7687
7690
  NOV_BTW_V: string;
7688
7691
  NOW: string;
7689
7692
  NOW_AVAILABLE: string;
7693
+ NO_ACCOUNT_YET: string;
7690
7694
  NO_ACTION: string;
7691
7695
  NO_ACTIVE_WORKFLOWS: string;
7692
7696
  NO_ACTIVE_WORKFLOW_FOR_TASK: string;
@@ -8218,6 +8222,7 @@ export declare class Dictionaries {
8218
8222
  OPEN_RELATION_MANAGEMENT: string;
8219
8223
  OPEN_SALES_OVERVIEW: string;
8220
8224
  OPEN_SHOPPING_CART: string;
8225
+ OPEN_STOCK_DETAILS: string;
8221
8226
  ORDER_CANNOT_BE_COMPLETELY_ACCEPTED: string;
8222
8227
  ORDER_CODE: string;
8223
8228
  UNKNOWN_ADDRESS_CHECK_IT: string;
@@ -8342,6 +8347,7 @@ export declare class Dictionaries {
8342
8347
  WAREHOUSE_REQUIRED: string;
8343
8348
  WARNING: string;
8344
8349
  WARNING_MESSAGE_DELETE_NOTIFICATION_LINKS: string;
8350
+ PERCEPTIBLE_STORAGE: string;
8345
8351
  PURCHASE_CONFIRMATION_IMPORT: string;
8346
8352
  PURCHASE_DATE: string;
8347
8353
  PURCHASE_DESCRIPTION: string;
@@ -15197,6 +15203,7 @@ export declare class Dictionaries {
15197
15203
  MESSAGE_KIND: string;
15198
15204
  MESSAGE_LICENCE_EXPIRES_MONTH: string;
15199
15205
  MESSAGE_LICENSE_EXPIRED: string;
15206
+ MESSAGE_LOGGED_CLIENT_FAILURE: string;
15200
15207
  MESSAGE_LOGGED_IN: string;
15201
15208
  MESSAGE_LOGIN_FAILURE2: string;
15202
15209
  MESSAGE_LOGIN_FAILURE: string;
@@ -15505,6 +15512,7 @@ export declare class Dictionaries {
15505
15512
  NEW_STATUS: string;
15506
15513
  NEW_STOCK: string;
15507
15514
  NEW_STOCK_LINE: string;
15515
+ CHANGE_STOCK_LINE: string;
15508
15516
  NEW_STOREROOM: string;
15509
15517
  NEW_TRANSACTION: string;
15510
15518
  NEW_USER_ACCOUNT_MESSAGE: string;
@@ -15612,6 +15620,7 @@ export declare class Dictionaries {
15612
15620
  NOVEMBER: string;
15613
15621
  NOW: string;
15614
15622
  NOW_AVAILABLE: string;
15623
+ NO_ACCOUNT_YET: string;
15615
15624
  NO_ACTION: string;
15616
15625
  NO_ACTIVE_WORKFLOWS: string;
15617
15626
  NO_ACTIVE_WORKFLOW_FOR_TASK: string;
@@ -15911,6 +15920,7 @@ export declare class Dictionaries {
15911
15920
  OPEN_SALES_OVERVIEW: string;
15912
15921
  OPEN_SHOPPING_CART: string;
15913
15922
  OPEN_STOCK_DETAILS: string;
15923
+ PERCEPTIBLE_STORAGE: string;
15914
15924
  OPEN_TASK: string;
15915
15925
  OPEN_TEXT: string;
15916
15926
  OPEN_WEBVIEW_FAILED_NO_EXTSOURCE: string;
@@ -17810,6 +17820,7 @@ export declare class Dictionaries {
17810
17820
  SIGN_DOCUMENT: string;
17811
17821
  SIGN_DOCUMENTS: string;
17812
17822
  SIGN_IN: string;
17823
+ SIGN_UP: string;
17813
17824
  SILVER_MEDAL: string;
17814
17825
  SINCE: string;
17815
17826
  SINGLE: string;
@@ -0,0 +1,4 @@
1
+ import { Subject } from 'rxjs';
2
+ export declare class SharedEventService {
3
+ readonly salesOrderNavigation: Subject<string>;
4
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colijnit/sharedcomponents",
3
- "version": "257.1.5",
3
+ "version": "257.1.7",
4
4
  "private": false,
5
5
  "dependencies": {
6
6
  "chart.js": "4.3.0",
package/public-api.d.ts CHANGED
@@ -31,6 +31,7 @@ export * from './lib/components/task-creator/task-creator.module';
31
31
  export * from './lib/components/role-email-selector/role-email-selector.component';
32
32
  export * from './lib/components/role-email-selector/role-email-selector.module';
33
33
  export * from './lib/service/shared.service';
34
+ export * from './lib/service/shared-event.service';
34
35
  export * from './lib/translation/shared-components-translation.module';
35
36
  export * from './lib/translation/shared-components-dictionary.service';
36
37
  export * from './lib/enum/calendar-view.enum';