ecabs-components 1.1.38 → 1.1.40

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.
@@ -0,0 +1,12 @@
1
+ import { WeekDay } from '@angular/common';
2
+ import { NativeDateAdapter } from '@angular/material/core';
3
+ import * as i0 from "@angular/core";
4
+ export declare class EcabsDateAdapter extends NativeDateAdapter {
5
+ constructor(dateTimeLocale: string);
6
+ parse(value: string): Date;
7
+ format(date: Date): string;
8
+ getDayOfWeekNames(style: 'long' | 'short' | 'narrow'): any[];
9
+ getFirstDayOfWeek(): WeekDay;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<EcabsDateAdapter, never>;
11
+ static ɵprov: i0.ɵɵInjectableDeclaration<EcabsDateAdapter>;
12
+ }
@@ -23,10 +23,14 @@ export declare class EcabsDateTimePickerComponent extends EcabsElementBaseCompon
23
23
  cancelLabel: string;
24
24
  applyLabel: string;
25
25
  applyMinDateAuto: boolean;
26
+ /** When true, preserves the original value (with timezone) if user hasn't changed the date/time */
27
+ preserveOriginalValue: boolean;
26
28
  _hours: string;
27
29
  _minutes: string;
28
30
  _seconds: string;
29
31
  _date: Date;
32
+ /** Stores the original input value to preserve string format with timezone */
33
+ private _originalValue;
30
34
  _pickerValue: string;
31
35
  val: Date;
32
36
  header: typeof EcabsDateTimePickerHeaderComponent;
@@ -60,5 +64,5 @@ export declare class EcabsDateTimePickerComponent extends EcabsElementBaseCompon
60
64
  private roundNumber;
61
65
  private setValues;
62
66
  static ɵfac: i0.ɵɵFactoryDeclaration<EcabsDateTimePickerComponent, never>;
63
- 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; }; }, {}, never, never, false, never>;
67
+ 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>;
64
68
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ecabs-components",
3
- "version": "1.1.38",
3
+ "version": "1.1.40",
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,5 @@ 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/adapters/date.adapter';
128
129
  export * from './lib/base/consts/waypoint.consts';