@elderbyte/ngx-starter 18.12.8 → 18.13.0-beta.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 (66) hide show
  1. package/_index.scss +23 -6
  2. package/esm2022/lib/components/badge/elder-badge/elder-badge.component.mjs +3 -3
  3. package/esm2022/lib/components/data-transfer/http-data-transfer-indicator/http-data-transfer-indicator.component.mjs +3 -3
  4. package/esm2022/lib/components/data-transfer/http-data-transfer-overview/http-data-transfer-overview.component.mjs +3 -3
  5. package/esm2022/lib/components/files/blob-viewer/elder-blob-viewer.component.mjs +3 -3
  6. package/esm2022/lib/components/loader-background/loader-background.component.mjs +11 -0
  7. package/esm2022/lib/components/page/exit-guard/page-exit-lock-indicator/page-exit-lock-indicator.component.mjs +3 -3
  8. package/esm2022/lib/components/public_api.mjs +2 -1
  9. package/esm2022/lib/components/select/filter/elder-filter-chip-template/elder-filter-chip-template.component.mjs +3 -3
  10. package/esm2022/lib/components/select/multi/elder-multi-select-chip-options/elder-multi-select-chip-options.component.mjs +3 -3
  11. package/esm2022/lib/components/select/multi/elder-multi-select-chips/elder-multi-select-chips.component.mjs +3 -3
  12. package/esm2022/lib/components/select/popup/templated-selection-dialog/templated-selection-dialog.component.mjs +3 -3
  13. package/esm2022/lib/components/select/single/elder-select/elder-select.component.mjs +3 -3
  14. package/esm2022/lib/components/shell/header/elder-app-header/elder-app-header.component.mjs +5 -3
  15. package/esm2022/lib/components/time/elder-interval-picker/elder-interval-picker.component.mjs +3 -3
  16. package/esm2022/lib/components/toasts/standard-toast/standard-toast.component.mjs +3 -3
  17. package/fesm2022/elderbyte-ngx-starter.mjs +38 -27
  18. package/fesm2022/elderbyte-ngx-starter.mjs.map +1 -1
  19. package/lib/components/loader-background/loader-background.component.d.ts +5 -0
  20. package/lib/components/public_api.d.ts +1 -0
  21. package/lib/components/shell/header/elder-app-header/elder-app-header.component.d.ts +2 -1
  22. package/package.json +1 -1
  23. package/src/lib/components/badge/elder-badge/elder-badge.component.scss +2 -1
  24. package/src/lib/components/button-group/elder-button-group/elder-button-group.component.scss +1 -7
  25. package/src/lib/components/card-organizer/card-stack/elder-card-stack.component.scss +3 -14
  26. package/src/lib/components/cards/elder-card/elder-card.component.scss +2 -8
  27. package/src/lib/components/chips/_elder-chip-theme-old.scss +122 -0
  28. package/src/lib/components/chips/_elder-chip-theme.scss +101 -12
  29. package/src/lib/components/data-transfer/http-data-transfer-indicator/http-data-transfer-indicator.component.scss +0 -6
  30. package/src/lib/components/data-transfer/http-data-transfer-overview/http-data-transfer-overview.component.scss +11 -0
  31. package/src/lib/components/data-view/grid/elder-grid/elder-grid.component.scss +15 -22
  32. package/src/lib/components/data-view/table/elder-table/elder-table.component.scss +12 -21
  33. package/src/lib/components/errors/exception-detail/elder-exception-detail.component.scss +2 -9
  34. package/src/lib/components/expand-toggle-button/elder-expand-toggle-button.component.scss +2 -8
  35. package/src/lib/components/files/blob-viewer/elder-blob-viewer.component.scss +4 -9
  36. package/src/lib/components/files/drag-n-drop/elder-drop-zone/elder-drop-zone.component.scss +7 -10
  37. package/src/lib/components/iframes/iframe-host/iframe-host.component.scss +0 -4
  38. package/src/lib/components/loader-background/loader-background.component.scss +60 -0
  39. package/src/lib/components/navigation/nav/_elder-nav-theme.scss +12 -24
  40. package/src/lib/components/page/exit-guard/page-exit-lock-indicator/page-exit-lock-indicator.component.scss +1 -4
  41. package/src/lib/components/panels/card-panel/elder-card-panel.component.scss +3 -12
  42. package/src/lib/components/panels/elder-dialog-panel/elder-dialog-panel.component.scss +4 -12
  43. package/src/lib/components/panels/flat/_elder-panel-theme.scss +26 -9
  44. package/src/lib/components/select/_elder-select-base.scss +1 -9
  45. package/src/lib/components/select/filter/elder-filter-chip-template/elder-filter-chip-template.component.scss +1 -4
  46. package/src/lib/components/select/multi/elder-multi-select-chip-options/elder-multi-select-chip-options.component.scss +10 -39
  47. package/src/lib/components/select/multi/elder-multi-select-chips/elder-multi-select-chips.component.scss +19 -52
  48. package/src/lib/components/select/single/elder-select/elder-select.component.scss +24 -40
  49. package/src/lib/components/time/_elder-time-input.theme.scss +0 -3
  50. package/src/lib/components/toasts/standard-toast/standard-toast.component.scss +31 -2
  51. package/theming/_elder-badge-sizing.scss +21 -0
  52. package/theming/_elder-color-variants.scss +26 -0
  53. package/theming/_elder-common.scss +6 -399
  54. package/theming/_elder-defaults.scss +3 -7
  55. package/theming/_elder-form.scss +308 -0
  56. package/theming/_elder-layout-system.scss +242 -0
  57. package/theming/_elder-m3-theme.scss +879 -0
  58. package/theming/_elder-mdc-support.scss +59 -142
  59. package/theming/_elder-scrollbar-theme.scss +2 -12
  60. package/theming/_elder-style-fixes.scss +47 -109
  61. package/theming/_elder-typography-utils.scss +0 -11
  62. package/theming/_mixins.scss +35 -0
  63. package/theming/_elder-palettes.scss +0 -148
  64. package/theming/_elder-theme.scss +0 -51
  65. package/theming/_elder-toast-theme.scss +0 -46
  66. package/theming/_mat-icon-button-size.scss +0 -34
