@ngx-stoui/core 15.0.0 → 16.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/README.md +7 -7
- package/{esm2020 → esm2022}/index.mjs +1 -1
- package/{esm2020 → esm2022}/lib/abstract-and-interfaces/keyPress.enum.mjs +1 -1
- package/esm2022/lib/sto-directives/context-menu.directive.mjs +36 -0
- package/esm2022/lib/sto-directives/date-form-field-click.directive.mjs +46 -0
- package/esm2022/lib/sto-directives/directives.module.mjs +64 -0
- package/{esm2020 → esm2022}/lib/sto-directives/index.mjs +1 -1
- package/esm2022/lib/sto-directives/menu-overlay.directive.mjs +48 -0
- package/{esm2020 → esm2022}/lib/sto-directives/quick-keys.directive.mjs +4 -4
- package/{esm2020 → esm2022}/lib/sto-directives/sto-grid.directive.mjs +10 -10
- package/{esm2020 → esm2022}/lib/sto-directives/sto-select-text-on-focus.directive.mjs +4 -4
- package/{esm2020 → esm2022}/lib/sto-pipes/currency-format.pipe.mjs +4 -4
- package/{esm2020 → esm2022}/lib/sto-pipes/date-format.pipe.mjs +4 -4
- package/{esm2020 → esm2022}/lib/sto-pipes/keys.pipe.mjs +4 -4
- package/{esm2020 → esm2022}/lib/sto-pipes/number-format.pipe.mjs +4 -4
- package/{esm2020 → esm2022}/lib/sto-pipes/sto-pipes.module.mjs +17 -17
- package/{esm2020 → esm2022}/lib/sto-pipes/with-unit.mjs +7 -7
- package/{esm2020 → esm2022}/lib/sto-pipes/yes-no.mjs +4 -4
- package/{fesm2020 → fesm2022}/ngx-stoui-core.mjs +83 -84
- package/fesm2022/ngx-stoui-core.mjs.map +1 -0
- package/lib/sto-directives/context-menu.directive.d.ts +2 -2
- package/lib/sto-directives/date-form-field-click.directive.d.ts +2 -2
- package/lib/sto-directives/menu-overlay.directive.d.ts +1 -1
- package/lib/sto-directives/quick-keys.directive.d.ts +1 -1
- package/lib/sto-directives/sto-grid.directive.d.ts +2 -2
- package/ngx-datatable.css +26 -9
- package/ngx-stoui.css +3290 -3555
- package/package.json +18 -18
- package/style/_fonts.scss +3 -3
- package/style/datatable/_ngx-datatable-compact.scss +144 -144
- package/style/datatable/_ngx-datatable-form.scss +94 -95
- package/style/datatable/_ngx-datatable-variables.scss +10 -10
- package/style/datatable/ngx-datatable.scss +404 -398
- package/style/form/sto-form.scss +348 -342
- package/style/grid.scss +20 -20
- package/style/sto-dialog.scss +73 -73
- package/style/sto-grid.scss +67 -67
- package/style/theme/_action-footer.scss +20 -20
- package/style/theme/_appheader.scss +121 -122
- package/style/theme/_card.scss +28 -26
- package/style/theme/_colors.scss +170 -170
- package/style/theme/_datatable.scss +231 -224
- package/style/theme/_daterange.scss +47 -51
- package/style/theme/_dialog.scss +25 -25
- package/style/theme/_filterpanel.scss +88 -88
- package/style/theme/_input-overrides.scss +119 -117
- package/style/theme/_message-panel.scss +89 -89
- package/style/theme/_number-input.scss +23 -23
- package/style/theme/_number-unit-input.scss +34 -34
- package/style/theme/_select-filter.scss +16 -16
- package/style/theme/_sto-indicators.scss +89 -89
- package/style/theme/_theme-variables.scss +63 -61
- package/style/theme/_theme.scss +22 -16
- package/style/theme/_typography.scss +44 -41
- package/style/theme/_wysiwyg.scss +38 -38
- package/style/theme/components.scss +16 -16
- package/style/theme/preference-manager.scss +50 -50
- package/style/theme.scss +41 -35
- package/esm2020/lib/sto-directives/context-menu.directive.mjs +0 -36
- package/esm2020/lib/sto-directives/date-form-field-click.directive.mjs +0 -46
- package/esm2020/lib/sto-directives/directives.module.mjs +0 -64
- package/esm2020/lib/sto-directives/menu-overlay.directive.mjs +0 -48
- package/fesm2015/ngx-stoui-core.mjs +0 -829
- package/fesm2015/ngx-stoui-core.mjs.map +0 -1
- package/fesm2020/ngx-stoui-core.mjs.map +0 -1
- package/license.md +0 -21
- /package/{esm2020 → esm2022}/ngx-stoui-core.mjs +0 -0
|
@@ -1,88 +1,88 @@
|
|
|
1
|
-
@use '@angular/material' as mat;
|
|
2
|
-
@import
|
|
3
|
-
@import
|
|
4
|
-
|
|
5
|
-
@mixin sto-filterpanel-theme($theme, $variables) {
|
|
6
|
-
$primary: map_get($variables, primary);
|
|
7
|
-
$color: map_get($variables, color);
|
|
8
|
-
$secondary: map_get($variables, secondary);
|
|
9
|
-
$border-color: map_get($variables, border-color);
|
|
10
|
-
$background-color: map_get($variables, app-bar);
|
|
11
|
-
$icon-color: map_get($variables, icon);
|
|
12
|
-
$icon-hover: map-get($variables, icon-hover);
|
|
13
|
-
$hover-color: map_get($variables, hover-bg);
|
|
14
|
-
$selected-color: map_get($variables, selected-bg);
|
|
15
|
-
|
|
16
|
-
.sto-filter.mat-expansion-panel {
|
|
17
|
-
.mat-expansion-panel-header {
|
|
18
|
-
background-color: $background-color;
|
|
19
|
-
|
|
20
|
-
&[aria-disabled=true] {
|
|
21
|
-
color: $color;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.mat-icon-button,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
//
|
|
47
|
-
background-color: $
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
//
|
|
53
|
-
background-color: $
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
// Include theme styles for your custom components.
|
|
65
|
-
body {
|
|
66
|
-
@include sto-filterpanel-theme($sto-theme, $variables);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
@mixin sto-filter-panel-typography($config) {
|
|
70
|
-
.sto-filter {
|
|
71
|
-
.mat-expansion-panel-header {
|
|
72
|
-
font-size: mat.font-size($config,
|
|
73
|
-
line-height: mat.line-height($config,
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.mat-typography:not(.sto-sm-typography):not(.sto-l-typography) {
|
|
79
|
-
@include sto-filter-panel-typography($sto-typography);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.mat-typography.sto-sm-typography {
|
|
83
|
-
@include sto-filter-panel-typography($sto-sm-typography);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.mat-typography.sto-l-typography {
|
|
87
|
-
@include sto-filter-panel-typography($sto-l-typography);
|
|
88
|
-
}
|
|
1
|
+
@use '@angular/material' as mat;
|
|
2
|
+
@import 'theme';
|
|
3
|
+
@import 'typography';
|
|
4
|
+
|
|
5
|
+
@mixin sto-filterpanel-theme($theme, $variables) {
|
|
6
|
+
$primary: map_get($variables, primary);
|
|
7
|
+
$color: map_get($variables, color);
|
|
8
|
+
$secondary: map_get($variables, secondary);
|
|
9
|
+
$border-color: map_get($variables, border-color);
|
|
10
|
+
$background-color: map_get($variables, app-bar);
|
|
11
|
+
$icon-color: map_get($variables, icon);
|
|
12
|
+
$icon-hover: map-get($variables, icon-hover);
|
|
13
|
+
$hover-color: map_get($variables, hover-bg);
|
|
14
|
+
$selected-color: map_get($variables, selected-bg);
|
|
15
|
+
|
|
16
|
+
.sto-filter.mat-expansion-panel {
|
|
17
|
+
.mat-expansion-panel-header {
|
|
18
|
+
background-color: $background-color;
|
|
19
|
+
|
|
20
|
+
&[aria-disabled='true'] {
|
|
21
|
+
color: $color;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.mat-icon-button,
|
|
25
|
+
.mat-button {
|
|
26
|
+
color: $icon-color;
|
|
27
|
+
|
|
28
|
+
&:hover {
|
|
29
|
+
color: $icon-hover;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.mat-button-toggle-standalone.mat-button-toggle-appearance-standard {
|
|
34
|
+
background-color: transparent;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.mat-button-toggle-standalone.mat-button-toggle-appearance-standard.mat-button-toggle-checked {
|
|
38
|
+
background-color: $selected-color;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&:not(.mat-expanded) {
|
|
42
|
+
border-bottom: solid 1px $border-color;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&.mat-expanded:hover {
|
|
46
|
+
// Y THO? Looks shit.
|
|
47
|
+
//background-color: $hover-color;
|
|
48
|
+
background-color: $background-color;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&.mat-expanded:focus {
|
|
52
|
+
// Y THO? Looks shit.
|
|
53
|
+
//background-color: $selected-color;
|
|
54
|
+
background-color: $background-color;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.separator {
|
|
59
|
+
background-color: $border-color;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
// Include theme styles for your custom components.
|
|
65
|
+
body {
|
|
66
|
+
@include sto-filterpanel-theme($sto-theme, $variables);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
@mixin sto-filter-panel-typography($config) {
|
|
70
|
+
.sto-filter {
|
|
71
|
+
.mat-expansion-panel-header {
|
|
72
|
+
font-size: mat.font-size($config, subtitle-2);
|
|
73
|
+
line-height: mat.line-height($config, subtitle-2);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.mat-typography:not(.sto-sm-typography):not(.sto-l-typography) {
|
|
79
|
+
@include sto-filter-panel-typography($sto-typography);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.mat-typography.sto-sm-typography {
|
|
83
|
+
@include sto-filter-panel-typography($sto-sm-typography);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.mat-typography.sto-l-typography {
|
|
87
|
+
@include sto-filter-panel-typography($sto-l-typography);
|
|
88
|
+
}
|
|
@@ -1,117 +1,119 @@
|
|
|
1
|
-
@use '@angular/material' as mat;
|
|
2
|
-
@import
|
|
3
|
-
@import
|
|
4
|
-
|
|
5
|
-
@mixin sto-input-override-theme($theme, $variables) {
|
|
6
|
-
$color: map_get($variables, color);
|
|
7
|
-
$form-field-bg: var(--bg-light);
|
|
8
|
-
$border-radius: 4px;
|
|
9
|
-
$icon-color: map_get($variables, icon);
|
|
10
|
-
$icon-hover: map_get($variables, icon-hover);
|
|
11
|
-
|
|
12
|
-
.sto-form__field,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
@
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
font-size: $base -
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
1
|
+
@use '@angular/material' as mat;
|
|
2
|
+
@import 'theme';
|
|
3
|
+
@import 'typography';
|
|
4
|
+
|
|
5
|
+
@mixin sto-input-override-theme($theme, $variables) {
|
|
6
|
+
$color: map_get($variables, color);
|
|
7
|
+
$form-field-bg: var(--bg-light);
|
|
8
|
+
$border-radius: 4px;
|
|
9
|
+
$icon-color: map_get($variables, icon);
|
|
10
|
+
$icon-hover: map_get($variables, icon-hover);
|
|
11
|
+
|
|
12
|
+
.sto-form__field,
|
|
13
|
+
.sto-form__field.mat-mdc-form-field {
|
|
14
|
+
--mdc-filled-text-field-container-color: #{$form-field-bg};
|
|
15
|
+
.mat-mdc-form-field-flex {
|
|
16
|
+
// background-color: $form-field-bg;
|
|
17
|
+
|
|
18
|
+
.mat-mdc-form-field-infix {
|
|
19
|
+
//line-height: 14px; // TODO: Proper fix.
|
|
20
|
+
}
|
|
21
|
+
.mat-input {
|
|
22
|
+
color: $color;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&.sto-form__field--readonly,
|
|
27
|
+
&.sto-form__field--disabled {
|
|
28
|
+
.mat-mdc-form-field-flex {
|
|
29
|
+
background-color: transparent;
|
|
30
|
+
|
|
31
|
+
.mat-mdc-form-field-infix {
|
|
32
|
+
//line-height: 14px; // TODO: Proper fix.
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.mat-select-value {
|
|
36
|
+
color: $color;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&.sto-form__field--readonly .mat-mdc-form-field-flex {
|
|
42
|
+
background-color: transparent;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.mat-mdc-form-field-flex:hover ~ .mat-form-field-underline {
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&.mat-focused .mat-mdc-form-field-infix .mat-mdc-floating-label {
|
|
49
|
+
color: $color;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.mat-mdc-form-field-flex:hover {
|
|
53
|
+
.mat-mdc-form-field-icon-suffix > .mat-icon {
|
|
54
|
+
color: $icon-hover;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.mat-mdc-form-field-icon-suffix > .mat-icon {
|
|
59
|
+
color: $icon-color;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
// Include theme styles for your custom components.
|
|
65
|
+
body {
|
|
66
|
+
@include sto-input-override-theme($sto-theme, $variables);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
@import 'typography';
|
|
70
|
+
|
|
71
|
+
@mixin sto-input-typography($config) {
|
|
72
|
+
$base: mat.font-size($config, body-1);
|
|
73
|
+
|
|
74
|
+
.sto-form-field,
|
|
75
|
+
.sto-form__field.mat-form-field {
|
|
76
|
+
line-height: $base;
|
|
77
|
+
|
|
78
|
+
.mat-select-trigger {
|
|
79
|
+
height: $base;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.sto-form__field.mat-form-field-can-float.mat-form-field-should-float {
|
|
84
|
+
.mat-mdc-floating-label-wrapper {
|
|
85
|
+
top: -1.3em;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.mat-mdc-floating-label {
|
|
89
|
+
transform: translateY(-1em) perspective(100px) translateZ(0.001px) !important;
|
|
90
|
+
@if $base == 16px {
|
|
91
|
+
font-size: $base - 3px;
|
|
92
|
+
} @else {
|
|
93
|
+
font-size: $base - 2px;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.cdk-overlay-container .mat-option {
|
|
98
|
+
font-size: mat.font-size($config, body-1);
|
|
99
|
+
line-height: mat.line-height($config, body-1);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.mat-option,
|
|
104
|
+
.mat-option .mat-option-text {
|
|
105
|
+
font-size: $base;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.mat-typography:not(.sto-sm-typography):not(.sto-l-typography) {
|
|
110
|
+
@include sto-input-typography($sto-typography);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.mat-typography.sto-sm-typography {
|
|
114
|
+
@include sto-input-typography($sto-sm-typography);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.mat-typography.sto-l-typography {
|
|
118
|
+
@include sto-input-typography($sto-l-typography);
|
|
119
|
+
}
|
|
@@ -1,89 +1,89 @@
|
|
|
1
|
-
@use '@angular/material' as mat;
|
|
2
|
-
@import "theme";
|
|
3
|
-
@import "typography";
|
|
4
|
-
|
|
5
|
-
@mixin sto-message-panel-theme($theme, $variables) {
|
|
6
|
-
$primary: map_get($variables, primary);
|
|
7
|
-
$warn: map_get($variables, warn);
|
|
8
|
-
$accent: map_get($variables, accent);
|
|
9
|
-
$primary-contrast: map_get($variables, primary-contrast);
|
|
10
|
-
$warn-contrast: map_get($variables, warn-contrast);
|
|
11
|
-
$accent-contrast: map_get($variables, accent-contrast);
|
|
12
|
-
$color: map_get($variables, color);
|
|
13
|
-
|
|
14
|
-
$indicators: map-get($theme, indicators);
|
|
15
|
-
$success-palette: map-get($indicators, success);
|
|
16
|
-
$success: mat.get-color-from-palette($success-palette, highlight);
|
|
17
|
-
$success-contrast: mat.get-color-from-palette($success-palette, highlight-contrast);
|
|
18
|
-
$success-icon: mat.get-color-from-palette($success-palette, resting);
|
|
19
|
-
$success-border: $success-icon;
|
|
20
|
-
|
|
21
|
-
$danger-palette: map-get($indicators, danger);
|
|
22
|
-
$danger: mat.get-color-from-palette($danger-palette, highlight);
|
|
23
|
-
$danger-contrast: mat.get-color-from-palette($danger-palette, highlight-contrast);
|
|
24
|
-
$danger-icon: mat.get-color-from-palette($danger-palette, resting);
|
|
25
|
-
$danger-border: $danger-icon;
|
|
26
|
-
|
|
27
|
-
$warning-palette: map-get($indicators, warning);
|
|
28
|
-
$warning: mat.get-color-from-palette($warning-palette, highlight);
|
|
29
|
-
$warning-contrast: mat.get-color-from-palette($warning-palette, highlight-contrast);
|
|
30
|
-
$warning-icon: mat.get-color-from-palette($warning-palette, resting);
|
|
31
|
-
$warning-border: $warning-icon;
|
|
32
|
-
|
|
33
|
-
.sto-message-panel {
|
|
34
|
-
color: $color;
|
|
35
|
-
|
|
36
|
-
&.mat-primary {
|
|
37
|
-
background-color: $primary;
|
|
38
|
-
color: $primary-contrast;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
&.mat-accent {
|
|
42
|
-
background-color: $accent;
|
|
43
|
-
color: $accent-contrast;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
&.mat-warn {
|
|
47
|
-
background-color: $warn;
|
|
48
|
-
color: $warn-contrast;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
&.mat-success {
|
|
52
|
-
background-color: $success;
|
|
53
|
-
color: $success-contrast;
|
|
54
|
-
border-color: $success-border;
|
|
55
|
-
|
|
56
|
-
.mat-icon {
|
|
57
|
-
color: $success-icon;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
&.mat-danger {
|
|
62
|
-
background-color: $danger;
|
|
63
|
-
color: $danger-contrast;
|
|
64
|
-
border-color: $danger-border;
|
|
65
|
-
|
|
66
|
-
.mat-icon {
|
|
67
|
-
color: $danger-icon;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
&.mat-warning {
|
|
72
|
-
background-color: $warning;
|
|
73
|
-
color: $warning-contrast;
|
|
74
|
-
border-color: $warning-border;
|
|
75
|
-
|
|
76
|
-
.mat-icon {
|
|
77
|
-
color: $warning-icon;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
// Include theme styles for your custom components.
|
|
86
|
-
body {
|
|
87
|
-
@include sto-message-panel-theme($sto-theme, $variables);
|
|
88
|
-
}
|
|
89
|
-
|
|
1
|
+
@use '@angular/material' as mat;
|
|
2
|
+
@import "theme";
|
|
3
|
+
@import "typography";
|
|
4
|
+
|
|
5
|
+
@mixin sto-message-panel-theme($theme, $variables) {
|
|
6
|
+
$primary: map_get($variables, primary);
|
|
7
|
+
$warn: map_get($variables, warn);
|
|
8
|
+
$accent: map_get($variables, accent);
|
|
9
|
+
$primary-contrast: map_get($variables, primary-contrast);
|
|
10
|
+
$warn-contrast: map_get($variables, warn-contrast);
|
|
11
|
+
$accent-contrast: map_get($variables, accent-contrast);
|
|
12
|
+
$color: map_get($variables, color);
|
|
13
|
+
|
|
14
|
+
$indicators: map-get($theme, indicators);
|
|
15
|
+
$success-palette: map-get($indicators, success);
|
|
16
|
+
$success: mat.get-color-from-palette($success-palette, highlight);
|
|
17
|
+
$success-contrast: mat.get-color-from-palette($success-palette, highlight-contrast);
|
|
18
|
+
$success-icon: mat.get-color-from-palette($success-palette, resting);
|
|
19
|
+
$success-border: $success-icon;
|
|
20
|
+
|
|
21
|
+
$danger-palette: map-get($indicators, danger);
|
|
22
|
+
$danger: mat.get-color-from-palette($danger-palette, highlight);
|
|
23
|
+
$danger-contrast: mat.get-color-from-palette($danger-palette, highlight-contrast);
|
|
24
|
+
$danger-icon: mat.get-color-from-palette($danger-palette, resting);
|
|
25
|
+
$danger-border: $danger-icon;
|
|
26
|
+
|
|
27
|
+
$warning-palette: map-get($indicators, warning);
|
|
28
|
+
$warning: mat.get-color-from-palette($warning-palette, highlight);
|
|
29
|
+
$warning-contrast: mat.get-color-from-palette($warning-palette, highlight-contrast);
|
|
30
|
+
$warning-icon: mat.get-color-from-palette($warning-palette, resting);
|
|
31
|
+
$warning-border: $warning-icon;
|
|
32
|
+
|
|
33
|
+
.sto-message-panel {
|
|
34
|
+
color: $color;
|
|
35
|
+
|
|
36
|
+
&.mat-primary {
|
|
37
|
+
background-color: $primary;
|
|
38
|
+
color: $primary-contrast;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&.mat-accent {
|
|
42
|
+
background-color: $accent;
|
|
43
|
+
color: $accent-contrast;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&.mat-warn {
|
|
47
|
+
background-color: $warn;
|
|
48
|
+
color: $warn-contrast;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&.mat-success {
|
|
52
|
+
background-color: $success;
|
|
53
|
+
color: $success-contrast;
|
|
54
|
+
border-color: $success-border;
|
|
55
|
+
|
|
56
|
+
.mat-icon {
|
|
57
|
+
color: $success-icon;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&.mat-danger {
|
|
62
|
+
background-color: $danger;
|
|
63
|
+
color: $danger-contrast;
|
|
64
|
+
border-color: $danger-border;
|
|
65
|
+
|
|
66
|
+
.mat-icon {
|
|
67
|
+
color: $danger-icon;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&.mat-warning {
|
|
72
|
+
background-color: $warning;
|
|
73
|
+
color: $warning-contrast;
|
|
74
|
+
border-color: $warning-border;
|
|
75
|
+
|
|
76
|
+
.mat-icon {
|
|
77
|
+
color: $warning-icon;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
// Include theme styles for your custom components.
|
|
86
|
+
body {
|
|
87
|
+
@include sto-message-panel-theme($sto-theme, $variables);
|
|
88
|
+
}
|
|
89
|
+
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
@import "./theme";
|
|
2
|
-
@import "./typography";
|
|
3
|
-
|
|
4
|
-
@mixin sto-number-input-theme($theme, $variables) {
|
|
5
|
-
$color: map_get($variables, color);
|
|
6
|
-
$secondary-color: map_get($variables, secondary);
|
|
7
|
-
|
|
8
|
-
.mat-form-field.sto-form__field {
|
|
9
|
-
.sto-number-input {
|
|
10
|
-
color: $color;
|
|
11
|
-
|
|
12
|
-
&::placeholder {
|
|
13
|
-
color: $secondary-color;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
// Include theme styles for your custom components.
|
|
21
|
-
body {
|
|
22
|
-
@include sto-number-input-theme($sto-theme, $variables);
|
|
23
|
-
}
|
|
1
|
+
@import "./theme";
|
|
2
|
+
@import "./typography";
|
|
3
|
+
|
|
4
|
+
@mixin sto-number-input-theme($theme, $variables) {
|
|
5
|
+
$color: map_get($variables, color);
|
|
6
|
+
$secondary-color: map_get($variables, secondary);
|
|
7
|
+
|
|
8
|
+
.mat-form-field.sto-form__field {
|
|
9
|
+
.sto-number-input {
|
|
10
|
+
color: $color;
|
|
11
|
+
|
|
12
|
+
&::placeholder {
|
|
13
|
+
color: $secondary-color;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
// Include theme styles for your custom components.
|
|
21
|
+
body {
|
|
22
|
+
@include sto-number-input-theme($sto-theme, $variables);
|
|
23
|
+
}
|