@colijnit/transaction 256.1.63 → 256.1.64

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.
@@ -1,4 +1,25 @@
1
+ import { OnInit } from "@angular/core";
1
2
  import { DialogTransactionLineBaseComponent } from '../../../core/base/dialog-transaction-line-base.component';
2
- export declare class DialogTransactionLineWarehouseComponent extends DialogTransactionLineBaseComponent {
3
+ import { Warehouse } from "@colijnit/transactionapi/build/model/warehouse.bo";
4
+ export declare enum WarehouseTargetSourceTab {
5
+ Source = 0,
6
+ Target = 1
7
+ }
8
+ export declare class DialogTransactionLineWarehouseComponent extends DialogTransactionLineBaseComponent implements OnInit {
9
+ readonly tab: typeof WarehouseTargetSourceTab;
10
+ activeTab: WarehouseTargetSourceTab;
11
+ warehouse: number;
12
+ sourceWarehouse: number;
13
+ warehouseDisplayList: Warehouse[];
14
+ warehouseDescription: string;
15
+ interBranchSourceWarehouseDescription: string;
16
+ ngOnInit(): void;
3
17
  showClass(): boolean;
18
+ protected transactionLineSet(): void;
19
+ handleSourceValueChange(value: number): void;
20
+ handleTargetValueChange(value: number): void;
21
+ showTab(tab: WarehouseTargetSourceTab): void;
22
+ handleOkClick(): Promise<boolean>;
23
+ private _getWarehouseListForDisplay;
24
+ private _getWarehouseDescription;
4
25
  }
@@ -1,11 +1,41 @@
1
1
  @include export-module('co-dialog-transaction-line-warehouse-layout') {
2
2
  .co-dialog-transaction-line-warehouse {
3
3
  .co-dialog:not(.is-mobile) .co-dialog-wrapper {
4
- width: $tp-dialog-transaction-line-warehouse-min-width;
4
+ width: 500px;
5
5
  }
6
- .co-dialog .dialog-content {
7
- max-height: $tp-dialog-transaction-line-warehouse-height;
8
- height: $tp-dialog-transaction-line-warehouse-height;
6
+ .co-dialog {
7
+ .dialog-content {
8
+ max-height: $tp-dialog-transaction-line-warehouse-height;
9
+ height: $tp-dialog-transaction-line-warehouse-height;
10
+ overflow: hidden;
11
+
12
+ .warehouse-tabs {
13
+ display: flex;
14
+ column-gap: 10px;
15
+ user-select: none;
16
+ margin-bottom: 10px;
17
+
18
+ .warehouse-tab {
19
+ cursor: pointer;
20
+
21
+ &.active {
22
+ font-weight: bold;
23
+ }
24
+ }
25
+ }
26
+ }
27
+ .dialog-footer {
28
+ .transaction-line-warehouse-cc-warehouses-section {
29
+ margin-top: 10px;
30
+ margin-bottom: 10px;
31
+ display: grid;
32
+ grid-template-columns: 30px 39% 30px 39%;
33
+ grid-gap: 10px;
34
+ width: 100%;
35
+ overflow: hidden;
36
+ align-items: center;
37
+ }
38
+ }
9
39
  }
10
40
  }
11
41
  }
@@ -3,6 +3,9 @@
3
3
  display: block;
4
4
  height: 100%;
5
5
  position: relative;
6
+ &.no-display {
7
+ display: none;
8
+ }
6
9
 
7
10
  .loader-wrapper {
8
11
  position: absolute;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colijnit/transaction",
3
- "version": "256.1.63",
3
+ "version": "256.1.64",
4
4
  "description": "Colijn IT transaction module for Angular 12",
5
5
  "repository": "npm/npm",
6
6
  "author": "Colijn IT",
@@ -20,7 +20,7 @@
20
20
  "@colijnit/relationapi": ">=256.1.3",
21
21
  "@colijnit/sharedapi": ">=1.0.20",
22
22
  "@colijnit/sharedcomponents": ">=256.1.5",
23
- "@colijnit/transactionapi": ">=256.1.22",
23
+ "@colijnit/transactionapi": ">=256.1.23",
24
24
  "@types/three": ">=0.125.0",
25
25
  "@tweenjs/tween.js": ">=17.2.0",
26
26
  "three": ">=0.125.0",