@annalib/anna-core 12.5.0 → 12.6.2

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.
@@ -32,6 +32,11 @@ export interface ITotalRowInfo {
32
32
  tooltipMessage?: string;
33
33
  isActionColumn?: boolean;
34
34
  actionData?: ClickableItem[];
35
+ isIconColumn?: boolean;
36
+ iconData?: {
37
+ class: string;
38
+ disabled?: boolean;
39
+ };
35
40
  }
36
41
  export interface IGtHeaderConfig {
37
42
  iconColumn: boolean;
@@ -68,6 +68,7 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
68
68
  gtViewDetailClicked: EventEmitter<any>;
69
69
  downloadSpotDetails: EventEmitter<any>;
70
70
  clickableDataClicked: EventEmitter<any>;
71
+ totalRowIconClicked: EventEmitter<any>;
71
72
  notificationIconHover: EventEmitter<any>;
72
73
  notificationIconHoverLeave: EventEmitter<any>;
73
74
  numberOfSkeletonRows: number[][];
@@ -300,7 +301,8 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
300
301
  mouseEnterOnTextActionType(rowData: any, tooltipKey: string): void;
301
302
  onClickableDataClicked(Rowdata: any, id: number): void;
302
303
  removeTooltipOnScroll(): void;
304
+ iconClickedInTotalRow(colName: string): void;
303
305
  static ɵfac: i0.ɵɵFactoryDeclaration<AnnaNonEditableGenericTableComponent, never>;
304
- static ɵcmp: i0.ɵɵComponentDeclaration<AnnaNonEditableGenericTableComponent, "anna-core-non-editable-generic-table-lib", never, { "showSkeletonLoading": "showSkeletonLoading"; "tableHeaders": "tableHeaders"; "tableData": "tableData"; "clonedTableData": "clonedTableData"; "gtGeneralConfig": "gtGeneralConfig"; "totalRowInfo": "totalRowInfo"; "gtDimension": "gtDimension"; "tableClass": "tableClass"; "maximumRowsWhichCanBeRenderedWithoutScroll": "maximumRowsWhichCanBeRenderedWithoutScroll"; "limit": "limit"; "includeBorderInTableHeight": "includeBorderInTableHeight"; "downloadInProgress": "downloadInProgress"; "percentDone": "percentDone"; "starredInProgress": "starredInProgress"; "clickableRow": "clickableRow"; "setTableHeightWhenRowSizeIsFixed": "setTableHeightWhenRowSizeIsFixed"; "tableBorderBottomClassRequired": "tableBorderBottomClassRequired"; "hideSomeTds": "hideSomeTds"; "tdsHaveRowSpan": "tdsHaveRowSpan"; }, { "toggleCheckbox": "toggleCheckbox"; "toggleRowCheckbox": "toggleRowCheckbox"; "toggleHeaderCheckbox": "toggleHeaderCheckbox"; "undoIconClicked": "undoIconClicked"; "filterAppliedToTable": "filterAppliedToTable"; "sortingAppliedToTable": "sortingAppliedToTable"; "rowClicked": "rowClicked"; "radioButtonSelected": "radioButtonSelected"; "columnFilterOpened": "columnFilterOpened"; "columnFilterClosed": "columnFilterClosed"; "gtIconClicked": "gtIconClicked"; "gtSVGIconClicked": "gtSVGIconClicked"; "gtTextActionClicked": "gtTextActionClicked"; "gtViewDetailClicked": "gtViewDetailClicked"; "downloadSpotDetails": "downloadSpotDetails"; "clickableDataClicked": "clickableDataClicked"; "notificationIconHover": "notificationIconHover"; "notificationIconHoverLeave": "notificationIconHoverLeave"; }, never, never, false, never>;
306
+ static ɵcmp: i0.ɵɵComponentDeclaration<AnnaNonEditableGenericTableComponent, "anna-core-non-editable-generic-table-lib", never, { "showSkeletonLoading": "showSkeletonLoading"; "tableHeaders": "tableHeaders"; "tableData": "tableData"; "clonedTableData": "clonedTableData"; "gtGeneralConfig": "gtGeneralConfig"; "totalRowInfo": "totalRowInfo"; "gtDimension": "gtDimension"; "tableClass": "tableClass"; "maximumRowsWhichCanBeRenderedWithoutScroll": "maximumRowsWhichCanBeRenderedWithoutScroll"; "limit": "limit"; "includeBorderInTableHeight": "includeBorderInTableHeight"; "downloadInProgress": "downloadInProgress"; "percentDone": "percentDone"; "starredInProgress": "starredInProgress"; "clickableRow": "clickableRow"; "setTableHeightWhenRowSizeIsFixed": "setTableHeightWhenRowSizeIsFixed"; "tableBorderBottomClassRequired": "tableBorderBottomClassRequired"; "hideSomeTds": "hideSomeTds"; "tdsHaveRowSpan": "tdsHaveRowSpan"; }, { "toggleCheckbox": "toggleCheckbox"; "toggleRowCheckbox": "toggleRowCheckbox"; "toggleHeaderCheckbox": "toggleHeaderCheckbox"; "undoIconClicked": "undoIconClicked"; "filterAppliedToTable": "filterAppliedToTable"; "sortingAppliedToTable": "sortingAppliedToTable"; "rowClicked": "rowClicked"; "radioButtonSelected": "radioButtonSelected"; "columnFilterOpened": "columnFilterOpened"; "columnFilterClosed": "columnFilterClosed"; "gtIconClicked": "gtIconClicked"; "gtSVGIconClicked": "gtSVGIconClicked"; "gtTextActionClicked": "gtTextActionClicked"; "gtViewDetailClicked": "gtViewDetailClicked"; "downloadSpotDetails": "downloadSpotDetails"; "clickableDataClicked": "clickableDataClicked"; "totalRowIconClicked": "totalRowIconClicked"; "notificationIconHover": "notificationIconHover"; "notificationIconHoverLeave": "notificationIconHoverLeave"; }, never, never, false, never>;
305
307
  }
