@annalib/anna-core 24.0.60 → 24.0.61

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.
@@ -21,7 +21,7 @@ export interface IHeaderInfo {
21
21
  tooltip?: ITooltip;
22
22
  joinedFilterSortObjectKeys?: string;
23
23
  }
24
- type DATATYPE = "CHECKBOX" | "ICON" | "STRING" | "RADIO" | "" | "SVG_ICON" | "TEXT_ACTIONS" | "CLICKABLE_DATA" | "STRING__TEXT_ACTION" | "STRING__ICON_ACTION" | "STRING___ICON_OR_TEXT_ACTION" | "HTML" | "HTML_STRING" | "ICON_CELL" | "STRING_OR_INPUT" | "SINGLE_RADIO" | "STRING_WITH_TOOLTIP";
24
+ type DATATYPE = "CHECKBOX" | "ICON" | "STRING" | "RADIO" | "" | "SVG_ICON" | "TEXT_ACTIONS" | "CLICKABLE_DATA" | "STRING__TEXT_ACTION" | "STRING__ICON_ACTION" | "STRING___ICON_OR_TEXT_ACTION" | "HTML" | "HTML_STRING" | "ICON_CELL" | "STRING_OR_INPUT" | "SINGLE_RADIO" | "STRING_WITH_TOOLTIP" | 'STRING_WITH_ELLIPSIS_AND_READ_MORE_TOOLTIP';
25
25
  type FILTERTYPE = "CHECKBOX" | "SLIDER" | "DATE" | "TIME" | "WEEK";
