@enigmatry/entry-components 1.15.1-preview.20 → 1.15.1-preview.21

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enigmatry/entry-components",
3
- "version": "1.15.1-preview.20",
3
+ "version": "1.15.1-preview.21",
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",
@@ -5,8 +5,7 @@ $theme: (
5
5
  accent-theme: null,
6
6
  primary: #2581C4,
7
7
  accent: #EA518D,
8
- dark: #323232,
9
- disabled-light: #F5F5F5
8
+ font: #323232
10
9
  ),
11
10
  typography: null,
12
11
  fonts: (
@@ -34,19 +33,14 @@ $theme: (
34
33
  ),
35
34
  rows: (
36
35
  selected-color: #FFF,
36
+ disabled-color: #F5F5F5,
37
37
  odd-even-row: odd,
38
38
  odd-even-background: #F0F0F0
39
39
  ),
40
- columns: (
41
- sorted: (
42
- font-weight: 700
43
- )
44
- ),
45
40
  contents: (
46
41
  no-result: (
47
42
  font-size: 13px,
48
- font-weight: 500,
49
- text-transform: none
43
+ font-weight: 500
50
44
  )
51
45
  )
52
46
  ),
@@ -3,7 +3,7 @@
3
3
  @mixin generate-from($theme) {
4
4
  .entry-dialog {
5
5
  .title {
6
- color: map.get($theme, 'general', 'colors', 'dark');
6
+ color: map.get($theme, 'general', 'colors', 'font');
7
7
  font-size: map.get($theme, 'dialogs', 'title', 'size');
8
8
  }
9
9
  font-size: map.get($theme, 'general', 'font', 'size');
@@ -5,7 +5,7 @@
5
5
  background-color: map.get($theme, 'general', 'colors', 'primary');
6
6
 
7
7
  .title {
8
- color: map.get($theme, 'general', 'colors', 'dark');
8
+ color: map.get($theme, 'general', 'colors', 'font');
9
9
  font-size: map.get($theme, 'headers', 'title', 'size');
10
10
  }
11
11
  }
@@ -2,11 +2,7 @@
2
2
 
3
3
  @mixin generate-from($theme) {
4
4
  .mat-mdc-cell {
5
- color: map.get($theme, 'general', 'colors', 'dark');
6
- }
7
-
8
- .mat-mdc-cell, .mat-mdc-header-cell {
9
- font-size: map.get($theme, 'general', 'font', 'size');
5
+ color: map.get($theme, 'general', 'colors', 'font');
10
6
  }
11
7
 
12
8
  .mat-mdc-header-cell:first-of-type, .mat-mdc-cell:first-of-type, .mat-mdc-footer-cell:first-of-type {
@@ -1,9 +1,7 @@
1
1
  @use 'sass:map';
2
2
 
3
3
  @mixin generate-from($theme) {
4
- .entry-table-no-result {
5
- text-transform: map.get($theme, 'tables', 'contents', 'no-result', 'text-transform');
6
-
4
+ .entry-table .no-results {
7
5
  font: {
8
6
  size: map.get($theme, 'tables', 'contents', 'no-result', 'font-size');
9
7
  weight: map.get($theme, 'tables', 'contents', 'no-result', 'font-weight');
@@ -14,10 +14,10 @@
14
14
  color: map.get($theme, 'tables', 'rows', 'selected-color');
15
15
  }
16
16
  }
17
- }
18
- }
19
17
 
20
- .mat-row-disabled {
21
- background-color: map.get($theme, 'general', 'colors', 'disabled-light');
18
+ &.mat-row-disabled {
19
+ background-color: map.get($theme, 'tables', 'rows', 'disabled-color');
20
+ }
21
+ }
22
22
  }
23
23
  }
@@ -2,13 +2,10 @@
2
2
 
3
3
  @mixin generate-from($theme) {
4
4
  .mat-sort-header-sorted {
5
- font: {
6
- size: map.get($theme, 'general', 'font', 'size');
7
- weight: map.get($theme, 'tables', 'columns', 'sorted', 'font-weight');
8
- }
5
+ font-weight: 700;
9
6
  }
10
7
 
11
8
  .mat-sort-header-sorted, .mat-sort-header-arrow {
12
- color: map.get($theme, 'general', 'colors', 'dark');
9
+ color: map.get($theme, 'general', 'colors', 'font');
13
10
  }
14
11
  }
@@ -48,11 +48,11 @@ $font-sources: (
48
48
  font: {
49
49
  style: '#{$style}';
50
50
 
51
+ /* stylelint-disable property-no-unknown, max-nesting-depth */
51
52
  @if $weight {
52
53
  family: '#{$name}';
53
54
  weight: $weight;
54
55
  }
55
-
56
56
  @else {
57
57
  family: '#{$name}-#{$style}';
58
58
  }
@@ -1,4 +1,4 @@
1
1
  @use 'dialogs/general' as dialogs;
2
2
  @use 'headers/general' as headers;
3
- @use 'tables';
3
+ @use 'tables/general' as tables;
4
4
  @use 'forms/general' as forms;
@@ -0,0 +1,21 @@
1
+ @use '@enigmatry/scss-foundation/src/modules/display/items';
2
+
3
+ .entry-table {
4
+ display: flex;
5
+ flex-direction: column;
6
+ overflow: auto;
7
+
8
+ .selection-cell, .action-cell {
9
+ width: 48px;
10
+ }
11
+
12
+ .pagination {
13
+ margin-bottom: 10px;
14
+ }
15
+
16
+ .no-results {
17
+ @include items.align-absolute-center();
18
+ flex: 1;
19
+ min-height: 50px;
20
+ }
21
+ }
@@ -1,3 +0,0 @@
1
- .entry-table-checkbox-cell, .entry-table-context-menu-cell {
2
- width: 48px;
3
- }
@@ -1,2 +0,0 @@
1
- @use 'action-cells';
2
- @use 'layout';
@@ -1,30 +0,0 @@
1
- @use '@enigmatry/scss-foundation/src/modules/display/items';
2
-
3
- .entry-table {
4
- .mat-table-container {
5
- &.mat-table-with-data {
6
- flex: 1;
7
- }
8
- }
9
- }
10
-
11
- .entry-table-layout {
12
- display: flex;
13
- flex: 1 1 auto;
14
- overflow: auto;
15
- }
16
-
17
- .entry-table-content {
18
- flex-direction: column;
19
- }
20
-
21
- .entry-table-footer {
22
- position: relative;
23
- z-index: 1;
24
- }
25
-
26
- .entry-table-no-result {
27
- @include items.align-absolute-center();
28
- flex: 1;
29
- min-height: 50px;
30
- }