@annalib/anna-core 35.13.1 → 36.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.
@@ -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;
@@ -25,19 +26,35 @@ export interface IHeaderInfo {
25
26
  showTooltipIcon: boolean;
26
27
  disableTooltipIcon?: boolean;
27
28
  tooltip?: ITooltip;
29
+ tdCellClass?: TDCellClass;
28
30
  joinedFilterSortObjectKeys?: string;
29
31
  showSplitedOptionsInFilter?: boolean[];
30
32
  splitDelimiter?: string[];
31
33
  }
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";
34
+ 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";
33
35
  type FILTERTYPE = "CHECKBOX" | "SLIDER" | "DATE" | "TIME" | "WEEK";
34
36
  export interface ISvgOrIconTypeInGTTable {
37
+ id?: string;
35
38
  showObjectKey: boolean;
36
39
  svgOrIconName?: string;
37
40
  svgOrIconTooltipMsg?: string;
38
41
  additionalText?: string;
39
42
  additionalTextClass?: string;
40
43
  }
44
+ export interface ITimeInputData {
45
+ selectedTimeAsAString: string;
46
+ startTime: string;
47
+ endTime: string;
48
+ showAsInput: boolean;
49
+ disableInput: boolean;
50
+ id: number | string;
51
+ icons?: {
52
+ id: string;
53
+ class: string;
54
+ tooltipMessage: string;
55
+ }[];
56
+ class?: string;
57
+ }
41
58
  export declare class SvgOrIconTypeInGTTable {
42
59
  showObjectKey: boolean;
43
60
  svgOrIconName?: string;
@@ -146,6 +163,15 @@ export declare class ClickableItem {
146
163
  value: string;
147
164
  });
148
165
  }
166
+ export declare class ITextAndClickableDataActionKey {
167
+ id: string | number;
168
+ innerHTMLText: string;
169
+ linkName: string;
170
+ showLink: boolean;
171
+ showText: boolean;
172
+ class: string;
173
+ constructor(id: string | number, innerHTMLText: string, linkName: string, showLink: boolean, showText: boolean, className?: string);
174
+ }
149
175
  export declare class IconCellActionKey {
150
176
  id: number | string;
151
177
  showIcon: boolean;
@@ -175,8 +201,10 @@ export interface IActionItemTypeWithStringIconOrTextAction {
175
201
  tooltipPlacement?: string;
176
202
  enableTooltipForAdditionalText?: boolean;
177
203
  additionalTextAfterLink?: string;
204
+ showSimpleIcon?: boolean;
205
+ tooltipDataForSimpleIcon?: string;
178
206
  }
179
- 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";
207
+ 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";
180
208
  export declare class TableClassNameConstant {
181
209
  static readonly defaultClass = "table-body-row ";
182
210
  static readonly selectedRow = "selected-row ";
@@ -233,4 +261,13 @@ export interface IDropdownConfigForGT {
233
261
  selectedItem: SingleSelectIdText;
234
262
  dropdownConfig: ICustomSingleSelect;
235
263
  }
264
+ export interface IDropdownConfigWithIconForGT {
265
+ itemList: SingleSelectIdText[];
266
+ selectedItem: SingleSelectIdText;
267
+ dropdownConfig: ICustomSingleSelect;
268
+ showIcon: boolean;
269
+ iconClass: string;
270
+ showTooltip: boolean;
271
+ tooltipData?: string;
272
+ }
236
273
  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";
@@ -84,6 +84,14 @@ 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
+ }>;
87
95
  totalRowRadioButtonClicked: EventEmitter<string>;
88
96
  totalRowRadioButtonIconClicked: EventEmitter<string>;
89
97
  numberOfSkeletonRows: number[][];
@@ -97,6 +105,7 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
97
105
  tooltipRadioTextMap: Map<any, any>;
98
106
  filterTabObjects: any[];
99
107
  tooltip: any;
108
+ timeTableRowtooltip: any;
100
109
  disableColumnClearAllBtn: boolean;
101
110
  margin: number;
102
111
  multiWeekPickerConfig: IWeekCalendar;
@@ -160,6 +169,10 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
160
169
  numberOfRowsToAppend: number;
161
170
  digitInputmin: number;
162
171
  digitInputMax: number;
172
+ timeInputData: {
173
+ time: string;
174
+ }[];
175
+ selectedRowForTimeEdit: any;
163
176
  constructor(cdRef: ChangeDetectorRef, annaSortService: AnnaSortService, annaDateTimeFormatService: AnnaDateTimeFormatService, annaFilterService: AnnaFilterService);
164
177
  ngAfterViewChecked(): void;
165
178
  ngOnInit(): void;
@@ -225,7 +238,11 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
225
238
  closeStatusNoteTooltip(): void;
226
239
  onInputChange(rowData: any, key: string, value: Event): void;
227
240
  toPascalCaseWithExceptions(input: string): string;
241
+ bindTheValueToTimeInputTooltip(tooltip: any): void;
242
+ closeTimeInputTooltip(): void;
243
+ timeInputTooltipClickedInTableBody(event: ITimeInputData, rowData: any): void;
244
+ timeSelectedInTableRow(event: string[][]): void;
228
245
  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>;
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"; "timeSelected": "timeSelected"; "totalRowRadioButtonClicked": "totalRowRadioButtonClicked"; "totalRowRadioButtonIconClicked": "totalRowRadioButtonIconClicked"; }, never, never, true, never>;
230
247
  }
231
248
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@annalib/anna-core",
3
- "version": "35.13.1",
3
+ "version": "36.0.0",
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");