@annalib/anna-core 12.8.1 → 12.8.3

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.
Files changed (20) hide show
  1. package/esm2020/lib/anna-core-shared-lib/components/anna-deleted-order-icon-template/anna-deleted-order-icon-template.component.mjs +14 -0
  2. package/esm2020/lib/anna-core-shared-lib/components/anna-icon-column/anna-icon-column.component.mjs +5 -4
  3. package/esm2020/lib/anna-core-shared-lib/models/anna-non-editable-gt-models.mjs +1 -1
  4. package/esm2020/lib/anna-core.module.mjs +10 -5
  5. package/esm2020/lib/anna-dropdown-lib/components/anna-calendar-filter/anna-calendar-filter.component.mjs +1 -1
  6. package/esm2020/lib/anna-dropdown-lib/components/anna-week-calendar-filter/anna-week-calendar-filter.component.mjs +1 -1
  7. package/esm2020/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.mjs +8 -4
  8. package/esm2020/public-api.mjs +2 -1
  9. package/fesm2015/annalib-anna-core.mjs +33 -13
  10. package/fesm2015/annalib-anna-core.mjs.map +1 -1
  11. package/fesm2020/annalib-anna-core.mjs +33 -13
  12. package/fesm2020/annalib-anna-core.mjs.map +1 -1
  13. package/lib/anna-core-shared-lib/components/anna-deleted-order-icon-template/anna-deleted-order-icon-template.component.d.ts +8 -0
  14. package/lib/anna-core-shared-lib/components/anna-icon-column/anna-icon-column.component.d.ts +3 -2
  15. package/lib/anna-core-shared-lib/models/anna-non-editable-gt-models.d.ts +1 -0
  16. package/lib/anna-core.module.d.ts +12 -11
  17. package/package.json +1 -1
  18. package/public-api.d.ts +1 -0
  19. package/src/lib/anna-common-scss/_customDropdown.scss +1 -2
  20. package/src/lib/anna-common-scss/_generic-table-common.scss +49 -37
