@annalib/anna-core 24.0.18 → 24.0.21

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 (52) hide show
  1. package/README.md +28 -28
  2. package/esm2022/lib/anna-core-shared-lib/components/anna-buyer-approval-icon-template/anna-buyer-approval-icon-template.component.mjs +3 -3
  3. package/esm2022/lib/anna-core-shared-lib/components/anna-deleted-order-icon-template/anna-deleted-order-icon-template.component.mjs +3 -3
  4. package/esm2022/lib/anna-core-shared-lib/components/anna-est-icon-template/anna-est-icon-template.component.mjs +3 -3
  5. package/esm2022/lib/anna-core-shared-lib/components/anna-live-icon-template/anna-live-icon-template.component.mjs +3 -3
  6. package/esm2022/lib/anna-core-shared-lib/components/anna-no-data/anna-no-data.component.mjs +3 -3
  7. package/esm2022/lib/anna-core-shared-lib/components/anna-notify-icon-template/anna-notify-icon-template.component.mjs +3 -3
  8. package/esm2022/lib/anna-core-shared-lib/components/anna-pay-for-performance-icon-template/anna-pay-for-performance-icon-template.component.mjs +3 -3
  9. package/esm2022/lib/anna-core-shared-lib/components/anna-rejected-icon-template/anna-rejected-icon-template.component.mjs +3 -3
  10. package/esm2022/lib/anna-core-shared-lib/models/anna-generic-data-type.model.mjs +1 -1
  11. package/esm2022/lib/anna-core-shared-lib/models/anna-non-editable-gt-models.mjs +11 -1
  12. package/esm2022/lib/anna-core-shared-lib/services/anna-date-time-format.service.mjs +6 -6
  13. package/esm2022/lib/anna-core-shared-lib/services/anna-filter.service.mjs +34 -1
  14. package/esm2022/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.mjs +21 -37
  15. package/esm2022/lib/anna-generic-table-lib/components/anna-sort/anna-sort.component.mjs +3 -3
  16. package/fesm2022/annalib-anna-core.mjs +87 -60
  17. package/fesm2022/annalib-anna-core.mjs.map +1 -1
  18. package/lib/anna-core-shared-lib/models/anna-non-editable-gt-models.d.ts +15 -1
  19. package/lib/anna-core-shared-lib/services/anna-filter.service.d.ts +2 -0
  20. package/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.d.ts +10 -2
  21. package/package.json +1 -1
  22. package/src/lib/anna-common-scss/_animate.scss +27 -27
  23. package/src/lib/anna-common-scss/_application-spacing.scss +7 -7
  24. package/src/lib/anna-common-scss/_bootstrap-tooltip.scss +27 -27
  25. package/src/lib/anna-common-scss/_button.scss +18 -18
  26. package/src/lib/anna-common-scss/_colors.scss +107 -107
  27. package/src/lib/anna-common-scss/_common-order-listing-table.scss +176 -176
  28. package/src/lib/anna-common-scss/_custom-anna-datepicker.scss +14 -14
  29. package/src/lib/anna-common-scss/_customDropdown.scss +123 -123
  30. package/src/lib/anna-common-scss/_dashboard-partials.scss +106 -106
  31. package/src/lib/anna-common-scss/_date-picker-form.scss +87 -87
  32. package/src/lib/anna-common-scss/_easy-filter.scss +138 -138
  33. package/src/lib/anna-common-scss/_edit-filter-popup.scss +70 -70
  34. package/src/lib/anna-common-scss/_font.scss +9 -9
  35. package/src/lib/anna-common-scss/_fonts.scss +86 -86
  36. package/src/lib/anna-common-scss/_generic-modal.scss +63 -63
  37. package/src/lib/anna-common-scss/_generic-table-common.scss +198 -198
  38. package/src/lib/anna-common-scss/_gt-table.scss +425 -425
  39. package/src/lib/anna-common-scss/_icons.scss +3 -3
  40. package/src/lib/anna-common-scss/_legend.scss +11 -11
  41. package/src/lib/anna-common-scss/_mat-button-toggle.scss +38 -38
  42. package/src/lib/anna-common-scss/_mat-menu.scss +17 -17
  43. package/src/lib/anna-common-scss/_mixins.scss +187 -187
  44. package/src/lib/anna-common-scss/_modal.scss +37 -37
  45. package/src/lib/anna-common-scss/_popup-filter-toggle-button.scss +36 -36
  46. package/src/lib/anna-common-scss/_scrollbar.scss +14 -14
  47. package/src/lib/anna-common-scss/_sort.scss +30 -30
  48. package/src/lib/anna-common-scss/_toggle.scss +86 -86
  49. package/src/lib/anna-common-scss/style.scss +1 -1
  50. package/src/lib/anna-common-scss/third-party-lib/_angular-material-mat-radio.scss +25 -25
  51. package/src/lib/anna-common-scss/third-party-lib/_anna-mat-button-toggle-group-size-lg.scss +34 -34
  52. package/src/lib/anna-common-scss/third-party-lib/_mat-autocomplete.scss +31 -31
