@annalib/anna-core 7.5.1 → 8.0.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.
- package/esm2020/lib/anna-core-shared-lib/models/anna-non-editable-gt-models.mjs +12 -2
- package/esm2020/lib/anna-core-shared-lib/services/anna-filter.service.mjs +2 -10
- package/esm2020/lib/anna-core-shared-lib/services/anna-generic-table.service.mjs +1 -3
- package/esm2020/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.mjs +15 -30
- package/fesm2015/annalib-anna-core.mjs +28 -41
- package/fesm2015/annalib-anna-core.mjs.map +1 -1
- package/fesm2020/annalib-anna-core.mjs +28 -41
- package/fesm2020/annalib-anna-core.mjs.map +1 -1
- package/lib/anna-core-shared-lib/models/anna-non-editable-gt-models.d.ts +37 -1
- package/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.d.ts +6 -6
- package/package.json +1 -1
- package/src/lib/anna-common-scss/_filters.scss +6 -2
- package/src/lib/anna-common-scss/_generic-table-common.scss +30 -16
|
@@ -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" | "
|
|
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, tooltipKey: string): 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
|
@@ -212,7 +212,11 @@ div.radio-container {
|
|
|
212
212
|
border-radius: $fs-2;
|
|
213
213
|
margin: $fs-4 $fs-7 $fs-3 $fs-7;
|
|
214
214
|
height: $fs-24;
|
|
215
|
-
padding: $fs-3
|
|
215
|
+
padding: $fs-3 8px $fs-3 $fs-8;
|
|
216
|
+
.search-bar-close {
|
|
217
|
+
margin-left: auto;
|
|
218
|
+
float: right;
|
|
219
|
+
}
|
|
216
220
|
}
|
|
217
221
|
|
|
218
222
|
.search-icon {
|
|
@@ -370,7 +374,7 @@ section.min-maxContainer {
|
|
|
370
374
|
label {
|
|
371
375
|
margin-bottom: 0;
|
|
372
376
|
color: $charcoal;
|
|
373
|
-
margin-top:
|
|
377
|
+
margin-top: 0.125rem;
|
|
374
378
|
margin-left: $fs-10;
|
|
375
379
|
font-weight: 700;
|
|
376
380
|
}
|
|
@@ -50,20 +50,34 @@
|
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
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
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
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
|
+
}
|