@annalib/anna-core 3.2.3 → 3.4.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/pipes/annaConvertZeroOrNullOrUndefined.pipe.mjs +26 -0
- package/esm2020/lib/anna-core-shared-lib/pipes/annaFilterSearchedText.pipe.mjs +2 -2
- package/esm2020/lib/anna-core-shared-lib/services/anna-date-time-format.service.mjs +7 -1
- package/esm2020/lib/anna-core.module.mjs +6 -1
- package/esm2020/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.mjs +12 -31
- package/esm2020/public-api.mjs +2 -1
- package/fesm2015/annalib-anna-core.mjs +46 -33
- package/fesm2015/annalib-anna-core.mjs.map +1 -1
- package/fesm2020/annalib-anna-core.mjs +46 -33
- package/fesm2020/annalib-anna-core.mjs.map +1 -1
- package/lib/anna-core-shared-lib/pipes/annaConvertZeroOrNullOrUndefined.pipe.d.ts +9 -0
- package/lib/anna-core-shared-lib/services/anna-date-time-format.service.d.ts +1 -0
- package/lib/anna-core.module.d.ts +26 -25
- package/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.d.ts +2 -2
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/src/lib/anna-common-scss/_mixins.scss +188 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PipeTransform } from "@angular/core";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class AnnaConvertZeroOrNullOrUndefinedPipe implements PipeTransform {
|
|
4
|
+
transformer: ((value: any, convertTo: any) => number | string) & import("lodash").MemoizedFunction;
|
|
5
|
+
transform(value: any, convertTo: any): number | string;
|
|
6
|
+
replace(value: any, convertTo: any): number | string;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AnnaConvertZeroOrNullOrUndefinedPipe, never>;
|
|
8
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<AnnaConvertZeroOrNullOrUndefinedPipe, "AnnaConvertZeroOrNullOrUndefined">;
|
|
9
|
+
}
|
|
@@ -17,6 +17,7 @@ export declare class AnnaDateTimeFormatService {
|
|
|
17
17
|
sortByTimeDescending(a: any, b: any): number;
|
|
18
18
|
convertNgbDateToMoment(ngbDate: NgbDate | NgbDateType): string;
|
|
19
19
|
compareDate(a: string, b: string, isAsc: boolean): number;
|
|
20
|
+
static formatTwentyFourHourTimeToHHMMAFormat(value: any): string;
|
|
20
21
|
formatDateAndHHMMATimeToStandardFormat(dateAndTime: any): string;
|
|
21
22
|
compare(a: number | string, b: number | string, isAsc: boolean): number;
|
|
22
23
|
sortDataByBroadcastTimeAsc(firstParamTime: string, secondParamTime: string, broadcastTime: string): number;
|
|
@@ -1,32 +1,33 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./anna-core-shared-lib/components/anna-no-data/anna-no-data.component";
|
|
3
3
|
import * as i2 from "./anna-core-shared-lib/pipes/annaFilterSearchedText.pipe";
|
|
4
|
-
import * as i3 from "./anna-core-shared-lib/
|
|
5
|
-
import * as i4 from "./anna-core-shared-lib/components/anna-
|
|
6
|
-
import * as i5 from "./anna-core-shared-lib/components/anna-
|
|
7
|
-
import * as i6 from "./anna-core-shared-lib/components/anna-
|
|
8
|
-
import * as i7 from "./anna-core-shared-lib/components/anna-
|
|
9
|
-
import * as i8 from "./anna-core-shared-lib/
|
|
10
|
-
import * as i9 from "./anna-core-shared-lib/
|
|
11
|
-
import * as i10 from "./anna-
|
|
12
|
-
import * as i11 from "./anna-dropdown-lib/components/anna-calendar-filter/anna-calendar-filter.component";
|
|
13
|
-
import * as i12 from "./anna-
|
|
14
|
-
import * as i13 from "./anna-generic-table-lib/
|
|
15
|
-
import * as i14 from "./anna-generic-table-lib/
|
|
16
|
-
import * as i15 from "./anna-generic-table-lib/components/anna-
|
|
17
|
-
import * as i16 from "./anna-generic-table-lib/
|
|
18
|
-
import * as i17 from "
|
|
19
|
-
import * as i18 from "@
|
|
20
|
-
import * as i19 from "@
|
|
21
|
-
import * as i20 from "@angular/
|
|
22
|
-
import * as i21 from "@angular/material/
|
|
23
|
-
import * as i22 from "@angular/material/
|
|
24
|
-
import * as i23 from "@angular
|
|
25
|
-
import * as i24 from "ngx-
|
|
26
|
-
import * as i25 from "
|
|
27
|
-
import * as i26 from "
|
|
4
|
+
import * as i3 from "./anna-core-shared-lib/pipes/annaConvertZeroOrNullOrUndefined.pipe";
|
|
5
|
+
import * as i4 from "./anna-core-shared-lib/components/anna-buyer-approval-icon-template/anna-buyer-approval-icon-template.component";
|
|
6
|
+
import * as i5 from "./anna-core-shared-lib/components/anna-live-icon-template/anna-live-icon-template.component";
|
|
7
|
+
import * as i6 from "./anna-core-shared-lib/components/anna-notify-icon-template/anna-notify-icon-template.component";
|
|
8
|
+
import * as i7 from "./anna-core-shared-lib/components/anna-pay-for-performance-icon-template/anna-pay-for-performance-icon-template.component";
|
|
9
|
+
import * as i8 from "./anna-core-shared-lib/components/anna-rejected-icon-template/anna-rejected-icon-template.component";
|
|
10
|
+
import * as i9 from "./anna-core-shared-lib/directives/show-ellipsis-text/show-ellipsis-text.directive";
|
|
11
|
+
import * as i10 from "./anna-core-shared-lib/components/anna-icon-column/anna-icon-column.component";
|
|
12
|
+
import * as i11 from "./anna-dropdown-lib/components/anna-week-calendar-filter/anna-week-calendar-filter.component";
|
|
13
|
+
import * as i12 from "./anna-dropdown-lib/components/anna-calendar-filter/anna-calendar-filter.component";
|
|
14
|
+
import * as i13 from "./anna-generic-table-lib/components/anna-sort/anna-sort.component";
|
|
15
|
+
import * as i14 from "./anna-generic-table-lib/directives/anna-virtual-table/anna-virtual-table.directive";
|
|
16
|
+
import * as i15 from "./anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component";
|
|
17
|
+
import * as i16 from "./anna-generic-table-lib/components/anna-table-virtual-scroll-viewport/anna-table-virtual-scroll-viewport.component";
|
|
18
|
+
import * as i17 from "./anna-generic-table-lib/directives/anna-fixed-row-size-table-virtual-scroll-strategy/anna-fixed-row-size-table-virtual-scroll-strategy.directive";
|
|
19
|
+
import * as i18 from "@angular/common";
|
|
20
|
+
import * as i19 from "@ng-bootstrap/ng-bootstrap";
|
|
21
|
+
import * as i20 from "@angular/forms";
|
|
22
|
+
import * as i21 from "@angular/material/radio";
|
|
23
|
+
import * as i22 from "@angular/material/button-toggle";
|
|
24
|
+
import * as i23 from "@angular/material/table";
|
|
25
|
+
import * as i24 from "@angular-slider/ngx-slider";
|
|
26
|
+
import * as i25 from "ngx-skeleton-loader";
|
|
27
|
+
import * as i26 from "@angular/cdk/scrolling";
|
|
28
|
+
import * as i27 from "ng-circle-progress";
|
|
28
29
|
export declare class AnnaCoreModule {
|
|
29
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<AnnaCoreModule, never>;
|
|
30
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AnnaCoreModule, [typeof i1.AnnaNoDataComponent, typeof i2.AnnaFilterSearchedTextPipe, typeof i3.
|
|
31
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AnnaCoreModule, [typeof i1.AnnaNoDataComponent, typeof i2.AnnaFilterSearchedTextPipe, typeof i3.AnnaConvertZeroOrNullOrUndefinedPipe, typeof i4.AnnaBuyerApprovalIconTemplateComponent, typeof i5.AnnaLiveIconTemplateComponent, typeof i6.AnnaNotifyIconTemplateComponent, typeof i7.AnnaPayForPerformanceIconTemplateComponent, typeof i8.AnnaRejectedIconTemplateComponent, typeof i9.showEllipsisTextOnHoverDirective, typeof i10.AnnaIconColumnComponent, typeof i11.AnnaWeekCalendarComponent, typeof i12.AnnaCalendarFilterComponent, typeof i13.AnnaSortComponent, typeof i14.AnnaVirtualTableDirective, typeof i15.AnnaNonEditableGenericTableComponent, typeof i16.AnnaTableVirtualScrollViewportComponent, typeof i17.AnnaFixedRowSizeTableVirtualScrollStrategyDirective], [typeof i18.CommonModule, typeof i19.NgbModule, typeof i20.FormsModule, typeof i21.MatRadioModule, typeof i22.MatButtonToggleModule, typeof i23.MatTableModule, typeof i24.NgxSliderModule, typeof i25.NgxSkeletonLoaderModule, typeof i26.ScrollingModule, typeof i27.NgCircleProgressModule], [typeof i1.AnnaNoDataComponent, typeof i2.AnnaFilterSearchedTextPipe, typeof i3.AnnaConvertZeroOrNullOrUndefinedPipe, typeof i4.AnnaBuyerApprovalIconTemplateComponent, typeof i5.AnnaLiveIconTemplateComponent, typeof i6.AnnaNotifyIconTemplateComponent, typeof i7.AnnaPayForPerformanceIconTemplateComponent, typeof i8.AnnaRejectedIconTemplateComponent, typeof i9.showEllipsisTextOnHoverDirective, typeof i10.AnnaIconColumnComponent, typeof i11.AnnaWeekCalendarComponent, typeof i12.AnnaCalendarFilterComponent, typeof i13.AnnaSortComponent, typeof i14.AnnaVirtualTableDirective, typeof i15.AnnaNonEditableGenericTableComponent, typeof i16.AnnaTableVirtualScrollViewportComponent, typeof i17.AnnaFixedRowSizeTableVirtualScrollStrategyDirective]>;
|
|
31
32
|
static ɵinj: i0.ɵɵInjectorDeclaration<AnnaCoreModule>;
|
|
32
33
|
}
|
|
@@ -10,6 +10,7 @@ import { radioButtonModel, TooltipModel } from '../../../anna-core-shared-lib/mo
|
|
|
10
10
|
import { AnnaSortService } from '../../../anna-core-shared-lib/services/anna-sort.service';
|
|
11
11
|
import { AnnaFilterService } from '../../../anna-core-shared-lib/services/anna-filter.service';
|
|
12
12
|
import { AnnaGenericTableService } from '../../../anna-core-shared-lib/services/anna-generic-table.service';
|
|
13
|
+
import { BehaviorSubject } from 'rxjs';
|
|
13
14
|
import * as i0 from "@angular/core";
|
|
14
15
|
export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnChanges, AfterViewChecked {
|
|
15
16
|
private cdRef;
|
|
@@ -129,7 +130,6 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
|
|
|
129
130
|
endTimeHourErr: boolean;
|
|
130
131
|
endTimeMinErr: boolean;
|
|
131
132
|
sameTooltipClicked: boolean;
|
|
132
|
-
showNoDataToDisplay: boolean;
|
|
133
133
|
marginTop: string;
|
|
134
134
|
viewChildTableHeaders: QueryList<ElementRef>;
|
|
135
135
|
selectedCheckboxOptionsCount: number;
|
|
@@ -144,6 +144,7 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
|
|
|
144
144
|
selectedDemographicForDownload: any;
|
|
145
145
|
selectedRowTypeForDownload: string;
|
|
146
146
|
heightOfCheckboxTooltipFilter: number;
|
|
147
|
+
isNoDataToDisplaySubject$: BehaviorSubject<boolean>;
|
|
147
148
|
constructor(cdRef: ChangeDetectorRef, annaSortService: AnnaSortService, annaDateTimeFormatService: AnnaDateTimeFormatService, annaFilterService: AnnaFilterService, annaGenericTableService: AnnaGenericTableService);
|
|
148
149
|
ngAfterViewChecked(): void;
|
|
149
150
|
ngOnInit(): void;
|
|
@@ -233,7 +234,6 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
|
|
|
233
234
|
selectAllCheckbox(): void;
|
|
234
235
|
searchForTheItem(str: string): void;
|
|
235
236
|
boldString(str: string, find: string): string;
|
|
236
|
-
getIndicesOf(searchStr: string, str: string, caseSensitive: boolean): number[];
|
|
237
237
|
removeBoldElementFromString(originalString: string): string;
|
|
238
238
|
clearSearchedItem(): void;
|
|
239
239
|
calendarDateChanged(event: any): void;
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ export * from "./lib/anna-core-shared-lib/models/anna-tooltip.model";
|
|
|
18
18
|
export * from "./lib/anna-core-shared-lib/models/anna-sort.model";
|
|
19
19
|
export * from "./lib/anna-core-shared-lib/constants/shared.constant";
|
|
20
20
|
export * from "./lib/anna-core-shared-lib/pipes/annaFilterSearchedText.pipe";
|
|
21
|
+
export * from "./lib/anna-core-shared-lib/pipes/annaConvertZeroOrNullOrUndefined.pipe";
|
|
21
22
|
export * from "./lib/anna-core-shared-lib/directives/show-ellipsis-text/show-ellipsis-text.directive";
|
|
22
23
|
export * from "./lib/anna-dropdown-lib/components/anna-calendar-filter/anna-calendar-filter.component";
|
|
23
24
|
export * from "./lib/anna-dropdown-lib/components/anna-week-calendar-filter/anna-week-calendar-filter.component";
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
@mixin button-social-size($padding-y, $padding-x, $font-size, $line-height, $border-radius) {
|
|
2
|
+
padding: $padding-y $padding-x;
|
|
3
|
+
font-size: $font-size;
|
|
4
|
+
line-height: $line-height;
|
|
5
|
+
border: 0;
|
|
6
|
+
@include border-radius($border-radius);
|
|
7
|
+
|
|
8
|
+
&::before {
|
|
9
|
+
width: ($padding-y * 2) + ($font-size * $line-height);
|
|
10
|
+
height: ($padding-y * 2) + ($font-size * $line-height);
|
|
11
|
+
padding: $padding-y 0;
|
|
12
|
+
font-size: $font-size;
|
|
13
|
+
line-height: $line-height;
|
|
14
|
+
@include border-radius($border-radius);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
span {
|
|
18
|
+
margin-left: ($padding-y * 2) + ($font-size * $line-height);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&.icon {
|
|
22
|
+
width: ($padding-y * 2) + ($font-size * $line-height);
|
|
23
|
+
height: ($padding-y * 2) + ($font-size * $line-height);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@mixin avatar($width, $status-width) {
|
|
28
|
+
position: relative;
|
|
29
|
+
display: inline-block;
|
|
30
|
+
width: $width;
|
|
31
|
+
|
|
32
|
+
.img-avatar {
|
|
33
|
+
width: $width;
|
|
34
|
+
height: $width;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.avatar-status {
|
|
38
|
+
position: absolute;
|
|
39
|
+
right: 0;
|
|
40
|
+
bottom: 0;
|
|
41
|
+
display: block;
|
|
42
|
+
width: $status-width;
|
|
43
|
+
height: $status-width;
|
|
44
|
+
border: 1px solid #fff;
|
|
45
|
+
border-radius: 50em;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
@mixin borders($borders) {
|
|
50
|
+
@each $border in $borders {
|
|
51
|
+
$direction: nth($border, 1);
|
|
52
|
+
@if $direction == "all" {
|
|
53
|
+
$size: map-get(map-get($borders, $direction), size);
|
|
54
|
+
$style: map-get(map-get($borders, $direction), style);
|
|
55
|
+
$color: map-get(map-get($borders, $direction), color);
|
|
56
|
+
border: $size $style $color;
|
|
57
|
+
} @else if $direction == "top" {
|
|
58
|
+
$size: map-get(map-get($borders, $direction), size);
|
|
59
|
+
$style: map-get(map-get($borders, $direction), style);
|
|
60
|
+
$color: map-get(map-get($borders, $direction), color);
|
|
61
|
+
border-top: $size $style $color;
|
|
62
|
+
} @else if $direction == "right" {
|
|
63
|
+
$size: map-get(map-get($borders, $direction), size);
|
|
64
|
+
$style: map-get(map-get($borders, $direction), style);
|
|
65
|
+
$color: map-get(map-get($borders, $direction), color);
|
|
66
|
+
border-right: $size $style $color;
|
|
67
|
+
} @else if $direction == "bottom" {
|
|
68
|
+
$size: map-get(map-get($borders, $direction), size);
|
|
69
|
+
$style: map-get(map-get($borders, $direction), style);
|
|
70
|
+
$color: map-get(map-get($borders, $direction), color);
|
|
71
|
+
border-bottom: $size $style $color;
|
|
72
|
+
} @else if $direction == "left" {
|
|
73
|
+
$size: map-get(map-get($borders, $direction), size);
|
|
74
|
+
$style: map-get(map-get($borders, $direction), style);
|
|
75
|
+
$color: map-get(map-get($borders, $direction), color);
|
|
76
|
+
border-left: $size $style $color;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
@mixin sidebar-width($borders, $width) {
|
|
82
|
+
$sidebar-width: $width;
|
|
83
|
+
|
|
84
|
+
@each $border in $borders {
|
|
85
|
+
$direction: nth($border, 1);
|
|
86
|
+
@if $direction == "all" {
|
|
87
|
+
$size: map-get(map-get($borders, $direction), size);
|
|
88
|
+
$sidebar-width: ($sidebar-width - (2 * $size));
|
|
89
|
+
} @else if $direction == "right" {
|
|
90
|
+
$size: map-get(map-get($borders, $direction), size);
|
|
91
|
+
$sidebar-width: $sidebar-width - $size;
|
|
92
|
+
} @else if $direction == "left" {
|
|
93
|
+
$size: map-get(map-get($borders, $direction), size);
|
|
94
|
+
$sidebar-width: $sidebar-width - $size;
|
|
95
|
+
}
|
|
96
|
+
width: $sidebar-width;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
@mixin bg-variant($parent, $color) {
|
|
101
|
+
#{"" + $parent} {
|
|
102
|
+
@include border-radius(
|
|
103
|
+
$card-border-radius-inner $card-border-radius-inner $card-border-radius-inner $card-border-radius-inner
|
|
104
|
+
);
|
|
105
|
+
color: #fff !important;
|
|
106
|
+
background-color: $color !important;
|
|
107
|
+
}
|
|
108
|
+
a#{"" + $parent} {
|
|
109
|
+
@include hover-focus {
|
|
110
|
+
background-color: darken($color, 10%);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
@mixin card-accent-variant($color) {
|
|
116
|
+
border-top-width: 2px;
|
|
117
|
+
border-top-color: $color;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
@mixin tabs-style($color) {
|
|
121
|
+
display: inline-block;
|
|
122
|
+
margin-right: 20px;
|
|
123
|
+
font-size: 16px;
|
|
124
|
+
color: $color;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
@mixin fit-content() {
|
|
128
|
+
width: fit-content !important;
|
|
129
|
+
width: -moz-max-content !important;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
@mixin fit-content-height() {
|
|
133
|
+
height: fit-content !important;
|
|
134
|
+
height: -moz-max-content !important;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
@mixin label($fontSize, $fontWeight, $fontStyle, $letterSpacing, $color) {
|
|
138
|
+
font-family: Roboto;
|
|
139
|
+
font-size: $fontSize;
|
|
140
|
+
font-weight: normal;
|
|
141
|
+
font-stretch: normal;
|
|
142
|
+
font-style: $fontStyle;
|
|
143
|
+
line-height: normal;
|
|
144
|
+
letter-spacing: $letterSpacing;
|
|
145
|
+
color: $color;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
@mixin modal-btn($background-color) {
|
|
149
|
+
width: 100%;
|
|
150
|
+
background-color: $background-color;
|
|
151
|
+
color: white;
|
|
152
|
+
border-radius: initial;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
@mixin OrderListingTableStyling {
|
|
156
|
+
width: 100%;
|
|
157
|
+
tr {
|
|
158
|
+
border: 1px solid #d4d4d4;
|
|
159
|
+
border-top: none;
|
|
160
|
+
th {
|
|
161
|
+
color: #4a4a4a;
|
|
162
|
+
font-size: 11px;
|
|
163
|
+
font-weight: 500;
|
|
164
|
+
letter-spacing: 0.3px;
|
|
165
|
+
vertical-align: middle;
|
|
166
|
+
text-align: left;
|
|
167
|
+
// position: sticky;
|
|
168
|
+
// // z-index: 101 !important;
|
|
169
|
+
// top: 0px;
|
|
170
|
+
padding: unset;
|
|
171
|
+
height: 30px;
|
|
172
|
+
// line-height: 30px;
|
|
173
|
+
border-top: 1px solid #d4d4d4;
|
|
174
|
+
}
|
|
175
|
+
&.header-row th {
|
|
176
|
+
background-color: #ededed;
|
|
177
|
+
}
|
|
178
|
+
td {
|
|
179
|
+
font-size: 12px;
|
|
180
|
+
padding: 2px 0px 3px;
|
|
181
|
+
vertical-align: middle;
|
|
182
|
+
text-align: left;
|
|
183
|
+
color: #000000;
|
|
184
|
+
letter-spacing: 0px;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
|