ng-ipa-library 1.1.0 → 1.2.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.
@@ -8,6 +8,9 @@ export declare class AuthService {
8
8
  getToken(): string;
9
9
  getDecodedToken(): any;
10
10
  setCurrentUser(): void;
11
+ getTokenFromHidden(): string;
12
+ getDecodedTokenFromHidden(): any;
13
+ setCurrentUserFromHidden(): void;
11
14
  setCurrentUserUrl(url: string): void;
12
15
  private decodeJwt;
13
16
  static ɵfac: i0.ɵɵFactoryDeclaration<AuthService, never>;
@@ -1,12 +1,13 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  import { FormControl, NgControl } from '@angular/forms';
3
- import { NgbCalendar, NgbDateStruct, NgbInputDatepickerConfig } from '@ng-bootstrap/ng-bootstrap';
3
+ import { NgbCalendar, NgbDateStruct, NgbInputDatepicker, NgbInputDatepickerConfig } from '@ng-bootstrap/ng-bootstrap';
4
4
  import { IPAFormService } from '../ipa-form.service';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class DatepickerComponent implements OnInit {
7
7
  private ipaFormService;
8
8
  private calendar;
9
9
  controlDir: NgControl;
10
+ datepicker: NgbInputDatepicker;
10
11
  id: string;
11
12
  label: string;
12
13
  patternErrorMsg: string;
@@ -25,6 +26,7 @@ export declare class DatepickerComponent implements OnInit {
25
26
  writeValue(obj: any): void;
26
27
  registerOnChange(fn: any): void;
27
28
  registerOnTouched(fn: any): void;
29
+ openDatepicker(event: any): void;
28
30
  get errorMessage(): string | null;
29
31
  static ɵfac: i0.ɵɵFactoryDeclaration<DatepickerComponent, [null, null, { self: true; }, null]>;
30
32
  static ɵcmp: i0.ɵɵComponentDeclaration<DatepickerComponent, "ipa-datepicker", never, { "id": "id"; "label": "label"; "patternErrorMsg": "patternErrorMsg"; "required": "required"; "maxDate": "maxDate"; "minDate": "minDate"; "classes": "classes"; "containerClasses": "containerClasses"; }, {}, never, never>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ng-ipa-library",
3
- "version": "1.1.0",
3
+ "version": "1.2.1",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "~13.2.2",
6
6
  "@angular/core": "~13.2.2",
package/public-api.d.ts CHANGED
@@ -16,6 +16,7 @@ export * from './lib/share-button/share-button.component';
16
16
  export * from './lib/core/interceptors/loading.interceptor';
17
17
  export * from './lib/core/interceptors/error.interceptor';
18
18
  export * from './lib/core/interceptors/token.interceptor';
19
+ export * from './lib/core/interceptors/myIPAToken.interceptor';
19
20
  export * from './lib/core/services/loader.service';
20
21
  export * from './lib/core/services/auth.service';
21
22
  export * from './lib/ipa-form/ipa-form.service';
@@ -40,17 +40,110 @@
40
40
 
41
41
  .sb-icon {
42
42
  background-color: white;
43
- font-size: 1.4em!important;
43
+ font-size: 1.4em !important;
44
44
  color: #02b9b4;
45
45
  }
46
46
  }
47
47
 
48
48
  .sm-share-title {
49
- font-size: 20px!important;
49
+ font-size: 20px !important;
50
50
  vertical-align: baseline;
51
51
  }
52
52
 
53
- ng-select.ng-invalid.ng-touched .ng-select-container{
53
+ ng-select.ng-invalid.ng-touched .ng-select-container {
54
54
  border-color: #dc3545;
55
55
  box-shadow: inset 0 1px 1px #00000013, 0 0 0 3px #fde6e8;
56
56
  }
57
+
58
+ // datepicker style --start
59
+ .dropdown-menu.show {
60
+ display: grid !important;
61
+ }
62
+
63
+ ngb-datepicker .ngb-dp-header {
64
+
65
+ ngb-datepicker-navigation {
66
+
67
+ .ngb-dp-arrow {
68
+
69
+ .ngb-dp-arrow-btn {
70
+ padding: 0 .25rem;
71
+ margin: 0 .5rem;
72
+ border: none;
73
+ background-color: transparent;
74
+ z-index: 1;
75
+ }
76
+
77
+ .btn-link {
78
+ font-weight: 400;
79
+ color: #02b9b4;
80
+ text-decoration: none;
81
+ }
82
+
83
+ .ngb-dp-arrow-btn:focus {
84
+ outline-width: 1px;
85
+ outline-style: auto;
86
+ }
87
+
88
+ .ngb-dp-navigation-chevron {
89
+ transform: rotate(45deg);
90
+ }
91
+ }
92
+
93
+ .ngb-dp-arrow.right {
94
+ .ngb-dp-navigation-chevron {
95
+ transform: rotate(-135deg);
96
+ }
97
+ }
98
+
99
+ ngb-datepicker-navigation-select {
100
+ display: grid;
101
+ flex: 1 1 9rem;
102
+ }
103
+ }
104
+ }
105
+
106
+ ngb-datepicker .ngb-dp-content {
107
+ .ngb-dp-month {
108
+ ngb-datepicker-month {
109
+
110
+ .ngb-dp-weekday {
111
+ color: #5bc0de;
112
+ }
113
+
114
+ .bg-primary {
115
+ background-color: #02a09a !important;
116
+ }
117
+
118
+ .ngb-dp-today {
119
+ outline: none !important;
120
+ }
121
+
122
+ .btn-light {
123
+ color: #212529;
124
+ background-color: #f8f9fa;
125
+ border-color: #f8f9fa;
126
+ }
127
+
128
+ .btn-light.focus,
129
+ .btn-light:focus,
130
+ .btn-light:hover {
131
+ color: #212529;
132
+ background-color: #e2e6ea;
133
+ border-color: #dae0e5;
134
+ }
135
+
136
+ .btn-light:not(:disabled):not(.disabled).active,
137
+ .btn-light:not(:disabled):not(.disabled):active,
138
+ .show>.btn-light.dropdown-toggle {
139
+ color: #212529;
140
+ background-color: #dae0e5;
141
+ border-color: #d3d9df;
142
+ }
143
+
144
+ }
145
+
146
+ }
147
+ }
148
+
149
+ // datepicker style --end