@annalib/anna-core 10.7.1 → 10.7.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 (23) hide show
  1. package/esm2020/lib/anna-core-shared-lib/models/anna-non-editable-gt-models.mjs +1 -1
  2. package/esm2020/lib/anna-core-shared-lib/services/anna-filter.service.mjs +5 -1
  3. package/esm2020/lib/anna-core-shared-lib/services/anna-generic-table.service.mjs +1 -1
  4. package/esm2020/lib/anna-core-shared-lib/services/anna-persisting-filter.service.mjs +60 -0
  5. package/esm2020/lib/anna-generic-table-lib/components/anna-column-filters/anna-column-checkbox-filter/anna-column-checkbox-filter.component.mjs +2 -2
  6. package/esm2020/lib/anna-generic-table-lib/components/anna-column-filters/anna-column-date-range-filter/anna-column-date-range-filter.component.mjs +2 -2
  7. package/esm2020/lib/anna-generic-table-lib/components/anna-column-filters/anna-column-time-filter/anna-column-time-filter.component.mjs +36 -46
  8. package/esm2020/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.mjs +29 -18
  9. package/esm2020/public-api.mjs +2 -1
  10. package/fesm2015/annalib-anna-core.mjs +129 -66
  11. package/fesm2015/annalib-anna-core.mjs.map +1 -1
  12. package/fesm2020/annalib-anna-core.mjs +129 -66
  13. package/fesm2020/annalib-anna-core.mjs.map +1 -1
  14. package/lib/anna-core-shared-lib/models/anna-non-editable-gt-models.d.ts +1 -1
  15. package/lib/anna-core-shared-lib/services/anna-persisting-filter.service.d.ts +8 -0
  16. package/lib/anna-generic-table-lib/components/anna-column-filters/anna-column-time-filter/anna-column-time-filter.component.d.ts +1 -4
  17. package/package.json +4 -4
  18. package/public-api.d.ts +1 -0
  19. package/src/lib/anna-common-scss/_bootstrap-tooltip.scss +1 -1
  20. package/src/lib/anna-common-scss/_customDropdown.scss +129 -0
  21. package/src/lib/anna-common-scss/_filters.scss +22 -7
  22. package/src/lib/anna-common-scss/_generic-table-common.scss +30 -1
  23. package/src/lib/anna-common-scss/style.scss +1 -1
@@ -52,7 +52,7 @@ export interface IGtGeneralConfig extends ISpotTableConfig {
52
52
  bufferSize: number;
53
53
  page: string;
54
54
  }
55
- declare type COMPONENTNAME = "SPOTDETAILS" | "EXCLUDEINVENTORYPOPUP" | "EXCLUDEINVENTORY" | "DRRLISTING" | "DRR" | "" | "RATING" | "ORDER_LISTING_INFLIGHT" | "ORDER_LISTING_COMPLETED" | "ORDER_LISTING_BLANK" | "LUR_VIOLATIONS" | "ACTIVITYLOG";
55
+ declare type COMPONENTNAME = "SPOTDETAILS" | "EXCLUDEINVENTORYPOPUP" | "EXCLUDEINVENTORY" | "DRRLISTING" | "DRR" | "" | "RATING" | "ORDER_LISTING_INFLIGHT" | "ORDER_LISTING_COMPLETED" | "ORDER_LISTING_BLANK" | "LUR_VIOLATIONS" | "ACTIVITYLOG" | "NOTIFICATIONS";
56
56
  interface ISpotTableConfig {
57
57
  isGrouped: boolean;
58
58
  }
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class AnnaPersistingFilterService {
3
+ constructor();
4
+ storeKeyValueInLocalStorage(val: any, isFilterKey?: boolean): string;
5
+ getActualQueryParams(key: string): string;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<AnnaPersistingFilterService, never>;
7
+ static ɵprov: i0.ɵɵInjectableDeclaration<AnnaPersistingFilterService>;
8
+ }
@@ -4,7 +4,6 @@ import { SortType } from '../../../../anna-core-shared-lib/models/anna-sort.mode
4
4
  import { AnnaSortService } from '../../../../anna-core-shared-lib/services/anna-sort.service';
5
5
  import { AnnaFilterService } from '../../../../anna-core-shared-lib/services/anna-filter.service';
