@annalib/anna-core 31.1.22 → 31.1.24

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,7 +155,6 @@ export interface IActionItemTypeWithStringIconOrTextAction {
155
155
  tooltipClass?: string;
156
156
  tooltipPlacement?: string;
157
157
  enableTooltipForAdditionalText?: boolean;
158
- additionalTextAfterLink?: string;
159
158
  }
160
159
  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";
161
160
  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 | 0 | -1;
19
+ compareTime(a: dayjs.Dayjs, b: dayjs.Dayjs, unit: UnitType, isAsc: boolean): 1 | -1 | 0;
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 | 0 | -1;
26
+ sortDataByBroadcastTimeAsc(firstParamTime: string, secondParamTime: string, broadcastTime: string): 1 | -1 | 0;
27
27
  convertNgbDateToMomentInSpecificFormat(ngbDate: NgbDateType, format: string): string;
28
28
  getBroadcastWeek(startDate: any, format?: string): {
29
29
  start: dayjs.Dayjs;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@annalib/anna-core",
3
- "version": "31.1.22",
3
+ "version": "31.1.24",
4
4
  "peerDependencies": {
5
5
  "@angular-slider/ngx-slider": "^17.0.2",
6
6
  "@angular/common": "^17.3.12",
@@ -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
+ }