@enigmatry/entry-components 16.0.0 → 16.0.1-preview.4
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/package.json +1 -1
- package/styles/_generator.scss +2 -0
- package/styles/modules/_default-theme.scss +12 -1
- package/styles/modules/components/buttons/_generator.scss +3 -0
- package/styles/modules/components/buttons/_radio.scss +16 -0
- package/styles/modules/components/checkboxes/_generator.scss +29 -0
- package/styles/modules/components/tables/_header.scss +9 -0
- package/styles/modules/components/tables/_rows.scss +6 -1
- package/styles/modules/components/tables/_table-body.scss +2 -0
- package/styles/partials/generator-test.scss +4 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@enigmatry/entry-components",
|
|
3
|
-
"version": "16.0.
|
|
3
|
+
"version": "16.0.1-preview.4",
|
|
4
4
|
"author": "Enigmatry",
|
|
5
5
|
"description": "Enigmatry entry angular material components",
|
|
6
6
|
"homepage": "https://github.com/enigmatry/entry-angular-building-blocks/tree/master/libs/entry-components#readme",
|
package/styles/_generator.scss
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
@use 'modules/components/tables/generator' as tables;
|
|
5
5
|
@use 'modules/components/inputs/generator' as inputs;
|
|
6
6
|
@use 'modules/components/buttons/generator' as buttons;
|
|
7
|
+
@use 'modules/components/checkboxes/generator' as checkboxes;
|
|
7
8
|
@use 'modules/default-theme' as default;
|
|
8
9
|
@use 'modules/vendors/angular-material/generator' as material-theme;
|
|
9
10
|
@use 'sass:map';
|
|
@@ -19,4 +20,5 @@
|
|
|
19
20
|
@include forms.generate-from($merged-theme);
|
|
20
21
|
@include search-filters.generate-from($merged-theme);
|
|
21
22
|
@include dialogs.generate-from($merged-theme);
|
|
23
|
+
@include checkboxes.generate-from($merged-theme);
|
|
22
24
|
}
|
|
@@ -46,16 +46,27 @@ $theme: (
|
|
|
46
46
|
background: null
|
|
47
47
|
),
|
|
48
48
|
buttons: (
|
|
49
|
-
icon-size: 48px
|
|
49
|
+
icon-size: 48px,
|
|
50
|
+
radio: (
|
|
51
|
+
background: null
|
|
52
|
+
)
|
|
53
|
+
),
|
|
54
|
+
checkboxes: (
|
|
55
|
+
background: null,
|
|
56
|
+
border-hover-color: null
|
|
50
57
|
)
|
|
51
58
|
),
|
|
52
59
|
tables: (
|
|
60
|
+
header: (
|
|
61
|
+
font-size: null
|
|
62
|
+
),
|
|
53
63
|
cells: (
|
|
54
64
|
edge-gap: 4px,
|
|
55
65
|
padding: null
|
|
56
66
|
),
|
|
57
67
|
rows: (
|
|
58
68
|
selected-color: #FFF,
|
|
69
|
+
selected-background: null,
|
|
59
70
|
disabled-color: #F5F5F5,
|
|
60
71
|
odd-even-row: odd,
|
|
61
72
|
odd-even-background: #F0F0F0
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
+
@use 'radio';
|
|
2
3
|
|
|
3
4
|
@mixin generate-from($theme) {
|
|
4
5
|
.entry-button.mdc-button:disabled {
|
|
5
6
|
background-color: map.get($theme, 'general', 'colors', 'disabled', 'background');
|
|
6
7
|
color: map.get($theme, 'general', 'colors', 'disabled', 'foreground');
|
|
7
8
|
}
|
|
9
|
+
|
|
10
|
+
@include radio.generate-from($theme);
|
|
8
11
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
|
|
3
|
+
$radio-selector: '.mdc-radio__native-control:enabled:checked + .mdc-radio__background';
|
|
4
|
+
$radio-circles-selector: '.mdc-radio__outer-circle, .mdc-radio__inner-circle';
|
|
5
|
+
|
|
6
|
+
@mixin generate-from($theme) {
|
|
7
|
+
.mat-mdc-radio-group .mat-mdc-radio-button {
|
|
8
|
+
&.mat-mdc-radio-checked .mdc-radio {
|
|
9
|
+
&:not(:disabled):active #{$radio-selector}, #{$radio-selector} {
|
|
10
|
+
#{$radio-circles-selector} {
|
|
11
|
+
border-color: map.get($theme, 'general', 'buttons', 'radio', 'background');
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
|
|
3
|
+
/* stylelint-disable-next-line max-line-length */
|
|
4
|
+
$checkbox-selector: '.mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate = "true"]) ~ .mdc-checkbox__background';
|
|
5
|
+
|
|
6
|
+
@mixin generate-from($theme) {
|
|
7
|
+
$background: map.get($theme, 'general', 'checkboxes', 'background');
|
|
8
|
+
$border-hover-color: map.get($theme, 'general', 'checkboxes', 'border-hover-color');
|
|
9
|
+
|
|
10
|
+
.mat-mdc-checkbox {
|
|
11
|
+
.mdc-form-field {
|
|
12
|
+
.mdc-checkbox {
|
|
13
|
+
#{$checkbox-selector} {
|
|
14
|
+
background-color: $background;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&:hover {
|
|
20
|
+
/* stylelint-disable-next-line selector-max-pseudo-class */
|
|
21
|
+
.mdc-checkbox:hover {
|
|
22
|
+
#{$checkbox-selector} {
|
|
23
|
+
border-color: $border-hover-color;
|
|
24
|
+
background-color: $background;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -9,7 +9,12 @@
|
|
|
9
9
|
|
|
10
10
|
&.selected {
|
|
11
11
|
background-color: map.get($theme, 'general', 'colors', 'primary');
|
|
12
|
-
|
|
12
|
+
$selected-row-background: map.get($theme, 'tables', 'rows', 'selected-background');
|
|
13
|
+
|
|
14
|
+
@if $selected-row-background and $selected-row-background != transparent {
|
|
15
|
+
background-color: $selected-row-background;
|
|
16
|
+
}
|
|
17
|
+
|
|
13
18
|
.mat-mdc-cell {
|
|
14
19
|
color: map.get($theme, 'tables', 'rows', 'selected-color');
|
|
15
20
|
}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
@use 'rows';
|
|
2
2
|
@use 'sorting';
|
|
3
3
|
@use 'cells';
|
|
4
|
+
@use 'header';
|
|
4
5
|
|
|
5
6
|
@mixin generate-from($theme) {
|
|
6
7
|
.entry-table {
|
|
7
8
|
@include rows.generate-from($theme);
|
|
8
9
|
@include sorting.generate-from($theme);
|
|
9
10
|
@include cells.generate-from($theme);
|
|
11
|
+
@include header.generate-from($theme);
|
|
10
12
|
}
|
|
11
13
|
}
|