@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,34 +1,34 @@
|
|
|
1
|
-
@import "./theme";
|
|
2
|
-
@import "./typography";
|
|
3
|
-
|
|
4
|
-
@mixin sto-number-unit-input-theme($theme, $variables) {
|
|
5
|
-
$border-color: map_get($variables, border-color);
|
|
6
|
-
$color: map_get($variables, color);
|
|
7
|
-
$disabled: map_get($variables, disabled);
|
|
8
|
-
$secondary-color: map_get($variables, secondary);
|
|
9
|
-
|
|
10
|
-
.mat-form-field.sto-form__field {
|
|
11
|
-
sto-number-unit-input {
|
|
12
|
-
.number-unit-input-spacer {
|
|
13
|
-
background: $border-color;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.number-unit-input-element {
|
|
17
|
-
color: $color;
|
|
18
|
-
|
|
19
|
-
&::placeholder {
|
|
20
|
-
color: $secondary-color;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
.mat-option.sto-option--clear {
|
|
27
|
-
color: $secondary-color;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
// Include theme styles for your custom components.
|
|
32
|
-
body {
|
|
33
|
-
@include sto-number-unit-input-theme($sto-theme, $variables);
|
|
34
|
-
}
|
|
1
|
+
@import "./theme";
|
|
2
|
+
@import "./typography";
|
|
3
|
+
|
|
4
|
+
@mixin sto-number-unit-input-theme($theme, $variables) {
|
|
5
|
+
$border-color: map_get($variables, border-color);
|
|
6
|
+
$color: map_get($variables, color);
|
|
7
|
+
$disabled: map_get($variables, disabled);
|
|
8
|
+
$secondary-color: map_get($variables, secondary);
|
|
9
|
+
|
|
10
|
+
.mat-form-field.sto-form__field {
|
|
11
|
+
sto-number-unit-input {
|
|
12
|
+
.number-unit-input-spacer {
|
|
13
|
+
background: $border-color;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.number-unit-input-element {
|
|
17
|
+
color: $color;
|
|
18
|
+
|
|
19
|
+
&::placeholder {
|
|
20
|
+
color: $secondary-color;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
.mat-option.sto-option--clear {
|
|
27
|
+
color: $secondary-color;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// Include theme styles for your custom components.
|
|
32
|
+
body {
|
|
33
|
+
@include sto-number-unit-input-theme($sto-theme, $variables);
|
|
34
|
+
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
@import "theme";
|
|
2
|
-
@import "typography";
|
|
3
|
-
|
|
4
|
-
@mixin sto-input-override-theme($theme, $variables) {
|
|
5
|
-
$color: map_get($variables, color);
|
|
6
|
-
$background-color: map_get($variables, background);
|
|
7
|
-
|
|
8
|
-
.sto-select-filter {
|
|
9
|
-
background-color: $background-color;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
// Include theme styles for your custom components.
|
|
14
|
-
body {
|
|
15
|
-
@include sto-input-override-theme($sto-theme, $variables);
|
|
16
|
-
}
|
|
1
|
+
@import "theme";
|
|
2
|
+
@import "typography";
|
|
3
|
+
|
|
4
|
+
@mixin sto-input-override-theme($theme, $variables) {
|
|
5
|
+
$color: map_get($variables, color);
|
|
6
|
+
$background-color: map_get($variables, background);
|
|
7
|
+
|
|
8
|
+
.sto-select-filter {
|
|
9
|
+
background-color: $background-color;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
// Include theme styles for your custom components.
|
|
14
|
+
body {
|
|
15
|
+
@include sto-input-override-theme($sto-theme, $variables);
|
|
16
|
+
}
|
|
@@ -1,89 +1,89 @@
|
|
|
1
|
-
@use '@angular/material' as mat;
|
|
2
|
-
@import "./theme-variables";
|
|
3
|
-
@import "./theme";
|
|
4
|
-
@import "colors";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
@mixin indicators-theme($theme, $variables) {
|
|
8
|
-
$primary: map_get($variables, primary);
|
|
9
|
-
$warn: map_get($variables, warn);
|
|
10
|
-
$accent: map_get($variables, accent);
|
|
11
|
-
$primary-contrast: map_get($variables, primary-contrast);
|
|
12
|
-
$warn-contrast: map_get($variables, warn-contrast);
|
|
13
|
-
$accent-contrast: map_get($variables, accent-contrast);
|
|
14
|
-
$color: map_get($variables, color);
|
|
15
|
-
$border-color: map_get($variables, border-color);
|
|
16
|
-
$icon-color: map_get($variables, icon);
|
|
17
|
-
$indicators: map_get($theme, indicators);
|
|
18
|
-
$success-palette: map_get($indicators, success);
|
|
19
|
-
$success-highlight-bg: mat.get-color-from-palette($success-palette, highlight);
|
|
20
|
-
$success-highlight-contrast: map-get(map-get($success-palette, contrast), highlight); // mat.get-color-from-palette($success-palette, highlight-contrast);
|
|
21
|
-
$danger-palette: map-get($indicators, danger);
|
|
22
|
-
$danger-highlight-bg: mat.get-color-from-palette($danger-palette, highlight);
|
|
23
|
-
$danger-highlight-contrast: map-get(map-get($danger-palette, contrast), highlight); //mat.get-color-from-palette($danger-palette, highlight-contrast);
|
|
24
|
-
$warning-palette: map-get($indicators, warning);
|
|
25
|
-
$warning-highlight-bg: mat.get-color-from-palette($warning-palette, highlight);
|
|
26
|
-
$warning-highlight-contrast: mat.get-color-from-palette($warning-palette, highlight-contrast);
|
|
27
|
-
$warning-text: mat.get-color-from-palette($warning-palette, text);
|
|
28
|
-
$success-text: mat.get-color-from-palette($success-palette, text);
|
|
29
|
-
$danger-text: mat.get-color-from-palette($danger-palette, text);
|
|
30
|
-
|
|
31
|
-
$fill-buttons: '.mat-raised-button', '.mat-flat-button', '.mat-fab', '.mat-mini-fab';
|
|
32
|
-
$text-buttons: '.mat-button', '.mat-stroked-button', '.mat-icon-button';
|
|
33
|
-
|
|
34
|
-
.mat-card {
|
|
35
|
-
&.mat-primary {
|
|
36
|
-
background-color: $primary;
|
|
37
|
-
color: $primary-contrast;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
&.mat-accent {
|
|
41
|
-
background-color: $accent;
|
|
42
|
-
color: $accent-contrast;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
&.mat-warn {
|
|
46
|
-
background-color: $warn;
|
|
47
|
-
color: $warn-contrast;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
div, .mat-card, #{$fill-buttons} {
|
|
52
|
-
&.mat-success {
|
|
53
|
-
background-color: $success-highlight-bg;
|
|
54
|
-
color: $success-highlight-contrast;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
&.mat-danger {
|
|
58
|
-
background-color: $danger-highlight-bg;
|
|
59
|
-
color: $danger-highlight-contrast;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
&.mat-warning {
|
|
63
|
-
background-color: $warning-highlight-bg;
|
|
64
|
-
color: $warning-highlight-contrast;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
.mat-hint, span, p, h1, h2, h3, h4, h5, h6, small, .mat-icon, #{$text-buttons} {
|
|
70
|
-
&.mat-success {
|
|
71
|
-
color: $success-text;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
&.mat-danger {
|
|
75
|
-
color: $danger-text;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
&.mat-warning {
|
|
79
|
-
color: $warning-text;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
// Include theme styles for your custom components.
|
|
85
|
-
body {
|
|
86
|
-
@include indicators-theme($sto-theme, $variables);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
|
|
1
|
+
@use '@angular/material' as mat;
|
|
2
|
+
@import "./theme-variables";
|
|
3
|
+
@import "./theme";
|
|
4
|
+
@import "colors";
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
@mixin indicators-theme($theme, $variables) {
|
|
8
|
+
$primary: map_get($variables, primary);
|
|
9
|
+
$warn: map_get($variables, warn);
|
|
10
|
+
$accent: map_get($variables, accent);
|
|
11
|
+
$primary-contrast: map_get($variables, primary-contrast);
|
|
12
|
+
$warn-contrast: map_get($variables, warn-contrast);
|
|
13
|
+
$accent-contrast: map_get($variables, accent-contrast);
|
|
14
|
+
$color: map_get($variables, color);
|
|
15
|
+
$border-color: map_get($variables, border-color);
|
|
16
|
+
$icon-color: map_get($variables, icon);
|
|
17
|
+
$indicators: map_get($theme, indicators);
|
|
18
|
+
$success-palette: map_get($indicators, success);
|
|
19
|
+
$success-highlight-bg: mat.get-color-from-palette($success-palette, highlight);
|
|
20
|
+
$success-highlight-contrast: map-get(map-get($success-palette, contrast), highlight); // mat.get-color-from-palette($success-palette, highlight-contrast);
|
|
21
|
+
$danger-palette: map-get($indicators, danger);
|
|
22
|
+
$danger-highlight-bg: mat.get-color-from-palette($danger-palette, highlight);
|
|
23
|
+
$danger-highlight-contrast: map-get(map-get($danger-palette, contrast), highlight); //mat.get-color-from-palette($danger-palette, highlight-contrast);
|
|
24
|
+
$warning-palette: map-get($indicators, warning);
|
|
25
|
+
$warning-highlight-bg: mat.get-color-from-palette($warning-palette, highlight);
|
|
26
|
+
$warning-highlight-contrast: mat.get-color-from-palette($warning-palette, highlight-contrast);
|
|
27
|
+
$warning-text: mat.get-color-from-palette($warning-palette, text);
|
|
28
|
+
$success-text: mat.get-color-from-palette($success-palette, text);
|
|
29
|
+
$danger-text: mat.get-color-from-palette($danger-palette, text);
|
|
30
|
+
|
|
31
|
+
$fill-buttons: '.mat-raised-button', '.mat-flat-button', '.mat-fab', '.mat-mini-fab';
|
|
32
|
+
$text-buttons: '.mat-button', '.mat-stroked-button', '.mat-icon-button';
|
|
33
|
+
|
|
34
|
+
.mat-card {
|
|
35
|
+
&.mat-primary {
|
|
36
|
+
background-color: $primary;
|
|
37
|
+
color: $primary-contrast;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&.mat-accent {
|
|
41
|
+
background-color: $accent;
|
|
42
|
+
color: $accent-contrast;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&.mat-warn {
|
|
46
|
+
background-color: $warn;
|
|
47
|
+
color: $warn-contrast;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
div, .mat-card, #{$fill-buttons} {
|
|
52
|
+
&.mat-success {
|
|
53
|
+
background-color: $success-highlight-bg;
|
|
54
|
+
color: $success-highlight-contrast;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&.mat-danger {
|
|
58
|
+
background-color: $danger-highlight-bg;
|
|
59
|
+
color: $danger-highlight-contrast;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&.mat-warning {
|
|
63
|
+
background-color: $warning-highlight-bg;
|
|
64
|
+
color: $warning-highlight-contrast;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
.mat-hint, span, p, h1, h2, h3, h4, h5, h6, small, .mat-icon, #{$text-buttons} {
|
|
70
|
+
&.mat-success {
|
|
71
|
+
color: $success-text;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&.mat-danger {
|
|
75
|
+
color: $danger-text;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&.mat-warning {
|
|
79
|
+
color: $warning-text;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
// Include theme styles for your custom components.
|
|
85
|
+
body {
|
|
86
|
+
@include indicators-theme($sto-theme, $variables);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
|
|
@@ -1,61 +1,63 @@
|
|
|
1
|
-
@use '@angular/material' as mat;
|
|
2
|
-
|
|
3
|
-
@function theme_variables($theme) {
|
|
4
|
-
$primary-palette: map-get($theme, primary);
|
|
5
|
-
$primary: mat.get-color-from-palette($primary-palette);
|
|
6
|
-
$primary-contrast: mat.get-contrast-color-from-palette(
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
$
|
|
11
|
-
$
|
|
12
|
-
$
|
|
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
|
-
primary
|
|
42
|
-
accent
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
1
|
+
@use '@angular/material' as mat;
|
|
2
|
+
|
|
3
|
+
@function theme_variables($theme) {
|
|
4
|
+
$primary-palette: map-get($theme, primary);
|
|
5
|
+
$primary: mat.get-color-from-palette($primary-palette);
|
|
6
|
+
$primary-contrast: mat.get-contrast-color-from-palette(
|
|
7
|
+
$primary-palette,
|
|
8
|
+
main
|
|
9
|
+
);
|
|
10
|
+
$accent-palette: map-get($theme, accent);
|
|
11
|
+
$accent: mat.get-color-from-palette($accent-palette, highlight);
|
|
12
|
+
$accent-contrast: mat.get-contrast-color-from-palette($accent-palette, main);
|
|
13
|
+
$warn-palette: map-get($theme, warn);
|
|
14
|
+
$warn: mat.get-color-from-palette($warn-palette);
|
|
15
|
+
$warn-contrast: mat.get-contrast-color-from-palette($warn-palette, main);
|
|
16
|
+
$indicators: map-get($theme, indicators);
|
|
17
|
+
$danger-palette: map-get($indicators, danger);
|
|
18
|
+
$error: mat.get-color-from-palette($danger-palette, resting);
|
|
19
|
+
$warning-palette: map-get($indicators, warning);
|
|
20
|
+
$warning: mat.get-color-from-palette($warning-palette, resting);
|
|
21
|
+
$success-palette: map-get($indicators, success);
|
|
22
|
+
$success: mat.get-color-from-palette($success-palette, resting);
|
|
23
|
+
|
|
24
|
+
$foreground: map-get($theme, foreground);
|
|
25
|
+
$color: mat.get-color-from-palette($foreground, text);
|
|
26
|
+
$secondary: mat.get-color-from-palette($foreground, secondary-text);
|
|
27
|
+
$disabled: mat.get-color-from-palette($foreground, disabled-text);
|
|
28
|
+
$icon: mat.get-color-from-palette($foreground, icon);
|
|
29
|
+
$icon-hover: rgba($icon, 0.8);
|
|
30
|
+
|
|
31
|
+
$background: map-get($theme, background);
|
|
32
|
+
$background-color: map-get($background, background);
|
|
33
|
+
$card-bg: map_get($background, card);
|
|
34
|
+
$hover-bg-color: mat.get-color-from-palette($background, hover);
|
|
35
|
+
$hover-color: mat.get-color-from-palette($foreground, slider-off-active);
|
|
36
|
+
$selected-color: mat.get-color-from-palette($background, selected-button);
|
|
37
|
+
$border-color: mat.get-color-from-palette($foreground, divider);
|
|
38
|
+
$app-bar: mat.get-color-from-palette($background, 'app-bar');
|
|
39
|
+
|
|
40
|
+
@return (
|
|
41
|
+
primary: $primary,
|
|
42
|
+
accent: $accent,
|
|
43
|
+
primary-contrast: $primary-contrast,
|
|
44
|
+
accent-contrast: $accent-contrast,
|
|
45
|
+
warn: $warn,
|
|
46
|
+
warn-contrast: $warn-contrast,
|
|
47
|
+
color: $color,
|
|
48
|
+
secondary: $secondary,
|
|
49
|
+
disabled: $disabled,
|
|
50
|
+
background: $background-color,
|
|
51
|
+
hover-bg: $hover-bg-color,
|
|
52
|
+
selected-bg: $selected-color,
|
|
53
|
+
border-color: $border-color,
|
|
54
|
+
success: $success,
|
|
55
|
+
error: $error,
|
|
56
|
+
warning: $warning,
|
|
57
|
+
app-bar: $app-bar,
|
|
58
|
+
icon: $icon,
|
|
59
|
+
icon-hover: $icon-hover,
|
|
60
|
+
hover-color: $hover-color,
|
|
61
|
+
card-bg: $card-bg
|
|
62
|
+
);
|
|
63
|
+
}
|
package/style/theme/_theme.scss
CHANGED
|
@@ -1,16 +1,22 @@
|
|
|
1
|
-
@use '@angular/material' as mat;
|
|
2
|
-
@use 'sass:map' as map;
|
|
3
|
-
@import
|
|
4
|
-
@import
|
|
5
|
-
|
|
6
|
-
// Create the theme object (a Sass map containing all of the palettes).
|
|
7
|
-
$sto-theme: mat.define-light-theme(
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
@use '@angular/material' as mat;
|
|
2
|
+
@use 'sass:map' as map;
|
|
3
|
+
@import './theme-variables';
|
|
4
|
+
@import 'colors';
|
|
5
|
+
|
|
6
|
+
// Create the theme object (a Sass map containing all of the palettes).
|
|
7
|
+
$sto-theme: mat.define-light-theme(
|
|
8
|
+
(
|
|
9
|
+
color: (
|
|
10
|
+
primary: $primary,
|
|
11
|
+
accent: $accent,
|
|
12
|
+
warn: $sto-warn,
|
|
13
|
+
),
|
|
14
|
+
)
|
|
15
|
+
);
|
|
16
|
+
$sto-theme: map_merge($sto-theme, $sto-indicators);
|
|
17
|
+
$variables: theme_variables($sto-theme);
|
|
18
|
+
|
|
19
|
+
// @deprecated only here for backwards compability
|
|
20
|
+
$sto-dark-theme: $sto-theme;
|
|
21
|
+
|
|
22
|
+
$dark-variables: theme_variables($sto-theme);
|
|
@@ -1,41 +1,44 @@
|
|
|
1
|
-
@use '@angular/material' as mat;
|
|
2
|
-
|
|
3
|
-
$base-font-size: 13px;
|
|
4
|
-
$sm-font-size: 10px;
|
|
5
|
-
$l-font-size: 16px;
|
|
6
|
-
|
|
7
|
-
$sto-typography: mat.define-
|
|
8
|
-
$font-family: 'Equinor, Roboto',
|
|
9
|
-
$body-1: mat.define-typography-level(13px, 20px, 400, 'Equinor, Roboto'),
|
|
10
|
-
$body-2: mat.define-typography-level(13px, 20px, 400, 'Equinor, Roboto'),
|
|
11
|
-
$button: mat.define-typography-level(14px, 24px, 500, 'Equinor, Roboto'),
|
|
12
|
-
$headline: mat.define-typography-level(28px, 44px, 400, 'Equinor, Roboto'),
|
|
13
|
-
$
|
|
14
|
-
$
|
|
15
|
-
$
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
$
|
|
22
|
-
$body-
|
|
23
|
-
$
|
|
24
|
-
$
|
|
25
|
-
$
|
|
26
|
-
$
|
|
27
|
-
$
|
|
28
|
-
$
|
|
29
|
-
);
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
$
|
|
35
|
-
$
|
|
36
|
-
$
|
|
37
|
-
$
|
|
38
|
-
$
|
|
39
|
-
$
|
|
40
|
-
$
|
|
41
|
-
)
|
|
1
|
+
@use '@angular/material' as mat;
|
|
2
|
+
|
|
3
|
+
$base-font-size: 13px;
|
|
4
|
+
$sm-font-size: 10px;
|
|
5
|
+
$l-font-size: 16px;
|
|
6
|
+
|
|
7
|
+
$sto-typography: mat.define-typography-config(
|
|
8
|
+
$font-family: 'Equinor, Roboto',
|
|
9
|
+
$body-1: mat.define-typography-level(13px, 20px, 400, 'Equinor, Roboto'),
|
|
10
|
+
$body-2: mat.define-typography-level(13px, 20px, 400, 'Equinor, Roboto'),
|
|
11
|
+
$button: mat.define-typography-level(14px, 24px, 500, 'Equinor, Roboto'),
|
|
12
|
+
$headline-1: mat.define-typography-level(28px, 44px, 400, 'Equinor, Roboto'),
|
|
13
|
+
$headline-2: mat.define-typography-level(24px, 32px, 400, 'Equinor, Roboto'),
|
|
14
|
+
$subtitle-2: mat.define-typography-level(20px, 28px, 400, 'Equinor, Roboto'),
|
|
15
|
+
$subtitle-1: mat.define-typography-level(16px, 24px, 400, 'Equinor, Roboto'),
|
|
16
|
+
);
|
|
17
|
+
// $input:
|
|
18
|
+
// mat.define-typography-level(13px, 1.333, 400, 0.025em, 'Equinor, Roboto'),
|
|
19
|
+
|
|
20
|
+
$sto-sm-typography: mat.define-typography-config(
|
|
21
|
+
$font-family: 'Equinor, Roboto',
|
|
22
|
+
$body-1: mat.define-typography-level(10px, 16px, 400, 'Equinor, Roboto'),
|
|
23
|
+
$body-2: mat.define-typography-level(10px, 16px, 400, 'Equinor, Roboto'),
|
|
24
|
+
$button: mat.define-typography-level(10px, 16px, 500, 'Equinor, Roboto'),
|
|
25
|
+
$headline-1: mat.define-typography-level(24px, 40px, 400, 'Equinor, Roboto'),
|
|
26
|
+
$headline-2: mat.define-typography-level(20px, 28px, 400, 'Equinor, Roboto'),
|
|
27
|
+
$subtitle-2: mat.define-typography-level(16px, 24px, 400, 'Equinor, Roboto'),
|
|
28
|
+
$subtitle-1: mat.define-typography-level(12px, 20px, 400, 'Equinor, Roboto'),
|
|
29
|
+
);
|
|
30
|
+
// $input:
|
|
31
|
+
// mat.define-typography-level(10px, 1.333, 400, 0.025em, 'Equinor, Roboto'),
|
|
32
|
+
|
|
33
|
+
$sto-l-typography: mat.define-typography-config(
|
|
34
|
+
$font-family: 'Equinor, Roboto',
|
|
35
|
+
$body-1: mat.define-typography-level(16px, 24px, 400, 'Equinor, Roboto'),
|
|
36
|
+
$body-2: mat.define-typography-level(18px, 24px, 400, 'Equinor, Roboto'),
|
|
37
|
+
$button: mat.define-typography-level(14px, 24px, 500, 'Equinor, Roboto'),
|
|
38
|
+
$headline-1: mat.define-typography-level(32px, 48px, 400, 'Equinor, Roboto'),
|
|
39
|
+
$headline-2: mat.define-typography-level(28px, 40px, 400, 'Equinor, Roboto'),
|
|
40
|
+
$subtitle-2: mat.define-typography-level(24px, 40px, 400, 'Equinor, Roboto'),
|
|
41
|
+
$subtitle-1: mat.define-typography-level(20px, 32px, 400, 'Equinor, Roboto'),
|
|
42
|
+
);
|
|
43
|
+
// $input:
|
|
44
|
+
// mat.define-typography-level(16px, 1.333, 400, 0.025em, 'Equinor, Roboto'),
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
@import "./theme";
|
|
2
|
-
|
|
3
|
-
$form-field-bg: rgba(#6687B8, 0.1);
|
|
4
|
-
|
|
5
|
-
@mixin wysiwyg-theme($theme, $variables) {
|
|
6
|
-
$primary: map_get($variables, primary);
|
|
7
|
-
$border-color: map_get($variables, border-color);
|
|
8
|
-
|
|
9
|
-
.sto-wysiwyg {
|
|
10
|
-
&__actions {
|
|
11
|
-
border-bottom: 1px solid $border-color;
|
|
12
|
-
|
|
13
|
-
.divider {
|
|
14
|
-
border-left: 1px solid $border-color;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
&__editor {
|
|
19
|
-
&:focus {
|
|
20
|
-
border-bottom: 2px solid $primary;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
border-bottom: 2px solid $border-color;
|
|
24
|
-
background: $form-field-bg;
|
|
25
|
-
|
|
26
|
-
&--readonly {
|
|
27
|
-
background: transparent;
|
|
28
|
-
border: none;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
body {
|
|
35
|
-
@include wysiwyg-theme($sto-theme, $variables);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
|
|
1
|
+
@import "./theme";
|
|
2
|
+
|
|
3
|
+
$form-field-bg: rgba(#6687B8, 0.1);
|
|
4
|
+
|
|
5
|
+
@mixin wysiwyg-theme($theme, $variables) {
|
|
6
|
+
$primary: map_get($variables, primary);
|
|
7
|
+
$border-color: map_get($variables, border-color);
|
|
8
|
+
|
|
9
|
+
.sto-wysiwyg {
|
|
10
|
+
&__actions {
|
|
11
|
+
border-bottom: 1px solid $border-color;
|
|
12
|
+
|
|
13
|
+
.divider {
|
|
14
|
+
border-left: 1px solid $border-color;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&__editor {
|
|
19
|
+
&:focus {
|
|
20
|
+
border-bottom: 2px solid $primary;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
border-bottom: 2px solid $border-color;
|
|
24
|
+
background: $form-field-bg;
|
|
25
|
+
|
|
26
|
+
&--readonly {
|
|
27
|
+
background: transparent;
|
|
28
|
+
border: none;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
body {
|
|
35
|
+
@include wysiwyg-theme($sto-theme, $variables);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
@import "./action-footer";
|
|
2
|
-
@import "./appheader";
|
|
3
|
-
@import "./card";
|
|
4
|
-
@import "./datatable";
|
|
5
|
-
@import "./daterange";
|
|
6
|
-
@import "./drawer";
|
|
7
|
-
@import "./filterpanel";
|
|
8
|
-
@import "./number-input";
|
|
9
|
-
@import "./number-unit-input";
|
|
10
|
-
@import "./input-overrides";
|
|
11
|
-
@import "./message-panel";
|
|
12
|
-
@import "./preference-manager";
|
|
13
|
-
@import "./select-filter";
|
|
14
|
-
@import "./sto-indicators";
|
|
15
|
-
@import "./wysiwyg";
|
|
16
|
-
@import "./dialog";
|
|
1
|
+
@import "./action-footer";
|
|
2
|
+
@import "./appheader";
|
|
3
|
+
@import "./card";
|
|
4
|
+
@import "./datatable";
|
|
5
|
+
@import "./daterange";
|
|
6
|
+
@import "./drawer";
|
|
7
|
+
@import "./filterpanel";
|
|
8
|
+
@import "./number-input";
|
|
9
|
+
@import "./number-unit-input";
|
|
10
|
+
@import "./input-overrides";
|
|
11
|
+
@import "./message-panel";
|
|
12
|
+
@import "./preference-manager";
|
|
13
|
+
@import "./select-filter";
|
|
14
|
+
@import "./sto-indicators";
|
|
15
|
+
@import "./wysiwyg";
|
|
16
|
+
@import "./dialog";
|