26
26
  export interface ITotalRowInfo {
27
27
  colspan: number;
@@ -16,14 +16,14 @@ export declare class AnnaDateTimeFormatService {
16
16
  addZero(time: any): any;
17
17
  sortByTimeAscending(a: any, b: any): number;
18
18
  sortByTimeDescending(a: any, b: any): number;
19
- compareTime(a: dayjs.Dayjs, b: dayjs.Dayjs, unit: UnitType, isAsc: boolean): 0 | 1 | -1;
19
+ compareTime(a: dayjs.Dayjs, b: dayjs.Dayjs, unit: UnitType, isAsc: boolean): 1 | -1 | 0;
20
20
  convertNgbDateToMoment(ngbDate: NgbDate | NgbDateType): string;
21
21
  compareDate(a: string, b: string, isAsc: boolean): number;
22
22
  static formatTwentyFourHourTimeToHHMMAFormat(value: any, date?: string): string;
23
23
  static formatTwelveHourTimeToHHMMAFormat(timeValue: any, date?: string): string;
24
24
  formatDateAndHHMMATimeToStandardFormat(dateAndTime: any): string;
25
25
  compare(a: number | string, b: number | string, isAsc: boolean): number;
26
- sortDataByBroadcastTimeAsc(firstParamTime: string, secondParamTime: string, broadcastTime: string): 0 | 1 | -1;
26
+ sortDataByBroadcastTimeAsc(firstParamTime: string, secondParamTime: string, broadcastTime: string): 1 | -1 | 0;
27
27
  convertNgbDateToMomentInSpecificFormat(ngbDate: NgbDateType, format: string): string;
28
28
  getBroadcastWeek(startDate: any, format?: string): {
29
29
  start: dayjs.Dayjs;
@@ -73,6 +73,7 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
73
73
  notificationIconHoverLeave: EventEmitter<any>;
74
74
  editableInputEdited: EventEmitter<any>;
75
75
  radioButtonMessageIconClicked: EventEmitter<any>;
76
+ statusNotePopupOpened: EventEmitter<string>;
76
77
  numberOfSkeletonRows: number[][];
77
78
  tableDataWrapper: any[];
78
79
  rowChecked: boolean;
@@ -117,6 +118,9 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
117
118
  tooltipContainingTable: TableTooltipType;
118
119
  tableBottomBorderClass: string;
119
120
  showCheckboxesForTimeFilter: boolean;
121
+ statusNoteTooltip: any;
122
+ statusNoteForTooltip: string;
123
+ statusNoteForPopup: string;
120
124
  constructor(cdRef: ChangeDetectorRef, annaSortService: AnnaSortService, annaDateTimeFormatService: AnnaDateTimeFormatService, annaFilterService: AnnaFilterService);
121
125
  ngAfterViewChecked(): void;
122
126
  ngOnInit(): void;
@@ -169,9 +173,13 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
169
173
  changesMadeInEditableInputBox(event: any, editedObject: any, pasteEvent: boolean): void;
170
174
  editableInputValueChanged(value: any, row: any, keyEdited: string): void;
171
175
  radioButtonIconClicked(data: any): void;
176
+ setScrollToInitialPosition(): void;
172
177
  filterApplied(tableData: any[]): void;
173
178
  sortingApplied(tableData: any[]): void;
179
+ bindTheValueToStatusNote(note: string, tooltip: any): void;
180
+ showEntireStatusNote(): void;
181
+ closeStatusNoteTooltip(): void;
174
182
  static ɵfac: i0.ɵɵFactoryDeclaration<AnnaNonEditableGenericTableComponent, never>;
175
- static ɵcmp: i0.ɵɵComponentDeclaration<AnnaNonEditableGenericTableComponent, "anna-core-non-editable-generic-table-lib", never, { "showSkeletonLoading": { "alias": "showSkeletonLoading"; "required": false; }; "tableHeaders": { "alias": "tableHeaders"; "required": false; }; "tableData": { "alias": "tableData"; "required": false; }; "clonedTableData": { "alias": "clonedTableData"; "required": false; }; "gtGeneralConfig": { "alias": "gtGeneralConfig"; "required": false; }; "totalRowInfo": { "alias": "totalRowInfo"; "required": false; }; "gtDimension": { "alias": "gtDimension"; "required": false; }; "tableClass": { "alias": "tableClass"; "required": false; }; "maximumRowsWhichCanBeRenderedWithoutScroll": { "alias": "maximumRowsWhichCanBeRenderedWithoutScroll"; "required": false; }; "fixNumberOfRowsForPopup": { "alias": "fixNumberOfRowsForPopup"; "required": false; }; "limit": { "alias": "limit"; "required": false; }; "includeBorderInTableHeight": { "alias": "includeBorderInTableHeight"; "required": false; }; "downloadInProgress": { "alias": "downloadInProgress"; "required": false; }; "percentDone": { "alias": "percentDone"; "required": false; }; "starredInProgress": { "alias": "starredInProgress"; "required": false; }; "clickableRow": { "alias": "clickableRow"; "required": false; }; "setTableHeightWhenRowSizeIsFixed": { "alias": "setTableHeightWhenRowSizeIsFixed"; "required": false; }; "tableBorderBottomClassRequired": { "alias": "tableBorderBottomClassRequired"; "required": false; }; "hideSomeTds": { "alias": "hideSomeTds"; "required": false; }; "tdsHaveRowSpan": { "alias": "tdsHaveRowSpan"; "required": false; }; "multipleTablesPresent": { "alias": "multipleTablesPresent"; "required": false; }; "showOrHideToggleForTotalRow": { "alias": "showOrHideToggleForTotalRow"; "required": false; }; }, { "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"; "gtInnerHTMLClicked": "gtInnerHTMLClicked"; "downloadSpotDetails": "downloadSpotDetails"; "clickableDataClicked": "clickableDataClicked"; "totalRowIconClicked": "totalRowIconClicked"; "notificationIconHover": "notificationIconHover"; "notificationIconHoverLeave": "notificationIconHoverLeave"; "editableInputEdited": "editableInputEdited"; "radioButtonMessageIconClicked": "radioButtonMessageIconClicked"; }, never, never, true, never>;
183
+ static ɵcmp: i0.ɵɵComponentDeclaration<AnnaNonEditableGenericTableComponent, "anna-core-non-editable-generic-table-lib", never, { "showSkeletonLoading": { "alias": "showSkeletonLoading"; "required": false; }; "tableHeaders": { "alias": "tableHeaders"; "required": false; }; "tableData": { "alias": "tableData"; "required": false; }; "clonedTableData": { "alias": "clonedTableData"; "required": false; }; "gtGeneralConfig": { "alias": "gtGeneralConfig"; "required": false; }; "totalRowInfo": { "alias": "totalRowInfo"; "required": false; }; "gtDimension": { "alias": "gtDimension"; "required": false; }; "tableClass": { "alias": "tableClass"; "required": false; }; "maximumRowsWhichCanBeRenderedWithoutScroll": { "alias": "maximumRowsWhichCanBeRenderedWithoutScroll"; "required": false; }; "fixNumberOfRowsForPopup": { "alias": "fixNumberOfRowsForPopup"; "required": false; }; "limit": { "alias": "limit"; "required": false; }; "includeBorderInTableHeight": { "alias": "includeBorderInTableHeight"; "required": false; }; "downloadInProgress": { "alias": "downloadInProgress"; "required": false; }; "percentDone": { "alias": "percentDone"; "required": false; }; "starredInProgress": { "alias": "starredInProgress"; "required": false; }; "clickableRow": { "alias": "clickableRow"; "required": false; }; "setTableHeightWhenRowSizeIsFixed": { "alias": "setTableHeightWhenRowSizeIsFixed"; "required": false; }; "tableBorderBottomClassRequired": { "alias": "tableBorderBottomClassRequired"; "required": false; }; "hideSomeTds": { "alias": "hideSomeTds"; "required": false; }; "tdsHaveRowSpan": { "alias": "tdsHaveRowSpan"; "required": false; }; "multipleTablesPresent": { "alias": "multipleTablesPresent"; "required": false; }; "showOrHideToggleForTotalRow": { "alias": "showOrHideToggleForTotalRow"; "required": false; }; }, { "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"; "gtInnerHTMLClicked": "gtInnerHTMLClicked"; "downloadSpotDetails": "downloadSpotDetails"; "clickableDataClicked": "clickableDataClicked"; "totalRowIconClicked": "totalRowIconClicked"; "notificationIconHover": "notificationIconHover"; "notificationIconHoverLeave": "notificationIconHoverLeave"; "editableInputEdited": "editableInputEdited"; "radioButtonMessageIconClicked": "radioButtonMessageIconClicked"; "statusNotePopupOpened": "statusNotePopupOpened"; }, never, never, true, never>;
176
184
  }
177
185
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@annalib/anna-core",
3
- "version": "24.0.60",
3
+ "version": "24.0.61",
4
4
  "peerDependencies": {
5
5
  "@angular-slider/ngx-slider": "^16.0.1",
6
6
  "@angular/common": "^16.2.12",
@@ -4,4 +4,5 @@ $app-left-space: 40px;
4
4
  $app-right-space: 40px;
5
5
  $sidebar-minimized-width: 64px;
6
6
  $navbar-height: 50px;
7
- $app-max-width: calc($app-screen-max-width - $app-left-space);
7
+ // $app-max-width: calc($app-screen-max-width - $app-left-space);
8
+ $app-max-width: 1855px;
@@ -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
+ }
@@ -131,7 +131,7 @@ $intelli-filter-icon-default-map: (
131
131
  }
132
132
 
133
133
  .filter-divider {
134
- width: 1px;
134
+ width: 0.5px;
135
135
  margin-right: 8px;
136
136
  height: 24px;
137
137
  background: #111;