@annalib/anna-core 16.0.8 → 16.1.1
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/services/anna-date-time-format.service.mjs +1 -11
- package/esm2020/lib/anna-core-shared-lib/services/anna-filter.service.mjs +18 -2
- package/esm2020/lib/anna-dropdown-lib/components/anna-calendar-filter/anna-calendar-filter.component.mjs +7 -19
- package/esm2020/lib/anna-generic-table-lib/components/anna-column-filters/anna-column-date-range-filter/anna-column-date-range-filter.component.mjs +1 -1
- package/esm2020/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.mjs +5 -3
- package/fesm2015/annalib-anna-core.mjs +31 -34
- package/fesm2015/annalib-anna-core.mjs.map +1 -1
- package/fesm2020/annalib-anna-core.mjs +30 -34
- package/fesm2020/annalib-anna-core.mjs.map +1 -1
- package/lib/anna-core-shared-lib/models/anna-non-editable-gt-models.d.ts +1 -1
- package/lib/anna-core-shared-lib/services/anna-date-time-format.service.d.ts +0 -1
- package/lib/anna-core-shared-lib/services/anna-filter.service.d.ts +2 -1
- package/lib/anna-dropdown-lib/components/anna-calendar-filter/anna-calendar-filter.component.d.ts +1 -5
- package/package.json +1 -1
- package/src/lib/anna-common-scss/_business-rule-common.scss +35 -0
- package/src/lib/anna-common-scss/_advertiser-listing-common.scss +0 -73
|
@@ -21,7 +21,7 @@ export interface IHeaderInfo {
|
|
|
21
21
|
tooltip?: ITooltip;
|
|
22
22
|
joinedFilterSortObjectKeys?: string;
|
|
23
23
|
}
|
|
24
|
-
declare 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";
|
|
24
|
+
declare 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";
|
|
25
25
|
declare type FILTERTYPE = "CHECKBOX" | "SLIDER" | "DATE" | "TIME" | "WEEK";
|
|
26
26
|
export interface ITotalRowInfo {
|
|
27
27
|
colspan: number;
|
|
@@ -22,7 +22,6 @@ export declare class AnnaDateTimeFormatService {
|
|
|
22
22
|
formatDateAndHHMMATimeToStandardFormat(dateAndTime: any): string;
|
|
23
23
|
compare(a: number | string, b: number | string, isAsc: boolean): number;
|
|
24
24
|
sortDataByBroadcastTimeAsc(firstParamTime: string, secondParamTime: string, broadcastTime: string): number;
|
|
25
|
-
convertNgbDateToMomentInSpecificFormat(ngbDate: NgbDateType, format: string): string;
|
|
26
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<AnnaDateTimeFormatService, never>;
|
|
27
26
|
static ɵprov: i0.ɵɵInjectableDeclaration<AnnaDateTimeFormatService>;
|
|
28
27
|
}
|
|
@@ -51,7 +51,8 @@ export declare class AnnaFilterService {
|
|
|
51
51
|
reOrderAppliedFiltersArray(isHierarchialUserFiltered: boolean, date?: any): void;
|
|
52
52
|
checkIfDataIsFiltered(isFiltered: boolean, isHierarchialUserFiltered: boolean, date?: any): boolean;
|
|
53
53
|
removeOrChangeLatestFilterIndex(isFiltered: boolean): void;
|
|
54
|
-
|
|
54
|
+
checkIfSortingIsAppliedThenSortTheData(originalData: any[]): any[];
|
|
55
|
+
filterData(originalData: any[], keyToSkip: string, isLurCsrPage?: boolean): any[];
|
|
55
56
|
returnOrdersInTheRange(order: any, range: any, key: any): boolean;
|
|
56
57
|
returnDataForTimeRange(obj: any, selectedData: any): boolean;
|
|
57
58
|
returnDataForFromAndToTimeRange(obj: any, selectedData: any, key: any): boolean;
|
package/lib/anna-dropdown-lib/components/anna-calendar-filter/anna-calendar-filter.component.d.ts
CHANGED
|
@@ -8,10 +8,6 @@ export declare class AnnaCalendarFilterComponent implements OnInit, OnChanges {
|
|
|
8
8
|
maxDate: any;
|
|
9
9
|
label: string;
|
|
10
10
|
minDate: any;
|
|
11
|
-
showLabel: boolean;
|
|
12
|
-
dateFormat: string;
|
|
13
|
-
placeholder: string;
|
|
14
|
-
disabled: boolean;
|
|
15
11
|
selectedDate: EventEmitter<any>;
|
|
16
12
|
selectedFromDate: any;
|
|
17
13
|
selectedToDate: any;
|
|
@@ -34,5 +30,5 @@ export declare class AnnaCalendarFilterComponent implements OnInit, OnChanges {
|
|
|
34
30
|
disableCalendarApplyBtn(): void;
|
|
35
31
|
setInputText(): void;
|
|
36
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<AnnaCalendarFilterComponent, never>;
|
|
37
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AnnaCalendarFilterComponent, "anna-core-calendar-filter-lib", never, { "maxDate": "maxDate"; "label": "label"; "minDate": "minDate"; "
|
|
33
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AnnaCalendarFilterComponent, "anna-core-calendar-filter-lib", never, { "maxDate": "maxDate"; "label": "label"; "minDate": "minDate"; "selectedFromDate": "selectedFromDate"; "selectedToDate": "selectedToDate"; }, { "selectedDate": "selectedDate"; "apply": "apply"; "cancel": "cancel"; }, never, never, false, never>;
|
|
38
34
|
}
|
package/package.json
CHANGED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
.ng-content-selector-for-message {
|
|
2
|
+
display: inline;
|
|
3
|
+
font-size: 0.75rem !important;
|
|
4
|
+
font-weight: 400 !important;
|
|
5
|
+
line-height: 16px !important;
|
|
6
|
+
|
|
7
|
+
a {
|
|
8
|
+
color: #268BFF;
|
|
9
|
+
text-decoration: underline;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
::ng-deep section.message-box.sm.seller-approval-requested {
|
|
14
|
+
.div-message p.message-label {
|
|
15
|
+
padding: 0 0 0 4px !important;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
::ng-deep section.message-box.sm.inline-block-msg {
|
|
20
|
+
padding: 4px!important;
|
|
21
|
+
.div-message p.message-label {
|
|
22
|
+
display: inline-block !important;
|
|
23
|
+
padding: 0 0 0 6px !important;
|
|
24
|
+
}
|
|
25
|
+
.div-icon {
|
|
26
|
+
position: relative;
|
|
27
|
+
top: 4px;
|
|
28
|
+
left: 3px !important;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.comment-textarea {
|
|
33
|
+
resize: none;
|
|
34
|
+
height: 90px;
|
|
35
|
+
}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
@use "../anna-common-scss/gt-table" as *;
|
|
2
|
-
|
|
3
|
-
$LightBlue: #EEF6FF;
|
|
4
|
-
$LightOrange: #F9EADD;
|
|
5
|
-
$LightYellow: #F7F2D1;
|
|
6
|
-
$LightGreen: #E1FFED;
|
|
7
|
-
$DeepBlue: #1565C0;
|
|
8
|
-
$DeepOrange: #F97B07;
|
|
9
|
-
$DeepYellow: #F3BD18;
|
|
10
|
-
$DeepGreen: #00C853;
|
|
11
|
-
|
|
12
|
-
@mixin rowStyling($backgroundColor, $buttonColor, $color, $shadow-map) {
|
|
13
|
-
@include table-data((), $shadow-map, $backgroundColor);
|
|
14
|
-
|
|
15
|
-
::ng-deep .status-btn {
|
|
16
|
-
background-color: $buttonColor !important;
|
|
17
|
-
color: $color;
|
|
18
|
-
border-radius: 2px !important;
|
|
19
|
-
padding: 2px 6px;
|
|
20
|
-
cursor: default !important;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
@mixin advertiser-listing-table-styling($advertiser-box-shadow-map, $advertiser-no-data-box-shadow-map, $row-height-map){
|
|
25
|
-
:host ::ng-deep anna-core-non-editable-generic-table-lib {
|
|
26
|
-
@include table-container-scroll-bar(0px, 2.625rem);
|
|
27
|
-
@include table-header((), $advertiser-box-shadow-map);
|
|
28
|
-
@include no-data-table(142px, $advertiser-no-data-box-shadow-map, $row-height-map);
|
|
29
|
-
|
|
30
|
-
.loader {
|
|
31
|
-
margin-bottom: 0;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
tbody{
|
|
35
|
-
tr {
|
|
36
|
-
@include rowStyling(#fff,white, #000, $advertiser-box-shadow-map);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
tr.AWAITING_BUYER_CONFIRMATION,
|
|
40
|
-
tr.AWAITING_SELLER_CONFIRMATION {
|
|
41
|
-
@include rowStyling($LightBlue, $DeepBlue, white, $advertiser-box-shadow-map);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
tr.NEED_SELLER_CONFIRMATION,
|
|
45
|
-
tr.NEED_BUYER_CONFIRMATION {
|
|
46
|
-
@include rowStyling($LightOrange, $DeepOrange, white, $advertiser-box-shadow-map);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
tr.NOTIFY_BUYER {
|
|
50
|
-
@include rowStyling($LightYellow, $DeepYellow, white, $advertiser-box-shadow-map);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
tr.APPROVED {
|
|
54
|
-
@include rowStyling($LightGreen, $DeepGreen, white, $advertiser-box-shadow-map);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
td{
|
|
58
|
-
cursor: default !important;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
th,td{
|
|
63
|
-
padding: 0 12px !important;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.no-data{
|
|
67
|
-
margin-top: -63px !important;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
@include table-bottom-border($advertiser-box-shadow-map);
|
|
71
|
-
|
|
72
|
-
}
|
|
73
|
-
}
|