@annalib/anna-core 9.1.3 → 9.2.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/models/anna-non-editable-gt-models.mjs +1 -1
- package/esm2020/lib/anna-core-shared-lib/models/anna-tooltip.model.mjs +2 -2
- package/esm2020/lib/anna-core-shared-lib/services/anna-filter.service.mjs +10 -2
- package/esm2020/lib/anna-core-shared-lib/services/anna-generic-table.service.mjs +18 -34
- package/esm2020/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.mjs +16 -7
- package/fesm2015/annalib-anna-core.mjs +43 -42
- package/fesm2015/annalib-anna-core.mjs.map +1 -1
- package/fesm2020/annalib-anna-core.mjs +43 -42
- package/fesm2020/annalib-anna-core.mjs.map +1 -1
- package/lib/anna-core-shared-lib/models/anna-non-editable-gt-models.d.ts +2 -2
- package/lib/anna-core-shared-lib/services/anna-generic-table.service.d.ts +5 -2
- package/package.json +1 -1
- package/src/lib/anna-common-scss/_customDropdown.scss +129 -0
- package/src/lib/anna-common-scss/style.scss +1 -1
|
@@ -22,7 +22,7 @@ export interface IHeaderInfo {
|
|
|
22
22
|
tooltip?: ITooltip;
|
|
23
23
|
joinedFilterSortObjectKeys?: string;
|
|
24
24
|
}
|
|
25
|
-
declare type DATATYPE = "CHECKBOX" | "HTML_STRING" | "ICON" | "STRING" | "RADIO" | "" | "SVG_ICON" | "TEXT_ACTIONS" | "CLICKABLE_DATA" | "STRING__TEXT_ACTION" | "STRING__ICON_ACTION" | "STRING___ICON_OR_TEXT_ACTION" | "HTML"
|
|
25
|
+
declare type DATATYPE = "CHECKBOX" | "HTML_STRING" | "ICON" | "STRING" | "RADIO" | "" | "SVG_ICON" | "TEXT_ACTIONS" | "CLICKABLE_DATA" | "STRING__TEXT_ACTION" | "STRING__ICON_ACTION" | "STRING___ICON_OR_TEXT_ACTION" | "HTML";
|
|
26
26
|
declare type FILTERTYPE = "CHECKBOX" | "SLIDER" | "DATE" | "TIME" | "WEEK";
|
|
27
27
|
export interface ITotalRowInfo {
|
|
28
28
|
colspan: number;
|
|
@@ -104,7 +104,7 @@ export interface IActionItemTypeSTRING__ICON_OR_TEXT_ACTION {
|
|
|
104
104
|
value: string;
|
|
105
105
|
}[];
|
|
106
106
|
tooltipClass?: string;
|
|
107
|
-
tooltipPlacement
|
|
107
|
+
tooltipPlacement: string;
|
|
108
108
|
typeOfData: 'STRING' | 'ICON_TEXT_ACTION';
|
|
109
109
|
additionalTextBeforeLink: string;
|
|
110
110
|
enableTooltipForAdditionalText: boolean;
|
|
@@ -14,8 +14,11 @@ export declare class AnnaGtHelperService {
|
|
|
14
14
|
initColumnFilterAndSorting(): void;
|
|
15
15
|
enableOrDisableClearAllBtn(): boolean;
|
|
16
16
|
updateFiltersInURL(): void;
|
|
17
|
-
prepareQueryParamsOnFilter():
|
|
18
|
-
|
|
17
|
+
prepareQueryParamsOnFilter(): {
|
|
18
|
+
appliedFilters: string[];
|
|
19
|
+
selectedFilterData: string;
|
|
20
|
+
sortState: string;
|
|
21
|
+
};
|
|
19
22
|
initTableFilters(clonedTableData: any): void;
|
|
20
23
|
initFilters(): void;
|
|
21
24
|
setDataAsPerPersistingFilter(isPersistingFilter: boolean, clonedTable: any, filters: any): any;
|
package/package.json
CHANGED
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
@import "./colors", "./fonts";
|
|
2
|
+
|
|
3
|
+
//Common styling
|
|
4
|
+
#dropdown-trigger {
|
|
5
|
+
height: 1.875rem;
|
|
6
|
+
background: white;
|
|
7
|
+
border-radius: 2px;
|
|
8
|
+
border: 1px solid $lightGray-8;
|
|
9
|
+
width: 100%;
|
|
10
|
+
text-align: left;
|
|
11
|
+
&:disabled{
|
|
12
|
+
background-color: $gray74;
|
|
13
|
+
opacity: 0.5;
|
|
14
|
+
& .placeholder, .icon {
|
|
15
|
+
color: #000;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.placeholder {
|
|
21
|
+
color: $gray74;
|
|
22
|
+
@include fonts(Roboto, 14px, normal, normal, normal, normal, normal);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// #dropdown-trigger:disabled .placeholder {
|
|
26
|
+
// color: #000;
|
|
27
|
+
// }
|
|
28
|
+
|
|
29
|
+
.icon {
|
|
30
|
+
font-size: 1.125rem;
|
|
31
|
+
float: right;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.search-bar {
|
|
35
|
+
margin: 9px 7px 8px 7px;
|
|
36
|
+
border: 1px solid $pinkSwan;
|
|
37
|
+
height: 1.875rem;
|
|
38
|
+
border-radius: 2px;
|
|
39
|
+
input {
|
|
40
|
+
outline: none;
|
|
41
|
+
border: none;
|
|
42
|
+
position: relative;
|
|
43
|
+
bottom: 4px;
|
|
44
|
+
width: calc(100% - 29px);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.search-icon {
|
|
48
|
+
font-size: 1.125rem;
|
|
49
|
+
color: $lightGray-7;
|
|
50
|
+
margin: 5px;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.close-icon{
|
|
54
|
+
cursor: pointer;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
ul {
|
|
59
|
+
overflow-y: auto;
|
|
60
|
+
padding-left: 0;
|
|
61
|
+
padding-bottom: 0;
|
|
62
|
+
margin-bottom: 0;
|
|
63
|
+
max-height: calc(50vh - 80px) !important;
|
|
64
|
+
// min-heightw: 70px;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
li {
|
|
68
|
+
list-style-type: none;
|
|
69
|
+
cursor: pointer;
|
|
70
|
+
padding-inline: 6px;
|
|
71
|
+
@include fonts(Roboto, 14px, normal, normal, normal, 2.14, normal);
|
|
72
|
+
color: #4a4a4a;
|
|
73
|
+
@extend .ellipsify;
|
|
74
|
+
width: 100%;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
ul::-webkit-scrollbar {
|
|
78
|
+
width: 4px;
|
|
79
|
+
height: 4px;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
ul::-webkit-scrollbar-track {
|
|
83
|
+
border: 1px solid rgba(0, 0, 0, 0.1);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
ul::-webkit-scrollbar-thumb {
|
|
87
|
+
border-radius: 4px;
|
|
88
|
+
background-color: rgba(0, 0, 0, 0.4) !important;
|
|
89
|
+
border: 1px solid rgba(0, 0, 0, 0.2);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
li:hover {
|
|
93
|
+
// color: white;
|
|
94
|
+
background: #ebebeb;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
li.active {
|
|
98
|
+
color: white;
|
|
99
|
+
background: $primary-color;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
span.selected-item{
|
|
103
|
+
background: transparent;
|
|
104
|
+
@include fonts(Roboto, 14px, normal, normal, normal, normal, normal);
|
|
105
|
+
color: #4a4a4a;
|
|
106
|
+
@extend .ellipsify;
|
|
107
|
+
width: calc(100% - 22px);
|
|
108
|
+
display: inline-block;
|
|
109
|
+
vertical-align: middle;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.ellipsify{
|
|
113
|
+
white-space: nowrap;
|
|
114
|
+
text-overflow: ellipsis;
|
|
115
|
+
overflow: hidden;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
::ng-deep .cdk-overlay-container{
|
|
119
|
+
z-index: 1051;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
::ng-deep .multi-select-dropdown + div .mat-menu-panel,
|
|
123
|
+
::ng-deep .single-select-dropdown + div .mat-menu-panel{
|
|
124
|
+
min-width: 100px !important;
|
|
125
|
+
max-width: 100%;
|
|
126
|
+
min-height: 30px !important;
|
|
127
|
+
overflow-y: hidden;
|
|
128
|
+
max-height: 50vh;
|
|
129
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@import "./colors", "./filters", "./fonts", "./sort", "./application-spacing";
|
|
1
|
+
@import "./colors", "./filters", "./fonts", "./sort", "./application-spacing", "./customDropdown";
|