new-front-common-library 16.0.1 → 16.1.0-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 (29) hide show
  1. package/assets/css/new-themes/_dark-theme-16.scss +272 -0
  2. package/assets/css/new-themes/_global-16.scss +342 -0
  3. package/assets/css/new-themes/_light-theme-16.scss +254 -0
  4. package/assets/css/new-themes/_themes-16.scss +56 -0
  5. package/assets/css/new-themes/material-16/_mdc-dark-theme.scss +252 -0
  6. package/assets/css/new-themes/material-16/_mdc-light-theme.scss +254 -0
  7. package/assets/css/new-themes/material-16/_mdc.scss +378 -0
  8. package/assets/css/{_dark-theme.scss → old-themes/_dark-theme.scss} +1 -10
  9. package/assets/css/{_global.scss → old-themes/_global.scss} +7 -2
  10. package/assets/css/{_light-theme.scss → old-themes/_light-theme.scss} +1 -6
  11. package/assets/css/{_themes.scss → old-themes/_themes.scss} +6 -8
  12. package/assets/i18n/front-common/de.json +6 -0
  13. package/assets/i18n/front-common/en.json +6 -0
  14. package/assets/i18n/front-common/fr.json +6 -0
  15. package/esm2022/lib/util/component/header/header.component.mjs +12 -12
  16. package/esm2022/lib/util/paginator/custom-paginator-configuration.mjs +59 -0
  17. package/esm2022/lib/util/pipes/format-currency.pipe.mjs +29 -0
  18. package/esm2022/lib/util/util.module.mjs +20 -27
  19. package/esm2022/public-api.mjs +3 -1
  20. package/fesm2022/new-front-common-library.mjs +126 -54
  21. package/fesm2022/new-front-common-library.mjs.map +1 -1
  22. package/lib/util/paginator/custom-paginator-configuration.d.ts +16 -0
  23. package/lib/util/pipes/format-currency.pipe.d.ts +10 -0
  24. package/lib/util/util.module.d.ts +18 -21
  25. package/package.json +1 -1
  26. package/public-api.d.ts +2 -0
  27. package/assets/css/material/_mdc-dark-theme.scss +0 -240
  28. package/assets/css/material/_mdc-light-theme.scss +0 -262
  29. package/assets/css/material/_mdc.scss +0 -340
