ecabs-components 1.1.75 → 1.1.77
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/README.md +146 -143
- package/esm2022/lib/base/models/phone.models.mjs +1 -1
- package/esm2022/lib/base/models/waypoint.models.mjs +1 -4
- package/esm2022/lib/base/utils/phone-number.utils.mjs +32 -2
- package/esm2022/lib/ecabs-button-toggle/ecabs-button-toggle.component.mjs +12 -7
- package/esm2022/lib/ecabs-buttons-v2/ecabs-buttons-v2.component.mjs +2 -2
- package/esm2022/lib/ecabs-checkbox-toggle/ecabs-checkbox-toggle.component.mjs +2 -2
- package/esm2022/lib/ecabs-checkbox-v2/ecabs-checkbox-v2.component.mjs +2 -2
- package/esm2022/lib/ecabs-chip-autocomplete/ecabs-chip-autocomplete.component.mjs +2 -4
- package/esm2022/lib/ecabs-date-range-picker/ecabs-date-range-picker.component.mjs +2 -2
- package/esm2022/lib/ecabs-dialog-message/ecabs-dialog-message.component.mjs +2 -2
- package/esm2022/lib/ecabs-increment/ecabs-increment.component.mjs +2 -2
- package/esm2022/lib/ecabs-input/ecabs-input.component.mjs +3 -3
- package/esm2022/lib/ecabs-language-selector/ecabs-language-selector.component.mjs +2 -2
- package/esm2022/lib/ecabs-multiple-dates-picker/ecabs-multiple-dates-picker.component.mjs +2 -2
- package/esm2022/lib/ecabs-note/ecabs-note.component.mjs +2 -2
- package/esm2022/lib/ecabs-picker-header/ecabs-picker-header.component.mjs +2 -2
- package/esm2022/lib/ecabs-place-autocomplete-v2/ecabs-place-autocomplete-v2.component.mjs +89 -59
- package/esm2022/lib/ecabs-table/ecabs-table-filter-wrapper/ecabs-table-filter-wrapper.component.mjs +2 -2
- package/fesm2022/ecabs-components.mjs +156 -97
- package/fesm2022/ecabs-components.mjs.map +1 -1
- package/lib/base/models/phone.models.d.ts +7 -1
- package/lib/base/models/waypoint.models.d.ts +1 -2
- package/lib/base/utils/phone-number.utils.d.ts +4 -1
- package/lib/ecabs-button-toggle/ecabs-button-toggle.component.d.ts +1 -1
- package/lib/ecabs-place-autocomplete-v2/ecabs-place-autocomplete-v2.component.d.ts +21 -13
- package/package.json +1 -1
- package/src/assets/styles/material/overrides/_menu.scss +4 -0
- package/src/assets/styles/scss/modules/_chip.scss +64 -64
- package/src/assets/styles/scss/modules/_form.scss +312 -312
- package/src/assets/styles/scss/modules/_statuses.scss +36 -36
- package/src/assets/styles/scss/utilities/_colors.scss +56 -58
- package/src/assets/styles/tailwind/index.scss +1 -1
|
@@ -1,312 +1,312 @@
|
|
|
1
|
-
$form-input-icon-size: 18px;
|
|
2
|
-
|
|
3
|
-
.form,
|
|
4
|
-
form {
|
|
5
|
-
&-field {
|
|
6
|
-
margin-bottom: 1rem;
|
|
7
|
-
position: relative;
|
|
8
|
-
// #Label
|
|
9
|
-
@include e(label) {
|
|
10
|
-
@include fontSize($font-size-xs);
|
|
11
|
-
|
|
12
|
-
display: inline-block;
|
|
13
|
-
margin-bottom: 0.25rem;
|
|
14
|
-
color: var(--color-gray-500);
|
|
15
|
-
cursor: pointer;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
.icon {
|
|
19
|
-
@include fontSize($font-size-base);
|
|
20
|
-
|
|
21
|
-
display: inline;
|
|
22
|
-
vertical-align: middle;
|
|
23
|
-
margin-left: calc-rem(6px);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
// #Label Note
|
|
28
|
-
@include e(label-note) {
|
|
29
|
-
@include fontSize($font-size-md);
|
|
30
|
-
|
|
31
|
-
display: inline-block;
|
|
32
|
-
margin-bottom: 0.25rem;
|
|
33
|
-
color: var(--color-gray-400);
|
|
34
|
-
cursor: pointer;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
// #Input
|
|
38
|
-
@include e(input) {
|
|
39
|
-
@include fontSize($font-size-base);
|
|
40
|
-
display: block;
|
|
41
|
-
width: 100%;
|
|
42
|
-
padding: calc-rem(8px 16px);
|
|
43
|
-
border-radius: $border-radius-medium;
|
|
44
|
-
border: 1px solid var(--color-gray-300);
|
|
45
|
-
color: var(--color-black);
|
|
46
|
-
line-height: $base-line-height;
|
|
47
|
-
|
|
48
|
-
&:focus {
|
|
49
|
-
border-color: var(--color-brand-dark);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
&:focus-visible {
|
|
53
|
-
outline: none;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
@include m(wrapper) {
|
|
57
|
-
// wrapper
|
|
58
|
-
display: flex;
|
|
59
|
-
position: relative;
|
|
60
|
-
line-height: 1;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
@include m(suffix) {
|
|
64
|
-
// suffix
|
|
65
|
-
position: absolute !important;
|
|
66
|
-
top: 50%;
|
|
67
|
-
right: calc-rem(16px);
|
|
68
|
-
color: var(--color-gray-300);
|
|
69
|
-
transform: translateY(-50%);
|
|
70
|
-
|
|
71
|
-
&,
|
|
72
|
-
i,
|
|
73
|
-
.mat-icon {
|
|
74
|
-
@include fontSize($form-input-icon-size);
|
|
75
|
-
width: calc-rem($form-input-icon-size);
|
|
76
|
-
height: calc-rem($form-input-icon-size);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
@include m(prefix) {
|
|
81
|
-
// prefix
|
|
82
|
-
@extend .form-field__input--suffix;
|
|
83
|
-
|
|
84
|
-
right: unset;
|
|
85
|
-
left: calc-rem(16px);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
@include m(disabled) {
|
|
89
|
-
// disabled
|
|
90
|
-
background-color: var(--color-gray-100);
|
|
91
|
-
opacity: .5;
|
|
92
|
-
pointer-events: none;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
@include m(invalid) {
|
|
96
|
-
// invalid
|
|
97
|
-
border-color: var(--color-error);
|
|
98
|
-
color: var(--color-error);
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
// #Textarea
|
|
103
|
-
@include e(textarea) {
|
|
104
|
-
@include fontSize($font-size-base);
|
|
105
|
-
display: block;
|
|
106
|
-
width: 100%;
|
|
107
|
-
padding: calc-rem(16px);
|
|
108
|
-
border-radius: $border-radius-medium;
|
|
109
|
-
border: 1px solid var(--color-gray-300);
|
|
110
|
-
color: var(--color-black);
|
|
111
|
-
line-height: $base-line-height;
|
|
112
|
-
|
|
113
|
-
&:focus {
|
|
114
|
-
border-color: var(--color-brand-dark);
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
@include m(wrapper) {
|
|
118
|
-
// wrapper
|
|
119
|
-
display: flex;
|
|
120
|
-
position: relative;
|
|
121
|
-
line-height: 1;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
@include m(suffix) {
|
|
125
|
-
// suffix
|
|
126
|
-
position: absolute !important;
|
|
127
|
-
top: 50%;
|
|
128
|
-
right: calc-rem(16px);
|
|
129
|
-
color: var(--color-gray-100);
|
|
130
|
-
transform: translateY(-50%);
|
|
131
|
-
|
|
132
|
-
&,
|
|
133
|
-
i,
|
|
134
|
-
.mat-icon {
|
|
135
|
-
@include fontSize($form-input-icon-size);
|
|
136
|
-
width: calc-rem($form-input-icon-size);
|
|
137
|
-
height: calc-rem($form-input-icon-size);
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
@include m(prefix) {
|
|
142
|
-
// prefix
|
|
143
|
-
@extend .form-field__input--suffix;
|
|
144
|
-
|
|
145
|
-
right: unset;
|
|
146
|
-
left: calc-rem(16px);
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
@include m(disabled) {
|
|
150
|
-
// disabled
|
|
151
|
-
background-color: var(--color-gray-100);
|
|
152
|
-
opacity: .5;
|
|
153
|
-
pointer-events: none;
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
// #Range
|
|
158
|
-
@include e(range) {
|
|
159
|
-
@include fontSize($font-size-base);
|
|
160
|
-
display: block;
|
|
161
|
-
width: 100%;
|
|
162
|
-
padding: calc-rem(8px 16px);
|
|
163
|
-
color: var(--color-black);
|
|
164
|
-
line-height: $base-line-height;
|
|
165
|
-
border: none;
|
|
166
|
-
|
|
167
|
-
&:focus-visible {
|
|
168
|
-
outline: none;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
@include m(wrapper) {
|
|
172
|
-
// wrapper
|
|
173
|
-
display: grid;
|
|
174
|
-
grid-template-columns: 1fr auto 1fr;
|
|
175
|
-
border-radius: calc-rem($border-radius-large);
|
|
176
|
-
border: 1px solid var(--color-gray-300);
|
|
177
|
-
align-items: center;
|
|
178
|
-
line-height: 1;
|
|
179
|
-
background-color: var(--color-white);
|
|
180
|
-
|
|
181
|
-
&:focus-within {
|
|
182
|
-
border-color: var(--color-brand-dark);
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
@include m(suffix) {
|
|
187
|
-
// suffix
|
|
188
|
-
position: absolute !important;
|
|
189
|
-
top: 50%;
|
|
190
|
-
right: calc-rem(16px);
|
|
191
|
-
color: var(--color-gray-100);
|
|
192
|
-
transform: translateY(-50%);
|
|
193
|
-
|
|
194
|
-
&,
|
|
195
|
-
i,
|
|
196
|
-
.mat-icon {
|
|
197
|
-
@include fontSize($form-input-icon-size);
|
|
198
|
-
width: calc-rem($form-input-icon-size);
|
|
199
|
-
height: calc-rem($form-input-icon-size);
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
@include m(prefix) {
|
|
204
|
-
// prefix
|
|
205
|
-
@extend .form-field__range--suffix;
|
|
206
|
-
|
|
207
|
-
right: unset;
|
|
208
|
-
left: calc-rem(16px);
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
@include m(disabled) {
|
|
212
|
-
// disabled
|
|
213
|
-
background-color: var(--color-gray-100);
|
|
214
|
-
opacity: .5;
|
|
215
|
-
pointer-events: none;
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
@include m(invalid) {
|
|
219
|
-
// invalid
|
|
220
|
-
border-color: var(--color-error) !important;
|
|
221
|
-
color: var(--color-error) !important;
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
// #Invalid
|
|
226
|
-
@include m(invalid) {
|
|
227
|
-
&,
|
|
228
|
-
.form-field__input,
|
|
229
|
-
.form-field__textarea,
|
|
230
|
-
.form-field__range {
|
|
231
|
-
color: var(--color-error);
|
|
232
|
-
border-color: var(--color-error);
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
&,
|
|
236
|
-
.form-field__range--wrapper {
|
|
237
|
-
border-color: var(--color-error);
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
// #Required
|
|
242
|
-
@include m(required) {
|
|
243
|
-
.form-field__label {
|
|
244
|
-
&:after {
|
|
245
|
-
@extend %required;
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
// #Validation
|
|
251
|
-
@include e(validation) {
|
|
252
|
-
@include fontSize($font-size-xs);
|
|
253
|
-
|
|
254
|
-
padding-top: 0.5rem;
|
|
255
|
-
color: var(--color-error);
|
|
256
|
-
|
|
257
|
-
@include m(item) {
|
|
258
|
-
padding-bottom: 0.6rem;
|
|
259
|
-
|
|
260
|
-
&:last-of-type {
|
|
261
|
-
padding-bottom: 0;
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
// #Subscript
|
|
267
|
-
@include e(subscript) {
|
|
268
|
-
@include m(wrapper) {
|
|
269
|
-
@extend %pseudos;
|
|
270
|
-
|
|
271
|
-
margin-top: 1.2rem;
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
.spinner {
|
|
276
|
-
position: absolute;
|
|
277
|
-
right: 0.25rem;
|
|
278
|
-
top: 1.85rem;
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
.hint {
|
|
282
|
-
font-size: 10px;
|
|
283
|
-
text-align: right;
|
|
284
|
-
margin-right: calc-rem(17px);
|
|
285
|
-
transform: translateY(-1rem);
|
|
286
|
-
margin-bottom: -1rem;
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
// ==========================================================================
|
|
291
|
-
// #OVERRIDES
|
|
292
|
-
// ==========================================================================
|
|
293
|
-
.mat-mdc-form-field-appearance-standard .mat-mdc-form-field-flex {
|
|
294
|
-
padding-top: 0;
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
.mat-mdc-form-field-infix {
|
|
298
|
-
border-top: 0;
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
.mat-mdc-form-field .mat-mdc-form-field-flex {
|
|
302
|
-
padding-top: 0;
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
.mat-mdc-form-field-type-mat-date-range-input .mat-mdc-form-field-infix {
|
|
307
|
-
width: auto;
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
.mat-mdc-text-field-wrapper {
|
|
311
|
-
padding-bottom: 0;
|
|
312
|
-
}
|
|
1
|
+
$form-input-icon-size: 18px;
|
|
2
|
+
|
|
3
|
+
.form,
|
|
4
|
+
form {
|
|
5
|
+
&-field {
|
|
6
|
+
margin-bottom: 1rem;
|
|
7
|
+
position: relative;
|
|
8
|
+
// #Label
|
|
9
|
+
@include e(label) {
|
|
10
|
+
@include fontSize($font-size-xs);
|
|
11
|
+
|
|
12
|
+
display: inline-block;
|
|
13
|
+
margin-bottom: 0.25rem;
|
|
14
|
+
color: var(--color-gray-500);
|
|
15
|
+
cursor: pointer;
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
.icon {
|
|
19
|
+
@include fontSize($font-size-base);
|
|
20
|
+
|
|
21
|
+
display: inline;
|
|
22
|
+
vertical-align: middle;
|
|
23
|
+
margin-left: calc-rem(6px);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// #Label Note
|
|
28
|
+
@include e(label-note) {
|
|
29
|
+
@include fontSize($font-size-md);
|
|
30
|
+
|
|
31
|
+
display: inline-block;
|
|
32
|
+
margin-bottom: 0.25rem;
|
|
33
|
+
color: var(--color-gray-400);
|
|
34
|
+
cursor: pointer;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// #Input
|
|
38
|
+
@include e(input) {
|
|
39
|
+
@include fontSize($font-size-base);
|
|
40
|
+
display: block;
|
|
41
|
+
width: 100%;
|
|
42
|
+
padding: calc-rem(8px 16px);
|
|
43
|
+
border-radius: $border-radius-medium;
|
|
44
|
+
border: 1px solid var(--color-gray-300);
|
|
45
|
+
color: var(--color-black);
|
|
46
|
+
line-height: $base-line-height;
|
|
47
|
+
|
|
48
|
+
&:focus {
|
|
49
|
+
border-color: var(--color-brand-dark);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&:focus-visible {
|
|
53
|
+
outline: none;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
@include m(wrapper) {
|
|
57
|
+
// wrapper
|
|
58
|
+
display: flex;
|
|
59
|
+
position: relative;
|
|
60
|
+
line-height: 1;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
@include m(suffix) {
|
|
64
|
+
// suffix
|
|
65
|
+
position: absolute !important;
|
|
66
|
+
top: 50%;
|
|
67
|
+
right: calc-rem(16px);
|
|
68
|
+
color: var(--color-gray-300);
|
|
69
|
+
transform: translateY(-50%);
|
|
70
|
+
|
|
71
|
+
&,
|
|
72
|
+
i,
|
|
73
|
+
.mat-icon {
|
|
74
|
+
@include fontSize($form-input-icon-size);
|
|
75
|
+
width: calc-rem($form-input-icon-size);
|
|
76
|
+
height: calc-rem($form-input-icon-size);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
@include m(prefix) {
|
|
81
|
+
// prefix
|
|
82
|
+
@extend .form-field__input--suffix;
|
|
83
|
+
|
|
84
|
+
right: unset;
|
|
85
|
+
left: calc-rem(16px);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
@include m(disabled) {
|
|
89
|
+
// disabled
|
|
90
|
+
background-color: var(--color-gray-100);
|
|
91
|
+
opacity: .5;
|
|
92
|
+
pointer-events: none;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
@include m(invalid) {
|
|
96
|
+
// invalid
|
|
97
|
+
border-color: var(--color-error);
|
|
98
|
+
color: var(--color-error);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
// #Textarea
|
|
103
|
+
@include e(textarea) {
|
|
104
|
+
@include fontSize($font-size-base);
|
|
105
|
+
display: block;
|
|
106
|
+
width: 100%;
|
|
107
|
+
padding: calc-rem(16px);
|
|
108
|
+
border-radius: $border-radius-medium;
|
|
109
|
+
border: 1px solid var(--color-gray-300);
|
|
110
|
+
color: var(--color-black);
|
|
111
|
+
line-height: $base-line-height;
|
|
112
|
+
|
|
113
|
+
&:focus {
|
|
114
|
+
border-color: var(--color-brand-dark);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
@include m(wrapper) {
|
|
118
|
+
// wrapper
|
|
119
|
+
display: flex;
|
|
120
|
+
position: relative;
|
|
121
|
+
line-height: 1;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
@include m(suffix) {
|
|
125
|
+
// suffix
|
|
126
|
+
position: absolute !important;
|
|
127
|
+
top: 50%;
|
|
128
|
+
right: calc-rem(16px);
|
|
129
|
+
color: var(--color-gray-100);
|
|
130
|
+
transform: translateY(-50%);
|
|
131
|
+
|
|
132
|
+
&,
|
|
133
|
+
i,
|
|
134
|
+
.mat-icon {
|
|
135
|
+
@include fontSize($form-input-icon-size);
|
|
136
|
+
width: calc-rem($form-input-icon-size);
|
|
137
|
+
height: calc-rem($form-input-icon-size);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
@include m(prefix) {
|
|
142
|
+
// prefix
|
|
143
|
+
@extend .form-field__input--suffix;
|
|
144
|
+
|
|
145
|
+
right: unset;
|
|
146
|
+
left: calc-rem(16px);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
@include m(disabled) {
|
|
150
|
+
// disabled
|
|
151
|
+
background-color: var(--color-gray-100);
|
|
152
|
+
opacity: .5;
|
|
153
|
+
pointer-events: none;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
// #Range
|
|
158
|
+
@include e(range) {
|
|
159
|
+
@include fontSize($font-size-base);
|
|
160
|
+
display: block;
|
|
161
|
+
width: 100%;
|
|
162
|
+
padding: calc-rem(8px 16px);
|
|
163
|
+
color: var(--color-black);
|
|
164
|
+
line-height: $base-line-height;
|
|
165
|
+
border: none;
|
|
166
|
+
|
|
167
|
+
&:focus-visible {
|
|
168
|
+
outline: none;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
@include m(wrapper) {
|
|
172
|
+
// wrapper
|
|
173
|
+
display: grid;
|
|
174
|
+
grid-template-columns: 1fr auto 1fr;
|
|
175
|
+
border-radius: calc-rem($border-radius-large);
|
|
176
|
+
border: 1px solid var(--color-gray-300);
|
|
177
|
+
align-items: center;
|
|
178
|
+
line-height: 1;
|
|
179
|
+
background-color: var(--color-white);
|
|
180
|
+
|
|
181
|
+
&:focus-within {
|
|
182
|
+
border-color: var(--color-brand-dark);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
@include m(suffix) {
|
|
187
|
+
// suffix
|
|
188
|
+
position: absolute !important;
|
|
189
|
+
top: 50%;
|
|
190
|
+
right: calc-rem(16px);
|
|
191
|
+
color: var(--color-gray-100);
|
|
192
|
+
transform: translateY(-50%);
|
|
193
|
+
|
|
194
|
+
&,
|
|
195
|
+
i,
|
|
196
|
+
.mat-icon {
|
|
197
|
+
@include fontSize($form-input-icon-size);
|
|
198
|
+
width: calc-rem($form-input-icon-size);
|
|
199
|
+
height: calc-rem($form-input-icon-size);
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
@include m(prefix) {
|
|
204
|
+
// prefix
|
|
205
|
+
@extend .form-field__range--suffix;
|
|
206
|
+
|
|
207
|
+
right: unset;
|
|
208
|
+
left: calc-rem(16px);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
@include m(disabled) {
|
|
212
|
+
// disabled
|
|
213
|
+
background-color: var(--color-gray-100);
|
|
214
|
+
opacity: .5;
|
|
215
|
+
pointer-events: none;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
@include m(invalid) {
|
|
219
|
+
// invalid
|
|
220
|
+
border-color: var(--color-error) !important;
|
|
221
|
+
color: var(--color-error) !important;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
// #Invalid
|
|
226
|
+
@include m(invalid) {
|
|
227
|
+
&,
|
|
228
|
+
.form-field__input,
|
|
229
|
+
.form-field__textarea,
|
|
230
|
+
.form-field__range {
|
|
231
|
+
color: var(--color-error);
|
|
232
|
+
border-color: var(--color-error);
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
&,
|
|
236
|
+
.form-field__range--wrapper {
|
|
237
|
+
border-color: var(--color-error);
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
// #Required
|
|
242
|
+
@include m(required) {
|
|
243
|
+
.form-field__label {
|
|
244
|
+
&:after {
|
|
245
|
+
@extend %required;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
// #Validation
|
|
251
|
+
@include e(validation) {
|
|
252
|
+
@include fontSize($font-size-xs);
|
|
253
|
+
|
|
254
|
+
padding-top: 0.5rem;
|
|
255
|
+
color: var(--color-error);
|
|
256
|
+
|
|
257
|
+
@include m(item) {
|
|
258
|
+
padding-bottom: 0.6rem;
|
|
259
|
+
|
|
260
|
+
&:last-of-type {
|
|
261
|
+
padding-bottom: 0;
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
// #Subscript
|
|
267
|
+
@include e(subscript) {
|
|
268
|
+
@include m(wrapper) {
|
|
269
|
+
@extend %pseudos;
|
|
270
|
+
|
|
271
|
+
margin-top: 1.2rem;
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.spinner {
|
|
276
|
+
position: absolute;
|
|
277
|
+
right: 0.25rem;
|
|
278
|
+
top: 1.85rem;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.hint {
|
|
282
|
+
font-size: 10px;
|
|
283
|
+
text-align: right;
|
|
284
|
+
margin-right: calc-rem(17px);
|
|
285
|
+
transform: translateY(-1rem);
|
|
286
|
+
margin-bottom: -1rem;
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
// ==========================================================================
|
|
291
|
+
// #OVERRIDES
|
|
292
|
+
// ==========================================================================
|
|
293
|
+
.mat-mdc-form-field-appearance-standard .mat-mdc-form-field-flex {
|
|
294
|
+
padding-top: 0;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
.mat-mdc-form-field-infix {
|
|
298
|
+
border-top: 0;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
.mat-mdc-form-field .mat-mdc-form-field-flex {
|
|
302
|
+
padding-top: 0;
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
.mat-mdc-form-field-type-mat-date-range-input .mat-mdc-form-field-infix {
|
|
307
|
+
width: auto;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
.mat-mdc-text-field-wrapper {
|
|
311
|
+
padding-bottom: 0;
|
|
312
|
+
}
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
.pending {
|
|
2
|
-
background-color: var(--color-gray-300);
|
|
3
|
-
color: var(--color-gray-400);
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
.reserved {
|
|
7
|
-
background-color:
|
|
8
|
-
color: var(--color-
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.scheduled, .ended {
|
|
12
|
-
background-color: var(--color-gray-50);
|
|
13
|
-
color: var(--color-gray-500);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.dispatched, .cab_arrived_at_pickup, .trip_started, .dropped_off, .started,
|
|
17
|
-
.cab_arrived_at_intermediary_waypoint, .trip_ongoing, .in_progress, .published {
|
|
18
|
-
background-color: rgba(var(--color-info-rgb), .05);
|
|
19
|
-
color: var(--color-info);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.cab_arrived_at_dropoff, .trip_ended, .completed, .accepted, .cashed_in, .done {
|
|
23
|
-
background-color: var(--color-success--opacity);
|
|
24
|
-
color: var(--color-success);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.cancelled, .rejected, .suspended, .sick, .no_show, .unable_to_complete, .unavailable, .failed {
|
|
28
|
-
background-color: var(--color-error-opacity);
|
|
29
|
-
color: var(--color-error);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
.archived {
|
|
34
|
-
background-color: var(--color-gray-100);
|
|
35
|
-
color: var(--color-gray-600);
|
|
36
|
-
}
|
|
1
|
+
.pending {
|
|
2
|
+
background-color: var(--color-gray-300);
|
|
3
|
+
color: var(--color-gray-400);
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.reserved {
|
|
7
|
+
background-color: var(--color-warning-opacity);
|
|
8
|
+
color: var(--color-warning);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.scheduled, .ended {
|
|
12
|
+
background-color: var(--color-gray-50);
|
|
13
|
+
color: var(--color-gray-500);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.dispatched, .cab_arrived_at_pickup, .trip_started, .dropped_off, .started,
|
|
17
|
+
.cab_arrived_at_intermediary_waypoint, .trip_ongoing, .in_progress, .published {
|
|
18
|
+
background-color: rgba(var(--color-info-rgb), .05);
|
|
19
|
+
color: var(--color-info);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.cab_arrived_at_dropoff, .trip_ended, .completed, .accepted, .cashed_in, .done {
|
|
23
|
+
background-color: var(--color-success--opacity);
|
|
24
|
+
color: var(--color-success);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.cancelled, .rejected, .suspended, .sick, .no_show, .unable_to_complete, .unavailable, .failed {
|
|
28
|
+
background-color: var(--color-error-opacity);
|
|
29
|
+
color: var(--color-error);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
.archived {
|
|
34
|
+
background-color: var(--color-gray-100);
|
|
35
|
+
color: var(--color-gray-600);
|
|
36
|
+
}
|