new-front-common-library 16.0.0 → 16.0.1-REF-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.
Files changed (35) hide show
  1. package/assets/css/_dark-theme.scss +1 -1
  2. package/assets/css/_global.scss +1 -1
  3. package/assets/css/_light-theme.scss +1 -1
  4. package/assets/css/_mat-palettes.scss +2 -0
  5. package/assets/css/_themes.scss +15 -2
  6. package/assets/css/material/_mdc-dark-theme.scss +240 -0
  7. package/assets/css/material/_mdc-light-theme.scss +262 -0
  8. package/assets/css/material/_mdc.scss +336 -0
  9. package/esm2022/lib/util/component/header/header.component.mjs +9 -17
  10. package/esm2022/lib/util/component/overlay/overlay.component.mjs +3 -3
  11. package/esm2022/lib/util/component/popup/popup-login/popup-login.component.mjs +10 -10
  12. package/esm2022/lib/util/directives/show-if-truncated.directive.mjs +4 -4
  13. package/esm2022/lib/util/i18n/de.mjs +2 -3
  14. package/esm2022/lib/util/i18n/en.mjs +2 -3
  15. package/esm2022/lib/util/i18n/fr.mjs +2 -3
  16. package/esm2022/lib/util/models/commercial/work-record-rapid-search-model.mjs +12 -1
  17. package/esm2022/lib/util/models/legal/contract-rapid-search-model.mjs +1 -1
  18. package/esm2022/lib/util/services/elasticsearch/elasticsearch.service.mjs +6 -17
  19. package/esm2022/lib/util/services/guard/login.guard.mjs +2 -2
  20. package/esm2022/lib/util/util.module.mjs +12 -12
  21. package/fesm2022/new-front-common-library.mjs +86 -105
  22. package/fesm2022/new-front-common-library.mjs.map +1 -1
  23. package/lib/util/component/header/header.component.d.ts +2 -3
  24. package/lib/util/component/popup/popup-login/popup-login.component.d.ts +1 -1
  25. package/lib/util/directives/show-if-truncated.directive.d.ts +1 -1
  26. package/lib/util/i18n/de.d.ts +1 -2
  27. package/lib/util/i18n/en.d.ts +1 -2
  28. package/lib/util/i18n/fr.d.ts +1 -2
  29. package/lib/util/models/commercial/work-record-rapid-search-model.d.ts +1 -0
  30. package/lib/util/models/legal/contract-rapid-search-model.d.ts +1 -2
  31. package/lib/util/util.module.d.ts +12 -12
  32. package/package.json +1 -1
  33. package/assets/css/_new-global.scss +0 -7
  34. package/esm2022/lib/util/models/commercial/invoice-rapid-search-model.mjs +0 -9
  35. package/lib/util/models/commercial/invoice-rapid-search-model.d.ts +0 -18
@@ -100,7 +100,7 @@
100
100
 
101
101
  //19
102
102
  input {
103
- color: $gray-light;
103
+ color: $gray-light !important;
104
104
  }
105
105
 
