@elderbyte/ngx-starter 19.1.3 → 19.1.5

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.
@@ -55,6 +55,7 @@ export declare class ElderShellComponent implements OnInit, OnDestroy {
55
55
  readonly footerTemplate$: Observable<TemplateRef<any>>;
56
56
  private readonly destroy$;
57
57
  color: ThemePalette;
58
+ navMenuSvgIcon: string;
58
59
  readonly menuColor$: BehaviorSubject<ThemePalette>;
59
60
  readonly menuIconColor$: BehaviorSubject<ThemePalette>;
60
61
  /***************************************************************************
@@ -97,5 +98,5 @@ export declare class ElderShellComponent implements OnInit, OnDestroy {
97
98
  private isContained;
98
99
  private checkSoon;
99
100
  static ɵfac: i0.ɵɵFactoryDeclaration<ElderShellComponent, never>;
100
- static ɵcmp: i0.ɵɵComponentDeclaration<ElderShellComponent, "elder-shell", never, { "sideNavToggleEnabled": { "alias": "sideNavToggleEnabled"; "required": false; }; "leftSideAutoFocus": { "alias": "leftSideAutoFocus"; "required": false; }; "rightSideAutoFocus": { "alias": "rightSideAutoFocus"; "required": false; }; "color": { "alias": "color"; "required": false; }; "menuColor": { "alias": "menuColor"; "required": false; }; "menuIconColor": { "alias": "menuIconColor"; "required": false; }; }, {}, ["sideContentLeft", "sideContentRight", "centerContent"], never, true, never>;
101
+ static ɵcmp: i0.ɵɵComponentDeclaration<ElderShellComponent, "elder-shell", never, { "sideNavToggleEnabled": { "alias": "sideNavToggleEnabled"; "required": false; }; "leftSideAutoFocus": { "alias": "leftSideAutoFocus"; "required": false; }; "rightSideAutoFocus": { "alias": "rightSideAutoFocus"; "required": false; }; "color": { "alias": "color"; "required": false; }; "navMenuSvgIcon": { "alias": "navMenuSvgIcon"; "required": false; }; "menuColor": { "alias": "menuColor"; "required": false; }; "menuIconColor": { "alias": "menuIconColor"; "required": false; }; }, {}, ["sideContentLeft", "sideContentRight", "centerContent"], never, true, never>;
101
102
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elderbyte/ngx-starter",
3
- "version": "19.1.3",
3
+ "version": "19.1.5",
4
4
  "peerDependencies": {
5
5
  "@angular/core": "^18.0.0 || ^19.0.0",
6
6
  "@angular/common": "^18.0.0 || ^19.0.0",
@@ -26,3 +26,16 @@ mat-sidenav-container {
26
26
  background-color: rgba(0, 0, 0, 0.07);
27
27
  }
28
28
  }
29
+
30
+ .elder-logo-btn {
31
+ display: flex;
32
+ padding: 5px;
33
+ justify-content: center;
34
+ align-items: center;
35
+ --mdc-icon-button-icon-size: 36px !important;
36
+ .mat-icon {
37
+ height: var(--mdc-icon-button-icon-size);
38
+ width: var(--mdc-icon-button-icon-size);
39
+ filter: brightness(1.09) saturate(1.07);
40
+ }
41
+ }
@@ -41,7 +41,8 @@
41
41
  --elder-border-radius-sm: 4px; // typical small border radius, inspired by mat 2
42
42
  --elder-border-light: 1px solid var(--md-sys-color-outline-variant);
43
43
  --elder-box-shadow-default: var(--mat-app-elevation-shadow-level-8);
44
- --elder-scrollbar-width: 8px;
44
+ --elder-scrollbar-width-default: 8px;
45
+ --elder-scrollbar-width-lg: #{map.get(config.$sizes, lg)};
45
46
  --elder-lightened-transparent-bg: rgba(255, 255, 255, 0.15);
46
47
  --elder-main-nav-bg: var(--md-sys-color-surface-container-lowest);
47
48
  --elder-nav-item-height: 54px;
@@ -3,6 +3,25 @@
3
3
  @use 'sass:map';
4
4
 
5
5
  @mixin elder-common-base($theme) {
6
+ /***************************************************************************
7
+ * *
8
+ * Scrollbar styling (webkit) *
9
+ * *
10
+ **************************************************************************/
11
+
12
+ ::-webkit-scrollbar {
13
+ width: var(--elder-scrollbar-width-default);
14
+ }
15
+
16
+ ::-webkit-scrollbar-thumb {
17
+ background: var(--md-sys-color-outline-variant);
18
+ border-radius: 5px;
19
+ }
20
+
21
+ ::-webkit-scrollbar-thumb:hover {
22
+ background: var(--md-sys-color-outline);
23
+ }
24
+
6
25
  /***************************************************************************
7
26
  * *
8
27
  * Angular Material Extensions (Optional) *
@@ -88,6 +88,17 @@
88
88
  --mat-badge-background-color: var(--md-sys-color-error);
89
89
  }
90
90
 
91
+ // disable button color grayed out
92
+ .mat-mdc-icon-button[disabled],
93
+ .mat-mdc-icon-button.mat-mdc-button-disabled {
94
+ opacity: 0.5;
95
+ };
96
+
97
+ // mat-slide-toggle label color inherit from parent context
98
+ .mat-mdc-slide-toggle .mat-internal-form-field {
99
+ color: inherit !important;
100
+ }
101
+
91
102
  /**************************************************************************
92
103
  Card fixes
93
104
  **************************************************************************/
@@ -186,8 +197,4 @@
186
197
  // --mdc-switch-selected-hover-handle-color: color-mix(in hsl, var(--md-sys-color-tertiary), black 16%);
187
198
  }
188
199
  }
189
-
190
- &.elder-light-theme .main-nav-logo{
191
- filter: brightness(1.09) saturate(1.07);
192
- }
193
200
  }
@@ -5,19 +5,6 @@
5
5
 
6
6
  @mixin theme() {
7
7
  // scrollbar styling
8
- ::-webkit-scrollbar {
9
- width: var(--elder-scrollbar-width);
10
- }
11
-
12
- ::-webkit-scrollbar-thumb {
13
- background: var(--md-sys-color-outline-variant);
14
- border-radius: 5px;
15
- }
16
-
17
- ::-webkit-scrollbar-thumb:hover {
18
- background: var(--md-sys-color-outline);
19
- }
20
-
21
8
  .scrollbar-xs {
22
9
  @include scrollbar-width(map.get(config.$sizes, xs));
23
10
  }
@@ -39,7 +26,7 @@
39
26
  }
40
27
 
41
28
  @mixin scrollbar-width($width) {
42
- &::-webkit-scrollbar {
29
+ ::-webkit-scrollbar {
43
30
  width: $width;
44
31
  }
45
32
  }
@@ -1,3 +1,6 @@
1
+ @use 'sass:map';
2
+ @use '../abstracts/elder-scss-variables' as config;
3
+
1
4
  @mixin elder-common-utils() {
2
5
  .border-none {
3
6
  border: none;
@@ -62,4 +65,11 @@
62
65
  .outlined {
63
66
  border: 1px solid var(--md-sys-color-outline-variant);
64
67
  }
68
+
69
+ // large scrollbar fix for webkit browsers
70
+ .scrollbar-lg {
71
+ ::-webkit-scrollbar {
72
+ width: var(--elder-scrollbar-width-lg) !important;
73
+ }
74
+ }
65
75
  }