@onemrvapublic/design-system-theme 20.3.0-develop.3 → 20.3.0-develop.5

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.
@@ -14,7 +14,7 @@
14
14
  outlined-hover-outline-color: var(--mat-sys-on-surface),
15
15
  outlined-outline-width: 1px,
16
16
  outlined-focus-outline-width: 2px,
17
- outlined-label-text-weight: var(--mat-sys-label-small),
17
+ outlined-label-text-weight: var(--mat-sys-label-small-weight),
18
18
  )
19
19
  );
20
20
 
@@ -90,51 +90,71 @@
90
90
  }
91
91
 
92
92
  /* BEGINNING - HERE TO FORCE READONLY STATE */
93
- mat-form-field.onemrva-readonly,
94
- .onemrva-readonly {
95
- input,
96
- textarea {
97
- font-weight: 700;
98
- }
93
+ // TODO : should use the var as much as possible !!
99
94
 
100
- .mdc-text-field--outlined:not(.mdc-text-field--disabled)
101
- .mat-mdc-notch-piece {
102
- border: 0;
95
+ .onemrva-readonly,
96
+ form.onemrva-readonly {
97
+ pointer-events: none;
98
+ &,
99
+ * {
100
+ cursor: not-allowed !important;
103
101
  }
104
102
 
105
- .mat-mdc-text-field-wrapper.mdc-text-field mdc-text-field--outlined {
106
- .mdc-text-field--outlined:not(.mdc-text-field--disabled):not(
107
- .mdc-text-field--focused
108
- ):hover
109
- .mat-mdc-notch-piece {
110
- border: 0;
103
+ &:not(.mat-form-field-disabled),
104
+ mat-form-field:not(.mat-form-field-disabled) {
105
+ input,
106
+ select,
107
+ textarea {
108
+ &::placeholder {
109
+ opacity: 0 !important;
110
+ }
111
111
  }
112
- }
113
112
 
114
- .mdc-text-field--outlined:not(
115
- .mdc-text-field--disabled
116
- ).mdc-text-field--focused
117
- .mdc-notched-outline
118
- .mat-mdc-notch-piece {
119
- border-width: 0;
120
- }
113
+ mat-label,
114
+ label {
115
+ pointer-events: none !important;
116
+ }
121
117
 
122
- .mdc-text-field--outlined:not(.mdc-text-field--disabled):not(
123
- .mdc-text-field--focused
124
- ):hover
125
- .mat-mdc-notch-piece {
126
- border-color: var(--mat-form-field-outlined-outline-color);
127
- }
118
+ .mat-select-counter,
119
+ button[type='submit'] {
120
+ display: none !important;
121
+ }
128
122
 
129
- .onemrva-input-phone-number .onemrva-text-number {
130
- padding-left: 0 !important;
131
- }
123
+ @include mat.form-field-overrides(
124
+ (
125
+ outlined-outline-width: 0px,
126
+ outlined-focus-outline-width: 0px,
127
+ outlined-label-text-weight: var(--mat-sys-label-small-weight),
128
+ subscript-text-weight: bold,
129
+ )
130
+ );
132
131
 
133
- .mat-mdc-form-field-subscript-wrapper.mat-mdc-form-field-bottom-align,
134
- mat-timepicker-toggle,
135
- .mat-mdc-form-field-text-prefix {
136
- display: none;
132
+ mat-hint,
133
+ .mat-mdc-form-field-icon-suffix,
134
+ .mat-mdc-select-arrow-wrapper,
135
+ .mat-mdc-select-placeholder,
136
+ .mat-mdc-form-field-icon-prefix {
137
+ display: none;
138
+ }
139
+ .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper {
140
+ padding-left: max(
141
+ 16px,
142
+ var(
143
+ --mat-form-field-outlined-container-shape,
144
+ var(--mat-sys-corner-extra-small)
145
+ ) +
146
+ 4px
147
+ );
148
+ }
149
+ .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper {
150
+ padding-right: max(
151
+ 16px,
152
+ var(
153
+ --mat-form-field-outlined-container-shape,
154
+ var(--mat-sys-corner-extra-small)
155
+ )
156
+ );
157
+ }
137
158
  }
138
159
  }
139
- /* END - HERE TO FORCE READONLY STATE */
140
160
  }
@@ -10,6 +10,14 @@
10
10
  }
11
11
  }
12
12
  }
13
+
14
+ .onemrva-readonly {
15
+ .mat-mdc-select-value-text,
16
+ .mat-mdc-select-value {
17
+ white-space: unset;
18
+ }
19
+ }
20
+
13
21
  .cdk-overlay-container {
14
22
  .mat-mdc-select-panel {
15
23
  //overflow: hidden;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onemrvapublic/design-system-theme",
3
- "version": "v20.3.0-develop.3",
3
+ "version": "v20.3.0-develop.5",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },