ecabs-components 1.1.36 → 1.1.37

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.
Files changed (30) hide show
  1. package/README.md +0 -5
  2. package/esm2022/lib/base/directives/digits-only.directive.mjs +8 -2
  3. package/esm2022/lib/ecabs-base-phone-input/ecabs-base-phone.component.mjs +3 -7
  4. package/esm2022/lib/ecabs-buttons/ecabs-buttons.component.mjs +4 -9
  5. package/esm2022/lib/ecabs-checkbox-toggle/ecabs-checkbox-toggle.component.mjs +4 -14
  6. package/esm2022/lib/ecabs-date-time-picker/ecabs-date-time-picker.component.mjs +11 -19
  7. package/esm2022/lib/ecabs-date-time-picker/ecabs-date-time-picker.module.mjs +3 -7
  8. package/esm2022/lib/ecabs-input/ecabs-input.component.mjs +6 -10
  9. package/esm2022/lib/ecabs-logo/ecabs-logo.component.mjs +2 -2
  10. package/esm2022/lib/ecabs-note/ecabs-note.component.mjs +3 -3
  11. package/esm2022/lib/ecabs-place-autocomplete/ecabs-place-autocomplete.component.mjs +6 -13
  12. package/esm2022/lib/ecabs-select-v2/ecabs-select-v2.component.mjs +8 -12
  13. package/esm2022/lib/ecabs-textarea/ecabs-textarea.component.mjs +6 -10
  14. package/esm2022/public-api.mjs +1 -2
  15. package/fesm2022/ecabs-components.mjs +52 -102
  16. package/fesm2022/ecabs-components.mjs.map +1 -1
  17. package/lib/base/directives/digits-only.directive.d.ts +1 -0
  18. package/lib/ecabs-base-phone-input/ecabs-base-phone.component.d.ts +0 -1
  19. package/lib/ecabs-buttons/ecabs-buttons.component.d.ts +0 -2
  20. package/lib/ecabs-checkbox-toggle/ecabs-checkbox-toggle.component.d.ts +2 -6
  21. package/lib/ecabs-date-time-picker/ecabs-date-time-picker.component.d.ts +1 -4
  22. package/lib/ecabs-date-time-picker/ecabs-date-time-picker.module.d.ts +1 -2
  23. package/lib/ecabs-input/ecabs-input.component.d.ts +1 -2
  24. package/lib/ecabs-place-autocomplete/ecabs-place-autocomplete.component.d.ts +1 -4
  25. package/lib/ecabs-select-v2/ecabs-select-v2.component.d.ts +3 -4
  26. package/lib/ecabs-textarea/ecabs-textarea.component.d.ts +1 -2
  27. package/package.json +1 -1
  28. package/public-api.d.ts +0 -1
  29. package/esm2022/lib/base/consts/waypoint.consts.mjs +0 -10
  30. package/lib/base/consts/waypoint.consts.d.ts +0 -8