306
308
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@annalib/anna-core",
3
- "version": "12.5.0",
3
+ "version": "12.6.2",
4
4
  "peerDependencies": {
5
5
  "@angular-slider/ngx-slider": "^2.0.4",
6
6
  "@angular/common": "^15.2.9",
@@ -0,0 +1,165 @@
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: inset 1px 0 0 0 rgb(0 0 0 / 75%), inset 0 1px 0 0 rgb(0 0 0 / 75%), inset 0 -1px 0 0 rgb(0 0 0 / 75%);
55
+ padding-left: 37px;
56
+ @include sticky-left(62px, 501);
57
+ }
58
+
59
+ td:nth-of-type(n + 3) {
60
+ box-shadow: inset 0 1px 0 0 rgb(0 0 0 / 75%), inset 0 -1px 0 0 rgb(0 0 0 / 75%);
61
+ }
62
+
63
+ td:last-of-type {
64
+ box-shadow: inset -1px 0 0 0 rgb(0 0 0 / 75%), inset 0 1px 0 0 rgb(0 0 0 / 75%), inset 0 -1px 0 0 rgb(0 0 0 / 75%);
65
+ }
66
+ }
67
+ }
68
+
69
+ tbody {
70
+ tr {
71
+ cursor: pointer;
72
+
73
+ td {
74
+ background: white;
75
+ box-shadow: none !important;
76
+
77
+ div:nth-child(1) {
78
+ color: #000;
79
+ @include ellipsify();
80
+ @include fonts.fonts(Roboto, 0.75rem, normal, normal, normal, normal, 0px);
81
+ }
82
+
83
+ div:nth-child(2) {
84
+ color: #a7a7a7;
85
+ @include ellipsify();
86
+ @include fonts.fonts(Roboto, 0.75rem, normal, 500, normal, normal, 0.3px);
87
+ }
88
+ }
89
+
90
+ td:nth-of-type(1) {
91
+ @include sticky-left(0px, 102);
92
+ }
93
+
94
+ @for $i from calc($tableStartIndex) through calc($tableEndIndex) {
95
+ td:nth-of-type(#{$i}) {
96
+ box-shadow: inset 0px -1px 0px 0px #d4d4d4 !important;
97
+ }
98
+ }
99
+
100
+ td:nth-of-type(#{$tableStartIndex}) {
101
+ box-shadow: inset 1px -1px 0px 0px #d4d4d4 !important;
102
+ }
103
+
104
+ td:last-of-type {
105
+ box-shadow: inset -1px -1px 0px 0px #d4d4d4 !important;
106
+ }
107
+
108
+ td.mat-cell:first-of-type {
109
+ padding-left: 5px !important;
110
+
111
+ i {
112
+ font-size: 1.25rem;
113
+ cursor: pointer;
114
+ position: relative;
115
+ bottom: 2px;
116
+ }
117
+
118
+ i.mdi-star-outline {
119
+ color: #e6e6e6;
120
+ }
121
+
122
+ i.mdi-star {
123
+ color: #ffc107;
124
+ opacity: 0.5;
125
+ }
126
+ }
127
+ }
128
+
129
+ @include overrideEmptyTrBorders(3);
130
+ }
131
+
132
+ &.no-data-table {
133
+ tbody tr:first-of-type {
134
+ td:nth-of-type(#{$tableStartIndex}) {
135
+ box-shadow: inset 1px 0px 0px 0px #d4d4d4 !important;
136
+ }
137
+
138
+ td:nth-of-type(#{$tableStartIndex + 1}),
139
+ td:nth-of-type(#{$tableStartIndex + 2}) {
140
+ box-shadow: none !important
141
+ }
142
+ }
143
+ }
144
+
145
+ &.no-data-table div.horizontal-scroll-for-table-container {
146
+ height: calc(162px) !important;
147
+ }
148
+
149
+ .table-container::-webkit-scrollbar {
150
+ width: 4px;
151
+ height: 4px;
152
+ }
153
+
154
+ .table-container::-webkit-scrollbar-thumb {
155
+ border-radius: 4px;
156
+ background-color: rgba(0, 0, 0, 0.4) !important;
157
+ border: 1px solid rgba(0, 0, 0, 0.2);
158
+ }
159
+
160
+ .table-container::-webkit-scrollbar-track {
161
+ border: 1px solid rgba(0, 0, 0, 0.1) !important;
162
+ margin-top: 105px;
163
+ }
164
+
165
+ }
@@ -1,4 +1,5 @@
1
- @import "./fonts", "./colors";
1
+ @use "./fonts";
2
+ @import "./colors";
2
3
 