@@ -0,0 +1,272 @@
1
+ @import "../mat-palettes";
2
+
3
+ .dark-theme {
4
+ .page-container {
5
+ background-color: $background-lvl3;
6
+ }
7
+
8
+ // TOOLBAR
9
+ .sub-toolbar {
10
+ background: $background-lvl2;
11
+
12
+ .icon {
13
+ color: $gray-background-lightest;
14
+ }
15
+
16
+ .title {
17
+ color: $gray-background-lightest;
18
+ }
19
+ }
20
+
21
+
22
+ // TOOLBAR END
23
+
24
+ //LINK
25
+
26
+ .mat-mdc-tab-link.mdc-tab--active .mdc-tab__text-label {
27
+ color: $blue-primary !important;
28
+ }
29
+
30
+ .mat-mdc-tab-link .mdc-tab__text-label {
31
+ color: $gray-background-lightest;
32
+ }
33
+
34
+ .mat-mdc-tab-link .mdc-tab-indicator__content--underline {
35
+ border-color: $blue-primary !important;
36
+ }
37
+
38
+ //END LINK
39
+
40
+ // TEXT
41
+ .label-consult label {
42
+ color: $gray-primary;
43
+ }
44
+
45
+ .span-consult span {
46
+ color: $gray-background-lightest;
47
+ }
48
+
49
+ .text {
50
+ color: $gray-background-lightest;
51
+ }
52
+
53
+ input {
54
+ color: $gray-light !important;
55
+ }
56
+
57
+ // END TEXT
58
+
59
+ // TITLE
60
+ .block-title, .block-title-icon {
61
+ color: $gray-background-lightest;
62
+ }
63
+
64
+ // END TITLE
65
+
66
+ // BUTTON
67
+ .primary {
68
+ background: $blue-primary !important;
69
+ color: #FFFFFF !important;
70
+ }
71
+
72
+ .secondary {
73
+ background: $gray-blue-primary !important;
74
+ color: #FFFFFF !important;
75
+ }
76
+
77
+ .accent {
78
+ background: $purple-primary !important;
79
+ color: #FFFFFF !important;
80
+ }
81
+
82
+ .positive {
83
+ background: $green-primary !important;
84
+ color: #FFFFFF !important;
85
+ }
86
+
87
+ .negative {
88
+ background: $red-primary;
89
+ color: #FFFFFF;
90
+ }
91
+
92
+ .primary-color {
93
+ color: $blue-primary !important;
94
+ }
95
+
96
+ // END BUTTON
97
+
98
+ //TABLE
99
+ .no-results {
100
+ background: $gray-primary;
101
+ color: white;
102
+ }
103
+ // END TABLE
104
+
105
+ //EXPANSION PANEL
106
+ .mat-expansion-panel-header {
107
+ background-color: $background-lvl2;
108
+ }
109
+
110
+ .mat-expansion-panel-body {
111
+ background-color: $background-lvl2;
112
+
113
+ }
114
+ .mat-expansion-panel-header-title {
115
+ color: $gray-background-lightest;
116
+ }
117
+
118
+ //END EXPANSION PANEL
119
+
120
+ //// NG-SELECT
121
+ //
122
+ .ng-select .ng-select-container {
123
+ background-color: $background-lvl3;
124
+ color: $gray-light;
125
+ border: 1px solid rgba(255, 255, 255, 0.3);
126
+ }
127
+
128
+ .ng-dropdown-panel .ng-dropdown-panel-items .ng-option,
129
+ .ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup {
130
+ background-color: $background-lvl2;
131
+ color: whitesmoke;
132
+ }
133
+
134
+ .ng-dropdown-panel .ng-dropdown-panel-items, .ng-dropdown-panel.ng-select-multiple {
135
+ .ng-option.ng-option-marked,
136
+ .ng-option.ng-option-selected,
137
+ .ng-option.ng-option-selected.ng-option-marked,
138
+ .ng-dropdown-header {
139
+ background-color: $background-lvl3;
140
+ color: whitesmoke;
141
+ }
142
+ }
143
+
144
+ .ng-select.ng-select-focused .ng-select-container {
145
+ border-color: $gray-background-dark;
146
+ box-shadow: inset 0 0 0 rgb(0, 0, 0, 0.2), 0 0 0 1px $gray-background-dark;
147
+ }
148
+
149
+ .ng-dropdown-panel .ng-dropdown-panel-items .ng-option {
150
+ color: $gray-background-lightest;
151
+ }
152
+
153
+ // END NG-SELECT
154
+
155
+
156
+ //.navigation-menu {
157
+ // background-color: $background-lvl2;
158
+ //}
159
+
160
+ //.expandable-row:hover {
161
+ // background-color: transparent !important;
162
+ //}
163
+ //.expandable-row .inner-table-cell {
164
+ // background: $background-lvl2;
165
+ //}
166
+
167
+ //.disable_ripple {
168
+ // background-color: #EAEEF4 !important;
169
+ //}
170
+
171
+
172
+ //.cke_editable {
173
+ // font-size: 12px !important;
174
+ // font-family: Poppins;
175
+ // background-color: $background-lvl2;
176
+ // color: $gray-primary;
177
+ //}
178
+
179
+ //.hide-ckeditor-toolbar {
180
+ // .cke_inner .cke_top {
181
+ // display: none;
182
+ // }
183
+ //}
184
+
185
+
186
+ //textarea {
187
+ // color: $gray-light;
188
+ //}
189
+ //
190
+ //a {
191
+ // color: $gray-background-lightest;
192
+ //}
193
+
194
+
195
+ //.contracts-details-page__container {
196
+ // margin-top: 30px !important;
197
+ // margin-left: 1% !important;
198
+ // margin-right: 1% !important;
199
+ //}
200
+
201
+ //.table-header-text {
202
+ // color: $gray-strong;
203
+ // font-size: 14px;
204
+ // padding-bottom: 10px;
205
+ // font-weight: bold;
206
+ //}
207
+
208
+
209
+
210
+ //.consult-info-label {
211
+ // color: $gray-primary;
212
+ //}
213
+ //
214
+ //.consult-info-data {
215
+ // color: $gray-background-lightest;
216
+ //}
217
+ //
218
+
219
+ //.home-button button {
220
+ // color: $gray-background-lightest;
221
+ //}
222
+
223
+ //.row-drop {
224
+ // background-color: $background-lvl2;
225
+ // border-color: $gray-background-lightest;
226
+ // color: $gray-background-lightest;
227
+ // font-size: 12px;
228
+ //}
229
+
230
+ //row-drop:hover {
231
+ // background-color: adjust-color($background-lvl2, $lightness: 10%);
232
+ //}
233
+
234
+
235
+ //.confidential {
236
+ // color: $gray-primary;
237
+ //}
238
+
239
+ //.separator-line {
240
+ // border-color: $gray-background-lightest;
241
+ //}
242
+
243
+ //// DRAG & DROP
244
+
245
+ //.drag-drop-box {
246
+ // color: $gray-background-lightest;
247
+ //}
248
+
249
+ //.drop-list {
250
+ // color: $gray-background-lightest;
251
+ //}
252
+
253
+ //// END DRAG & DROP
254
+
255
+
256
+ //.see-more-text {
257
+ // color: $black-bluish !important;
258
+ // font-size: 12px;
259
+ //}
260
+
261
+
262
+ //.secondary-bis {
263
+ // background: $gray-light !important;
264
+ // color: #FFFFFF !important;
265
+ //}
266
+
267
+ //.icon-box-class {
268
+ // color: $gray-background-lightest;
269
+ //}
270
+ //
271
+
272
+ }
@@ -0,0 +1,342 @@
1
+ @import "light-theme-16";
2
+ @import "dark-theme-16";
3
+ @import "../flex";
4
+ @import "~@ng-select/ng-select/themes/default.theme.css";
5
+
6
+ body, html {
7
+ font-family: 'Roboto', 'Source Sans Pro', 'Poppins', serif;
8
+ }
9
+
10
+ .page-container {
11
+ margin-top: 64px;
12
+ height: 100%;
13
+ overflow: auto;
14
+ }
15
+
16
+ // TOOLBAR
17
+ .sub-toolbar {
18
+ height: 48px;
19
+
20
+ .title {
21
+ height: 52px;
22
+ font-weight: 900;
23
+ font-size: 24px;
24
+ line-height: 30px;
25
+ letter-spacing: 0.25px;
26
+ display: flex;
27
+ align-items: center;
28
+ }
29
+ }
30
+
31
+
32
+
33
+ // END TOOLBAR
34
+
35
+ // TEXT
36
+ .label-consult label {
37
+ height: 8px;
38
+ font-weight: 600;
39
+ font-size: 9px;
40
+ line-height: 8px;
41
+ letter-spacing: 0.25px;
42
+ text-transform: uppercase;
43
+ }
44
+
45
+ .span-consult span {
46
+ height: 18px;
47
+ font-size: 14px;
48
+ line-height: 18px;
49
+ letter-spacing: 0.25px;
50
+ }
51
+
52
+ .ellipsis {
53
+ white-space: nowrap;
54
+ text-overflow: ellipsis;
55
+ overflow: hidden
56
+ }
57
+
58
+ // END TEXT
59
+
60
+ // TITLE
61
+ .block-title {
62
+ margin-bottom: 10px;
63
+
64
+ .title {
65
+ margin: 0;
66
+ height: 24px;
67
+ font-weight: bold;
68
+ font-size: 20px;
69
+ line-height: 25px;
70
+ letter-spacing: 0.25px;
71
+ }
72
+
73
+ .icon {
74
+ margin-right: 5px;
75
+ }
76
+ }
77
+
78
+ // END TITLE
79
+
80
+ // CUSTOM SIZE ICON BOTTOM
81
+ .small-icon-button, .medium-icon-button {
82
+ width: 24px !important;
83
+ height: 24px !important;
84
+ padding: 0 !important;
85
+ display: inline-flex;
86
+ align-items: center;
87
+ justify-content: center;
88
+
89
+ .mat-mdc-button-touch-target {
90
+ width: 24px;
91
+ height: 24px;
92
+ }
93
+ }
94
+
95
+ .small-icon-button > span {
96
+ font-size: 16px;
97
+ }
98
+ .medium-icon-button > span {
99
+ font-size: 24px;
100
+ }
101
+
102
+ // END CUSTOM SIZE ICON BOTTOM
103
+
104
+
105
+
106
+
107
+ // BUTTON
108
+ .action-button {
109
+ font-weight: bold !important;
110
+ font-size: 14px;
111
+ line-height: 32px;
112
+ width: auto;
113
+ padding: 0 8px 0 8px;
114
+ background-color: $blue-primary !important;
115
+ border-color: $blue-primary !important;
116
+ color: white !important;
117
+ }
118
+
119
+ .action-button, .save-button, .cancel-button, .btn {
120
+ box-shadow: 0 2px 2px rgba(68, 93, 123, 0.16), inset 0 3px 6px rgba(255, 255, 255, 0.08), inset 0px -3px 6px rgba(68, 93, 123, 0.08);
121
+ border-radius: 6px;
122
+ }
123
+
124
+ .cancel-button {
125
+ background-color: $red-primary !important;
126
+ color: white !important;
127
+ border-color: $red-primary !important;
128
+ }
129
+
130
+ .save-button {
131
+ background-color: $green-primary !important;
132
+ border-color: $green-primary !important;
133
+ color: white !important;
134
+ }
135
+
136
+ .btn-delete {
137
+ color: $red-primary;
138
+ }
139
+
140
+ .btn {
141
+ height: 24px !important;
142
+ font-weight: bold !important;
143
+ }
144
+
145
+ // END BUTTON
146
+
147
+ // SCROLL BAR
148
+ ::-webkit-scrollbar {
149
+ width: 5px;
150
+ }
151
+
152
+ ::-webkit-scrollbar-track {
153
+ background: whitesmoke;
154
+ }
155
+
156
+ ::-webkit-scrollbar-thumb {
157
+ background: $gray-blue-primary;
158
+
159
+ &:hover {
160
+ background: $blue-primary;
161
+ }
162
+ }
163
+
164
+ // END SCROLL BAR
165
+
166
+ // FORM GROUP
167
+ .form-group > mat-label {
168
+ text-transform: uppercase;
169
+ font-size: 9px;
170
+ }
171
+ .form-group {
172
+ display: flex;
173
+ flex-direction: column;
174
+ }
175
+ // END FORM GROUP
176
+
177
+ // NG-SELECT
178
+ .ng-select.ng-select-single .ng-select-container {
179
+ height: 25px;
180
+ }
181
+
182
+ .ng-select {
183
+ padding-bottom: 0.9em;
184
+ }
185
+
186
+ .mat-mdc-cell .ng-select {
187
+ padding-bottom: 2px;
188
+ padding-top: 2px;
189
+ }
190
+
191
+ .ng-select .ng-select-container {
192
+ min-height: 25px;
193
+ }
194
+
195
+ .ng-select, .ng-select input {
196
+ font-size: 12px;
197
+ }
198
+
199
+ .ng-select.ng-select-opened > .ng-select-container .ng-arrow {
200
+ border-color: $blue-primary transparent;
201
+ }
202
+
203
+ .ng-select .ng-arrow-wrapper .ng-arrow {
204
+ border-color: $blue-primary transparent transparent;
205
+ }
206
+
207
+ .ng-select .ng-clear-wrapper {
208
+ color: $blue-primary;
209
+ }
210
+
211
+ .ng-dropdown-panel .ng-option {
212
+ font-size: 12px;
213
+ padding: 4px 10px !important;
214
+ }
215
+
216
+ .ng-select:not(.ng-select-focused) .ng-select-container:hover {
217
+ border-color: $blue-primary !important;
218
+ }
219
+
220
+ .ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input {
221
+ top: unset;
222
+ }
223
+
224
+ .ng-select:not(.ng-select-focused) .ng-select-container:hover {
225
+ border-color: $blue-primary;
226
+ box-shadow: inset 0 0 0 rgb(0, 0, 0, 0.2), 0 0 0 1px $blue-primary;
227
+ }
228
+
229
+ // END NG-SELECT
230
+
231
+ .clickable {
232
+ cursor: pointer;
233
+ }
234
+
235
+ // THIRD PARTY AUTOCOMPLETE
236
+ .thirdParty-name {
237
+ font-weight: 600;
238
+ text-transform: uppercase;
239
+ padding-top: 3px;
240
+ white-space: normal;
241
+ line-height: normal;
242
+ }
243
+
244
+ .thirdParty-address {
245
+ margin: 0;
246
+ font-size: 9px;
247
+ padding-bottom: 3px;
248
+ text-transform: capitalize;
249
+ white-space: normal;
250
+ line-height: normal;
251
+ }
252
+
253
+ // END THIRD PARTY AUTOCOMPLETE
254
+
255
+
256
+ //.spacer {
257
+ // flex: 1 1 auto;
258
+ //}
259
+
260
+ //.toolbar-spacer {
261
+ // flex: 1 1 auto;
262
+ //}
263
+ //
264
+
265
+
266
+ //// Striped alt colors for rows in mat-table
267
+ //.highlight {
268
+ // background: #f4f4f6 !important;
269
+ //}
270
+
271
+
272
+ ////Text next to icons
273
+ //.icon-text {
274
+ // display: flex !important;
275
+ // align-items: center !important;
276
+ // font-size: 20px !important;
277
+ // margin-bottom: 5px;
278
+ // line-height: 25px;
279
+ // font-style: normal;
280
+ // font-weight: 900;
281
+ //}
282
+
283
+ //.custom-switch {
284
+ // .switch-small:focus {
285
+ // outline: none;
286
+ // }
287
+ //}
288
+
289
+ //.card-header-title-icon {
290
+ // margin-right: 7px;
291
+ //}
292
+
293
+
294
+ //textarea {
295
+ // font-size: 12px !important;
296
+ //}
297
+
298
+
299
+
300
+ //.consult-info-label {
301
+ // height: 8px;
302
+ //
303
+ // font-style: normal;
304
+ // font-weight: 600;
305
+ // font-size: 8px;
306
+ // line-height: 8px;
307
+ //
308
+ //
309
+ // align-items: center;
310
+ // letter-spacing: 0.25px;
311
+ // text-transform: uppercase;
312
+ //}
313
+
314
+ //.consult-info-data {
315
+ // height: 18px;
316
+ //
317
+ // font-style: normal;
318
+ // font-weight: normal;
319
+ // font-size: 14px;
320
+ // line-height: 18px;
321
+ //
322
+ // align-items: center;
323
+ // letter-spacing: 0.25px;
324
+ //}
325
+ //
326
+
327
+
328
+ //.home-button button {
329
+ // height: 32px;
330
+ //}
331
+
332
+
333
+
334
+ //.transparent {
335
+ // color: transparent !important;
336
+ //}
337
+
338
+
339
+ //.table-icon {
340
+ // font-size: 16px !important;
341
+ //}
342
+