@enigmatry/entry-components 1.15.1-preview.32 → 1.15.1-preview.33

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.32",
3
+ "version": "1.15.1-preview.33",
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",
@@ -1,7 +1,8 @@
1
- @use 'modules/components/dialogs/generator' as dialog;
1
+ @use 'modules/components/dialogs/generator' as dialogs;
2
2
  @use 'modules/components/forms/generator' as forms;
3
- @use 'modules/components/search-filter/generator' as search-filter;
4
- @use 'modules/components/tables/generator' as table;
3
+ @use 'modules/components/search-filter/generator' as search-filters;
4
+ @use 'modules/components/tables/generator' as tables;
5
+ @use 'modules/components/inputs/generator' as inputs;
5
6
  @use 'modules/components/buttons/generator' as buttons;
6
7
  @use 'modules/default-theme' as default;
7
8
  @use 'modules/vendors/angular-material/generator' as material-theme;
@@ -12,9 +13,10 @@
12
13
  $merged-theme: map.deep-merge(default.$theme, $custom-theme);
13
14
 
14
15
  @include material-theme.generate-from($merged-theme);
16
+ @include inputs.generate-from($merged-theme);
15
17
  @include buttons.generate-from($merged-theme);
16
- @include table.generate-from($merged-theme);
18
+ @include tables.generate-from($merged-theme);
17
19
  @include forms.generate-from($merged-theme);
18
- @include search-filter.generate-from($merged-theme);
19
- @include dialog.generate-from($merged-theme);
20
+ @include search-filters.generate-from($merged-theme);
21
+ @include dialogs.generate-from($merged-theme);
20
22
  }
@@ -34,13 +34,17 @@ $theme: (
34
34
  spacing: (
35
35
  default: 15px
36
36
  ),
37
+ inputs: (
38
+ background: null
39
+ ),
37
40
  buttons: (
38
41
  icon-size: 48px
39
42
  )
40
43
  ),
41
44
  tables: (
42
45
  cells: (
43
- edge-gap: 4px
46
+ edge-gap: 4px,
47
+ padding: null
44
48
  ),
45
49
  rows: (
46
50
  selected-color: #FFF,
@@ -2,12 +2,12 @@
2
2
 
3
3
  @mixin generate-from($theme) {
4
4
  .entry-dialog {
5
- .title {
5
+ .dialog-header .title {
6
6
  $close-icon-width: map.get($theme, 'general', 'buttons', 'icon-size');
7
7
  width: calc(100% - $close-icon-width);
8
8
  color: map.get($theme, 'general', 'colors', 'font');
9
9
  font-size: map.get($theme, 'dialogs', 'title', 'size');
10
-
10
+
11
11
  &.without-close-icon {
12
12
  width: 100%;
13
13
  }
@@ -0,0 +1,15 @@
1
+ @use 'sass:map';
2
+
3
+ @mixin generate-from($theme) {
4
+ $input-background: map.get($theme, 'general', 'inputs', 'background');
5
+
6
+ @if $input-background {
7
+ .mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field {
8
+ background-color: $input-background;
9
+
10
+ &.mdc-text-field--outlined {
11
+ border-radius: 4px;
12
+ }
13
+ }
14
+ }
15
+ }
@@ -1,16 +1,23 @@
1
1
  @use 'sass:map';
2
2
 
3
3
  @mixin generate-from($theme) {
4
+ $row-edge-gap: map.get($theme, 'tables', 'cells', 'edge-gap');
5
+ $cell-padding: map.get($theme, 'tables', 'cells', 'padding');
6
+
4
7
  .mat-mdc-cell {
5
8
  color: map.get($theme, 'general', 'colors', 'font');
9
+
10
+ @if $cell-padding {
11
+ padding: $cell-padding;
12
+ }
6
13
  }
7
14
 
8
15
  .mat-mdc-header-cell:first-of-type, .mat-mdc-cell:first-of-type, .mat-mdc-footer-cell:first-of-type {
9
- padding-left: map.get($theme, 'tables', 'cells', 'edge-gap');
16
+ padding-left: $row-edge-gap;
10
17
  }
11
18
 
12
19
  .mat-mdc-header-cell:last-of-type, .mat-mdc-cell:last-of-type, .mat-mdc-footer-cell:last-of-type {
13
- padding-right: map.get($theme, 'tables', 'cells', 'edge-gap');
20
+ padding-right: $row-edge-gap;
14
21
  }
15
22
 
16
23
  .selection-cell, .action-cell {
@@ -17,11 +17,20 @@ $custom-theme: (
17
17
  buttons: (
18
18
  size: 26px
19
19
  )
20
+ ),
21
+ inputs: (
22
+ background: yellow
20
23
  )
21
24
  ),
22
25
  tables: (
23
26
  cells: (
24
- first-cell-padding-left: 11px
27
+ edge-gap: 11px,
28
+ padding: 202px
29
+ )
30
+ ),
31
+ dialogs: (
32
+ title: (
33
+ size: 42px
25
34
  )
26
35
  )
27
36
  );