ecabs-components 1.1.56 → 1.1.62
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 +8 -0
- package/esm2022/lib/base/consts/error-messages.consts.mjs +13 -1
- package/esm2022/lib/base/directives/date-mask.directive.mjs +56 -80
- package/esm2022/lib/base/directives/time-mask.directive.mjs +12 -35
- package/esm2022/lib/base/directives/time-range.directive.mjs +6 -32
- package/esm2022/lib/base/element-wrapper/element-wrapper.component.mjs +3 -3
- package/esm2022/lib/base/models/phone.models.mjs +1 -1
- package/esm2022/lib/base/models/select.models.mjs +1 -1
- package/esm2022/lib/base/models/sidebar.models.mjs +1 -1
- package/esm2022/lib/base/pipes/phone-number-country-code.pipe.mjs +31 -0
- package/esm2022/lib/base/pipes/truncate.pipe.mjs +14 -4
- package/esm2022/lib/base/utils/object-utils.mjs +9 -1
- package/esm2022/lib/base/utils/time-mask.util.mjs +87 -0
- package/esm2022/lib/ecabs-button-toggle/ecabs-button-toggle.component.mjs +4 -4
- package/esm2022/lib/ecabs-buttons-v2/ecabs-buttons-v2.component.mjs +5 -5
- package/esm2022/lib/ecabs-checkbox-toggle/ecabs-checkbox-toggle.component.mjs +2 -2
- package/esm2022/lib/ecabs-checkbox-v2/ecabs-checkbox-v2.component.mjs +105 -0
- package/esm2022/lib/ecabs-checkbox-v2/ecabs-checkbox-v2.module.mjs +22 -0
- package/esm2022/lib/ecabs-chip-autocomplete/ecabs-chip-autocomplete.component.mjs +197 -0
- package/esm2022/lib/ecabs-chip-group/ecabs-chip-group.component.mjs +61 -0
- package/esm2022/lib/ecabs-chip-group/ecabs-chip-group.module.mjs +20 -0
- package/esm2022/lib/ecabs-date-range-picker/ecabs-date-range-picker.component.mjs +2 -2
- package/esm2022/lib/ecabs-date-range-picker-v2/ecabs-date-range-picker-v2.component.mjs +9 -8
- package/esm2022/lib/ecabs-date-time-picker/ecabs-date-time-picker.component.mjs +31 -11
- package/esm2022/lib/ecabs-date-time-range-picker/ecabs-date-time-range-picker.component.mjs +3 -3
- 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-range/ecabs-input-range.component.mjs +188 -0
- package/esm2022/lib/ecabs-input-range/ecabs-input-range.module.mjs +40 -0
- package/esm2022/lib/ecabs-language-selector/ecabs-language-selector.component.mjs +2 -2
- package/esm2022/lib/ecabs-menu-items/ecabs-menu-items.component.mjs +3 -3
- 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-table/ecabs-table-filter-wrapper/ecabs-table-filter-wrapper.component.mjs +2 -2
- package/esm2022/lib/ecabs-time-range-input-v2/config.model.mjs +2 -0
- package/esm2022/lib/ecabs-time-range-input-v2/ecabs-time-range-input-v2.component.mjs +167 -0
- package/esm2022/lib/ecabs-time-range-input-v2/ecabs-time-range-input-v2.module.mjs +32 -0
- package/esm2022/lib/ecabs-time-range-input-v2/ecabs-time-range-input-v2.service.mjs +29 -0
- package/esm2022/lib/ecabs-timepicker/ecabs-timepicker.component.mjs +3 -55
- package/esm2022/public-api.mjs +12 -1
- package/fesm2022/ecabs-components.mjs +1064 -329
- package/fesm2022/ecabs-components.mjs.map +1 -1
- package/lib/base/directives/date-mask.directive.d.ts +6 -7
- 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/phone.models.d.ts +1 -0
- package/lib/base/models/select.models.d.ts +2 -2
- package/lib/base/models/sidebar.models.d.ts +1 -1
- package/lib/base/pipes/phone-number-country-code.pipe.d.ts +8 -0
- package/lib/base/utils/object-utils.d.ts +1 -0
- package/lib/base/utils/time-mask.util.d.ts +3 -0
- package/lib/ecabs-button-toggle/ecabs-button-toggle.component.d.ts +9 -10
- package/lib/ecabs-checkbox-v2/ecabs-checkbox-v2.component.d.ts +29 -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 +50 -0
- package/lib/ecabs-chip-group/ecabs-chip-group.component.d.ts +21 -0
- package/lib/ecabs-chip-group/ecabs-chip-group.module.d.ts +10 -0
- package/lib/ecabs-date-range-picker-v2/ecabs-date-range-picker-v2.component.d.ts +1 -0
- package/lib/ecabs-date-time-picker/ecabs-date-time-picker.component.d.ts +4 -2
- 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-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 +51 -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 +4 -2
- package/public-api.d.ts +11 -0
- package/src/assets/styles/material/overrides/_autocomplete.scss +19 -0
- package/src/assets/styles/material/overrides/_chip.scss +80 -0
- package/src/assets/styles/material/overrides/_datepicker.scss +22 -0
- package/src/assets/styles/scss/modules/_autocomplete.scss +1 -1
- package/src/assets/styles/scss/modules/_chip.scss +7 -1
- package/src/assets/styles/scss/modules/_form.scss +6 -6
- package/src/assets/styles/scss/utilities/_colors.scss +3 -5
- package/src/assets/styles/scss/utilities/_fonts.scss +4 -0
- package/src/assets/styles/scss/utilities/_variables.scss +2 -0
- package/src/assets/styles/tailwind/index.scss +1 -1
- package/esm2022/lib/base/consts/date-mask.consts.mjs +0 -76
- package/lib/base/consts/date-mask.consts.d.ts +0 -7
|
@@ -4,16 +4,15 @@ export declare class EcabsMaskDateDirective implements OnInit, OnDestroy {
|
|
|
4
4
|
private readonly element;
|
|
5
5
|
isDateTimeMask: boolean;
|
|
6
6
|
considerSeconds: boolean;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
maskDateTime: (string | RegExp)[];
|
|
10
|
-
maskDateTimeWithSeconds: (string | RegExp)[];
|
|
11
|
-
config: any;
|
|
7
|
+
private maskedInput;
|
|
8
|
+
private readonly timeMaskOptions;
|
|
12
9
|
constructor(element: ElementRef);
|
|
13
|
-
onNgModelChange(value: any): void;
|
|
14
10
|
ngOnInit(): void;
|
|
15
11
|
ngOnDestroy(): void;
|
|
16
|
-
private
|
|
12
|
+
private buildDynamicMask;
|
|
13
|
+
private getDaySegment;
|
|
14
|
+
private getMonthSegment;
|
|
15
|
+
private extractTimeValue;
|
|
17
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<EcabsMaskDateDirective, never>;
|
|
18
17
|
static ɵdir: i0.ɵɵDirectiveDeclaration<EcabsMaskDateDirective, "[ecabsMaskDate]", never, { "isDateTimeMask": { "alias": "isDateTimeMask"; "required": false; }; "considerSeconds": { "alias": "considerSeconds"; "required": false; }; }, {}, never, never, false, never>;
|
|
19
18
|
}
|
|
@@ -4,12 +4,11 @@ export declare class EcabsMaskTimeDirective implements OnInit, OnDestroy {
|
|
|
4
4
|
private readonly element;
|
|
5
5
|
timeRange?: boolean;
|
|
6
6
|
all: string;
|
|
7
|
-
|
|
8
|
-
maskTimeRange: (string | RegExp)[];
|
|
9
|
-
maskTime: (string | RegExp)[];
|
|
7
|
+
private maskedInput;
|
|
10
8
|
constructor(element: ElementRef);
|
|
11
9
|
ngOnInit(): void;
|
|
12
10
|
ngOnDestroy(): void;
|
|
11
|
+
private getMaskOptions;
|
|
13
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<EcabsMaskTimeDirective, never>;
|
|
14
13
|
static ɵdir: i0.ɵɵDirectiveDeclaration<EcabsMaskTimeDirective, "[ecabsTime]", never, { "timeRange": { "alias": "timeRange"; "required": false; }; "all": { "alias": "all"; "required": false; }; }, {}, never, never, false, never>;
|
|
15
14
|
}
|
|
@@ -5,8 +5,7 @@ export declare class EcabsTimeRangeDirective implements OnInit, OnDestroy {
|
|
|
5
5
|
isDateTimeMask: boolean;
|
|
6
6
|
considerSeconds: boolean;
|
|
7
7
|
all: string;
|
|
8
|
-
|
|
9
|
-
maskDateTime: (string | RegExp)[];
|
|
8
|
+
private maskedInput;
|
|
10
9
|
constructor(element: ElementRef);
|
|
11
10
|
ngOnInit(): void;
|
|
12
11
|
ngOnDestroy(): void;
|
|
@@ -6,7 +6,7 @@ export interface SidebarMenuItem {
|
|
|
6
6
|
subItems?: SidebarMenuItem[];
|
|
7
7
|
permissions?: PermissionValueEnum<string>[];
|
|
8
8
|
iconResource?: SidebarIconResource;
|
|
9
|
-
|
|
9
|
+
badge?: string;
|
|
10
10
|
}
|
|
11
11
|
type PermissionValueEnum<T extends string> = {
|
|
12
12
|
values: Record<T, string>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { PhoneNumberCodeType } from '../models/phone.models';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class NumberToCountryCodePipe implements PipeTransform {
|
|
5
|
+
transform(phoneNumber: string | null, type?: PhoneNumberCodeType, withFlagClass?: boolean): string | null;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NumberToCountryCodePipe, never>;
|
|
7
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<NumberToCountryCodePipe, "numberToCountryCode", true>;
|
|
8
|
+
}
|
|
@@ -6,3 +6,4 @@ export interface Sorter<T> {
|
|
|
6
6
|
export declare const sortGeneric: <T>(objX: T, objY: T, sortParams: Sorter<T>) => number;
|
|
7
7
|
export declare const removeNullUndefineds: <T>(obj: any, exceptProperties?: string[]) => T;
|
|
8
8
|
export declare const removeEmpty: <T>(o: any, exceptProperties?: string[]) => T;
|
|
9
|
+
export declare function getRandomItems<U>(items: U[], count: number): U[];
|
|
@@ -4,23 +4,22 @@ import { MatButtonToggleChange } from '@angular/material/button-toggle';
|
|
|
4
4
|
import { SelectOption } from '../base/models/select.models';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export type ButtonToggleSize = 'small' | 'medium' | 'large';
|
|
7
|
-
export
|
|
8
|
-
|
|
9
|
-
options: SelectOption[];
|
|
7
|
+
export declare class EcabsButtonToggleComponent<T = unknown> implements ControlValueAccessor {
|
|
8
|
+
options: SelectOption<T>[];
|
|
10
9
|
multiple: boolean;
|
|
11
10
|
size: ButtonToggleSize;
|
|
12
|
-
value:
|
|
13
|
-
valueChange: EventEmitter<
|
|
11
|
+
value: T | T[];
|
|
12
|
+
valueChange: EventEmitter<T | T[]>;
|
|
14
13
|
isDisabled: boolean;
|
|
15
14
|
private onChange;
|
|
16
15
|
private onTouched;
|
|
17
16
|
constructor();
|
|
18
17
|
onGroupChange(event: MatButtonToggleChange): void;
|
|
19
|
-
trackByOptionValue(index: number, option: SelectOption):
|
|
20
|
-
writeValue(value:
|
|
21
|
-
registerOnChange(fn: (value:
|
|
18
|
+
trackByOptionValue(index: number, option: SelectOption<T>): T | number;
|
|
19
|
+
writeValue(value: T | T[]): void;
|
|
20
|
+
registerOnChange(fn: (value: T | T[]) => void): void;
|
|
22
21
|
registerOnTouched(fn: () => void): void;
|
|
23
22
|
setDisabledState(isDisabled: boolean): void;
|
|
24
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<EcabsButtonToggleComponent
|
|
25
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EcabsButtonToggleComponent
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EcabsButtonToggleComponent<any>, never>;
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EcabsButtonToggleComponent<any>, "ecabs-button-toggle", never, { "options": { "alias": "options"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "size": { "alias": "size"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, false, never>;
|
|
26
25
|
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { AfterViewInit, DestroyRef, EventEmitter, Injector } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
+
import { MatCheckboxChange } from '@angular/material/checkbox';
|
|
4
|
+
import EcabsElementBaseComponent from '../base/element-base';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class EcabsCheckboxV2Component extends EcabsElementBaseComponent implements ControlValueAccessor, AfterViewInit {
|
|
7
|
+
private readonly injector;
|
|
8
|
+
private readonly destroyRef;
|
|
9
|
+
label: string;
|
|
10
|
+
showLabel: boolean;
|
|
11
|
+
readonly checkboxChanged: EventEmitter<boolean>;
|
|
12
|
+
val: boolean;
|
|
13
|
+
get value(): boolean;
|
|
14
|
+
get hasError(): boolean;
|
|
15
|
+
set value(value: boolean);
|
|
16
|
+
constructor(injector: Injector, destroyRef: DestroyRef);
|
|
17
|
+
onChange: (value: boolean) => void;
|
|
18
|
+
onTouched: () => void;
|
|
19
|
+
ngAfterViewInit(): void;
|
|
20
|
+
toggle(event: MatCheckboxChange): void;
|
|
21
|
+
onRowClick(): void;
|
|
22
|
+
onKeyDown(event: KeyboardEvent): void;
|
|
23
|
+
onBlur(): void;
|
|
24
|
+
writeValue(value: boolean | null | undefined): void;
|
|
25
|
+
registerOnChange(fn: (value: boolean) => void): void;
|
|
26
|
+
registerOnTouched(fn: () => void): void;
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EcabsCheckboxV2Component, never>;
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EcabsCheckboxV2Component, "ecabs-checkbox-v2", never, { "label": { "alias": "label"; "required": false; }; "showLabel": { "alias": "showLabel"; "required": false; }; }, { "checkboxChanged": "checkboxChanged"; }, never, never, false, never>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./ecabs-checkbox-v2.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "../base/element-wrapper/element-wrapper.module";
|
|
5
|
+
import * as i4 from "@angular/forms";
|
|
6
|
+
import * as i5 from "@angular/material/icon";
|
|
7
|
+
import * as i6 from "@angular/material/checkbox";
|
|
8
|
+
export declare class EcabsCheckboxV2Module {
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EcabsCheckboxV2Module, never>;
|
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<EcabsCheckboxV2Module, [typeof i1.EcabsCheckboxV2Component], [typeof i2.CommonModule, typeof i3.ElementWrapperModule, typeof i4.FormsModule, typeof i5.MatIconModule, typeof i6.MatCheckboxModule], [typeof i1.EcabsCheckboxV2Component]>;
|
|
11
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<EcabsCheckboxV2Module>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { EventEmitter, TemplateRef } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor, FormControl } from '@angular/forms';
|
|
3
|
+
import { SelectOption } from '../base/models/select.models';
|
|
4
|
+
import EcabsElementBaseComponent from '../base/element-base';
|
|
5
|
+
import { MatAutocompleteSelectedEvent } from '@angular/material/autocomplete';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class EcabsChipAutocompleteComponent<T = unknown> extends EcabsElementBaseComponent implements ControlValueAccessor {
|
|
8
|
+
private readonly document;
|
|
9
|
+
private readonly inputRef?;
|
|
10
|
+
visibleOptions: number;
|
|
11
|
+
autoActiveFirstOption: boolean;
|
|
12
|
+
noResultsText: string;
|
|
13
|
+
compareFn: (a: T, b: T) => boolean;
|
|
14
|
+
avatarTemplate: TemplateRef<{
|
|
15
|
+
$implicit: SelectOption<T>;
|
|
16
|
+
}> | null;
|
|
17
|
+
truncateAt: number;
|
|
18
|
+
set options(value: SelectOption<T>[] | null);
|
|
19
|
+
readonly selectionChange: EventEmitter<T[]>;
|
|
20
|
+
readonly termChange: EventEmitter<string>;
|
|
21
|
+
protected readonly inputControl: FormControl<string>;
|
|
22
|
+
private readonly normalizedTerm$;
|
|
23
|
+
private readonly _options;
|
|
24
|
+
private readonly _values;
|
|
25
|
+
private readonly _term;
|
|
26
|
+
private readonly destroyRef;
|
|
27
|
+
protected readonly overlayPanelClass = "ecabs-chip-autocomplete-overlay-panel";
|
|
28
|
+
protected readonly isDisabled: import("@angular/core").WritableSignal<boolean>;
|
|
29
|
+
protected readonly selectedOptions: import("@angular/core").Signal<SelectOption<T>[]>;
|
|
30
|
+
protected readonly filteredOptions: import("@angular/core").Signal<SelectOption<T>[]>;
|
|
31
|
+
protected readonly noMatchResult: import("@angular/core").Signal<boolean>;
|
|
32
|
+
get options(): SelectOption<T>[] | null;
|
|
33
|
+
constructor(document: Document);
|
|
34
|
+
setOverlayHeight(): void;
|
|
35
|
+
setSelection(event: MatAutocompleteSelectedEvent): void;
|
|
36
|
+
removeSelection(option: SelectOption<T>): void;
|
|
37
|
+
trackByFn(_index: number, option: SelectOption<T>): T | number;
|
|
38
|
+
writeValue(value: T[] | null): void;
|
|
39
|
+
registerOnChange(fn: typeof this.onChange): void;
|
|
40
|
+
registerOnTouched(fn: () => void): void;
|
|
41
|
+
blur(): void;
|
|
42
|
+
private onChange;
|
|
43
|
+
private onTouched;
|
|
44
|
+
private updateValues;
|
|
45
|
+
private clearAndRefocusInput;
|
|
46
|
+
private setValidSelectedOptions;
|
|
47
|
+
private setFilteredOptions;
|
|
48
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EcabsChipAutocompleteComponent<any>, never>;
|
|
49
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EcabsChipAutocompleteComponent<any>, "ecabs-chip-autocomplete", never, { "visibleOptions": { "alias": "visibleOptions"; "required": false; }; "autoActiveFirstOption": { "alias": "autoActiveFirstOption"; "required": false; }; "noResultsText": { "alias": "noResultsText"; "required": false; }; "compareFn": { "alias": "compareFn"; "required": false; }; "avatarTemplate": { "alias": "avatarTemplate"; "required": false; }; "truncateAt": { "alias": "truncateAt"; "required": false; }; "options": { "alias": "options"; "required": true; }; }, { "selectionChange": "selectionChange"; "termChange": "termChange"; }, never, never, true, never>;
|
|
50
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
+
import { SelectOption } from '../base/models/select.models';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class EcabsChipGroupComponent<T = unknown> implements ControlValueAccessor {
|
|
6
|
+
options: SelectOption<T>[];
|
|
7
|
+
multiple: boolean;
|
|
8
|
+
disableRipple: boolean;
|
|
9
|
+
selectedChange: EventEmitter<T | T[]>;
|
|
10
|
+
protected readonly _value: import("@angular/core").WritableSignal<T | T[]>;
|
|
11
|
+
protected readonly isDisabled: import("@angular/core").WritableSignal<boolean>;
|
|
12
|
+
chipValueChange(value: T | T[]): void;
|
|
13
|
+
writeValue(value: T | T[] | null): void;
|
|
14
|
+
registerOnChange(fn: typeof this.onChange): void;
|
|
15
|
+
registerOnTouched(fn: () => void): void;
|
|
16
|
+
setDisabledState(isDisabled: boolean): void;
|
|
17
|
+
private onChange;
|
|
18
|
+
private onTouched;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EcabsChipGroupComponent<any>, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EcabsChipGroupComponent<any>, "ecabs-chip-group", never, { "options": { "alias": "options"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; }, { "selectedChange": "selectedChange"; }, never, never, false, never>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./ecabs-chip-group.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@angular/material/chips";
|
|
5
|
+
import * as i4 from "@angular/forms";
|
|
6
|
+
export declare class EcabsChipGroupModule {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EcabsChipGroupModule, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<EcabsChipGroupModule, [typeof i1.EcabsChipGroupComponent], [typeof i2.CommonModule, typeof i3.MatChipsModule, typeof i4.FormsModule], [typeof i1.EcabsChipGroupComponent]>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<EcabsChipGroupModule>;
|
|
10
|
+
}
|
|
@@ -37,6 +37,7 @@ export declare class EcabsDateRangePickerComponentV2 extends EcabsElementBaseCom
|
|
|
37
37
|
maxDateFrom?: Date;
|
|
38
38
|
minDateTo?: Date;
|
|
39
39
|
maxDateTo?: Date;
|
|
40
|
+
protected readonly panelClass = "ecabs-date-range-picker-v2";
|
|
40
41
|
private holidayInstance;
|
|
41
42
|
get value(): {
|
|
42
43
|
dateFrom: string;
|
|
@@ -39,7 +39,7 @@ export declare class EcabsDateTimePickerComponent extends EcabsElementBaseCompon
|
|
|
39
39
|
preventCallSetterPickerValue: boolean;
|
|
40
40
|
runTimeout: boolean;
|
|
41
41
|
translationConfig: EcabsDatePickerTranslations;
|
|
42
|
-
isEmptyFormat:
|
|
42
|
+
isEmptyFormat: any;
|
|
43
43
|
get value(): Date;
|
|
44
44
|
get pickerValue(): string;
|
|
45
45
|
get hours(): string;
|
|
@@ -61,7 +61,9 @@ export declare class EcabsDateTimePickerComponent extends EcabsElementBaseCompon
|
|
|
61
61
|
onApply(): void;
|
|
62
62
|
refreshPickerValue(date: Date): void;
|
|
63
63
|
private formatDateTime;
|
|
64
|
-
private
|
|
64
|
+
private normalizeWithAutoPad;
|
|
65
|
+
private toDigits;
|
|
66
|
+
private formatTwoDigits;
|
|
65
67
|
private setValues;
|
|
66
68
|
static ɵfac: i0.ɵɵFactoryDeclaration<EcabsDateTimePickerComponent, never>;
|
|
67
69
|
static ɵcmp: i0.ɵɵComponentDeclaration<EcabsDateTimePickerComponent, "ecabs-date-time-picker", never, { "minDate": { "alias": "minDate"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "touchUi": { "alias": "touchUi"; "required": false; }; "hideSeconds": { "alias": "hideSeconds"; "required": false; }; "cancelLabel": { "alias": "cancelLabel"; "required": false; }; "applyLabel": { "alias": "applyLabel"; "required": false; }; "applyMinDateAuto": { "alias": "applyMinDateAuto"; "required": false; }; "preserveOriginalValue": { "alias": "preserveOriginalValue"; "required": false; }; }, {}, never, never, false, never>;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { EventEmitter, ElementRef, AfterViewInit, Injector, DestroyRef } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor, Validator, AbstractControl, ValidationErrors } from '@angular/forms';
|
|
3
|
+
import EcabsElementBaseComponent from '../base/element-base';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export interface RangeValue {
|
|
6
|
+
from: number | null;
|
|
7
|
+
to: number | null;
|
|
8
|
+
}
|
|
9
|
+
export declare class EcabsInputRangeComponent extends EcabsElementBaseComponent implements ControlValueAccessor, Validator, AfterViewInit {
|
|
10
|
+
private readonly injector;
|
|
11
|
+
private readonly destroyRef;
|
|
12
|
+
toInput: ElementRef;
|
|
13
|
+
digitsOnly: boolean;
|
|
14
|
+
allowDecimal: boolean;
|
|
15
|
+
allowHyphen: boolean;
|
|
16
|
+
min: number;
|
|
17
|
+
max: number;
|
|
18
|
+
step: number;
|
|
19
|
+
separatorText: string;
|
|
20
|
+
fromPlaceholder: string;
|
|
21
|
+
toPlaceholder: string;
|
|
22
|
+
rangeChange: EventEmitter<RangeValue>;
|
|
23
|
+
val: RangeValue;
|
|
24
|
+
isFocused: boolean;
|
|
25
|
+
constructor(injector: Injector, destroyRef: DestroyRef);
|
|
26
|
+
ngAfterViewInit(): void;
|
|
27
|
+
get value(): RangeValue;
|
|
28
|
+
set value(v: RangeValue);
|
|
29
|
+
setFocus(focus: boolean): void;
|
|
30
|
+
focusToInput(): void;
|
|
31
|
+
updateValue(key: 'from' | 'to', val: any): void;
|
|
32
|
+
getFromError(value?: RangeValue): ValidationErrors | null;
|
|
33
|
+
getToError(value?: RangeValue): ValidationErrors | null;
|
|
34
|
+
getIncompleteRangeError(value?: RangeValue): ValidationErrors | null;
|
|
35
|
+
get hasAnyError(): boolean;
|
|
36
|
+
validate(control: AbstractControl): ValidationErrors | null;
|
|
37
|
+
onChange: (value: RangeValue) => void;
|
|
38
|
+
onTouched: () => void;
|
|
39
|
+
writeValue(v: RangeValue): void;
|
|
40
|
+
registerOnChange(fn: (value: RangeValue) => void): void;
|
|
41
|
+
registerOnTouched(fn: () => void): void;
|
|
42
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EcabsInputRangeComponent, never>;
|
|
43
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EcabsInputRangeComponent, "ecabs-input-range", never, { "digitsOnly": { "alias": "digitsOnly"; "required": false; }; "allowDecimal": { "alias": "allowDecimal"; "required": false; }; "allowHyphen": { "alias": "allowHyphen"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "step": { "alias": "step"; "required": false; }; "separatorText": { "alias": "separatorText"; "required": false; }; "fromPlaceholder": { "alias": "fromPlaceholder"; "required": false; }; "toPlaceholder": { "alias": "toPlaceholder"; "required": false; }; }, { "rangeChange": "rangeChange"; }, never, never, false, never>;
|
|
44
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./ecabs-input-range.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@angular/forms";
|
|
5
|
+
import * as i4 from "../base/element-wrapper/element-wrapper.module";
|
|
6
|
+
import * as i5 from "../base/directives/digits-only.directive.module";
|
|
7
|
+
import * as i6 from "../base/directives/min-max.directive.module";
|
|
8
|
+
import * as i7 from "../ecabs-buttons-v2/ecabs-buttons-v2.module";
|
|
9
|
+
export declare class EcabsInputRangeModule {
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EcabsInputRangeModule, never>;
|
|
11
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<EcabsInputRangeModule, [typeof i1.EcabsInputRangeComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.ElementWrapperModule, typeof i5.EcabsDigitsOnlyDirectivesModule, typeof i6.EcabsMinMaxDirectiveModule, typeof i7.EcabsButtonsV2Module], [typeof i1.EcabsInputRangeComponent]>;
|
|
12
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<EcabsInputRangeModule>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { AfterViewInit, DestroyRef, Injector } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor, UntypedFormControl } from '@angular/forms';
|
|
3
|
+
import EcabsElementBaseComponent from '../base/element-base';
|
|
4
|
+
import { ListPlacement } from '../base/models/timepicker.models';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class EcabsTimeRangeInputV2Component extends EcabsElementBaseComponent implements ControlValueAccessor, AfterViewInit {
|
|
7
|
+
private readonly injector;
|
|
8
|
+
private readonly destroyRef;
|
|
9
|
+
showCloseIcon: boolean;
|
|
10
|
+
listPlacement: ListPlacement;
|
|
11
|
+
appendTo: string;
|
|
12
|
+
min: string;
|
|
13
|
+
max: string;
|
|
14
|
+
showDayStart: boolean;
|
|
15
|
+
showDayEnd: boolean;
|
|
16
|
+
addSecond: boolean;
|
|
17
|
+
dayStartLabel: string;
|
|
18
|
+
dayEndLabel: string;
|
|
19
|
+
separatorLabel: string;
|
|
20
|
+
startTimePlaceholder: string;
|
|
21
|
+
endTimePlaceholder: string;
|
|
22
|
+
val: {
|
|
23
|
+
timeFrom: string;
|
|
24
|
+
timeTo: string;
|
|
25
|
+
};
|
|
26
|
+
_timeFrom: string;
|
|
27
|
+
_timeTo: string;
|
|
28
|
+
get value(): {
|
|
29
|
+
timeFrom: string;
|
|
30
|
+
timeTo: string;
|
|
31
|
+
};
|
|
32
|
+
get timeFrom(): string;
|
|
33
|
+
get timeTo(): string;
|
|
34
|
+
set value(val: {
|
|
35
|
+
timeFrom: string;
|
|
36
|
+
timeTo: string;
|
|
37
|
+
});
|
|
38
|
+
set timeFrom(val: string);
|
|
39
|
+
set timeTo(val: string);
|
|
40
|
+
constructor(injector: Injector, destroyRef: DestroyRef);
|
|
41
|
+
ngAfterViewInit(): void;
|
|
42
|
+
onChange: any;
|
|
43
|
+
onTouch: any;
|
|
44
|
+
writeValue(value: any): void;
|
|
45
|
+
registerOnChange(fn: any): void;
|
|
46
|
+
registerOnTouched(fn: any): void;
|
|
47
|
+
onApply(): void;
|
|
48
|
+
timeRangeValidator(control: UntypedFormControl): void;
|
|
49
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EcabsTimeRangeInputV2Component, never>;
|
|
50
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EcabsTimeRangeInputV2Component, "ecabs-time-range-input-v2", never, { "showCloseIcon": { "alias": "showCloseIcon"; "required": false; }; "listPlacement": { "alias": "listPlacement"; "required": false; }; "appendTo": { "alias": "appendTo"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "showDayStart": { "alias": "showDayStart"; "required": false; }; "showDayEnd": { "alias": "showDayEnd"; "required": false; }; "addSecond": { "alias": "addSecond"; "required": false; }; "dayStartLabel": { "alias": "dayStartLabel"; "required": false; }; "dayEndLabel": { "alias": "dayEndLabel"; "required": false; }; "separatorLabel": { "alias": "separatorLabel"; "required": false; }; "startTimePlaceholder": { "alias": "startTimePlaceholder"; "required": false; }; "endTimePlaceholder": { "alias": "endTimePlaceholder"; "required": false; }; }, {}, never, never, false, never>;
|
|
51
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./ecabs-time-range-input-v2.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "../base/element-wrapper/element-wrapper.module";
|
|
5
|
+
import * as i4 from "../ecabs-timepicker/ecabs-timepicker.module";
|
|
6
|
+
import * as i5 from "@angular/forms";
|
|
7
|
+
export declare class EcabsTimeRangeInputV2Module {
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EcabsTimeRangeInputV2Module, never>;
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<EcabsTimeRangeInputV2Module, [typeof i1.EcabsTimeRangeInputV2Component], [typeof i2.CommonModule, typeof i3.ElementWrapperModule, typeof i4.EcabsTimepickerModule, typeof i5.FormsModule], [typeof i1.EcabsTimeRangeInputV2Component]>;
|
|
10
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<EcabsTimeRangeInputV2Module>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Subject } from 'rxjs';
|
|
2
|
+
import { FormTimePickerConfigV2 } from './config.model';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class FormTimePickerServiceV2 {
|
|
5
|
+
config: FormTimePickerConfigV2;
|
|
6
|
+
closeSub: Subject<boolean>;
|
|
7
|
+
setConfig(c: FormTimePickerConfigV2): void;
|
|
8
|
+
getConfig(): FormTimePickerConfigV2;
|
|
9
|
+
close(): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormTimePickerServiceV2, never>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FormTimePickerServiceV2>;
|
|
12
|
+
}
|
|
@@ -23,7 +23,6 @@ export declare class EcabsTimepickerComponent extends EcabsElementBaseComponent
|
|
|
23
23
|
dayEndLabel: string;
|
|
24
24
|
position: ListPosition;
|
|
25
25
|
_data: string;
|
|
26
|
-
inputData: string;
|
|
27
26
|
_timePicker: {
|
|
28
27
|
querySelector: (arg0: string) => HTMLElement;
|
|
29
28
|
};
|
|
@@ -40,13 +39,9 @@ export declare class EcabsTimepickerComponent extends EcabsElementBaseComponent
|
|
|
40
39
|
clearInput(): void;
|
|
41
40
|
calcListPosition(): void;
|
|
42
41
|
inputKeyDown(event: any): boolean;
|
|
43
|
-
updateInputData(event: string): void;
|
|
44
42
|
checkSpecialKeys(key: TimepickerSpecialKey): TimepickerSpecialKey;
|
|
45
43
|
checkUnUsedKeys(key: string): boolean;
|
|
46
44
|
checkOutOfRangeNumber(time: any): boolean;
|
|
47
|
-
makeHourFull(): void;
|
|
48
|
-
makeMinuteFull(): void;
|
|
49
|
-
fixTimeToNearest(): void;
|
|
50
45
|
onChangeFn: (_: any) => void;
|
|
51
46
|
onTouchedFn: () => void;
|
|
52
47
|
registerOnChange(fn: any): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ecabs-components",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.62",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/animations": "^16.2.12",
|
|
6
6
|
"@angular/common": "^16.2.12",
|
|
@@ -15,10 +15,12 @@
|
|
|
15
15
|
"flag-icons": "^6.7.0",
|
|
16
16
|
"libphonenumber-js": "^1.12.6",
|
|
17
17
|
"ngx-mat-select-search": "^7.0.7",
|
|
18
|
+
"ngx-phosphor-icons": "^1.0.7",
|
|
18
19
|
"postcss": "^8.4.35",
|
|
19
20
|
"rxjs": "~7.5.0",
|
|
20
21
|
"tailwindcss": "^3.4.13",
|
|
21
|
-
"
|
|
22
|
+
"@maskito/core": "^5.0.0",
|
|
23
|
+
"@maskito/kit": "^5.0.0"
|
|
22
24
|
},
|
|
23
25
|
"dependencies": {
|
|
24
26
|
"tslib": "^2.3.0"
|
package/public-api.d.ts
CHANGED
|
@@ -9,6 +9,8 @@ export * from './lib/ecabs-button-toggle/ecabs-button-toggle.component';
|
|
|
9
9
|
export * from './lib/ecabs-button-toggle/ecabs-button-toggle.module';
|
|
10
10
|
export * from './lib/ecabs-input/ecabs-input.component';
|
|
11
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';
|
|
12
14
|
export * from './lib/ecabs-select/ecabs-select.module';
|
|
13
15
|
export * from './lib/ecabs-select/ecabs-select.component';
|
|
14
16
|
export * from './lib/ecabs-select-v2/ecabs-select-v2.module';
|
|
@@ -27,6 +29,8 @@ export * from './lib/base/models/select.models';
|
|
|
27
29
|
export * from './lib/base/models/waypoint.models';
|
|
28
30
|
export * from './lib/ecabs-checkbox-toggle/ecabs-checkbox-toggle.component';
|
|
29
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';
|
|
30
34
|
export * from './lib/ecabs-date-picker/ecabs-date-picker.component';
|
|
31
35
|
export * from './lib/ecabs-date-picker/components/ecabs-date-picker-header/ecabs-date-picker-header.component';
|
|
32
36
|
export * from './lib/ecabs-date-time-picker/ecabs-date-time-picker.component';
|
|
@@ -117,6 +121,7 @@ export * from './lib/ecabs-base-phone-input/ecabs-base-phone.module';
|
|
|
117
121
|
export * from './lib/base/services/unsubscribe.service';
|
|
118
122
|
export * from './lib/base/pipes/truncate.pipe';
|
|
119
123
|
export * from './lib/base/pipes/separator-append.pipe';
|
|
124
|
+
export * from './lib/base/pipes/phone-number-country-code.pipe';
|
|
120
125
|
export * from './lib/base/pipes/pipes.module';
|
|
121
126
|
export * from './lib/ecabs-sidebar/ecabs-sidebar.module';
|
|
122
127
|
export * from './lib/ecabs-sidebar/ecabs-sidebar.component';
|
|
@@ -137,6 +142,12 @@ export * from './lib/base/adapters/date.adapter';
|
|
|
137
142
|
export * from './lib/base/consts/waypoint.consts';
|
|
138
143
|
export * from './lib/ecabs-dialog-confirm-deletion/ecabs-dialog-confirm-deletion.module';
|
|
139
144
|
export * from './lib/ecabs-dialog-confirm-deletion/ecabs-dialog-confirm-deletion.component';
|
|
145
|
+
export * from './lib/ecabs-time-range-input-v2/ecabs-time-range-input-v2.service';
|
|
146
|
+
export * from './lib/ecabs-time-range-input-v2/ecabs-time-range-input-v2.module';
|
|
147
|
+
export * from './lib/ecabs-time-range-input-v2/ecabs-time-range-input-v2.component';
|
|
148
|
+
export * from './lib/ecabs-chip-group/ecabs-chip-group.module';
|
|
149
|
+
export * from './lib/ecabs-chip-group/ecabs-chip-group.component';
|
|
150
|
+
export * from './lib/ecabs-chip-autocomplete/ecabs-chip-autocomplete.component';
|
|
140
151
|
export * from './lib/ecabs-date-range-picker-v2/ecabs-date-range-picker-v2.module';
|
|
141
152
|
export * from './lib/ecabs-date-range-picker-v2/ecabs-date-range-picker-v2.component';
|
|
142
153
|
export * from './lib/ecabs-date-range-picker-v2/components/ecabs-date-range-picker-header/ecabs-date-range-picker-header-v2.component';
|
|
@@ -9,3 +9,22 @@
|
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
+
|
|
13
|
+
ecabs-chip-autocomplete {
|
|
14
|
+
input.mat-mdc-chip-input {
|
|
15
|
+
margin-left: unset;
|
|
16
|
+
border-radius: calc-rem($border-radius-large);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.ecabs-chip-autocomplete-overlay-panel {
|
|
21
|
+
&.mat-mdc-autocomplete-panel {
|
|
22
|
+
box-shadow: $box-shadow-default;
|
|
23
|
+
border-radius: calc-rem($border-radius-large);
|
|
24
|
+
border-top: 0;
|
|
25
|
+
|
|
26
|
+
max-height: calc((var(--autocomplete-visible-options, 8.5) * var(--mat-option-height, 48px)) + 10px);
|
|
27
|
+
overflow-y: auto;
|
|
28
|
+
overflow-x: hidden;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -147,3 +147,83 @@
|
|
|
147
147
|
.mdc-evolution-chip.mat-mdc-standard-chip[ng-reflect-disable-ripple]:not(.mdc-evolution-chip--disabled):active {
|
|
148
148
|
box-shadow: none;
|
|
149
149
|
}
|
|
150
|
+
|
|
151
|
+
//V2 styles
|
|
152
|
+
ecabs-chip-group {
|
|
153
|
+
.mat-mdc-chip-listbox {
|
|
154
|
+
display: flex;
|
|
155
|
+
flex-wrap: wrap;
|
|
156
|
+
gap: calc-rem(8px);
|
|
157
|
+
|
|
158
|
+
.mat-mdc-chip {
|
|
159
|
+
--mdc-chip-elevated-container-color: var(--color-white);
|
|
160
|
+
--mdc-chip-label-text-color: var(--color-gray-600);
|
|
161
|
+
--mdc-chip-label-text-size: #{$font-size-xs};
|
|
162
|
+
--mdc-chip-label-text-weight: #{$font-weight-medium};
|
|
163
|
+
--mdc-chip-elevated-selected-container-color: var(--color-brand-dark);
|
|
164
|
+
--mdc-chip-selected-label-text-color: var(--color-white);
|
|
165
|
+
|
|
166
|
+
border-radius: calc-rem($border-radius-medium);
|
|
167
|
+
border: 1px solid var(--color-gray-200);
|
|
168
|
+
|
|
169
|
+
&:hover {
|
|
170
|
+
border-color: var(--color-gray-300);
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.mat-mdc-chip.mdc-evolution-chip--selected {
|
|
175
|
+
border-color: transparent;
|
|
176
|
+
|
|
177
|
+
.mdc-evolution-chip__action {
|
|
178
|
+
color: var(--mdc-chip-selected-label-text-color);
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.mat-mdc-chip.mdc-evolution-chip--disabled {
|
|
183
|
+
opacity: 0.6;
|
|
184
|
+
cursor: not-allowed;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.mat-mdc-chip .mat-mdc-chip-graphic {
|
|
188
|
+
display: none;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary {
|
|
192
|
+
padding: 0;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.mat-mdc-chip .mdc-chip__ripple,
|
|
196
|
+
.mat-mdc-chip .mat-ripple {
|
|
197
|
+
display: none;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
ecabs-chip-autocomplete {
|
|
203
|
+
.mat-mdc-chip-grid {
|
|
204
|
+
.mat-mdc-chip {
|
|
205
|
+
--mdc-chip-elevated-container-color: var(--color-gray-100);
|
|
206
|
+
--mdc-chip-label-text-color: var(--color-gray-600);
|
|
207
|
+
--mdc-chip-label-text-size: #{$font-size-xs};
|
|
208
|
+
--mdc-chip-label-text-weight: #{$font-weight-medium};
|
|
209
|
+
--mdc-chip-elevated-selected-container-color: var(--color-brand-dark);
|
|
210
|
+
--mdc-chip-selected-label-text-color: var(--color-white);
|
|
211
|
+
--mdc-chip-container-height: #{calc-rem(28px)};
|
|
212
|
+
--mdc-chip-with-trailing-icon-trailing-icon-color: var(--color-gray-600);
|
|
213
|
+
--mdc-chip-with-avatar-avatar-shape-radius: 0;
|
|
214
|
+
|
|
215
|
+
border-radius: calc-rem($border-radius-medium);
|
|
216
|
+
padding-left: unset;
|
|
217
|
+
padding-right: unset;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing {
|
|
222
|
+
width: calc-rem(14px);
|
|
223
|
+
height: calc-rem(14px);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.mdc-evolution-chip-set .mdc-evolution-chip {
|
|
227
|
+
margin-top: 0;
|
|
228
|
+
}
|
|
229
|
+
}
|