nxt-pick-datetime 20.0.0 → 21.0.0-alpha.0

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 CHANGED
@@ -22,25 +22,22 @@ npm install --save nxt-pick-datetime
22
22
  npm install --save moment # if you want to use MomentDateTimeModule
23
23
  ```
24
24
 
25
- ### Import main module and DateTime adapter provider
25
+ ### Configure DateTime adapter provider
26
26
 
27
- The date & time picker was built to be date implementation agnostic. It comes with two modules providing date adapter implementation, or you can provide your own adapter by implementing `DateTimeAdapter` (see [documentation](https://liquid-js.github.io/nxt-components/demo/pick-datetime/custom-adapter)).
27
+ The date & time picker was built to be date implementation agnostic. It comes with two date adapter implementations, or you can provide your own adapter by implementing `DateTimeAdapter` (see [documentation](https://liquid-js.github.io/nxt-components/demo/pick-datetime/custom-adapter)).
28
28
 
29
- - `NativeDateTimeModule` - support for native JavaScript Date object
30
- - `MomentDateTimeModule` - support for MomentJs
29
+ - `provideNativeDateTimeAdapter` - support for native JavaScript Date object
30
+ - `provideNativeDateTimeAdapter` - support for MomentJs
31
31
 
32
32
  ```ts
