@elderbyte/ngx-starter 19.1.0-beta.1 → 19.1.0-beta.3

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.
@@ -0,0 +1,6 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class ElderBasicPaneLayoutComponent {
3
+ class: string;
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<ElderBasicPaneLayoutComponent, never>;
5
+ static ɵcmp: i0.ɵɵComponentDeclaration<ElderBasicPaneLayoutComponent, "elder-basic-pane-layout", never, {}, {}, never, ["*"], true, never>;
6
+ }
@@ -1,2 +1,2 @@
1
1
  export * from './pane/pane.component';
2
- export * from './pane-container/pane-container.component';
2
+ export * from './basic-pane-layout/basic-pane-layout.component';
@@ -40,5 +40,4 @@ export * from './auditing/elder-audit.module';
40
40
  export * from './tabs/elder-tab.module';
41
41
  export * from './badge/elder-badge.module';
42
42
  export * from './page/public_api';
43
- export { ElderStyleDebuggerComponent } from './style-debugger/style-debugger.component';
44
43
  export * from './layout/public_api';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elderbyte/ngx-starter",
3
- "version": "19.1.0-beta.1",
3
+ "version": "19.1.0-beta.3",
4
4
  "peerDependencies": {
5
5
  "@angular/core": "^18.0.0 || ^19.0.0",
6
6
  "@angular/common": "^18.0.0 || ^19.0.0",
@@ -148,7 +148,7 @@
148
148
  }
149
149
 
150
150
  &:last-of-type {
151
- padding-right: $pad;
151
+ padding-right: $pad; // TODO: This can lead to overflows in some cases, is there a better solution?
152
152
 
153
153
  &[mat-sort-header]:not([arrowposition='before']) {
154
154
  padding-right: $pad;
@@ -40,6 +40,6 @@
40
40
  height: 100%;
41
41
  border-radius: 0px;
42
42
  box-shadow: 0px 2px 14px #000;
43
- border-top: 1px solid #fff;
44
- border-bottom: 1px solid #fff;
43
+ border: none;
44
+ padding: 8px;
45
45
  }
@@ -325,16 +325,18 @@
325
325
  .elder-round-form-field {
326
326
  border: none;
327
327
  border-radius: 24px;
328
- background-color: var(--md-sys-color-surface-container-low);
328
+ background-color: var(--md-sys-color-surface-container);
329
+ cursor: text;
329
330
 
330
331
  .mdc-notched-outline .mat-mdc-notch-piece {
331
332
  border: none !important;
332
333
  }
333
334
  &:hover {
334
- outline: solid 1px var(--md-sys-color-primary-container);
335
+ background-color: var(--md-sys-color-surface-container-low);
335
336
  }
336
337
  &.mat-focused {
337
338
  outline: solid 1px var(--md-sys-color-primary);
339
+ background-color: var(--md-sys-color-surface-container-low);
338
340
  }
339
341
  }
340
342
  }
@@ -373,4 +373,9 @@
373
373
  caret-color: currentColor;
374
374
  }
375
375
  }
376
+
377
+ &.elder-light-theme,
378
+ &.elder-dark-theme {
379
+ --mdc-linear-progress-track-color: var(--md-sys-color-secondary-fixed-dim);
380
+ }
376
381
  }
@@ -18,6 +18,7 @@
18
18
  --mat-table-row-item-outline-color: var(--md-sys-color-outline-variant);
19
19
  --mat-divider-color: var(--md-sys-color-outline-variant); // make divider color lighter
20
20
  --mat-sidenav-container-elevation-shadow: var(--mat-app-elevation-shadow-level-16);
21
+ --mat-sidenav-container-background-color: var(--md-sys-color-surface-container);
21
22
 
22
23
  // elder custom variables
23
24
  --elder-border-radius-sm: 4px; // typical small border radius, inspired by mat 2
@@ -65,8 +66,8 @@
65
66
  --md-sys-color-tertiary-container: var(--md-sys-color-primary-container);
66
67
  --md-sys-color-surface-container-highest: #191919;
67
68
  --md-sys-color-surface-container-lowest: #262626;
69
+ --md-sys-color-error: #FF999F;
68
70
  --elder-dark-gray: var(--md-sys-color-surface-container);
69
- --mat-sidenav-container-background-color: var(--md-sys-color-surface-container);
70
71
  --mdc-chip-outline-color: rgba(255, 255, 255, 0.3);
71
72
 
72
73
  // dark mode specific colors
@@ -11,6 +11,8 @@
11
11
  @use '../style-tweaks/elder-component-themes' as elder-component-themes;
