ecabs-components 2.0.0-alpha.3 → 2.0.0-alpha.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.
- package/README.md +136 -83
- package/fesm2022/ecabs-components.mjs +3076 -1091
- 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-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 +20 -19
- package/public-api.d.ts +25 -0
- package/src/assets/styles/material/_theme.scss +17 -12
- package/src/assets/styles/material/overrides/_autocomplete.scss +27 -0
- package/src/assets/styles/material/overrides/_button.scss +95 -10
- package/src/assets/styles/material/overrides/_card.scss +43 -2
- package/src/assets/styles/material/overrides/_chip.scss +118 -1
- package/src/assets/styles/material/overrides/_datepicker.scss +33 -7
- package/src/assets/styles/material/overrides/_dialog.scss +4 -1
- package/src/assets/styles/material/overrides/_divider.scss +5 -2
- package/src/assets/styles/material/overrides/_expansion.scss +11 -6
- package/src/assets/styles/material/overrides/_form.scss +15 -2
- package/src/assets/styles/material/overrides/_icon.scss +6 -0
- package/src/assets/styles/material/overrides/_menu.scss +7 -1
- package/src/assets/styles/material/overrides/_paginator.scss +16 -12
- package/src/assets/styles/material/overrides/_phone.scss +18 -12
- package/src/assets/styles/material/overrides/_progress.scss +1 -1
- package/src/assets/styles/material/overrides/_select.scss +73 -47
- package/src/assets/styles/material/overrides/_sidebar.scss +3 -1
- package/src/assets/styles/material/overrides/_tab.scss +27 -1
- package/src/assets/styles/material/overrides/_table.scss +5 -1
- package/src/assets/styles/material/overrides/_toaster.scss +1 -0
- package/src/assets/styles/material/overrides/_toggle.scss +11 -2
- package/src/assets/styles/material/overrides/_tooltip.scss +1 -0
- package/src/assets/styles/material/overrides/index.scss +22 -22
- package/src/assets/styles/scss/base/_heading.scss +11 -8
- package/src/assets/styles/scss/base/_normalize.scss +19 -24
- package/src/assets/styles/scss/base/index.scss +2 -2
- package/src/assets/styles/scss/modules/_autocomplete.scss +26 -8
- package/src/assets/styles/scss/modules/_button.scss +105 -49
- package/src/assets/styles/scss/modules/_card.scss +39 -11
- package/src/assets/styles/scss/modules/_chip.scss +36 -20
- package/src/assets/styles/scss/modules/_datepicker.scss +7 -4
- package/src/assets/styles/scss/modules/_dialog.scss +10 -6
- package/src/assets/styles/scss/modules/_divider.scss +2 -1
- package/src/assets/styles/scss/modules/_form.scss +209 -56
- package/src/assets/styles/scss/modules/_icon.scss +6 -2
- package/src/assets/styles/scss/modules/_legend.scss +21 -15
- package/src/assets/styles/scss/modules/_list.scss +9 -6
- package/src/assets/styles/scss/modules/_map.scss +27 -22
- package/src/assets/styles/scss/modules/_phone.scss +11 -13
- package/src/assets/styles/scss/modules/_select.scss +9 -5
- package/src/assets/styles/scss/modules/_statuses.scss +13 -8
- package/src/assets/styles/scss/modules/_tab.scss +3 -1
- package/src/assets/styles/scss/modules/_table.scss +26 -20
- package/src/assets/styles/scss/modules/_timepicker.scss +11 -7
- package/src/assets/styles/scss/modules/_tooltip.scss +7 -3
- package/src/assets/styles/scss/modules/drag-drop.scss +13 -9
- package/src/assets/styles/scss/modules/index.scss +23 -23
- 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/_functions.scss +4 -3
- package/src/assets/styles/scss/utilities/_mixins.scss +43 -6
- package/src/assets/styles/scss/utilities/_variables.scss +14 -0
- package/src/assets/styles/scss/utilities/index.scss +6 -6
- package/src/assets/styles/styles.scss +5 -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
|
-
@
|
|
7
|
-
@
|
|
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.
|
|
@@ -60,24 +62,27 @@ $cuorium-warn: mat.m2-define-palette($mat-warning);
|
|
|
60
62
|
// Define a custom typography config that overrides the font-family as well as the
|
|
61
63
|
// `headlines` and `body-1` levels.
|
|
62
64
|
$custom-typography: mat.m2-define-typography-config(
|
|
63
|
-
$font-family:
|
|
65
|
+
$font-family: fonts.$font-family-primary,
|
|
64
66
|
$body-1: mat.m2-define-typography-level(
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
67
|
+
fonts.$font-size-base,
|
|
68
|
+
fonts.$base-line-height,
|
|
69
|
+
fonts.$font-weight-regular,
|
|
68
70
|
$letter-spacing: normal,
|
|
69
|
-
$font-family:
|
|
71
|
+
$font-family: fonts.$font-family-primary,
|
|
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
|
-
|
|
77
|
-
|
|
78
|
-
|
|
81
|
+
fonts.$font-size-base,
|
|
82
|
+
fonts.$base-line-height,
|
|
83
|
+
fonts.$font-weight-regular,
|
|
79
84
|
$letter-spacing: normal,
|
|
80
|
-
$font-family:
|
|
85
|
+
$font-family: fonts.$font-family-primary,
|
|
81
86
|
)
|
|
82
87
|
);
|
|
83
88
|
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
@use "../../scss/modules/autocomplete";
|
|
2
|
+
@use "../../scss/utilities/functions";
|
|
3
|
+
@use "../../scss/utilities/variables";
|
|
4
|
+
|
|
1
5
|
.ecabs-autocomplete {
|
|
2
6
|
.mat-mdc-autocomplete-panel {
|
|
3
7
|
@extend .autocomplete-ui;
|
|
@@ -9,3 +13,26 @@
|
|
|
9
13
|
}
|
|
10
14
|
}
|
|
11
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,8 +1,16 @@
|
|
|
1
|
+
@use "../../scss/modules/button";
|
|
2
|
+
@use "../../scss/utilities/fonts";
|
|
3
|
+
|
|
1
4
|
button,
|
|
2
5
|
a {
|
|
3
6
|
&.mdc-button {
|
|
4
7
|
@extend .btn;
|
|
5
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};
|
|
13
|
+
|
|
6
14
|
&.btn__group--item,
|
|
7
15
|
&.btn {
|
|
8
16
|
@extend .btn__group--item;
|
|
@@ -13,58 +21,135 @@ a {
|
|
|
13
21
|
}
|
|
14
22
|
}
|
|
15
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
|
+
*/
|
|
16
52
|
&.mdc-button.mat-primary {
|
|
17
|
-
@extend .
|
|
53
|
+
@extend .btn--primary;
|
|
18
54
|
}
|
|
19
55
|
|
|
20
56
|
&.mdc-button--outlined.mat-primary {
|
|
21
|
-
@extend .
|
|
57
|
+
@extend .btn--primary--outline;
|
|
22
58
|
|
|
23
59
|
border: 0;
|
|
24
60
|
}
|
|
25
61
|
|
|
62
|
+
&.mat-mdc-button.mat-primary {
|
|
63
|
+
@extend .btn--primary--link;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* #Secondary
|
|
68
|
+
*/
|
|
69
|
+
|
|
26
70
|
&.mdc-button.mat-accent {
|
|
27
|
-
@extend .
|
|
71
|
+
@extend .btn--secondary;
|
|
28
72
|
}
|
|
29
73
|
|
|
30
74
|
&.mdc-button--outlined.mat-accent {
|
|
31
|
-
@extend .
|
|
75
|
+
@extend .btn--secondary--outline;
|
|
32
76
|
|
|
33
77
|
border: 0;
|
|
34
78
|
}
|
|
35
79
|
|
|
80
|
+
&.mat-mdc-button.mat-accent {
|
|
81
|
+
@extend .btn--secondary--link;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* #Warn
|
|
86
|
+
*/
|
|
87
|
+
|
|
36
88
|
&.mdc-button.mat-warn {
|
|
37
|
-
@extend .
|
|
89
|
+
@extend .btn--warn;
|
|
38
90
|
}
|
|
39
91
|
|
|
40
92
|
&.mdc-button--outlined.mat-warn {
|
|
41
|
-
@extend .
|
|
93
|
+
@extend .btn--warn--outline;
|
|
42
94
|
|
|
43
95
|
border: 0;
|
|
44
96
|
}
|
|
45
97
|
|
|
98
|
+
&.mat-mdc-button.mat-warn {
|
|
99
|
+
@extend .btn--warn--link;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* #Success
|
|
104
|
+
*/
|
|
105
|
+
|
|
46
106
|
&.mdc-button.mat-success {
|
|
47
|
-
@extend .
|
|
107
|
+
@extend .btn--success;
|
|
48
108
|
}
|
|
49
109
|
|
|
50
110
|
&.mdc-button--outlined.mat-success {
|
|
51
|
-
@extend .
|
|
111
|
+
@extend .btn--success--outline;
|
|
52
112
|
|
|
53
113
|
border: 0;
|
|
54
114
|
}
|
|
55
115
|
|
|
56
|
-
&.mat-mdc-
|
|
116
|
+
&.mat-mdc-button.mat-success {
|
|
117
|
+
@extend .btn--success--link;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
&.mat-mdc-unelevated-button:disabled:not(.loading) {
|
|
57
121
|
@extend .btn__disabled;
|
|
58
122
|
}
|
|
59
123
|
|
|
60
|
-
&.mat-mdc-outlined-button:disabled {
|
|
124
|
+
&.mat-mdc-outlined-button:disabled:not(.loading) {
|
|
61
125
|
@extend .btn__disabled--outline;
|
|
62
126
|
}
|
|
63
127
|
|
|
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
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
64
145
|
.mdc-button__label {
|
|
65
146
|
@extend .btn__with-icon--wrapper;
|
|
66
147
|
}
|
|
67
148
|
|
|
149
|
+
ecabs-loading-spinner {
|
|
150
|
+
--ecabs-spinner-color: currentColor;
|
|
151
|
+
}
|
|
152
|
+
|
|
68
153
|
&.mat-mdc-icon-button {
|
|
69
154
|
min-width: auto;
|
|
70
155
|
line-height: 1;
|
|
@@ -1,17 +1,58 @@
|
|
|
1
|
+
@use "../../scss/modules/card";
|
|
2
|
+
@use "../../scss/utilities/functions";
|
|
3
|
+
|
|
1
4
|
.mat-mdc-card {
|
|
2
5
|
&.mdc-card {
|
|
3
6
|
@extend .card;
|
|
4
7
|
|
|
8
|
+
.mat-mdc-card-header {
|
|
9
|
+
@extend .card__header;
|
|
10
|
+
|
|
11
|
+
.mat-divider {
|
|
12
|
+
margin-top: 0;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
5
16
|
.mat-mdc-card-subtitle {
|
|
6
|
-
@extend .
|
|
17
|
+
@extend .card__subtitle;
|
|
7
18
|
}
|
|
8
19
|
|
|
9
20
|
.mat-mdc-card-title {
|
|
10
|
-
@extend .
|
|
21
|
+
@extend .card__title;
|
|
11
22
|
}
|
|
12
23
|
|
|
13
24
|
.mat-mdc-card-content {
|
|
14
25
|
@extend .card__content;
|
|
15
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
|
+
}
|
|
56
|
+
}
|
|
16
57
|
}
|
|
17
58
|
}
|
|
@@ -1,7 +1,33 @@
|
|
|
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";
|
|
7
|
+
|
|
1
8
|
.mdc-evolution-chip {
|
|
2
9
|
&,
|
|
3
10
|
&.mat-mdc-standard-chip {
|
|
4
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
|
+
}
|
|
5
31
|
|
|
6
32
|
&.chip--info, &.pending_review {
|
|
7
33
|
@extend .chip--info;
|
|
@@ -11,6 +37,7 @@
|
|
|
11
37
|
@extend .chip--success;
|
|
12
38
|
}
|
|
13
39
|
|
|
40
|
+
|
|
14
41
|
&.chip--warn, &.pending_data {
|
|
15
42
|
@extend .chip--warn;
|
|
16
43
|
}
|
|
@@ -51,7 +78,7 @@
|
|
|
51
78
|
@extend .completed;
|
|
52
79
|
}
|
|
53
80
|
|
|
54
|
-
&.dispatched
|
|
81
|
+
&.dispatched {
|
|
55
82
|
@extend .dispatched;
|
|
56
83
|
}
|
|
57
84
|
|
|
@@ -128,3 +155,93 @@
|
|
|
128
155
|
.mdc-evolution-chip.mat-mdc-standard-chip[ng-reflect-disable-ripple]:not(.mdc-evolution-chip--disabled):active {
|
|
129
156
|
box-shadow: none;
|
|
130
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,4 +1,9 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use "../../scss/modules/datepicker";
|
|
2
|
+
@use "../../scss/utilities/index";
|
|
3
|
+
@use "../../scss/utilities/functions";
|
|
4
|
+
@use "../../scss/utilities/mixins";
|
|
5
|
+
@use "../../scss/utilities/variables";
|
|
6
|
+
|
|
2
7
|
|
|
3
8
|
.header {
|
|
4
9
|
display: flex;
|
|
@@ -12,8 +17,8 @@
|
|
|
12
17
|
|
|
13
18
|
.datepicker-ui__toggle.mat-mdc-icon-button.mat-mdc-button-base {
|
|
14
19
|
padding: 0;
|
|
15
|
-
width: calc-rem(40px);
|
|
16
|
-
height: calc-rem(40px);
|
|
20
|
+
width: functions.calc-rem(40px);
|
|
21
|
+
height: functions.calc-rem(40px);
|
|
17
22
|
line-height: 2;
|
|
18
23
|
}
|
|
19
24
|
|
|
@@ -44,7 +49,6 @@
|
|
|
44
49
|
|
|
45
50
|
.mat-calendar-body-cell-content {
|
|
46
51
|
border-radius: 0.25rem !important;
|
|
47
|
-
font-size: 1rem !important;
|
|
48
52
|
}
|
|
49
53
|
|
|
50
54
|
.mat-calendar-body-active {
|
|
@@ -101,7 +105,7 @@
|
|
|
101
105
|
}
|
|
102
106
|
|
|
103
107
|
.mat-calendar-table-header th {
|
|
104
|
-
@include fontSize(16px);
|
|
108
|
+
@include mixins.fontSize(16px);
|
|
105
109
|
}
|
|
106
110
|
|
|
107
111
|
.mat-calendar-table-header-divider::after {
|
|
@@ -109,7 +113,7 @@
|
|
|
109
113
|
}
|
|
110
114
|
|
|
111
115
|
.mat-calendar-body {
|
|
112
|
-
@include fontSize(16px);
|
|
116
|
+
@include mixins.fontSize(16px);
|
|
113
117
|
}
|
|
114
118
|
|
|
115
119
|
.mat-calendar-body-in-range {
|
|
@@ -132,7 +136,7 @@
|
|
|
132
136
|
.mat-datepicker-popup {
|
|
133
137
|
.mat-datepicker-content {
|
|
134
138
|
color: var(--color-black);
|
|
135
|
-
box-shadow:
|
|
139
|
+
box-shadow: variables.$box-shadow-large;
|
|
136
140
|
}
|
|
137
141
|
|
|
138
142
|
.mat-datepicker-actions {
|
|
@@ -155,3 +159,25 @@
|
|
|
155
159
|
}
|
|
156
160
|
}
|
|
157
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,3 +1,6 @@
|
|
|
1
|
+
@use "../../scss/modules/dialog";
|
|
2
|
+
@use "../../scss/utilities/functions";
|
|
3
|
+
|
|
1
4
|
.mat-mdc-dialog-container {
|
|
2
5
|
.mdc-dialog__container {
|
|
3
6
|
.mdc-dialog__title {
|
|
@@ -9,7 +12,7 @@
|
|
|
9
12
|
}
|
|
10
13
|
|
|
11
14
|
.mdc-dialog__actions {
|
|
12
|
-
padding: calc-rem(0 24px 24px);
|
|
15
|
+
padding: functions.calc-rem(0 24px 24px);
|
|
13
16
|
justify-content: end !important;
|
|
14
17
|
}
|
|
15
18
|
|
|
@@ -1,18 +1,23 @@
|
|
|
1
|
+
@use "../../scss/utilities/fonts";
|
|
2
|
+
@use "../../scss/utilities/functions";
|
|
3
|
+
@use "../../scss/utilities/mixins";
|
|
4
|
+
@use "../../scss/utilities/variables";
|
|
5
|
+
|
|
1
6
|
.example-headers-align .mat-expansion-panel-header-title {
|
|
2
|
-
@include fontSize(
|
|
7
|
+
@include mixins.fontSize(fonts.$font-heading-xs);
|
|
3
8
|
|
|
4
9
|
color: var(--color-brand-dark);
|
|
5
|
-
font-weight:
|
|
10
|
+
font-weight: fonts.$font-weight-semibold;
|
|
6
11
|
line-height: 32px;
|
|
7
12
|
white-space: nowrap;
|
|
8
13
|
}
|
|
9
14
|
|
|
10
15
|
.mat-accordion {
|
|
11
16
|
.mat-expansion-panel {
|
|
12
|
-
padding: calc-rem(24 24 0 24);
|
|
17
|
+
padding: functions.calc-rem(24 24 0 24);
|
|
13
18
|
|
|
14
19
|
.mat-expansion-panel-header {
|
|
15
|
-
padding: calc-rem(0 0 24 0);
|
|
20
|
+
padding: functions.calc-rem(0 0 24 0);
|
|
16
21
|
|
|
17
22
|
&:hover {
|
|
18
23
|
background: unset !important;
|
|
@@ -20,12 +25,12 @@
|
|
|
20
25
|
}
|
|
21
26
|
|
|
22
27
|
.mat-expansion-panel-body {
|
|
23
|
-
padding: calc-rem(0 0 16 0);
|
|
28
|
+
padding: functions.calc-rem(0 0 16 0);
|
|
24
29
|
}
|
|
25
30
|
}
|
|
26
31
|
|
|
27
32
|
.mat-expansion-panel:not([class*=mat-elevation-z]) {
|
|
28
|
-
box-shadow:
|
|
33
|
+
box-shadow: variables.$box-shadow-default;
|
|
29
34
|
overflow: visible;
|
|
30
35
|
}
|
|
31
36
|
|