33
- import { DateTimeModule } from 'nxt-pick-datetime'
34
- import { NativeDateTimeModule } from 'nxt-pick-datetime/native-adapter'
35
-
36
- @NgModule({
37
- ...
38
- imports: [
39
- ...
40
- DateTimeModule,
41
- NativeDateTimeModule
33
+ import { ApplicationConfig } from '@angular/core'
34
+ import { provideNativeDateTimeAdapter } from 'nxt-pick-datetime/native-adapter'
35
+
36
+ export const appConfig: ApplicationConfig = {
37
+ providers: [
38
+ provideNativeDateTimeAdapter()
42
39
  ]
43
- })
40
+ }
44
41
  ```
45
42
 
46
43
  ### Use it in a template
@@ -601,7 +601,7 @@ $theme-color: #3f51b5;
601
601
  .nxt-dt-container-disabled,
602
602
  .nxt-dt-trigger-disabled {
603
603
  opacity: 0.35;
604
- filter: Alpha(opacity = 35);
604
+ filter: Alpha(opacity=35);
605
605
  background-image: none;
606
606
  cursor: default !important;
607
607
  }
@@ -663,7 +663,7 @@ $theme-color: #3f51b5;
663
663
 
664
664
  .nxt-hidden-accessible {
665
665
  border: 0;
666
- clip: rect(0 0 0 0);
666
+ clip-path: rect(0 0 0 0);
667
667
  height: 1px;
668
668
  margin: -1px;
669
669
  overflow: hidden;
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { InjectionToken, LOCALE_ID, Optional, Inject, Injectable, NgModule } from '@angular/core';
2
+ import { InjectionToken, inject, LOCALE_ID, Injectable, NgModule } from '@angular/core';
3
3
  import moment from 'moment';
4
4
  import { DateTimeAdapter, NXT_DATE_TIME_FORMATS } from 'nxt-pick-datetime';
5
5
 
@@ -27,9 +27,10 @@ function range(length, valueFunction) {
27
27
  return valuesArray;
28
28
  }
29
29
  class MomentDateTimeAdapter extends DateTimeAdapter {
30
- constructor(dateTimeLocale, options) {
30
+ constructor() {
31
+ const dateTimeLocale = inject(LOCALE_ID, { optional: true });
31
32
  super();
32
- this.options = options;
33
+ this.options = inject(NXT_MOMENT_DATE_TIME_ADAPTER_OPTIONS, { optional: true });
33
34
  this._localeData = {};
34
35
  this.setLocale(dateTimeLocale || moment.locale());
35
36
  }
@@ -151,7 +152,7 @@ class MomentDateTimeAdapter extends DateTimeAdapter {
151
152
  if (seconds < 0 || seconds > 59) {
152
153
  throw Error(`Invalid seconds "${seconds}". Seconds has to be between 0 and 59.`);
153
154
  }
154
- const result = this.createMoment({ year, month, date, hours, minutes, seconds }).locale(this.locale);
155
+ const result = this.createMoment({ year, month, date, hours, minutes, seconds }).locale(this.locale());
155
156
  // If the result isn't valid, the date must have been out of bounds for this month.
156
157
  if (!result.isValid()) {
157
158
  throw Error(`Invalid date "${date}" for month with index "${month}".`);
@@ -159,10 +160,10 @@ class MomentDateTimeAdapter extends DateTimeAdapter {
159
160
  return result;
160
161
  }
161
162
  clone(date) {
162
- return this.createMoment(date).clone().locale(this.locale);
163
+ return this.createMoment(date).clone().locale(this.locale());
163
164
  }
164
165
  now() {
165
- return this.createMoment().locale(this.locale);
166
+ return this.createMoment().locale(this.locale());
166
167
  }
167
168
  format(date, displayFormat) {
168
169
  date = this.clone(date);
@@ -173,9 +174,9 @@ class MomentDateTimeAdapter extends DateTimeAdapter {
173
174
  }
174
175
  parse(value, parseFormat) {
175
176
  if (value && typeof value === 'string') {
176
- return this.createMoment(value, parseFormat, this.locale);
177
+ return this.createMoment(value, parseFormat, this.locale());
177
178
  }
178
- return value ? this.createMoment(value).locale(this.locale) : undefined;
179
+ return value ? this.createMoment(value).locale(this.locale()) : undefined;
179
180
  }
180
181
  /**
181
182
  * Returns the given value if given a valid Moment or undefined. Deserializes valid ISO 8601 strings
@@ -191,7 +192,7 @@ class MomentDateTimeAdapter extends DateTimeAdapter {
191
192
  if (!value) {
192
193
  return undefined;
193
194
  }
194
- date = this.createMoment(value, moment.ISO_8601).locale(this.locale);
195
+ date = this.createMoment(value, moment.ISO_8601).locale(this.locale());
195
196
  }
196
197
  if (date && this.isValid(date)) {
197
198
  return date;
@@ -202,22 +203,12 @@ class MomentDateTimeAdapter extends DateTimeAdapter {
202
203
  createMoment(...args) {
203
204
  return (this.options && this.options.useUtc) ? moment.utc(...args) : moment(...args);
204
205
  }
205
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: MomentDateTimeAdapter, deps: [{ token: LOCALE_ID, optional: true }, { token: NXT_MOMENT_DATE_TIME_ADAPTER_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
206
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: MomentDateTimeAdapter }); }
206
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: MomentDateTimeAdapter, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
207
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: MomentDateTimeAdapter }); }
207
208
  }
208
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: MomentDateTimeAdapter, decorators: [{
209
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: MomentDateTimeAdapter, decorators: [{
209
210
  type: Injectable
210
- }], ctorParameters: () => [{ type: undefined, decorators: [{
211
- type: Optional
212
- }, {
213
- type: Inject,
214
- args: [LOCALE_ID]
215
- }] }, { type: undefined, decorators: [{
216
- type: Optional
217
- }, {
218
- type: Inject,
219
- args: [NXT_MOMENT_DATE_TIME_ADAPTER_OPTIONS]
220
- }] }] });
211
+ }], ctorParameters: () => [] });
221
212
 
222
213
  /**
223
214
  * @internal
@@ -245,14 +236,15 @@ function provideMomentDateTimeAdapter() {
245
236
  }
246
237
  ];
247
238
  }
239
+ /** @deprecated use provideMomentDateTimeAdapter */
248
240
  class MomentDateTimeModule {
249
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: MomentDateTimeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
250
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.5", ngImport: i0, type: MomentDateTimeModule }); }
251
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: MomentDateTimeModule, providers: [
241
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: MomentDateTimeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
242
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.8", ngImport: i0, type: MomentDateTimeModule }); }
243
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: MomentDateTimeModule, providers: [
252
244
  provideMomentDateTimeAdapter()
253
245
  ] }); }
254
246
  }
255
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: MomentDateTimeModule, decorators: [{
247
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: MomentDateTimeModule, decorators: [{
256
248
  type: NgModule,
257
249
  args: [{
258
250
  providers: [
@@ -1 +1 @@
1
- {"version":3,"file":"nxt-pick-datetime-moment-adapter.mjs","sources":["../../../packages/pick-datetime/moment-adapter/src/date-time-adapter.class.ts","../../../packages/pick-datetime/moment-adapter/src/date-time-format.class.ts","../../../packages/pick-datetime/moment-adapter/src/moment-adapter.module.ts","../../../packages/pick-datetime/moment-adapter/src/nxt-pick-datetime-moment-adapter.ts"],"sourcesContent":["import { Inject, Injectable, InjectionToken, LOCALE_ID, Optional } from '@angular/core'\r\nimport moment, { Moment } from 'moment'\r\nimport { DateTimeAdapter } from 'nxt-pick-datetime'\r\n\r\n/** Configurable options for {@see MomentDateAdapter} */\r\nexport interface MomentDateTimeAdapterOptions {\r\n /**\r\n * Turns the use of utc dates on or off.\r\n * Changing this will change how the DateTimePicker output value.\r\n * {@default false}\r\n */\r\n useUtc: boolean\r\n}\r\n\r\n/** InjectionToken for moment date adapter to configure options */\r\nexport const NXT_MOMENT_DATE_TIME_ADAPTER_OPTIONS = new InjectionToken<MomentDateTimeAdapterOptions>(\r\n 'NXT_MOMENT_DATE_TIME_ADAPTER_OPTIONS', {\r\n providedIn: 'root',\r\n factory: NXT_MOMENT_DATE_TIME_ADAPTER_OPTIONS_FACTORY\r\n })\r\n\r\n/** @internal */\r\nexport function NXT_MOMENT_DATE_TIME_ADAPTER_OPTIONS_FACTORY(): MomentDateTimeAdapterOptions {\r\n return {\r\n useUtc: false\r\n }\r\n}\r\n\r\n/**\r\n * Creates an array and fills it with values.\r\n *\r\n * @internal\r\n */\r\nfunction range<T>(length: number, valueFunction: (index: number) => T): T[] {\r\n const valuesArray = Array(length)\r\n for (let i = 0; i < length; i++) {\r\n valuesArray[i] = valueFunction(i)\r\n }\r\n return valuesArray\r\n}\r\n\r\n@Injectable()\r\nexport class MomentDateTimeAdapter extends DateTimeAdapter<Moment> {\r\n\r\n private _localeData: {\r\n longMonths: string[]\r\n shortMonths: string[]\r\n longDaysOfWeek: string[]\r\n shortDaysOfWeek: string[]\r\n narrowDaysOfWeek: string[]\r\n dates: string[]\r\n } = {} as any\r\n\r\n constructor(\r\n @Optional()\r\n @Inject(LOCALE_ID)\r\n dateTimeLocale?: string,\r\n @Optional()\r\n @Inject(NXT_MOMENT_DATE_TIME_ADAPTER_OPTIONS)\r\n private readonly options?: MomentDateTimeAdapterOptions\r\n ) {\r\n super()\r\n this.setLocale(dateTimeLocale || moment.locale())\r\n }\r\n\r\n override setLocale(locale: string) {\r\n super.setLocale(locale)\r\n\r\n const momentLocaleData = moment.localeData(locale)\r\n this._localeData = {\r\n longMonths: momentLocaleData.months(),\r\n shortMonths: momentLocaleData.monthsShort(),\r\n longDaysOfWeek: momentLocaleData.weekdays(),\r\n shortDaysOfWeek: momentLocaleData.weekdaysShort(),\r\n narrowDaysOfWeek: momentLocaleData.weekdaysMin(),\r\n dates: range(31, (i) => this.createDate(2017, 0, i + 1).format('D'))\r\n }\r\n }\r\n\r\n getYear(date: Moment): number {\r\n return this.clone(date).year()\r\n }\r\n\r\n getMonth(date: Moment): number {\r\n return this.clone(date).month()\r\n }\r\n\r\n getDay(date: Moment): number {\r\n return this.clone(date).day()\r\n }\r\n\r\n getDate(date: Moment): number {\r\n return this.clone(date).date()\r\n }\r\n\r\n getHours(date: Moment): number {\r\n return this.clone(date).hours()\r\n }\r\n\r\n getMinutes(date: Moment): number {\r\n return this.clone(date).minutes()\r\n }\r\n\r\n getSeconds(date: Moment): number {\r\n return this.clone(date).seconds()\r\n }\r\n\r\n getTime(date: Moment): number {\r\n return this.clone(date).valueOf()\r\n }\r\n\r\n getNumDaysInMonth(date: Moment): number {\r\n return this.clone(date).daysInMonth()\r\n }\r\n\r\n differenceInCalendarDays(dateLeft: Moment, dateRight: Moment): number {\r\n return this.clone(dateLeft).diff(dateRight, 'days')\r\n }\r\n\r\n getYearName(date: Moment): string {\r\n return this.clone(date).format('YYYY')\r\n }\r\n\r\n getMonthNames(style: 'long' | 'short' | 'narrow'): string[] {\r\n return style === 'long' ? this._localeData.longMonths : this._localeData.shortMonths\r\n }\r\n\r\n getDayOfWeekNames(style: 'long' | 'short' | 'narrow'): string[] {\r\n if (style === 'long') {\r\n return this._localeData.longDaysOfWeek\r\n }\r\n if (style === 'short') {\r\n return this._localeData.shortDaysOfWeek\r\n }\r\n return this._localeData.narrowDaysOfWeek\r\n }\r\n\r\n getDateNames(): string[] {\r\n return this._localeData.dates\r\n }\r\n\r\n toIso8601(date: Moment): string {\r\n return this.clone(date).format()\r\n }\r\n\r\n isEqual(dateLeft: Moment, dateRight: Moment): boolean {\r\n\r\n if (dateLeft && dateRight) {\r\n return this.clone(dateLeft).isSame(this.clone(dateRight))\r\n }\r\n\r\n return dateLeft === dateRight\r\n }\r\n\r\n isSameDay(dateLeft: Moment, dateRight: Moment): boolean {\r\n\r\n if (dateLeft && dateRight) {\r\n return this.clone(dateLeft).isSame(this.clone(dateRight), 'day')\r\n }\r\n\r\n return dateLeft === dateRight\r\n }\r\n\r\n isValid(date: Moment): boolean {\r\n return this.clone(date).isValid()\r\n }\r\n\r\n invalid(): Moment {\r\n return moment.invalid()\r\n }\r\n\r\n isDateInstance(obj: any): boolean {\r\n return moment.isMoment(obj)\r\n }\r\n\r\n addCalendarYears(date: Moment, amount: number): Moment {\r\n return this.clone(date).add({ years: amount })\r\n }\r\n\r\n addCalendarMonths(date: Moment, amount: number): Moment {\r\n return this.clone(date).add({ months: amount })\r\n }\r\n\r\n addCalendarDays(date: Moment, amount: number): Moment {\r\n return this.clone(date).add({ days: amount })\r\n }\r\n\r\n setHours(date: Moment, amount: number): Moment {\r\n return this.clone(date).hours(amount)\r\n }\r\n\r\n setMinutes(date: Moment, amount: number): Moment {\r\n return this.clone(date).minutes(amount)\r\n }\r\n\r\n setSeconds(date: Moment, amount: number): Moment {\r\n return this.clone(date).seconds(amount)\r\n }\r\n\r\n createDate(year: number, month: number, date: number): Moment\r\n createDate(year: number, month: number, date: number, hours: number = 0, minutes: number = 0, seconds: number = 0): Moment {\r\n if (month < 0 || month > 11) {\r\n throw Error(`Invalid month index \"${month}\". Month index has to be between 0 and 11.`)\r\n }\r\n\r\n if (date < 1) {\r\n throw Error(`Invalid date \"${date}\". Date has to be greater than 0.`)\r\n }\r\n\r\n if (hours < 0 || hours > 23) {\r\n throw Error(`Invalid hours \"${hours}\". Hours has to be between 0 and 23.`)\r\n }\r\n\r\n if (minutes < 0 || minutes > 59) {\r\n throw Error(`Invalid minutes \"${minutes}\". Minutes has to between 0 and 59.`)\r\n }\r\n\r\n if (seconds < 0 || seconds > 59) {\r\n throw Error(`Invalid seconds \"${seconds}\". Seconds has to be between 0 and 59.`)\r\n }\r\n\r\n const result = this.createMoment({ year, month, date, hours, minutes, seconds }).locale(this.locale)\r\n\r\n // If the result isn't valid, the date must have been out of bounds for this month.\r\n if (!result.isValid()) {\r\n throw Error(`Invalid date \"${date}\" for month with index \"${month}\".`)\r\n }\r\n\r\n return result\r\n }\r\n\r\n clone(date: Moment): Moment {\r\n return this.createMoment(date).clone().locale(this.locale)\r\n }\r\n\r\n now(): Moment {\r\n return this.createMoment().locale(this.locale)\r\n }\r\n\r\n format(date: Moment, displayFormat: any): string {\r\n date = this.clone(date)\r\n if (!this.isValid(date)) {\r\n throw Error('MomentDateTimeAdapter: Cannot format invalid date.')\r\n }\r\n return date.format(displayFormat)\r\n }\r\n\r\n parse(value: any, parseFormat: any): Moment | undefined {\r\n if (value && typeof value === 'string') {\r\n return this.createMoment(value, parseFormat, this.locale)\r\n }\r\n return value ? this.createMoment(value).locale(this.locale) : undefined\r\n }\r\n\r\n /**\r\n * Returns the given value if given a valid Moment or undefined. Deserializes valid ISO 8601 strings\r\n * (https://www.ietf.org/rfc/rfc3339.txt) and valid Date objects into valid Moments and empty\r\n * string into undefined. Returns an invalid date for all other values.\r\n */\r\n override deserialize(value: any): Moment | undefined {\r\n let date\r\n if (value instanceof Date) {\r\n date = this.createMoment(value)\r\n }\r\n if (typeof value === 'string') {\r\n if (!value) {\r\n return undefined\r\n }\r\n date = this.createMoment(value, moment.ISO_8601).locale(this.locale)\r\n }\r\n if (date && this.isValid(date)) {\r\n return date\r\n }\r\n return super.deserialize(value)\r\n }\r\n\r\n /** Creates a Moment instance while respecting the current UTC settings */\r\n private createMoment(...args: any[]): Moment {\r\n return (this.options && this.options.useUtc) ? moment.utc(...args) : moment(...args)\r\n }\r\n}\r\n","import { DateTimeFormats } from 'nxt-pick-datetime'\r\n\r\n/**\r\n * @internal\r\n */\r\nexport const NXT_MOMENT_DATE_TIME_FORMATS: DateTimeFormats = {\r\n parseInput: 'l LT',\r\n fullPickerInput: 'l LT',\r\n datePickerInput: 'l',\r\n timePickerInput: 'LT',\r\n monthYearLabel: 'MMM YYYY',\r\n dateA11yLabel: 'LL',\r\n monthYearA11yLabel: 'MMMM YYYY'\r\n}\r\n","import { LOCALE_ID, NgModule, Provider } from '@angular/core'\r\nimport { DateTimeAdapter, NXT_DATE_TIME_FORMATS } from 'nxt-pick-datetime'\r\nimport { MomentDateTimeAdapter, NXT_MOMENT_DATE_TIME_ADAPTER_OPTIONS } from './date-time-adapter.class'\r\nimport { NXT_MOMENT_DATE_TIME_FORMATS } from './date-time-format.class'\r\n\r\nexport function provideMomentDateTimeAdapter(): Provider[] {\r\n return [\r\n {\r\n provide: DateTimeAdapter,\r\n useClass: MomentDateTimeAdapter,\r\n deps: [LOCALE_ID, NXT_MOMENT_DATE_TIME_ADAPTER_OPTIONS]\r\n },\r\n {\r\n provide: NXT_DATE_TIME_FORMATS,\r\n useValue: NXT_MOMENT_DATE_TIME_FORMATS\r\n }\r\n ]\r\n}\r\n\r\n@NgModule({\r\n providers: [\r\n provideMomentDateTimeAdapter()\r\n ]\r\n})\r\nexport class MomentDateTimeModule { }\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAcA;MACa,oCAAoC,GAAG,IAAI,cAAc,CAClE,sCAAsC,EAAE;AACpC,IAAA,UAAU,EAAE,MAAM;AAClB,IAAA,OAAO,EAAE;AACZ,CAAA;AAEL;SACgB,4CAA4C,GAAA;IACxD,OAAO;AACH,QAAA,MAAM,EAAE;KACX;AACL;AAEA;;;;AAIG;AACH,SAAS,KAAK,CAAI,MAAc,EAAE,aAAmC,EAAA;AACjE,IAAA,MAAM,WAAW,GAAG,KAAK,CAAC,MAAM,CAAC;AACjC,IAAA,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,EAAE,CAAC,EAAE,EAAE;QAC7B,WAAW,CAAC,CAAC,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC;;AAErC,IAAA,OAAO,WAAW;AACtB;AAGM,MAAO,qBAAsB,SAAQ,eAAuB,CAAA;IAW9D,WAAA,CAGI,cAAuB,EAGN,OAAsC,EAAA;AAEvD,QAAA,KAAK,EAAE;QAFU,IAAA,CAAA,OAAO,GAAP,OAAO;QAfpB,IAAA,CAAA,WAAW,GAOf,EAAS;QAWT,IAAI,CAAC,SAAS,CAAC,cAAc,IAAI,MAAM,CAAC,MAAM,EAAE,CAAC;;AAG5C,IAAA,SAAS,CAAC,MAAc,EAAA;AAC7B,QAAA,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC;QAEvB,MAAM,gBAAgB,GAAG,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC;QAClD,IAAI,CAAC,WAAW,GAAG;AACf,YAAA,UAAU,EAAE,gBAAgB,CAAC,MAAM,EAAE;AACrC,YAAA,WAAW,EAAE,gBAAgB,CAAC,WAAW,EAAE;AAC3C,YAAA,cAAc,EAAE,gBAAgB,CAAC,QAAQ,EAAE;AA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,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;+GAApB,oBAAoB,EAAA,CAAA,CAAA;AAApB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,oBAAoB,EAAA,SAAA,EAJlB;AACP,YAAA,4BAA4B;AAC/B,SAAA,EAAA,CAAA,CAAA;;2FAEQ,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBALhC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,SAAS,EAAE;AACP,wBAAA,4BAA4B;AAC/B;AACJ,iBAAA;;;ACvBD;;AAEG;;;;"}
1
+ {"version":3,"file":"nxt-pick-datetime-moment-adapter.mjs","sources":["../../../packages/pick-datetime/moment-adapter/src/date-time-adapter.class.ts","../../../packages/pick-datetime/moment-adapter/src/date-time-format.class.ts","../../../packages/pick-datetime/moment-adapter/src/moment-adapter.module.ts","../../../packages/pick-datetime/moment-adapter/src/nxt-pick-datetime-moment-adapter.ts"],"sourcesContent":["import { inject, Injectable, InjectionToken, LOCALE_ID } from '@angular/core'\r\nimport moment, { Moment } from 'moment'\r\nimport { DateTimeAdapter } from 'nxt-pick-datetime'\r\n\r\n/** Configurable options for {@see MomentDateAdapter} */\r\nexport interface MomentDateTimeAdapterOptions {\r\n /**\r\n * Turns the use of utc dates on or off.\r\n * Changing this will change how the DateTimePicker output value.\r\n * {@default false}\r\n */\r\n useUtc: boolean\r\n}\r\n\r\n/** InjectionToken for moment date adapter to configure options */\r\nexport const NXT_MOMENT_DATE_TIME_ADAPTER_OPTIONS = new InjectionToken<MomentDateTimeAdapterOptions>('NXT_MOMENT_DATE_TIME_ADAPTER_OPTIONS', {\r\n providedIn: 'root',\r\n factory: NXT_MOMENT_DATE_TIME_ADAPTER_OPTIONS_FACTORY\r\n})\r\n\r\n/** @internal */\r\nexport function NXT_MOMENT_DATE_TIME_ADAPTER_OPTIONS_FACTORY(): MomentDateTimeAdapterOptions {\r\n return {\r\n useUtc: false\r\n }\r\n}\r\n\r\n/**\r\n * Creates an array and fills it with values.\r\n *\r\n * @internal\r\n */\r\nfunction range<T>(length: number, valueFunction: (index: number) => T): T[] {\r\n const valuesArray = Array(length)\r\n for (let i = 0; i < length; i++) {\r\n valuesArray[i] = valueFunction(i)\r\n }\r\n return valuesArray\r\n}\r\n\r\n@Injectable()\r\nexport class MomentDateTimeAdapter extends DateTimeAdapter<Moment> {\r\n private readonly options = inject(NXT_MOMENT_DATE_TIME_ADAPTER_OPTIONS, { optional: true })\r\n\r\n private _localeData: {\r\n longMonths: string[]\r\n shortMonths: string[]\r\n longDaysOfWeek: string[]\r\n shortDaysOfWeek: string[]\r\n narrowDaysOfWeek: string[]\r\n dates: string[]\r\n } = {} as any\r\n\r\n constructor() {\r\n const dateTimeLocale = inject(LOCALE_ID, { optional: true })\r\n\r\n super()\r\n this.setLocale(dateTimeLocale || moment.locale())\r\n }\r\n\r\n override setLocale(locale: string) {\r\n super.setLocale(locale)\r\n\r\n const momentLocaleData = moment.localeData(locale)\r\n this._localeData = {\r\n longMonths: momentLocaleData.months(),\r\n shortMonths: momentLocaleData.monthsShort(),\r\n longDaysOfWeek: momentLocaleData.weekdays(),\r\n shortDaysOfWeek: momentLocaleData.weekdaysShort(),\r\n narrowDaysOfWeek: momentLocaleData.weekdaysMin(),\r\n dates: range(31, (i) => this.createDate(2017, 0, i + 1).format('D'))\r\n }\r\n }\r\n\r\n getYear(date: Moment): number {\r\n return this.clone(date).year()\r\n }\r\n\r\n getMonth(date: Moment): number {\r\n return this.clone(date).month()\r\n }\r\n\r\n getDay(date: Moment): number {\r\n return this.clone(date).day()\r\n }\r\n\r\n getDate(date: Moment): number {\r\n return this.clone(date).date()\r\n }\r\n\r\n getHours(date: Moment): number {\r\n return this.clone(date).hours()\r\n }\r\n\r\n getMinutes(date: Moment): number {\r\n return this.clone(date).minutes()\r\n }\r\n\r\n getSeconds(date: Moment): number {\r\n return this.clone(date).seconds()\r\n }\r\n\r\n getTime(date: Moment): number {\r\n return this.clone(date).valueOf()\r\n }\r\n\r\n getNumDaysInMonth(date: Moment): number {\r\n return this.clone(date).daysInMonth()\r\n }\r\n\r\n differenceInCalendarDays(dateLeft: Moment, dateRight: Moment): number {\r\n return this.clone(dateLeft).diff(dateRight, 'days')\r\n }\r\n\r\n getYearName(date: Moment): string {\r\n return this.clone(date).format('YYYY')\r\n }\r\n\r\n getMonthNames(style: 'long' | 'short' | 'narrow'): string[] {\r\n return style === 'long' ? this._localeData.longMonths : this._localeData.shortMonths\r\n }\r\n\r\n getDayOfWeekNames(style: 'long' | 'short' | 'narrow'): string[] {\r\n if (style === 'long') {\r\n return this._localeData.longDaysOfWeek\r\n }\r\n if (style === 'short') {\r\n return this._localeData.shortDaysOfWeek\r\n }\r\n return this._localeData.narrowDaysOfWeek\r\n }\r\n\r\n getDateNames(): string[] {\r\n return this._localeData.dates\r\n }\r\n\r\n toIso8601(date: Moment): string {\r\n return this.clone(date).format()\r\n }\r\n\r\n isEqual(dateLeft: Moment, dateRight: Moment): boolean {\r\n\r\n if (dateLeft && dateRight) {\r\n return this.clone(dateLeft).isSame(this.clone(dateRight))\r\n }\r\n\r\n return dateLeft === dateRight\r\n }\r\n\r\n isSameDay(dateLeft: Moment, dateRight: Moment): boolean {\r\n\r\n if (dateLeft && dateRight) {\r\n return this.clone(dateLeft).isSame(this.clone(dateRight), 'day')\r\n }\r\n\r\n return dateLeft === dateRight\r\n }\r\n\r\n isValid(date: Moment): boolean {\r\n return this.clone(date).isValid()\r\n }\r\n\r\n invalid(): Moment {\r\n return moment.invalid()\r\n }\r\n\r\n isDateInstance(obj: any): boolean {\r\n return moment.isMoment(obj)\r\n }\r\n\r\n addCalendarYears(date: Moment, amount: number): Moment {\r\n return this.clone(date).add({ years: amount })\r\n }\r\n\r\n addCalendarMonths(date: Moment, amount: number): Moment {\r\n return this.clone(date).add({ months: amount })\r\n }\r\n\r\n addCalendarDays(date: Moment, amount: number): Moment {\r\n return this.clone(date).add({ days: amount })\r\n }\r\n\r\n setHours(date: Moment, amount: number): Moment {\r\n return this.clone(date).hours(amount)\r\n }\r\n\r\n setMinutes(date: Moment, amount: number): Moment {\r\n return this.clone(date).minutes(amount)\r\n }\r\n\r\n setSeconds(date: Moment, amount: number): Moment {\r\n return this.clone(date).seconds(amount)\r\n }\r\n\r\n createDate(year: number, month: number, date: number): Moment\r\n createDate(year: number, month: number, date: number, hours: number = 0, minutes: number = 0, seconds: number = 0): Moment {\r\n if (month < 0 || month > 11) {\r\n throw Error(`Invalid month index \"${month}\". Month index has to be between 0 and 11.`)\r\n }\r\n\r\n if (date < 1) {\r\n throw Error(`Invalid date \"${date}\". Date has to be greater than 0.`)\r\n }\r\n\r\n if (hours < 0 || hours > 23) {\r\n throw Error(`Invalid hours \"${hours}\". Hours has to be between 0 and 23.`)\r\n }\r\n\r\n if (minutes < 0 || minutes > 59) {\r\n throw Error(`Invalid minutes \"${minutes}\". Minutes has to between 0 and 59.`)\r\n }\r\n\r\n if (seconds < 0 || seconds > 59) {\r\n throw Error(`Invalid seconds \"${seconds}\". Seconds has to be between 0 and 59.`)\r\n }\r\n\r\n const result = this.createMoment({ year, month, date, hours, minutes, seconds }).locale(this.locale())\r\n\r\n // If the result isn't valid, the date must have been out of bounds for this month.\r\n if (!result.isValid()) {\r\n throw Error(`Invalid date \"${date}\" for month with index \"${month}\".`)\r\n }\r\n\r\n return result\r\n }\r\n\r\n clone(date: Moment): Moment {\r\n return this.createMoment(date).clone().locale(this.locale())\r\n }\r\n\r\n now(): Moment {\r\n return this.createMoment().locale(this.locale())\r\n }\r\n\r\n format(date: Moment, displayFormat: any): string {\r\n date = this.clone(date)\r\n if (!this.isValid(date)) {\r\n throw Error('MomentDateTimeAdapter: Cannot format invalid date.')\r\n }\r\n return date.format(displayFormat)\r\n }\r\n\r\n parse(value: any, parseFormat: any): Moment | undefined {\r\n if (value && typeof value === 'string') {\r\n return this.createMoment(value, parseFormat, this.locale())\r\n }\r\n return value ? this.createMoment(value).locale(this.locale()) : undefined\r\n }\r\n\r\n /**\r\n * Returns the given value if given a valid Moment or undefined. Deserializes valid ISO 8601 strings\r\n * (https://www.ietf.org/rfc/rfc3339.txt) and valid Date objects into valid Moments and empty\r\n * string into undefined. Returns an invalid date for all other values.\r\n */\r\n override deserialize(value: any): Moment | undefined {\r\n let date\r\n if (value instanceof Date) {\r\n date = this.createMoment(value)\r\n }\r\n if (typeof value === 'string') {\r\n if (!value) {\r\n return undefined\r\n }\r\n date = this.createMoment(value, moment.ISO_8601).locale(this.locale())\r\n }\r\n if (date && this.isValid(date)) {\r\n return date\r\n }\r\n return super.deserialize(value)\r\n }\r\n\r\n /** Creates a Moment instance while respecting the current UTC settings */\r\n private createMoment(...args: any[]): Moment {\r\n return (this.options && this.options.useUtc) ? moment.utc(...args) : moment(...args)\r\n }\r\n}\r\n","import { DateTimeFormats } from 'nxt-pick-datetime'\r\n\r\n/**\r\n * @internal\r\n */\r\nexport const NXT_MOMENT_DATE_TIME_FORMATS: DateTimeFormats = {\r\n parseInput: 'l LT',\r\n fullPickerInput: 'l LT',\r\n datePickerInput: 'l',\r\n timePickerInput: 'LT',\r\n monthYearLabel: 'MMM YYYY',\r\n dateA11yLabel: 'LL',\r\n monthYearA11yLabel: 'MMMM YYYY'\r\n}\r\n","import { LOCALE_ID, NgModule, Provider } from '@angular/core'\r\nimport { DateTimeAdapter, NXT_DATE_TIME_FORMATS } from 'nxt-pick-datetime'\r\nimport { MomentDateTimeAdapter, NXT_MOMENT_DATE_TIME_ADAPTER_OPTIONS } from './date-time-adapter.class'\r\nimport { NXT_MOMENT_DATE_TIME_FORMATS } from './date-time-format.class'\r\n\r\nexport function provideMomentDateTimeAdapter(): Provider[] {\r\n return [\r\n {\r\n provide: DateTimeAdapter,\r\n useClass: MomentDateTimeAdapter,\r\n deps: [LOCALE_ID, NXT_MOMENT_DATE_TIME_ADAPTER_OPTIONS]\r\n },\r\n {\r\n provide: NXT_DATE_TIME_FORMATS,\r\n useValue: NXT_MOMENT_DATE_TIME_FORMATS\r\n }\r\n ]\r\n}\r\n\r\n/** @deprecated use provideMomentDateTimeAdapter */\r\n@NgModule({\r\n providers: [\r\n provideMomentDateTimeAdapter()\r\n ]\r\n})\r\nexport class MomentDateTimeModule { }\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAcA;MACa,oCAAoC,GAAG,IAAI,cAAc,CAA+B,sCAAsC,EAAE;AACzI,IAAA,UAAU,EAAE,MAAM;AAClB,IAAA,OAAO,EAAE;AACZ,CAAA;AAED;SACgB,4CAA4C,GAAA;IACxD,OAAO;AACH,QAAA,MAAM,EAAE;KACX;AACL;AAEA;;;;AAIG;AACH,SAAS,KAAK,CAAI,MAAc,EAAE,aAAmC,EAAA;AACjE,IAAA,MAAM,WAAW,GAAG,KAAK,CAAC,MAAM,CAAC;AACjC,IAAA,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,EAAE,CAAC,EAAE,EAAE;QAC7B,WAAW,CAAC,CAAC,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC;IACrC;AACA,IAAA,OAAO,WAAW;AACtB;AAGM,MAAO,qBAAsB,SAAQ,eAAuB,CAAA;AAY9D,IAAA,WAAA,GAAA;AACI,QAAA,MAAM,cAAc,GAAG,MAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AAE5D,QAAA,KAAK,EAAE;QAdM,IAAA,CAAA,OAAO,GAAG,MAAM,CAAC,oCAAoC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;QAEnF,IAAA,CAAA,WAAW,GAOf,EAAS;QAMT,IAAI,CAAC,SAAS,CAAC,cAAc,IAAI,MAAM,CAAC,MAAM,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,IAAI;AACrB,IAAA,cAAc,EAAE,UAAU;AAC1B,IAAA,aAAa,EAAE,IAAI;AACnB,IAAA,kBAAkB,EAAE;CACvB;;SCRe,4BAA4B,GAAA;IACxC,OAAO;AACH,QAAA;AACI,YAAA,OAAO,EAAE,eAAe;AACxB,YAAA,QAAQ,EAAE,qBAAqB;AAC/B,YAAA,IAAI,EAAE,CAAC,SAAS,EAAE,oCAAoC;AACzD,SAAA;AACD,QAAA;AACI,YAAA,OAAO,EAAE,qBAAqB;AAC9B,YAAA,QAAQ,EAAE;AACb;KACJ;AACL;AAEA;MAMa,oBAAoB,CAAA;8GAApB,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;+GAApB,oBAAoB,EAAA,CAAA,CAAA;AAApB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,oBAAoB,EAAA,SAAA,EAJlB;AACP,YAAA,4BAA4B;AAC/B,SAAA,EAAA,CAAA,CAAA;;2FAEQ,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBALhC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,SAAS,EAAE;AACP,wBAAA,4BAA4B;AAC/B;AACJ,iBAAA;;;ACxBD;;AAEG;;;;"}
@@ -1,7 +1,6 @@
1
- import * as i1 from '@angular/cdk/platform';
2
- import { PlatformModule } from '@angular/cdk/platform';
1
+ import { Platform, PlatformModule } from '@angular/cdk/platform';
3
2
  import * as i0 from '@angular/core';
4
- import { LOCALE_ID, Optional, Inject, Injectable, NgModule } from '@angular/core';
3
+ import { inject, LOCALE_ID, Injectable, NgModule } from '@angular/core';
5
4
  import { DateTimeAdapter, NXT_DATE_TIME_FORMATS } from 'nxt-pick-datetime';
6
5
 
7
6
  /**
@@ -91,7 +90,9 @@ function range(length, valueFunction) {
91
90
  return valuesArray;
92
91
  }
93
92
  class NativeDateTimeAdapter extends DateTimeAdapter {
94
- constructor(platform, dateTimeLocale) {
93
+ constructor() {
94
+ const platform = inject(Platform);
95
+ const dateTimeLocale = inject(LOCALE_ID, { optional: true });
95
96
  super();
96
97
  super.setLocale(dateTimeLocale);
97
98
  // IE does its own time zone correction, so we disable this on IE.
@@ -144,7 +145,7 @@ class NativeDateTimeAdapter extends DateTimeAdapter {
144
145
  }
145
146
  getYearName(date) {
146
147
  if (SUPPORTS_INTL_API) {
147
- const dtf = new Intl.DateTimeFormat(this.locale, {
148
+ const dtf = new Intl.DateTimeFormat(this.locale(), {
148
149
  year: 'numeric',
149
150
  timeZone: 'utc'
150
151
  });
@@ -154,7 +155,7 @@ class NativeDateTimeAdapter extends DateTimeAdapter {
154
155
  }
155
156
  getMonthNames(style) {
156
157
  if (SUPPORTS_INTL_API) {
157
- const dtf = new Intl.DateTimeFormat(this.locale, {
158
+ const dtf = new Intl.DateTimeFormat(this.locale(), {
158
159
  month: style,
159
160
  timeZone: 'utc'
160
161
  });
@@ -164,7 +165,7 @@ class NativeDateTimeAdapter extends DateTimeAdapter {
164
165
  }
165
166
  getDayOfWeekNames(style) {
166
167
  if (SUPPORTS_INTL_API) {
167
- const dtf = new Intl.DateTimeFormat(this.locale, {
168
+ const dtf = new Intl.DateTimeFormat(this.locale(), {
168
169
  weekday: style,
169
170
  timeZone: 'utc'
170
171
  });
@@ -174,7 +175,7 @@ class NativeDateTimeAdapter extends DateTimeAdapter {
174
175
  }
175
176
  getDateNames() {
176
177
  if (SUPPORTS_INTL_API) {
177
- const dtf = new Intl.DateTimeFormat(this.locale, {
178
+ const dtf = new Intl.DateTimeFormat(this.locale(), {
178
179
  day: 'numeric',
179
180
  timeZone: 'utc'
180
181
  });
@@ -292,7 +293,7 @@ class NativeDateTimeAdapter extends DateTimeAdapter {
292
293
  date.setFullYear(Math.max(1, Math.min(9999, date.getFullYear())));
293
294
  }
294
295
  displayFormat = { ...displayFormat, timeZone: 'utc' };
295
- const dtf = new Intl.DateTimeFormat(this.locale, displayFormat);
296
+ const dtf = new Intl.DateTimeFormat(this.locale(), displayFormat);
296
297
  return this.stripDirectionalityCharacters(this._format(dtf, date));
297
298
  }
298
299
  return this.stripDirectionalityCharacters(date.toDateString());
@@ -354,17 +355,12 @@ class NativeDateTimeAdapter extends DateTimeAdapter {
354
355
  const d = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds()));
355
356
  return dtf.format(d);
356
357
  }
357
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: NativeDateTimeAdapter, deps: [{ token: i1.Platform }, { token: LOCALE_ID, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
358
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: NativeDateTimeAdapter }); }
358
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: NativeDateTimeAdapter, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
359
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: NativeDateTimeAdapter }); }
359
360
  }
360
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: NativeDateTimeAdapter, decorators: [{
361
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: NativeDateTimeAdapter, decorators: [{
361
362
  type: Injectable
362
- }], ctorParameters: () => [{ type: i1.Platform }, { type: undefined, decorators: [{
363
- type: Optional
364
- }, {
365
- type: Inject,
366
- args: [LOCALE_ID]
367
- }] }] });
363
+ }], ctorParameters: () => [] });
368
364
 
369
365
  /**
370
366
  * @internal
@@ -391,14 +387,15 @@ function provideNativeDateTimeAdapter() {
391
387
  }
392
388
  ];
393
389
  }
390
+ /** @deprecated use provideNativeDateTimeAdapter */
394
391
  class NativeDateTimeModule {
395
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: NativeDateTimeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
396
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.5", ngImport: i0, type: NativeDateTimeModule, imports: [PlatformModule] }); }
397
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: NativeDateTimeModule, providers: [
392
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: NativeDateTimeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
393
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.8", ngImport: i0, type: NativeDateTimeModule, imports: [PlatformModule] }); }
394
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: NativeDateTimeModule, providers: [
398
395
  provideNativeDateTimeAdapter()
399
396
  ], imports: [PlatformModule] }); }
