@onemrvapublic/design-system 22.7.0-develop.6 → 22.7.0-develop.7

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.
@@ -1,5 +1,5 @@
1
1
  // Auto-generated — do not edit
2
- const VERSION = '22.7.0-develop.6';
2
+ const VERSION = '22.7.0-develop.7';
3
3
 
4
4
  const ɵɵtsModuleIndicatorApiExtractorWorkaround = true;
5
5
 
@@ -1 +1 @@
1
- {"version":3,"file":"onemrvapublic-design-system.mjs","sources":["../../../../projects/onemrva/design-system/version.ts","../../../../projects/onemrva/design-system/index.ts","../../../../projects/onemrva/design-system/onemrvapublic-design-system.ts"],"sourcesContent":["// Auto-generated — do not edit\nexport const VERSION = '22.7.0-develop.6';\n","export { VERSION } from './version';\n\nexport const ɵɵtsModuleIndicatorApiExtractorWorkaround = true;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAA;AACO,MAAM,OAAO,GAAG;;ACChB,MAAM,yCAAyC,GAAG;;ACFzD;;AAEG;;;;"}
1
+ {"version":3,"file":"onemrvapublic-design-system.mjs","sources":["../../../../projects/onemrva/design-system/version.ts","../../../../projects/onemrva/design-system/index.ts","../../../../projects/onemrva/design-system/onemrvapublic-design-system.ts"],"sourcesContent":["// Auto-generated — do not edit\nexport const VERSION = '22.7.0-develop.7';\n","export { VERSION } from './version';\n\nexport const ɵɵtsModuleIndicatorApiExtractorWorkaround = true;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAA;AACO,MAAM,OAAO,GAAG;;ACChB,MAAM,yCAAyC,GAAG;;ACFzD;;AAEG;;;;"}
@@ -1,8 +1,5 @@
1
1
  @use '@angular/material' as mat;
2
2
 
3
- // Sized and spaced like mat-chip (see theme/overrides/_chips.scss): same
4
- // container height, 12px horizontal padding, and an 18px leading checkmark
5
- // with an 8px gap when selected, like a selected mat-chip-option.
6
3
  .onemrva-theme onemrva-mat-choice-chip {
7
4
  @include mat.checkbox-overrides(
8
5
  (
@@ -17,7 +14,7 @@
17
14
  position: relative;
18
15
  display: inline-flex;
19
16
  box-sizing: border-box;
20
- height: var(--mat-chip-container-height, 38px);
17
+ height: var(--mat-chip-container-height, 42px);
21
18
  user-select: none;
22
19
  border: 1px solid var(--mat-sys-primary);
23
20
  border-radius: var(--chip-border-radius);
@@ -54,10 +51,10 @@
54
51
  > label {
55
52
  padding: 0 12px;
56
53
  color: var(--mat-sys-primary);
57
- font-family: var(--mat-sys-label-large-font);
58
- font-size: var(--mat-sys-label-large-size);
59
- font-weight: var(--mat-sys-label-large-weight);
60
- line-height: var(--mat-sys-label-large-line-height);
54
+ font-family: var(--mat-sys-body-large-font);
55
+ font-size: var(--mat-sys-body-large-size);
56
+ font-weight: var(--mat-sys-body-large-weight);
57
+ line-height: var(--mat-sys-body-large-line-height);
61
58
  white-space: nowrap;
62
59
  }
63
60
  }
@@ -93,7 +90,7 @@
93
90
  .mdc-form-field {
94
91
  .mdc-checkbox {
95
92
  width: 18px;
96
- margin-left: 8px;
93
+ margin-left: var(--spacer-and-half);
97
94
  visibility: visible;
98
95
  }
99
96
 
@@ -3,14 +3,18 @@
3
3
  :host {
4
4
  .paginator-container {
5
5
  display: flex;
6
- align-items: baseline;
6
+ align-items: center;
7
+ flex-wrap: wrap;
8
+ row-gap: var(--double-spacer);
7
9
  font: var(--mat-sys-label-medium);
8
10
 
9
11
  .paginator-size-selector-container {
10
- flex: 1 0 200px;
12
+ flex: 1 1 auto;
13
+ min-width: 0;
11
14
  display: flex;
12
- align-items: baseline;
15
+ align-items: center;
13
16
  justify-content: flex-start;
17
+ flex-wrap: wrap;
14
18
  gap: var(--spacer);
15
19
 
16
20
  mat-divider {
@@ -20,21 +24,20 @@
20
24
  height: 1.5rem;
21
25
  }
22
26
  .paginator-size-selector {
23
- max-width: 80px;
24
27
  padding: 0;
25
28
 
26
29
  @include mat.select-overrides(
27
30
  (
28
31
  trigger-text-font: var(--mat-sys-label-medium-font),
29
32
  trigger-text-size: var(--mat-sys-label-medium-size),
30
- trigger-text-line-height: var(--mat-sys-label-medium-height),
33
+ trigger-text-line-height: var(--mat-sys-label-medium-line-height),
31
34
  )
32
35
  );
33
36
  @include mat.form-field-overrides(
34
37
  (
35
38
  container-height: var(--paginator-height),
36
39
  outlined-container-shape: calc(var(--paginator-height) / 2),
37
- container-vertical-padding: var(--half-spacer),
40
+ container-vertical-padding: var(--spacer),
38
41
  outlined-outline-color: var(--mat-sys-outline-variant),
39
42
  outlined-focus-outline-color: var(--mat-sys-outline-variant),
40
43
  outlined-hover-outline-color: var(--mat-sys-outline-variant),
@@ -42,13 +45,47 @@
42
45
  outlined-focus-outline-width: 2px,
43
46
  )
44
47
  );
48
+
49
+ ::ng-deep {
50
+ .mat-mdc-text-field-wrapper {
51
+ padding-left: var(--double-spacer);
52
+ padding-right: var(--double-spacer);
53
+ }
54
+
55
+ .mat-mdc-form-field-infix {
56
+ width: auto;
57
+ min-width: 0;
58
+ }
59
+
60
+ .mat-mdc-select {
61
+ display: flex;
62
+ }
63
+
64
+ .mat-mdc-select-trigger {
65
+ height: var(--mat-sys-label-medium-line-height);
66
+ }
67
+
68
+ .mat-mdc-select-value {
69
+ width: auto;
70
+ flex: 0 0 auto;
71
+ }
72
+
73
+ .mat-mdc-select-arrow-wrapper {
74
+ height: auto;
75
+ padding-left: var(--spacer);
76
+ }
77
+ }
45
78
  }
46
79
  }
47
80
 
48
81
  .onemrva-mat-paginator {
49
82
  display: flex;
83
+ max-width: 100%;
84
+ overflow-x: auto;
85
+ scrollbar-width: thin;
50
86
 
51
87
  button {
88
+ flex: 0 0 auto;
52
89
  background-color: var(--mat-sys-surface);
53
90
  padding: var(--spacer) var(--double-spacer);
54
91
  text-align: center;
@@ -19,7 +19,7 @@ $_accent: map.get(palette.$palette, primary); // or secondary / info / …
19
19
  opacity: 1;
20
20
  border-radius: var(--half-border-radius);
21
21
  padding: 0 var(--spacer);
22
- font: var(--mat-sys-label-medium);
22
+ font: var(--mat-sys-body-small);
23
23
  border: 1px solid var(--mat-sys-primary);
24
24
  color: var(--mat-sys-primary);
25
25
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onemrvapublic/design-system",
3
- "version": "22.7.0-develop.6",
3
+ "version": "22.7.0-develop.7",
4
4
  "description": "Design System Onem/Rva without theme included",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -5,11 +5,11 @@
5
5
  @include mat.card-overrides(
6
6
  (
7
7
  title-text-font: var(--mat-sys-title-large-font),
8
- title-text-line-height: var(--mat-sys-title-large-height),
8
+ title-text-line-height: var(--mat-sys-title-large-line-height),
9
9
  title-text-size: var(--mat-sys-title-large-size),
10
10
  title-text-weight: var(--mat-sys-title-large-weight),
11
11
  subtitle-text-font: var(--mat-sys-label-small-font),
12
- subtitle-text-line-height: var(--mat-sys-label-small-height),
12
+ subtitle-text-line-height: var(--mat-sys-label-small-line-height),
13
13
  subtitle-text-size: var(--mat-sys-label-small-size),
14
14
  subtitle-text-weight: var(--mat-sys-label-small-weight),
15
15
  elevated-container-shape: var(--border-radius),
@@ -10,9 +10,9 @@
10
10
  selected-focus-state-layer-color: var(--mat-sys-primary),
11
11
  selected-hover-state-layer-color: var(--mat-sys-primary),
12
12
  selected-pressed-state-layer-color: var(--mat-sys-primary),
13
- label-text-size: var(--mat-sys-label-large-size),
14
- label-text-weight: var(--mat-sys-label-large-weight),
15
- label-text-line-height: var(--mat-sys-label-large-height),
13
+ label-text-size: var(--mat-sys-body-medium-size),
14
+ label-text-weight: var(--mat-sys-body-medium-weight),
15
+ label-text-line-height: var(--mat-sys-body-medium-line-height),
16
16
  )
17
17
  );
18
18
 
@@ -21,6 +21,12 @@
21
21
  padding-left: 0;
22
22
  }
23
23
 
24
+ &:not(.onemrva-choice-chip) .mat-internal-form-field > label {
25
+ margin-left: calc(
26
+ var(--spacer) - (var(--mat-checkbox-state-layer-size, 40px) - 18px) / 2
27
+ );
28
+ }
29
+
24
30
  .mdc-checkbox__native-control:enabled:checked,
25
31
  .mdc-checkbox__native-control:enabled:indeterminate {
26
32
  ~ .mdc-checkbox__background {
@@ -7,17 +7,23 @@
7
7
  container-shape-radius: var(--chip-border-radius),
8
8
  outline-color: var(--mat-sys-primary),
9
9
  elevated-container-color: var(--mat-sys-primary-container),
10
- container-height: 38px,
10
+ container-height: 42px,
11
11
  label-text-color: var(--mat-sys-primary),
12
- label-text-font: var(--mat-sys-label-large-font),
13
- label-text-size: var(--mat-sys-label-large-size),
14
- label-text-line-height: var(--mat-sys-label-large-height),
12
+ label-text-font: var(--mat-sys-body-large-font),
13
+ label-text-size: var(--mat-sys-body-large-size),
14
+ label-text-weight: var(--mat-sys-body-large-weight),
15
+ label-text-line-height: var(--mat-sys-body-large-line-height),
15
16
  with-trailing-icon-trailing-icon-color: var(--mat-sys-primary),
16
17
  )
17
18
  );
18
19
  mat-chip-option,
19
20
  mat-chip-row,
20
21
  mat-chip {
22
+ .mat-mdc-chip-remove.mdc-evolution-chip__action--trailing {
23
+ padding-left: var(--spacer);
24
+ padding-right: var(--spacer-and-half);
25
+ }
26
+
21
27
  &.mat-accent:not(.mat-mdc-chip-disabled) {
22
28
  background: var(--background-gradient);
23
29
  @include mat.chips-overrides(
@@ -7,6 +7,10 @@
7
7
  small-container-shape: var(--button-border-radius),
8
8
  extended-container-shape: var(--mat-sys-corner-full),
9
9
  extended-container-height: 2.5rem,
10
+ extended-label-text-font: var(--mat-sys-body-medium-font),
11
+ extended-label-text-size: var(--mat-sys-body-medium-size),
12
+ extended-label-text-weight: var(--mat-sys-body-medium-weight),
13
+ extended-label-text-tracking: normal,
10
14
  )
11
15
  );
12
16
 
@@ -7,10 +7,10 @@
7
7
  active-focus-indicator-color: var(--mat-sys-tertiary),
8
8
  active-hover-indicator-color: var(--mat-sys-tertiary),
9
9
  active-indicator-height: 3px,
10
- label-text-font: var(--mat-sys-title-medium-font),
11
- label-text-size: var(--mat-sys-title-medium-size),
10
+ label-text-font: var(--mat-sys-body-large-font),
11
+ label-text-size: var(--mat-sys-body-large-size),
12
12
  //label-text-weight: var(--mat-sys-title-medium-weight),
13
- label-text-line-height: var(--mat-sys-title-medium-height),
13
+ label-text-line-height: var(--mat-sys-body-large-line-height),
14
14
  )
15
15
  );
16
16
 
@@ -100,9 +100,9 @@
100
100
  title-medium-line-height: 1.75rem,
101
101
  title-medium-weight: 600,
102
102
 
103
- title-small: 600 0.938rem/1.3125rem Poppins,
103
+ title-small: 600 0.9375rem/1.3125rem Poppins,
104
104
  title-small-font: Poppins,
105
- title-small-size: 0.938rem,
105
+ title-small-size: 0.9375rem,
106
106
  title-small-line-height: 1.3125rem,
107
107
  title-small-weight: 600,
108
108
 
@@ -126,22 +126,22 @@
126
126
  body-small-weight: 400,
127
127
 
128
128
  // LABEL
129
- label-large: 500 1rem/1.3125rem Source Sans Pro,
130
- label-large-font: Source Sans Pro,
129
+ label-large: 500 1rem/1.3125rem Poppins,
130
+ label-large-font: Poppins,
131
131
  label-large-size: 1rem,
132
132
  label-large-line-height: 1.3125rem,
133
133
  label-large-weight: 500,
134
134
 
135
- label-medium: 400 0.875rem/1.3125rem Source Sans Pro,
136
- label-medium-font: Source Sans Pro,
135
+ label-medium: 400 0.875rem/1.3125rem Poppins,
136
+ label-medium-font: Poppins,
137
137
  label-medium-size: 0.875rem,
138
138
  label-medium-line-height: 1.3125rem,
139
139
  label-medium-weight: 400,
140
140
 
141
- label-small: 400 0.75rem/1.3125rem Source Sans Pro,
141
+ label-small: 400 0.75rem/1.125rem Source Sans Pro,
142
142
  label-small-font: Source Sans Pro,
143
143
  label-small-size: 0.75rem,
144
- label-small-line-height: 1.3125rem,
144
+ label-small-line-height: 1.125rem,
145
145
  label-small-weight: 400,
146
146
 
147
147
  level1: 0px 3px 3px 0px rgba(49, 47, 59, 0.32),
@@ -1,4 +1,4 @@
1
- declare const VERSION = "22.7.0-develop.6";
1
+ declare const VERSION = "22.7.0-develop.7";
2
2
 
3
3
  declare const ɵɵtsModuleIndicatorApiExtractorWorkaround = true;
4
4