@onemrvapublic/design-system-theme 20.3.0-develop.4 → 20.3.0-develop.6

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.
@@ -19,6 +19,9 @@
19
19
  );
20
20
 
21
21
  mat-form-field {
22
+ padding: var(--spacer);
23
+ //margin-bottom: var(--spacer);
24
+
22
25
  .mat-mdc-text-field-wrapper.mdc-text-field--outlined {
23
26
  .mdc-notched-outline--upgraded {
24
27
  .mdc-floating-label--float-above {
@@ -92,128 +95,69 @@
92
95
  /* BEGINNING - HERE TO FORCE READONLY STATE */
93
96
  // TODO : should use the var as much as possible !!
94
97
 
95
- .onemrva-readonly {
98
+ .onemrva-readonly,
99
+ form.onemrva-readonly {
96
100
  pointer-events: none;
97
- input,
98
- select,
99
- textarea {
100
- &::placeholder {
101
- opacity: 0 !important;
102
- }
101
+ &,
102
+ * {
103
+ cursor: not-allowed !important;
103
104
  }
104
105
 
105
- @include mat.form-field-overrides(
106
- (
107
- outlined-outline-width: 0px,
108
- outlined-focus-outline-width: 0px,
109
- container-text-weight: 700,
110
- outlined-label-text-weight: var(--mat-sys-label-small-weight),
111
- subscript-text-weight: bold,
112
- )
113
- );
106
+ &:not(.mat-form-field-disabled),
107
+ mat-form-field:not(.mat-form-field-disabled) {
108
+ input,
109
+ select,
110
+ textarea {
111
+ &::placeholder {
112
+ opacity: 0 !important;
113
+ }
114
+ }
114
115
 
115
- mat-hint,
116
- .mat-mdc-form-field-icon-suffix,
117
- .mat-mdc-select-arrow-wrapper,
118
- .mat-mdc-select-placeholder,
119
- .mat-mdc-form-field-icon-prefix {
120
- display: none;
121
- }
122
- .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper {
123
- padding-left: max(
124
- 16px,
125
- var(
126
- --mat-form-field-outlined-container-shape,
127
- var(--mat-sys-corner-extra-small)
128
- ) +
129
- 4px
130
- );
131
- }
132
- .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper {
133
- padding-right: max(
134
- 16px,
135
- var(
136
- --mat-form-field-outlined-container-shape,
137
- var(--mat-sys-corner-extra-small)
116
+ mat-label,
117
+ label {
118
+ pointer-events: none !important;
119
+ }
120
+
121
+ .mat-select-counter,
122
+ button[type='submit'] {
123
+ display: none !important;
124
+ }
125
+
126
+ @include mat.form-field-overrides(
127
+ (
128
+ outlined-outline-width: 0px,
129
+ outlined-focus-outline-width: 0px,
130
+ outlined-label-text-weight: var(--mat-sys-label-small-weight),
131
+ subscript-text-weight: bold,
138
132
  )
139
133
  );
134
+
135
+ mat-hint,
136
+ .mat-mdc-form-field-icon-suffix,
137
+ .mat-mdc-select-arrow-wrapper,
138
+ .mat-mdc-select-placeholder,
139
+ .mat-mdc-form-field-icon-prefix {
140
+ display: none;
141
+ }
142
+ .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper {
143
+ padding-left: max(
144
+ 16px,
145
+ var(
146
+ --mat-form-field-outlined-container-shape,
147
+ var(--mat-sys-corner-extra-small)
148
+ ) +
149
+ 4px
150
+ );
151
+ }
152
+ .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper {
153
+ padding-right: max(
154
+ 16px,
155
+ var(
156
+ --mat-form-field-outlined-container-shape,
157
+ var(--mat-sys-corner-extra-small)
158
+ )
159
+ );
160
+ }
140
161
  }
141
162
  }
142
-
143
- //mat-form-field.onemrva-readonly,
144
- //.onemrva-readonly {
145
- // margin: var(--spacer-and-half) 0;
146
- // pointer-events: none;
147
- // input,
148
- // textarea {
149
- // &::placeholder {
150
- // opacity: 0;
151
- // }
152
- // font-weight: 700;
153
- // }
154
- // .mat-mdc-select {
155
- // .mat-mdc-select-arrow {
156
- // display: none; /* hide the dropdown arrow */
157
- // }
158
- // &.mat-mdc-select-disabled .mat-mdc-select-trigger {
159
- // opacity: 1;
160
- // color: inherit;
161
- // }
162
- // .mat-mdc-text-field-wrapper {
163
- // background: transparent;
164
- // }
165
- // }
166
- // .mat-mdc-form-field-icon-suffix,
167
- // .mat-mdc-form-field-icon-prefix {
168
- // display: none;
169
- // }
170
- //
171
- // .mat-mdc-form-field-focus-overlay,
172
- // .mdc-line-ripple {
173
- // display: none !important;
174
- // }
175
- //
176
- //
177
- //
178
- // .mdc-text-field--outlined:not(.mdc-text-field--disabled)
179
- // .mat-mdc-notch-piece {
180
- // border: 0;
181
- // }
182
- //
183
- // .mat-mdc-text-field-wrapper.mdc-text-field mdc-text-field--outlined {
184
- // .mdc-text-field--outlined:not(.mdc-text-field--disabled):not(
185
- // .mdc-text-field--focused
186
- // ):hover
187
- // .mat-mdc-notch-piece {
188
- // border: 0;
189
- // }
190
- // }
191
- //
192
- // .mdc-text-field--outlined:not(
193
- // .mdc-text-field--disabled
194
- // ).mdc-text-field--focused
195
- // .mdc-notched-outline
196
- // .mat-mdc-notch-piece {
197
- // border-width: 0;
198
- // }
199
- //
200
- // .mdc-text-field--outlined:not(.mdc-text-field--disabled):not(
201
- // .mdc-text-field--focused
202
- // ):hover
203
- // .mat-mdc-notch-piece {
204
- // border-color: var(--mat-form-field-outlined-outline-color);
205
- // }
206
- //
207
- // .onemrva-input-phone-number .onemrva-text-number {
208
- // padding-left: 0 !important;
209
- // }
210
- //
211
- // .mat-mdc-form-field-subscript-wrapper.mat-mdc-form-field-bottom-align,
212
- // mat-timepicker-toggle,
213
- // mat-datepicker-toggle,
214
- // .mat-mdc-form-field-text-prefix {
215
- // display: none;
216
- // }
217
- //}
218
- /* END - HERE TO FORCE READONLY STATE */
219
163
  }
@@ -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.4",
3
+ "version": "v20.3.0-develop.6",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },