@elderbyte/ngx-starter 19.11.0 → 19.12.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.
@@ -1,59 +1,5 @@
1
- import { DestroyRef, OnInit, ViewContainerRef } from '@angular/core';
2
- import { BadgeAvatarSpec, BadgeColorSpec } from './elder-badge/elder-badge.component';
3
- import { DomSanitizer, SafeStyle } from '@angular/platform-browser';
4
- import { MatBadge } from '@angular/material/badge';
5
- import { ThemePalette } from '@angular/material/core';
6
1
  import * as i0 from "@angular/core";
7
- export declare class ElderBadgeDirective implements OnInit {
8
- private sanitizer;
9
- private viewContainerRef;
10
- private matBadge;
11
- private destroyRef;
12
- /***************************************************************************
13
- * *
14
- * Fields *
15
- * *
16
- **************************************************************************/
17
- private readonly log;
18
- private readonly value$;
19
- private readonly colorSpec$;
20
- private readonly avatarSpec$;
21
- style: SafeStyle;
22
- /***************************************************************************
23
- * *
24
- * Constructor *
25
- * *
26
- **************************************************************************/
27
- constructor(sanitizer: DomSanitizer, viewContainerRef: ViewContainerRef, matBadge: MatBadge, destroyRef: DestroyRef);
28
- /***************************************************************************
29
- * *
30
- * Life Cycle *
31
- * *
32
- **************************************************************************/
33
- ngOnInit(): void;
34
- /***************************************************************************
35
- * *
36
- * Properties *
37
- * *
38
- **************************************************************************/
39
- set badgeColor(theme: ThemePalette);
40
- set badgeIcon(icon: string);
41
- /***************************************************************************
42
- * *
43
- * Properties *
44
- * *
45
- **************************************************************************/
46
- set elderBadge(value: any);
47
- set colorSpec(spec: BadgeColorSpec);
48
- set avatarSpec(spec: BadgeAvatarSpec);
49
- /***************************************************************************
50
- * *
51
- * Private methods *
52
- * *
53
- **************************************************************************/
54
- private bindToElderBadge;
55
- private replaceMatBadgeWithElderBadge;
56
- private createElderBadgeComponent;
2
+ export declare class ElderBadgeDirective {
57
3
  static ɵfac: i0.ɵɵFactoryDeclaration<ElderBadgeDirective, never>;
58
- static ɵdir: i0.ɵɵDirectiveDeclaration<ElderBadgeDirective, "[elderBadge]", never, { "badgeColor": { "alias": "badgeColor"; "required": false; }; "badgeIcon": { "alias": "badgeIcon"; "required": false; }; "elderBadge": { "alias": "elderBadge"; "required": false; }; "colorSpec": { "alias": "colorSpec"; "required": false; }; "avatarSpec": { "alias": "avatarSpec"; "required": false; }; }, {}, never, never, true, never>;
4
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ElderBadgeDirective, "[elderBadge]", never, {}, {}, never, never, true, never>;
59
5
  }
@@ -17,7 +17,7 @@ export declare class ElderChipLabelDirective {
17
17
  readonly levelColor: import("@angular/core").InputSignal<ElderLevelColor>;
18
18
  readonly namedColor: import("@angular/core").InputSignal<ElderNamedColor>;
19
19
  readonly themeColor: import("@angular/core").InputSignal<ThemePalette>;
20
- readonly chipSize: import("@angular/core").InputSignal<"medium" | "small">;
20
+ readonly chipSize: import("@angular/core").InputSignal<"small" | "medium">;
21
21
  readonly cssClasses: import("@angular/core").Signal<string>;
22
22
  readonly sizeClass: import("@angular/core").Signal<string>;
23
23
  /***************************************************************************
@@ -12,20 +12,19 @@ import * as i10 from "@angular/material/dialog";
12
12
  import * as i11 from "@angular/material/tooltip";
13
13
  import * as i12 from "@ngx-translate/core";
14
14
  import * as i13 from "@angular/cdk/drag-drop";
15
- import * as i14 from "../../badge/elder-badge.module";
16
- import * as i15 from "./elder-data-toolbar/elder-data-toolbar.component";
17
- import * as i16 from "./elder-single-sort/elder-single-sort.component";
18
- import * as i17 from "./composite-sort/elder-composite-sort/elder-composite-sort.component";
19
- import * as i18 from "./composite-sort/composite-sort-dc.directive";
20
- import * as i19 from "./selection/elder-selection-master-checkbox/elder-selection-master-checkbox.component";
21
- import * as i20 from "./selection/data-context-selection.directive";
22
- import * as i21 from "./data-context-state-indicator/data-context-state-indicator.component";
23
- import * as i22 from "./drag-and-drop/elder-data-view-dnd.directive";
24
- import * as i23 from "./drag-and-drop/elder-data-view-item-drag.directive";
25
- import * as i24 from "./drag-and-drop/local-data/elder-local-dnd-support.directive";
26
- import * as i25 from "./drag-and-drop/grouping/elder-data-view-dnd-group.directive";
15
+ import * as i14 from "./elder-data-toolbar/elder-data-toolbar.component";
16
+ import * as i15 from "./elder-single-sort/elder-single-sort.component";
17
+ import * as i16 from "./composite-sort/elder-composite-sort/elder-composite-sort.component";
18
+ import * as i17 from "./composite-sort/composite-sort-dc.directive";
19
+ import * as i18 from "./selection/elder-selection-master-checkbox/elder-selection-master-checkbox.component";
20
+ import * as i19 from "./selection/data-context-selection.directive";
21
+ import * as i20 from "./data-context-state-indicator/data-context-state-indicator.component";
22
+ import * as i21 from "./drag-and-drop/elder-data-view-dnd.directive";
23
+ import * as i22 from "./drag-and-drop/elder-data-view-item-drag.directive";
24
+ import * as i23 from "./drag-and-drop/local-data/elder-local-dnd-support.directive";
25
+ import * as i24 from "./drag-and-drop/grouping/elder-data-view-dnd-group.directive";
27
26
  export declare class ElderDataCommonModule {
28
27
  static ɵfac: i0.ɵɵFactoryDeclaration<ElderDataCommonModule, never>;
29
- static ɵmod: i0.ɵɵNgModuleDeclaration<ElderDataCommonModule, never, [typeof i1.CommonModule, typeof i2.RouterModule, typeof i3.MatDividerModule, typeof i4.MatCheckboxModule, typeof i5.MatMenuModule, typeof i6.MatButtonModule, typeof i7.MatIconModule, typeof i8.MatBadgeModule, typeof i9.MatProgressBarModule, typeof i10.MatDialogModule, typeof i11.MatTooltipModule, typeof i12.TranslateModule, typeof i13.DragDropModule, typeof i14.ElderBadgeModule, typeof i15.ElderDataToolbarComponent, typeof i15.ElderToolbarContentDirective, typeof i16.ElderSingleSortComponent, typeof i17.ElderCompositeSortComponent, typeof i18.ElderCompositeSortDcDirective, typeof i19.ElderSelectionMasterCheckboxComponent, typeof i20.DataContextSelectionDirective, typeof i21.DataContextStateIndicatorComponent, typeof i22.ElderDataViewDndDirective, typeof i23.ElderDataViewItemDragDirective, typeof i24.ElderLocalDndSupportDirective, typeof i25.ElderDataViewDndGroupDirective], [typeof i15.ElderDataToolbarComponent, typeof i15.ElderToolbarContentDirective, typeof i16.ElderSingleSortComponent, typeof i17.ElderCompositeSortComponent, typeof i18.ElderCompositeSortDcDirective, typeof i19.ElderSelectionMasterCheckboxComponent, typeof i20.DataContextSelectionDirective, typeof i21.DataContextStateIndicatorComponent, typeof i22.ElderDataViewDndDirective, typeof i23.ElderDataViewItemDragDirective, typeof i24.ElderLocalDndSupportDirective, typeof i25.ElderDataViewDndGroupDirective]>;
28
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ElderDataCommonModule, never, [typeof i1.CommonModule, typeof i2.RouterModule, typeof i3.MatDividerModule, typeof i4.MatCheckboxModule, typeof i5.MatMenuModule, typeof i6.MatButtonModule, typeof i7.MatIconModule, typeof i8.MatBadgeModule, typeof i9.MatProgressBarModule, typeof i10.MatDialogModule, typeof i11.MatTooltipModule, typeof i12.TranslateModule, typeof i13.DragDropModule, typeof i14.ElderDataToolbarComponent, typeof i14.ElderToolbarContentDirective, typeof i15.ElderSingleSortComponent, typeof i16.ElderCompositeSortComponent, typeof i17.ElderCompositeSortDcDirective, typeof i18.ElderSelectionMasterCheckboxComponent, typeof i19.DataContextSelectionDirective, typeof i20.DataContextStateIndicatorComponent, typeof i21.ElderDataViewDndDirective, typeof i22.ElderDataViewItemDragDirective, typeof i23.ElderLocalDndSupportDirective, typeof i24.ElderDataViewDndGroupDirective], [typeof i14.ElderDataToolbarComponent, typeof i14.ElderToolbarContentDirective, typeof i15.ElderSingleSortComponent, typeof i16.ElderCompositeSortComponent, typeof i17.ElderCompositeSortDcDirective, typeof i18.ElderSelectionMasterCheckboxComponent, typeof i19.DataContextSelectionDirective, typeof i20.DataContextStateIndicatorComponent, typeof i21.ElderDataViewDndDirective, typeof i22.ElderDataViewItemDragDirective, typeof i23.ElderLocalDndSupportDirective, typeof i24.ElderDataViewDndGroupDirective]>;
30
29
  static ɵinj: i0.ɵɵInjectorDeclaration<ElderDataCommonModule>;
31
30
  }
@@ -38,7 +38,7 @@ export * from './iframes/elder-iframe.module';
38
38
  export * from './errors/elder-error.module';
39
39
  export * from './auditing/elder-audit.module';
40
40
  export * from './tabs/elder-tab.module';
41
- export * from './badge/elder-badge.module';
42
41
  export * from './page/public_api';
43
42
  export * from './layout/public_api';
44
43
  export * from './colors/public_api';
44
+ export * from './badge/elder-badge.directive';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elderbyte/ngx-starter",
3
- "version": "19.11.0",
3
+ "version": "19.12.0",
4
4
  "peerDependencies": {
5
5
  "@angular/core": "^18.0.0 || ^19.0.0",
6
6
  "@angular/common": "^18.0.0 || ^19.0.0",
@@ -2,11 +2,11 @@
2
2
  @use '@angular/material' as mat;
3
3
  @use './elder-scss-variables' as config;
4
4
  @use './elder-m3-color-tokens' as elder-m3-color-tokens;
5
+ @use '../components/mat-badge-theme' as mat-badge-theme;
5
6
 
6
7
  @mixin elder-design-tokens() {
7
- @include elder-badge-sizing();
8
-
9
8
  @include elder-m3-color-tokens.m3-color-tokens();
9
+ @include mat-badge-theme.badge-sizing-design-tokens();
10
10
 
11
11
  &.elder-light-theme,
12
12
  &.elder-dark-theme {
@@ -231,27 +231,3 @@
231
231
  --mat-toolbar-standard-height: var(--mat-toolbar-mobile-height);
232
232
  }
233
233
  }
234
-
235
- @mixin elder-badge-sizing() {
236
- & {
237
- // Use legacy MAT 2 badge sizing
238
- --mat-badge-container-size: unset;
239
- --mat-badge-small-size-container-size: unset;
240
- --mat-badge-large-size-container-size: unset;
241
- --mat-badge-legacy-container-size: 22px;
242
- --mat-badge-legacy-small-size-container-size: 16px;
243
- --mat-badge-legacy-large-size-container-size: 28px;
244
- --mat-badge-container-offset: -11px 0;
245
- --mat-badge-small-size-container-offset: -8px 0;
246
- --mat-badge-large-size-container-offset: -14px 0;
247
- --mat-badge-container-overlap-offset: -11px;
248
- --mat-badge-small-size-container-overlap-offset: -8px;
249
- --mat-badge-large-size-container-overlap-offset: -14px;
250
- --mat-badge-container-padding: 0;
251
- --mat-badge-small-size-container-padding: 0;
252
- --mat-badge-large-size-container-padding: 0;
253
- --mat-badge-line-height: var(--mat-badge-legacy-container-size);
254
- --mat-badge-small-size-line-height: var(--mat-badge-legacy-small-size-container-size);
255
- --mat-badge-large-size-line-height: var(--mat-badge-legacy-large-size-container-size);
256
- }
257
- }
@@ -17,7 +17,7 @@
17
17
  @use '../components/elder-toolbar-theme' as elder-toolbar;
18
18
  @use '../components/elder-table-theme' as elder-table;
19
19
  @use '../components/elder-scrollbar-theme' as elder-scrollbar;
20
-
20
+ @use '../components/mat-badge-theme' as mat-badge;
21
21
  // Create a theme.
22
22
  @mixin starter-theme($theme) {
23
23
  $theme: elder-set-defaults-fn.validate-and-set-defaults($theme);
@@ -48,4 +48,5 @@
48
48
  @include elder-toolbar.theme($theme);
49
49
  @include elder-table.theme($theme);
50
50
  @include elder-scrollbar.theme();
51
+ @include mat-badge.theme();
51
52
  }
@@ -43,19 +43,9 @@
43
43
  }
44
44
 
45
45
  /******************************
46
- Material Badge Index
46
+ ETC
47
47
  *******************************/
48
48
 
49
- .mat-badge-content {
50
- z-index: 1;
51
- }
52
- // fix elder badge borders
53
- elder-badge {
54
- .mat-mdc-standard-chip .mat-mdc-chip-action::before {
55
- border: none;
56
- }
57
- }
58
-
59
49
  .mat-mdc-tab-group {
60
50
  background-color: var(--md-sys-color-surface-container);
61
51
  }
@@ -70,24 +60,10 @@
70
60
  fill: currentColor !important;
71
61
  }
72
62
 
73
- /******************************
74
- ETC
75
- *******************************/
76
-
77
63
  .mat-mdc-tab-group {
78
64
  background-color: transparent !important;
79
65
  }
80
66
 
81
- // badge positioning
82
- .mat-badge-above .mat-badge-content {
83
- bottom: 82%;
84
- }
85
-
86
- // bring back the badge warn color that was removed in m3
87
- .mat-badge-warn {
88
- --mat-badge-background-color: var(--md-sys-color-error);
89
- }
90
-
91
67
  // disable button color grayed out
92
68
  .mat-mdc-icon-button[disabled],
93
69
  .mat-mdc-icon-button.mat-mdc-button-disabled {
@@ -21,20 +21,20 @@
21
21
  }
22
22
 
23
23
  .elder-chip-small {
24
- height: auto; // TODO token for badge height?
24
+ height: auto;
25
25
  padding-left: 0px;
26
26
  padding-right: 0px;
27
27
  border-radius: 16px;
28
- min-width: 16px;
29
28
  justify-content: center;
30
- display: flex;
31
29
  .mdc-evolution-chip__text-label {
32
30
  font-size: 11px;
33
31
  font-weight: 500;
34
32
  }
35
33
  .mdc-evolution-chip__cell > span {
34
+ min-width: 10px;
36
35
  padding-left: 8px;
37
36
  padding-right: 8px;
37
+ text-align: center;
38
38
  }
39
39
  }
40
40
  }
