ecabs-components 2.0.0-alpha.5 → 2.0.0-alpha.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.
- package/README.md +136 -85
- package/fesm2022/ecabs-components.mjs +3074 -1095
- package/fesm2022/ecabs-components.mjs.map +1 -1
- package/lib/base/consts/buttons.consts.d.ts +2 -0
- package/lib/base/consts/input.consts.d.ts +1 -0
- package/lib/base/directives/date-mask.directive.d.ts +6 -7
- package/lib/base/directives/digits-only.directive.d.ts +13 -2
- package/lib/base/directives/time-mask.directive.d.ts +2 -3
- package/lib/base/directives/time-range.directive.d.ts +1 -2
- package/lib/base/models/element.models.d.ts +0 -5
- package/lib/base/models/phone.models.d.ts +8 -1
- package/lib/base/models/select.models.d.ts +6 -2
- package/lib/base/models/sidebar.models.d.ts +10 -5
- package/lib/base/models/waypoint.models.d.ts +30 -0
- package/lib/base/pipes/phone-number-country-code.pipe.d.ts +8 -0
- package/lib/base/pipes/separator-append.pipe.d.ts +7 -0
- package/lib/base/utils/object-utils.d.ts +1 -0
- package/lib/base/utils/phone-number.utils.d.ts +7 -0
- package/lib/base/utils/select.utils.d.ts +2 -0
- package/lib/base/utils/time-mask.util.d.ts +3 -0
- package/lib/ecabs-button-toggle/ecabs-button-toggle.component.d.ts +25 -0
- package/lib/ecabs-button-toggle/ecabs-button-toggle.module.d.ts +9 -0
- package/lib/ecabs-buttons-v2/ecabs-buttons-v2.component.d.ts +23 -0
- package/lib/ecabs-buttons-v2/ecabs-buttons-v2.module.d.ts +11 -0
- package/lib/ecabs-checkbox-v2/ecabs-checkbox-v2.component.d.ts +30 -0
- package/lib/ecabs-checkbox-v2/ecabs-checkbox-v2.module.d.ts +12 -0
- package/lib/ecabs-chip-autocomplete/ecabs-chip-autocomplete.component.d.ts +56 -0
- package/lib/ecabs-chip-group/ecabs-chip-group.component.d.ts +24 -0
- package/lib/ecabs-chip-group/ecabs-chip-group.module.d.ts +12 -0
- package/lib/ecabs-date-range-picker-v2/components/ecabs-date-range-picker-header/ecabs-date-range-picker-header-v2.component.d.ts +9 -0
- package/lib/ecabs-date-range-picker-v2/ecabs-date-range-picker-v2.component.d.ts +69 -0
- package/lib/ecabs-date-range-picker-v2/ecabs-date-range-picker-v2.module.d.ts +21 -0
- package/lib/ecabs-date-time-picker/ecabs-date-time-picker.component.d.ts +4 -2
- package/lib/ecabs-dialog-confirm/ecabs-dialog-confirm.component.d.ts +1 -0
- package/lib/ecabs-empty-placeholder/ecabs-empty-placeholder.component.d.ts +2 -1
- package/lib/ecabs-expansion-panel/ecabs-expansion-panel.component.d.ts +1 -3
- package/lib/ecabs-input/ecabs-input.component.d.ts +12 -4
- package/lib/ecabs-input-range/ecabs-input-range.component.d.ts +44 -0
- package/lib/ecabs-input-range/ecabs-input-range.module.d.ts +13 -0
- package/lib/ecabs-phone/ecabs-phone.module.d.ts +5 -4
- package/lib/ecabs-place-autocomplete-v2/ecabs-place-autocomplete-v2.component.d.ts +64 -0
- package/lib/ecabs-place-autocomplete-v2/ecabs-place-autocomplete-v2.module.d.ts +13 -0
- package/lib/ecabs-segment/ecabs-segment.component.d.ts +8 -0
- package/lib/ecabs-select/ecabs-select.component.d.ts +7 -13
- package/lib/ecabs-select/ecabs-select.module.d.ts +5 -4
- package/lib/ecabs-select-icon/ecabs-select-icon.component.d.ts +8 -0
- package/lib/ecabs-select-icon/ecabs-select-icon.module.d.ts +9 -0
- package/lib/ecabs-select-v2/ecabs-select-v2.component.d.ts +25 -25
- package/lib/ecabs-select-v2/ecabs-select-v2.module.d.ts +2 -1
- package/lib/ecabs-table/ecabs-table.component.d.ts +4 -1
- package/lib/ecabs-time-range-input-v2/config.model.d.ts +5 -0
- package/lib/ecabs-time-range-input-v2/ecabs-time-range-input-v2.component.d.ts +52 -0
- package/lib/ecabs-time-range-input-v2/ecabs-time-range-input-v2.module.d.ts +11 -0
- package/lib/ecabs-time-range-input-v2/ecabs-time-range-input-v2.service.d.ts +12 -0
- package/lib/ecabs-timepicker/ecabs-timepicker.component.d.ts +0 -5
- package/package.json +15 -14
- package/public-api.d.ts +25 -0
- package/src/assets/styles/material/_theme.scss +7 -2
- package/src/assets/styles/material/overrides/_autocomplete.scss +28 -3
- package/src/assets/styles/material/overrides/_button.scss +103 -20
- package/src/assets/styles/material/overrides/_card.scss +44 -5
- package/src/assets/styles/material/overrides/_chip.scss +125 -11
- package/src/assets/styles/material/overrides/_datepicker.scss +24 -2
- package/src/assets/styles/material/overrides/_dialog.scss +3 -3
- package/src/assets/styles/material/overrides/_divider.scss +5 -4
- package/src/assets/styles/material/overrides/_expansion.scss +3 -2
- package/src/assets/styles/material/overrides/_form.scss +20 -10
- package/src/assets/styles/material/overrides/_icon.scss +7 -3
- package/src/assets/styles/material/overrides/_menu.scss +4 -0
- package/src/assets/styles/material/overrides/_paginator.scss +13 -11
- package/src/assets/styles/material/overrides/_phone.scss +19 -16
- package/src/assets/styles/material/overrides/_select.scss +64 -42
- package/src/assets/styles/material/overrides/_tab.scss +27 -4
- package/src/assets/styles/material/overrides/_table.scss +3 -2
- package/src/assets/styles/material/overrides/_toaster.scss +7 -8
- package/src/assets/styles/material/overrides/_toggle.scss +11 -2
- package/src/assets/styles/material/overrides/_tooltip.scss +3 -4
- package/src/assets/styles/scss/base/_heading.scss +1 -1
- package/src/assets/styles/scss/base/_normalize.scss +12 -22
- package/src/assets/styles/scss/modules/_autocomplete.scss +25 -11
- package/src/assets/styles/scss/modules/_button.scss +80 -27
- package/src/assets/styles/scss/modules/_card.scss +34 -11
- package/src/assets/styles/scss/modules/_chip.scss +25 -13
- package/src/assets/styles/scss/modules/_dialog.scss +1 -1
- package/src/assets/styles/scss/modules/_divider.scss +2 -1
- package/src/assets/styles/scss/modules/_form.scss +174 -26
- package/src/assets/styles/scss/modules/_icon.scss +2 -1
- package/src/assets/styles/scss/modules/_legend.scss +5 -4
- package/src/assets/styles/scss/modules/_list.scss +2 -2
- package/src/assets/styles/scss/modules/_map.scss +7 -5
- package/src/assets/styles/scss/modules/_phone.scss +10 -13
- package/src/assets/styles/scss/modules/_select.scss +6 -5
- package/src/assets/styles/scss/modules/_statuses.scss +22 -17
- package/src/assets/styles/scss/modules/_table.scss +5 -4
- package/src/assets/styles/scss/modules/_timepicker.scss +3 -3
- package/src/assets/styles/scss/modules/_tooltip.scss +1 -1
- package/src/assets/styles/scss/modules/drag-drop.scss +2 -2
- package/src/assets/styles/scss/utilities/_colors.scss +20 -16
- package/src/assets/styles/scss/utilities/_fonts.scss +6 -1
- package/src/assets/styles/scss/utilities/_mixins.scss +37 -4
- package/src/assets/styles/scss/utilities/_variables.scss +14 -0
- package/src/assets/styles/styles.scss +4 -26
- package/src/assets/styles/tailwind/index.scss +2 -2
- package/lib/base/consts/date-mask.consts.d.ts +0 -7
package/public-api.d.ts
CHANGED
|
@@ -3,8 +3,14 @@ export * from './lib/ecabs-loading/ecabs-loading.component';
|
|
|
3
3
|
export * from './lib/ecabs-loading/spinner/spinner.component';
|
|
4
4
|
export * from './lib/ecabs-buttons/ecabs-buttons.component';
|
|
5
5
|
export * from './lib/ecabs-buttons/ecabs-buttons.module';
|
|
6
|
+
export * from './lib/ecabs-buttons-v2/ecabs-buttons-v2.component';
|
|
7
|
+
export * from './lib/ecabs-buttons-v2/ecabs-buttons-v2.module';
|
|
8
|
+
export * from './lib/ecabs-button-toggle/ecabs-button-toggle.component';
|
|
9
|
+
export * from './lib/ecabs-button-toggle/ecabs-button-toggle.module';
|
|
6
10
|
export * from './lib/ecabs-input/ecabs-input.component';
|
|
7
11
|
export * from './lib/ecabs-input/ecabs-input.module';
|
|
12
|
+
export * from './lib/ecabs-input-range/ecabs-input-range.component';
|
|
13
|
+
export * from './lib/ecabs-input-range/ecabs-input-range.module';
|
|
8
14
|
export * from './lib/ecabs-select/ecabs-select.module';
|
|
9
15
|
export * from './lib/ecabs-select/ecabs-select.component';
|
|
10
16
|
export * from './lib/ecabs-select-v2/ecabs-select-v2.module';
|
|
@@ -20,8 +26,11 @@ export * from './lib/base/models/timepicker.models';
|
|
|
20
26
|
export * from './lib/base/models/header.models';
|
|
21
27
|
export * from './lib/base/models/validation.models';
|
|
22
28
|
export * from './lib/base/models/select.models';
|
|
29
|
+
export * from './lib/base/models/waypoint.models';
|
|
23
30
|
export * from './lib/ecabs-checkbox-toggle/ecabs-checkbox-toggle.component';
|
|
24
31
|
export * from './lib/ecabs-checkbox-toggle/ecabs-checkbox-toggle.module';
|
|
32
|
+
export * from './lib/ecabs-checkbox-v2/ecabs-checkbox-v2.component';
|
|
33
|
+
export * from './lib/ecabs-checkbox-v2/ecabs-checkbox-v2.module';
|
|
25
34
|
export * from './lib/ecabs-date-picker/ecabs-date-picker.component';
|
|
26
35
|
export * from './lib/ecabs-date-picker/components/ecabs-date-picker-header/ecabs-date-picker-header.component';
|
|
27
36
|
export * from './lib/ecabs-date-time-picker/ecabs-date-time-picker.component';
|
|
@@ -111,6 +120,8 @@ export * from './lib/ecabs-base-phone-input/ecabs-base-phone.component';
|
|
|
111
120
|
export * from './lib/ecabs-base-phone-input/ecabs-base-phone.module';
|
|
112
121
|
export * from './lib/base/services/unsubscribe.service';
|
|
113
122
|
export * from './lib/base/pipes/truncate.pipe';
|
|
123
|
+
export * from './lib/base/pipes/separator-append.pipe';
|
|
124
|
+
export * from './lib/base/pipes/phone-number-country-code.pipe';
|
|
114
125
|
export * from './lib/base/pipes/pipes.module';
|
|
115
126
|
export * from './lib/ecabs-sidebar/ecabs-sidebar.module';
|
|
116
127
|
export * from './lib/ecabs-sidebar/ecabs-sidebar.component';
|
|
@@ -120,12 +131,26 @@ export * from './lib/ecabs-logo/ecabs-logo.module';
|
|
|
120
131
|
export * from './lib/ecabs-logo/ecabs-logo.component';
|
|
121
132
|
export * from './lib/ecabs-place-autocomplete/ecabs-place-autocomplete.module';
|
|
122
133
|
export * from './lib/ecabs-place-autocomplete/ecabs-place-autocomplete.component';
|
|
134
|
+
export * from './lib/ecabs-place-autocomplete-v2/ecabs-place-autocomplete-v2.module';
|
|
135
|
+
export * from './lib/ecabs-place-autocomplete-v2/ecabs-place-autocomplete-v2.component';
|
|
123
136
|
export * from './lib/ecabs-multiple-dates-picker/ecabs-multiple-dates-picker.module';
|
|
124
137
|
export * from './lib/ecabs-multiple-dates-picker/ecabs-multiple-dates-picker.component';
|
|
125
138
|
export * from './lib/base/services/ecabs-date-picker-translations.service';
|
|
126
139
|
export * from './lib/base/utils/object-utils';
|
|
140
|
+
export * from './lib/base/utils/phone-number.utils';
|
|
141
|
+
export * from './lib/base/utils/select.utils';
|
|
127
142
|
export * from './lib/base/consts/buttons.consts';
|
|
128
143
|
export * from './lib/base/adapters/date.adapter';
|
|
129
144
|
export * from './lib/base/consts/waypoint.consts';
|
|
130
145
|
export * from './lib/ecabs-dialog-confirm-deletion/ecabs-dialog-confirm-deletion.module';
|
|
131
146
|
export * from './lib/ecabs-dialog-confirm-deletion/ecabs-dialog-confirm-deletion.component';
|
|
147
|
+
export * from './lib/ecabs-time-range-input-v2/ecabs-time-range-input-v2.service';
|
|
148
|
+
export * from './lib/ecabs-time-range-input-v2/ecabs-time-range-input-v2.module';
|
|
149
|
+
export * from './lib/ecabs-time-range-input-v2/ecabs-time-range-input-v2.component';
|
|
150
|
+
export * from './lib/ecabs-chip-group/ecabs-chip-group.module';
|
|
151
|
+
export * from './lib/ecabs-chip-group/ecabs-chip-group.component';
|
|
152
|
+
export * from './lib/ecabs-chip-autocomplete/ecabs-chip-autocomplete.component';
|
|
153
|
+
export * from './lib/ecabs-date-range-picker-v2/ecabs-date-range-picker-v2.module';
|
|
154
|
+
export * from './lib/ecabs-date-range-picker-v2/ecabs-date-range-picker-v2.component';
|
|
155
|
+
export * from './lib/ecabs-date-range-picker-v2/components/ecabs-date-range-picker-header/ecabs-date-range-picker-header-v2.component';
|
|
156
|
+
export * from './lib/ecabs-segment/ecabs-segment.component';
|
|
@@ -3,8 +3,10 @@
|
|
|
3
3
|
@use '@angular/material' as mat;
|
|
4
4
|
|
|
5
5
|
// Plus imports for other components in your app.
|
|
6
|
-
@use '../scss/utilities/
|
|
7
|
-
@use '
|
|
6
|
+
@use '../scss/utilities/index';
|
|
7
|
+
@use 'overrides/index' as index2;
|
|
8
|
+
@use "../scss/utilities/fonts";
|
|
9
|
+
|
|
8
10
|
|
|
9
11
|
// Include the common styles for Angular Material. We include this here so that you only
|
|
10
12
|
// have to load a single css file for Angular Material in your app.
|
|
@@ -70,7 +72,10 @@ $custom-typography: mat.m2-define-typography-config(
|
|
|
70
72
|
),
|
|
71
73
|
$button: mat.m2-define-typography-level(
|
|
72
74
|
fonts.$font-size-base,
|
|
75
|
+
fonts.$base-line-height,
|
|
76
|
+
fonts.$font-weight-semibold,
|
|
73
77
|
$letter-spacing: normal,
|
|
78
|
+
$font-family: fonts.$font-family-primary,
|
|
74
79
|
),
|
|
75
80
|
$body-2: mat.m2-define-typography-level(
|
|
76
81
|
fonts.$font-size-base,
|
|
@@ -1,13 +1,38 @@
|
|
|
1
|
-
@use "../../scss/modules";
|
|
1
|
+
@use "../../scss/modules/autocomplete";
|
|
2
|
+
@use "../../scss/utilities/functions";
|
|
3
|
+
@use "../../scss/utilities/variables";
|
|
2
4
|
|
|
3
5
|
.ecabs-autocomplete {
|
|
4
6
|
.mat-mdc-autocomplete-panel {
|
|
5
|
-
@extend .autocomplete-ui
|
|
7
|
+
@extend .autocomplete-ui;
|
|
6
8
|
|
|
7
9
|
margin-top: 0.2rem;
|
|
8
10
|
|
|
9
11
|
.mat-mdc-option {
|
|
10
|
-
@extend .autocomplete-ui--item
|
|
12
|
+
@extend .autocomplete-ui--item;
|
|
11
13
|
}
|
|
12
14
|
}
|
|
13
15
|
}
|
|
16
|
+
|
|
17
|
+
ecabs-chip-autocomplete {
|
|
18
|
+
input.mat-mdc-chip-input {
|
|
19
|
+
margin-left: unset;
|
|
20
|
+
border-radius: functions.calc-rem(variables.$border-radius-large);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.form-field {
|
|
24
|
+
margin-bottom: unset;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.ecabs-chip-autocomplete-overlay-panel {
|
|
29
|
+
&.mat-mdc-autocomplete-panel {
|
|
30
|
+
box-shadow: variables.$box-shadow-default;
|
|
31
|
+
border-radius: functions.calc-rem(variables.$border-radius-large);
|
|
32
|
+
border-top: 0;
|
|
33
|
+
|
|
34
|
+
max-height: calc((var(--autocomplete-visible-options, 8.5) * var(--mat-option-height, 48px)) + 10px);
|
|
35
|
+
overflow-y: auto;
|
|
36
|
+
overflow-x: hidden;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -1,13 +1,19 @@
|
|
|
1
|
-
@use "../../scss/modules";
|
|
1
|
+
@use "../../scss/modules/button";
|
|
2
|
+
@use "../../scss/utilities/fonts";
|
|
2
3
|
|
|
3
4
|
button,
|
|
4
5
|
a {
|
|
5
6
|
&.mdc-button {
|
|
6
|
-
@extend .btn
|
|
7
|
+
@extend .btn;
|
|
8
|
+
|
|
9
|
+
--mdc-text-button-label-text-weight: #{fonts.$font-weight-semibold};
|
|
10
|
+
--mdc-filled-button-label-text-weight: #{fonts.$font-weight-semibold};
|
|
11
|
+
--mdc-outlined-button-label-text-weight: #{fonts.$font-weight-semibold};
|
|
12
|
+
--mdc-protected-button-label-text-weight: #{fonts.$font-weight-semibold};
|
|
7
13
|
|
|
8
14
|
&.btn__group--item,
|
|
9
15
|
&.btn {
|
|
10
|
-
@extend .btn__group--item
|
|
16
|
+
@extend .btn__group--item;
|
|
11
17
|
}
|
|
12
18
|
|
|
13
19
|
.mat-icon {
|
|
@@ -15,56 +21,133 @@ a {
|
|
|
15
21
|
}
|
|
16
22
|
}
|
|
17
23
|
|
|
24
|
+
/**
|
|
25
|
+
* #Basic
|
|
26
|
+
*/
|
|
27
|
+
&.mdc-button.mat-mdc-button {
|
|
28
|
+
@extend .btn--basic;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&.mdc-button--outlined {
|
|
32
|
+
@extend .btn--basic--outline;
|
|
33
|
+
|
|
34
|
+
border: 0;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&.mdc-button.mat-mdc-button {
|
|
38
|
+
@extend .btn--basic--link;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&.mdc-button.mat-mdc-button:disabled:not(.loading) {
|
|
42
|
+
@extend .btn__disabled--outline;
|
|
43
|
+
|
|
44
|
+
&:after {
|
|
45
|
+
border: 0;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* #Primary
|
|
51
|
+
*/
|
|
18
52
|
&.mdc-button.mat-primary {
|
|
19
|
-
@extend .
|
|
53
|
+
@extend .btn--primary;
|
|
20
54
|
}
|
|
21
55
|
|
|
22
56
|
&.mdc-button--outlined.mat-primary {
|
|
23
|
-
@extend .
|
|
57
|
+
@extend .btn--primary--outline;
|
|
24
58
|
|
|
25
|
-
border:
|
|
59
|
+
border: 0;
|
|
26
60
|
}
|
|
27
61
|
|
|
62
|
+
&.mat-mdc-button.mat-primary {
|
|
63
|
+
@extend .btn--primary--link;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* #Secondary
|
|
68
|
+
*/
|
|
69
|
+
|
|
28
70
|
&.mdc-button.mat-accent {
|
|
29
|
-
@extend .
|
|
71
|
+
@extend .btn--secondary;
|
|
30
72
|
}
|
|
31
73
|
|
|
32
74
|
&.mdc-button--outlined.mat-accent {
|
|
33
|
-
@extend .
|
|
75
|
+
@extend .btn--secondary--outline;
|
|
76
|
+
|
|
77
|
+
border: 0;
|
|
78
|
+
}
|
|
34
79
|
|
|
35
|
-
|
|
80
|
+
&.mat-mdc-button.mat-accent {
|
|
81
|
+
@extend .btn--secondary--link;
|
|
36
82
|
}
|
|
37
83
|
|
|
84
|
+
/**
|
|
85
|
+
* #Warn
|
|
86
|
+
*/
|
|
87
|
+
|
|
38
88
|
&.mdc-button.mat-warn {
|
|
39
|
-
@extend .
|
|
89
|
+
@extend .btn--warn;
|
|
40
90
|
}
|
|
41
91
|
|
|
42
92
|
&.mdc-button--outlined.mat-warn {
|
|
43
|
-
@extend .
|
|
93
|
+
@extend .btn--warn--outline;
|
|
94
|
+
|
|
95
|
+
border: 0;
|
|
96
|
+
}
|
|
44
97
|
|
|
45
|
-
|
|
98
|
+
&.mat-mdc-button.mat-warn {
|
|
99
|
+
@extend .btn--warn--link;
|
|
46
100
|
}
|
|
47
101
|
|
|
102
|
+
/**
|
|
103
|
+
* #Success
|
|
104
|
+
*/
|
|
105
|
+
|
|
48
106
|
&.mdc-button.mat-success {
|
|
49
|
-
@extend .
|
|
107
|
+
@extend .btn--success;
|
|
50
108
|
}
|
|
51
109
|
|
|
52
110
|
&.mdc-button--outlined.mat-success {
|
|
53
|
-
@extend .
|
|
111
|
+
@extend .btn--success--outline;
|
|
112
|
+
|
|
113
|
+
border: 0;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
&.mat-mdc-button.mat-success {
|
|
117
|
+
@extend .btn--success--link;
|
|
118
|
+
}
|
|
54
119
|
|
|
55
|
-
|
|
120
|
+
&.mat-mdc-unelevated-button:disabled:not(.loading) {
|
|
121
|
+
@extend .btn__disabled;
|
|
56
122
|
}
|
|
57
123
|
|
|
58
|
-
&.mat-mdc-
|
|
59
|
-
@extend .btn__disabled
|
|
124
|
+
&.mat-mdc-outlined-button:disabled:not(.loading) {
|
|
125
|
+
@extend .btn__disabled--outline;
|
|
60
126
|
}
|
|
61
127
|
|
|
62
|
-
&.mat-mdc-
|
|
63
|
-
|
|
128
|
+
&.mat-mdc-button,
|
|
129
|
+
&.mat-mdc-outlined-button,
|
|
130
|
+
&.mat-mdc-unelevated-button,
|
|
131
|
+
&.mat-mdc-raised-button {
|
|
132
|
+
&.ecabs-button-v2--small {
|
|
133
|
+
@extend .btn--small;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
&.ecabs-button-v2--medium {
|
|
137
|
+
@extend .btn--medium;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
&.ecabs-button-v2--large {
|
|
141
|
+
@extend .btn--large;
|
|
142
|
+
}
|
|
64
143
|
}
|
|
65
144
|
|
|
66
145
|
.mdc-button__label {
|
|
67
|
-
@extend .btn__with-icon--wrapper
|
|
146
|
+
@extend .btn__with-icon--wrapper;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
ecabs-loading-spinner {
|
|
150
|
+
--ecabs-spinner-color: currentColor;
|
|
68
151
|
}
|
|
69
152
|
|
|
70
153
|
&.mat-mdc-icon-button {
|
|
@@ -1,19 +1,58 @@
|
|
|
1
|
-
@use "../../scss/modules";
|
|
1
|
+
@use "../../scss/modules/card";
|
|
2
|
+
@use "../../scss/utilities/functions";
|
|
2
3
|
|
|
3
4
|
.mat-mdc-card {
|
|
4
5
|
&.mdc-card {
|
|
5
|
-
@extend .card
|
|
6
|
+
@extend .card;
|
|
7
|
+
|
|
8
|
+
.mat-mdc-card-header {
|
|
9
|
+
@extend .card__header;
|
|
10
|
+
|
|
11
|
+
.mat-divider {
|
|
12
|
+
margin-top: 0;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
6
15
|
|
|
7
16
|
.mat-mdc-card-subtitle {
|
|
8
|
-
@extend .
|
|
17
|
+
@extend .card__subtitle;
|
|
9
18
|
}
|
|
10
19
|
|
|
11
20
|
.mat-mdc-card-title {
|
|
12
|
-
@extend .
|
|
21
|
+
@extend .card__title;
|
|
13
22
|
}
|
|
14
23
|
|
|
15
24
|
.mat-mdc-card-content {
|
|
16
|
-
@extend .card__content
|
|
25
|
+
@extend .card__content;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.mat-divider:not(.card__title--divider) {
|
|
29
|
+
margin-top: functions.calc-rem(24px);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.card--inset {
|
|
33
|
+
.mat-divider {
|
|
34
|
+
margin-top: 0;
|
|
35
|
+
border-top-color: var(--color-gray-200);
|
|
36
|
+
color: var(--color-gray-200);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.form-field {
|
|
40
|
+
margin-bottom: 0;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.mdc-button.mat-mdc-button {
|
|
44
|
+
padding-left: 0;
|
|
45
|
+
padding-right: 0;
|
|
46
|
+
padding-bottom: 0;
|
|
47
|
+
min-width: auto;
|
|
48
|
+
height: fit-content;
|
|
49
|
+
min-height: fit-content;
|
|
50
|
+
line-height: 1;
|
|
51
|
+
|
|
52
|
+
.mat-mdc-button-persistent-ripple::before {
|
|
53
|
+
background-color: transparent;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
17
56
|
}
|
|
18
57
|
}
|
|
19
58
|
}
|
|
@@ -1,10 +1,33 @@
|
|
|
1
|
-
@use "../../scss/modules/chip";
|
|
2
1
|
@use "../../scss/modules/statuses";
|
|
2
|
+
@use "../../scss/modules/chip";
|
|
3
|
+
@use "../../scss/utilities/helpers";
|
|
4
|
+
@use "../../scss/utilities/fonts";
|
|
5
|
+
@use "../../scss/utilities/functions";
|
|
6
|
+
@use "../../scss/utilities/variables";
|
|
3
7
|
|
|
4
8
|
.mdc-evolution-chip {
|
|
5
9
|
&,
|
|
6
10
|
&.mat-mdc-standard-chip {
|
|
7
11
|
@extend .chip;
|
|
12
|
+
--mdc-chip-elevated-disabled-container-color: var(--color-gray-300);
|
|
13
|
+
|
|
14
|
+
&.chip__standard {
|
|
15
|
+
@extend .chip__standard;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&.draft {
|
|
19
|
+
background-color: var(--color-gray-50);
|
|
20
|
+
color: var(--color-gray-500);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&.published {
|
|
24
|
+
@extend .published;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&.archived {
|
|
28
|
+
background-color: #F0F0F0;
|
|
29
|
+
color: #676767;
|
|
30
|
+
}
|
|
8
31
|
|
|
9
32
|
&.chip--info, &.pending_review {
|
|
10
33
|
@extend .chip--info;
|
|
@@ -14,6 +37,7 @@
|
|
|
14
37
|
@extend .chip--success;
|
|
15
38
|
}
|
|
16
39
|
|
|
40
|
+
|
|
17
41
|
&.chip--warn, &.pending_data {
|
|
18
42
|
@extend .chip--warn;
|
|
19
43
|
}
|
|
@@ -43,23 +67,23 @@
|
|
|
43
67
|
}
|
|
44
68
|
|
|
45
69
|
&.cab_arrived_at_pickup {
|
|
46
|
-
@extend .cab_arrived_at_pickup
|
|
70
|
+
@extend .cab_arrived_at_pickup;
|
|
47
71
|
}
|
|
48
72
|
|
|
49
73
|
&.cancelled {
|
|
50
|
-
@extend .cancelled
|
|
74
|
+
@extend .cancelled;
|
|
51
75
|
}
|
|
52
76
|
|
|
53
77
|
&.completed, &.done {
|
|
54
|
-
@extend .completed
|
|
78
|
+
@extend .completed;
|
|
55
79
|
}
|
|
56
80
|
|
|
57
|
-
&.dispatched
|
|
58
|
-
@extend .dispatched
|
|
81
|
+
&.dispatched {
|
|
82
|
+
@extend .dispatched;
|
|
59
83
|
}
|
|
60
84
|
|
|
61
85
|
&.in_progress {
|
|
62
|
-
@extend .in_progress
|
|
86
|
+
@extend .in_progress;
|
|
63
87
|
}
|
|
64
88
|
|
|
65
89
|
&.dropped_off {
|
|
@@ -80,19 +104,19 @@
|
|
|
80
104
|
}
|
|
81
105
|
|
|
82
106
|
&.reserved, &.scheduled, &.ended {
|
|
83
|
-
@extend .reserved
|
|
107
|
+
@extend .reserved;
|
|
84
108
|
}
|
|
85
109
|
|
|
86
110
|
&.trip_ended {
|
|
87
|
-
@extend .trip_ended
|
|
111
|
+
@extend .trip_ended;
|
|
88
112
|
}
|
|
89
113
|
|
|
90
114
|
&.trip_ongoing {
|
|
91
|
-
@extend .trip_ongoing
|
|
115
|
+
@extend .trip_ongoing;
|
|
92
116
|
}
|
|
93
117
|
|
|
94
118
|
&.trip_started, &.started {
|
|
95
|
-
@extend .trip_started
|
|
119
|
+
@extend .trip_started;
|
|
96
120
|
}
|
|
97
121
|
|
|
98
122
|
&.blacklisted {
|
|
@@ -131,3 +155,93 @@
|
|
|
131
155
|
.mdc-evolution-chip.mat-mdc-standard-chip[ng-reflect-disable-ripple]:not(.mdc-evolution-chip--disabled):active {
|
|
132
156
|
box-shadow: none;
|
|
133
157
|
}
|
|
158
|
+
|
|
159
|
+
//V2 styles
|
|
160
|
+
ecabs-chip-group {
|
|
161
|
+
.mat-mdc-chip-listbox {
|
|
162
|
+
display: flex;
|
|
163
|
+
flex-wrap: wrap;
|
|
164
|
+
gap: functions.calc-rem(8px);
|
|
165
|
+
|
|
166
|
+
.mat-mdc-chip {
|
|
167
|
+
--mdc-chip-elevated-container-color: var(--color-white);
|
|
168
|
+
--mdc-chip-label-text-color: var(--color-gray-600);
|
|
169
|
+
--mdc-chip-label-text-size: #{fonts.$font-size-sm};
|
|
170
|
+
--mdc-chip-label-text-weight: #{fonts.$font-weight-medium};
|
|
171
|
+
--mdc-chip-elevated-selected-container-color: var(--color-brand-dark);
|
|
172
|
+
--mdc-chip-selected-label-text-color: var(--color-white);
|
|
173
|
+
|
|
174
|
+
border-radius: functions.calc-rem(variables.$border-radius-medium);
|
|
175
|
+
border: 1px solid var(--color-gray-200);
|
|
176
|
+
color: var(--mdc-chip-label-text-color);
|
|
177
|
+
|
|
178
|
+
&:hover {
|
|
179
|
+
border-color: var(--color-gray-300);
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.mat-mdc-chip.mdc-evolution-chip--selected {
|
|
184
|
+
border-color: transparent;
|
|
185
|
+
|
|
186
|
+
.mdc-evolution-chip__action {
|
|
187
|
+
color: var(--mdc-chip-selected-label-text-color);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.mat-mdc-chip.mdc-evolution-chip--disabled {
|
|
192
|
+
opacity: 0.6;
|
|
193
|
+
cursor: not-allowed;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.mat-mdc-chip .mat-mdc-chip-graphic {
|
|
197
|
+
display: none;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary {
|
|
201
|
+
padding: 0;
|
|
202
|
+
|
|
203
|
+
&:after {
|
|
204
|
+
@extend %pseudos;
|
|
205
|
+
|
|
206
|
+
top: 0;
|
|
207
|
+
left: 0;
|
|
208
|
+
bottom: 0;
|
|
209
|
+
right: 0;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.mat-mdc-chip .mdc-chip__ripple,
|
|
214
|
+
.mat-mdc-chip .mat-ripple {
|
|
215
|
+
display: none;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
ecabs-chip-autocomplete {
|
|
221
|
+
.mat-mdc-chip-grid {
|
|
222
|
+
.mat-mdc-chip {
|
|
223
|
+
--mdc-chip-elevated-container-color: var(--color-gray-100);
|
|
224
|
+
--mdc-chip-label-text-color: var(--color-gray-600);
|
|
225
|
+
--mdc-chip-label-text-size: #{fonts.$font-size-xs};
|
|
226
|
+
--mdc-chip-label-text-weight: #{fonts.$font-weight-medium};
|
|
227
|
+
--mdc-chip-elevated-selected-container-color: var(--color-brand-dark);
|
|
228
|
+
--mdc-chip-selected-label-text-color: var(--color-white);
|
|
229
|
+
--mdc-chip-container-height: #{functions.calc-rem(28px)};
|
|
230
|
+
--mdc-chip-with-trailing-icon-trailing-icon-color: var(--color-gray-600);
|
|
231
|
+
--mdc-chip-with-avatar-avatar-shape-radius: 0;
|
|
232
|
+
|
|
233
|
+
border-radius: functions.calc-rem(variables.$border-radius-medium);
|
|
234
|
+
padding-left: unset;
|
|
235
|
+
padding-right: unset;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing {
|
|
240
|
+
width: functions.calc-rem(14px);
|
|
241
|
+
height: functions.calc-rem(14px);
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.mdc-evolution-chip-set .mdc-evolution-chip {
|
|
245
|
+
margin-top: 0;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
@use "../../scss/modules/datepicker";
|
|
1
2
|
@use "../../scss/utilities/index";
|
|
2
3
|
@use "../../scss/utilities/functions";
|
|
3
4
|
@use "../../scss/utilities/mixins";
|
|
4
5
|
@use "../../scss/utilities/variables";
|
|
5
|
-
|
|
6
|
+
|
|
6
7
|
|
|
7
8
|
.header {
|
|
8
9
|
display: flex;
|
|
@@ -48,7 +49,6 @@
|
|
|
48
49
|
|
|
49
50
|
.mat-calendar-body-cell-content {
|
|
50
51
|
border-radius: 0.25rem !important;
|
|
51
|
-
font-size: 1rem !important;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
.mat-calendar-body-active {
|
|
@@ -159,3 +159,25 @@
|
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
|
+
|
|
163
|
+
.ecabs-date-range-picker-v2 {
|
|
164
|
+
.mat-calendar-content {
|
|
165
|
+
padding: 0 1.6rem 1.6rem;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
ecabs-date-range-picker-v2 {
|
|
170
|
+
.mat-datepicker-input {
|
|
171
|
+
text-align: center;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
input {
|
|
175
|
+
border: none;
|
|
176
|
+
box-shadow: none;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
input:focus {
|
|
180
|
+
outline: none;
|
|
181
|
+
box-shadow: none;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
@use "../../scss/modules/dialog";
|
|
1
2
|
@use "../../scss/utilities/functions";
|
|
2
|
-
@use "../../scss/modules";
|
|
3
3
|
|
|
4
4
|
.mat-mdc-dialog-container {
|
|
5
5
|
.mdc-dialog__container {
|
|
6
6
|
.mdc-dialog__title {
|
|
7
|
-
@extend .dialog__title
|
|
7
|
+
@extend .dialog__title;
|
|
8
8
|
|
|
9
9
|
&::before {
|
|
10
10
|
height: unset;
|
|
@@ -23,6 +23,6 @@
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
.dialog--maps .mdc-dialog__container {
|
|
26
|
-
@extend .dialog--maps
|
|
26
|
+
@extend .dialog--maps;
|
|
27
27
|
}
|
|
28
28
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
@use "../../scss/utilities/mixins";
|
|
2
1
|
@use "../../scss/utilities/fonts";
|
|
3
|
-
@use "../../scss/utilities/variables";
|
|
4
2
|
@use "../../scss/utilities/functions";
|
|
3
|
+
@use "../../scss/utilities/mixins";
|
|
4
|
+
@use "../../scss/utilities/variables";
|
|
5
5
|
|
|
6
6
|
.example-headers-align .mat-expansion-panel-header-title {
|
|
7
7
|
@include mixins.fontSize(fonts.$font-heading-xs);
|
|
@@ -33,4 +33,5 @@
|
|
|
33
33
|
box-shadow: variables.$box-shadow-default;
|
|
34
34
|
overflow: visible;
|
|
35
35
|
}
|
|
36
|
+
|
|
36
37
|
}
|