6
6
  import { AnnaDateTimeFormatService } from '../../../../anna-core-shared-lib/services/anna-date-time-format.service';
7
- import { IGtGeneralConfig } from '../../../../anna-core-shared-lib/models/anna-non-editable-gt-models';
8
7
  import * as i0 from "@angular/core";
9
8
  export declare class AnnaColumnTimeFilterComponent implements OnInit {
10
9
  private annaSortService;
@@ -14,7 +13,6 @@ export declare class AnnaColumnTimeFilterComponent implements OnInit {
14
13
  clonedTableData: any[];
15
14
  limit: number;
16
15
  filterTabObjects: any[];
17
- gtGeneralConfig: IGtGeneralConfig;
18
16
  filterAppliedToTable: EventEmitter<any>;
19
17
  sortingAppliedToTable: EventEmitter<any>;
20
18
  closeTooltip: EventEmitter<any>;
@@ -57,7 +55,6 @@ export declare class AnnaColumnTimeFilterComponent implements OnInit {
57
55
  createFilterTooltipData(header: string): void;
58
56
  getTimeFilterData(header: string): void;
59
57
  setInitialValueMapForTimeFilter(key: string): void;
60
- setInitialValueMapForRatingPageTimeFilter(key: string): void;
61
58
  setTimeFilterDataForComponentsOtherThanRatingsPage(header: string): void;
62
59
  setTimeFilterDataForRatingPageComponent(header: string): void;
63
60
  selectOrUnselectMultiTimeCheckbox(): void;
@@ -93,5 +90,5 @@ export declare class AnnaColumnTimeFilterComponent implements OnInit {
93
90
  clearColumnFilter(): void;
94
91
  storeSortTypeInTempVariable(event: SortType): void;
95
92
  static ɵfac: i0.ɵɵFactoryDeclaration<AnnaColumnTimeFilterComponent, never>;
96
- static ɵcmp: i0.ɵɵComponentDeclaration<AnnaColumnTimeFilterComponent, "anna-core-anna-column-time-filter", never, { "tableData": "tableData"; "clonedTableData": "clonedTableData"; "limit": "limit"; "filterTabObjects": "filterTabObjects"; "gtGeneralConfig": "gtGeneralConfig"; }, { "filterAppliedToTable": "filterAppliedToTable"; "sortingAppliedToTable": "sortingAppliedToTable"; "closeTooltip": "closeTooltip"; }, never, never, false>;
93
+ static ɵcmp: i0.ɵɵComponentDeclaration<AnnaColumnTimeFilterComponent, "anna-core-anna-column-time-filter", never, { "tableData": "tableData"; "clonedTableData": "clonedTableData"; "limit": "limit"; "filterTabObjects": "filterTabObjects"; }, { "filterAppliedToTable": "filterAppliedToTable"; "sortingAppliedToTable": "sortingAppliedToTable"; "closeTooltip": "closeTooltip"; }, never, never, false>;
97
94
  }
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@annalib/anna-core",
3
- "version": "10.7.1",
3
+ "version": "10.7.3",
4
4
  "peerDependencies": {
5
5
  "@angular-slider/ngx-slider": "^2.0.3",
6
6
  "@angular/common": "^14.3.0",
7
7
  "@angular/core": "^14.3.0",
8
8
  "@angular/material": "^14.2.7",
9
9
  "@ng-bootstrap/ng-bootstrap": "^13.1.1",
10
- "lodash-es": "^4.17.21",
11
10
  "dayjs": "^1.11.7",
12
- "ngx-skeleton-loader": "^2.10.1",
13
- "ng-circle-progress": "^1.6.0"
11
+ "lodash-es": "^4.17.21",
12
+ "ng-circle-progress": "^1.6.0",
13
+ "ngx-skeleton-loader": "^2.10.1"
14
14
  },
15
15
  "dependencies": {
16
16
  "tslib": "^2.5.0"
package/public-api.d.ts CHANGED
@@ -12,6 +12,7 @@ export * from "./lib/anna-core-shared-lib/services/anna-filter.service";
12
12
  export * from "./lib/anna-core-shared-lib/services/anna-sort.service";
13
13
  export * from "./lib/anna-core-shared-lib/services/anna-generic-table.service";
14
14
  export * from "./lib/anna-core-shared-lib/services/anna-number-format.service";
15
+ export * from "./lib/anna-core-shared-lib/services/anna-persisting-filter.service";
15
16
  export * from "./lib/anna-core-shared-lib/models/anna-generic-data-type.model";
16
17
  export * from "./lib/anna-core-shared-lib/models/anna-global-dropdown-config.model";
17
18
  export * from "./lib/anna-core-shared-lib/models/anna-non-editable-gt-models";
@@ -4,7 +4,7 @@
4
4
  color: #4a4a4a;
5
5
  text-align: left;
6
6
  padding: 8px !important;
7
- border-radius: $fs-2;
7
+ border-radius: 2px;
8
8
  background: white !important;
9
9
  box-shadow: 0 6px 10px 0 rgba(0, 0, 0, 0.3), 0 2px 2px 0 rgba(0, 0, 0, 0.2);
10
10
  @include fonts(Roboto, 12px, normal, normal, normal, normal, normal);
@@ -0,0 +1,129 @@
1
+ @import "./colors", "./fonts";
2
+
3
+ //Common styling
4
+ #dropdown-trigger {
5
+ height: 1.875rem;
6
+ background: white;
7
+ border-radius: 2px;
8
+ border: 1px solid $lightGray-8;
9
+ width: 100%;
10
+ text-align: left;
11
+ &:disabled{
12
+ background-color: $gray74;
13
+ opacity: 0.5;
14
+ & .placeholder, .icon {
15
+ color: #000;
16
+ }
17
+ }
18
+ }
19
+
20
+ .placeholder {
21
+ color: $gray74;
22
+ @include fonts(Roboto, 14px, normal, normal, normal, normal, normal);
23
+ }
24
+
25
+ // #dropdown-trigger:disabled .placeholder {
26
+ // color: #000;
27
+ // }
28
+
29
+ .icon {
30
+ font-size: 1.125rem;
31
+ float: right;
32
+ }
33
+
34
+ .search-bar {
35
+ margin: 9px 7px 8px 7px;
36
+ border: 1px solid $pinkSwan;
37
+ height: 1.875rem;
38
+ border-radius: 2px;
39
+ input {
40
+ outline: none;
41
+ border: none;
42
+ position: relative;
43
+ bottom: 4px;
44
+ width: calc(100% - 29px);
45
+ }
46
+
47
+ .search-icon {
48
+ font-size: 1.125rem;
49
+ color: $lightGray-7;
50
+ margin: 5px;
51
+ }
52
+
53
+ .close-icon{
54
+ cursor: pointer;
55
+ }
56
+ }
57
+
58
+ ul {
59
+ overflow-y: auto;
60
+ padding-left: 0;
61
+ padding-bottom: 0;
62
+ margin-bottom: 0;
63
+ max-height: calc(50vh - 80px) !important;
64
+ // min-heightw: 70px;
65
+ }
66
+
67
+ li {
68
+ list-style-type: none;
69
+ cursor: pointer;
70
+ padding-inline: 6px;
71
+ @include fonts(Roboto, 14px, normal, normal, normal, 2.14, normal);
72
+ color: #4a4a4a;
73
+ @extend .ellipsify;
74
+ width: 100%;
75
+ }
76
+
77
+ ul::-webkit-scrollbar {
78
+ width: 4px;
79
+ height: 4px;
80
+ }
81
+
82
+ ul::-webkit-scrollbar-track {
83
+ border: 1px solid rgba(0, 0, 0, 0.1);
84
+ }
85
+
86
+ ul::-webkit-scrollbar-thumb {
87
+ border-radius: 4px;
88
+ background-color: rgba(0, 0, 0, 0.4) !important;
89
+ border: 1px solid rgba(0, 0, 0, 0.2);
90
+ }
91
+
92
+ li:hover {
93
+ // color: white;
94
+ background: #ebebeb;
95
+ }
96
+
97
+ li.active {
98
+ color: white;
99
+ background: $primary-color;
100
+ }
101
+
102
+ span.selected-item{
103
+ background: transparent;
104
+ @include fonts(Roboto, 14px, normal, normal, normal, normal, normal);
105
+ color: #4a4a4a;
106
+ @extend .ellipsify;
107
+ width: calc(100% - 22px);
108
+ display: inline-block;
109
+ vertical-align: middle;
110
+ }
111
+
112
+ .ellipsify{
113
+ white-space: nowrap;
114
+ text-overflow: ellipsis;
115
+ overflow: hidden;
116
+ }
117
+
118
+ ::ng-deep .cdk-overlay-container{
119
+ z-index: 1051;
120
+ }
121
+
122
+ ::ng-deep .multi-select-dropdown + div .mat-menu-panel,
123
+ ::ng-deep .single-select-dropdown + div .mat-menu-panel{
124
+ min-width: 100px !important;
125
+ max-width: 100%;
126
+ min-height: 30px !important;
127
+ overflow-y: hidden;
128
+ max-height: 50vh;
129
+ }
@@ -364,17 +364,23 @@ section.min-maxContainer {
364
364
  div.arrow-container {
365
365
  flex-direction: column;
366
366
  display: flex;
367
- padding-top: $fs-6;
368
- padding-left: 1px;
367
+ margin-top: $fs-6;
368
+ width: 9px;
369
+ height: 18px;
369
370
  margin-right: $fs-19;
371
+ position: relative;
372
+ left: -9px;
373
+ top: -11px;
370
374
  i {
371
375
  color: black;
372
376
  cursor: pointer;
373
- font-size: $fs-9;
374
- }
375
- i.downward {
376
- transform: rotate(180deg);
377
+ max-height: 9px;
378
+ font-size: 25px;
379
+ width: 10px;
377
380
  }
381
+ // i.downward {
382
+ // transform: rotate(180deg);
383
+ // }
378
384
  }
379
385
  }
380
386
 
@@ -606,7 +612,8 @@ input.error-border{
606
612
 
607
613
  ::ng-deep .show-max.ngx-slider span.ngx-slider-model-high{
608
614
  background: white;
609
- box-shadow: 0 6px 10px 0 rgba(0, 0, 0, 0.3), 0 2px 2px 0 rgba(0, 0, 0, 0.2);
615
+ box-shadow: none;
616
+ // left: auto !important;
610
617
  }
611
618
 
612
619
  ::ng-deep .ngx-slider span.ngx-slider-combined{
@@ -614,6 +621,14 @@ input.error-border{
614
621
  box-shadow: 0 6px 10px 0 rgba(0, 0, 0, 0.3), 0 2px 2px 0 rgba(0, 0, 0, 0.2);
615
622
  }
616
623
 
624
+ ::ng-deep .ngx-slider{
625
+ top: 10px !important;
626
+ }
627
+
628
+ ::ng-deep .ngx-slider-animate{
629
+ top: 0 !important;
630
+ }
631
+
617
632
  .sidebar-slider{
618
633
  margin-bottom: 6px;
619
634
  }
@@ -68,7 +68,7 @@
68
68
  text-overflow: ellipsis !important;
69
69
  overflow: hidden !important;
70
70
  white-space:nowrap !important;
71
- width: 99.5%;
71
+ // width: 99.5%;
72
72
  }
73
73
  }
74
74
 
@@ -82,3 +82,32 @@
82
82
  width: fit-content;
83
83
  }
84
84
  }
85
+
86
+ @mixin common-scrollbar($scrollTop) {
87
+ &::-webkit-scrollbar {
88
+ height: 4px;
89
+ width: 4px;
90
+ }
91
+
92
+ &::-webkit-scrollbar-thumb {
93
+ border-radius: 2px;
94
+ border: solid 1px rgba(0, 0, 0, 0.1);
95
+ background-color: rgba(0, 0, 0, 0.4);
96
+ }
97
+
98
+ &::-webkit-scrollbar-track {
99
+ margin-top: $scrollTop;
100
+ border: 1px solid rgba(0, 0, 0, 0.1) !important
101
+ }
102
+ }
103
+
104
+ @mixin header-fixed($z-index) {
105
+ position: sticky;
106
+ z-index: $z-index;
107
+ }
108
+
109
+ @mixin sub-header($z-index) {
110
+ position: sticky;
111
+ z-index: $z-index;
112
+ }
113
+
@@ -1 +1 @@
1
- @import "./colors", "./filters", "./fonts", "./sort", "./application-spacing";
1
+ @import "./colors", "./filters", "./fonts", "./sort", "./application-spacing", "./customDropdown";