@annalib/anna-core 24.0.21 → 24.0.22
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/esm2022/lib/anna-core-shared-lib/models/anna-non-editable-gt-models.mjs +1 -11
- package/esm2022/lib/anna-core-shared-lib/services/anna-date-time-format.service.mjs +6 -6
- package/esm2022/lib/anna-generic-table-lib/components/anna-column-filters/anna-column-time-filter/anna-column-time-filter.component.mjs +3 -3
- package/esm2022/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.mjs +3 -14
- package/fesm2022/annalib-anna-core.mjs +10 -31
- package/fesm2022/annalib-anna-core.mjs.map +1 -1
- package/lib/anna-core-shared-lib/models/anna-non-editable-gt-models.d.ts +1 -15
- package/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.d.ts +1 -9
- package/package.json +1 -1
- package/src/lib/anna-common-scss/_easy-filter.scss +138 -138
- package/src/lib/anna-common-scss/_mat-button-toggle.scss +1 -1
|
@@ -21,7 +21,7 @@ export interface IHeaderInfo {
|
|
|
21
21
|
tooltip?: ITooltip;
|
|
22
22
|
joinedFilterSortObjectKeys?: string;
|
|
23
23
|
}
|
|
24
|
-
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"
|
|
24
|
+
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";
|
|
25
25
|
type FILTERTYPE = "CHECKBOX" | "SLIDER" | "DATE" | "TIME" | "WEEK";
|
|
26
26
|
export interface ITotalRowInfo {
|
|
27
27
|
colspan: number;
|
|
@@ -126,18 +126,4 @@ export interface IActionItemTypeWithStringIconOrTextAction {
|
|
|
126
126
|
enableTooltipForAdditionalText?: boolean;
|
|
127
127
|
}
|
|
128
128
|
export type IconToShow = "LIVE" | "PAY_FOR_PERFORMANCE_ACTIVE" | "PAY_FOR_PERFORMANCE" | "REJECTED" | "NOTIFY" | "AWAITING_APPROVAL" | "DELETED_ORDER" | "NEED_SELLER_CONFIRMATION" | "NEED_BUYER_CONFIRMATION";
|
|
129
|
-
export declare class EllipsisWithTableTooltip {
|
|
130
|
-
tooltipHeader: string;
|
|
131
|
-
tableHeaders: HeaderWithObjectKey[];
|
|
132
|
-
tableData: any[];
|
|
133
|
-
cellValue: string;
|
|
134
|
-
tooltipHoverText: string;
|
|
135
|
-
showTooltip: boolean;
|
|
136
|
-
constructor(heading: string, tableHeaders: HeaderWithObjectKey[], tableData: any[], cellValue: string, tooltipText: string, showTooltip: boolean);
|
|
137
|
-
}
|
|
138
|
-
export interface HeaderWithObjectKey {
|
|
139
|
-
headerName: string;
|
|
140
|
-
objectKey: string;
|
|
141
|
-
width: string;
|
|
142
|
-
}
|
|
143
129
|
export {};
|
|
@@ -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 {
|
|
5
|
+
import { IGtGeneralConfig, IGtTableHeader, IHeaderInfo, 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";
|
|
@@ -96,13 +96,6 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
|
|
|
96
96
|
};
|
|
97
97
|
sellerGroupHierarchy: RatingSellerGroupHierarchy[];
|
|
98
98
|
showFilterTooltipTabs: boolean;
|
|
99
|
-
ellispsisWithTableTooltip: {
|
|
100
|
-
open: () => void;
|
|
101
|
-
close: () => void;
|
|
102
|
-
};
|
|
103
|
-
ellipsisWithTooltipHeading: string;
|
|
104
|
-
ellipsisWithTooltipTableHeaders: any[];
|
|
105
|
-
ellipsisWithTooltipTableData: any[];
|
|
106
99
|
isScrolledLeft: boolean;
|
|
107
100
|
rowBorderWidth: number;
|
|
108
101
|
sameTooltipClicked: boolean;
|
|
@@ -178,7 +171,6 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
|
|
|
178
171
|
radioButtonIconClicked(data: any): void;
|
|
179
172
|
filterApplied(tableData: any[]): void;
|
|
180
173
|
sortingApplied(tableData: any[]): void;
|
|
181
|
-
bindTheValueToTableTooltip(obj: EllipsisWithTableTooltip, tooltip: any): void;
|
|
182
174
|
static ɵfac: i0.ɵɵFactoryDeclaration<AnnaNonEditableGenericTableComponent, never>;
|
|
183
175
|
static ɵcmp: i0.ɵɵComponentDeclaration<AnnaNonEditableGenericTableComponent, "anna-core-non-editable-generic-table-lib", never, { "showSkeletonLoading": { "alias": "showSkeletonLoading"; "required": false; }; "tableHeaders": { "alias": "tableHeaders"; "required": false; }; "tableData": { "alias": "tableData"; "required": false; }; "clonedTableData": { "alias": "clonedTableData"; "required": false; }; "gtGeneralConfig": { "alias": "gtGeneralConfig"; "required": false; }; "totalRowInfo": { "alias": "totalRowInfo"; "required": false; }; "gtDimension": { "alias": "gtDimension"; "required": false; }; "tableClass": { "alias": "tableClass"; "required": false; }; "maximumRowsWhichCanBeRenderedWithoutScroll": { "alias": "maximumRowsWhichCanBeRenderedWithoutScroll"; "required": false; }; "fixNumberOfRowsForPopup": { "alias": "fixNumberOfRowsForPopup"; "required": false; }; "limit": { "alias": "limit"; "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"; }, never, never, true, never>;
|
|
184
176
|
}
|
package/package.json
CHANGED
|
@@ -1,138 +1,138 @@
|
|
|
1
|
-
@use "./fonts" as *;
|
|
2
|
-
@use "./colors" as *;
|
|
3
|
-
@use "sass:map";
|
|
4
|
-
|
|
5
|
-
$intelli-filter-default-map: (
|
|
6
|
-
"inactive-text-color": $primary-color,
|
|
7
|
-
"inactive-border-color": $primary-color,
|
|
8
|
-
"inactive-bg-color": white,
|
|
9
|
-
"active-bg-color": $primary-color,
|
|
10
|
-
"active-text-color": white,
|
|
11
|
-
"active-border-color": $primary-color,
|
|
12
|
-
);
|
|
13
|
-
|
|
14
|
-
@mixin intelli-filter-default($padding: 5px 8px) {
|
|
15
|
-
button.intelli-filter {
|
|
16
|
-
@include fonts(Roboto, 0.75rem, normal, 500, normal, normal, 0.6px);
|
|
17
|
-
border-radius: 0.75rem;
|
|
18
|
-
height: 1.5rem;
|
|
19
|
-
margin-right: 8px;
|
|
20
|
-
display: inline-flex;
|
|
21
|
-
align-items: center;
|
|
22
|
-
padding: $padding;
|
|
23
|
-
|
|
24
|
-
&:disabled {
|
|
25
|
-
border: 1px solid #bdbdbd !important;
|
|
26
|
-
color: #4a4a4a !important;
|
|
27
|
-
background: #bdbdbd !important;
|
|
28
|
-
opacity: 0.5;
|
|
29
|
-
cursor: not-allowed;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
@mixin intelli-filter-custom-styling($intelli-filter-map: $intelli-filter-default-map) {
|
|
35
|
-
$intelli-filter-inactive-text-color: map.get($intelli-filter-map, "inactive-text-color");
|
|
36
|
-
$intelli-filter-inactive-border-color: map.get($intelli-filter-map, "inactive-border-color");
|
|
37
|
-
$intelli-filter-inactive-bg-color: map.get($intelli-filter-map, "inactive-bg-color");
|
|
38
|
-
|
|
39
|
-
$intelli-filter-active-bg-color: map.get($intelli-filter-map, "active-bg-color");
|
|
40
|
-
$intelli-filter-active-text-color: map.get($intelli-filter-map, "active-text-color");
|
|
41
|
-
$intelli-filter-active-border-color: map.get($intelli-filter-map, "active-border-color");
|
|
42
|
-
|
|
43
|
-
color: $intelli-filter-inactive-text-color;
|
|
44
|
-
border: 1px solid $intelli-filter-inactive-border-color;
|
|
45
|
-
background: $intelli-filter-inactive-bg-color;
|
|
46
|
-
|
|
47
|
-
&.active {
|
|
48
|
-
color: $intelli-filter-active-text-color !important;
|
|
49
|
-
background: $intelli-filter-active-bg-color !important;
|
|
50
|
-
border: 1px solid $intelli-filter-active-border-color !important;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
$only-enabled-default-map: (
|
|
55
|
-
"text-color": white,
|
|
56
|
-
"bg-color": $primary-color,
|
|
57
|
-
);
|
|
58
|
-
|
|
59
|
-
@mixin only-enabled-filter($enabled-styling: $only-enabled-default-map) {
|
|
60
|
-
$color: map.get($enabled-styling, "text-color");
|
|
61
|
-
$bg-color: map.get($enabled-styling, "bg-color");
|
|
62
|
-
|
|
63
|
-
button.only-enabled-button {
|
|
64
|
-
color: $color;
|
|
65
|
-
background: $bg-color;
|
|
66
|
-
cursor: default;
|
|
67
|
-
pointer-events: none;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
$intelli-filter-icon-default-map: (
|
|
72
|
-
"icon-font-size": 14.5px,
|
|
73
|
-
"icon-margin-right": 4px,
|
|
74
|
-
"active-icon-color": white,
|
|
75
|
-
);
|
|
76
|
-
|
|
77
|
-
@mixin intelli-filter-icons-styling($icon-styling: $intelli-filter-icon-default-map) {
|
|
78
|
-
$icon-font-size: map.get($icon-styling, "icon-font-size");
|
|
79
|
-
$icon-margin-right: map.get($icon-styling, "icon-margin-right");
|
|
80
|
-
$icon-active-color: map.get($icon-styling, "active-icon-color");
|
|
81
|
-
|
|
82
|
-
button.intelli-filter i {
|
|
83
|
-
font-size: $icon-font-size;
|
|
84
|
-
margin-right: $icon-margin-right;
|
|
85
|
-
display: flex;
|
|
86
|
-
vertical-align: middle;
|
|
87
|
-
|
|
88
|
-
&.mdi-star {
|
|
89
|
-
color: $amber;
|
|
90
|
-
opacity: 0.5;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
&.mdi-alert {
|
|
94
|
-
color: #f97b07;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
&.mdi-bell {
|
|
98
|
-
color: #f3bd18;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
&.mdi-file-remove-outline {
|
|
102
|
-
color: #f44336;
|
|
103
|
-
margin-right: 2px;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
button.intelli-filter.active {
|
|
108
|
-
::ng-deep svg {
|
|
109
|
-
g {
|
|
110
|
-
stroke: $icon-active-color !important;
|
|
111
|
-
fill: $icon-active-color !important;
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
i {
|
|
116
|
-
color: $icon-active-color;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
i.mdi-star {
|
|
120
|
-
color: #ffc107;
|
|
121
|
-
opacity: 0.9;
|
|
122
|
-
display: flex;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
.filter-label {
|
|
128
|
-
@include fonts(Roboto, 0.875rem, normal, normal, normal, normal, normal);
|
|
129
|
-
color: $charcoal;
|
|
130
|
-
margin-bottom: 4px;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
.filter-divider {
|
|
134
|
-
width: 1px;
|
|
135
|
-
margin-right: 8px;
|
|
136
|
-
height: 24px;
|
|
137
|
-
background: #111;
|
|
138
|
-
}
|
|
1
|
+
@use "./fonts" as *;
|
|
2
|
+
@use "./colors" as *;
|
|
3
|
+
@use "sass:map";
|
|
4
|
+
|
|
5
|
+
$intelli-filter-default-map: (
|
|
6
|
+
"inactive-text-color": $primary-color,
|
|
7
|
+
"inactive-border-color": $primary-color,
|
|
8
|
+
"inactive-bg-color": white,
|
|
9
|
+
"active-bg-color": $primary-color,
|
|
10
|
+
"active-text-color": white,
|
|
11
|
+
"active-border-color": $primary-color,
|
|
12
|
+
);
|
|
13
|
+
|
|
14
|
+
@mixin intelli-filter-default($padding: 5px 8px) {
|
|
15
|
+
button.intelli-filter {
|
|
16
|
+
@include fonts(Roboto, 0.75rem, normal, 500, normal, normal, 0.6px);
|
|
17
|
+
border-radius: 0.75rem;
|
|
18
|
+
height: 1.5rem;
|
|
19
|
+
margin-right: 8px;
|
|
20
|
+
display: inline-flex;
|
|
21
|
+
align-items: center;
|
|
22
|
+
padding: $padding;
|
|
23
|
+
|
|
24
|
+
&:disabled {
|
|
25
|
+
border: 1px solid #bdbdbd !important;
|
|
26
|
+
color: #4a4a4a !important;
|
|
27
|
+
background: #bdbdbd !important;
|
|
28
|
+
opacity: 0.5;
|
|
29
|
+
cursor: not-allowed;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@mixin intelli-filter-custom-styling($intelli-filter-map: $intelli-filter-default-map) {
|
|
35
|
+
$intelli-filter-inactive-text-color: map.get($intelli-filter-map, "inactive-text-color");
|
|
36
|
+
$intelli-filter-inactive-border-color: map.get($intelli-filter-map, "inactive-border-color");
|
|
37
|
+
$intelli-filter-inactive-bg-color: map.get($intelli-filter-map, "inactive-bg-color");
|
|
38
|
+
|
|
39
|
+
$intelli-filter-active-bg-color: map.get($intelli-filter-map, "active-bg-color");
|
|
40
|
+
$intelli-filter-active-text-color: map.get($intelli-filter-map, "active-text-color");
|
|
41
|
+
$intelli-filter-active-border-color: map.get($intelli-filter-map, "active-border-color");
|
|
42
|
+
|
|
43
|
+
color: $intelli-filter-inactive-text-color;
|
|
44
|
+
border: 1px solid $intelli-filter-inactive-border-color;
|
|
45
|
+
background: $intelli-filter-inactive-bg-color;
|
|
46
|
+
|
|
47
|
+
&.active {
|
|
48
|
+
color: $intelli-filter-active-text-color !important;
|
|
49
|
+
background: $intelli-filter-active-bg-color !important;
|
|
50
|
+
border: 1px solid $intelli-filter-active-border-color !important;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
$only-enabled-default-map: (
|
|
55
|
+
"text-color": white,
|
|
56
|
+
"bg-color": $primary-color,
|
|
57
|
+
);
|
|
58
|
+
|
|
59
|
+
@mixin only-enabled-filter($enabled-styling: $only-enabled-default-map) {
|
|
60
|
+
$color: map.get($enabled-styling, "text-color");
|
|
61
|
+
$bg-color: map.get($enabled-styling, "bg-color");
|
|
62
|
+
|
|
63
|
+
button.only-enabled-button {
|
|
64
|
+
color: $color;
|
|
65
|
+
background: $bg-color;
|
|
66
|
+
cursor: default;
|
|
67
|
+
pointer-events: none;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
$intelli-filter-icon-default-map: (
|
|
72
|
+
"icon-font-size": 14.5px,
|
|
73
|
+
"icon-margin-right": 4px,
|
|
74
|
+
"active-icon-color": white,
|
|
75
|
+
);
|
|
76
|
+
|
|
77
|
+
@mixin intelli-filter-icons-styling($icon-styling: $intelli-filter-icon-default-map) {
|
|
78
|
+
$icon-font-size: map.get($icon-styling, "icon-font-size");
|
|
79
|
+
$icon-margin-right: map.get($icon-styling, "icon-margin-right");
|
|
80
|
+
$icon-active-color: map.get($icon-styling, "active-icon-color");
|
|
81
|
+
|
|
82
|
+
button.intelli-filter i {
|
|
83
|
+
font-size: $icon-font-size;
|
|
84
|
+
margin-right: $icon-margin-right;
|
|
85
|
+
display: flex;
|
|
86
|
+
vertical-align: middle;
|
|
87
|
+
|
|
88
|
+
&.mdi-star {
|
|
89
|
+
color: $amber;
|
|
90
|
+
opacity: 0.5;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
&.mdi-alert {
|
|
94
|
+
color: #f97b07;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
&.mdi-bell {
|
|
98
|
+
color: #f3bd18;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
&.mdi-file-remove-outline {
|
|
102
|
+
color: #f44336;
|
|
103
|
+
margin-right: 2px;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
button.intelli-filter.active {
|
|
108
|
+
::ng-deep svg {
|
|
109
|
+
g {
|
|
110
|
+
stroke: $icon-active-color !important;
|
|
111
|
+
fill: $icon-active-color !important;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
i {
|
|
116
|
+
color: $icon-active-color;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
i.mdi-star {
|
|
120
|
+
color: #ffc107;
|
|
121
|
+
opacity: 0.9;
|
|
122
|
+
display: flex;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.filter-label {
|
|
128
|
+
@include fonts(Roboto, 0.875rem, normal, normal, normal, normal, normal);
|
|
129
|
+
color: $charcoal;
|
|
130
|
+
margin-bottom: 4px;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.filter-divider {
|
|
134
|
+
width: 1px;
|
|
135
|
+
margin-right: 8px;
|
|
136
|
+
height: 24px;
|
|
137
|
+
background: #111;
|
|
138
|
+
}
|