@@ -0,0 +1,8 @@
1
+ import { OnInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class AnnaDeletedOrderIconTemplateComponent implements OnInit {
4
+ constructor();
5
+ ngOnInit(): void;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<AnnaDeletedOrderIconTemplateComponent, never>;
7
+ static ɵcmp: i0.ɵɵComponentDeclaration<AnnaDeletedOrderIconTemplateComponent, "anna-deleted-order-icon-template", never, {}, {}, never, never, false, never>;
8
+ }
@@ -1,9 +1,10 @@
1
1
  import { EventEmitter, OnInit } from '@angular/core';
2
2
  import { GtColumnIconEmittedData } from '../../models/anna-generic-data-type.model';
3
+ import { IconToShow } from '../../models/anna-non-editable-gt-models';
3
4
  import * as i0 from "@angular/core";
4
5
  export declare class AnnaIconColumnComponent implements OnInit {
5
6
  componentName: string;
6
- objectKey: string;
7
+ iconToShow: IconToShow;
7
8
  dataObject: any;
8
9
  PfpIconActiveColor: string;
9
10
  PfpIconDisableColor: string;
@@ -12,5 +13,5 @@ export declare class AnnaIconColumnComponent implements OnInit {
12
13
  ngOnInit(): void;
13
14
  svgIconClicked(rowData: any, key: string): void;
14
15
  static ɵfac: i0.ɵɵFactoryDeclaration<AnnaIconColumnComponent, never>;
15
- static ɵcmp: i0.ɵɵComponentDeclaration<AnnaIconColumnComponent, "anna-core-anna-icon-column", never, { "componentName": "componentName"; "objectKey": "objectKey"; "dataObject": "dataObject"; }, { "onColumnIconClicked": "onColumnIconClicked"; }, never, never, false, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<AnnaIconColumnComponent, "anna-core-anna-icon-column", never, { "componentName": "componentName"; "iconToShow": "iconToShow"; "dataObject": "dataObject"; }, { "onColumnIconClicked": "onColumnIconClicked"; }, never, never, false, never>;
16
17
  }
@@ -113,4 +113,5 @@ export interface IActionItemTypeSTRING__ICON_OR_TEXT_ACTION {
113
113
  additionalTextBeforeLink: string;
114
114
  enableTooltipForAdditionalText: boolean;
115
115
  }
116
+ export declare type IconToShow = "LIVE" | "PAY_FOR_PERFORMANCE_ACTIVE" | "PAY_FOR_PERFORMANCE" | "REJECTED" | "NOTIFY" | "AWAITING_APPROVAL" | "DELETED_ORDER";
116
117
  export {};
@@ -22,18 +22,19 @@ import * as i20 from "./anna-core-shared-lib/directives/digits-only/digits-only.
22
22
  import * as i21 from "./anna-generic-table-lib/components/anna-column-filters/anna-column-date-range-filter/anna-column-date-range-filter.component";
23
23
  import * as i22 from "./anna-generic-table-lib/components/anna-column-filters/anna-column-time-filter/anna-column-time-filter.component";
24
24
  import * as i23 from "./anna-generic-table-lib/components/anna-column-filters/anna-column-checkbox-filter/anna-column-checkbox-filter.component";
25
- import * as i24 from "@angular/common";
26
- import * as i25 from "@ng-bootstrap/ng-bootstrap";
27
- import * as i26 from "@angular/forms";
28
- import * as i27 from "@angular/material/radio";
29
- import * as i28 from "@angular/material/button-toggle";
30
- import * as i29 from "@angular/material/table";
31
- import * as i30 from "@angular-slider/ngx-slider";
32
- import * as i31 from "ngx-skeleton-loader";
33
- import * as i32 from "@angular/cdk/scrolling";
34
- import * as i33 from "ng-circle-progress";
25
+ import * as i24 from "./anna-core-shared-lib/components/anna-deleted-order-icon-template/anna-deleted-order-icon-template.component";
26
+ import * as i25 from "@angular/common";
27
+ import * as i26 from "@ng-bootstrap/ng-bootstrap";
28
+ import * as i27 from "@angular/forms";
29
+ import * as i28 from "@angular/material/radio";
30
+ import * as i29 from "@angular/material/button-toggle";
31
+ import * as i30 from "@angular/material/table";
32
+ import * as i31 from "@angular-slider/ngx-slider";
33
+ import * as i32 from "ngx-skeleton-loader";
34
+ import * as i33 from "@angular/cdk/scrolling";
35
+ import * as i34 from "ng-circle-progress";
35
36
  export declare class AnnaCoreModule {
36
37
  static ɵfac: i0.ɵɵFactoryDeclaration<AnnaCoreModule, never>;
37
- static ɵmod: i0.ɵɵNgModuleDeclaration<AnnaCoreModule, [typeof i1.AnnaNoDataComponent, typeof i2.AnnaFilterSearchedTextPipe, typeof i3.AnnaConvertZeroOrNullOrUndefinedPipe, typeof i4.AnnaTypeofDataPipe, typeof i2.AnnaFilterSearchedTextPipe, typeof i5.AnnaReplaceCharPipe, typeof i6.AnnaBuyerApprovalIconTemplateComponent, typeof i7.AnnaLiveIconTemplateComponent, typeof i8.AnnaNotifyIconTemplateComponent, typeof i9.AnnaPayForPerformanceIconTemplateComponent, typeof i10.AnnaRejectedIconTemplateComponent, typeof i11.showEllipsisTextOnHoverDirective, typeof i12.AnnaIconColumnComponent, typeof i13.AnnaWeekCalendarComponent, typeof i14.AnnaCalendarFilterComponent, typeof i15.AnnaSortComponent, typeof i16.AnnaVirtualTableDirective, typeof i17.AnnaNonEditableGenericTableComponent, typeof i18.AnnaTableVirtualScrollViewportComponent, typeof i19.AnnaFixedRowSizeTableVirtualScrollStrategyDirective, typeof i20.DigitOnlyDirective, typeof i21.AnnaColumnDateRangeFilterComponent, typeof i22.AnnaColumnTimeFilterComponent, typeof i23.AnnaColumnCheckboxFilterComponent], [typeof i24.CommonModule, typeof i25.NgbModule, typeof i26.FormsModule, typeof i27.MatRadioModule, typeof i28.MatButtonToggleModule, typeof i29.MatTableModule, typeof i30.NgxSliderModule, typeof i31.NgxSkeletonLoaderModule, typeof i32.ScrollingModule, typeof i33.NgCircleProgressModule], [typeof i1.AnnaNoDataComponent, typeof i2.AnnaFilterSearchedTextPipe, typeof i3.AnnaConvertZeroOrNullOrUndefinedPipe, typeof i4.AnnaTypeofDataPipe, typeof i5.AnnaReplaceCharPipe, typeof i2.AnnaFilterSearchedTextPipe, typeof i6.AnnaBuyerApprovalIconTemplateComponent, typeof i7.AnnaLiveIconTemplateComponent, typeof i8.AnnaNotifyIconTemplateComponent, typeof i9.AnnaPayForPerformanceIconTemplateComponent, typeof i10.AnnaRejectedIconTemplateComponent, typeof i11.showEllipsisTextOnHoverDirective, typeof i12.AnnaIconColumnComponent, typeof i13.AnnaWeekCalendarComponent, typeof i14.AnnaCalendarFilterComponent, typeof i15.AnnaSortComponent, typeof i16.AnnaVirtualTableDirective, typeof i17.AnnaNonEditableGenericTableComponent, typeof i18.AnnaTableVirtualScrollViewportComponent, typeof i21.AnnaColumnDateRangeFilterComponent, typeof i22.AnnaColumnTimeFilterComponent, typeof i23.AnnaColumnCheckboxFilterComponent, typeof i19.AnnaFixedRowSizeTableVirtualScrollStrategyDirective, typeof i20.DigitOnlyDirective]>;
38
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AnnaCoreModule, [typeof i1.AnnaNoDataComponent, typeof i2.AnnaFilterSearchedTextPipe, typeof i3.AnnaConvertZeroOrNullOrUndefinedPipe, typeof i4.AnnaTypeofDataPipe, typeof i2.AnnaFilterSearchedTextPipe, typeof i5.AnnaReplaceCharPipe, typeof i6.AnnaBuyerApprovalIconTemplateComponent, typeof i7.AnnaLiveIconTemplateComponent, typeof i8.AnnaNotifyIconTemplateComponent, typeof i9.AnnaPayForPerformanceIconTemplateComponent, typeof i10.AnnaRejectedIconTemplateComponent, typeof i11.showEllipsisTextOnHoverDirective, typeof i12.AnnaIconColumnComponent, typeof i13.AnnaWeekCalendarComponent, typeof i14.AnnaCalendarFilterComponent, typeof i15.AnnaSortComponent, typeof i16.AnnaVirtualTableDirective, typeof i17.AnnaNonEditableGenericTableComponent, typeof i18.AnnaTableVirtualScrollViewportComponent, typeof i19.AnnaFixedRowSizeTableVirtualScrollStrategyDirective, typeof i20.DigitOnlyDirective, typeof i21.AnnaColumnDateRangeFilterComponent, typeof i22.AnnaColumnTimeFilterComponent, typeof i23.AnnaColumnCheckboxFilterComponent, typeof i24.AnnaDeletedOrderIconTemplateComponent], [typeof i25.CommonModule, typeof i26.NgbModule, typeof i27.FormsModule, typeof i28.MatRadioModule, typeof i29.MatButtonToggleModule, typeof i30.MatTableModule, typeof i31.NgxSliderModule, typeof i32.NgxSkeletonLoaderModule, typeof i33.ScrollingModule, typeof i34.NgCircleProgressModule], [typeof i1.AnnaNoDataComponent, typeof i2.AnnaFilterSearchedTextPipe, typeof i3.AnnaConvertZeroOrNullOrUndefinedPipe, typeof i4.AnnaTypeofDataPipe, typeof i5.AnnaReplaceCharPipe, typeof i2.AnnaFilterSearchedTextPipe, typeof i6.AnnaBuyerApprovalIconTemplateComponent, typeof i7.AnnaLiveIconTemplateComponent, typeof i8.AnnaNotifyIconTemplateComponent, typeof i9.AnnaPayForPerformanceIconTemplateComponent, typeof i10.AnnaRejectedIconTemplateComponent, typeof i11.showEllipsisTextOnHoverDirective, typeof i12.AnnaIconColumnComponent, typeof i13.AnnaWeekCalendarComponent, typeof i14.AnnaCalendarFilterComponent, typeof i15.AnnaSortComponent, typeof i16.AnnaVirtualTableDirective, typeof i17.AnnaNonEditableGenericTableComponent, typeof i18.AnnaTableVirtualScrollViewportComponent, typeof i21.AnnaColumnDateRangeFilterComponent, typeof i22.AnnaColumnTimeFilterComponent, typeof i23.AnnaColumnCheckboxFilterComponent, typeof i19.AnnaFixedRowSizeTableVirtualScrollStrategyDirective, typeof i20.DigitOnlyDirective, typeof i24.AnnaDeletedOrderIconTemplateComponent]>;
38
39
  static ɵinj: i0.ɵɵInjectorDeclaration<AnnaCoreModule>;
39
40
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@annalib/anna-core",
3
- "version": "12.8.1",
3
+ "version": "12.8.3",
4
4
  "peerDependencies": {
5
5
  "@angular-slider/ngx-slider": "^2.0.4",
6
6
  "@angular/common": "^15.2.9",
package/public-api.d.ts CHANGED
@@ -6,6 +6,7 @@ export * from "./lib/anna-core-shared-lib/components/anna-notify-icon-template/a
6
6
  export * from "./lib/anna-core-shared-lib/components/anna-pay-for-performance-icon-template/anna-pay-for-performance-icon-template.component";
7
7
  export * from "./lib/anna-core-shared-lib/components/anna-rejected-icon-template/anna-rejected-icon-template.component";
8
8
  export * from "./lib/anna-core-shared-lib/components/anna-icon-column/anna-icon-column.component";
9
+ export * from "./lib/anna-core-shared-lib/components/anna-deleted-order-icon-template/anna-deleted-order-icon-template.component";
9
10
  export * from "./lib/anna-core-shared-lib/services/anna-date-time-format.service";
10
11
  export * from "./lib/anna-core-shared-lib/services/anna-global-config.service";
11
12
  export * from "./lib/anna-core-shared-lib/services/anna-filter.service";
@@ -119,5 +119,4 @@ span.selected-item{
119
119
 
120
120
  ::ng-deep .cdk-overlay-container{
121
121
  z-index: 1051;
122
- }
123
-
122
+ }
@@ -1,16 +1,21 @@
1
- @use "./fonts";
2
- @use "./colors";
1
+ @use "../anna-common-scss/fonts" as fonts;
2
+ @use "../anna-common-scss/colors" as colors;
3
3
 
4
4
  @mixin no-data-to-display-gt($tableHeight, $rowHeight, $noDataMarginTop) {
5
5
  .table-container {
6
6
  height: calc($tableHeight) !important;
7
+
7
8
  table {
8
- tbody {
9
- border-top: none;
10
- border-left: 1px solid #d3d3d3;
11
- border-right: 1px solid #d3d3d3;
12
- border-bottom: 1px solid #d3d3d3;
9
+ border: solid 1px #d4d4d4;
13
10
 
11
+ thead {
12
+ th {
13
+ box-shadow: none !important;
14
+ border: solid 1px #d4d4d4 !important;
15
+ }
16
+ }
17
+
18
+ tbody {
14
19
  tr.no-border-tr:first-of-type {
15
20
  height: $rowHeight !important;
16
21
 
@@ -34,7 +39,7 @@
34
39
  }
35
40
 
36
41
  @mixin resetFilterStyle() {
37
- padding: 0;
42
+ padding: 0;
38
43
  border: none;
39
44
  display: block;
40
45
  text-align: right;
@@ -47,9 +52,11 @@
47
52
  font-size: 14px !important;
48
53
  letter-spacing: normal !important;
49
54
  font-weight: normal !important;
55
+
50
56
  &:hover:enabled {
51
57
  color: #268bff;
52
58
  }
59
+
53
60
  &:disabled {
54
61
  color: #4a4a4a;
55
62
  opacity: 0.5;
@@ -62,6 +69,7 @@
62
69
  cursor: pointer !important;
63
70
  color: #268bff !important;
64
71
  text-decoration: underline !important;
72
+
65
73
  &.disabled {
66
74
  color: #b7b6b6;
67
75
  pointer-events: none;
@@ -72,52 +80,56 @@
72
80
 
73
81
  @mixin table-ellipses {
74
82
  div {
75
- text-overflow: ellipsis !important;
76
- overflow: hidden !important;
77
- white-space:nowrap !important;
78
- // width: 99.5%;
83
+ text-overflow: ellipsis !important;
84
+ overflow: hidden !important;
85
+ white-space: nowrap !important;
86
+ // width: 99.5%;
79
87
  }
80
88
  }
81
89
 
82
90
  @mixin table-ellipses-only-on-text-span {
83
91
  span {
84
- text-overflow: ellipsis !important;
85
- overflow: hidden !important;
86
- white-space:nowrap !important;
87
- display: inline-block !important;
88
- max-width: 92%;
89
- width: fit-content;
92
+ text-overflow: ellipsis !important;
93
+ overflow: hidden !important;
94
+ white-space: nowrap !important;
95
+ display: inline-block !important;
96
+ max-width: 92%;
97
+ width: fit-content;
90
98
  }
91
99
  }
92
100
 
93
- @mixin common-scrollbar($scrollTop) {
94
- &::-webkit-scrollbar {
95
- height: 4px;
96
- width: 4px;
97
- }
98
-
99
- &::-webkit-scrollbar-thumb {
100
- border-radius: 2px;
101
- border: solid 1px rgba(0, 0, 0, 0.1);
102
- background-color: rgba(0, 0, 0, 0.4);
101
+ @mixin genericTableHeaderShadow($columnNumber) {
102
+ .scroll-left-shadow-effect .header-row th:nth-of-type(#{$columnNumber}) {
103
+ border: none !important;
104
+ filter: drop-shadow(2px 0 2px colors.$lightGray-4);
103
105
  }
106
+ }
104
107
 
105
- &::-webkit-scrollbar-track {
106
- margin-top: $scrollTop;
107
- border: 1px solid rgba(0, 0, 0, 0.1) !important
108
+ @mixin genericTableTotalRowShadow($columnNumber) {
109
+ .scroll-left-shadow-effect .total-row td:nth-of-type(#{$columnNumber}) {
110
+ filter: drop-shadow(2px 0 2px colors.$lightGray-4);
108
111
  }
109
112
  }
110
113
 
111
- @mixin header-fixed($z-index) {
112
- position: sticky;
113
- z-index: $z-index;
114
+ @mixin genericTableTableDataShadow($columnNumber) {
115
+ .scroll-left-shadow-effect td:nth-of-type(#{$columnNumber}) {
116
+ filter: drop-shadow(2px 0 1px colors.$lightGray-4);
117
+ }
114
118
  }
115
119
 
116
- @mixin sub-header($z-index) {
117
- position: sticky;
118
- z-index: $z-index;
120
+ @mixin genericTableOverrideHeaderShadow($columnNumber) {
121
+ .scroll-left-shadow-effect .header-row th:nth-of-type(#{$columnNumber}) {
122
+ box-shadow: none !important;
123
+ border: none !important;
124
+ filter: none;
125
+ }
119
126
  }
120
127
 
128
+ @mixin genericTableOverrideTableDataShadow($columnNumber) {
129
+ .scroll-left-shadow-effect td:nth-of-type(#{$columnNumber}) {
130
+ filter: none;
131
+ }
132
+ }
121
133
 
122
134
  @mixin genericTableHeaderShadow($columnNumber){
123
135
  .scroll-left-shadow-effect .header-row th:nth-of-type(#{$columnNumber}) {