@@ -0,0 +1,21 @@
1
+ @mixin elder-badge-sizing() {
2
+ // Use legacy MAT 2 badge sizing
3
+ --mat-badge-container-size: unset;
4
+ --mat-badge-small-size-container-size: unset;
5
+ --mat-badge-large-size-container-size: unset;
6
+ --mat-badge-legacy-container-size: 22px;
7
+ --mat-badge-legacy-small-size-container-size: 16px;
8
+ --mat-badge-legacy-large-size-container-size: 28px;
9
+ --mat-badge-container-offset: -11px 0;
10
+ --mat-badge-small-size-container-offset: -8px 0;
11
+ --mat-badge-large-size-container-offset: -14px 0;
12
+ --mat-badge-container-overlap-offset: -11px;
13
+ --mat-badge-small-size-container-overlap-offset: -8px;
14
+ --mat-badge-large-size-container-overlap-offset: -14px;
15
+ --mat-badge-container-padding: 0;
16
+ --mat-badge-small-size-container-padding: 0;
17
+ --mat-badge-large-size-container-padding: 0;
18
+ --mat-badge-line-height: var(--mat-badge-legacy-container-size);
19
+ --mat-badge-small-size-line-height: var(--mat-badge-legacy-small-size-container-size);
20
+ --mat-badge-large-size-line-height: var(--mat-badge-legacy-large-size-container-size);
21
+ }
@@ -0,0 +1,26 @@
1
+ @use '@angular/material' as mat;
2
+
3
+ /**
4
+ * Source: https://material.angular.io/guide/theming#using-component-color-variants
5
+ *
6
+ * This applies custom color variants for the legacy M2 color system for usage in M3.
7
+ * There are different mixins for many components (not all).
8
+ * You can find the list of the components and there supported color variants here:
9
+ * https://material.angular.io/guide/theming#using-component-color-variants
10
+ */
11
+ @mixin elder-color-variants($theme) {
12
+ // Apply primary color variants for button components
13
+ mat-chip-option[color='primary'] {
14
+ @include mat.chips-color($theme, $color-variant: primary);
15
+ }
16
+
17
+ // Apply secondary color variants for button components
18
+ mat-chip-option[color='danger'] {
19
+ @include mat.chips-color($theme, $color-variant: error);
20
+ }
21
+
22
+ // Apply tertiary color variants for button components
23
+ mat-chip-option[color='accent'] {
24
+ @include mat.chips-color($theme, $color-variant: tertiary);
25
+ }
26
+ }
@@ -1,6 +1,6 @@
1
- @use 'mat-icon-button-size' as icon-button-size;
1
+ @use './mixins' as mixins;
2
2
  @use '@angular/material' as mat;