@@ -0,0 +1,53 @@
1
+ @mixin theme() {
2
+ .mat-badge-content {
3
+ z-index: 1;
4
+ }
5
+
6
+ // badge positioning
7
+ .mat-badge-above .mat-badge-content {
8
+ bottom: 82%;
9
+ }
10
+
11
+ // bring back the badge warn color that was removed in m3
12
+ .mat-badge-warn {
13
+ --mat-badge-background-color: var(--md-sys-color-error);
14
+ }
15
+
16
+ // dynamic badge size for long text with elder-badge directive
17
+ .elder-badge {
18
+ .mat-badge-content {
19
+ width: unset;
20
+ min-width: 22px;
21
+ padding-left: 8px;
22
+ padding-right: 8px;
23
+ }
24
+ &.mat-badge-large .mat-badge-content {
25
+ min-width: 28px;
26
+ }
27
+ }
28
+ }
29
+
30
+ @mixin badge-sizing-design-tokens() {
31
+ & {
32
+ // mat badge design tokens for theme root
33
+ // Use legacy MAT 2 badge sizing
34
+ --mat-badge-container-size: unset;
35
+ --mat-badge-small-size-container-size: unset;
36
+ --mat-badge-large-size-container-size: unset;
37
+ --mat-badge-legacy-container-size: 22px;
38
+ --mat-badge-legacy-small-size-container-size: 16px;
39
+ --mat-badge-legacy-large-size-container-size: 28px;
40
+ --mat-badge-container-offset: -11px 0;
41
+ --mat-badge-small-size-container-offset: -8px 0;
42
+ --mat-badge-large-size-container-offset: -14px 0;
43
+ --mat-badge-container-overlap-offset: -11px;
44
+ --mat-badge-small-size-container-overlap-offset: -8px;
45
+ --mat-badge-large-size-container-overlap-offset: -14px;
46
+ --mat-badge-container-padding: 0;
47
+ --mat-badge-small-size-container-padding: 0;
48
+ --mat-badge-large-size-container-padding: 0;
49
+ --mat-badge-line-height: var(--mat-badge-legacy-container-size);
50
+ --mat-badge-small-size-line-height: var(--mat-badge-legacy-small-size-container-size);
51
+ --mat-badge-large-size-line-height: var(--mat-badge-legacy-large-size-container-size);
52
+ }
53
+ }
@@ -1,85 +0,0 @@
1
- import { TemplateRef, ViewContainerRef } from '@angular/core';
2
- import { BehaviorSubject, Observable } from 'rxjs';
3
- import { ThemePalette } from '@angular/material/core';
4
- import { ElderChipAppearance, ElderLevelColor, ElderStateColor } from '../../chips/elder-chip-label.directive';
5
- import * as i0 from "@angular/core";
6
- export declare class ElderBadgeChipDirective {
7
- templateRef: TemplateRef<any>;
8
- viewContainer: ViewContainerRef;
9
- constructor(templateRef: TemplateRef<any>, viewContainer: ViewContainerRef);
10
- static ɵfac: i0.ɵɵFactoryDeclaration<ElderBadgeChipDirective, never>;
11
- static ɵdir: i0.ɵɵDirectiveDeclaration<ElderBadgeChipDirective, "[elderBadgeChip]", never, {}, {}, never, never, true, never>;
12
- }
13
- export declare class ElderBadgeChipAvatarDirective {
14
- templateRef: TemplateRef<any>;
15
- viewContainer: ViewContainerRef;
16
- constructor(templateRef: TemplateRef<any>, viewContainer: ViewContainerRef);
17
- static ɵfac: i0.ɵɵFactoryDeclaration<ElderBadgeChipAvatarDirective, never>;
18
- static ɵdir: i0.ɵɵDirectiveDeclaration<ElderBadgeChipAvatarDirective, "[elderBadgeChipAvatar]", never, {}, {}, never, never, true, never>;
19
- }
20
- export interface BadgeColorSpec {
21
- readonly theme?: ThemePalette;
22
- readonly state?: ElderStateColor;
23
- readonly level?: ElderLevelColor;
24
- }
25
- export interface BadgeAvatarSpec {
26
- readonly icon?: string;
27
- }
28
- declare class ElderBadgeModel {
29
- readonly value: any;
30
- readonly colorSpec: BadgeColorSpec;
31
- readonly avatarSpec: BadgeAvatarSpec;
32
- static standard(): ElderBadgeModel;
33
- constructor(value: any, colorSpec: BadgeColorSpec, avatarSpec: BadgeAvatarSpec);
34
- get showAvatar(): boolean;
35
- }
36
- interface TemplateWrapper {
37
- chip: TemplateRef<any>;
38
- avatar: TemplateRef<any>;
39
- }
40
- export declare class ElderBadgeComponent {
41
- /***************************************************************************
42
- * *
43
- * Fields *
44
- * *
45
- **************************************************************************/
46
- readonly badgeModel$: BehaviorSubject<ElderBadgeModel>;
47
- elementClass: string[];
48
- readonly templates$: Observable<TemplateWrapper>;
49
- private readonly chipTemplate$;
50
- private readonly chipAvatarTemplate$;
51
- /**
52
- * @deprecated No longer supported - has no effect
53
- */
54
- appearance: ElderChipAppearance;
55
- /***************************************************************************
56
- * *
57
- * Constructor *
58
- * *
59
- **************************************************************************/
60
- constructor();
61
- /***************************************************************************
62
- * *
63
- * Properties *
64
- * *
65
- **************************************************************************/
66
- set value(value: any);
67
- set colorSpec(spec: BadgeColorSpec);
68
- set badgeColor(color: ThemePalette);
69
- set avatarSpec(spec: BadgeAvatarSpec);
70
- setCssClass(val: string): void;
71
- /***************************************************************************
72
- * *
73
- * Templates *
74
- * *
75
- **************************************************************************/
76
- set chipTemplateQuery(template: TemplateRef<any>);
77
- set chipTemplate(template: TemplateRef<any>);
78
- get chipTemplate(): TemplateRef<any>;
79
- set chipAvatarTemplateQuery(template: TemplateRef<any>);
80
- set chipAvatarTemplate(template: TemplateRef<any>);
81
- get chipAvatarTemplate(): TemplateRef<any>;
82
- static ɵfac: i0.ɵɵFactoryDeclaration<ElderBadgeComponent, never>;
83
- static ɵcmp: i0.ɵɵComponentDeclaration<ElderBadgeComponent, "elder-badge", never, { "appearance": { "alias": "appearance"; "required": false; }; "value": { "alias": "value"; "required": false; }; "colorSpec": { "alias": "colorSpec"; "required": false; }; "badgeColor": { "alias": "badgeColor"; "required": false; }; "avatarSpec": { "alias": "avatarSpec"; "required": false; }; "setCssClass": { "alias": "cssClass"; "required": false; }; "chipTemplate": { "alias": "chipTemplate"; "required": false; }; "chipAvatarTemplate": { "alias": "chipAvatarTemplate"; "required": false; }; }, {}, ["chipTemplateQuery", "chipAvatarTemplateQuery"], ["*"], true, never>;
84
- }
85
- export {};
@@ -1,15 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "@angular/material/chips";
3
- import * as i2 from "../chips/elder-chips.module";
4
- import * as i3 from "@angular/common";
5
- import * as i4 from "../../pipes/elder-pipes.module";
6
- import * as i5 from "@angular/material/icon";
7
- import * as i6 from "./elder-badge.directive";
8
- import * as i7 from "./elder-badge/elder-badge.component";
9
- export * from './elder-badge/elder-badge.component';
10
- export * from './elder-badge.directive';
11
- export declare class ElderBadgeModule {
12
- static ɵfac: i0.ɵɵFactoryDeclaration<ElderBadgeModule, never>;
13
- static ɵmod: i0.ɵɵNgModuleDeclaration<ElderBadgeModule, never, [typeof i1.MatChipsModule, typeof i2.ElderChipsModule, typeof i3.AsyncPipe, typeof i3.NgIf, typeof i3.NgTemplateOutlet, typeof i4.ElderPipesModule, typeof i5.MatIconModule, typeof i6.ElderBadgeDirective, typeof i7.ElderBadgeComponent, typeof i7.ElderBadgeChipDirective, typeof i7.ElderBadgeChipAvatarDirective], [typeof i6.ElderBadgeDirective, typeof i7.ElderBadgeComponent, typeof i7.ElderBadgeChipDirective, typeof i7.ElderBadgeChipAvatarDirective]>;
14
- static ɵinj: i0.ɵɵInjectorDeclaration<ElderBadgeModule>;
15
- }
@@ -1,99 +0,0 @@
1
- .elder-badge {
2
- position: absolute !important;
3
- width: unset !important;
4
- max-width: unset !important;
5
- --mdc-chip-container-shape-radius: 10px;
6
-
7
- &.mat-mdc-standard-chip {
8
- // height: 26px; // var(--mdc-chip-container-height); TODO token for badge height?
9
- height: auto; // TODO token for badge height?
10
- .mdc-evolution-chip__text-label {
11
- font-size: var(--mat-badge-text-size, 12px);
12
- font-weight: var(--mat-badge-text-weight, 600);
13
- }
14
- }
15
-
16
- .mdc-evolution-chip,
17
- .mdc-evolution-chip__cell,
18
- .mdc-evolution-chip__action {
19
- justify-content: center;
20
- }
21
-
22
- &.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic
23
- .mdc-evolution-chip__graphic {
24
- padding-left: 0px;
25
- padding-right: 0px;
26
- }
27
- }
28
-
29
- // Small styling
30
- .mat-badge-small .elder-badge.mat-badge-content {
31
- border-radius: 16px;
32
- min-width: 16px;
33
- }
34
- .mat-badge-small.mat-badge-above .elder-badge.mat-badge-content {
35
- top: -7px !important;
36
- }
37
- .mat-badge-small.mat-badge-overlap.mat-badge-after .elder-badge.mat-badge-content {
38
- right: -5px;
39
- transform: translate(100%) !important;
40
- }
41
- .mat-badge-small.mat-badge-overlap.mat-badge-before .elder-badge.mat-badge-content {
42
- left: -5px;
43
- transform: translate(-100%) !important;
44
- }
45
- .mat-badge-small .elder-badge.mat-mdc-standard-chip .mdc-evolution-chip__action--primary {
46
- padding: 0 3px !important;
47
- }
48
- .mat-badge-small .elder-badge.mat-badge-content {
49
- line-height: 14px !important;
50
- }
51
-
52
- // Medium styling
53
- .mat-badge-medium .elder-badge.mat-badge-content {
54
- border-radius: 22px;
55
- min-width: 22px;
56
- }
57
- .mat-badge-medium.mat-badge-overlap.mat-badge-after .elder-badge.mat-badge-content {
58
- right: -5px;
59
- transform: translate(100%) !important;
60
- }
61
- .mat-badge-medium.mat-badge-overlap.mat-badge-before .elder-badge.mat-badge-content {
62
- left: -5px;
63
- transform: translate(-100%) !important;
64
- }
65
- .mat-badge-medium .elder-badge.mat-mdc-standard-chip .mdc-evolution-chip__action--primary {
66
- padding: 0 6px !important;
67
- }
68
- .mat-badge-medium .elder-badge.mat-badge-content {
69
- line-height: 20px !important;
70
- }
71
-
72
- // Large styling
73
- .mat-badge-large .elder-badge.mat-badge-content {
74
- border-radius: 28px;
75
- min-width: 28px;
76
- }
77
- .mat-badge-large.mat-badge-overlap.mat-badge-after .elder-badge.mat-badge-content {
78
- right: -5px;
79
- transform: translate(100%) !important;
80
- }
81
- .mat-badge-large.mat-badge-overlap.mat-badge-before .elder-badge.mat-badge-content {
82
- left: -5px;
83
- transform: translate(-100%) !important;
84
- }
85
- .mat-badge-large .elder-badge.mat-mdc-standard-chip .mdc-evolution-chip__action--primary {
86
- padding: 0 6px !important;
87
- }
88
- .mat-badge-large .elder-badge.mat-badge-content {
89
- line-height: 26px !important;
90
- }
91
-
92
- .elder-badge.mat-badge-content {
93
- transform: unset !important;
94
- }
95
-
96
- //
97
- //.elder-badge.elder-chip-label.color-primary.md3 {
98
- // background-color: rgb(203 208 216) !important;
99
- //}