ecabs-components 2.0.0-alpha.2 → 2.0.0-alpha.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.
- package/README.md +11 -2
- package/fesm2022/ecabs-components.mjs +647 -472
- package/fesm2022/ecabs-components.mjs.map +1 -1
- package/lib/base/models/ecabs-date-picker-translations.models.d.ts +1 -0
- package/lib/base/validators/date-range.validator.d.ts +14 -0
- package/lib/ecabs-date-picker/ecabs-date-picker.component.d.ts +3 -0
- package/lib/ecabs-date-picker-actions/ecabs-date-picker-actions.component.d.ts +3 -1
- package/lib/ecabs-date-range-picker/ecabs-date-range-picker.component.d.ts +3 -0
- package/lib/ecabs-dialog-confirm/ecabs-dialog-confirm.component.d.ts +0 -1
- package/lib/ecabs-dialog-confirm-deletion/ecabs-dialog-confirm-deletion.component.d.ts +33 -0
- package/lib/ecabs-dialog-confirm-deletion/ecabs-dialog-confirm-deletion.module.d.ts +12 -0
- package/lib/ecabs-expansion-panel/ecabs-expansion-panel.component.d.ts +3 -1
- package/lib/ecabs-radio-button-list/ecabs-radio-button-list.component.d.ts +3 -1
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
- package/src/assets/styles/material/_theme.scss +12 -12
- package/src/assets/styles/material/overrides/_autocomplete.scss +4 -2
- package/src/assets/styles/material/overrides/_button.scss +19 -17
- package/src/assets/styles/material/overrides/_card.scss +6 -4
- package/src/assets/styles/material/overrides/_chip.scss +12 -9
- package/src/assets/styles/material/overrides/_datepicker.scss +11 -6
- package/src/assets/styles/material/overrides/_dialog.scss +6 -3
- package/src/assets/styles/material/overrides/_divider.scss +3 -1
- package/src/assets/styles/material/overrides/_expansion.scss +11 -7
- package/src/assets/styles/material/overrides/_form.scss +11 -8
- package/src/assets/styles/material/overrides/_icon.scss +3 -1
- package/src/assets/styles/material/overrides/_menu.scss +3 -1
- package/src/assets/styles/material/overrides/_paginator.scss +7 -5
- package/src/assets/styles/material/overrides/_phone.scss +10 -7
- package/src/assets/styles/material/overrides/_progress.scss +1 -1
- package/src/assets/styles/material/overrides/_select.scss +21 -17
- package/src/assets/styles/material/overrides/_sidebar.scss +3 -1
- package/src/assets/styles/material/overrides/_tab.scss +7 -4
- package/src/assets/styles/material/overrides/_table.scss +5 -2
- package/src/assets/styles/material/overrides/_toaster.scss +8 -6
- package/src/assets/styles/material/overrides/_tooltip.scss +4 -2
- 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 +14 -9
- package/src/assets/styles/scss/base/index.scss +2 -2
- package/src/assets/styles/scss/modules/_autocomplete.scss +10 -6
- package/src/assets/styles/scss/modules/_button.scss +39 -36
- package/src/assets/styles/scss/modules/_card.scss +13 -8
- package/src/assets/styles/scss/modules/_chip.scss +23 -19
- 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/_form.scss +50 -45
- package/src/assets/styles/scss/modules/_icon.scss +6 -3
- package/src/assets/styles/scss/modules/_legend.scss +20 -15
- package/src/assets/styles/scss/modules/_list.scss +9 -6
- package/src/assets/styles/scss/modules/_map.scss +24 -21
- package/src/assets/styles/scss/modules/_phone.scss +5 -4
- package/src/assets/styles/scss/modules/_select.scss +7 -4
- package/src/assets/styles/scss/modules/_statuses.scss +15 -15
- package/src/assets/styles/scss/modules/_tab.scss +3 -1
- package/src/assets/styles/scss/modules/_table.scss +25 -20
- package/src/assets/styles/scss/modules/_timepicker.scss +10 -6
- package/src/assets/styles/scss/modules/_tooltip.scss +7 -3
- package/src/assets/styles/scss/modules/drag-drop.scss +12 -8
- package/src/assets/styles/scss/modules/index.scss +23 -23
- package/src/assets/styles/scss/utilities/_functions.scss +4 -3
- package/src/assets/styles/scss/utilities/_mixins.scss +11 -7
- package/src/assets/styles/scss/utilities/index.scss +6 -6
- package/src/assets/styles/styles.scss +7 -6
- package/src/assets/styles/tailwind/index.scss +2 -2
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { UntypedFormControl } from '@angular/forms';
|
|
2
|
+
export declare const dateRangeValidator: (control: UntypedFormControl) => {
|
|
3
|
+
dateFromRangeRequired: boolean;
|
|
4
|
+
dateToRangeRequired?: undefined;
|
|
5
|
+
dateFromMoreThanDateTo?: undefined;
|
|
6
|
+
} | {
|
|
7
|
+
dateToRangeRequired: boolean;
|
|
8
|
+
dateFromRangeRequired?: undefined;
|
|
9
|
+
dateFromMoreThanDateTo?: undefined;
|
|
10
|
+
} | {
|
|
11
|
+
dateFromMoreThanDateTo: boolean;
|
|
12
|
+
dateFromRangeRequired?: undefined;
|
|
13
|
+
dateToRangeRequired?: undefined;
|
|
14
|
+
};
|
|
@@ -5,6 +5,7 @@ import { EcabsDatePickerHolidayOptions, EcabsDatePickerTranslations } from '../b
|
|
|
5
5
|
import { EcabsDatePickerHeaderService } from '../base/services/ecabs-date-picker-translations.service';
|
|
6
6
|
import { UnsubscribeService } from '../base/services/unsubscribe.service';
|
|
7
7
|
import { EcabsDatePickerHeaderComponent } from './components/ecabs-date-picker-header/ecabs-date-picker-header.component';
|
|
8
|
+
import { MatDatepicker } from '@angular/material/datepicker';
|
|
8
9
|
import * as i0 from "@angular/core";
|
|
9
10
|
export declare class EcabsDatePickerComponent extends EcabsElementBaseComponent implements ControlValueAccessor, AfterViewInit, OnInit {
|
|
10
11
|
private readonly injector;
|
|
@@ -20,9 +21,11 @@ export declare class EcabsDatePickerComponent extends EcabsElementBaseComponent
|
|
|
20
21
|
specificDates: Date[];
|
|
21
22
|
holidayOptions: EcabsDatePickerHolidayOptions;
|
|
22
23
|
onblur: EventEmitter<any>;
|
|
24
|
+
datepicker: MatDatepicker<any> | undefined;
|
|
23
25
|
val: string | number;
|
|
24
26
|
header: typeof EcabsDatePickerHeaderComponent;
|
|
25
27
|
translationConfig: EcabsDatePickerTranslations;
|
|
28
|
+
disabledApplyButton: boolean;
|
|
26
29
|
get value(): string | number;
|
|
27
30
|
set value(val: string | number);
|
|
28
31
|
constructor(injector: Injector, ecabsDatePickerHeaderService: EcabsDatePickerHeaderService, unsubscribeService: UnsubscribeService);
|
|
@@ -3,7 +3,9 @@ import * as i0 from "@angular/core";
|
|
|
3
3
|
export declare class EcabsDatePickerActionsComponent {
|
|
4
4
|
cancelLabel: string;
|
|
5
5
|
applyLabel: string;
|
|
6
|
+
isDateRange: boolean;
|
|
7
|
+
disabledApplyButton: boolean;
|
|
6
8
|
readonly apply: EventEmitter<void>;
|
|
7
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<EcabsDatePickerActionsComponent, never>;
|
|
8
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EcabsDatePickerActionsComponent, "ecabs-date-picker-actions", never, { "cancelLabel": { "alias": "cancelLabel"; "required": false; }; "applyLabel": { "alias": "applyLabel"; "required": false; }; }, { "apply": "apply"; }, never, never, false, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EcabsDatePickerActionsComponent, "ecabs-date-picker-actions", never, { "cancelLabel": { "alias": "cancelLabel"; "required": false; }; "applyLabel": { "alias": "applyLabel"; "required": false; }; "isDateRange": { "alias": "isDateRange"; "required": false; }; "disabledApplyButton": { "alias": "disabledApplyButton"; "required": false; }; }, { "apply": "apply"; }, never, never, false, never>;
|
|
9
11
|
}
|
|
@@ -5,6 +5,7 @@ import { EcabsDatePickerTranslations } from '../base/models/ecabs-date-picker-tr
|
|
|
5
5
|
import { EcabsDatePickerHeaderService } from '../base/services/ecabs-date-picker-translations.service';
|
|
6
6
|
import { UnsubscribeService } from '../base/services/unsubscribe.service';
|
|
7
7
|
import { EcabsDateRangePickerHeaderComponent } from './components/ecabs-date-range-picker-header/ecabs-date-range-picker-header.component';
|
|
8
|
+
import { MatDateRangePicker } from '@angular/material/datepicker';
|
|
8
9
|
import * as i0 from "@angular/core";
|
|
9
10
|
export declare class EcabsDateRangePickerComponent extends EcabsElementBaseComponent implements ControlValueAccessor, AfterViewInit, OnInit {
|
|
10
11
|
private readonly injector;
|
|
@@ -22,10 +23,12 @@ export declare class EcabsDateRangePickerComponent extends EcabsElementBaseCompo
|
|
|
22
23
|
dateFrom: string;
|
|
23
24
|
dateTo: string;
|
|
24
25
|
};
|
|
26
|
+
datepicker: MatDateRangePicker<any> | undefined;
|
|
25
27
|
header: typeof EcabsDateRangePickerHeaderComponent;
|
|
26
28
|
_dateFrom: string;
|
|
27
29
|
_dateTo: string;
|
|
28
30
|
translationConfig: EcabsDatePickerTranslations;
|
|
31
|
+
disabledApplyButton: boolean;
|
|
29
32
|
get value(): {
|
|
30
33
|
dateFrom: string;
|
|
31
34
|
dateTo: string;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { DestroyRef, OnInit } from '@angular/core';
|
|
2
|
+
import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
|
|
3
|
+
import { ThemePalette } from '@angular/material/core';
|
|
4
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
5
|
+
import { EcabsComponentsService } from '../base/services/ecabs-components.service';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class EcabsDialogConfirmationDeletionComponent implements OnInit {
|
|
8
|
+
dialogRef: MatDialogRef<EcabsDialogConfirmationDeletionComponent>;
|
|
9
|
+
data: EcabsDeleteConfirmationModal;
|
|
10
|
+
private readonly fb;
|
|
11
|
+
private readonly componentsService;
|
|
12
|
+
private readonly destroyRef;
|
|
13
|
+
form: UntypedFormGroup;
|
|
14
|
+
color: ThemePalette;
|
|
15
|
+
constructor(dialogRef: MatDialogRef<EcabsDialogConfirmationDeletionComponent>, data: EcabsDeleteConfirmationModal, fb: UntypedFormBuilder, componentsService: EcabsComponentsService, destroyRef: DestroyRef);
|
|
16
|
+
ngOnInit(): void;
|
|
17
|
+
onConfirm(): void;
|
|
18
|
+
onCancel(): void;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EcabsDialogConfirmationDeletionComponent, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EcabsDialogConfirmationDeletionComponent, "ecabs-dialog-confirm-deletion", never, {}, {}, never, never, false, never>;
|
|
21
|
+
}
|
|
22
|
+
export interface EcabsDeleteConfirmationModal {
|
|
23
|
+
actionName?: string;
|
|
24
|
+
alertText?: string;
|
|
25
|
+
color?: ThemePalette;
|
|
26
|
+
comparisonText?: string;
|
|
27
|
+
confirmLabel?: string;
|
|
28
|
+
cancelLabel?: string;
|
|
29
|
+
entityName?: string;
|
|
30
|
+
entityNameLabel?: string;
|
|
31
|
+
entityNamePlaceholder?: string;
|
|
32
|
+
showEntityNameInHeader?: boolean;
|
|
33
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./ecabs-dialog-confirm-deletion.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@angular/forms";
|
|
5
|
+
import * as i4 from "@angular/material/dialog";
|
|
6
|
+
import * as i5 from "../ecabs-buttons/ecabs-buttons.module";
|
|
7
|
+
import * as i6 from "../ecabs-input/ecabs-input.module";
|
|
8
|
+
export declare class EcabsDialogConfirmDeletionModule {
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EcabsDialogConfirmDeletionModule, never>;
|
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<EcabsDialogConfirmDeletionModule, [typeof i1.EcabsDialogConfirmationDeletionComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i3.ReactiveFormsModule, typeof i4.MatDialogModule, typeof i5.EcabsButtonsModule, typeof i6.EcabsInputModule], never>;
|
|
11
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<EcabsDialogConfirmDeletionModule>;
|
|
12
|
+
}
|
|
@@ -19,11 +19,13 @@ export declare class EcabsExpansionPanelComponent implements OnChanges {
|
|
|
19
19
|
hideToggle: boolean;
|
|
20
20
|
checked: EventEmitter<boolean>;
|
|
21
21
|
opened: EventEmitter<void>;
|
|
22
|
+
closed: EventEmitter<void>;
|
|
22
23
|
expansionPanel: MatExpansionPanel;
|
|
23
24
|
toggle: boolean;
|
|
24
25
|
onOpened(): void;
|
|
26
|
+
onClosed(): void;
|
|
25
27
|
ngOnChanges(changes: SimpleChanges): void;
|
|
26
28
|
toggleAction(event: Event): void;
|
|
27
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<EcabsExpansionPanelComponent, never>;
|
|
28
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EcabsExpansionPanelComponent, "ecabs-expansion-panel", never, { "title": { "alias": "title"; "required": false; }; "description": { "alias": "description"; "required": false; }; "actionTitle": { "alias": "actionTitle"; "required": false; }; "index": { "alias": "index"; "required": false; }; "expanded": { "alias": "expanded"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "errorMessage": { "alias": "errorMessage"; "required": false; }; "showErrorMessage": { "alias": "showErrorMessage"; "required": false; }; "closePanel": { "alias": "closePanel"; "required": false; }; "showIcon": { "alias": "showIcon"; "required": false; }; "iconName": { "alias": "iconName"; "required": false; }; "showCheckbox": { "alias": "showCheckbox"; "required": false; }; "showStatus": { "alias": "showStatus"; "required": false; }; "status": { "alias": "status"; "required": false; }; "hideToggle": { "alias": "hideToggle"; "required": false; }; }, { "checked": "checked"; "opened": "opened"; }, never, ["*"], false, never>;
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EcabsExpansionPanelComponent, "ecabs-expansion-panel", never, { "title": { "alias": "title"; "required": false; }; "description": { "alias": "description"; "required": false; }; "actionTitle": { "alias": "actionTitle"; "required": false; }; "index": { "alias": "index"; "required": false; }; "expanded": { "alias": "expanded"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "errorMessage": { "alias": "errorMessage"; "required": false; }; "showErrorMessage": { "alias": "showErrorMessage"; "required": false; }; "closePanel": { "alias": "closePanel"; "required": false; }; "showIcon": { "alias": "showIcon"; "required": false; }; "iconName": { "alias": "iconName"; "required": false; }; "showCheckbox": { "alias": "showCheckbox"; "required": false; }; "showStatus": { "alias": "showStatus"; "required": false; }; "status": { "alias": "status"; "required": false; }; "hideToggle": { "alias": "hideToggle"; "required": false; }; }, { "checked": "checked"; "opened": "opened"; "closed": "closed"; }, never, ["*"], false, never>;
|
|
29
31
|
}
|
|
@@ -2,12 +2,14 @@ import { AfterViewInit, EventEmitter, Injector } from '@angular/core';
|
|
|
2
2
|
import { ControlValueAccessor } from '@angular/forms';
|
|
3
3
|
import EcabsElementBaseComponent from '../base/element-base';
|
|
4
4
|
import { SelectOption } from '../base/models/select.models';
|
|
5
|
+
import { MatRadioChange, MatRadioGroup } from '@angular/material/radio';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class EcabsRadioButtonListComponent extends EcabsElementBaseComponent implements ControlValueAccessor, AfterViewInit {
|
|
7
8
|
private injector;
|
|
9
|
+
matRadioGroup: MatRadioGroup;
|
|
8
10
|
items: SelectOption[];
|
|
9
11
|
direction: 'horizontal' | 'vertical';
|
|
10
|
-
changed: EventEmitter<any
|
|
12
|
+
readonly changed: EventEmitter<MatRadioChange<any>>;
|
|
11
13
|
val: string;
|
|
12
14
|
get value(): string;
|
|
13
15
|
set value(val: string);
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -127,3 +127,5 @@ export * from './lib/base/utils/object-utils';
|
|
|
127
127
|
export * from './lib/base/consts/buttons.consts';
|
|
128
128
|
export * from './lib/base/adapters/date.adapter';
|
|
129
129
|
export * from './lib/base/consts/waypoint.consts';
|
|
130
|
+
export * from './lib/ecabs-dialog-confirm-deletion/ecabs-dialog-confirm-deletion.module';
|
|
131
|
+
export * from './lib/ecabs-dialog-confirm-deletion/ecabs-dialog-confirm-deletion.component';
|
|
@@ -3,8 +3,8 @@
|
|
|
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/fonts';
|
|
7
|
+
@use './overrides/index';
|
|
8
8
|
|
|
9
9
|
// Include the common styles for Angular Material. We include this here so that you only
|
|
10
10
|
// have to load a single css file for Angular Material in your app.
|
|
@@ -60,24 +60,24 @@ $cuorium-warn: mat.m2-define-palette($mat-warning);
|
|
|
60
60
|
// Define a custom typography config that overrides the font-family as well as the
|
|
61
61
|
// `headlines` and `body-1` levels.
|
|
62
62
|
$custom-typography: mat.m2-define-typography-config(
|
|
63
|
-
$font-family:
|
|
63
|
+
$font-family: fonts.$font-family-primary,
|
|
64
64
|
$body-1: mat.m2-define-typography-level(
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
65
|
+
fonts.$font-size-base,
|
|
66
|
+
fonts.$base-line-height,
|
|
67
|
+
fonts.$font-weight-regular,
|
|
68
68
|
$letter-spacing: normal,
|
|
69
|
-
$font-family:
|
|
69
|
+
$font-family: fonts.$font-family-primary,
|
|
70
70
|
),
|
|
71
71
|
$button: mat.m2-define-typography-level(
|
|
72
|
-
|
|
72
|
+
fonts.$font-size-base,
|
|
73
73
|
$letter-spacing: normal,
|
|
74
74
|
),
|
|
75
75
|
$body-2: mat.m2-define-typography-level(
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
76
|
+
fonts.$font-size-base,
|
|
77
|
+
fonts.$base-line-height,
|
|
78
|
+
fonts.$font-weight-regular,
|
|
79
79
|
$letter-spacing: normal,
|
|
80
|
-
$font-family:
|
|
80
|
+
$font-family: fonts.$font-family-primary,
|
|
81
81
|
)
|
|
82
82
|
);
|
|
83
83
|
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
+
@use "../../scss/modules";
|
|
2
|
+
|
|
1
3
|
.ecabs-autocomplete {
|
|
2
4
|
.mat-mdc-autocomplete-panel {
|
|
3
|
-
@extend .autocomplete-ui;
|
|
5
|
+
@extend .autocomplete-ui !optional;
|
|
4
6
|
|
|
5
7
|
margin-top: 0.2rem;
|
|
6
8
|
|
|
7
9
|
.mat-mdc-option {
|
|
8
|
-
@extend .autocomplete-ui--item;
|
|
10
|
+
@extend .autocomplete-ui--item !optional;
|
|
9
11
|
}
|
|
10
12
|
}
|
|
11
13
|
}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
+
@use "../../scss/modules";
|
|
2
|
+
|
|
1
3
|
button,
|
|
2
4
|
a {
|
|
3
5
|
&.mdc-button {
|
|
4
|
-
@extend .btn;
|
|
6
|
+
@extend .btn !optional;
|
|
5
7
|
|
|
6
8
|
&.btn__group--item,
|
|
7
9
|
&.btn {
|
|
8
|
-
@extend .btn__group--item;
|
|
10
|
+
@extend .btn__group--item !optional;
|
|
9
11
|
}
|
|
10
12
|
|
|
11
13
|
.mat-icon {
|
|
@@ -14,55 +16,55 @@ a {
|
|
|
14
16
|
}
|
|
15
17
|
|
|
16
18
|
&.mdc-button.mat-primary {
|
|
17
|
-
@extend .btn__primary;
|
|
19
|
+
@extend .btn__primary !optional;
|
|
18
20
|
}
|
|
19
21
|
|
|
20
22
|
&.mdc-button--outlined.mat-primary {
|
|
21
|
-
@extend .btn__primary--outline;
|
|
23
|
+
@extend .btn__primary--outline !optional;
|
|
22
24
|
|
|
23
|
-
border:
|
|
25
|
+
border: 1px solid;
|
|
24
26
|
}
|
|
25
27
|
|
|
26
28
|
&.mdc-button.mat-accent {
|
|
27
|
-
@extend .btn__secondary;
|
|
29
|
+
@extend .btn__secondary !optional;
|
|
28
30
|
}
|
|
29
31
|
|
|
30
32
|
&.mdc-button--outlined.mat-accent {
|
|
31
|
-
@extend .btn__secondary--outline;
|
|
33
|
+
@extend .btn__secondary--outline !optional;
|
|
32
34
|
|
|
33
|
-
border:
|
|
35
|
+
border: 1px solid;
|
|
34
36
|
}
|
|
35
37
|
|
|
36
38
|
&.mdc-button.mat-warn {
|
|
37
|
-
@extend .btn__warn;
|
|
39
|
+
@extend .btn__warn !optional;
|
|
38
40
|
}
|
|
39
41
|
|
|
40
42
|
&.mdc-button--outlined.mat-warn {
|
|
41
|
-
@extend .btn__warn--outline;
|
|
43
|
+
@extend .btn__warn--outline !optional;
|
|
42
44
|
|
|
43
|
-
border:
|
|
45
|
+
border: 1px solid;
|
|
44
46
|
}
|
|
45
47
|
|
|
46
48
|
&.mdc-button.mat-success {
|
|
47
|
-
@extend .btn__success;
|
|
49
|
+
@extend .btn__success !optional;
|
|
48
50
|
}
|
|
49
51
|
|
|
50
52
|
&.mdc-button--outlined.mat-success {
|
|
51
|
-
@extend .btn__success--outline;
|
|
53
|
+
@extend .btn__success--outline !optional;
|
|
52
54
|
|
|
53
|
-
border:
|
|
55
|
+
border: 1px solid;
|
|
54
56
|
}
|
|
55
57
|
|
|
56
58
|
&.mat-mdc-unelevated-button:disabled {
|
|
57
|
-
@extend .btn__disabled;
|
|
59
|
+
@extend .btn__disabled !optional;
|
|
58
60
|
}
|
|
59
61
|
|
|
60
62
|
&.mat-mdc-outlined-button:disabled {
|
|
61
|
-
@extend .btn__disabled--outline;
|
|
63
|
+
@extend .btn__disabled--outline !optional;
|
|
62
64
|
}
|
|
63
65
|
|
|
64
66
|
.mdc-button__label {
|
|
65
|
-
@extend .btn__with-icon--wrapper;
|
|
67
|
+
@extend .btn__with-icon--wrapper !optional;
|
|
66
68
|
}
|
|
67
69
|
|
|
68
70
|
&.mat-mdc-icon-button {
|
|
@@ -1,17 +1,19 @@
|
|
|
1
|
+
@use "../../scss/modules";
|
|
2
|
+
|
|
1
3
|
.mat-mdc-card {
|
|
2
4
|
&.mdc-card {
|
|
3
|
-
@extend .card;
|
|
5
|
+
@extend .card !optional;
|
|
4
6
|
|
|
5
7
|
.mat-mdc-card-subtitle {
|
|
6
|
-
@extend .card--subtitle;
|
|
8
|
+
@extend .card--subtitle !optional;
|
|
7
9
|
}
|
|
8
10
|
|
|
9
11
|
.mat-mdc-card-title {
|
|
10
|
-
@extend .card--title;
|
|
12
|
+
@extend .card--title !optional;
|
|
11
13
|
}
|
|
12
14
|
|
|
13
15
|
.mat-mdc-card-content {
|
|
14
|
-
@extend .card__content;
|
|
16
|
+
@extend .card__content !optional;
|
|
15
17
|
}
|
|
16
18
|
}
|
|
17
19
|
}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
@use "../../scss/modules/chip";
|
|
2
|
+
@use "../../scss/modules/statuses";
|
|
3
|
+
|
|
1
4
|
.mdc-evolution-chip {
|
|
2
5
|
&,
|
|
3
6
|
&.mat-mdc-standard-chip {
|
|
@@ -40,23 +43,23 @@
|
|
|
40
43
|
}
|
|
41
44
|
|
|
42
45
|
&.cab_arrived_at_pickup {
|
|
43
|
-
@extend .cab_arrived_at_pickup;
|
|
46
|
+
@extend .cab_arrived_at_pickup ;
|
|
44
47
|
}
|
|
45
48
|
|
|
46
49
|
&.cancelled {
|
|
47
|
-
@extend .cancelled;
|
|
50
|
+
@extend .cancelled ;
|
|
48
51
|
}
|
|
49
52
|
|
|
50
53
|
&.completed, &.done {
|
|
51
|
-
@extend .completed;
|
|
54
|
+
@extend .completed ;
|
|
52
55
|
}
|
|
53
56
|
|
|
54
57
|
&.dispatched {
|
|
55
|
-
@extend .dispatched;
|
|
58
|
+
@extend .dispatched ;
|
|
56
59
|
}
|
|
57
60
|
|
|
58
61
|
&.in_progress {
|
|
59
|
-
@extend .in_progress;
|
|
62
|
+
@extend .in_progress ;
|
|
60
63
|
}
|
|
61
64
|
|
|
62
65
|
&.dropped_off {
|
|
@@ -77,19 +80,19 @@
|
|
|
77
80
|
}
|
|
78
81
|
|
|
79
82
|
&.reserved, &.scheduled, &.ended {
|
|
80
|
-
@extend .reserved;
|
|
83
|
+
@extend .reserved ;
|
|
81
84
|
}
|
|
82
85
|
|
|
83
86
|
&.trip_ended {
|
|
84
|
-
@extend .trip_ended;
|
|
87
|
+
@extend .trip_ended ;
|
|
85
88
|
}
|
|
86
89
|
|
|
87
90
|
&.trip_ongoing {
|
|
88
|
-
@extend .trip_ongoing;
|
|
91
|
+
@extend .trip_ongoing ;
|
|
89
92
|
}
|
|
90
93
|
|
|
91
94
|
&.trip_started, &.started {
|
|
92
|
-
@extend .trip_started;
|
|
95
|
+
@extend .trip_started ;
|
|
93
96
|
}
|
|
94
97
|
|
|
95
98
|
&.blacklisted {
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use "../../scss/utilities/index";
|
|
2
|
+
@use "../../scss/utilities/functions";
|
|
3
|
+
@use "../../scss/utilities/mixins";
|
|
4
|
+
@use "../../scss/utilities/variables";
|
|
5
|
+
@use "../../scss/modules";
|
|
2
6
|
|
|
3
7
|
.header {
|
|
4
8
|
display: flex;
|
|
@@ -12,8 +16,8 @@
|
|
|
12
16
|
|
|
13
17
|
.datepicker-ui__toggle.mat-mdc-icon-button.mat-mdc-button-base {
|
|
14
18
|
padding: 0;
|
|
15
|
-
width: calc-rem(40px);
|
|
16
|
-
height: calc-rem(40px);
|
|
19
|
+
width: functions.calc-rem(40px);
|
|
20
|
+
height: functions.calc-rem(40px);
|
|
17
21
|
line-height: 2;
|
|
18
22
|
}
|
|
19
23
|
|
|
@@ -44,6 +48,7 @@
|
|
|
44
48
|
|
|
45
49
|
.mat-calendar-body-cell-content {
|
|
46
50
|
border-radius: 0.25rem !important;
|
|
51
|
+
font-size: 1rem !important;
|
|
47
52
|
}
|
|
48
53
|
|
|
49
54
|
.mat-calendar-body-active {
|
|
@@ -100,7 +105,7 @@
|
|
|
100
105
|
}
|
|
101
106
|
|
|
102
107
|
.mat-calendar-table-header th {
|
|
103
|
-
@include fontSize(16px);
|
|
108
|
+
@include mixins.fontSize(16px);
|
|
104
109
|
}
|
|
105
110
|
|
|
106
111
|
.mat-calendar-table-header-divider::after {
|
|
@@ -108,7 +113,7 @@
|
|
|
108
113
|
}
|
|
109
114
|
|
|
110
115
|
.mat-calendar-body {
|
|
111
|
-
@include fontSize(16px);
|
|
116
|
+
@include mixins.fontSize(16px);
|
|
112
117
|
}
|
|
113
118
|
|
|
114
119
|
.mat-calendar-body-in-range {
|
|
@@ -131,7 +136,7 @@
|
|
|
131
136
|
.mat-datepicker-popup {
|
|
132
137
|
.mat-datepicker-content {
|
|
133
138
|
color: var(--color-black);
|
|
134
|
-
box-shadow:
|
|
139
|
+
box-shadow: variables.$box-shadow-large;
|
|
135
140
|
}
|
|
136
141
|
|
|
137
142
|
.mat-datepicker-actions {
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
@use "../../scss/utilities/functions";
|
|
2
|
+
@use "../../scss/modules";
|
|
3
|
+
|
|
1
4
|
.mat-mdc-dialog-container {
|
|
2
5
|
.mdc-dialog__container {
|
|
3
6
|
.mdc-dialog__title {
|
|
4
|
-
@extend .dialog__title;
|
|
7
|
+
@extend .dialog__title !optional;
|
|
5
8
|
|
|
6
9
|
&::before {
|
|
7
10
|
height: unset;
|
|
@@ -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
|
|
|
@@ -20,6 +23,6 @@
|
|
|
20
23
|
}
|
|
21
24
|
|
|
22
25
|
.dialog--maps .mdc-dialog__container {
|
|
23
|
-
@extend .dialog--maps;
|
|
26
|
+
@extend .dialog--maps !optional;
|
|
24
27
|
}
|
|
25
28
|
|
|
@@ -1,18 +1,23 @@
|
|
|
1
|
+
@use "../../scss/utilities/mixins";
|
|
2
|
+
@use "../../scss/utilities/fonts";
|
|
3
|
+
@use "../../scss/utilities/variables";
|
|
4
|
+
@use "../../scss/utilities/functions";
|
|
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,13 +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
|
-
|
|
32
36
|
}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use "../../../styles/scss/utilities/helpers";
|
|
2
|
+
@use "../../../styles/scss/utilities/mixins";
|
|
3
|
+
@use "../../../styles/scss/utilities/fonts";
|
|
4
|
+
@use "../../scss/modules";
|
|
2
5
|
|
|
3
6
|
.mat-mdc-form-field {
|
|
4
7
|
display: block !important;
|
|
@@ -28,29 +31,29 @@
|
|
|
28
31
|
|
|
29
32
|
&-disabled {
|
|
30
33
|
.mat-mdc-input-element {
|
|
31
|
-
@extend .form-field__input--disabled;
|
|
34
|
+
@extend .form-field__input--disabled !optional;
|
|
32
35
|
}
|
|
33
36
|
}
|
|
34
37
|
|
|
35
38
|
&-label {
|
|
36
|
-
@extend .form-field__label;
|
|
39
|
+
@extend .form-field__label !optional;
|
|
37
40
|
}
|
|
38
41
|
|
|
39
42
|
&-invalid {
|
|
40
43
|
.mat-mdc-input-element,
|
|
41
44
|
mat-error,
|
|
42
45
|
mat-date-range-input {
|
|
43
|
-
@extend .form-field__input--invalid;
|
|
46
|
+
@extend .form-field__input--invalid !optional;
|
|
44
47
|
}
|
|
45
48
|
}
|
|
46
49
|
|
|
47
50
|
&-suffix,
|
|
48
51
|
[matsuffix] {
|
|
49
|
-
@extend .form-field__input--suffix;
|
|
52
|
+
@extend .form-field__input--suffix !optional;
|
|
50
53
|
}
|
|
51
54
|
|
|
52
55
|
.mat-mdc-input-element {
|
|
53
|
-
@extend .form-field__input;
|
|
56
|
+
@extend .form-field__input !optional;
|
|
54
57
|
}
|
|
55
58
|
|
|
56
59
|
.mat-form-field-subscript-wrapper {
|
|
@@ -61,7 +64,7 @@
|
|
|
61
64
|
.mat-mdc-slide-toggle-label,
|
|
62
65
|
.mat-mdc-checkbox .mdc-form-field .mdc-label,
|
|
63
66
|
.mat-mdc-radio-button .mdc-form-field .mdc-label {
|
|
64
|
-
@include fontSize(
|
|
67
|
+
@include mixins.fontSize(fonts.$font-size-base);
|
|
65
68
|
|
|
66
69
|
margin-bottom: 0;
|
|
67
70
|
color: var(--color-black);
|
|
@@ -79,7 +82,7 @@
|
|
|
79
82
|
.form-field__label {
|
|
80
83
|
&:not([class*=mat-slide-toggle-label], [class*=mat-radio-label]) {
|
|
81
84
|
&:after {
|
|
82
|
-
@extend %required;
|
|
85
|
+
@extend %required !optional;
|
|
83
86
|
}
|
|
84
87
|
}
|
|
85
88
|
}
|