3
- @use 'mixins' as mixins;
3
+
4
4
  @mixin elder-common-styles($theme) {
5
5
  $common-sizes: map-get($theme, elder, common-sizes);
6
6
  $form-field-density: map-get($theme, elder, density, form-field);
@@ -90,175 +90,6 @@
90
90
  }
91
91
  }
92
92
 
93
- /***************************************************************************
94
- * *
95
- * elder-form-field-label styling *
96
- * *
97
- **************************************************************************/
98
-
99
- // A legacy styled form field with class 'elder-form-field-label' will get these styles
100
- .mat-form-field-appearance-legacy.elder-form-field-label {
101
- /*TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version.*/
102
- .mat-form-field-underline {
103
- display: none;
104
- }
105
- }
106
-
107
- /***************************************************************************
108
- Form field dense styling
109
- **************************************************************************/
110
-
111
- .mat-mdc-form-field.elder-dense {
112
- .mat-mdc-text-field-wrapper {
113
- // padding left / right 16 by default
114
- padding-left: $sm !important;
115
- padding-right: $sm !important;
116
- }
117
-
118
- .mat-mdc-form-field-flex {
119
- padding: 0;
120
- }
121
-
122
- .mdc-text-field--outlined {
123
- .mat-mdc-form-field-infix {
124
- padding-top: $sm !important; // 16px by default
125
- padding-bottom: $sm !important; // 16px by default
126
- min-height: 40px; // (24 + 2*16) = 56px by default
127
- }
128
- }
129
-
130
- .mdc-text-field--filled {
131
- .mdc-floating-label--float-above {
132
- transform: translateY(-100%) scale(0.75);
133
- }
134
- .mat-mdc-form-field-infix {
135
- padding-top: 14px !important; // 16px by default
136
- padding-bottom: 2px;
137
- min-height: 40px; // (24 + 2*16) = 56px by default
138
- }
139
- }
140
-
141
- @include mixins.form-field-icons(-4);
142
-
143
- //.mat-mdc-icon-button {
144
- // // @include icon-button-size.matIconButtonSize(40,24);
145
- // width: 40px !important;
146
- // height: 40px !important;
147
- //
148
- // padding: 0px !important;
149
- // display: inline-flex !important;
150
- // align-items: center;
151
- // justify-content: center;
152
- //
153
- //
154
- // .mat-mdc-button-touch-target {
155
- // width: 40px !important;
156
- // height: 40px !important;
157
- // }
158
- //}
159
- }
160
-
161
- .mat-mdc-form-field.elder-no-hint {
162
- /*TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version.*/
163
- .mat-form-field-wrapper {
164
- padding-bottom: 0;
165
- }
166
- /*TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version.*/
167
- .mat-form-field-underline {
168
- bottom: 0;
169
- }
170
- }
171
-
172
- /******************************
173
- Material Form Controls
174
- *******************************/
175
-
176
- .elder-form-control {
177
- width: 180px;
178
- overflow: hidden; // This allows flex items to shrink (min/max is not defaulting auto)
179
- }
180
-
181
- .elder-flex-control {
182
- flex: 1 1 180px;
183
- overflow: hidden;
184
- }
185
-
186
- /******************************
187
- Material Form Field
188
- *******************************/
189
-
190
- .elder-form-field-gap {
191
- width: 12px;
192
- }
193
-
194
- // two fields plus 12px gap add up to elder-std-form-field width
195
- .elder-form-field-small {
196
- width: 84px;
197
- }
198
-
199
- // three fields plus 12px gap add up to elder-std-form-field width
200
- .elder-form-field-tiny {
201
- width: 52px;
202
- }
203
-
204
- .elder-std-form-field {
205
- width: 180px;
206
- overflow: hidden; // This allows flex items to shrink (min/max is not defaulting auto)
207
- }
208
-
209
- .elder-form-field-large {
210
- width: 244px;
211
- overflow: hidden;
212
- }
213
-
214
- .elder-form-field-xl {
215
- width: 276px;
216
- overflow: hidden;
217
- }
218
-
219
- .elder-form-field-xxl {
220
- width: 372px;
221
- overflow: hidden;
222
- }
223
-
224
- /**
225
- * mat-form-field style shorthands
226
- */
227
- mat-form-field {
228
- // three fields plus 12px gap add up to elder-std-form-field width
229
- .tiny {
230
- width: 52px; // (180-(2*12)) / 3
231
- }
232
-
233
- // two fields plus 12px gap add up to elder-std-form-field width
234
- .small {
235
- width: 84px; // (180-(1*12)) / 2
236
- }
237
-
238
- .standard {
239
- width: 180px;
240
- overflow: hidden; // This allows flex items to shrink (min/max is not defaulting auto)
241
- }
242
-
243
- // one and a half plus 12px gap 180 + 52 + 12
244
- .large {
245
- width: 244px;
246
- overflow: hidden;
247
- }
248
-
249
- // one and a half plus 12px gap 180 + 84 + 12
250
- .xl {
251
- width: 276px;
252
- overflow: hidden;
253
- }
254
-
255
- // two standard fields plus 12px gap (180 + 180 + 12)
256
- .xxl {
257
- width: 372px;
258
- overflow: hidden;
259
- }
260
- }
261
-
262
93
  /***************************************************************************
263
94
  * *
264
95
  * Style for hiding spinner on inputs *
@@ -300,230 +131,6 @@
300
131
  display: none;
301
132
  }
302
133
 
303
- /***************************************************************************
304
- * *
305
- * Padding *
306
- * *
307
- **************************************************************************/
308
-
309
- .p-xs {
310
- padding: $xs;
311
- }
312
-
313
- .pt-xs {
314
- padding-top: $xs;
315
- }
316
-
317
- .pb-xs {
318
- padding-bottom: $xs;
319
- }
320
-
321
- .pr-xs {
322
- padding-right: $xs;
323
- }
324
-
325
- .pl-xs {
326
- padding-left: $xs;
327
- }
328
-
329
- .px-xs {
330
- padding-left: $xs;
331
- padding-right: $xs;
332
- }
333
-
334
- .py-xs {
335
- padding-top: $xs;
336
- padding-bottom: $xs;
337
- }
338
-
339
- .p-sm {
340
- padding: $sm;
341
- }
342
-
343
- .pt-sm {
344
- padding-top: $sm;
345
- }
346
-
347
- .pb-sm {
348
- padding-bottom: $sm;
349
- }
350
-
351
- .pr-sm {
352
- padding-right: $sm;
353
- }
354
-
355
- .pl-sm {
356
- padding-left: $sm;
357
- }
358
-
359
- .px-sm {
360
- padding-left: $sm;
361
- padding-right: $sm;
362
- }
363
-
364
- .py-sm {
365
- padding-top: $sm;
366
- padding-bottom: $sm;
367
- }
368
-
369
- .p-md {
370
- padding: $md;
371
- }
372
-
373
- .pt-md {
374
- padding-top: $md;
375
- }
376
-
377
- .pb-md {
378
- padding-bottom: $md;
379
- }
380
-
381
- .pr-md {
382
- padding-right: $md;
383
- }
384
-
385
- .pl-md {
386
- padding-left: $md;
387
- }
388
-
389
- .px-md {
390
- padding-left: $md;
391
- padding-right: $md;
392
- }
393
-
394
- .py-md {
395
- padding-top: $md;
396
- padding-bottom: $md;
397
- }
398
-
399
- .p-lg {
400
- padding: $lg;
401
- }
402
-
403
- .pt-lg {
404
- padding-top: $lg;
405
- }
406
-
407
- .pb-lg {
408
- padding-bottom: $lg;
409
- }
410
-
411
- .pr-lg {
412
- padding-right: $lg;
413
- }
414
-
415
- .pl-lg {
416
- padding-left: $lg;
417
- }
418
-
419
- .px-lg {
420
- padding-left: $lg;
421
- padding-right: $lg;
422
- }
423
-
424
- .py-lg {
425
- padding-top: $lg;
426
- padding-bottom: $lg;
427
- }
428
-
429
- .p-xl {
430
- padding: $xl;
431
- }
432
-
433
- .pt-xl {
434
- padding-top: $xl;
435
- }
436
-
437
- .pb-xl {
438
- padding-bottom: $xl;
439
- }
440
-
441
- .pr-xl {
442
- padding-right: $xl;
443
- }
444
-
445
- .pl-xl {
446
- padding-left: $xl;
447
- }
448
-
449
- .px-xl {
450
- padding-left: $xl;
451
- padding-right: $xl;
452
- }
453
-
454
- .py-xl {
455
- padding-top: $xl;
456
- padding-bottom: $xl;
457
- }
458
-
459
- .p-xxl {
460
- padding: $xxl;
461
- }
462
-
463
- .pt-xxl {
464
- padding-top: $xxl;
465
- }
466
-
467
- .pb-xxl {
468
- padding-bottom: $xxl;
469
- }
470
-
471
- .pr-xxl {
472
- padding-right: $xxl;
473
- }
474
-
475
- .pl-xxl {
476
- padding-left: $xxl;
477
- }
478
-
479
- .px-xxl {
480
- padding-left: $xxl;
481
- padding-right: $xxl;
482
- }
483
-
484
- .py-xxl {
485
- padding-top: $xxl;
486
- padding-bottom: $xxl;
487
- }
488
-
489
- /***************************************************************************
490
- * *
491
- * Layout Widths *
492
- * *
493
- **************************************************************************/
494
-
495
- .width-5p {
496
- width: 5%;
497
- }
498
-
499
- .width-10p {
500
- width: 10%;
501
- }
502
-
503
- .width-15p {
504
- width: 15%;
505
- }
506
-
507
- .width-20p {
508
- width: 20%;
509
- }
510
-
511
- .width-25p {
512
- width: 25%;
513
- }
514
-
515
- .width-30p {
516
- width: 30%;
517
- }
518
-
519
- .width-40p {
520
- width: 40%;
521
- }
522
-
523
- .width-50p {
524
- width: 50%;
525
- }
526
-
527
134
  /***************************************************************************
528
135
  * *
529
136
  * MDC Icon Button Sizing *
@@ -531,16 +138,16 @@
531
138
  **************************************************************************/
