@annalib/anna-core 12.11.4 → 13.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/components/anna-icon-column/anna-icon-column.component.mjs +3 -3
- package/esm2020/lib/anna-core-shared-lib/components/anna-notify-icon-template/anna-notify-icon-template.component.mjs +3 -4
- package/esm2020/lib/anna-core-shared-lib/directives/show-ellipsis-text/show-ellipsis-text.directive.mjs +2 -2
- package/esm2020/lib/anna-core-shared-lib/models/anna-non-editable-gt-models.mjs +1 -1
- package/esm2020/lib/anna-core-shared-lib/services/anna-date-time-format.service.mjs +4 -4
- package/esm2020/lib/anna-core-shared-lib/services/anna-filter.service.mjs +58 -1
- package/esm2020/lib/anna-generic-table-lib/components/anna-column-filters/anna-column-time-filter/anna-column-time-filter.component.mjs +3 -3
- package/esm2020/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.mjs +11 -25
- package/fesm2015/annalib-anna-core.mjs +77 -34
- package/fesm2015/annalib-anna-core.mjs.map +1 -1
- package/fesm2020/annalib-anna-core.mjs +77 -34
- package/fesm2020/annalib-anna-core.mjs.map +1 -1
- package/lib/anna-core-shared-lib/models/anna-non-editable-gt-models.d.ts +6 -1
- package/lib/anna-core-shared-lib/services/anna-date-time-format.service.d.ts +2 -2
- package/lib/anna-core-shared-lib/services/anna-filter.service.d.ts +4 -0
- package/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.d.ts +3 -1
- package/package.json +1 -1
- package/src/lib/anna-common-scss/_generic-table-common.scss +53 -1
|
@@ -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;
|
|
@@ -108,5 +113,5 @@ export interface IActionItemTypeSTRING__ICON_OR_TEXT_ACTION {
|
|
|
108
113
|
additionalTextBeforeLink: string;
|
|
109
114
|
enableTooltipForAdditionalText: boolean;
|
|
110
115
|
}
|
|
111
|
-
export declare type IconToShow = "LIVE" | "PAY_FOR_PERFORMANCE_ACTIVE" | "PAY_FOR_PERFORMANCE" | "REJECTED" | "NOTIFY" | "AWAITING_APPROVAL" | "DELETED_ORDER";
|
|
116
|
+
export declare type IconToShow = "LIVE" | "PAY_FOR_PERFORMANCE_ACTIVE" | "PAY_FOR_PERFORMANCE" | "REJECTED" | "NOTIFY" | "AWAITING_APPROVAL" | "DELETED_ORDER" | "NEED_SELLER_CONFIRMATION";
|
|
112
117
|
export {};
|
|
@@ -9,9 +9,9 @@ export declare class AnnaDateTimeFormatService {
|
|
|
9
9
|
constructor();
|
|
10
10
|
convertToNgbDateStandardFormat(date: any): NgbDateType | NgbDate;
|
|
11
11
|
convertToNgbDate(date: any, parseFormat: any): NgbDateType | NgbDate;
|
|
12
|
-
formatToTwelveHrs(time: any, callRemoveZero: boolean): any;
|
|
12
|
+
static formatToTwelveHrs(time: any, callRemoveZero: boolean): any;
|
|
13
13
|
convertTotwentyFourHrsFormat(time: any, callAddZero: any): any;
|
|
14
|
-
removeZero(time: any): any;
|
|
14
|
+
static removeZero(time: any): any;
|
|
15
15
|
addZero(time: any): any;
|
|
16
16
|
sortByTimeAscending(a: any, b: any): number;
|
|
17
17
|
sortByTimeDescending(a: any, b: any): number;
|
|
@@ -69,6 +69,10 @@ export declare class AnnaFilterService {
|
|
|
69
69
|
}, key: string): boolean;
|
|
70
70
|
updateStateOfTheCurrentFilterTab(sortMap: Map<string, SortType>): void;
|
|
71
71
|
updateStateOfAllTheKeys(sortMap: Map<string, SortType>): void;
|
|
72
|
+
incrementHour(value: any): any;
|
|
73
|
+
decrementHour(value: any): any;
|
|
74
|
+
incrementMinute(value: any): any;
|
|
75
|
+
decrementMinute(value: any): any;
|
|
72
76
|
static ɵfac: i0.ɵɵFactoryDeclaration<AnnaFilterService, never>;
|
|
73
77
|
static ɵprov: i0.ɵɵInjectableDeclaration<AnnaFilterService>;
|
|
74
78
|
}
|
|
@@ -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
|
editableInputEdited: EventEmitter<any>;
|
|
@@ -301,8 +302,9 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
|
|
|
301
302
|
mouseEnterOnTextActionType(rowData: any, tooltipKey: string): void;
|
|
302
303
|
onClickableDataClicked(Rowdata: any, id: number): void;
|
|
303
304
|
removeTooltipOnScroll(): void;
|
|
305
|
+
iconClickedInTotalRow(colName: string): void;
|
|
304
306
|
editableInputValueChanged(value: any, row: any): void;
|
|
305
307
|
static ɵfac: i0.ɵɵFactoryDeclaration<AnnaNonEditableGenericTableComponent, 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"; "notificationIconHover": "notificationIconHover"; "notificationIconHoverLeave": "notificationIconHoverLeave"; "editableInputEdited": "editableInputEdited"; }, never, never, false, never>;
|
|
308
|
+
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"; "editableInputEdited": "editableInputEdited"; }, never, never, false, never>;
|
|
307
309
|
}
|
|
308
310
|
export {};
|
package/package.json
CHANGED
|
@@ -131,6 +131,58 @@
|
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
133
|
|
|
134
|
+
@mixin genericTableHeaderShadow($columnNumber){
|
|
135
|
+
.scroll-left-shadow-effect .header-row th:nth-of-type(#{$columnNumber}) {
|
|
136
|
+
border: none !important;
|
|
137
|
+
filter: drop-shadow(2px 0 2px colors.$lightGray-4);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
@mixin genericTableTotalRowShadow($columnNumber){
|
|
142
|
+
.scroll-left-shadow-effect .total-row td:nth-of-type(#{$columnNumber}) {
|
|
143
|
+
filter: drop-shadow(2px 0 2px colors.$lightGray-4);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
@mixin genericTableTableDataShadow($columnNumber){
|
|
148
|
+
.scroll-left-shadow-effect td:nth-of-type(#{$columnNumber}) {
|
|
149
|
+
filter: drop-shadow(2px 0 1px colors.$lightGray-4);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
@mixin genericTableOverrideHeaderShadow($columnNumber){
|
|
154
|
+
.scroll-left-shadow-effect .header-row th:nth-of-type(#{$columnNumber}) {
|
|
155
|
+
box-shadow: none !important;
|
|
156
|
+
border: none !important;
|
|
157
|
+
filter: none;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
@mixin genericTableOverrideTableDataShadow($columnNumber){
|
|
162
|
+
.scroll-left-shadow-effect td:nth-of-type(#{$columnNumber}) {
|
|
163
|
+
filter: none;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
@mixin overrideEmptyTrBorders($startIndex){
|
|
168
|
+
|
|
169
|
+
tr.no-border-tr:first-of-type{
|
|
170
|
+
|
|
171
|
+
td:nth-of-type(#{$startIndex}){
|
|
172
|
+
box-shadow: inset 1px 0px 0px 0px #d4d4d4 !important;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
td:nth-child(n+ #{$startIndex + 1}){
|
|
176
|
+
box-shadow: none !important;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
td:last-of-type{
|
|
180
|
+
box-shadow: inset -1px 0px 0px 0px #d4d4d4 !important
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
|
|
134
186
|
@mixin overrideEmptyTrBorders($startIndex) {
|
|
135
187
|
|
|
136
188
|
tr.no-border-tr:first-of-type {
|
|
@@ -147,4 +199,4 @@
|
|
|
147
199
|
box-shadow: inset -1px 0px 0px 0px #d4d4d4 !important
|
|
148
200
|
}
|
|
149
201
|
}
|
|
150
|
-
}
|
|
202
|
+
}
|