@annalib/anna-core 31.5.0 → 31.6.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.
@@ -140,7 +140,7 @@ export interface IActionItemTypeWithStringIconOrTextAction {
140
140
  id: any;
141
141
  data: string;
142
142
  typeOfData: "STRING" | "ICON_TEXT_ACTION";
143
- additionalTextBeforeLink: string;
143
+ additionalTextBeforeLink?: string;
144
144
  iconClass?: string;
145
145
  showIcon: boolean;
146
146
  disabledIcon?: boolean;
@@ -155,6 +155,7 @@ export interface IActionItemTypeWithStringIconOrTextAction {
155
155
  tooltipClass?: string;
156
156
  tooltipPlacement?: string;
157
157
  enableTooltipForAdditionalText?: boolean;
158
+ additionalTextAfterLink?: string;
158
159
  }
159
160
  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";
160
161
  export declare class TableClassNameConstant {
@@ -16,14 +16,14 @@ export declare class AnnaDateTimeFormatService {
16
16
  addZero(time: any): any;
17
17
  sortByTimeAscending(a: any, b: any): number;
18
18
  sortByTimeDescending(a: any, b: any): number;
19
- compareTime(a: dayjs.Dayjs, b: dayjs.Dayjs, unit: UnitType, isAsc: boolean): 1 | -1 | 0;
19
+ compareTime(a: dayjs.Dayjs, b: dayjs.Dayjs, unit: UnitType, isAsc: boolean): 0 | 1 | -1;
20
20
  convertNgbDateToMoment(ngbDate: NgbDate | NgbDateType): string;
21
21
  compareDate(a: string, b: string, isAsc: boolean): number;
22
22
  static formatTwentyFourHourTimeToHHMMAFormat(value: any, date?: string): string;
23
23
  static formatTwelveHourTimeToHHMMAFormat(timeValue: any, date?: string): string;
24
24
  formatDateAndHHMMATimeToStandardFormat(dateAndTime: any): string;
25
25
  compare(a: number | string, b: number | string, isAsc: boolean): number;
26
- sortDataByBroadcastTimeAsc(firstParamTime: string, secondParamTime: string, broadcastTime: string): 1 | -1 | 0;
26
+ sortDataByBroadcastTimeAsc(firstParamTime: string, secondParamTime: string, broadcastTime: string): 0 | 1 | -1;
27
27
  convertNgbDateToMomentInSpecificFormat(ngbDate: NgbDateType, format: string): string;
28
28
  getBroadcastWeek(startDate: any, format?: string): {
29
29
  start: dayjs.Dayjs;
@@ -1,6 +1,7 @@
1
1
  import * as i0 from "@angular/core";
2
2
  export declare class AnnaNumberFormatService {
3
3
  static GetRoundedValueWithUnits(inputValue: number, digitsToRoundDecimalPoint?: number): string;
4
+ static GetRoundedValuesWithoutUnits(inputValue: number, digitsToRoundDecimalPoint?: number): string;
4
5
  static GetRoundedImpressionsWithUnits(inputValue: number, digitsToRoundDecimalPoint?: number): string;
5
6
  static GetValueInUnits(inputValue: number): (string | number)[];
6
7
  static ɵfac: i0.ɵɵFactoryDeclaration<AnnaNumberFormatService, never>;
@@ -4,6 +4,7 @@ export declare class RegexPatternsService {
4
4
  readonly phonePattern: RegExp;
5
5
  readonly buyerNamePattern: RegExp;
6
6
  readonly usernamePattern: RegExp;
7
+ readonly namePattern: RegExp;
7
8
  static ɵfac: i0.ɵɵFactoryDeclaration<RegexPatternsService, never>;
8
9
  static ɵprov: i0.ɵɵInjectableDeclaration<RegexPatternsService>;
9
10
  }
@@ -28,6 +28,7 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
28
28
  gtDimension: {
29
29
  rowHeight: number;
30
30
  headerHeight: number;
31
+ dataOnTopHeight: number;
31
32
  marginFromBottom: number;
32
33
  tableHeight?: string;
33
34
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@annalib/anna-core",
3
- "version": "31.5.0",
3
+ "version": "31.6.0",
4
4
  "peerDependencies": {
5
5
  "@angular-slider/ngx-slider": "^17.0.2",
6
6
  "@angular/common": "^17.3.12",
@@ -4,7 +4,7 @@
4
4
  @use "sass:map";
5
5
 
6
6
  @mixin sticky-left($leftOffset, $zIndex) {
7
- position: sticky;
7
+ position: sticky !important;
8
8
  left: $leftOffset;
9
9
  z-index: $zIndex !important;
10
10
  }
@@ -38,7 +38,7 @@
38
38
  line-height: normal;
39
39
  position: sticky;
40
40
  position: -webkit-sticky;
41
- top: 0;
41
+ top: 0.1px !important;
42
42
 
43
43
  .upper-label {
44
44
  @include fonts(Roboto, var(--table-header-fs), normal, 700, normal, normal, 0.3px);
@@ -128,6 +128,7 @@
128
128
  }
129
129
 
130
130
  .header-row {
131
+ background: $bg-color;
131
132
  th {
132
133
  box-shadow: none !important;
133
134
  cursor: default;
@@ -362,6 +363,9 @@
362
363
  }
363
364
  }
364
365
 
366
+ $map-length: length($sticky-left-map);
367
+ $last-column-index: if($map-length > 0, nth(map-keys($sticky-left-map), $map-length), null);
368
+
365
369
  @each $columnNumber, $sticky-prop in $sticky-left-map {
366
370
  $left-offset: map.get($sticky-prop, "left");
367
371
  $z-index: map.get($sticky-prop, "z-index");
@@ -370,6 +374,15 @@
370
374
  @include sticky-left($left-offset, $z-index);
371
375
  }
372
376
  }
377
+
378
+ @if ($last-column-index != null) {
379
+ td:nth-child(n + #{$last-column-index}),
380
+ th:nth-child(n + #{$last-column-index}) {
381
+ position: relative;
382
+ top: -1px;
383
+ // background-color: lightblue !important; /* Apply styles from non-sticky column to last column **/
384
+ }
385
+ }
373
386
  }
374
387
 
375
388
  @mixin table-data-shadow($columnNumber) {
@@ -0,0 +1,65 @@
1
+ @mixin tags($backgroundColor) {
2
+ height: 18px;
3
+ margin: 0px 8px;
4
+ padding: 0px 6px;
5
+ border-radius: 2px;
6
+ background-color: $backgroundColor;
7
+ color: var(--body-color);
8
+ font-family: Roboto;
9
+ font-size: 12px;
10
+ font-weight: bold;
11
+ }
12
+
13
+ @mixin floatTagRight() {
14
+ float: right;
15
+ display: inline-block;
16
+ margin: 0;
17
+ }
18
+
19
+ @mixin modal-button($backgroundColor, $color, $border) {
20
+ color: $color;
21
+ background-color: $backgroundColor;
22
+ border: $border;
23
+ font-family: Roboto;
24
+ font-size: var(--page-link-fs);
25
+ font-weight: 400;
26
+ font-stretch: normal;
27
+ font-style: normal;
28
+ line-height: normal;
29
+ letter-spacing: normal;
30
+ padding: 0.375rem 2.625rem;
31
+ border-radius: 0.25rem;
32
+ width: 49%;
33
+ }
34
+
35
+ :host ::ng-deep anna-core-non-editable-generic-table-lib .mdi-pencil {
36
+ cursor: pointer;
37
+ color: var(--primary-blue-color);
38
+ font-size: 14px;
39
+ }
40
+
41
+ :host ::ng-deep anna-core-non-editable-generic-table-lib .mdi-account-remove {
42
+ cursor: pointer;
43
+ color: var(--primary-red-color);
44
+ font-size: 14px;
45
+ float: right;
46
+ }
47
+
48
+ .count-text {
49
+ font-size: var(--page-message-content-fs);
50
+ font-family: Roboto;
51
+ font-style: italic;
52
+ margin-top: 8px;
53
+ color: var(--primary-text-color-medium);
54
+ b {
55
+ color: var(--font-color);
56
+ }
57
+ }
58
+
59
+ .additional-data-color-text {
60
+ color: var(--disabled-text-color-darker) !important;
61
+ }
62
+
63
+ .italic {
64
+ font-style: italic;
65
+ }
@@ -0,0 +1,110 @@
1
+ @use "anna-common-scss/gt-table" as *;
2
+
3
+ :host {
4
+ --secondary-green-color: #e1ffed;
5
+ --secondary-blue-color: #eef6ff;
6
+ --secondary-red-color: #fff0ef;
7
+ --secondary-purple-color: #f6e6f5;
8
+ }
9
+ $invitedPrimaryColor: var(--primary-yellow-color);
10
+ $OnboardingPrimaryColor: var(--primary-purple-color);
11
+ $OnboardedPrimaryColor: var(--ternary-green-color);
12
+ $InactivePrimaryColor: var(--ternary-blue-color);
13
+ $DeletedPrimaryColor: var(--primary-red-color);
14
+ $coPilotPrimaryColor: var(--primary-green-color);
15
+
16
+ $invitedSecColor: var(--secondary-yellow-color);
17
+ $OnboardingSecColor: var(--secondary-purple-color);
18
+ $OnboardedSecColor: var(--secondary-green-color);
19
+ $InactiveSecColor: var(--secondary-blue-color);
20
+ $DeletedSecColor: var(--secondary-red-color);
21
+ $coPilotSecondaryColor: #e5f1c1;
22
+ $adminPrivilegeIconColor: #e48a37;
23
+
24
+ @mixin tags($backgroundColor) {
25
+ height: 18px;
26
+ margin: 0px 8px;
27
+ padding: 0px 6px;
28
+ border-radius: 2px;
29
+ background-color: $backgroundColor;
30
+ color: #ffffff;
31
+ font-family: Roboto;
32
+ font-size: 12px;
33
+ font-weight: bold;
34
+ }
35
+
36
+ @mixin floatTagRight() {
37
+ float: right;
38
+ display: inline-block;
39
+ margin: 0;
40
+ }
41
+
42
+ @mixin rowStyling($backgroundColor, $buttonColor, $shadow-map) {
43
+ // background-color: $backgroundColor !important;
44
+ @include table-data((), $shadow-map, $backgroundColor);
45
+ .status-btn {
46
+ background-color: $buttonColor !important;
47
+ }
48
+ }
49
+
50
+ .Invited-tag {
51
+ @include tags($invitedPrimaryColor);
52
+ @include floatTagRight();
53
+ }
54
+
55
+ .Onboarding-tag {
56
+ @include tags($OnboardingPrimaryColor);
57
+ @include floatTagRight();
58
+ }
59
+
60
+ .Active-tag {
61
+ @include tags($OnboardedPrimaryColor);
62
+ @include floatTagRight();
63
+ }
64
+
65
+ .Inactive-tag {
66
+ @include tags($InactivePrimaryColor);
67
+ @include floatTagRight();
68
+ }
69
+
70
+ .Deleted-tag {
71
+ @include tags($DeletedPrimaryColor);
72
+ @include floatTagRight();
73
+ }
74
+
75
+ @mixin user-row-status($shadow-map) {
76
+ .status-btn {
77
+ color: var(--body-color) !important;
78
+ padding: 2px 6px !important;
79
+ font-weight: bold !important;
80
+ border: none !important;
81
+ border-radius: 2px;
82
+ line-height: normal !important;
83
+ }
84
+
85
+ tr.Invited {
86
+ @include rowStyling($invitedSecColor, $invitedPrimaryColor, $shadow-map);
87
+ }
88
+ tr.Onboarding {
89
+ @include rowStyling($OnboardingSecColor, $OnboardingPrimaryColor, $shadow-map);
90
+ }
91
+ tr.Active {
92
+ @include rowStyling($OnboardedSecColor, $OnboardedPrimaryColor, $shadow-map);
93
+ }
94
+ tr.Inactive {
95
+ @include rowStyling($InactiveSecColor, $InactivePrimaryColor, $shadow-map);
96
+ }
97
+ tr.CoPilot {
98
+ @include rowStyling($coPilotSecondaryColor, $OnboardedPrimaryColor, $shadow-map);
99
+ outline: 1px solid $coPilotPrimaryColor !important;
100
+ outline-offset: -1px !important;
101
+ }
102
+ tr.Deleted {
103
+ @include rowStyling($DeletedSecColor, $DeletedPrimaryColor, $shadow-map);
104
+ }
105
+ tr.Copilot-onboarding-status {
106
+ @include rowStyling($coPilotSecondaryColor, $OnboardingPrimaryColor , $shadow-map);
107
+ outline: 1px solid $coPilotPrimaryColor !important;
108
+ outline-offset: -1px !important;
109
+ }
110
+ }