@annalib/anna-core 35.8.8 → 35.9.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.
- package/fesm2022/annalib-anna-core.mjs +38 -44
- package/fesm2022/annalib-anna-core.mjs.map +1 -1
- package/lib/anna-core-shared-lib/directives/show-ellipsis-text/show-ellipsis-text.directive.d.ts +1 -2
- package/lib/anna-core-shared-lib/models/anna-non-editable-gt-models.d.ts +1 -15
- package/lib/anna-core-shared-lib/services/anna-date-time-format.service.d.ts +2 -2
- package/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.d.ts +2 -19
- package/package.json +1 -1
- package/src/lib/anna-common-scss/_generic-table-common.scss +0 -22
package/lib/anna-core-shared-lib/directives/show-ellipsis-text/show-ellipsis-text.directive.d.ts
CHANGED
|
@@ -2,10 +2,9 @@ import { ElementRef } from "@angular/core";
|
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class ShowEllipsisTextOnHoverDirective {
|
|
4
4
|
private elementRef;
|
|
5
|
-
includeFullWidth: boolean;
|
|
6
5
|
constructor(elementRef: ElementRef);
|
|
7
6
|
onMouseEnter(): void;
|
|
8
7
|
checkPositionsInDecimals(domElement: Element): boolean;
|
|
9
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<ShowEllipsisTextOnHoverDirective, never>;
|
|
10
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ShowEllipsisTextOnHoverDirective, "[annaCoreShowEllipsisTextOnHover]", never, {
|
|
9
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ShowEllipsisTextOnHoverDirective, "[annaCoreShowEllipsisTextOnHover]", never, {}, {}, never, never, true, never>;
|
|
11
10
|
}
|
|
@@ -29,7 +29,7 @@ export interface IHeaderInfo {
|
|
|
29
29
|
showSplitedOptionsInFilter?: boolean[];
|
|
30
30
|
splitDelimiter?: string[];
|
|
31
31
|
}
|
|
32
|
-
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" | "STRING_ELLIPSIS_WITH_TABLE_TOOLTIP" | "STRING_WITH_TOOLTIP_INNER_HTML" | "ICON_CELL_AND_STRING_WITH_ELLIPSIS_AND_READ_MORE_TOOLTIP" | "SINGLE_SELECT_DROPDOWN" | "DIGIT_ONLY_INPUT"
|
|
32
|
+
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" | "STRING_ELLIPSIS_WITH_TABLE_TOOLTIP" | "STRING_WITH_TOOLTIP_INNER_HTML" | "ICON_CELL_AND_STRING_WITH_ELLIPSIS_AND_READ_MORE_TOOLTIP" | "SINGLE_SELECT_DROPDOWN" | "DIGIT_ONLY_INPUT";
|
|
33
33
|
type FILTERTYPE = "CHECKBOX" | "SLIDER" | "DATE" | "TIME" | "WEEK";
|
|
34
34
|
export interface ISvgOrIconTypeInGTTable {
|
|
35
35
|
showObjectKey: boolean;
|
|
@@ -38,20 +38,6 @@ export interface ISvgOrIconTypeInGTTable {
|
|
|
38
38
|
additionalText?: string;
|
|
39
39
|
additionalTextClass?: string;
|
|
40
40
|
}
|
|
41
|
-
export interface ITimeInputData {
|
|
42
|
-
selectedTimeAsAString: string;
|
|
43
|
-
startTime: string;
|
|
44
|
-
endTime: string;
|
|
45
|
-
showAsInput: boolean;
|
|
46
|
-
disableInput: boolean;
|
|
47
|
-
id: number | string;
|
|
48
|
-
icons?: {
|
|
49
|
-
id: string;
|
|
50
|
-
class: string;
|
|
51
|
-
tooltipMessage: string;
|
|
52
|
-
}[];
|
|
53
|
-
class?: string;
|
|
54
|
-
}
|
|
55
41
|
export declare class SvgOrIconTypeInGTTable {
|
|
56
42
|
showObjectKey: boolean;
|
|
57
43
|
svgOrIconName?: string;
|
|
@@ -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): 1 |
|
|
19
|
+
compareTime(a: dayjs.Dayjs, b: dayjs.Dayjs, unit: UnitType, isAsc: boolean): 1 | 0 | -1;
|
|
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): 1 |
|
|
26
|
+
sortDataByBroadcastTimeAsc(firstParamTime: string, secondParamTime: string, broadcastTime: string): 1 | 0 | -1;
|
|
27
27
|
convertNgbDateToMomentInSpecificFormat(ngbDate: NgbDateType, format: string): string;
|
|
28
28
|
getBroadcastWeek(startDate: any, format?: string): {
|
|
29
29
|
start: dayjs.Dayjs;
|
|
@@ -2,7 +2,7 @@ import { AfterViewChecked, ChangeDetectorRef, ElementRef, EventEmitter, OnChange
|
|
|
2
2
|
import { BehaviorSubject } from "rxjs";
|
|
3
3
|
import { GtColumnIconEmittedData, RatingSellerGroupHierarchy } from "../../../anna-core-shared-lib/models/anna-generic-data-type.model";
|
|
4
4
|
import { IWeekCalendar } from "../../../anna-core-shared-lib/models/anna-global-dropdown-config.model";
|
|
5
|
-
import { EllipsisWithTableTooltip, IGtGeneralConfig, IGtTableHeader, IHeaderInfo, InnerHTMLTooltipAction,
|
|
5
|
+
import { EllipsisWithTableTooltip, IGtGeneralConfig, IGtTableHeader, IHeaderInfo, InnerHTMLTooltipAction, ITotalRowInfo } from "../../../anna-core-shared-lib/models/anna-non-editable-gt-models";
|
|
6
6
|
import { AnnaDateTimeFormatService } from "../../../anna-core-shared-lib/services/anna-date-time-format.service";
|
|
7
7
|
import { AnnaFilterService } from "../../../anna-core-shared-lib/services/anna-filter.service";
|
|
8
8
|
import { AnnaSortService } from "../../../anna-core-shared-lib/services/anna-sort.service";
|
|
@@ -84,14 +84,6 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
|
|
|
84
84
|
row: any;
|
|
85
85
|
dropdownIndex: number;
|
|
86
86
|
}>;
|
|
87
|
-
timeSelected: EventEmitter<{
|
|
88
|
-
selectedTime: string[][];
|
|
89
|
-
selectedTimeConverted: {
|
|
90
|
-
startTime: string;
|
|
91
|
-
endTime: string;
|
|
92
|
-
};
|
|
93
|
-
rowData: any;
|
|
94
|
-
}>;
|
|
95
87
|
totalRowRadioButtonClicked: EventEmitter<string>;
|
|
96
88
|
totalRowRadioButtonIconClicked: EventEmitter<string>;
|
|
97
89
|
numberOfSkeletonRows: number[][];
|
|
@@ -105,7 +97,6 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
|
|
|
105
97
|
tooltipRadioTextMap: Map<any, any>;
|
|
106
98
|
filterTabObjects: any[];
|
|
107
99
|
tooltip: any;
|
|
108
|
-
timeTableRowtooltip: any;
|
|
109
100
|
disableColumnClearAllBtn: boolean;
|
|
110
101
|
margin: number;
|
|
111
102
|
multiWeekPickerConfig: IWeekCalendar;
|
|
@@ -169,10 +160,6 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
|
|
|
169
160
|
numberOfRowsToAppend: number;
|
|
170
161
|
digitInputmin: number;
|
|
171
162
|
digitInputMax: number;
|
|
172
|
-
timeInputData: {
|
|
173
|
-
time: string;
|
|
174
|
-
}[];
|
|
175
|
-
selectedRowForTimeEdit: any;
|
|
176
163
|
constructor(cdRef: ChangeDetectorRef, annaSortService: AnnaSortService, annaDateTimeFormatService: AnnaDateTimeFormatService, annaFilterService: AnnaFilterService);
|
|
177
164
|
ngAfterViewChecked(): void;
|
|
178
165
|
ngOnInit(): void;
|
|
@@ -238,11 +225,7 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
|
|
|
238
225
|
closeStatusNoteTooltip(): void;
|
|
239
226
|
onInputChange(rowData: any, key: string, value: Event): void;
|
|
240
227
|
toPascalCaseWithExceptions(input: string): string;
|
|
241
|
-
bindTheValueToTimeInputTooltip(tooltip: any): void;
|
|
242
|
-
closeTimeInputTooltip(): void;
|
|
243
|
-
timeInputTooltipClickedInTableBody(event: ITimeInputData, rowData: any): void;
|
|
244
|
-
timeSelectedInTableRow(event: string[][]): void;
|
|
245
228
|
static ɵfac: i0.ɵɵFactoryDeclaration<AnnaNonEditableGenericTableComponent, never>;
|
|
246
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AnnaNonEditableGenericTableComponent, "anna-core-non-editable-generic-table-lib", never, { "showSkeletonLoading": { "alias": "showSkeletonLoading"; "required": false; }; "tableHeaders": { "alias": "tableHeaders"; "required": true; }; "tableData": { "alias": "tableData"; "required": true; }; "clonedTableData": { "alias": "clonedTableData"; "required": true; }; "gtGeneralConfig": { "alias": "gtGeneralConfig"; "required": true; }; "totalRowInfo": { "alias": "totalRowInfo"; "required": false; }; "gtDimension": { "alias": "gtDimension"; "required": true; }; "extraHeaderRowForAdjustingColumnWidths": { "alias": "extraHeaderRowForAdjustingColumnWidths"; "required": false; }; "tableClass": { "alias": "tableClass"; "required": false; }; "maximumRowsWhichCanBeRenderedWithoutScroll": { "alias": "maximumRowsWhichCanBeRenderedWithoutScroll"; "required": false; }; "fixNumberOfRowsForPopup": { "alias": "fixNumberOfRowsForPopup"; "required": false; }; "fixRowsToRender": { "alias": "fixRowsToRender"; "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"; "digitOnlyInputChanged": "digitOnlyInputChanged"; "singleSelectDropdownValueEmit": "singleSelectDropdownValueEmit"; "
|
|
229
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AnnaNonEditableGenericTableComponent, "anna-core-non-editable-generic-table-lib", never, { "showSkeletonLoading": { "alias": "showSkeletonLoading"; "required": false; }; "tableHeaders": { "alias": "tableHeaders"; "required": true; }; "tableData": { "alias": "tableData"; "required": true; }; "clonedTableData": { "alias": "clonedTableData"; "required": true; }; "gtGeneralConfig": { "alias": "gtGeneralConfig"; "required": true; }; "totalRowInfo": { "alias": "totalRowInfo"; "required": false; }; "gtDimension": { "alias": "gtDimension"; "required": true; }; "extraHeaderRowForAdjustingColumnWidths": { "alias": "extraHeaderRowForAdjustingColumnWidths"; "required": false; }; "tableClass": { "alias": "tableClass"; "required": false; }; "maximumRowsWhichCanBeRenderedWithoutScroll": { "alias": "maximumRowsWhichCanBeRenderedWithoutScroll"; "required": false; }; "fixNumberOfRowsForPopup": { "alias": "fixNumberOfRowsForPopup"; "required": false; }; "fixRowsToRender": { "alias": "fixRowsToRender"; "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"; "digitOnlyInputChanged": "digitOnlyInputChanged"; "singleSelectDropdownValueEmit": "singleSelectDropdownValueEmit"; "totalRowRadioButtonClicked": "totalRowRadioButtonClicked"; "totalRowRadioButtonIconClicked": "totalRowRadioButtonIconClicked"; }, never, never, true, never>;
|
|
247
230
|
}
|
|
248
231
|
export {};
|
package/package.json
CHANGED
|
@@ -88,23 +88,6 @@
|
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
@mixin table-input-box($height, $borderColor) {
|
|
92
|
-
border: solid 1px $borderColor;
|
|
93
|
-
height: $height;
|
|
94
|
-
width: 99%;
|
|
95
|
-
text-overflow: ellipsis;
|
|
96
|
-
overflow: hidden;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
@mixin table-input-box-disabled($height, $borderColor, $bgColor, $color) {
|
|
100
|
-
border: solid 1px $borderColor;
|
|
101
|
-
height: $height;
|
|
102
|
-
background-color: $bgColor;
|
|
103
|
-
pointer-events: none !important;
|
|
104
|
-
cursor: default !important;
|
|
105
|
-
color: $color;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
91
|
@mixin table-ellipses-only-on-text-span {
|
|
109
92
|
span {
|
|
110
93
|
text-overflow: ellipsis !important;
|
|
@@ -116,11 +99,6 @@
|
|
|
116
99
|
}
|
|
117
100
|
}
|
|
118
101
|
|
|
119
|
-
@mixin noBorderTableHeader($bgColor) {
|
|
120
|
-
background: $bgColor !important;
|
|
121
|
-
box-shadow: none !important;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
102
|
@mixin genericTableHeaderShadow($columnNumber) {
|
|
125
103
|
.scroll-left-shadow-effect .header-row th:nth-of-type(#{$columnNumber}) {
|
|
126
104
|
border: none !important;
|