@@ -1,176 +1,176 @@
1
- @use "./fonts";
2
- @use "./colors";
3
- @use "./generic-table-common";
4
-
5
- @mixin sticky-left($leftOffset, $zIndex) {
6
- position: sticky;
7
- left: $leftOffset;
8
- z-index: $zIndex !important;
9
- }
10
-
11
- @mixin ellipsify() {
12
- text-overflow: ellipsis;
13
- overflow: hidden;
14
- white-space: nowrap;
15
- }
16
-
17
- @mixin ellipsis() {
18
- display: inline-block;
19
- width: 93%;
20
- @include ellipsify();
21
- }
22
-
23
- @mixin common-table($tableStartIndex, $tableEndIndex) {
24
- thead {
25
- tr th {
26
- box-shadow: none !important;
27
- }
28
- tr th:nth-child(12) {
29
- z-index: 101 !important;
30
- }
31
-
32
- tr th.mat-column-isOrderStarred,
33
- tr th.mat-column-payForPerformanceColumnIcon {
34
- background-color: white !important;
35
- }
36
-
37
- tr.total-row {
38
- td {
39
- color: #4a4a4a;
40
-
41
- span {
42
- color: #a7a7a7;
43
- }
44
-
45
- background: white;
46
- @include fonts.fonts(Roboto, 0.75rem, normal, bold, normal, normal, 0.3px);
47
- }
48
-
49
- td:nth-of-type(1) {
50
- @include sticky-left(0px, 501);
51
- }
52
-
53
- td:nth-of-type(2) {
54
- box-shadow:
55
- inset 1px 0 0 0 rgb(0 0 0 / 75%),
56
- inset 0 1px 0 0 rgb(0 0 0 / 75%),
57
- inset 0 -1px 0 0 rgb(0 0 0 / 75%);
58
- padding-left: 37px;
59
- @include sticky-left(62px, 501);
60
- }
61
-
62
- td:nth-of-type(n + 3) {
63
- box-shadow:
64
- inset 0 1px 0 0 rgb(0 0 0 / 75%),
65
- inset 0 -1px 0 0 rgb(0 0 0 / 75%);
66
- }
67
-
68
- td:last-of-type {
69
- box-shadow:
70
- inset -1px 0 0 0 rgb(0 0 0 / 75%),
71
- inset 0 1px 0 0 rgb(0 0 0 / 75%),
72
- inset 0 -1px 0 0 rgb(0 0 0 / 75%);
73
- }
74
- }
75
- }
76
-
77
- tbody {
78
- tr {
79
- cursor: pointer;
80
-
81
- td {
82
- background: white;
83
- box-shadow: none !important;
84
-
85
- div:nth-child(1) {
86
- color: #000;
87
- @include ellipsify();
88
- @include fonts.fonts(Roboto, 0.75rem, normal, normal, normal, normal, 0px);
89
- }
90
-
91
- div:nth-child(2) {
92
- color: #a7a7a7;
93
- @include ellipsify();
94
- @include fonts.fonts(Roboto, 0.75rem, normal, 500, normal, normal, 0.3px);
95
- }
96
- }
97
-
98
- td:nth-of-type(1) {
99
- @include sticky-left(0px, 102);
100
- }
101
-
102
- @for $i from calc($tableStartIndex) through calc($tableEndIndex) {
103
- td:nth-of-type(#{$i}) {
104
- box-shadow: inset 0px -1px 0px 0px #d4d4d4 !important;
105
- }
106
- }
107
-
108
- td:nth-of-type(#{$tableStartIndex}) {
109
- box-shadow: inset 1px -1px 0px 0px #d4d4d4 !important;
110
- }
111
-
112
- td:last-of-type {
113
- box-shadow: inset -1px -1px 0px 0px #d4d4d4 !important;
114
- }
115
-
116
- td.mat-cell:first-of-type {
117
- padding-left: 5px !important;
118
-
119
- i {
120
- font-size: 1.25rem;
121
- cursor: pointer;
122
- position: relative;
123
- bottom: 2px;
124
- }
125
-
126
- i.mdi-star-outline {
127
- color: #e6e6e6;
128
- }
129
-
130
- i.mdi-star {
131
- color: #ffc107;
132
- opacity: 0.5;
133
- }
134
-
135
- i.mdi-cog-refresh {
136
- color: #8bac2a;
137
- }
138
- }
139
- }
140
-
141
- @include overrideEmptyTrBorders(3);
142
- }
143
-
144
- &.no-data-table {
145
- tbody tr:first-of-type {
146
- td:nth-of-type(#{$tableStartIndex}) {
147
- box-shadow: inset 1px 0px 0px 0px #d4d4d4 !important;
148
- }
149
-
150
- td:nth-of-type(#{$tableStartIndex + 1}),
151
- td:nth-of-type(#{$tableStartIndex + 2}) {
152
- box-shadow: none !important;
153
- }
154
- }
155
- }
156
-
157
- &.no-data-table div.horizontal-scroll-for-table-container {
158
- height: calc(157px) !important;
159
- }
160
-
161
- .table-container::-webkit-scrollbar {
162
- width: 4px;
163
- height: 4px;
164
- }
165
-
166
- .table-container::-webkit-scrollbar-thumb {
167
- border-radius: 4px;
168
- background-color: rgba(0, 0, 0, 0.4) !important;
169
- border: 1px solid rgba(0, 0, 0, 0.2);
170
- }
171
-
172
- .table-container::-webkit-scrollbar-track {
173
- border: 1px solid rgba(0, 0, 0, 0.1) !important;
174
- margin-top: 105px;
175
- }
176
- }
1
+ @use "./fonts";
2
+ @use "./colors";
3
+ @use "./generic-table-common";
4
+
5
+ @mixin sticky-left($leftOffset, $zIndex) {
6
+ position: sticky;
7
+ left: $leftOffset;
8
+ z-index: $zIndex !important;
9
+ }
10
+
11
+ @mixin ellipsify() {
12
+ text-overflow: ellipsis;
13
+ overflow: hidden;
14
+ white-space: nowrap;
15
+ }
16
+
17
+ @mixin ellipsis() {
18
+ display: inline-block;
19
+ width: 93%;
20
+ @include ellipsify();
21
+ }
22
+
23
+ @mixin common-table($tableStartIndex, $tableEndIndex) {
24
+ thead {
25
+ tr th {
26
+ box-shadow: none !important;
27
+ }
28
+ tr th:nth-child(12) {
29
+ z-index: 101 !important;
30
+ }
31
+
32
+ tr th.mat-column-isOrderStarred,
33
+ tr th.mat-column-payForPerformanceColumnIcon {
34
+ background-color: white !important;
35
+ }
36
+
37
+ tr.total-row {
38
+ td {
39
+ color: #4a4a4a;
40
+
41
+ span {
42
+ color: #a7a7a7;
43
+ }
44
+
45
+ background: white;
46
+ @include fonts.fonts(Roboto, 0.75rem, normal, bold, normal, normal, 0.3px);
47
+ }
48
+
49
+ td:nth-of-type(1) {
50
+ @include sticky-left(0px, 501);
51
+ }
52
+
53
+ td:nth-of-type(2) {
54
+ box-shadow:
55
+ inset 1px 0 0 0 rgb(0 0 0 / 75%),
56
+ inset 0 1px 0 0 rgb(0 0 0 / 75%),
57
+ inset 0 -1px 0 0 rgb(0 0 0 / 75%);
58
+ padding-left: 37px;
59
+ @include sticky-left(62px, 501);
60
+ }
61
+
62
+ td:nth-of-type(n + 3) {
63
+ box-shadow:
64
+ inset 0 1px 0 0 rgb(0 0 0 / 75%),
65
+ inset 0 -1px 0 0 rgb(0 0 0 / 75%);
66
+ }
67
+
68
+ td:last-of-type {
69
+ box-shadow:
70
+ inset -1px 0 0 0 rgb(0 0 0 / 75%),
71
+ inset 0 1px 0 0 rgb(0 0 0 / 75%),
72
+ inset 0 -1px 0 0 rgb(0 0 0 / 75%);
73
+ }
74
+ }
75
+ }
76
+
77
+ tbody {
78
+ tr {
79
+ cursor: pointer;
80
+
81
+ td {
82
+ background: white;
83
+ box-shadow: none !important;
84
+
85
+ div:nth-child(1) {
86
+ color: #000;
87
+ @include ellipsify();
88
+ @include fonts.fonts(Roboto, 0.75rem, normal, normal, normal, normal, 0px);
89
+ }
90
+
91
+ div:nth-child(2) {
92
+ color: #a7a7a7;
93
+ @include ellipsify();
94
+ @include fonts.fonts(Roboto, 0.75rem, normal, 500, normal, normal, 0.3px);
95
+ }
96
+ }
97
+
98
+ td:nth-of-type(1) {
99
+ @include sticky-left(0px, 102);
100
+ }
101
+
102
+ @for $i from calc($tableStartIndex) through calc($tableEndIndex) {
103
+ td:nth-of-type(#{$i}) {
104
+ box-shadow: inset 0px -1px 0px 0px #d4d4d4 !important;
105
+ }
106
+ }
107
+
108
+ td:nth-of-type(#{$tableStartIndex}) {
109
+ box-shadow: inset 1px -1px 0px 0px #d4d4d4 !important;
110
+ }
111
+
112
+ td:last-of-type {
113
+ box-shadow: inset -1px -1px 0px 0px #d4d4d4 !important;
114
+ }
115
+
116
+ td.mat-cell:first-of-type {
117
+ padding-left: 5px !important;
118
+
119
+ i {
120
+ font-size: 1.25rem;
121
+ cursor: pointer;
122
+ position: relative;
123
+ bottom: 2px;
124
+ }
125
+
126
+ i.mdi-star-outline {
127
+ color: #e6e6e6;
128
+ }
129
+
130
+ i.mdi-star {
131
+ color: #ffc107;
132
+ opacity: 0.5;
133
+ }
134
+
135
+ i.mdi-cog-refresh {
136
+ color: #8bac2a;
137
+ }
138
+ }
139
+ }
140
+
141
+ @include overrideEmptyTrBorders(3);
142
+ }
143
+
144
+ &.no-data-table {
145
+ tbody tr:first-of-type {
146
+ td:nth-of-type(#{$tableStartIndex}) {
147
+ box-shadow: inset 1px 0px 0px 0px #d4d4d4 !important;
148
+ }
149
+
150
+ td:nth-of-type(#{$tableStartIndex + 1}),
151
+ td:nth-of-type(#{$tableStartIndex + 2}) {
152
+ box-shadow: none !important;
153
+ }
154
+ }
155
+ }
156
+
157
+ &.no-data-table div.horizontal-scroll-for-table-container {
158
+ height: calc(157px) !important;
159
+ }
160
+
161
+ .table-container::-webkit-scrollbar {
162
+ width: 4px;
163
+ height: 4px;
164
+ }
165
+
166
+ .table-container::-webkit-scrollbar-thumb {
167
+ border-radius: 4px;
168
+ background-color: rgba(0, 0, 0, 0.4) !important;
169
+ border: 1px solid rgba(0, 0, 0, 0.2);
170
+ }
171
+
172
+ .table-container::-webkit-scrollbar-track {
173
+ border: 1px solid rgba(0, 0, 0, 0.1) !important;
174
+ margin-top: 105px;
175
+ }
176
+ }
@@ -1,14 +1,14 @@
1
- :host ::ng-deep.ngb-dp-arrow button:disabled {
2
- color: #4a4a4a;
3
- background-color: #fff;
4
- opacity: 0.25;
5
- cursor: not-allowed;
6
- }
7
-
8
- :host ::ng-deep.ngb-dp-arrow button:disabled .ngb-dp-navigation-chevron {
9
- color: #4a4a4a;
10
- }
11
-
12
- :host ::ng-deep.ngb-dp-arrow button .ngb-dp-navigation-chevron {
13
- color: #000;
14
- }
1
+ :host ::ng-deep.ngb-dp-arrow button:disabled {
2
+ color: #4a4a4a;
3
+ background-color: #fff;
4
+ opacity: 0.25;
5
+ cursor: not-allowed;
6
+ }
7
+
8
+ :host ::ng-deep.ngb-dp-arrow button:disabled .ngb-dp-navigation-chevron {
9
+ color: #4a4a4a;
10
+ }
11
+
12
+ :host ::ng-deep.ngb-dp-arrow button .ngb-dp-navigation-chevron {
13
+ color: #000;
14
+ }
@@ -1,123 +1,123 @@
1
- @import "./colors", "./fonts";
2
-
3
- #dropdown-trigger {
4
- height: 1.875rem;
5
- background: white;
6
- border-radius: 2px;
7
- border: 1px solid $lightGray-8;
8
- width: 100%;
9
- text-align: left;
10
- display: flex;
11
- align-items: center;
12
- &:disabled {
13
- background-color: $gray74;
14
- opacity: 0.5;
15
- & .placeholder,
16
- .icon {
17
- color: #000;
18
- }
19
- }
20
- }
21
-
22
- .placeholder {
23
- color: $gray74;
24
- width: 100%;
25
- @include fonts(Roboto, 14px, normal, normal, normal, normal, normal);
26
- }
27
-
28
- // #dropdown-trigger:disabled .placeholder {
29
- // color: #000;
30
- // }
31
-
32
- .icon {
33
- font-size: 1.125rem;
34
- float: right;
35
- margin-left: auto;
36
- }
37
-
38
- .search-bar {
39
- margin: 0 7px 8px 7px;
40
- border: 1px solid $pinkSwan;
41
- height: 1.875rem;
42
- border-radius: 2px;
43
- input {
44
- outline: none;
45
- border: none;
46
- position: relative;
47
- bottom: 4px;
48
- width: calc(100% - 29px);
49
- }
50
-
51
- .search-icon {
52
- font-size: 1.125rem;
53
- color: $lightGray-7;
54
- margin: 5px;
55
- }
56
-
57
- .close-icon {
58
- cursor: pointer;
59
- }
60
- }
61
-
62
- ul {
63
- overflow-y: auto;
64
- padding-left: 0;
65
- padding-bottom: 0;
66
- margin-bottom: 0;
67
- max-height: calc(50vh - 80px) !important;
68
- }
69
-
70
- li {
71
- list-style-type: none;
72
- cursor: pointer;
73
- padding-inline: 10px;
74
- @include fonts(Roboto, 14px, normal, normal, normal, 2.14, normal);
75
- color: #4a4a4a;
76
- @extend .ellipsify;
77
- width: 100%;
78
- }
79
-
80
- ul::-webkit-scrollbar {
81
- width: 4px;
82
- height: 4px;
83
- }
84
-
85
- ul::-webkit-scrollbar-track {
86
- border: 1px solid rgba(0, 0, 0, 0.1);
87
- }
88
-
89
- ul::-webkit-scrollbar-thumb {
90
- border-radius: 4px;
91
- background-color: rgba(0, 0, 0, 0.4) !important;
92
- border: 1px solid rgba(0, 0, 0, 0.2);
93
- }
94
-
95
- li:hover {
96
- // color: white;
97
- background: #ebebeb;
98
- }
99
-
100
- li.active {
101
- color: white;
102
- background: $primary-color;
103
- }
104
-
105
- span.selected-item {
106
- background: transparent;
107
- @include fonts(Roboto, 14px, normal, normal, normal, normal, normal);
108
- color: #4a4a4a;
109
- @extend .ellipsify;
110
- width: calc(100% - 22px);
111
- display: inline-block;
112
- vertical-align: middle;
113
- }
114
-
115
- .ellipsify {
116
- white-space: nowrap;
117
- text-overflow: ellipsis;
118
- overflow: hidden;
119
- }
120
-
121
- ::ng-deep .cdk-overlay-container {
122
- z-index: 1051;
123
- }
1
+ @import "./colors", "./fonts";
2
+
3
+ #dropdown-trigger {
4
+ height: 1.875rem;
5
+ background: white;
6
+ border-radius: 2px;
7
+ border: 1px solid $lightGray-8;
8
+ width: 100%;
9
+ text-align: left;
10
+ display: flex;
11
+ align-items: center;
12
+ &:disabled {
13
+ background-color: $gray74;
14
+ opacity: 0.5;
15
+ & .placeholder,
16
+ .icon {
17
+ color: #000;
18
+ }
19
+ }
20
+ }
21
+
22
+ .placeholder {
23
+ color: $gray74;
24
+ width: 100%;
25
+ @include fonts(Roboto, 14px, normal, normal, normal, normal, normal);
26
+ }
27
+
28
+ // #dropdown-trigger:disabled .placeholder {
29
+ // color: #000;
30
+ // }
31
+
32
+ .icon {
33
+ font-size: 1.125rem;
34
+ float: right;
35
+ margin-left: auto;
36
+ }
37
+
38
+ .search-bar {
39
+ margin: 0 7px 8px 7px;
40
+ border: 1px solid $pinkSwan;
41
+ height: 1.875rem;
42
+ border-radius: 2px;
43
+ input {
44
+ outline: none;
45
+ border: none;
46
+ position: relative;
47
+ bottom: 4px;
48
+ width: calc(100% - 29px);
49
+ }
50
+
51
+ .search-icon {
52
+ font-size: 1.125rem;
53
+ color: $lightGray-7;
54
+ margin: 5px;
55
+ }
56
+
57
+ .close-icon {
58
+ cursor: pointer;
59
+ }
60
+ }
61
+
62
+ ul {
63
+ overflow-y: auto;
64
+ padding-left: 0;
65
+ padding-bottom: 0;
66
+ margin-bottom: 0;
67
+ max-height: calc(50vh - 80px) !important;
68
+ }
69
+
70
+ li {
71
+ list-style-type: none;
72
+ cursor: pointer;
73
+ padding-inline: 10px;
74
+ @include fonts(Roboto, 14px, normal, normal, normal, 2.14, normal);
75
+ color: #4a4a4a;
76
+ @extend .ellipsify;
77
+ width: 100%;
78
+ }
79
+
80
+ ul::-webkit-scrollbar {
81
+ width: 4px;
82
+ height: 4px;
83
+ }
84
+
85
+ ul::-webkit-scrollbar-track {
86
+ border: 1px solid rgba(0, 0, 0, 0.1);
87
+ }
88
+
89
+ ul::-webkit-scrollbar-thumb {
90
+ border-radius: 4px;
91
+ background-color: rgba(0, 0, 0, 0.4) !important;
92
+ border: 1px solid rgba(0, 0, 0, 0.2);
93
+ }
94
+
95
+ li:hover {
96
+ // color: white;
97
+ background: #ebebeb;
98
+ }
99
+
100
+ li.active {
101
+ color: white;
102
+ background: $primary-color;
103
+ }
104
+
105
+ span.selected-item {
106
+ background: transparent;
107
+ @include fonts(Roboto, 14px, normal, normal, normal, normal, normal);
108
+ color: #4a4a4a;
109
+ @extend .ellipsify;
110
+ width: calc(100% - 22px);
111
+ display: inline-block;
112
+ vertical-align: middle;
113
+ }
114
+
115
+ .ellipsify {
116
+ white-space: nowrap;
117
+ text-overflow: ellipsis;
118
+ overflow: hidden;
119
+ }
120
+
121
+ ::ng-deep .cdk-overlay-container {
122
+ z-index: 1051;
123
+ }