@@ -17,6 +17,7 @@ export declare class EcabsDigitsOnlyDirective implements OnInit {
17
17
  onKeyDown(e: KeyboardEvent): void;
18
18
  onKeyUp(): void;
19
19
  onPaste(event: ClipboardEvent): void;
20
+ onWheel(event: Event): void;
20
21
  ngOnInit(): void;
21
22
  private pasteData;
22
23
  private sanitizeInput;
@@ -43,7 +43,6 @@ export declare class EcabsBasePhoneComponent extends _NgxMatIntlTelInputMixinBas
43
43
  countryChanged: EventEmitter<Country>;
44
44
  matMenu: MatMenu | undefined;
45
45
  searchInput: ElementRef;
46
- matCustomInput: ElementRef;
47
46
  id: string;
48
47
  get shouldLabelFloat(): boolean;
49
48
  static nextId: number;
@@ -1,10 +1,8 @@
1
1
  import { OnChanges, OnInit, SimpleChanges } from '@angular/core';
2
2
  import { ThemePalette } from '@angular/material/core';
3
3
  import { ButtonStyle } from '../base/consts/buttons.consts';
4
- import { MatButton } from '@angular/material/button';
5
4
  import * as i0 from "@angular/core";
6
5
  export declare class ButtonsComponent implements OnInit, OnChanges {
7
- matButton: MatButton;
8
6
  disabled: boolean;
9
7
  loading: boolean;
10
8
  size: 'default' | 'large';
@@ -1,22 +1,18 @@
1
1
  import { AfterViewInit, DestroyRef, EventEmitter, Injector, OnChanges, SimpleChanges } from '@angular/core';
2
2
  import { ControlValueAccessor } from '@angular/forms';
3
3
  import EcabsElementBaseComponent from '../base/element-base';
4
- import { MatCheckbox } from '@angular/material/checkbox';
5
- import { MatSlideToggle } from '@angular/material/slide-toggle';
6
4
  import * as i0 from "@angular/core";
7
5
  export declare class EcabsCheckboxToggleComponent extends EcabsElementBaseComponent implements ControlValueAccessor, AfterViewInit, OnChanges {
8
6
  private readonly injector;
9
7
  private readonly destroyRef;
10
- matCheckbox: MatCheckbox;
11
- matSlideToggle: MatSlideToggle;
12
8
  type: 'checkbox' | 'toggle';
13
9
  text: string;
14
10
  readonly label: string;
15
11
  labelPosition: 'before' | 'after';
16
12
  indeterminate: boolean;
17
13
  checked: boolean;
18
- readonly click: EventEmitter<any>;
19
- readonly changed: EventEmitter<any>;
14
+ click: EventEmitter<any>;
15
+ changed: EventEmitter<any>;
20
16
  val: boolean;
21
17
  get value(): boolean;
22
18
  set value(val: boolean);
@@ -1,12 +1,11 @@
1
1
  import { DecimalPipe } from '@angular/common';
2
- import { AfterViewInit, ChangeDetectorRef, ElementRef, Injector, OnInit } from '@angular/core';
2
+ import { AfterViewInit, ChangeDetectorRef, Injector, OnInit } from '@angular/core';
3
3
  import { ControlValueAccessor } from '@angular/forms';
4
4
  import EcabsElementBaseComponent from '../base/element-base';
5
5
  import { EcabsDatePickerTranslations } from '../base/models/ecabs-date-picker-translations.models';
6
6
  import { EcabsDatePickerHeaderService } from '../base/services/ecabs-date-picker-translations.service';
7
7
  import { UnsubscribeService } from '../base/services/unsubscribe.service';
8
8
  import { EcabsDateTimePickerHeaderComponent } from './components/ecabs-date-time-picker-header/ecabs-date-time-picker-header.component';
9
- import { MatDatepicker } from '@angular/material/datepicker';
10
9
  import * as i0 from "@angular/core";
11
10
  export declare class EcabsDateTimePickerComponent extends EcabsElementBaseComponent implements ControlValueAccessor, AfterViewInit, OnInit {
12
11
  private readonly injector;
@@ -14,8 +13,6 @@ export declare class EcabsDateTimePickerComponent extends EcabsElementBaseCompon
14
13
  private readonly cd;
15
14
  private readonly ecabsDatePickerHeaderService;
16
15
  private readonly unsubscribeService;
17
- matCustomInput: ElementRef;
18
- matCustomPicker: MatDatepicker<Date>;
19
16
  minDate: Date;
20
17
  maxDate: Date;
21
18
  touchUi: boolean;
@@ -13,9 +13,8 @@ import * as i11 from "../base/directives/digits-only.directive.module";
13
13
  import * as i12 from "../base/directives/number-border.directive.module";
14
14
  import * as i13 from "../base/directives/date-mask.directive.module";
15
15
  import * as i14 from "../ecabs-date-picker-actions/ecabs-date-picker-actions.module";
16
- import * as i15 from "@angular/material/form-field";
17
16
  export declare class EcabsDatetimePickerModule {
18
17
  static ɵfac: i0.ɵɵFactoryDeclaration<EcabsDatetimePickerModule, never>;
19
- static ɵmod: i0.ɵɵNgModuleDeclaration<EcabsDatetimePickerModule, [typeof i1.EcabsDateTimePickerComponent, typeof i2.EcabsDateTimePickerHeaderComponent], [typeof i3.CommonModule, typeof i4.ElementWrapperModule, typeof i5.MatIconModule, typeof i6.MatDatepickerModule, typeof i7.MatButtonModule, typeof i8.FormsModule, typeof i8.ReactiveFormsModule, typeof i9.EcabsPickerHeaderModule, typeof i10.EcabsButtonsModule, typeof i11.EcabsDigitsOnlyDirectivesModule, typeof i12.EcabsNumberBorderDirectiveModule, typeof i13.EcabsMaskDateDirectiveModule, typeof i14.EcabsDatePickerActionsModule, typeof i15.MatFormFieldModule], [typeof i1.EcabsDateTimePickerComponent, typeof i2.EcabsDateTimePickerHeaderComponent]>;
18
+ static ɵmod: i0.ɵɵNgModuleDeclaration<EcabsDatetimePickerModule, [typeof i1.EcabsDateTimePickerComponent, typeof i2.EcabsDateTimePickerHeaderComponent], [typeof i3.CommonModule, typeof i4.ElementWrapperModule, typeof i5.MatIconModule, typeof i6.MatDatepickerModule, typeof i7.MatButtonModule, typeof i8.FormsModule, typeof i8.ReactiveFormsModule, typeof i9.EcabsPickerHeaderModule, typeof i10.EcabsButtonsModule, typeof i11.EcabsDigitsOnlyDirectivesModule, typeof i12.EcabsNumberBorderDirectiveModule, typeof i13.EcabsMaskDateDirectiveModule, typeof i14.EcabsDatePickerActionsModule], [typeof i1.EcabsDateTimePickerComponent, typeof i2.EcabsDateTimePickerHeaderComponent]>;
20
19
  static ɵinj: i0.ɵɵInjectorDeclaration<EcabsDatetimePickerModule>;
21
20
  }
@@ -1,11 +1,10 @@
1
- import { AfterViewInit, DestroyRef, ElementRef, EventEmitter, Injector, OnInit } from '@angular/core';
1
+ import { AfterViewInit, DestroyRef, EventEmitter, Injector, OnInit } from '@angular/core';
2
2
  import { ControlValueAccessor } from '@angular/forms';
3
3
  import EcabsElementBaseComponent from '../base/element-base';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class EcabsInputComponent extends EcabsElementBaseComponent implements ControlValueAccessor, AfterViewInit, OnInit {
6
6
  private injector;
7
7
  private readonly destroyRef;
8
- matCustomInput: ElementRef;
9
8
  digitsOnly: boolean;
10
9
  allowDecimal: boolean;
11
10
  allowHyphen: boolean;
@@ -4,19 +4,16 @@ import { ControlValueAccessor } from '@angular/forms';
4
4
  import { UnsubscribeService } from '../../public-api';
5
5
  import EcabsElementBaseComponent from '../base/element-base';
6
6
  import PlaceResult = google.maps.places.PlaceResult;
7
- import { WaypointTypeEnum } from '../base/consts/waypoint.consts';
8
7
  import * as i0 from "@angular/core";
9
8
  export declare class EcabsPlaceAutocompleteComponent extends EcabsElementBaseComponent implements OnDestroy, OnChanges, AfterViewInit, ControlValueAccessor {
10
9
  private readonly ngZone;
11
10
  private readonly unsubscribeService;
12
11
  private readonly elementRef;
13
12
  private readonly injector;
14
- matCustomInput: ElementRef;
15
13
  showDeleteItem: boolean;
16
14
  showSuffix: boolean;
17
15
  countryCode: string;
18
16
  googleLoaded: boolean;
19
- waypointType: WaypointTypeEnum;
20
17
  readonly placeResult: EventEmitter<{
21
18
  place: PlaceResult;
22
19
  text: string;
@@ -40,5 +37,5 @@ export declare class EcabsPlaceAutocompleteComponent extends EcabsElementBaseCom
40
37
  private initGoogle;
41
38
  private getElement;
42
39
  static ɵfac: i0.ɵɵFactoryDeclaration<EcabsPlaceAutocompleteComponent, never>;
43
- static ɵcmp: i0.ɵɵComponentDeclaration<EcabsPlaceAutocompleteComponent, "ecabs-place-autocomplete", never, { "showDeleteItem": { "alias": "showDeleteItem"; "required": false; }; "showSuffix": { "alias": "showSuffix"; "required": false; }; "countryCode": { "alias": "countryCode"; "required": false; }; "googleLoaded": { "alias": "googleLoaded"; "required": false; }; "waypointType": { "alias": "waypointType"; "required": false; }; }, { "placeResult": "placeResult"; "deleteItem": "deleteItem"; }, never, never, false, never>;
40
+ static ɵcmp: i0.ɵɵComponentDeclaration<EcabsPlaceAutocompleteComponent, "ecabs-place-autocomplete", never, { "showDeleteItem": { "alias": "showDeleteItem"; "required": false; }; "showSuffix": { "alias": "showSuffix"; "required": false; }; "countryCode": { "alias": "countryCode"; "required": false; }; "googleLoaded": { "alias": "googleLoaded"; "required": false; }; }, { "placeResult": "placeResult"; "deleteItem": "deleteItem"; }, never, never, false, never>;
44
41
  }
@@ -1,4 +1,4 @@
1
- import { AfterViewInit, DestroyRef, EventEmitter, Injector, OnChanges, OnInit, SimpleChanges } from '@angular/core';
1
+ import { AfterViewInit, DestroyRef, Injector, OnChanges, OnInit, SimpleChanges } from '@angular/core';
2
2
  import { ControlValueAccessor } from '@angular/forms';
3
3
  import { NgSelectComponent } from '@ng-select/ng-select';
4
4
  import { Subject } from 'rxjs';
@@ -31,7 +31,6 @@ export declare class EcabsSelectV2Component extends EcabsElementBaseComponent im
31
31
  selectAllLabel: string;
32
32
  otherLabel: string;
33
33
  othersLabel: string;
34
- readonly selectionChange: EventEmitter<any>;
35
34
  touched: boolean;
36
35
  val: string | number;
37
36
  isOpen: boolean;
@@ -53,8 +52,8 @@ export declare class EcabsSelectV2Component extends EcabsElementBaseComponent im
53
52
  onTouch: any;
54
53
  onBlur(): void;
55
54
  selectAllFn(items: SelectValue[]): void;
56
- changed($event: SelectValue[]): void;
55
+ changed(event: SelectValue[]): void;
57
56
  protected initTrackBy(): void;
58
57
  static ɵfac: i0.ɵɵFactoryDeclaration<EcabsSelectV2Component, never>;
59
- static ɵcmp: i0.ɵɵComponentDeclaration<EcabsSelectV2Component, "ecabs-select-v2", never, { "appearance": { "alias": "appearance"; "required": false; }; "appendTo": { "alias": "appendTo"; "required": false; }; "items": { "alias": "items"; "required": false; }; "bindLabel": { "alias": "bindLabel"; "required": false; }; "bindValue": { "alias": "bindValue"; "required": false; }; "editableSearchTerm": { "alias": "editableSearchTerm"; "required": false; }; "searchable": { "alias": "searchable"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "notFoundText": { "alias": "notFoundText"; "required": false; }; "hideSelected": { "alias": "hideSelected"; "required": false; }; "clearOnBackspace": { "alias": "clearOnBackspace"; "required": false; }; "clearSearchOnAdd": { "alias": "clearSearchOnAdd"; "required": false; }; "trackByFn": { "alias": "trackByFn"; "required": false; }; "minLength": { "alias": "minLength"; "required": false; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; }; "typeahead": { "alias": "typeahead"; "required": false; }; "closeOnSelect": { "alias": "closeOnSelect"; "required": false; }; "clearAllText": { "alias": "clearAllText"; "required": false; }; "selectAllLabel": { "alias": "selectAllLabel"; "required": false; }; "otherLabel": { "alias": "otherLabel"; "required": false; }; "othersLabel": { "alias": "othersLabel"; "required": false; }; }, { "selectionChange": "selectionChange"; }, never, never, false, never>;
58
+ static ɵcmp: i0.ɵɵComponentDeclaration<EcabsSelectV2Component, "ecabs-select-v2", never, { "appearance": { "alias": "appearance"; "required": false; }; "appendTo": { "alias": "appendTo"; "required": false; }; "items": { "alias": "items"; "required": false; }; "bindLabel": { "alias": "bindLabel"; "required": false; }; "bindValue": { "alias": "bindValue"; "required": false; }; "editableSearchTerm": { "alias": "editableSearchTerm"; "required": false; }; "searchable": { "alias": "searchable"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "notFoundText": { "alias": "notFoundText"; "required": false; }; "hideSelected": { "alias": "hideSelected"; "required": false; }; "clearOnBackspace": { "alias": "clearOnBackspace"; "required": false; }; "clearSearchOnAdd": { "alias": "clearSearchOnAdd"; "required": false; }; "trackByFn": { "alias": "trackByFn"; "required": false; }; "minLength": { "alias": "minLength"; "required": false; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; }; "typeahead": { "alias": "typeahead"; "required": false; }; "closeOnSelect": { "alias": "closeOnSelect"; "required": false; }; "clearAllText": { "alias": "clearAllText"; "required": false; }; "selectAllLabel": { "alias": "selectAllLabel"; "required": false; }; "otherLabel": { "alias": "otherLabel"; "required": false; }; "othersLabel": { "alias": "othersLabel"; "required": false; }; }, {}, never, never, false, never>;
60
59
  }
@@ -1,10 +1,9 @@
1
- import { AfterViewInit, ElementRef, Injector } from '@angular/core';
1
+ import { AfterViewInit, Injector } from '@angular/core';
2
2
  import { ControlValueAccessor } from '@angular/forms';
3
3
  import EcabsElementBaseComponent from '../base/element-base';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class EcabsTextareaComponent extends EcabsElementBaseComponent implements ControlValueAccessor, AfterViewInit {
6
6
  private injector;
7
- matCustomInput: ElementRef;
8
7
  rows: number;
9
8
  val: string;
10
9
  get value(): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ecabs-components",
3
- "version": "1.1.36",
3
+ "version": "1.1.37",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "^16.2.12",
6
6
  "@angular/common": "^16.2.12",
package/public-api.d.ts CHANGED
@@ -125,4 +125,3 @@ export * from './lib/ecabs-multiple-dates-picker/ecabs-multiple-dates-picker.com
125
125
  export * from './lib/base/services/ecabs-date-picker-translations.service';
126
126
  export * from './lib/base/utils/object-utils';
127
127
  export * from './lib/base/consts/buttons.consts';
128
- export * from './lib/base/consts/waypoint.consts';
@@ -1,10 +0,0 @@
1
- export var WaypointTypeEnum;
2
- (function (WaypointTypeEnum) {
3
- WaypointTypeEnum["PICKUP"] = "PICKUP";
4
- WaypointTypeEnum["DROPOFF"] = "DROPOFF";
5
- WaypointTypeEnum["GENERIC"] = "GENERIC";
6
- WaypointTypeEnum["DIVERSION"] = "DIVERSION";
7
- WaypointTypeEnum["CUSTOM"] = "CUSTOM";
8
- WaypointTypeEnum["LOCATION"] = "LOCATION";
9
- })(WaypointTypeEnum || (WaypointTypeEnum = {}));
10
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2F5cG9pbnQuY29uc3RzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZWNhYnMtY29tcG9uZW50cy9zcmMvbGliL2Jhc2UvY29uc3RzL3dheXBvaW50LmNvbnN0cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQU4sSUFBWSxnQkFPWDtBQVBELFdBQVksZ0JBQWdCO0lBQzFCLHFDQUFpQixDQUFBO0lBQ2pCLHVDQUFtQixDQUFBO0lBQ25CLHVDQUFtQixDQUFBO0lBQ25CLDJDQUF1QixDQUFBO0lBQ3ZCLHFDQUFpQixDQUFBO0lBQ2pCLHlDQUFxQixDQUFBO0FBQ3ZCLENBQUMsRUFQVyxnQkFBZ0IsS0FBaEIsZ0JBQWdCLFFBTzNCIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGVudW0gV2F5cG9pbnRUeXBlRW51bSB7XHJcbiAgUElDS1VQID0gJ1BJQ0tVUCcsXHJcbiAgRFJPUE9GRiA9ICdEUk9QT0ZGJyxcclxuICBHRU5FUklDID0gJ0dFTkVSSUMnLFxyXG4gIERJVkVSU0lPTiA9ICdESVZFUlNJT04nLFxyXG4gIENVU1RPTSA9ICdDVVNUT00nLFxyXG4gIExPQ0FUSU9OID0gJ0xPQ0FUSU9OJyxcclxufVxyXG4iXX0=
@@ -1,8 +0,0 @@
1
- export declare enum WaypointTypeEnum {
2
- PICKUP = "PICKUP",
3
- DROPOFF = "DROPOFF",
4
- GENERIC = "GENERIC",
5
- DIVERSION = "DIVERSION",
6
- CUSTOM = "CUSTOM",
7
- LOCATION = "LOCATION"
8
- }