i-tech-shared-components 1.3.0 → 1.3.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/i-tech-shared-components.mjs +15 -6
- package/fesm2022/i-tech-shared-components.mjs.map +1 -1
- package/lib/components/autocomplete-select/autocomplete-select.component.d.ts +3 -1
- package/package.json +1 -1
- package/theme/_ag-grid.scss +10 -10
- package/theme/_buttons.scss +14 -4
- package/theme/_date_picker.scss +9 -9
- package/theme/_date_time_picker.scss +9 -9
- package/theme/_form_fields.scss +23 -23
- package/theme/_icon-button.scss +24 -12
- package/theme/_label.scss +51 -29
- package/theme/_mat-selects.scss +18 -18
- package/theme/_menu.scss +3 -3
- package/theme/_text_input.scss +12 -12
- package/theme.scss +16 -17
package/theme/_mat-selects.scss
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
// Import Material theming
|
|
2
2
|
@use '@angular/material' as mat;
|
|
3
|
-
@
|
|
3
|
+
@use "./color_themes.scss" as color-themes;
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
body {
|
|
7
|
-
--mat-option-hover-state-layer-color: #{mat.get-theme-color(
|
|
8
|
-
--mat-option-selected-state-layer-color: #{mat.get-theme-color(
|
|
9
|
-
--mat-option-focus-state-layer-color: #{mat.get-theme-color(
|
|
7
|
+
--mat-option-hover-state-layer-color: #{mat.get-theme-color(color-themes.$m3-light-theme, primary, 99)} !important;
|
|
8
|
+
--mat-option-selected-state-layer-color: #{mat.get-theme-color(color-themes.$m3-light-theme, primary, 99)} !important;
|
|
9
|
+
--mat-option-focus-state-layer-color: #{mat.get-theme-color(color-themes.$m3-light-theme, primary, 99)} !important;
|
|
10
10
|
--mat-select-trigger-text-line-height: 20px !important;
|
|
11
11
|
--mat-select-trigger-text-size: 13px !important;
|
|
12
12
|
--mat-select-trigger-text-weight: 500 !important;
|
|
13
13
|
--mat-select-trigger-text-tracking: 0.2px !important;
|
|
14
|
-
--mat-select-enabled-trigger-text-color: #{mat.get-theme-color(
|
|
15
|
-
--mat-full-pseudo-checkbox-unselected-icon-color: #{mat.get-theme-color(
|
|
16
|
-
--mat-select-placeholder-text-color: #{mat.get-theme-color(
|
|
17
|
-
--mat-option-selected-state-label-text-color: #{mat.get-theme-color(
|
|
18
|
-
--mat-option-label-text-color: #{mat.get-theme-color(
|
|
14
|
+
--mat-select-enabled-trigger-text-color: #{mat.get-theme-color(color-themes.$m3-light-theme, tertiary, 50)} !important;
|
|
15
|
+
--mat-full-pseudo-checkbox-unselected-icon-color: #{mat.get-theme-color(color-themes.$m3-light-theme, primary, 80)} !important;
|
|
16
|
+
--mat-select-placeholder-text-color: #{mat.get-theme-color(color-themes.$m3-light-theme, tertiary, 50)} !important;
|
|
17
|
+
--mat-option-selected-state-label-text-color: #{mat.get-theme-color(color-themes.$m3-light-theme, tertiary, 30)} !important;
|
|
18
|
+
--mat-option-label-text-color: #{mat.get-theme-color(color-themes.$m3-light-theme, tertiary, 30)} !important;
|
|
19
19
|
|
|
20
20
|
.new-mat-autocomplete {
|
|
21
21
|
.mat-mdc-form-field {
|
|
@@ -46,16 +46,16 @@ body {
|
|
|
46
46
|
width: 100%;
|
|
47
47
|
height: 40px;
|
|
48
48
|
padding: 8px 40px 8px 36px !important;
|
|
49
|
-
border: 1px solid #{mat.get-theme-color(
|
|
49
|
+
border: 1px solid #{mat.get-theme-color(color-themes.$m3-light-theme, tertiary, 90)};
|
|
50
50
|
border-radius: 4px;
|
|
51
51
|
font-size: 13px;
|
|
52
52
|
line-height: 24px;
|
|
53
53
|
letter-spacing: 0.5px;
|
|
54
|
-
color: #{mat.get-theme-color(
|
|
54
|
+
color: #{mat.get-theme-color(color-themes.$m3-light-theme, tertiary, 30)};
|
|
55
55
|
background: white;
|
|
56
56
|
|
|
57
57
|
&:disabled {
|
|
58
|
-
border: 1px solid #{mat.get-theme-color(
|
|
58
|
+
border: 1px solid #{mat.get-theme-color(color-themes.$m3-light-theme, tertiary, 99)};
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
&:focus {
|
|
@@ -65,11 +65,11 @@ body {
|
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
&:hover:not(:focus):not(:disabled) {
|
|
68
|
-
border-color: #{mat.get-theme-color(
|
|
68
|
+
border-color: #{mat.get-theme-color(color-themes.$m3-light-theme, tertiary, 70)};
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
&::placeholder {
|
|
72
|
-
color: #{mat.get-theme-color(
|
|
72
|
+
color: #{mat.get-theme-color(color-themes.$m3-light-theme, tertiary, 50)};
|
|
73
73
|
font-size: 13px;
|
|
74
74
|
font-weight: 500;
|
|
75
75
|
line-height: 20px;
|
|
@@ -83,7 +83,7 @@ body {
|
|
|
83
83
|
left: 50px;
|
|
84
84
|
top: 57%;
|
|
85
85
|
transform: translateY(-50%);
|
|
86
|
-
color: #{mat.get-theme-color(
|
|
86
|
+
color: #{mat.get-theme-color(color-themes.$m3-light-theme, tertiary, 50)};
|
|
87
87
|
|
|
88
88
|
mat-icon {
|
|
89
89
|
font-size: 20px;
|
|
@@ -98,7 +98,7 @@ body {
|
|
|
98
98
|
right: 0;
|
|
99
99
|
top: 50%;
|
|
100
100
|
transform: translateY(-50%);
|
|
101
|
-
color: #{mat.get-theme-color(
|
|
101
|
+
color: #{mat.get-theme-color(color-themes.$m3-light-theme, tertiary, 50)};
|
|
102
102
|
|
|
103
103
|
&.rotated {
|
|
104
104
|
transform: translateY(-50%) rotate(180deg);
|
|
@@ -121,14 +121,14 @@ body {
|
|
|
121
121
|
|
|
122
122
|
&.custom-value {
|
|
123
123
|
font-weight: 500;
|
|
124
|
-
color: #{mat.get-theme-color(
|
|
124
|
+
color: #{mat.get-theme-color(color-themes.$m3-light-theme, tertiary, 30)} !important;
|
|
125
125
|
width: 80%;
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
// Error state
|
|
130
130
|
.mat-mdc-form-field-error {
|
|
131
|
-
//color: #{mat.get-theme-color(
|
|
131
|
+
//color: #{mat.get-theme-color(color-themes.$m3-light-theme, error, 40)};
|
|
132
132
|
animation: mat-form-field-animation 900ms cubic-bezier(0.0, 0.0, 0.2, 1);
|
|
133
133
|
position: absolute;
|
|
134
134
|
left: 16px;
|
package/theme/_menu.scss
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
@use '@angular/material' as mat;
|
|
2
|
-
@
|
|
2
|
+
@use "./color_themes.scss" as color-themes;
|
|
3
3
|
|
|
4
4
|
.mt-4 {
|
|
5
5
|
margin-top: 4px;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
.mat-mdc-menu-panel {
|
|
9
|
-
border: 1px solid mat.get-theme-color(
|
|
9
|
+
border: 1px solid mat.get-theme-color(color-themes.$m3-light-theme, tertiary, 90) !important;
|
|
10
10
|
--mat-app-elevation-shadow-level-2: 0px !important;
|
|
11
|
-
--mat-menu-item-hover-state-layer-color: #{mat.get-theme-color(
|
|
11
|
+
--mat-menu-item-hover-state-layer-color: #{mat.get-theme-color(color-themes.$m3-light-theme, primary, 98)} !important;
|
|
12
12
|
}
|
|
13
13
|
|
package/theme/_text_input.scss
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
@use '@angular/material' as mat;
|
|
2
|
-
@
|
|
2
|
+
@use "./_color_themes.scss" as color-themes;
|
|
3
3
|
|
|
4
4
|
body {
|
|
5
5
|
.readonly-field {
|
|
6
|
-
--mdc-outlined-text-field-hover-outline-color: #{mat.get-theme-color(
|
|
7
|
-
--mdc-outlined-text-field-focus-outline-color: #{mat.get-theme-color(
|
|
6
|
+
--mdc-outlined-text-field-hover-outline-color: #{mat.get-theme-color(color-themes.$m3-light-theme, tertiary, 90)};
|
|
7
|
+
--mdc-outlined-text-field-focus-outline-color: #{mat.get-theme-color(color-themes.$m3-light-theme, tertiary, 90)};
|
|
8
8
|
--mdc-outlined-text-field-focus-outline-width: 1px;
|
|
9
|
-
--mdc-outlined-text-field-error-focus-outline-color: #{mat.get-theme-color(
|
|
10
|
-
--mdc-outlined-text-field-error-outline-color: #{mat.get-theme-color(
|
|
11
|
-
--mdc-outlined-text-field-error-hover-outline-color: #{mat.get-theme-color(
|
|
12
|
-
--mat-select-disabled-trigger-text-color: #{mat.get-theme-color(
|
|
13
|
-
--mat-select-placeholder-text-color: #{mat.get-theme-color(
|
|
14
|
-
--mdc-outlined-text-field-disabled-input-text-color: #{mat.get-theme-color(
|
|
9
|
+
--mdc-outlined-text-field-error-focus-outline-color: #{mat.get-theme-color(color-themes.$m3-light-theme, tertiary, 90)};
|
|
10
|
+
--mdc-outlined-text-field-error-outline-color: #{mat.get-theme-color(color-themes.$m3-light-theme, tertiary, 90)};
|
|
11
|
+
--mdc-outlined-text-field-error-hover-outline-color: #{mat.get-theme-color(color-themes.$m3-light-theme, tertiary, 90)};
|
|
12
|
+
--mat-select-disabled-trigger-text-color: #{mat.get-theme-color(color-themes.$m3-light-theme, tertiary, 90)};
|
|
13
|
+
--mat-select-placeholder-text-color: #{mat.get-theme-color(color-themes.$m3-light-theme, tertiary, 90)};
|
|
14
|
+
--mdc-outlined-text-field-disabled-input-text-color: #{mat.get-theme-color(color-themes.$m3-light-theme, tertiary, 90)};
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
.readonly-color {
|
|
18
|
-
color: #{mat.get-theme-color(
|
|
18
|
+
color: #{mat.get-theme-color(color-themes.$m3-light-theme, tertiary, 90)} !important;
|
|
19
19
|
.mat-mdc-icon-button.tonal mat-icon {
|
|
20
|
-
color: #{mat.get-theme-color(
|
|
20
|
+
color: #{mat.get-theme-color(color-themes.$m3-light-theme, tertiary, 90)} !important;
|
|
21
21
|
}
|
|
22
|
-
--mdc-outlined-text-field-input-text-placeholder-color: #{mat.get-theme-color(
|
|
22
|
+
--mdc-outlined-text-field-input-text-placeholder-color: #{mat.get-theme-color(color-themes.$m3-light-theme, tertiary, 90)} !important;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
.mat-mdc-form-field-icon-prefix {
|
package/theme.scss
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
@use '@angular/material' as mat;
|
|
2
|
-
@
|
|
2
|
+
@use "./theme/buttons.scss";
|
|
3
|
+
@use "./theme/variables/colors.scss";
|
|
4
|
+
@use "./theme/label.scss";
|
|
5
|
+
@use "./theme/icon-button.scss";
|
|
6
|
+
@use "./theme/_color_themes.scss" as color-themes;
|
|
7
|
+
@use "./theme/date_picker.scss";
|
|
8
|
+
@use "./theme/text_input.scss";
|
|
9
|
+
@use "./theme/form_fields.scss";
|
|
10
|
+
@use "./theme/mat-selects.scss";
|
|
11
|
+
@use "./theme/menu.scss";
|
|
12
|
+
@use "./theme/ag-grid.scss";
|
|
13
|
+
@use "./theme/date_time_picker.scss";
|
|
3
14
|
|
|
4
|
-
@import "
|
|
5
|
-
@import "./theme/variables/colors.scss";
|
|
6
|
-
@import "./theme/label.scss";
|
|
7
|
-
@import "./theme/icon-button.scss";
|
|
8
|
-
@import "./theme/color_themes.scss";
|
|
9
|
-
@import "./theme/date_picker.scss";
|
|
10
|
-
@import "./theme/text_input.scss";
|
|
11
|
-
@import "./theme/form_fields.scss";
|
|
12
|
-
@import "./theme/mat-selects.scss";
|
|
13
|
-
@import "./theme/menu.scss";
|
|
14
|
-
@import "./theme/ag-grid.scss";
|
|
15
|
-
@import "./theme/date_time_picker.scss";
|
|
15
|
+
@import url("https://fonts.googleapis.com/icon?family=Material+Icons");
|
|
16
16
|
|
|
17
17
|
@include mat.core();
|
|
18
18
|
|
|
@@ -23,10 +23,9 @@ body {
|
|
|
23
23
|
font-style: normal;
|
|
24
24
|
font-size: 12px;
|
|
25
25
|
|
|
26
|
-
@include mat.core-theme(
|
|
27
|
-
@include mat.all-component-themes(
|
|
28
|
-
@include mat.color-variants-backwards-compatibility(
|
|
29
|
-
@include mat.form-field-theme($m3-light-theme, $color-variant: secondary);
|
|
26
|
+
@include mat.core-theme(color-themes.$m3-light-theme);
|
|
27
|
+
@include mat.all-component-themes(color-themes.$m3-light-theme);
|
|
28
|
+
@include mat.color-variants-backwards-compatibility(color-themes.$m3-light-theme);
|
|
30
29
|
.new-mat-autocomplete {
|
|
31
30
|
@include mat.button-density(-3);
|
|
32
31
|
};
|