3
4
  @mixin easy-filters() {
4
5
  display: flex;
@@ -34,4 +35,28 @@
34
35
  cursor: default;
35
36
  pointer-events: none;
36
37
  }
38
+ }
39
+
40
+ button.intelli-filter{
41
+ @include fonts.fonts(Roboto, 0.75rem, normal, 500, normal, normal, 0.6px);
42
+ color: #268bff;
43
+ padding: 5px 8px;
44
+ border: 1px solid #268bff;
45
+ background: white;
46
+ border-radius: 0.75rem;
47
+ height: 1.5rem;
48
+ margin-right: 8px;
49
+ }
50
+
51
+ button.intelli-filter.active{
52
+ color: white;
53
+ background: #268bff;
54
+ }
55
+
56
+ button.intelli-filter:disabled {
57
+ border: 1px solid #bdbdbd;
58
+ color: #4a4a4a;
59
+ background: #bdbdbd;
60
+ opacity: .5;
61
+ cursor: not-allowed;
37
62
  }
@@ -1,3 +1,6 @@
1
+ @use "./fonts";
2
+ @use "./colors";
3
+
1
4
  @mixin no-data-to-display-gt($tableHeight, $rowHeight, $noDataMarginTop) {
2
5
  .table-container {
3
6
  height: calc($tableHeight) !important;
@@ -115,3 +118,56 @@
115
118
  z-index: $z-index;
116
119
  }
117
120
 
121
+
122
+ @mixin genericTableHeaderShadow($columnNumber){
123
+ .scroll-left-shadow-effect .header-row th:nth-of-type(#{$columnNumber}) {
124
+ border: none !important;
125
+ filter: drop-shadow(2px 0 2px colors.$lightGray-4);
126
+ }
127
+ }
128
+
129
+ @mixin genericTableTotalRowShadow($columnNumber){
130
+ .scroll-left-shadow-effect .total-row td:nth-of-type(#{$columnNumber}) {
131
+ filter: drop-shadow(2px 0 2px colors.$lightGray-4);
132
+ }
133
+ }
134
+
135
+ @mixin genericTableTableDataShadow($columnNumber){
136
+ .scroll-left-shadow-effect td:nth-of-type(#{$columnNumber}) {
137
+ filter: drop-shadow(2px 0 1px colors.$lightGray-4);
138
+ }
139
+ }
140
+
141
+ @mixin genericTableOverrideHeaderShadow($columnNumber){
142
+ .scroll-left-shadow-effect .header-row th:nth-of-type(#{$columnNumber}) {
143
+ box-shadow: none !important;
144
+ border: none !important;
145
+ filter: none;
146
+ }
147
+ }
148
+
149
+ @mixin genericTableOverrideTableDataShadow($columnNumber){
150
+ .scroll-left-shadow-effect td:nth-of-type(#{$columnNumber}) {
151
+ filter: none;
152
+ }
153
+ }
154
+
155
+ @mixin overrideEmptyTrBorders($startIndex){
156
+
157
+ tr.no-border-tr:first-of-type{
158
+
159
+ td:nth-of-type(#{$startIndex}){
160
+ box-shadow: inset 1px 0px 0px 0px #d4d4d4 !important;
161
+ }
162
+
163
+ td:nth-child(n+ #{$startIndex + 1}){
164
+ box-shadow: none !important;
165
+ }
166
+
167
+ td:last-of-type{
168
+ box-shadow: inset -1px 0px 0px 0px #d4d4d4 !important
169
+ }
170
+ }
171
+ }
172
+
173
+