106
106
  textarea {
@@ -110,7 +110,7 @@ body, html {
110
110
  margin-top: -8px;
111
111
  }
112
112
 
113
- .datepicker .mat-datepicker-toggle-default-icon {
113
+ .datepicker .mat-form-field-wrapper .mat-datepicker-toggle-default-icon {
114
114
  height: 15px !important;
115
115
  margin: 0 0 0 5px !important
116
116
  }
@@ -100,7 +100,7 @@
100
100
 
101
101
  //19
102
102
  input {
103
- color: $black-bluish;
103
+ color: $black-bluish !important;
104
104
  }
105
105
 
106
106
  textarea {
@@ -15,6 +15,7 @@ $gray-light: #A1B7D4;
15
15
  $gray-primary: #809EC1;
16
16
  $medium-blue: #4c709a;
17
17
  $black-bluish: #445D7B;
18
+ $light-border-color: #0000001E;
18
19
  //dark theme colors
19
20
  $background-lvl5: #111219;
20
21
  $background-lvl4: #212332;
@@ -25,6 +26,7 @@ $black-bluish: #445D7B;
25
26
  $gray-light: #A1B7D4;
26
27
  $gray-background-dark: #C2CFDD;
27
28
  //custom
29
+ $dark-border-color: #FFFFFF4C;
28
30
  $dark-background-color: #2A2D3E;
29
31
  $dark-default-text-color: white;
30
32
  $dark-work-title-color: #C2CFDD;
@@ -1,7 +1,11 @@
1
1
  @use '@angular/material' as mat;
2
2
 
3
3
 
4
+ /*TODO(mdc-migration): Remove legacy-core once all legacy components are migrated*/
4
5
  @include mat.legacy-core();
6
+
7
+
8
+ @include mat.core();
5
9
  //Fonts
6
10
  @import url('https://fonts.googleapis.com/css?family=Poppins');
7
11
  @import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro');
@@ -10,14 +14,14 @@
10
14
  //Imports
11
15
  @import "mat-palettes";
12
16
  @import "global";
13
- @import "new-global";
17
+ @import "material/mdc";
14
18
  @import '@angular/material/theming';
15
19
 
16
20
  // Define a light theme
17
21
  $mat-theme-ignore-duplication-warnings: true;
18
22
  $light-primary: mat.define-palette($light-unity-palette);
19
23
  $light-accent: mat.define-palette($light-unity-palette);
20
- $light-typography: mat.define-legacy-typography-config(
24
+ $light-typography: mat.define-typography-config(
21
25
  $font-family: '"Roboto","Source Sans Pro",Poppins'
22
26
  );
23
27
  $light-theme: mat.define-light-theme((
@@ -39,16 +43,25 @@ $dark-theme: mat.define-dark-theme((
39
43
  ));
40
44
 
41
45
  .dark-theme {
46
+ /*TODO(mdc-migration): Remove all-legacy-component-themes once all legacy components are migrated*/
42
47
  @include mat.all-legacy-component-themes($dark-theme);
48
+ @include mat.all-component-themes($dark-theme);
43
49
 
44
50
  }
45
51
 
46
52
  .light-theme {
53
+ /*TODO(mdc-migration): Remove all-legacy-component-themes once all legacy components are migrated*/
47
54
  @include mat.all-legacy-component-themes($light-theme);
55
+ @include mat.all-component-themes($light-theme);
48
56
 
49
57
  }
50
58
 
51
59
  @include mat.all-legacy-component-themes($light-theme);
60
+ @include mat.all-component-themes($light-theme);
61
+
62
+
63
+ @import "material/mdc-light-theme";
64
+ @import "material/mdc-dark-theme";
52
65
  @import "dark-theme";
53
66
  @import "light-theme";
54
67
  @import "flex";
@@ -0,0 +1,240 @@
1
+ @import "../mat-palettes";
2
+
3
+ .dark-theme {
4
+
5
+ .mdc-notched-outline {
6
+ background: $background-lvl3;
7
+ z-index: 0 !important;
8
+ }
9
+
10
+ .mdc-line-ripple {
11
+ background-color: $background-lvl3 !important;
12
+ }
13
+
14
+ .mat-mdc-select-value-text {
15
+ color: $gray-background-lightest;
16
+ }
17
+
18
+ .mat-form-field-disabled .mat-mdc-select-value-text {
19
+ color: gray;
20
+ }
21
+
22
+ .mat-mdc-paginator .mat-mdc-select-value-text {
23
+ color: $gray-strong !important;
24
+ }
25
+
26
+ .mat-mdc-select-placeholder {
27
+ color: $black-bluish !important;
28
+ }
29
+
30
+ .mat-mdc-select-arrow {
31
+ color: $blue-primary;
32
+ }
33
+
34
+ .mat-mdc-row .mat-mdc-select {
35
+ background: none;
36
+ }
37
+
38
+ .mat-mdc-row .mat-mdc-input-element {
39
+ background: none;
40
+ }
41
+
42
+ .mat-mdc-row mat-label {
43
+ background: $gray-strong;
44
+ }
45
+
46
+ .mat-mdc-paginator-page-size .mat-mdc-select-trigger {
47
+ background: $background-lvl3;
48
+ padding: 2px;
49
+ }
50
+
51
+ .mdc-text-field--outlined .mdc-notched-outline {
52
+ .mdc-notched-outline__leading, .mdc-notched-outline__trailing{
53
+ border-color : $black-bluish;
54
+ }
55
+ }
56
+
57
+
58
+ .mat-mdc-form-field .mat-icon {
59
+ color: $blue-primary;
60
+ }
61
+
62
+ .mat-mdc-select-panel {
63
+ background: $background-lvl2 !important;
64
+ }
65
+
66
+ .mat-mdc-option {
67
+ color: $gray-background-lightest !important;
68
+ }
69
+
70
+ .mat-mdc-option.mat-option-global-search:hover:not(.mat-option-disabled), .mat-option.mat-option-global-search:focus:not(.mat-option-disabled) {
71
+ background: $background-lvl3 !important;
72
+ }
73
+
74
+ //Customize mat-form-field Border Color
75
+ .mdc-notched-outline > * {
76
+ border-color: $dark-border-color !important;
77
+ }
78
+
79
+ .mdc-text-field--focused .mdc-notched-outline > * {
80
+ border-color: $gray-light !important;
81
+ }
82
+
83
+ .mdc-text-field--invalid .mdc-notched-outline > * {
84
+ border-color: red !important;
85
+ }
86
+
87
+ .mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading {
88
+ border: 2px solid $blue-primary !important;
89
+ border-right: none !important;
90
+ }
91
+
92
+ .mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing {
93
+ border: 2px solid $blue-primary !important;
94
+ border-left: none !important;
95
+ }
96
+ //END custom mat-form-field Border Color
97
+
98
+ .mat-mdc-form-field:hover .mat-mdc-form-field-focus-overlay {
99
+ opacity: 0 !important;
100
+ }
101
+
102
+ .mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay {
103
+ opacity: 0 !important;
104
+ }
105
+
106
+ .mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input {
107
+ color: $gray-light;
108
+ }
109
+ .global-search-input::placeholder {
110
+ color: $gray-light !important;
111
+ }
112
+
113
+
114
+
115
+ .mat-mdc-card {
116
+ padding: 5px !important;
117
+ background: $background-lvl3;
118
+ color: $gray-background-dark;
119
+ }
120
+
121
+ .mat-mdc-table {
122
+ background-color: $background-lvl2;
123
+ border-color: $background-lvl3;
124
+ border-bottom: 1px solid $background-lvl3;
125
+ }
126
+
127
+ .mat-mdc-cell {
128
+ color: $gray-light;;
129
+ }
130
+
131
+ .mat-mdc-row, row-drop {
132
+ border-left-width: 1px;
133
+ border-right-width: 1px;
134
+ border-left-color: $background-lvl3;
135
+ border-right-color: $background-lvl3;
136
+ }
137
+
138
+ .mat-mdc-row .mat-mdc-input-element {
139
+ background: $background-lvl3;
140
+ }
141
+
142
+ .mat-mdc-row .mat-mdc-select {
143
+ background: $background-lvl3;
144
+ }
145
+
146
+ .mat-mdc-footer-cell {
147
+ font-style: italic;
148
+ font-weight: normal;
149
+ font-size: 14px;
150
+ background-color: $background-lvl2;
151
+ border-color: $background-lvl2;
152
+ }
153
+
154
+ .mat-mdc-menu-item {
155
+ color: $gray-background-lightest !important;
156
+ }
157
+
158
+ .mat-mdc-menu-panel {
159
+ background: $background-lvl2 !important
160
+ }
161
+
162
+ .mat-mdc-header-cell {
163
+ color: $gray-background-lightest;
164
+ }
165
+ .mat-mdc-header-cell mat-label {
166
+ color: $gray-background-lightest !important;
167
+ }
168
+
169
+ .mat-mdc-header-row {
170
+ background: $background-lvl3;
171
+ }
172
+
173
+ .mat-mdc-standard-chip {
174
+ --mdc-chip-label-text-color: white !important;
175
+ --mdc-chip-with-trailing-icon-trailing-icon-color: #FFFFFF !important;
176
+ }
177
+
178
+ .mat-mdc-checkbox {
179
+ color: $gray-primary;
180
+ }
181
+
182
+ // POPUP
183
+
184
+ .mat-mdc-dialog-container {
185
+ --mdc-dialog-container-color: #{$background-lvl3};
186
+ }
187
+
188
+ .mat-mdc-dialog-container h1 {
189
+ color: $gray-background-lightest !important;
190
+ }
191
+
192
+ .mat-mdc-dialog-container h2 {
193
+ color: $gray-background-lightest !important;
194
+ }
195
+
196
+ .mat-mdc-dialog-container h3 {
197
+ color: $gray-background-lightest !important;
198
+ }
199
+
200
+ .mat-mdc-dialog-container h4 {
201
+ color: $gray-background-lightest !important;
202
+ }
203
+
204
+ .mat-mdc-dialog-container .text {
205
+ color: $gray-background-lightest !important;
206
+ }
207
+
208
+ // END POPUP
209
+
210
+ // PAGINATOR
211
+
212
+ .mat-mdc-paginator-container {
213
+ background-color: $background-lvl3;
214
+ color: $gray-background-lightest;
215
+ }
216
+
217
+ .mat-mdc-paginator-page-size .mat-select-trigger {
218
+ background: $background-lvl2;
219
+ padding: 2px;
220
+ }
221
+
222
+ .mat-mdc-paginator .mat-select-value-text {
223
+ color: $gray-background-lightest !important;
224
+ }
225
+
226
+ //END PAGINATOR
227
+
228
+ .expandable-row .mat-mdc-cell {
229
+ background: transparent;
230
+ }
231
+
232
+ .mat-mdc-raised-button.mat-accent {
233
+ background: $gray-blue-primary !important;
234
+ }
235
+
236
+ mat-row, .mat-mdc-header-cell, .mat-mdc-header-row, mat-footer-row,
237
+ th.mat-header-cell, td.mat-cell, td.mat-footer-cell {
238
+ border-bottom: $dark-border-color 1px solid;
239
+ }
240
+ }
@@ -0,0 +1,262 @@
1
+ @import "../mat-palettes";
2
+
3
+ .light-theme {
4
+
5
+ .mdc-notched-outline {
6
+ background: $gray-strong;
7
+ z-index: 0 !important;
8
+ }
9
+
10
+ .mdc-line-ripple {
11
+ background-color: $gray-background-lightest !important;
12
+ }
13
+
14
+ .mat-mdc-select-value-text {
15
+ color: $black-bluish;
16
+ }
17
+
18
+ .mat-form-field-disabled .mat-mdc-select-value-text {
19
+ color: gray;
20
+ }
21
+
22
+ .mat-mdc-paginator .mat-mdc-select-value-text {
23
+ color: $black-bluish !important;
24
+ }
25
+
26
+ .mat-mdc-select-placeholder {
27
+ color: $gray-light !important;
28
+ }
29
+
30
+ .mat-mdc-select-arrow {
31
+ color: $blue-primary;
32
+ }
33
+
34
+
35
+ .mat-mdc-row mat-label {
36
+ background: $black-bluish;
37
+ }
38
+
39
+ .mat-mdc-paginator-page-size .mat-mdc-select-trigger {
40
+ background: $gray-strong;
41
+ padding: 2px;
42
+ }
43
+
44
+
45
+ .mat-mdc-form-field .mat-icon {
46
+ color: $blue-primary;
47
+ }
48
+
49
+ .mat-mdc-select-panel {
50
+ background: #FFFFFF !important;
51
+ }
52
+
53
+ .mat-mdc-option {
54
+ color: $black-bluish !important;
55
+ }
56
+
57
+ .mat-mdc-option.mat-option-global-search:hover:not(.mat-option-disabled), .mat-option.mat-option-global-search:focus:not(.mat-option-disabled) {
58
+ background: $gray-strong !important;
59
+ }
60
+
61
+
62
+ //Customize mat-form-field Border Color
63
+ .mdc-notched-outline > * {
64
+ border-color: $light-border-color !important;
65
+ }
66
+
67
+ .mdc-text-field--focused .mdc-notched-outline > * {
68
+ border-color: $black-bluish !important;
69
+ }
70
+
71
+ .mdc-text-field--invalid .mdc-notched-outline > * {
72
+ border-color: red !important;
73
+ }
74
+
75
+ .mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading {
76
+ border: 2px solid $blue-primary !important;
77
+ border-right: none !important;
78
+ }
79
+
80
+ .mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing {
81
+ border: 2px solid $blue-primary !important;
82
+ border-left: none !important;
83
+ }
84
+ //END custom mat-form-field Border Color
85
+
86
+ .mat-mdc-form-field:hover .mat-mdc-form-field-focus-overlay {
87
+ opacity: 0 !important;
88
+ }
89
+
90
+ .mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay {
91
+ opacity: 0 !important;
92
+ }
93
+
94
+ .mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input {
95
+ color: $black-bluish;
96
+ }
97
+
98
+ .global-search-input::placeholder {
99
+ color: $black-bluish !important;
100
+ }
101
+
102
+
103
+ .mat-mdc-card {
104
+ padding: 5px !important;
105
+ background: $gray-background-lightest;
106
+ color: $black-bluish;
107
+ }
108
+
109
+ .mat-mdc-table {
110
+ background-color: $gray-background-light2;
111
+ border-color: $gray-strong;
112
+ border-bottom: 1px solid $gray-strong;
113
+ }
114
+
115
+ .mat-mdc-cell {
116
+ color: $black-bluish;
117
+ }
118
+
119
+ .mat-mdc-row, row-drop {
120
+ border-left-width: 1px;
121
+ border-right-width: 1px;
122
+ border-left-color: $gray-strong;
123
+ border-right-color: $gray-strong;
124
+ }
125
+
126
+ .mat-mdc-row .mat-mdc-input-element {
127
+ background: $gray-strong;
128
+ }
129
+
130
+ .mat-mdc-row .mat-mdc-select {
131
+ background: $gray-strong;
132
+ }
133
+
134
+ .mat-mdc-footer-cell {
135
+ font-style: italic;
136
+ font-weight: normal;
137
+ font-size: 14px;
138
+ background-color: $gray-background-light2;
139
+ border-color: $gray-strong;
140
+ }
141
+
142
+ .mat-mdc-menu-item {
143
+ color: $black-bluish !important;
144
+ }
145
+
146
+ .mat-mdc-menu-panel {
147
+ background: #FFFFFF !important
148
+ }
149
+
150
+ .mat-mdc-header-cell {
151
+ color: $medium-blue;
152
+ }
153
+
154
+ .mat-mdc-header-row {
155
+ background: $gray-background-lightest;
156
+ }
157
+
158
+ .mat-mdc-standard-chip {
159
+ --mdc-chip-label-text-color: white !important;
160
+ --mdc-chip-with-trailing-icon-trailing-icon-color: #FFFFFF !important;
161
+ }
162
+
163
+ .mat-mdc-chip.mat-mdc-standard-chip {
164
+ background: $black-bluish;
165
+ color: white;
166
+ }
167
+
168
+ .mat-mdc-checkbox {
169
+ color: $gray-primary;
170
+ }
171
+
172
+ .mat-mdc-checkbox-checked.mat-accent .mdc-checkbox__background {
173
+ background-color: $blue-primary;
174
+ }
175
+ .mdc-checkbox__background {
176
+ border-color: $gray-primary !important;
177
+ }
178
+
179
+ // POPUP
180
+
181
+ .mat-mdc-dialog-container {
182
+ --mdc-dialog-container-color: #{$gray-background-lightest};
183
+ }
184
+
185
+ .mat-mdc-dialog-container h1 {
186
+ color: $black-bluish !important;
187
+ }
188
+
189
+ .mat-mdc-dialog-container h2 {
190
+ color: $black-bluish !important;
191
+ }
192
+
193
+ .mat-mdc-dialog-container h3 {
194
+ color: $black-bluish !important;
195
+ }
196
+
197
+ .mat-mdc-dialog-container h4 {
198
+ color: $black-bluish !important;
199
+ }
200
+
201
+ .mat-mdc-dialog-container .text {
202
+ color: $black-bluish !important;
203
+ }
204
+
205
+ .mat-mdc-dialog-container .btn- {
206
+ color: white !important;
207
+ background: $blue-primary !important;
208
+ border: none;
209
+ padding: 5px 10px 5px 10px;
210
+ border-radius: 4px;
211
+ height: 32px;
212
+ min-width: 64px;
213
+ margin-right: 10px;
214
+ cursor: pointer;
215
+ }
216
+
217
+ .mat-mdc-dialog-container .btn-ko {
218
+ color: white !important;
219
+ background: $red-primary !important;
220
+ border: none;
221
+ padding: 5px 10px 5px 10px;
222
+ border-radius: 4px;
223
+ height: 32px;
224
+ min-width: 64px;
225
+ margin-right: 10px;
226
+ cursor: pointer;
227
+ }
228
+
229
+ // END POPUP
230
+
231
+ // PAGINATOR
232
+
233
+ .mat-mdc-paginator-container {
234
+ background-color: $gray-background-lightest;
235
+ color: $black-bluish;
236
+ }
237
+
238
+ .mat-mdc-paginator-page-size .mat-select-trigger {
239
+ background: $gray-strong;
240
+ padding: 2px;
241
+ }
242
+
243
+ .mat-mdc-paginator .mat-select-value-text {
244
+ color: $black-bluish !important;
245
+ }
246
+
247
+ //END PAGINATOR
248
+
249
+ .expandable-row .mat-mdc-cell {
250
+ background: white;
251
+ }
252
+
253
+ .mat-mdc-raised-button.mat-accent {
254
+ background: $gray-blue-primary !important;
255
+ }
256
+
257
+ mat-row, mat-header-row, mat-footer-row,
258
+ th.mat-header-cell, td.mat-cell, td.mat-footer-cell {
259
+ border-bottom: $light-border-color 1px solid;
260
+ }
261
+
262
+ }