@annalib/anna-core 7.5.0 → 7.6.0

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,6 +8,8 @@ export interface IGtTableHeader {
8
8
  export interface IHeaderInfo {
9
9
  name: string;
10
10
  objectKey: string;
11
+ actionKey?: string;
12
+ tooltipKey?: string;
11
13
  isDisabledKey?: string;
12
14
  typeOfHeaderData: DATATYPE;
13
15
  typeOfBodyData: DATATYPE;
@@ -20,7 +22,7 @@ export interface IHeaderInfo {
20
22
  tooltip?: ITooltip;
21
23
  joinedFilterSortObjectKeys?: string;
22
24
  }
23
- declare type DATATYPE = "CHECKBOX" | "ICON" | "STRING" | "RADIO" | "" | "SVG_ICON" | "TEXT_ACTIONS" | "CLICKABLE_DATA" | "CLICKABLE_DATA_2" | "STRING__TEXT_ACTION" | "STRING__ICON_ACTION" | "STRING___ICON_OR_TEXT_ACTION" | "STRING___ICON_OR_TEXT_ACTION_1" | "STRING___ICON_OR_TEXT_ACTION_2" | "STRING___ICON_OR_TEXT_ACTION_3";
25
+ declare type DATATYPE = "CHECKBOX" | "ICON" | "STRING" | "RADIO" | "" | "SVG_ICON" | "TEXT_ACTIONS" | "CLICKABLE_DATA" | "STRING__TEXT_ACTION" | "STRING__ICON_ACTION" | "STRING___ICON_OR_TEXT_ACTION";
24
26
  declare type FILTERTYPE = "CHECKBOX" | "SLIDER" | "DATE" | "TIME" | "WEEK";
25
27
  export interface ITotalRowInfo {
26
28
  colspan: number;
@@ -69,4 +71,38 @@ export interface TextAction {
69
71
  class: string;
70
72
  isDisabled: boolean;
71
73
  }
74
+ export declare class ClickableItem {
75
+ id: any;
76
+ name: string;
77
+ isDisabled: boolean;
78
+ class: string;
79
+ showTooltip: boolean;
80
+ tooltipData: {
81
+ key: string;
82
+ value: string;
83
+ };
84
+ disableTooltip: boolean;
85
+ constructor(typeOfActionLinkForGt: any, name: string, isDisabled: boolean, className: string, showTooltip: boolean, tooltipData: {
86
+ key: string;
87
+ value: string;
88
+ });
89
+ }
90
+ export interface IActionItemTypeSTRING__ICON_OR_TEXT_ACTION {
91
+ id: any;
92
+ data: string;
93
+ iconClass: string;
94
+ showIcon: boolean;
95
+ disabledIcon: boolean;
96
+ linkClass: string;
97
+ showLink: boolean;
98
+ disabledLink: boolean;
99
+ showTooltip: boolean;
100
+ tooltipData: {
101
+ key: string;
102
+ value: string;
103
+ }[];
104
+ typeOfData: 'STRING' | 'ICON_TEXT_ACTION';
105
+ additionalTextBeforeLink: string;
106
+ disableTooltip: boolean;
107
+ }
72
108
  export {};
@@ -149,12 +149,11 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
149
149
  heightOfCheckboxTooltipFilter: number;
150
150
  isNoDataToDisplaySubject$: BehaviorSubject<boolean>;
151
151
  selectedStarredOrderId: string;
152
- userActionTableMetaData: {
153
- lastEmailResentAt: string;
154
- passwordValidity: string;
155
- status: UserActivationStatus;
156
- };
157
152
  UserActivationStatus: typeof UserActivationStatus;
153
+ textActionTooltip: {
154
+ key: string;
155
+ value: string;
156
+ }[];
158
157
  constructor(cdRef: ChangeDetectorRef, annaSortService: AnnaSortService, annaDateTimeFormatService: AnnaDateTimeFormatService, annaFilterService: AnnaFilterService);
159
158
  ngAfterViewChecked(): void;
160
159
  ngOnInit(): void;
@@ -276,7 +275,8 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
276
275
  setInitialRowsForTable(): void;
277
276
  spotDetailsDownloadClicked(parentChildOrTotalRow: "DATAROW" | "TOTALROW", rowdata?: any): void;
278
277
  tableContainerScrolled(event: any): void;
279
- mouseEnterOnStringTextActionType(rowData: any): void;
278
+ mouseEnterOnStringTextActionType(rowData: any, tooltipKey: string): void;
279
+ mouseEnterOnTextActionType(rowData: any): void;
280
280
  onClickableDataClicked(Rowdata: any, id: number): void;
281
281
  static ɵfac: i0.ɵɵFactoryDeclaration<AnnaNonEditableGenericTableComponent, never>;
282
282
  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"; }, { "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"; }, never, never>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@annalib/anna-core",
3
- "version": "7.5.0",
3
+ "version": "7.6.0",
4
4
  "peerDependencies": {
5
5
  "@angular-slider/ngx-slider": "2.0.3",
6
6
  "@angular/common": "^13.2.0",
@@ -370,7 +370,7 @@ section.min-maxContainer {
370
370
  label {
371
371
  margin-bottom: 0;
372
372
  color: $charcoal;
373
- margin-top: $fs-10;
373
+ margin-top: 0.125rem;
374
374
  margin-left: $fs-10;
375
375
  font-weight: 700;
376
376
  }
@@ -50,20 +50,34 @@
50
50
  }
51
51
  }
52
52
 
53
- // @mixin table-ellipses {
54
- // div {
55
- // text-overflow: ellipsis !important;
56
- // overflow: hidden !important;
57
- // white-space:nowrap !important;
58
- // }
59
- // }
53
+ @mixin tableDataLink() {
54
+ a {
55
+ cursor: pointer !important;
56
+ color: #268bff !important;
57
+ text-decoration: underline !important;
58
+ &.disabled {
59
+ color: #b7b6b6;
60
+ pointer-events: none;
61
+ text-decoration: none;
62
+ }
63
+ }
64
+ }
65
+
66
+ @mixin table-ellipses {
67
+ div {
68
+ text-overflow: ellipsis !important;
69
+ overflow: hidden !important;
70
+ white-space:nowrap !important;
71
+ }
72
+ }
60
73
 
61
- // @mixin table-ellipses-only-on-text-span {
62
- // span {
63
- // text-overflow: ellipsis !important;
64
- // overflow: hidden !important;
65
- // white-space:nowrap !important;
66
- // display: inline-block !important;
67
- // width: 80% !important;
68
- // }
69
- // }
74
+ @mixin table-ellipses-only-on-text-span {
75
+ span {
76
+ text-overflow: ellipsis !important;
77
+ overflow: hidden !important;
78
+ white-space:nowrap !important;
79
+ display: inline-block !important;
80
+ max-width: 92%;
81
+ width: fit-content;
82
+ }
83
+ }