@annalib/anna-core 35.1.1 → 35.1.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.
@@ -2,9 +2,10 @@ 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;
5
6
  constructor(elementRef: ElementRef);
6
7
  onMouseEnter(): void;
7
8
  checkPositionsInDecimals(domElement: Element): boolean;
8
9
  static ɵfac: i0.ɵɵFactoryDeclaration<ShowEllipsisTextOnHoverDirective, never>;
9
- static ɵdir: i0.ɵɵDirectiveDeclaration<ShowEllipsisTextOnHoverDirective, "[annaCoreShowEllipsisTextOnHover]", never, {}, {}, never, never, true, never>;
10
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ShowEllipsisTextOnHoverDirective, "[annaCoreShowEllipsisTextOnHover]", never, { "includeFullWidth": { "alias": "includeFullWidth"; "required": false; }; }, {}, never, never, true, never>;
10
11
  }
@@ -1,3 +1,4 @@
1
+ import { SingleSelectIdText } from "../../anna-dropdown-lib/components/anna-single-select/models/anna-single-select.model";
1
2
  export interface IRadioButton {
2
3
  value: any;
3
4
  isDisabled: boolean;
@@ -92,6 +93,8 @@ export interface ICustomSingleSelect {
92
93
  placeholder: string;
93
94
  classes: string;
94
95
  position: Position;
96
+ showBlueBorderOnEdit?: boolean;
97
+ initialSelectedItem?: SingleSelectIdText;
95
98
  maxHeightOfList: number;
96
99
  minHeightOfList?: number;
97
100
  }
@@ -10,6 +10,7 @@ export interface IGtTableHeader {
10
10
  dummyHeader?: boolean;
11
11
  columnNumber?: number;
12
12
  }
13
+ export type TDCellClass = "CENTRE";
13
14
  export interface IHeaderInfo {
14
15
  name: string;
15
16
  objectKey: string;
@@ -26,19 +27,35 @@ export interface IHeaderInfo {
26
27
  showTooltipIcon: boolean;
27
28
  disableTooltipIcon?: boolean;
28
29
  tooltip?: ITooltip;
30
+ tdCellClass?: TDCellClass;
29
31
  joinedFilterSortObjectKeys?: string;
30
32
  showSplitedOptionsInFilter?: boolean[];
31
33
  splitDelimiter?: string[];
32
34
  }
33
- 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";
35
+ 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" | "SINGLE_SELECT_DROPDOWN_AND_ICON" | "DIGIT_ONLY_INPUT" | "HTML_STRING_AND_CLICKABLE_DATA" | "TIME_INPUT";
34
36
  type FILTERTYPE = "CHECKBOX" | "SLIDER" | "DATE" | "TIME" | "WEEK";
35
37
  export interface ISvgOrIconTypeInGTTable {
38
+ id?: string;
36
39
  showObjectKey: boolean;
37
40
  svgOrIconName?: string;
38
41
  svgOrIconTooltipMsg?: string;
39
42
  additionalText?: string;
40
43
  additionalTextClass?: string;
41
44
  }
45
+ export interface ITimeInputData {
46
+ selectedTimeAsAString: string;
47
+ startTime: string;
48
+ endTime: string;
49
+ showAsInput: boolean;
50
+ disableInput: boolean;
51
+ id: number | string;
52
+ icons?: {
53
+ id: string;
54
+ class: string;
55
+ tooltipMessage: string;
56
+ }[];
57
+ class?: string;
58
+ }
42
59
  export declare class SvgOrIconTypeInGTTable {
43
60
  showObjectKey: boolean;
44
61
  svgOrIconName?: string;
@@ -147,6 +164,15 @@ export declare class ClickableItem {
147
164
  value: string;
148
165
  });
149
166
  }
167
+ export declare class ITextAndClickableDataActionKey {
168
+ id: string | number;
169
+ innerHTMLText: string;
170
+ linkName: string;
171
+ showLink: boolean;
172
+ showText: boolean;
173
+ class: string;
174
+ constructor(id: string | number, innerHTMLText: string, linkName: string, showLink: boolean, showText: boolean, className?: string);
175
+ }
150
176
  export declare class IconCellActionKey {
151
177
  id: number | string;
152
178
  showIcon: boolean;
@@ -176,8 +202,10 @@ export interface IActionItemTypeWithStringIconOrTextAction {
176
202
  tooltipPlacement?: string;
177
203
  enableTooltipForAdditionalText?: boolean;
178
204
  additionalTextAfterLink?: string;
205
+ showSimpleIcon?: boolean;
206
+ tooltipDataForSimpleIcon?: string;
179
207
  }
180
- export type IconToShow = "LIVE" | "PAY_FOR_PERFORMANCE_ACTIVE" | "PAY_FOR_PERFORMANCE" | "REJECTED" | "NOTIFY" | "AWAITING_APPROVAL" | "DELETED_ORDER" | "NEED_SELLER_CONFIRMATION" | "NEED_BUYER_CONFIRMATION" | "AUTOMATED" | "WARNING_ICON" | "INFORMATION_OUTLINE_ICON" | "ALERT_OCTAGON_ICON" | "CANCEL_ICON" | "ALPHA_B_CIRCLE" | "ALPHA_R_CIRCLE" | "ALPHA_E_CIRCLE" | "ALPHA_A_CIRCLE" | "MESSAGE" | "CALENDAR";
208
+ export type IconToShow = "LIVE" | "PAY_FOR_PERFORMANCE_ACTIVE" | "PAY_FOR_PERFORMANCE" | "REJECTED" | "NOTIFY" | "AWAITING_APPROVAL" | "DELETED_ORDER" | "NEED_SELLER_CONFIRMATION" | "NEED_BUYER_CONFIRMATION" | "AUTOMATED" | "WARNING_ICON" | "INFORMATION_OUTLINE_ICON" | "ALERT_OCTAGON_ICON" | "CANCEL_ICON" | "ALPHA_B_CIRCLE" | "ALPHA_R_CIRCLE" | "ALPHA_E_CIRCLE" | "ALPHA_A_CIRCLE" | "MESSAGE" | "CALENDAR" | "EMAIL_ICON";
181
209
  export declare class TableClassNameConstant {
182
210
  static readonly defaultClass = "table-body-row ";
183
211
  static readonly selectedRow = "selected-row ";
@@ -234,4 +262,13 @@ export interface IDropdownConfigForGT {
234
262
  selectedItem: SingleSelectIdText;
235
263
  dropdownConfig: ICustomSingleSelect;
236
264
  }
265
+ export interface IDropdownConfigWithIconForGT {
266
+ itemList: SingleSelectIdText[];
267
+ selectedItem: SingleSelectIdText;
268
+ dropdownConfig: ICustomSingleSelect;
269
+ showIcon: boolean;
270
+ iconClass: string;
271
+ showTooltip: boolean;
272
+ tooltipData?: string;
273
+ }
237
274
  export {};
@@ -28,6 +28,7 @@ export declare class AnnaSingleSelectComponent implements OnInit, OnChanges {
28
28
  yPosition: any;
29
29
  width: number;
30
30
  heightOfCheckboxTooltipFilter: number;
31
+ showBlueBorder: boolean;
31
32
  buttonElement: ElementRef;
32
33
  constructor(annaGlobalConfig: AnnaGlobalConfigService, searchFilterPipe: AnnaFilterSearchedTextPipe);
33
34
  ngOnChanges(changes: SimpleChanges): void;
@@ -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, ITotalRowInfo } from "../../../anna-core-shared-lib/models/anna-non-editable-gt-models";
5
+ import { EllipsisWithTableTooltip, IGtGeneralConfig, IGtTableHeader, IHeaderInfo, InnerHTMLTooltipAction, ITimeInputData, 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";
@@ -74,6 +74,10 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
74
74
  editableInputEdited: EventEmitter<any>;
75
75
  radioButtonMessageIconClicked: EventEmitter<any>;
76
76
  statusNotePopupOpened: EventEmitter<string>;
77
+ textPopupOpened: EventEmitter<{
78
+ text: string;
79
+ columnName: string;
80
+ }>;
77
81
  digitOnlyInputChanged: EventEmitter<{
78
82
  data: any;
79
83
  key: string;
@@ -84,6 +88,14 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
84
88
  row: any;
85
89
  dropdownIndex: number;
86
90
  }>;
91
+ timeSelected: EventEmitter<{
92
+ selectedTime: string[][];
93
+ selectedTimeConverted: {
94
+ startTime: string;
95
+ endTime: string;
96
+ };
97
+ rowData: any;
98
+ }>;
87
99
  totalRowRadioButtonClicked: EventEmitter<string>;
88
100
  totalRowRadioButtonIconClicked: EventEmitter<string>;
89
101
  numberOfSkeletonRows: number[][];
@@ -97,6 +109,7 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
97
109
  tooltipRadioTextMap: Map<any, any>;
98
110
  filterTabObjects: any[];
99
111
  tooltip: any;
112
+ timeTableRowtooltip: any;
100
113
  disableColumnClearAllBtn: boolean;
101
114
  margin: number;
102
115
  multiWeekPickerConfig: IWeekCalendar;
@@ -153,6 +166,7 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
153
166
  statusNoteTooltip: any;
154
167
  statusNoteForTooltip: string;
155
168
  statusNoteForPopup: string;
169
+ currentColumnType: string;
156
170
  noOfRowsToCheck: number;
157
171
  toolTipInnerHtmlData: string;
158
172
  innerHtmlTooltip: any;
@@ -160,6 +174,10 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
160
174
  numberOfRowsToAppend: number;
161
175
  digitInputmin: number;
162
176
  digitInputMax: number;
177
+ timeInputData: {
178
+ time: string;
179
+ }[];
180
+ selectedRowForTimeEdit: any;
163
181
  constructor(cdRef: ChangeDetectorRef, annaSortService: AnnaSortService, annaDateTimeFormatService: AnnaDateTimeFormatService, annaFilterService: AnnaFilterService);
164
182
  ngAfterViewChecked(): void;
165
183
  ngOnInit(): void;
@@ -220,12 +238,17 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
220
238
  filterApplied(tableData: any[]): void;
221
239
  sortingApplied(tableData: any[]): void;
222
240
  bindTheValueToTableTooltip(obj: EllipsisWithTableTooltip, tooltip: any): void;
223
- bindTheValueToStatusNote(note: string, tooltip: any): void;
241
+ bindTheValueToStatusNote(note: string, tooltip: any, columnType?: string): void;
224
242
  showEntireStatusNote(): void;
243
+ getColumnName(columnType: string): string;
225
244
  closeStatusNoteTooltip(): void;
226
245
  onInputChange(rowData: any, key: string, value: Event): void;
227
246
  toPascalCaseWithExceptions(input: string): string;
247
+ bindTheValueToTimeInputTooltip(tooltip: any): void;
248
+ closeTimeInputTooltip(): void;
249
+ timeInputTooltipClickedInTableBody(event: ITimeInputData, rowData: any): void;
250
+ timeSelectedInTableRow(event: string[][]): void;
228
251
  static ɵfac: i0.ɵɵFactoryDeclaration<AnnaNonEditableGenericTableComponent, never>;
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>;
252
+ 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"; "textPopupOpened": "textPopupOpened"; "digitOnlyInputChanged": "digitOnlyInputChanged"; "singleSelectDropdownValueEmit": "singleSelectDropdownValueEmit"; "timeSelected": "timeSelected"; "totalRowRadioButtonClicked": "totalRowRadioButtonClicked"; "totalRowRadioButtonIconClicked": "totalRowRadioButtonIconClicked"; }, never, never, true, never>;
230
253
  }
231
254
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@annalib/anna-core",
3
- "version": "35.1.1",
3
+ "version": "35.1.2",
4
4
  "peerDependencies": {
5
5
  "@angular-slider/ngx-slider": "^19.0.0",
6
6
  "@angular/common": "^19.2.10",
@@ -88,6 +88,23 @@
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
+
91
108
  @mixin table-ellipses-only-on-text-span {
92
109
  span {
93
110
  text-overflow: ellipsis !important;
@@ -99,6 +116,11 @@
99
116
  }
100
117
  }
101
118
 
119
+ @mixin noBorderTableHeader($bgColor) {
120
+ background: $bgColor !important;
121
+ box-shadow: none !important;
122
+ }
123
+
102
124
  @mixin genericTableHeaderShadow($columnNumber) {
103
125
  .scroll-left-shadow-effect .header-row th:nth-of-type(#{$columnNumber}) {
104
126
  border: none !important;
@@ -403,6 +403,9 @@
403
403
  @mixin no-data-table($table-container-height, $box-shadow-map, $row-height-map: ()) {
404
404
  .table-container.no-data-table > div {
405
405
  height: $table-container-height !important;
406
+ tr td {
407
+ filter: none !important;
408
+ }
406
409
  }
407
410
 
408
411
  $box-shadow-start-index: map.get($box-shadow-map, "box-shadow-start-index");