@colijnit/transaction 12.1.25 → 12.1.26

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.
@@ -8,9 +8,6 @@
8
8
 
9
9
  .transaction-search-wrapper {
10
10
  display: flex;
11
- //border-right: $cc-co-transaction-search-border-style;
12
- //height: $cc-co-transaction-search-screen-height;
13
- //overflow: hidden;
14
11
 
15
12
  &.fullscreen {
16
13
  width: 100%;
@@ -18,18 +15,22 @@
18
15
  }
19
16
 
20
17
  &.sidebar {
21
- width:$cc-co-transaction-searchbar-width;
22
- transition: width 0.2s ease-in-out;
18
+ width: $cc-co-transaction-searchbar-width;
19
+ transition: all 0.2s ease-in-out;
20
+
21
+ &.collapsed {
22
+ transform: translate(-$cc-co-transaction-searchbar-width);
23
+ }
24
+
25
+ &.expanded {
26
+ transform: translate(0);
27
+ }
23
28
  }
24
29
  }
25
30
 
26
31
  .transaction-filter-wrapper {
27
32
  display: flex;
28
- //flex-basis: 350px;
29
- //overflow-y: auto;
30
- //overflow-x: hidden;
31
33
  min-width: $tp-co-transaction-filter-wrapper-min-width;
32
- //height: $cc-co-transaction-search-screen-height;
33
34
 
34
35
  &.sidebar {
35
36
  position: absolute;
@@ -37,7 +38,7 @@
37
38
  transition: left 0.2s ease-in-out;
38
39
  }
39
40
 
40
- &.fullscreen{
41
+ &.fullscreen {
41
42
  position: relative;
42
43
  left: 0;
43
44
  transition: left 0.2s ease-in-out;
@@ -46,11 +47,55 @@
46
47
 
47
48
  .transaction-search-result-wrapper {
48
49
  display: flex;
49
- //height: $cc-co-transaction-search-screen-height;
50
50
  overflow-y: auto;
51
51
  flex-basis: 100%;
52
52
  justify-content: flex-start;
53
53
  padding: $tp-co-transaction-search-result-wrapper-padding;
54
54
  }
55
+
56
+ .transaction-search-content-wrapper {
57
+ &.fullscreen {
58
+ display: none;
59
+ }
60
+
61
+ &.sidebar {
62
+ transition: all 0.2s ease-in-out;
63
+
64
+ &.expanded {
65
+ min-height: 100vh;
66
+ transform: translate(10px);
67
+ }
68
+
69
+ &.collapsed {
70
+ transform: translate(-$cc-co-transaction-searchbar-width + 10px);
71
+ }
72
+ }
73
+ }
74
+
75
+ & > co-icon-collapse-handle {
76
+ position: absolute !important;
77
+ flex-shrink: 0;
78
+ top: 50vh;
79
+
80
+ &.fullscreen {
81
+ opacity: 0;
82
+ }
83
+
84
+ &.sidebar {
85
+ transition: all 0.2s ease-in-out;
86
+
87
+ &.collapsed {
88
+ opacity: 0;
89
+ transform: translate(0) rotate(90deg);
90
+ }
91
+
92
+ &.expanded {
93
+ opacity: 1;
94
+ transition-delay: 0.2s;
95
+ transition-property: opacity;
96
+ transform: translate($cc-co-transaction-searchbar-width - 17px) rotate(90deg);
97
+ }
98
+ }
99
+ }
55
100
  }
56
101
  }
@@ -3,9 +3,8 @@ $tp-co-transaction-search-font-size: $tp-font-size !default;
3
3
  $cc-co-transaction-search-background-color: $cc-color-light !default;
4
4
  $cc-co-transaction-search-border-color: $tp-color-border !default;
5
5
  $cc-co-transaction-search-border-style: solid 1px !default;
6
- //$cc-co-transaction-search-screen-height: 95vh !default;
7
6
 
8
- $cc-co-transaction-searchbar-width:370px !default;
7
+ $cc-co-transaction-searchbar-width: 370px !default;
9
8
 
10
9
  $tp-co-transaction-filter-wrapper-min-width: 360px !default;
11
10
  $tp-co-transaction-filter-button-color: $cc-color-light !default;
@@ -4,7 +4,10 @@
4
4
  .co-transaction-search {
5
5
  .transaction-search-wrapper {
6
6
  background-color: $cc-co-transaction-search-background-color;
7
- //border-right-color: $cc-co-transaction-search-border-color;
7
+
8
+ .transaction-search-result-wrapper.sidebar.expanded {
9
+ border-right: 1px solid $cc-co-transaction-search-border-color;
10
+ }
8
11
  }
9
12
  }
10
13
  }
