@porscheinformatik/material-addons 15.0.0-alpha.3 → 15.0.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.
- package/esm2020/lib/card/card.component.mjs +3 -3
- package/esm2020/lib/quick-list/quick-list-compact/quick-list-compact.component.mjs +3 -3
- package/esm2020/lib/quick-list/quick-list.component.mjs +3 -3
- package/esm2020/lib/readonly/readonly-form-field/readonly-form-field.component.mjs +3 -3
- package/esm2020/lib/stepper/step-header/step-header.component.mjs +2 -3
- package/esm2020/lib/stepper/stepper.component.mjs +8 -9
- package/esm2020/lib/stepper/stepper.module.mjs +4 -5
- package/fesm2015/porscheinformatik-material-addons.mjs +16 -18
- package/fesm2015/porscheinformatik-material-addons.mjs.map +1 -1
- package/fesm2020/porscheinformatik-material-addons.mjs +16 -18
- package/fesm2020/porscheinformatik-material-addons.mjs.map +1 -1
- package/lib/stepper/stepper.module.d.ts +2 -3
- package/lib/stepper/stepper.module.d.ts.map +1 -1
- package/package.json +6 -6
- package/themes/common/styles.scss +26 -7
- package/themes/pbv.scss +9 -0
- package/themes/poa.scss +28 -3
|
@@ -5,11 +5,10 @@ import * as i3 from "@angular/common";
|
|
|
5
5
|
import * as i4 from "@angular/material/button";
|
|
6
6
|
import * as i5 from "@angular/material/icon";
|
|
7
7
|
import * as i6 from "@angular/cdk/stepper";
|
|
8
|
-
import * as i7 from "
|
|
9
|
-
import * as i8 from "../button/button.module";
|
|
8
|
+
import * as i7 from "../button/button.module";
|
|
10
9
|
export declare class StepperModule {
|
|
11
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<StepperModule, never>;
|
|
12
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<StepperModule, [typeof i1.StepperComponent, typeof i2.StepHeaderComponent, typeof i1.StepComponent], [typeof i3.CommonModule, typeof i4.MatButtonModule, typeof i5.MatIconModule, typeof i6.CdkStepperModule, typeof i7.
|
|
11
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<StepperModule, [typeof i1.StepperComponent, typeof i2.StepHeaderComponent, typeof i1.StepComponent], [typeof i3.CommonModule, typeof i4.MatButtonModule, typeof i5.MatIconModule, typeof i6.CdkStepperModule, typeof i7.ButtonModule], [typeof i1.StepperComponent, typeof i2.StepHeaderComponent, typeof i1.StepComponent]>;
|
|
13
12
|
static ɵinj: i0.ɵɵInjectorDeclaration<StepperModule>;
|
|
14
13
|
}
|
|
15
14
|
//# sourceMappingURL=stepper.module.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stepper.module.d.ts","sourceRoot":"","sources":["../../../../projects/material-addons/src/lib/stepper/stepper.module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"stepper.module.d.ts","sourceRoot":"","sources":["../../../../projects/material-addons/src/lib/stepper/stepper.module.ts"],"names":[],"mappings":";;;;;;;;AASA,qBAKa,aAAa;yCAAb,aAAa;0CAAb,aAAa;0CAAb,aAAa;CAAG"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@porscheinformatik/material-addons",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "15.0.0",
|
|
4
4
|
"description": "Custom theme and components for Angular Material",
|
|
5
5
|
"homepage": "https://github.com/porscheinformatik/material-addons",
|
|
6
6
|
"repository": {
|
|
@@ -37,13 +37,13 @@
|
|
|
37
37
|
"fesm2020/"
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"tslib": "^2.
|
|
40
|
+
"tslib": "^2.6.0"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"@angular/cdk": ">=
|
|
44
|
-
"@angular/material": ">=
|
|
45
|
-
"@angular/common": ">=
|
|
46
|
-
"@angular/core": ">=
|
|
43
|
+
"@angular/cdk": ">= 15.0.0",
|
|
44
|
+
"@angular/material": ">= 15.0.0",
|
|
45
|
+
"@angular/common": ">= 15.0.0",
|
|
46
|
+
"@angular/core": ">= 15.0.0",
|
|
47
47
|
"@ngx-translate/core": ">= 14.0.0"
|
|
48
48
|
},
|
|
49
49
|
"exports": {
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
@use '@angular/material/theming' as theming;
|
|
3
3
|
|
|
4
4
|
@include mat.all-component-typographies();
|
|
5
|
+
@include mat.all-component-densities(-2);
|
|
5
6
|
@include mat.core();
|
|
6
|
-
|
|
7
7
|
$contrast: (
|
|
8
8
|
50: theming.$dark-primary-text,
|
|
9
9
|
100: theming.$dark-primary-text,
|
|
@@ -37,23 +37,26 @@ $contrast: (
|
|
|
37
37
|
@return map-get($color-scheme, background-color);
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
+
|
|
41
|
+
|
|
40
42
|
@mixin build-custom-theme($primary-palette, $warn-palette: mat.$red-palette, $theme-name: 'undefined') {
|
|
41
43
|
$material-addons-colors-primary: mat.define-palette($primary-palette);
|
|
42
44
|
$material-addons-colors-warn: mat.define-palette($warn-palette);
|
|
45
|
+
//$material-addons-theme: mat.define-light-theme($material-addons-colors-primary, $material-addons-colors-primary, $material-addons-colors-warn);
|
|
46
|
+
|
|
43
47
|
$material-addons-theme: mat.define-light-theme((
|
|
44
48
|
color: (
|
|
45
49
|
primary: $material-addons-colors-primary,
|
|
46
50
|
accent: $material-addons-colors-primary,
|
|
47
51
|
warn: $material-addons-colors-warn,
|
|
48
|
-
)
|
|
49
|
-
typography: mat.define-typography-config(),
|
|
50
|
-
density: 0,
|
|
52
|
+
)
|
|
51
53
|
));
|
|
52
54
|
|
|
53
55
|
$hover-color: mat.define-palette($primary-palette, 50);
|
|
54
56
|
|
|
55
57
|
@include mat.all-component-themes($material-addons-theme);
|
|
56
|
-
|
|
58
|
+
//setting the density for the components
|
|
59
|
+
//@include mat.form-field-density(-5);
|
|
57
60
|
|
|
58
61
|
@if variable-exists(table-hover-color) {
|
|
59
62
|
.clickable-table-row:hover,
|
|
@@ -193,8 +196,12 @@ mad-link-button {
|
|
|
193
196
|
top: 0;
|
|
194
197
|
}
|
|
195
198
|
|
|
196
|
-
.mdc-button
|
|
197
|
-
|
|
199
|
+
.mat-mdc-button,
|
|
200
|
+
.mat-mdc-unelevated-button,
|
|
201
|
+
.mat-mdc-raised-button,
|
|
202
|
+
.mat-mdc-outlined-button,
|
|
203
|
+
.mat-mdc-icon-button {
|
|
204
|
+
text-transform: uppercase;
|
|
198
205
|
}
|
|
199
206
|
|
|
200
207
|
.toolbar-title {
|
|
@@ -316,3 +323,15 @@ mad-link-button {
|
|
|
316
323
|
display: none !important;
|
|
317
324
|
}
|
|
318
325
|
}
|
|
326
|
+
|
|
327
|
+
.mad-read-only {
|
|
328
|
+
mat-label {
|
|
329
|
+
color: black;
|
|
330
|
+
}
|
|
331
|
+
.content {
|
|
332
|
+
color: black !important;
|
|
333
|
+
}
|
|
334
|
+
.mdc-notched-outline__leading, .mdc-notched-outline__notch, .mdc-notched-outline__trailing {
|
|
335
|
+
border: none !important;
|
|
336
|
+
}
|
|
337
|
+
}
|
package/themes/pbv.scss
CHANGED
|
@@ -19,6 +19,10 @@ $primary-palette: (
|
|
|
19
19
|
A700: #0071ee,
|
|
20
20
|
contrast: $contrast,
|
|
21
21
|
background-color: #fafafa,
|
|
22
|
+
warn-color: #AD7600,
|
|
23
|
+
error-color: #C21D00,
|
|
24
|
+
info-color: #00648F,
|
|
25
|
+
success-color: #3C8500
|
|
22
26
|
);
|
|
23
27
|
|
|
24
28
|
$warn-palette: (
|
|
@@ -45,6 +49,9 @@ $table-hover-color: get-table-hover-color($main-primary);
|
|
|
45
49
|
$background-color: get-background-color($primary-palette);
|
|
46
50
|
|
|
47
51
|
$warn-color: get-main-color($warn-palette);
|
|
52
|
+
$error-color: map-get($primary-palette, error-color);
|
|
53
|
+
$info-color: map-get($primary-palette, info-color);
|
|
54
|
+
$success-color: map-get($primary-palette, success-color);
|
|
48
55
|
|
|
49
56
|
:root {
|
|
50
57
|
--main-primary: #{$main-primary};
|
|
@@ -54,4 +61,6 @@ $warn-color: get-main-color($warn-palette);
|
|
|
54
61
|
--background-color: #{$background-color};
|
|
55
62
|
}
|
|
56
63
|
|
|
64
|
+
|
|
57
65
|
@include build-custom-theme($primary-palette, $warn-palette, $theme-name);
|
|
66
|
+
|
package/themes/poa.scss
CHANGED
|
@@ -19,7 +19,28 @@ $primary-palette: (
|
|
|
19
19
|
A700: #16f7ff,
|
|
20
20
|
contrast: $contrast,
|
|
21
21
|
background-color: #fafafa,
|
|
22
|
-
warn-color:
|
|
22
|
+
warn-color: #AD7600,
|
|
23
|
+
error-color: #C21D00,
|
|
24
|
+
info-color: #00648F,
|
|
25
|
+
success-color: #3c8500
|
|
26
|
+
);
|
|
27
|
+
|
|
28
|
+
$warn-palette: (
|
|
29
|
+
50 : #f8e4e0,
|
|
30
|
+
100 : #edbbb3,
|
|
31
|
+
200 : #e18e80,
|
|
32
|
+
300 : #d4614d,
|
|
33
|
+
400 : #cb3f26,
|
|
34
|
+
500 : #c21d00,
|
|
35
|
+
600 : #bc1a00,
|
|
36
|
+
700 : #b41500,
|
|
37
|
+
800 : #ac1100,
|
|
38
|
+
900 : #9f0a00,
|
|
39
|
+
A100 : #ffcbc9,
|
|
40
|
+
A200 : #ff9996,
|
|
41
|
+
A400 : #ff6763,
|
|
42
|
+
A700 : #ff4e4a,
|
|
43
|
+
contrast: $contrast,
|
|
23
44
|
);
|
|
24
45
|
|
|
25
46
|
$main-primary: get-main-color($primary-palette);
|
|
@@ -27,7 +48,11 @@ $selection-background: get-selection-background($primary-palette);
|
|
|
27
48
|
$table-hover-color: get-table-hover-color($main-primary);
|
|
28
49
|
$background-color: get-background-color($primary-palette);
|
|
29
50
|
|
|
30
|
-
$warn-color:
|
|
51
|
+
$warn-color: get-main-color($warn-palette);
|
|
52
|
+
$error-color: map-get($primary-palette, error-color);
|
|
53
|
+
$info-color: map-get($primary-palette, info-color);
|
|
54
|
+
$success-color: map-get($primary-palette, success-color);
|
|
55
|
+
|
|
31
56
|
|
|
32
57
|
:root {
|
|
33
58
|
--main-primary: #{$main-primary};
|
|
@@ -37,4 +62,4 @@ $warn-color: map-get($primary-palette, warn-color);
|
|
|
37
62
|
--background-color: #{$background-color};
|
|
38
63
|
}
|
|
39
64
|
|
|
40
|
-
@include build-custom-theme($primary-palette);
|
|
65
|
+
@include build-custom-theme($primary-palette, $warn-palette, $theme-name);
|