@elderbyte/ngx-starter 19.1.0-beta.0 → 19.1.0-beta.2
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.
- package/fesm2022/elderbyte-ngx-starter.mjs +144 -623
- package/fesm2022/elderbyte-ngx-starter.mjs.map +1 -1
- package/lib/components/layout/basic-pane-layout/basic-pane-layout.component.d.ts +11 -0
- package/lib/components/layout/public_api.d.ts +1 -1
- package/lib/components/public_api.d.ts +0 -1
- package/package.json +1 -1
- package/src/lib/components/files/blob-viewer/elder-blob-viewer.component.scss +2 -2
- package/theming/style-tweaks/_elder-style-fixes.scss +7 -2
- package/theming/system/_elder-design-tokens.scss +13 -2
- package/theming/system/_elder-starter-theme.scss +4 -0
- package/theming/utility-classes/_elder-color-helpers.scss +4 -0
- package/theming/utility-classes/_elder-common-helpers.scss +8 -0
- package/theming/utility-classes/_elder-flex-layout.scss +0 -4
- package/theming/utility-classes/_elder-typography-helpers.scss +61 -0
- package/lib/components/layout/pane-container/pane-container.component.d.ts +0 -11
- package/lib/components/style-debugger/style-debugger.component.d.ts +0 -40
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { QueryList } from '@angular/core';
|
|
2
|
+
import { ElderPaneComponent } from '../public_api';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ElderBasicPaneLayoutComponent {
|
|
5
|
+
class: string;
|
|
6
|
+
children: QueryList<ElderPaneComponent>;
|
|
7
|
+
hasChild: boolean;
|
|
8
|
+
ngAfterContentInit(): void;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ElderBasicPaneLayoutComponent, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ElderBasicPaneLayoutComponent, "elder-basic-pane-layout", never, {}, {}, ["children"], ["elder-pane", "*"], true, never>;
|
|
11
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './pane/pane.component';
|
|
2
|
-
export * from './pane-
|
|
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
|
@@ -130,9 +130,8 @@
|
|
|
130
130
|
|
|
131
131
|
.legacy-layout-card {
|
|
132
132
|
background-color: var(--mdc-elevated-card-container-color);
|
|
133
|
-
//border: var(--elder-border-light);
|
|
134
133
|
border-radius: var(--elder-border-radius-sm);
|
|
135
|
-
box-shadow: var(--mdc-elevated-card-container-elevation);
|
|
134
|
+
box-shadow: var(--mdc-elevated-card-container-elevation, var(--mat-sys-level1));
|
|
136
135
|
overflow: hidden; // this might cause issues, but is probably correct..
|
|
137
136
|
}
|
|
138
137
|
|
|
@@ -374,4 +373,10 @@
|
|
|
374
373
|
caret-color: currentColor;
|
|
375
374
|
}
|
|
376
375
|
}
|
|
376
|
+
|
|
377
|
+
&.elder-light-theme,
|
|
378
|
+
&.elder-dark-theme {
|
|
379
|
+
// TMP only for debugging
|
|
380
|
+
--mdc-linear-progress-track-color: green !important; // TODO REMOVE
|
|
381
|
+
}
|
|
377
382
|
}
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use './elder-config' as config;
|
|
3
|
+
|
|
1
4
|
@mixin elder-design-tokens() {
|
|
2
5
|
@include elder-badge-sizing();
|
|
3
6
|
|
|
4
7
|
// bg color
|
|
5
8
|
--md-sys-color-background: var(--md-sys-color-surface-container-highest);
|
|
9
|
+
--mat-app-background-color: var(--md-sys-color-background);
|
|
6
10
|
|
|
7
11
|
// mat variables
|
|
8
12
|
--mat-sidenav-container-width: auto; // is set to around 300px by default in MAT 3 (MAT 2 was auto by default)
|
|
@@ -23,8 +27,8 @@
|
|
|
23
27
|
--elder-lightened-transparent-bg: rgba(255, 255, 255, 0.15);
|
|
24
28
|
|
|
25
29
|
// elder pane
|
|
26
|
-
--elder-pane-padding:
|
|
27
|
-
--elder-pane-gap:
|
|
30
|
+
--elder-pane-padding: #{map.get(config.$sizes, sm)};
|
|
31
|
+
--elder-pane-gap: #{map.get(config.$sizes, sm)};
|
|
28
32
|
--elder-pane-border-radius: var(
|
|
29
33
|
--mdc-outlined-card-container-shape,
|
|
30
34
|
var(--mat-app-corner-medium)
|
|
@@ -49,12 +53,19 @@
|
|
|
49
53
|
--elder-toolbar-main-nav-button-color: var(--md-sys-color-on-primary);
|
|
50
54
|
--elder-toolbar-main-nav-button-container-bg-color: var(--md-sys-color-primary);
|
|
51
55
|
|
|
56
|
+
// light theme overwrites
|
|
57
|
+
&.elder-light-theme {
|
|
58
|
+
--md-sys-color-primary: rgb(11, 40, 79);
|
|
59
|
+
--md-sys-color-tertiary: rgb(182, 159, 106);
|
|
60
|
+
}
|
|
61
|
+
|
|
52
62
|
// dark theme overwrites
|
|
53
63
|
&.elder-dark-theme {
|
|
54
64
|
--md-sys-color-primary-container: #826e38; // lighten up dark mode container color
|
|
55
65
|
--md-sys-color-tertiary-container: var(--md-sys-color-primary-container);
|
|
56
66
|
--md-sys-color-surface-container-highest: #191919;
|
|
57
67
|
--md-sys-color-surface-container-lowest: #262626;
|
|
68
|
+
--md-sys-color-error: #FF999F;
|
|
58
69
|
--elder-dark-gray: var(--md-sys-color-surface-container);
|
|
59
70
|
--mat-sidenav-container-background-color: var(--md-sys-color-surface-container);
|
|
60
71
|
--mdc-chip-outline-color: rgba(255, 255, 255, 0.3);
|
|
@@ -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(
|
|
@@ -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
|
-
}
|