@@ -4,5 +4,4 @@ export declare class TransactionSearchSalesOrderGridComponent extends Transactio
4
4
  searchService: TransactionSearchService;
5
5
  showClass(): boolean;
6
6
  constructor(searchService: TransactionSearchService);
7
- onTransactionClick(event: any): void;
8
7
  }
@@ -20,5 +20,9 @@
20
20
  justify-content: center;
21
21
  }
22
22
  }
23
+
24
+ .pagination {
25
+ padding: 0 25px;
26
+ }
23
27
  }
24
28
  }
@@ -1,25 +1,39 @@
1
1
  import { EventEmitter } from "@angular/core";
2
+ import { CoDirection, CoOrientation } from "@colijnit/corecomponents_v12";
2
3
  import { TransactionKind } from "@colijnit/transactionapi/build/enum/transaction-kind.enum";
3
4
  import { TransactionSearchView } from "@colijnit/transactionapi/build/model/transaction-search-view.bo";
4
5
  import { SearchViewMode } from "../../enum/search-view-mode.enum";
5
6
  import { TransactionSearchService } from "./service/transaction-search.service";
7
+ export declare enum SearchBarViewMode {
8
+ Expanded = 0,
9
+ Collapsed = 1
10
+ }
6
11
  export declare class TransactionSearchComponent {
7
12
  private _transactionSearchService;
8
13
  readonly searchViewModes: typeof SearchViewMode;
14
+ readonly orientations: typeof CoOrientation;
15
+ readonly directionRight: CoDirection;
9
16
  activeSearchViewMode: SearchViewMode;
10
- closeClick: EventEmitter<void>;
17
+ activeSearchBarViewMode: SearchBarViewMode;
18
+ showFilterSidebar: boolean;
19
+ private _transactionType;
11
20
  set transactionType(value: TransactionKind);
12
21
  get transactionType(): TransactionKind;
13
22
  transactionClick: EventEmitter<TransactionSearchView>;
14
23
  searchViewModeChange: EventEmitter<SearchViewMode>;
15
24
  showClass(): boolean;
16
- showFilterSidebar: boolean;
17
- private _transactionType;
18
25
  constructor(_transactionSearchService: TransactionSearchService);
19
26
  get fullscreen(): boolean;
27
+ get collapsed(): boolean;
20
28
  toggleFilter(): void;
21
29
  handleHideFilter(): void;
22
30
  handleResetFilter(): void;
23
31
  onTransactionClick(transaction: TransactionSearchView): void;
24
- onResizeClick(): void;
32
+ onSearchViewResizeClick(): void;
33
+ onSideCollapseHandleClick(): void;
34
+ toggleSearchBar(): void;
35
+ collapseSearchBar(): void;
36
+ expandSearchBar(): void;
37
+ calculateClasses(): any;
38
+ private _scrollToTop;
25
39
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colijnit/transaction",
3
- "version": "12.1.25",
3
+ "version": "12.1.26",
4
4
  "description": "Colijn IT transaction module for Angular 12",
5
5
  "private": false,
6
6
  "peerDependencies": {
Binary file