@elderbyte/ngx-starter 19.0.2 → 19.1.0-beta.0

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 (69) hide show
  1. package/_index.scss +2 -70
  2. package/fesm2022/elderbyte-ngx-starter.mjs +786 -197
  3. package/fesm2022/elderbyte-ngx-starter.mjs.map +1 -1
  4. package/lib/components/layout/pane/pane.component.d.ts +6 -0
  5. package/lib/components/layout/pane-container/pane-container.component.d.ts +11 -0
  6. package/lib/components/layout/public_api.d.ts +2 -0
  7. package/lib/components/m3-sidenav/m3-sidenav.component.d.ts +5 -0
  8. package/lib/components/public_api.d.ts +2 -0
  9. package/lib/components/style-debugger/style-debugger.component.d.ts +40 -0
  10. package/package.json +1 -1
  11. package/src/lib/components/badge/elder-badge/elder-badge.component.scss +2 -2
  12. package/src/lib/components/button-group/elder-button-group/elder-button-group.component.scss +18 -28
  13. package/src/lib/components/card-organizer/card-stack/elder-card-stack.component.scss +9 -36
  14. package/src/lib/components/cards/elder-card/elder-card.component.scss +0 -20
  15. package/src/lib/components/chips/_elder-chip-theme.scss +63 -56
  16. package/src/lib/components/data-transfer/http-data-transfer-indicator/http-data-transfer-indicator.component.scss +1 -7
  17. package/src/lib/components/data-transfer/http-data-transfer-overview/http-data-transfer-overview.component.scss +11 -0
  18. package/src/lib/components/data-view/common/data-context-state-indicator/data-context-state-indicator.component.scss +2 -1
  19. package/src/lib/components/data-view/grid/elder-grid/elder-grid.component.scss +16 -26
  20. package/src/lib/components/data-view/table/elder-table/elder-table.component.scss +100 -92
  21. package/src/lib/components/errors/exception-detail/elder-exception-detail.component.scss +0 -24
  22. package/src/lib/components/expand-toggle-button/elder-expand-toggle-button.component.scss +7 -17
  23. package/src/lib/components/files/blob-viewer/elder-blob-viewer.component.scss +4 -10
  24. package/src/lib/components/files/drag-n-drop/elder-drop-zone/elder-drop-zone.component.scss +23 -34
  25. package/src/lib/components/forms/search/search-box/elder-search-box.component.scss +0 -5
  26. package/src/lib/components/graph/elder-progress-bar/elder-progress-bar.component.scss +0 -1
  27. package/src/lib/components/iframes/iframe-host/iframe-host.component.scss +0 -6
  28. package/src/lib/components/navigation/bread-crumbs/bread-crumbs/elder-bread-crumbs.component.scss +2 -0
  29. package/src/lib/components/navigation/nav/_elder-nav-theme.scss +16 -24
  30. package/src/lib/components/navigation/nav/nav-group/elder-nav-group.component.scss +1 -1
  31. package/src/lib/components/navigation/nav/nav-link/elder-nav-link.component.scss +4 -6
  32. package/src/lib/components/page/exit-guard/page-exit-lock-indicator/page-exit-lock-indicator.component.scss +2 -5
  33. package/src/lib/components/panels/card-panel/elder-card-panel.component.scss +6 -19
  34. package/src/lib/components/panels/elder-dialog-panel/elder-dialog-panel.component.scss +6 -19
  35. package/src/lib/components/select/_elder-select-base.scss +1 -10
  36. package/src/lib/components/select/filter/elder-filter-chip-template/elder-filter-chip-template.component.scss +4 -22
  37. package/src/lib/components/select/multi/elder-multi-select-chip-options/elder-multi-select-chip-options.component.scss +10 -40
  38. package/src/lib/components/select/multi/elder-multi-select-chips/elder-multi-select-chips.component.scss +18 -53
  39. package/src/lib/components/select/single/elder-select/elder-select.component.scss +24 -41
  40. package/src/lib/components/select-chip-list/chip-list-select/elder-chip-list-select.component.scss +2 -8
  41. package/src/lib/components/shell/header/elder-app-header/elder-app-header.component.scss +11 -2
  42. package/src/lib/components/shell/shell/elder-shell.component.scss +8 -0
  43. package/src/lib/components/toasts/standard-toast/standard-toast.component.scss +22 -2
  44. package/theming/style-tweaks/_elder-color-variants.scss +31 -0
  45. package/theming/style-tweaks/_elder-common.scss +179 -0
  46. package/theming/style-tweaks/_elder-component-themes.scss +22 -0
  47. package/theming/style-tweaks/_elder-form.scss +368 -0
  48. package/theming/style-tweaks/_elder-reset.scss +13 -0
  49. package/theming/style-tweaks/_elder-style-fixes.scss +377 -0
  50. package/theming/{_mixins.scss → style-tweaks/_elder-style-tweak-mixins.scss} +35 -1
  51. package/theming/system/_elder-config.scss +141 -0
  52. package/theming/{_elder-defaults.scss → system/_elder-defaults.scss} +9 -14
  53. package/theming/system/_elder-design-tokens.scss +90 -0
  54. package/theming/system/_elder-m3-theme.scss +156 -0
  55. package/theming/system/_elder-starter-theme.scss +41 -0
  56. package/theming/utility-classes/_elder-color-helpers.scss +78 -0
  57. package/theming/{_elder-flex-layout.scss → utility-classes/_elder-flex-layout.scss} +19 -25
  58. package/theming/utility-classes/_elder-layout-system.scss +498 -0
  59. package/src/lib/components/panels/flat/_elder-panel-theme.scss +0 -72
  60. package/src/lib/components/time/_elder-time-input.theme.scss +0 -35
  61. package/theming/_elder-common.scss +0 -573
  62. package/theming/_elder-mdc-support.scss +0 -235
  63. package/theming/_elder-palettes.scss +0 -148
  64. package/theming/_elder-scrollbar-theme.scss +0 -67
  65. package/theming/_elder-style-fixes.scss +0 -216
  66. package/theming/_elder-theme.scss +0 -51
  67. package/theming/_elder-toast-theme.scss +0 -46
  68. package/theming/_elder-typography-utils.scss +0 -23
  69. package/theming/_mat-icon-button-size.scss +0 -34