532
139
 
533
140
  .elder-icon-button-lg {
534
- @include icon-button-size.matIconButtonSize(40px, 24px);
141
+ @include mixins.matIconButtonSize(40px, 24px);
535
142
  }
536
143
  .elder-icon-button-md {
537
- @include icon-button-size.matIconButtonSize(32px, 19px);
144
+ @include mixins.matIconButtonSize(32px, 19px);
538
145
  }
539
146
  .elder-icon-button-sm {
540
- @include icon-button-size.matIconButtonSize(26px, 16px);
147
+ @include mixins.matIconButtonSize(26px, 16px);
541
148
  }
542
149
  .elder-icon-button-xs {
543
- @include icon-button-size.matIconButtonSize(20px, 12px);
150
+ @include mixins.matIconButtonSize(20px, 12px);
544
151
  }
545
152
 
546
153
  .mat-mdc-chip {
@@ -1,4 +1,5 @@
1
1
  @use 'sass:map';
2
+ @use '@angular/material' as mat;
2
3
 
3
4
  /******************************
4
5
  Default values
@@ -10,9 +11,8 @@ $commonSizesLg: 16px;
10
11
  $commonSizesXl: 24px;
11
12
  $commonSizesXxl: 32px;
12
13
 
13
- $densityFormField: 0;
14
-
15
- $scrollbarStyling: false;
14
+ $densityFormField: -4;
15
+ $scrollbarStyling: true;
16
16
 
17
17
  /******************************
18
18
  Validates $theme and sets default value if null
@@ -43,7 +43,3 @@ Validates $theme and sets default value if null
43
43
  @return $defaultValue;
44
44
  }
45
45
  }
46
-
47
- @function get-default-input() {
48
- @return ();
49
- }