12
12
  @use '../utility-classes/elder-flex-layout' as elder-flex-layout;
13
13
  @use '../utility-classes/elder-color-helpers' as elder-color-helpers;
14
+ @use '../utility-classes/elder-typography-helpers' as elder-typography-helpers;
15
+ @use '../utility-classes/elder-common-helpers' as elder-common-helpers;
14
16
  @use '../utility-classes/elder-layout-system' as elder-layout-system;
15
17
 
16
18
  // Create a theme.
@@ -33,6 +35,8 @@
33
35
  @include elder-flex-layout.elder-flex-layout($theme);
34
36
  @include elder-layout-system.elder-layout-system($theme);
35
37
  @include elder-color-helpers.elder-color-helpers();
38
+ @include elder-typography-helpers.elder-typography-helpers();
39
+ @include elder-common-helpers.elder-common-helpers();
36
40
 
37
41
  // component themes rendered in global css
38
42
  @include elder-component-themes.theme(
@@ -58,6 +58,10 @@
58
58
  }
59
59
  }
60
60
 
61
+ .elder-bg-transparent {
62
+ background-color: transparent;
63
+ }
64
+
61
65
  // text colors
62
66
  @each $name, $value in $color-variables {
63
67
  .elder-text-#{$name} {
@@ -0,0 +1,11 @@
1
+ @mixin elder-common-helpers() {
2
+ .border-none {
3
+ border: none;
4
+ }
5
+ .display-none {
6
+ display: none; // unfortunately .hidden is already used
7
+ }
8
+ .p-pane {
9
+ padding: var(--elder-pane-padding);
10
+ }
11
+ }
@@ -62,10 +62,6 @@ $media: (
62
62
  width: 100%;
63
63
  }
64
64
 
65
- .min-h-full {
66
- min-height: 100%;
67
- }
68
-
69
65
  /***************************************************************************
70
66
  * *
71
67
  * Flex Layout Row *
@@ -209,6 +205,10 @@ $media: (
209
205
  flex: 0 1 auto; // No grow, shrink
210
206
  }
211
207
 
208
+ .flex-initial-100 {
209
+ flex: 1 1 100%;
210
+ }
211
+
212
212
  .flex-none {
213
213
  flex: none;
214
214
  }
@@ -315,6 +315,108 @@ $media: (
315
315
  }
316
316
  }
317
317
 
318
+ /***************************************************************************
319
+ * *
320
+ * Flex Item Grow/Shrink *
321
+ * *
322
+ **************************************************************************/
323
+
324
+ .max-w-100 {
325
+ max-width: 100%;
326
+ }
327
+
328
+ .max-w-90 {
329
+ max-width: 90%;
330
+ }
331
+
332
+ .max-w-80 {
333
+ max-width: 80%;
334
+ }
335
+
336
+ .max-w-70 {
337
+ max-width: 70%;
338
+ }
339
+
340
+ .max-w-60 {
341
+ max-width: 60%;
342
+ }
343
+
344
+ .max-w-50 {
345
+ max-width: 50%;
346
+ }
347
+
348
+ .max-w-40 {
349
+ max-width: 40%;
350
+ }
351
+
352
+ .max-w-30 {
353
+ max-width: 30%;
354
+ }
355
+
356
+ .max-w-25 {
357
+ max-width: 25%;
358
+ }
359
+
360
+ .max-w-20 {
361
+ max-width: 20%;
362
+ }
363
+
364
+ .max-w-15 {
365
+ max-width: 15%;
366
+ }
367
+
368
+ .max-w-10 {
369
+ max-width: 10%;
370
+ }
371
+
372
+ .max-h-100 {
373
+ max-height: 100%;
374
+ }
375
+
376
+ .max-h-90 {
377
+ max-height: 90%;
378
+ }
379
+
380
+ .max-h-80 {
381
+ max-height: 80%;
382
+ }
383
+
384
+ .max-h-70 {
385
+ max-height: 70%;
386
+ }
387
+
388
+ .max-h-60 {
389
+ max-height: 60%;
390
+ }
391
+
392
+ .max-h-50 {
393
+ max-height: 50%;
394
+ }
395
+
396
+ .max-h-40 {
397
+ max-height: 40%;
398
+ }
399
+
400
+ .max-h-30 {
401
+ max-height: 30%;
402
+ }
403
+
404
+ .max-h-25 {
405
+ max-height: 25%;
406
+ }
407
+
408
+ .max-h-20 {
409
+ max-height: 20%;
410
+ }
411
+
412
+ .max-h-15 {
413
+ max-height: 15%;
414
+ }
415
+
416
+ .max-h-10 {
417
+ max-height: 10%;
418
+ }
419
+
318
420
  /***************************************************************************
319
421
  * *
320
422
  * Flex Item Grow/Shrink *
@@ -0,0 +1,61 @@
1
+ @mixin elder-typography-helpers() {
2
+ .text-display-large {
3
+ font: var(--md-sys-typescale-display-large);
4
+ }
5
+
6
+ .text-display-medium {
7
+ font: var(--md-sys-typescale-display-medium);
8
+ }
9
+
10
+ .text-display-small {
11
+ font: var(--md-sys-typescale-display-small);
12
+ }
13
+
14
+ .text-headline-large {
15
+ font: var(--md-sys-typescale-headline-large);
16
+ }
17
+
18
+ .text-headline-medium {
19
+ font: var(--md-sys-typescale-headline-medium);
20
+ }
21
+
22
+ .text-headline-small {
23
+ font: var(--md-sys-typescale-headline-small);
24
+ }
25
+
26
+ .text-title-large {
27
+ font: var(--md-sys-typescale-title-large);
28
+ }
29
+
30
+ .text-title-medium {
31
+ font: var(--md-sys-typescale-title-medium);
32
+ }
33
+
34
+ .text-title-small {
35
+ font: var(--md-sys-typescale-title-small);
36
+ }
37
+
38
+ .text-label-large {
39
+ font: var(--md-sys-typescale-label-large);
40
+ }
41
+
42
+ .text-label-medium {
43
+ font: var(--md-sys-typescale-label-medium);
44
+ }
45
+
46
+ .text-label-small {
47
+ font: var(--md-sys-typescale-label-small);
48
+ }
49
+
50
+ .text-body-large {
51
+ font: var(--md-sys-typescale-body-large);
52
+ }
53
+
54
+ .text-body-medium {
55
+ font: var(--md-sys-typescale-body-medium);
56
+ }
57
+
58
+ .text-body-small {
59
+ font: var(--md-sys-typescale-body-small);
60
+ }
61
+ }
@@ -1,11 +0,0 @@
1
- import { QueryList } from '@angular/core';
2
- import { ElderPaneComponent } from '../public_api';
3
- import * as i0 from "@angular/core";
4
- export declare class ElderPaneContainerComponent {
5
- class: string;
6
- children: QueryList<ElderPaneComponent>;
7
- hasChild: boolean;
8
- ngAfterContentInit(): void;
9
- static ɵfac: i0.ɵɵFactoryDeclaration<ElderPaneContainerComponent, never>;
10
- static ɵcmp: i0.ɵɵComponentDeclaration<ElderPaneContainerComponent, "elder-pane-container", never, {}, {}, ["children"], ["elder-pane", "*"], true, never>;
11
- }
@@ -1,40 +0,0 @@
1
- import { Renderer2 } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class ElderStyleDebuggerComponent {
4
- private renderer;
5
- isHidden: import("@angular/core").WritableSignal<boolean>;
6
- isMinimized: import("@angular/core").WritableSignal<boolean>;
7
- originalStyleList: {
8
- name: string;
9
- css: string;
10
- }[];
11
- styleList: {
12
- isActive: boolean;
13
- name: string;
14
- css: string;
15
- }[];
16
- activeStyles: {
17
- [key: number]: HTMLStyleElement;
18
- };
19
- stylesJson: string;
20
- constructor(renderer: Renderer2);
21
- ngOnInit(): void;
22
- toggleStyle(index: number): void;
23
- activateStyle(index: number): void;
24
- toggleAllStyles(): void;
25
- activateAllStyles(): void;
26
- updateStyle(index: number, $event: Event): void;
27
- clearStyles(): void;
28
- toggleHidden(): void;
29
- toggleMinimize(): void;
30
- updateStylesJson(): void;
31
- resetToOriginalStyles(): void;
32
- resetStylesJson(): void;
33
- importStylesFromJsonInputField(): void;
34
- updateStylesFromJson(json: string): void;
35
- exportStylesFromJsonInputField(): void;
36
- saveStylesJsonToLocalStorage(): void;
37
- loadStylesJsonFromLocalStorage(): void;
38
- static ɵfac: i0.ɵɵFactoryDeclaration<ElderStyleDebuggerComponent, never>;
39
- static ɵcmp: i0.ɵɵComponentDeclaration<ElderStyleDebuggerComponent, "elder-style-debugger", never, {}, {}, never, never, true, never>;
40
- }