400
397
  }
401
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: NativeDateTimeModule, decorators: [{
398
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: NativeDateTimeModule, decorators: [{
402
399
  type: NgModule,
403
400
  args: [{
404
401
  imports: [PlatformModule],
@@ -1 +1 @@
1
- {"version":3,"file":"nxt-pick-datetime-native-adapter.mjs","sources":["../../../packages/pick-datetime/native-adapter/src/date-time-adapter.class.ts","../../../packages/pick-datetime/native-adapter/src/date-time-format.class.ts","../../../packages/pick-datetime/native-adapter/src/native-adapter.module.ts","../../../packages/pick-datetime/native-adapter/src/nxt-pick-datetime-native-adapter.ts"],"sourcesContent":["import { Platform } from '@angular/cdk/platform'\r\nimport { Inject, Injectable, LOCALE_ID, Optional } from '@angular/core'\r\nimport { DateTimeAdapter } from 'nxt-pick-datetime'\r\n\r\n/**\r\n * The default month names to use if Intl API is not available.\r\n *\r\n * @internal\r\n */\r\nconst DEFAULT_MONTH_NAMES = {\r\n long: [\r\n 'January',\r\n 'February',\r\n 'March',\r\n 'April',\r\n 'May',\r\n 'June',\r\n 'July',\r\n 'August',\r\n 'September',\r\n 'October',\r\n 'November',\r\n 'December'\r\n ],\r\n short: [\r\n 'Jan',\r\n 'Feb',\r\n 'Mar',\r\n 'Apr',\r\n 'May',\r\n 'Jun',\r\n 'Jul',\r\n 'Aug',\r\n 'Sep',\r\n 'Oct',\r\n 'Nov',\r\n 'Dec'\r\n ],\r\n narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D']\r\n}\r\n\r\n/**\r\n * The default day of the week names to use if Intl API is not available.\r\n *\r\n * @internal\r\n */\r\nconst DEFAULT_DAY_OF_WEEK_NAMES = {\r\n long: [\r\n 'Sunday',\r\n 'Monday',\r\n 'Tuesday',\r\n 'Wednesday',\r\n 'Thursday',\r\n 'Friday',\r\n 'Saturday'\r\n ],\r\n short: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\r\n narrow: ['S', 'M', 'T', 'W', 'T', 'F', 'S']\r\n}\r\n\r\n/**\r\n * The default date names to use if Intl API is not available.\r\n *\r\n * @internal\r\n */\r\nconst DEFAULT_DATE_NAMES = range(31, i => String(i + 1))\r\n\r\n/**\r\n * Whether the browser supports the Intl API.\r\n *\r\n * @internal\r\n */\r\nconst SUPPORTS_INTL_API = typeof Intl !== 'undefined'\r\n\r\n/**\r\n * Matches strings that have the form of a valid RFC 3339 string\r\n * (https://tools.ietf.org/html/rfc3339). Note that the string may not actually be a valid date\r\n * because the regex will match strings an with out of bounds month, date, etc.\r\n *\r\n * @internal\r\n */\r\nconst ISO_8601_REGEX = /^\\d{4}-\\d{2}-\\d{2}(?:T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?(?:Z|(?:(?:\\+|-)\\d{2}:\\d{2}))?)?$/\r\n\r\n/**\r\n * Creates an array and fills it with values.\r\n *\r\n * @internal\r\n */\r\nfunction range<T>(length: number, valueFunction: (index: number) => T): T[] {\r\n const valuesArray = Array(length)\r\n for (let i = 0; i < length; i++) {\r\n valuesArray[i] = valueFunction(i)\r\n }\r\n return valuesArray\r\n}\r\n\r\n@Injectable()\r\nexport class NativeDateTimeAdapter extends DateTimeAdapter<Date> {\r\n /** Whether to clamp the date between 1 and 9999 to avoid IE and Edge errors */\r\n private readonly _clampDate: boolean\r\n\r\n /**\r\n * Whether to use `timeZone: 'utc'` with `Intl.DateTimeFormat` when formatting dates.\r\n * Without this `Intl.DateTimeFormat` sometimes chooses the wrong timeZone, which can throw off\r\n * the result. (e.g. in the en-US locale `new Date(1800, 7, 14).toLocaleDateString()`\r\n * will produce `'8/13/1800'`.\r\n */\r\n useUtcForDisplay: boolean\r\n\r\n constructor(\r\n platform: Platform,\r\n @Optional()\r\n @Inject(LOCALE_ID)\r\n dateTimeLocale?: string\r\n ) {\r\n super()\r\n super.setLocale(dateTimeLocale)\r\n\r\n // IE does its own time zone correction, so we disable this on IE.\r\n this.useUtcForDisplay = !platform.TRIDENT\r\n this._clampDate = platform.TRIDENT || platform.EDGE\r\n }\r\n\r\n getYear(date: Date): number {\r\n return date.getFullYear()\r\n }\r\n\r\n getMonth(date: Date): number {\r\n return date.getMonth()\r\n }\r\n\r\n getDay(date: Date): number {\r\n return date.getDay()\r\n }\r\n\r\n getDate(date: Date): number {\r\n return date.getDate()\r\n }\r\n\r\n getHours(date: Date): number {\r\n return date.getHours()\r\n }\r\n\r\n getMinutes(date: Date): number {\r\n return date.getMinutes()\r\n }\r\n\r\n getSeconds(date: Date): number {\r\n return date.getSeconds()\r\n }\r\n\r\n getTime(date: Date): number {\r\n return date.getTime()\r\n }\r\n\r\n getNumDaysInMonth(date: Date): number {\r\n const lastDateOfMonth = this.createDateWithOverflow(\r\n this.getYear(date),\r\n this.getMonth(date) + 1,\r\n 0\r\n )\r\n\r\n return this.getDate(lastDateOfMonth)\r\n }\r\n\r\n differenceInCalendarDays(dateLeft: Date, dateRight: Date): number | undefined {\r\n if (this.isValid(dateLeft) && this.isValid(dateRight)) {\r\n const dateLeftStartOfDay = this.createDate(\r\n this.getYear(dateLeft),\r\n this.getMonth(dateLeft),\r\n this.getDate(dateLeft)\r\n )\r\n const dateRightStartOfDay = this.createDate(\r\n this.getYear(dateRight),\r\n this.getMonth(dateRight),\r\n this.getDate(dateRight)\r\n )\r\n\r\n const timeStampLeft =\r\n this.getTime(dateLeftStartOfDay) -\r\n dateLeftStartOfDay.getTimezoneOffset() *\r\n this.milliseondsInMinute\r\n const timeStampRight =\r\n this.getTime(dateRightStartOfDay) -\r\n dateRightStartOfDay.getTimezoneOffset() *\r\n this.milliseondsInMinute\r\n return Math.round(\r\n (timeStampLeft - timeStampRight) / this.millisecondsInDay\r\n )\r\n } else {\r\n return undefined\r\n }\r\n }\r\n\r\n getYearName(date: Date): string {\r\n if (SUPPORTS_INTL_API) {\r\n const dtf = new Intl.DateTimeFormat(this.locale, {\r\n year: 'numeric',\r\n timeZone: 'utc'\r\n })\r\n return this.stripDirectionalityCharacters(this._format(dtf, date))\r\n }\r\n return String(this.getYear(date))\r\n }\r\n\r\n getMonthNames(style: 'long' | 'short' | 'narrow'): string[] {\r\n if (SUPPORTS_INTL_API) {\r\n const dtf = new Intl.DateTimeFormat(this.locale, {\r\n month: style,\r\n timeZone: 'utc'\r\n })\r\n return range(12, i =>\r\n this.stripDirectionalityCharacters(\r\n this._format(dtf, new Date(2017, i, 1))\r\n )\r\n )\r\n }\r\n return DEFAULT_MONTH_NAMES[style]\r\n }\r\n\r\n getDayOfWeekNames(style: 'long' | 'short' | 'narrow'): string[] {\r\n if (SUPPORTS_INTL_API) {\r\n const dtf = new Intl.DateTimeFormat(this.locale, {\r\n weekday: style,\r\n timeZone: 'utc'\r\n })\r\n return range(7, i =>\r\n this.stripDirectionalityCharacters(\r\n this._format(dtf, new Date(2017, 0, i + 1))\r\n )\r\n )\r\n }\r\n\r\n return DEFAULT_DAY_OF_WEEK_NAMES[style]\r\n }\r\n\r\n getDateNames(): string[] {\r\n if (SUPPORTS_INTL_API) {\r\n const dtf = new Intl.DateTimeFormat(this.locale, {\r\n day: 'numeric',\r\n timeZone: 'utc'\r\n })\r\n return range(31, i =>\r\n this.stripDirectionalityCharacters(\r\n this._format(dtf, new Date(2017, 0, i + 1))\r\n )\r\n )\r\n }\r\n return DEFAULT_DATE_NAMES\r\n }\r\n\r\n toIso8601(date: Date): string {\r\n return date.toISOString()\r\n }\r\n\r\n isEqual(dateLeft: Date, dateRight: Date): boolean {\r\n if (this.isValid(dateLeft) && this.isValid(dateRight)) {\r\n return dateLeft.getTime() === dateRight.getTime()\r\n } else {\r\n return false\r\n }\r\n }\r\n\r\n isSameDay(dateLeft: Date, dateRight: Date): boolean {\r\n if (this.isValid(dateLeft) && this.isValid(dateRight)) {\r\n const dateLeftStartOfDay = this.clone(dateLeft)\r\n const dateRightStartOfDay = this.clone(dateRight)\r\n dateLeftStartOfDay.setHours(0, 0, 0, 0)\r\n dateRightStartOfDay.setHours(0, 0, 0, 0)\r\n return (\r\n dateLeftStartOfDay.getTime() === dateRightStartOfDay.getTime()\r\n )\r\n } else {\r\n return false\r\n }\r\n }\r\n\r\n isValid(date: Date): boolean {\r\n return date && !isNaN(date.getTime())\r\n }\r\n\r\n invalid(): Date {\r\n return new Date(NaN)\r\n }\r\n\r\n isDateInstance(obj: any): boolean {\r\n return obj instanceof Date\r\n }\r\n\r\n addCalendarYears(date: Date, amount: number): Date {\r\n return this.addCalendarMonths(date, amount * 12)\r\n }\r\n\r\n addCalendarMonths(date: Date, amount: number): Date {\r\n const result = this.clone(date)\r\n amount = Number(amount)\r\n\r\n const desiredMonth = result.getMonth() + amount\r\n const dateWithDesiredMonth = new Date(0)\r\n dateWithDesiredMonth.setFullYear(result.getFullYear(), desiredMonth, 1)\r\n dateWithDesiredMonth.setHours(0, 0, 0, 0)\r\n\r\n const daysInMonth = this.getNumDaysInMonth(dateWithDesiredMonth)\r\n // Set the last day of the new month\r\n // if the original date was the last day of the longer month\r\n result.setMonth(desiredMonth, Math.min(daysInMonth, result.getDate()))\r\n return result\r\n }\r\n\r\n addCalendarDays(date: Date, amount: number): Date {\r\n const result = this.clone(date)\r\n amount = Number(amount)\r\n result.setDate(result.getDate() + amount)\r\n return result\r\n }\r\n\r\n setHours(date: Date, amount: number): Date {\r\n const result = this.clone(date)\r\n result.setHours(amount)\r\n return result\r\n }\r\n\r\n setMinutes(date: Date, amount: number): Date {\r\n const result = this.clone(date)\r\n result.setMinutes(amount)\r\n return result\r\n }\r\n\r\n setSeconds(date: Date, amount: number): Date {\r\n const result = this.clone(date)\r\n result.setSeconds(amount)\r\n return result\r\n }\r\n\r\n createDate(\r\n year: number,\r\n month: number,\r\n date: number,\r\n hours: number = 0,\r\n minutes: number = 0,\r\n seconds: number = 0\r\n ): Date {\r\n if (month < 0 || month > 11) {\r\n throw Error(\r\n `Invalid month index \"${month}\". Month index has to be between 0 and 11.`\r\n )\r\n }\r\n\r\n if (date < 1) {\r\n throw Error(\r\n `Invalid date \"${date}\". Date has to be greater than 0.`\r\n )\r\n }\r\n\r\n if (hours < 0 || hours > 23) {\r\n throw Error(\r\n `Invalid hours \"${hours}\". Hours has to be between 0 and 23.`\r\n )\r\n }\r\n\r\n if (minutes < 0 || minutes > 59) {\r\n throw Error(\r\n `Invalid minutes \"${minutes}\". Minutes has to between 0 and 59.`\r\n )\r\n }\r\n\r\n if (seconds < 0 || seconds > 59) {\r\n throw Error(\r\n `Invalid seconds \"${seconds}\". Seconds has to be between 0 and 59.`\r\n )\r\n }\r\n\r\n const result = this.createDateWithOverflow(\r\n year,\r\n month,\r\n date,\r\n hours,\r\n minutes,\r\n seconds\r\n )\r\n\r\n // Check that the date wasn't above the upper bound for the month, causing the month to overflow\r\n // For example, createDate(2017, 1, 31) would try to create a date 2017/02/31 which is invalid\r\n if (result.getMonth() !== month) {\r\n throw Error(\r\n `Invalid date \"${date}\" for month with index \"${month}\".`\r\n )\r\n }\r\n\r\n return result\r\n }\r\n\r\n clone(date: Date): Date {\r\n return this.createDate(\r\n this.getYear(date),\r\n this.getMonth(date),\r\n this.getDate(date),\r\n this.getHours(date),\r\n this.getMinutes(date),\r\n this.getSeconds(date)\r\n )\r\n }\r\n\r\n now(): Date {\r\n return new Date()\r\n }\r\n\r\n format(date: Date, displayFormat: any): string {\r\n if (!this.isValid(date)) {\r\n throw Error('JSNativeDate: Cannot format invalid date.')\r\n }\r\n\r\n if (SUPPORTS_INTL_API) {\r\n if (\r\n this._clampDate &&\r\n (date.getFullYear() < 1 || date.getFullYear() > 9999)\r\n ) {\r\n date = this.clone(date)\r\n date.setFullYear(\r\n Math.max(1, Math.min(9999, date.getFullYear()))\r\n )\r\n }\r\n\r\n displayFormat = { ...displayFormat, timeZone: 'utc' }\r\n const dtf = new Intl.DateTimeFormat(this.locale, displayFormat)\r\n return this.stripDirectionalityCharacters(this._format(dtf, date))\r\n }\r\n\r\n return this.stripDirectionalityCharacters(date.toDateString())\r\n }\r\n\r\n parse(value: any, _parseFormat: any): Date | undefined {\r\n // There is no way using the native JS Date to set the parse format or locale\r\n if (typeof value === 'number') {\r\n return new Date(value)\r\n }\r\n return value ? new Date(Date.parse(value)) : undefined\r\n }\r\n\r\n /**\r\n * Returns the given value if given a valid Date or undefined. Deserializes valid ISO 8601 strings\r\n * (https://www.ietf.org/rfc/rfc3339.txt) into valid Dates and empty string into undefined. Returns an\r\n * invalid date for all other values.\r\n */\r\n override deserialize(value: any): Date | undefined {\r\n if (typeof value === 'string') {\r\n if (!value) {\r\n return undefined\r\n }\r\n // The `Date` constructor accepts formats other than ISO 8601, so we need to make sure the\r\n // string is the right format first.\r\n if (ISO_8601_REGEX.test(value)) {\r\n const date = new Date(value)\r\n if (this.isValid(date)) {\r\n return date\r\n }\r\n }\r\n }\r\n return super.deserialize(value)\r\n }\r\n\r\n /**\r\n * Creates a date but allows the month and date to overflow.\r\n */\r\n private createDateWithOverflow(\r\n year: number,\r\n month: number,\r\n date: number,\r\n hours: number = 0,\r\n minutes: number = 0,\r\n seconds: number = 0\r\n ): Date {\r\n const result = new Date(year, month, date, hours, minutes, seconds)\r\n\r\n if (year >= 0 && year < 100) {\r\n result.setFullYear(this.getYear(result) - 1900)\r\n }\r\n return result\r\n }\r\n\r\n /**\r\n * Strip out unicode LTR and RTL characters. Edge and IE insert these into formatted dates while\r\n * other browsers do not. We remove them to make output consistent and because they interfere with\r\n * date parsing.\r\n */\r\n private stripDirectionalityCharacters(str: string) {\r\n return str.replace(/[\\u200e\\u200f]/g, '')\r\n }\r\n\r\n /**\r\n * When converting Date object to string, javascript built-in functions may return wrong\r\n * results because it applies its internal DST rules. The DST rules around the world change\r\n * very frequently, and the current valid rule is not always valid in previous years though.\r\n * We work around this problem building a new Date object which has its internal UTC\r\n * representation with the local date and time.\r\n */\r\n private _format(dtf: Intl.DateTimeFormat, date: Date) {\r\n const d = new Date(\r\n Date.UTC(\r\n date.getFullYear(),\r\n date.getMonth(),\r\n date.getDate(),\r\n date.getHours(),\r\n date.getMinutes(),\r\n date.getSeconds(),\r\n date.getMilliseconds()\r\n )\r\n )\r\n return dtf.format(d)\r\n }\r\n}\r\n","import { DateTimeFormats } from 'nxt-pick-datetime'\r\n\r\n/**\r\n * @internal\r\n */\r\nexport const NXT_NATIVE_DATE_TIME_FORMATS: DateTimeFormats = {\r\n parseInput: null,\r\n fullPickerInput: { year: 'numeric', month: 'numeric', day: 'numeric', hour: 'numeric', minute: 'numeric' },\r\n datePickerInput: { year: 'numeric', month: 'numeric', day: 'numeric' },\r\n timePickerInput: { hour: 'numeric', minute: 'numeric' },\r\n monthYearLabel: { year: 'numeric', month: 'short' },\r\n dateA11yLabel: { year: 'numeric', month: 'long', day: 'numeric' },\r\n monthYearA11yLabel: { year: 'numeric', month: 'long' }\r\n}\r\n","import { PlatformModule } from '@angular/cdk/platform'\r\nimport { NgModule, Provider } from '@angular/core'\r\nimport { DateTimeAdapter, NXT_DATE_TIME_FORMATS } from 'nxt-pick-datetime'\r\nimport { NativeDateTimeAdapter } from './date-time-adapter.class'\r\nimport { NXT_NATIVE_DATE_TIME_FORMATS } from './date-time-format.class'\r\n\r\nexport function provideNativeDateTimeAdapter(): Provider[] {\r\n return [\r\n {\r\n provide: DateTimeAdapter,\r\n useClass: NativeDateTimeAdapter\r\n },\r\n {\r\n provide: NXT_DATE_TIME_FORMATS,\r\n useValue: NXT_NATIVE_DATE_TIME_FORMATS\r\n }\r\n ]\r\n}\r\n\r\n@NgModule({\r\n imports: [PlatformModule],\r\n providers: [\r\n provideNativeDateTimeAdapter()\r\n ]\r\n})\r\nexport class NativeDateTimeModule { }\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAIA;;;;AAIG;AACH,MAAM,mBAAmB,GAAG;AACxB,IAAA,IAAI,EAAE;QACF,SAAS;QACT,UAAU;QACV,OAAO;QACP,OAAO;QACP,KAAK;QACL,MAAM;QACN,MAAM;QACN,QAAQ;QACR,WAAW;QACX,SAAS;QACT,UAAU;QACV;AACH,KAAA;AACD,IAAA,KAAK,EAAE;QACH,KAAK;QACL,KAAK;QACL,KAAK;QACL,KAAK;QACL,KAAK;QACL,KAAK;QACL,KAAK;QACL,KAAK;QACL,KAAK;QACL,KAAK;QACL,KAAK;QACL;AACH,KAAA;IACD,MAAM,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG;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s","sources":["../../../packages/pick-datetime/native-adapter/src/date-time-adapter.class.ts","../../../packages/pick-datetime/native-adapter/src/date-time-format.class.ts","../../../packages/pick-datetime/native-adapter/src/native-adapter.module.ts","../../../packages/pick-datetime/native-adapter/src/nxt-pick-datetime-native-adapter.ts"],"sourcesContent":["import { Platform } from '@angular/cdk/platform'\r\nimport { inject, Injectable, LOCALE_ID } from '@angular/core'\r\nimport { DateTimeAdapter } from 'nxt-pick-datetime'\r\n\r\n/**\r\n * The default month names to use if Intl API is not available.\r\n *\r\n * @internal\r\n */\r\nconst DEFAULT_MONTH_NAMES = {\r\n long: [\r\n 'January',\r\n 'February',\r\n 'March',\r\n 'April',\r\n 'May',\r\n 'June',\r\n 'July',\r\n 'August',\r\n 'September',\r\n 'October',\r\n 'November',\r\n 'December'\r\n ],\r\n short: [\r\n 'Jan',\r\n 'Feb',\r\n 'Mar',\r\n 'Apr',\r\n 'May',\r\n 'Jun',\r\n 'Jul',\r\n 'Aug',\r\n 'Sep',\r\n 'Oct',\r\n 'Nov',\r\n 'Dec'\r\n ],\r\n narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D']\r\n}\r\n\r\n/**\r\n * The default day of the week names to use if Intl API is not available.\r\n *\r\n * @internal\r\n */\r\nconst DEFAULT_DAY_OF_WEEK_NAMES = {\r\n long: [\r\n 'Sunday',\r\n 'Monday',\r\n 'Tuesday',\r\n 'Wednesday',\r\n 'Thursday',\r\n 'Friday',\r\n 'Saturday'\r\n ],\r\n short: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\r\n narrow: ['S', 'M', 'T', 'W', 'T', 'F', 'S']\r\n}\r\n\r\n/**\r\n * The default date names to use if Intl API is not available.\r\n *\r\n * @internal\r\n */\r\nconst DEFAULT_DATE_NAMES = range(31, i => String(i + 1))\r\n\r\n/**\r\n * Whether the browser supports the Intl API.\r\n *\r\n * @internal\r\n */\r\nconst SUPPORTS_INTL_API = typeof Intl !== 'undefined'\r\n\r\n/**\r\n * Matches strings that have the form of a valid RFC 3339 string\r\n * (https://tools.ietf.org/html/rfc3339). Note that the string may not actually be a valid date\r\n * because the regex will match strings an with out of bounds month, date, etc.\r\n *\r\n * @internal\r\n */\r\nconst ISO_8601_REGEX = /^\\d{4}-\\d{2}-\\d{2}(?:T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?(?:Z|(?:(?:\\+|-)\\d{2}:\\d{2}))?)?$/\r\n\r\n/**\r\n * Creates an array and fills it with values.\r\n *\r\n * @internal\r\n */\r\nfunction range<T>(length: number, valueFunction: (index: number) => T): T[] {\r\n const valuesArray = Array(length)\r\n for (let i = 0; i < length; i++) {\r\n valuesArray[i] = valueFunction(i)\r\n }\r\n return valuesArray\r\n}\r\n\r\n@Injectable()\r\nexport class NativeDateTimeAdapter extends DateTimeAdapter<Date> {\r\n /** Whether to clamp the date between 1 and 9999 to avoid IE and Edge errors */\r\n private readonly _clampDate: boolean\r\n\r\n /**\r\n * Whether to use `timeZone: 'utc'` with `Intl.DateTimeFormat` when formatting dates.\r\n * Without this `Intl.DateTimeFormat` sometimes chooses the wrong timeZone, which can throw off\r\n * the result. (e.g. in the en-US locale `new Date(1800, 7, 14).toLocaleDateString()`\r\n * will produce `'8/13/1800'`.\r\n */\r\n useUtcForDisplay: boolean\r\n\r\n constructor() {\r\n const platform = inject(Platform)\r\n const dateTimeLocale = inject(LOCALE_ID, { optional: true })\r\n\r\n super()\r\n super.setLocale(dateTimeLocale)\r\n\r\n // IE does its own time zone correction, so we disable this on IE.\r\n this.useUtcForDisplay = !platform.TRIDENT\r\n this._clampDate = platform.TRIDENT || platform.EDGE\r\n }\r\n\r\n getYear(date: Date): number {\r\n return date.getFullYear()\r\n }\r\n\r\n getMonth(date: Date): number {\r\n return date.getMonth()\r\n }\r\n\r\n getDay(date: Date): number {\r\n return date.getDay()\r\n }\r\n\r\n getDate(date: Date): number {\r\n return date.getDate()\r\n }\r\n\r\n getHours(date: Date): number {\r\n return date.getHours()\r\n }\r\n\r\n getMinutes(date: Date): number {\r\n return date.getMinutes()\r\n }\r\n\r\n getSeconds(date: Date): number {\r\n return date.getSeconds()\r\n }\r\n\r\n getTime(date: Date): number {\r\n return date.getTime()\r\n }\r\n\r\n getNumDaysInMonth(date: Date): number {\r\n const lastDateOfMonth = this.createDateWithOverflow(\r\n this.getYear(date),\r\n this.getMonth(date) + 1,\r\n 0\r\n )\r\n\r\n return this.getDate(lastDateOfMonth)\r\n }\r\n\r\n differenceInCalendarDays(dateLeft: Date, dateRight: Date): number | undefined {\r\n if (this.isValid(dateLeft) && this.isValid(dateRight)) {\r\n const dateLeftStartOfDay = this.createDate(\r\n this.getYear(dateLeft),\r\n this.getMonth(dateLeft),\r\n this.getDate(dateLeft)\r\n )\r\n const dateRightStartOfDay = this.createDate(\r\n this.getYear(dateRight),\r\n this.getMonth(dateRight),\r\n this.getDate(dateRight)\r\n )\r\n\r\n const timeStampLeft =\r\n this.getTime(dateLeftStartOfDay) -\r\n dateLeftStartOfDay.getTimezoneOffset() *\r\n this.milliseondsInMinute\r\n const timeStampRight =\r\n this.getTime(dateRightStartOfDay) -\r\n dateRightStartOfDay.getTimezoneOffset() *\r\n this.milliseondsInMinute\r\n return Math.round(\r\n (timeStampLeft - timeStampRight) / this.millisecondsInDay\r\n )\r\n } else {\r\n return undefined\r\n }\r\n }\r\n\r\n getYearName(date: Date): string {\r\n if (SUPPORTS_INTL_API) {\r\n const dtf = new Intl.DateTimeFormat(this.locale(), {\r\n year: 'numeric',\r\n timeZone: 'utc'\r\n })\r\n return this.stripDirectionalityCharacters(this._format(dtf, date))\r\n }\r\n return String(this.getYear(date))\r\n }\r\n\r\n getMonthNames(style: 'long' | 'short' | 'narrow'): string[] {\r\n if (SUPPORTS_INTL_API) {\r\n const dtf = new Intl.DateTimeFormat(this.locale(), {\r\n month: style,\r\n timeZone: 'utc'\r\n })\r\n return range(12, i =>\r\n this.stripDirectionalityCharacters(\r\n this._format(dtf, new Date(2017, i, 1))\r\n )\r\n )\r\n }\r\n return DEFAULT_MONTH_NAMES[style]\r\n }\r\n\r\n getDayOfWeekNames(style: 'long' | 'short' | 'narrow'): string[] {\r\n if (SUPPORTS_INTL_API) {\r\n const dtf = new Intl.DateTimeFormat(this.locale(), {\r\n weekday: style,\r\n timeZone: 'utc'\r\n })\r\n return range(7, i =>\r\n this.stripDirectionalityCharacters(\r\n this._format(dtf, new Date(2017, 0, i + 1))\r\n )\r\n )\r\n }\r\n\r\n return DEFAULT_DAY_OF_WEEK_NAMES[style]\r\n }\r\n\r\n getDateNames(): string[] {\r\n if (SUPPORTS_INTL_API) {\r\n const dtf = new Intl.DateTimeFormat(this.locale(), {\r\n day: 'numeric',\r\n timeZone: 'utc'\r\n })\r\n return range(31, i =>\r\n this.stripDirectionalityCharacters(\r\n this._format(dtf, new Date(2017, 0, i + 1))\r\n )\r\n )\r\n }\r\n return DEFAULT_DATE_NAMES\r\n }\r\n\r\n toIso8601(date: Date): string {\r\n return date.toISOString()\r\n }\r\n\r\n isEqual(dateLeft: Date, dateRight: Date): boolean {\r\n if (this.isValid(dateLeft) && this.isValid(dateRight)) {\r\n return dateLeft.getTime() === dateRight.getTime()\r\n } else {\r\n return false\r\n }\r\n }\r\n\r\n isSameDay(dateLeft: Date, dateRight: Date): boolean {\r\n if (this.isValid(dateLeft) && this.isValid(dateRight)) {\r\n const dateLeftStartOfDay = this.clone(dateLeft)\r\n const dateRightStartOfDay = this.clone(dateRight)\r\n dateLeftStartOfDay.setHours(0, 0, 0, 0)\r\n dateRightStartOfDay.setHours(0, 0, 0, 0)\r\n return (\r\n dateLeftStartOfDay.getTime() === dateRightStartOfDay.getTime()\r\n )\r\n } else {\r\n return false\r\n }\r\n }\r\n\r\n isValid(date: Date): boolean {\r\n return date && !isNaN(date.getTime())\r\n }\r\n\r\n invalid(): Date {\r\n return new Date(NaN)\r\n }\r\n\r\n isDateInstance(obj: any): boolean {\r\n return obj instanceof Date\r\n }\r\n\r\n addCalendarYears(date: Date, amount: number): Date {\r\n return this.addCalendarMonths(date, amount * 12)\r\n }\r\n\r\n addCalendarMonths(date: Date, amount: number): Date {\r\n const result = this.clone(date)\r\n amount = Number(amount)\r\n\r\n const desiredMonth = result.getMonth() + amount\r\n const dateWithDesiredMonth = new Date(0)\r\n dateWithDesiredMonth.setFullYear(result.getFullYear(), desiredMonth, 1)\r\n dateWithDesiredMonth.setHours(0, 0, 0, 0)\r\n\r\n const daysInMonth = this.getNumDaysInMonth(dateWithDesiredMonth)\r\n // Set the last day of the new month\r\n // if the original date was the last day of the longer month\r\n result.setMonth(desiredMonth, Math.min(daysInMonth, result.getDate()))\r\n return result\r\n }\r\n\r\n addCalendarDays(date: Date, amount: number): Date {\r\n const result = this.clone(date)\r\n amount = Number(amount)\r\n result.setDate(result.getDate() + amount)\r\n return result\r\n }\r\n\r\n setHours(date: Date, amount: number): Date {\r\n const result = this.clone(date)\r\n result.setHours(amount)\r\n return result\r\n }\r\n\r\n setMinutes(date: Date, amount: number): Date {\r\n const result = this.clone(date)\r\n result.setMinutes(amount)\r\n return result\r\n }\r\n\r\n setSeconds(date: Date, amount: number): Date {\r\n const result = this.clone(date)\r\n result.setSeconds(amount)\r\n return result\r\n }\r\n\r\n createDate(\r\n year: number,\r\n month: number,\r\n date: number,\r\n hours: number = 0,\r\n minutes: number = 0,\r\n seconds: number = 0\r\n ): Date {\r\n if (month < 0 || month > 11) {\r\n throw Error(\r\n `Invalid month index \"${month}\". Month index has to be between 0 and 11.`\r\n )\r\n }\r\n\r\n if (date < 1) {\r\n throw Error(\r\n `Invalid date \"${date}\". Date has to be greater than 0.`\r\n )\r\n }\r\n\r\n if (hours < 0 || hours > 23) {\r\n throw Error(\r\n `Invalid hours \"${hours}\". Hours has to be between 0 and 23.`\r\n )\r\n }\r\n\r\n if (minutes < 0 || minutes > 59) {\r\n throw Error(\r\n `Invalid minutes \"${minutes}\". Minutes has to between 0 and 59.`\r\n )\r\n }\r\n\r\n if (seconds < 0 || seconds > 59) {\r\n throw Error(\r\n `Invalid seconds \"${seconds}\". Seconds has to be between 0 and 59.`\r\n )\r\n }\r\n\r\n const result = this.createDateWithOverflow(\r\n year,\r\n month,\r\n date,\r\n hours,\r\n minutes,\r\n seconds\r\n )\r\n\r\n // Check that the date wasn't above the upper bound for the month, causing the month to overflow\r\n // For example, createDate(2017, 1, 31) would try to create a date 2017/02/31 which is invalid\r\n if (result.getMonth() !== month) {\r\n throw Error(\r\n `Invalid date \"${date}\" for month with index \"${month}\".`\r\n )\r\n }\r\n\r\n return result\r\n }\r\n\r\n clone(date: Date): Date {\r\n return this.createDate(\r\n this.getYear(date),\r\n this.getMonth(date),\r\n this.getDate(date),\r\n this.getHours(date),\r\n this.getMinutes(date),\r\n this.getSeconds(date)\r\n )\r\n }\r\n\r\n now(): Date {\r\n return new Date()\r\n }\r\n\r\n format(date: Date, displayFormat: any): string {\r\n if (!this.isValid(date)) {\r\n throw Error('JSNativeDate: Cannot format invalid date.')\r\n }\r\n\r\n if (SUPPORTS_INTL_API) {\r\n if (\r\n this._clampDate &&\r\n (date.getFullYear() < 1 || date.getFullYear() > 9999)\r\n ) {\r\n date = this.clone(date)\r\n date.setFullYear(\r\n Math.max(1, Math.min(9999, date.getFullYear()))\r\n )\r\n }\r\n\r\n displayFormat = { ...displayFormat, timeZone: 'utc' }\r\n const dtf = new Intl.DateTimeFormat(this.locale(), displayFormat)\r\n return this.stripDirectionalityCharacters(this._format(dtf, date))\r\n }\r\n\r\n return this.stripDirectionalityCharacters(date.toDateString())\r\n }\r\n\r\n parse(value: any, _parseFormat: any): Date | undefined {\r\n // There is no way using the native JS Date to set the parse format or locale\r\n if (typeof value === 'number') {\r\n return new Date(value)\r\n }\r\n return value ? new Date(Date.parse(value)) : undefined\r\n }\r\n\r\n /**\r\n * Returns the given value if given a valid Date or undefined. Deserializes valid ISO 8601 strings\r\n * (https://www.ietf.org/rfc/rfc3339.txt) into valid Dates and empty string into undefined. Returns an\r\n * invalid date for all other values.\r\n */\r\n override deserialize(value: any): Date | undefined {\r\n if (typeof value === 'string') {\r\n if (!value) {\r\n return undefined\r\n }\r\n // The `Date` constructor accepts formats other than ISO 8601, so we need to make sure the\r\n // string is the right format first.\r\n if (ISO_8601_REGEX.test(value)) {\r\n const date = new Date(value)\r\n if (this.isValid(date)) {\r\n return date\r\n }\r\n }\r\n }\r\n return super.deserialize(value)\r\n }\r\n\r\n /**\r\n * Creates a date but allows the month and date to overflow.\r\n */\r\n private createDateWithOverflow(\r\n year: number,\r\n month: number,\r\n date: number,\r\n hours: number = 0,\r\n minutes: number = 0,\r\n seconds: number = 0\r\n ): Date {\r\n const result = new Date(year, month, date, hours, minutes, seconds)\r\n\r\n if (year >= 0 && year < 100) {\r\n result.setFullYear(this.getYear(result) - 1900)\r\n }\r\n return result\r\n }\r\n\r\n /**\r\n * Strip out unicode LTR and RTL characters. Edge and IE insert these into formatted dates while\r\n * other browsers do not. We remove them to make output consistent and because they interfere with\r\n * date parsing.\r\n */\r\n private stripDirectionalityCharacters(str: string) {\r\n return str.replace(/[\\u200e\\u200f]/g, '')\r\n }\r\n\r\n /**\r\n * When converting Date object to string, javascript built-in functions may return wrong\r\n * results because it applies its internal DST rules. The DST rules around the world change\r\n * very frequently, and the current valid rule is not always valid in previous years though.\r\n * We work around this problem building a new Date object which has its internal UTC\r\n * representation with the local date and time.\r\n */\r\n private _format(dtf: Intl.DateTimeFormat, date: Date) {\r\n const d = new Date(\r\n Date.UTC(\r\n date.getFullYear(),\r\n date.getMonth(),\r\n date.getDate(),\r\n date.getHours(),\r\n date.getMinutes(),\r\n date.getSeconds(),\r\n date.getMilliseconds()\r\n )\r\n )\r\n return dtf.format(d)\r\n }\r\n}\r\n","import { DateTimeFormats } from 'nxt-pick-datetime'\r\n\r\n/**\r\n * @internal\r\n */\r\nexport const NXT_NATIVE_DATE_TIME_FORMATS: DateTimeFormats = {\r\n parseInput: null,\r\n fullPickerInput: { year: 'numeric', month: 'numeric', day: 'numeric', hour: 'numeric', minute: 'numeric' },\r\n datePickerInput: { year: 'numeric', month: 'numeric', day: 'numeric' },\r\n timePickerInput: { hour: 'numeric', minute: 'numeric' },\r\n monthYearLabel: { year: 'numeric', month: 'short' },\r\n dateA11yLabel: { year: 'numeric', month: 'long', day: 'numeric' },\r\n monthYearA11yLabel: { year: 'numeric', month: 'long' }\r\n}\r\n","import { PlatformModule } from '@angular/cdk/platform'\r\nimport { NgModule, Provider } from '@angular/core'\r\nimport { DateTimeAdapter, NXT_DATE_TIME_FORMATS } from 'nxt-pick-datetime'\r\nimport { NativeDateTimeAdapter } from './date-time-adapter.class'\r\nimport { NXT_NATIVE_DATE_TIME_FORMATS } from './date-time-format.class'\r\n\r\nexport function provideNativeDateTimeAdapter(): Provider[] {\r\n return [\r\n {\r\n provide: DateTimeAdapter,\r\n useClass: NativeDateTimeAdapter\r\n },\r\n {\r\n provide: NXT_DATE_TIME_FORMATS,\r\n useValue: NXT_NATIVE_DATE_TIME_FORMATS\r\n }\r\n ]\r\n}\r\n\r\n/** @deprecated use provideNativeDateTimeAdapter */\r\n@NgModule({\r\n imports: [PlatformModule],\r\n providers: [\r\n provideNativeDateTimeAdapter()\r\n ]\r\n})\r\nexport class NativeDateTimeModule { }\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAIA;;;;AAIG;AACH,MAAM,mBAAmB,GAAG;AACxB,IAAA,IAAI,EAAE;QACF,SAAS;QACT,UAAU;QACV,OAAO;QACP,OAAO;QACP,KAAK;QACL,MAAM;QACN,MAAM;QACN,QAAQ;QACR,WAAW;QACX,SAAS;QACT,UAAU;QACV;AACH,KAAA;AACD,IAAA,KAAK,EAAE;QACH,KAAK;QACL,KAAK;QACL,KAAK;QACL,KAAK;QACL,KAAK;QACL,KAAK;QACL,KAAK;QACL,KAAK;QACL,KAAK;QACL,KAAK;QACL,KAAK;QACL;AACH,KAAA;IACD,MAAM,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,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