@@ -1,573 +0,0 @@
1
- @use 'mat-icon-button-size' as icon-button-size;
2
- @use '@angular/material' as mat;
3
- @use 'mixins' as mixins;
4
- @mixin elder-common-styles($theme) {
5
- $common-sizes: map-get($theme, elder, common-sizes);
6
- $form-field-density: map-get($theme, elder, density, form-field);
7
- @include mat.form-field-density($form-field-density);
8
-
9
- /***************************************************************************
10
- * *
11
- * Common Sizes *
12
- * *
13
- **************************************************************************/
14
-
15
- $xs: map-get($common-sizes, xs);
16
- $sm: map-get($common-sizes, sm);
17
- $md: map-get($common-sizes, md);
18
- $lg: map-get($common-sizes, lg);
19
- $xl: map-get($common-sizes, xl);
20
- $xxl: map-get($common-sizes, xxl);
21
-
22
- /***************************************************************************
23
- * *
24
- * Angular Material Extensions (Optional) *
25
- * *
26
- **************************************************************************/
27
-
28
- /**
29
- * The mat-button-fill class will lead a mat button
30
- * to take up all the space, which gives you more freedom where
31
- * to place items inside.
32
- */
33
- .mat-button-fill .mdc-button__label {
34
- position: relative;
35
- width: 100%;
36
- height: 100%;
37
- flex-direction: row;
38
- justify-content: stretch;
39
- align-items: stretch;
40
- }
41
-
42
- /***************************************************************************
43
- * *
44
- * Material Card Styling *
45
- * *
46
- **************************************************************************/
47
-
48
- .mat-mdc-card.embedded {
49
- border-radius: 0;
50
- box-shadow: none;
51
- border: none;
52
- }
53
-
54
- /***************************************************************************
55
- * *
56
- * Material Table Styling *
57
- * *
58
- **************************************************************************/
59
-
60
- th.mat-mdc-header-cell {
61
- &.elder-number-cell {
62
- text-align: right;
63
- justify-content: flex-end;
64
- }
65
- &.elder-center-cell {
66
- text-align: center;
67
- justify-content: center;
68
- }
69
- }
70
-
71
- td.mat-mdc-cell {
72
- &.elder-number-cell {
73
- text-align: right;
74
- justify-content: flex-end;
75
- }
76
- &.elder-center-cell {
77
- text-align: center;
78
- justify-content: center;
79
- }
80
- }
81
-
82
- td.mat-mdc-footer-cell {
83
- &.elder-number-cell {
84
- text-align: right;
85
- justify-content: flex-end;
86
- }
87
- &.elder-center-cell {
88
- text-align: center;
89
- justify-content: center;
90
- }
91
- }
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
- /***************************************************************************
263
- * *
264
- * Style for hiding spinner on inputs *
265
- * *
266
- **************************************************************************/
267
-
268
- input.elder-input-no-spinner::-webkit-outer-spin-button,
269
- input.elder-input-no-spinner::-webkit-inner-spin-button {
270
- display: none;
271
- }
272
-
273
- input[type='number'].elder-input-no-spinner {
274
- -moz-appearance: textfield;
275
- }
276
-
277
- /***************************************************************************
278
- * *
279
- * Material Dialog *
280
- * *
281
- **************************************************************************/
282
-
283
- .custom-dialog-container .mat-mdc-dialog-container {
284
- overflow-y: hidden;
285
- padding: 0;
286
- margin: 0;
287
- }
288
-
289
- .no-padding-dialog .mat-mdc-dialog-container {
290
- padding: 0;
291
- }
292
-
293
- /***************************************************************************
294
- * *
295
- * Padding *
296
- * *
297
- **************************************************************************/
298
-
299
- .elder-default-content:not(:only-child) {
300
- display: none;
301
- }
302
-
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
- /***************************************************************************
528
- * *
529
- * MDC Icon Button Sizing *
530
- * *
531
- **************************************************************************/
532
-
533
- .elder-icon-button-lg {
534
- @include icon-button-size.matIconButtonSize(40px, 24px);
535
- }
536
- .elder-icon-button-md {
537
- @include icon-button-size.matIconButtonSize(32px, 19px);
538
- }
539
- .elder-icon-button-sm {
540
- @include icon-button-size.matIconButtonSize(26px, 16px);
541
- }
542
- .elder-icon-button-xs {
543
- @include icon-button-size.matIconButtonSize(20px, 12px);
544
- }
545
-
546
- .mat-mdc-chip {
547
- .mat-mdc-chip-avatar {
548
- /**
549
- * Maximizes the avatar icon / image size in a chip.
550
- */
551
- &.chip-avatar-xl {
552
- width: 28px;
553
- height: 28px;
554
- margin-left: -4px;
555
- margin-right: -4px;
556
-
557
- img {
558
- width: 28px;
559
- height: 28px;
560
- overflow: hidden;
561
- border-radius: 14px;
562
- }
563
-
564
- .mat-icon {
565
- width: 28px !important;
566
- height: 28px !important;
567
- line-height: 28px !important;
568
- font-size: 28px !important;
569
- }
570
- }
571
- }
572
- }
573
- }