nxt-pick-datetime 19.0.0 → 20.0.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/assets/picker.scss +21 -21
- package/fesm2022/nxt-pick-datetime-moment-adapter.mjs +8 -8
- package/fesm2022/nxt-pick-datetime-moment-adapter.mjs.map +1 -1
- package/fesm2022/nxt-pick-datetime-native-adapter.mjs +8 -8
- package/fesm2022/nxt-pick-datetime-native-adapter.mjs.map +1 -1
- package/fesm2022/nxt-pick-datetime.mjs +62 -62
- package/fesm2022/nxt-pick-datetime.mjs.map +1 -1
- package/index.d.ts +1888 -5
- package/moment-adapter/index.d.ts +24 -5
- package/native-adapter/index.d.ts +12 -5
- package/package.json +8 -8
- package/lib/class/date-time-adapter.class.d.ts +0 -176
- package/lib/class/date-time-format.class.d.ts +0 -12
- package/lib/class/date-time.class.d.ts +0 -76
- package/lib/class/dialog-config.class.d.ts +0 -90
- package/lib/class/dialog-ref.class.d.ts +0 -50
- package/lib/date-time/calendar/calendar.component.d.ts +0 -147
- package/lib/date-time/calendar-body/calendar-body.component.d.ts +0 -79
- package/lib/date-time/calendar-month-view/calendar-month-view.component.d.ts +0 -139
- package/lib/date-time/calendar-multi-year-view/calendar-multi-year-view.component.d.ts +0 -115
- package/lib/date-time/calendar-year-view/calendar-year-view.component.d.ts +0 -123
- package/lib/date-time/date-time-inline/date-time-inline.component.d.ts +0 -106
- package/lib/date-time/date-time-picker/date-time-picker.component.d.ts +0 -172
- package/lib/date-time/date-time-picker-container/date-time-picker-container.animations.d.ts +0 -6
- package/lib/date-time/date-time-picker-container/date-time-picker-container.component.d.ts +0 -129
- package/lib/date-time/date-time-picker-input.directive.d.ts +0 -167
- package/lib/date-time/date-time-picker-intl.service.d.ts +0 -51
- package/lib/date-time/date-time-picker-trigger.directive.d.ts +0 -22
- package/lib/date-time/date-time.module.d.ts +0 -23
- package/lib/date-time/number-fixed-len.pipe.d.ts +0 -8
- package/lib/date-time/timer/timer.component.d.ts +0 -131
- package/lib/date-time/timer-box/timer-box.component.d.ts +0 -37
- package/lib/dialog/dialog-container/dialog-container.component.d.ts +0 -69
- package/lib/dialog/dialog.module.d.ts +0 -12
- package/lib/dialog/dialog.service.d.ts +0 -78
- package/lib/utils/object.d.ts +0 -9
- package/moment-adapter/date-time-adapter.class.d.ts +0 -64
- package/moment-adapter/date-time-format.class.d.ts +0 -5
- package/moment-adapter/moment-adapter.module.d.ts +0 -8
- package/moment-adapter/public-api.d.ts +0 -2
- package/native-adapter/date-time-adapter.class.d.ts +0 -72
- package/native-adapter/date-time-format.class.d.ts +0 -5
- package/native-adapter/native-adapter.module.d.ts +0 -9
- package/native-adapter/public-api.d.ts +0 -1
- package/public-api.d.ts +0 -14
package/assets/picker.scss
CHANGED
|
@@ -6,7 +6,7 @@ $cdk-z-index-overlay: 1000;
|
|
|
6
6
|
$cdk-z-index-overlay-backdrop: 1000;
|
|
7
7
|
|
|
8
8
|
// Background color for all of the backdrops
|
|
9
|
-
$cdk-overlay-dark-backdrop-background:
|
|
9
|
+
$cdk-overlay-dark-backdrop-background: rgb(0, 0, 0, 0.288);
|
|
10
10
|
|
|
11
11
|
// Default backdrop animation is based on the Material Design swift-ease-out.
|
|
12
12
|
$backdrop-animation-duration: 400ms !default;
|
|
@@ -143,11 +143,11 @@ $backdrop-animation-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1) !default;
|
|
|
143
143
|
box-sizing: border-box;
|
|
144
144
|
display: block;
|
|
145
145
|
padding: 1.5em;
|
|
146
|
-
box-shadow: 0 11px 15px -7px
|
|
146
|
+
box-shadow: 0 11px 15px -7px rgb(0, 0, 0, 0.2), 0 24px 38px 3px rgb(0, 0, 0, 0.14), 0 9px 46px 8px rgb(0, 0, 0, 0.12);
|
|
147
147
|
border-radius: 2px;
|
|
148
148
|
overflow: auto;
|
|
149
149
|
background: #fff;
|
|
150
|
-
color:
|
|
150
|
+
color: rgb(0, 0, 0, 0.87);
|
|
151
151
|
width: 100%;
|
|
152
152
|
height: 100%;
|
|
153
153
|
outline: none;
|
|
@@ -169,7 +169,7 @@ $theme-color: #3f51b5;
|
|
|
169
169
|
}
|
|
170
170
|
|
|
171
171
|
.nxt-dt-container-row {
|
|
172
|
-
border-bottom: 1px solid
|
|
172
|
+
border-bottom: 1px solid rgb(0, 0, 0, 0.12);
|
|
173
173
|
|
|
174
174
|
&:last-child {
|
|
175
175
|
border-bottom: none;
|
|
@@ -200,7 +200,7 @@ $theme-color: #3f51b5;
|
|
|
200
200
|
padding: 0 0.8em;
|
|
201
201
|
|
|
202
202
|
&:hover {
|
|
203
|
-
background-color:
|
|
203
|
+
background-color: rgb(0, 0, 0, 0.12);
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
206
|
}
|
|
@@ -238,7 +238,7 @@ $theme-color: #3f51b5;
|
|
|
238
238
|
border-spacing: 0;
|
|
239
239
|
|
|
240
240
|
.nxt-dt-calendar-header {
|
|
241
|
-
color:
|
|
241
|
+
color: rgb(0, 0, 0, 0.4);
|
|
242
242
|
|
|
243
243
|
.nxt-dt-weekdays {
|
|
244
244
|
th {
|
|
@@ -261,7 +261,7 @@ $theme-color: #3f51b5;
|
|
|
261
261
|
left: -0.5em;
|
|
262
262
|
right: -0.5em;
|
|
263
263
|
height: 1px;
|
|
264
|
-
background:
|
|
264
|
+
background: rgb(0, 0, 0, 0.12);
|
|
265
265
|
}
|
|
266
266
|
}
|
|
267
267
|
}
|
|
@@ -272,7 +272,7 @@ $theme-color: #3f51b5;
|
|
|
272
272
|
line-height: 0;
|
|
273
273
|
text-align: center;
|
|
274
274
|
outline: 0;
|
|
275
|
-
color:
|
|
275
|
+
color: rgb(0, 0, 0, 0.85);
|
|
276
276
|
appearance: none;
|
|
277
277
|
}
|
|
278
278
|
|
|
@@ -299,15 +299,15 @@ $theme-color: #3f51b5;
|
|
|
299
299
|
}
|
|
300
300
|
|
|
301
301
|
.nxt-dt-calendar-cell-today:not(.nxt-dt-calendar-cell-selected) {
|
|
302
|
-
border-color:
|
|
302
|
+
border-color: rgb(0, 0, 0, 0.4);
|
|
303
303
|
}
|
|
304
304
|
|
|
305
305
|
.nxt-dt-calendar-cell-selected {
|
|
306
|
-
color:
|
|
306
|
+
color: hsl(0, 0%, 100%, 0.85);
|
|
307
307
|
background-color: $theme-color;
|
|
308
308
|
|
|
309
309
|
&.nxt-dt-calendar-cell-today {
|
|
310
|
-
box-shadow: inset 0 0 0 1px
|
|
310
|
+
box-shadow: inset 0 0 0 1px hsl(0, 0%, 100%, 0.85);
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
313
|
|
|
@@ -315,7 +315,7 @@ $theme-color: #3f51b5;
|
|
|
315
315
|
cursor: default;
|
|
316
316
|
|
|
317
317
|
& > .nxt-dt-calendar-cell-content:not(.nxt-dt-calendar-cell-selected) {
|
|
318
|
-
color:
|
|
318
|
+
color: rgb(0, 0, 0, 0.4);
|
|
319
319
|
}
|
|
320
320
|
|
|
321
321
|
& > .nxt-dt-calendar-cell-content.nxt-dt-calendar-cell-selected {
|
|
@@ -323,13 +323,13 @@ $theme-color: #3f51b5;
|
|
|
323
323
|
}
|
|
324
324
|
|
|
325
325
|
& > .nxt-dt-calendar-cell-today:not(.nxt-dt-calendar-cell-selected) {
|
|
326
|
-
border-color:
|
|
326
|
+
border-color: rgb(0, 0, 0, 0.2);
|
|
327
327
|
}
|
|
328
328
|
}
|
|
329
329
|
|
|
330
330
|
.nxt-dt-calendar-cell-active:focus > .nxt-dt-calendar-cell-content:not(.nxt-dt-calendar-cell-selected),
|
|
331
331
|
:not(.nxt-dt-calendar-cell-disabled):hover > .nxt-dt-calendar-cell-content:not(.nxt-dt-calendar-cell-selected) {
|
|
332
|
-
background-color:
|
|
332
|
+
background-color: rgb(0, 0, 0, 0.04);
|
|
333
333
|
}
|
|
334
334
|
|
|
335
335
|
.nxt-dt-calendar-cell-in-range {
|
|
@@ -384,7 +384,7 @@ $theme-color: #3f51b5;
|
|
|
384
384
|
display: block;
|
|
385
385
|
width: 2em;
|
|
386
386
|
text-align: center;
|
|
387
|
-
border: 1px solid
|
|
387
|
+
border: 1px solid rgb(0, 0, 0, 0.5);
|
|
388
388
|
border-radius: 3px;
|
|
389
389
|
outline: medium none;
|
|
390
390
|
font-size: 1.2em;
|
|
@@ -455,7 +455,7 @@ $theme-color: #3f51b5;
|
|
|
455
455
|
}
|
|
456
456
|
|
|
457
457
|
&:hover > .nxt-dt-control-button-content {
|
|
458
|
-
background-color:
|
|
458
|
+
background-color: rgb(0, 0, 0, 0.12);
|
|
459
459
|
}
|
|
460
460
|
|
|
461
461
|
.nxt-dt-control-button-arrow {
|
|
@@ -478,7 +478,7 @@ $theme-color: #3f51b5;
|
|
|
478
478
|
}
|
|
479
479
|
|
|
480
480
|
&[disabled] {
|
|
481
|
-
color:
|
|
481
|
+
color: rgb(0, 0, 0, 0.4);
|
|
482
482
|
cursor: default;
|
|
483
483
|
}
|
|
484
484
|
|
|
@@ -493,7 +493,7 @@ $theme-color: #3f51b5;
|
|
|
493
493
|
.nxt-dt-popup-container {
|
|
494
494
|
position: relative;
|
|
495
495
|
width: 18.5em;
|
|
496
|
-
box-shadow: 0 5px 5px -3px
|
|
496
|
+
box-shadow: 0 5px 5px -3px rgb(0, 0, 0, 0.2), 0 8px 10px 1px rgb(0, 0, 0, 0.14), 0 3px 14px 2px rgb(0, 0, 0, 0.12);
|
|
497
497
|
|
|
498
498
|
.nxt-dt-calendar,
|
|
499
499
|
.nxt-dt-timer {
|
|
@@ -569,7 +569,7 @@ $theme-color: #3f51b5;
|
|
|
569
569
|
|
|
570
570
|
&:hover {
|
|
571
571
|
.nxt-dt-control-button-content {
|
|
572
|
-
background-color:
|
|
572
|
+
background-color: rgb(0, 0, 0, 0.1);
|
|
573
573
|
}
|
|
574
574
|
}
|
|
575
575
|
}
|
|
@@ -589,7 +589,7 @@ $theme-color: #3f51b5;
|
|
|
589
589
|
}
|
|
590
590
|
|
|
591
591
|
&:last-child {
|
|
592
|
-
border-top: 1px solid
|
|
592
|
+
border-top: 1px solid rgb(0, 0, 0, 0.12);
|
|
593
593
|
}
|
|
594
594
|
}
|
|
595
595
|
|
|
@@ -653,7 +653,7 @@ $theme-color: #3f51b5;
|
|
|
653
653
|
}
|
|
654
654
|
|
|
655
655
|
&:focus > .nxt-dt-control-content {
|
|
656
|
-
background-color:
|
|
656
|
+
background-color: rgb(0, 0, 0, 0.12);
|
|
657
657
|
}
|
|
658
658
|
|
|
659
659
|
&:not(:-moz-focusring):focus > .nxt-dt-control-content {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { InjectionToken, LOCALE_ID,
|
|
2
|
+
import { InjectionToken, LOCALE_ID, Optional, Inject, 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
|
|
|
@@ -202,10 +202,10 @@ class MomentDateTimeAdapter extends DateTimeAdapter {
|
|
|
202
202
|
createMoment(...args) {
|
|
203
203
|
return (this.options && this.options.useUtc) ? moment.utc(...args) : moment(...args);
|
|
204
204
|
}
|
|
205
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
206
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
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 }); }
|
|
207
207
|
}
|
|
208
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
208
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: MomentDateTimeAdapter, decorators: [{
|
|
209
209
|
type: Injectable
|
|
210
210
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
211
211
|
type: Optional
|
|
@@ -246,13 +246,13 @@ function provideMomentDateTimeAdapter() {
|
|
|
246
246
|
];
|
|
247
247
|
}
|
|
248
248
|
class MomentDateTimeModule {
|
|
249
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
250
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
251
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
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: [
|
|
252
252
|
provideMomentDateTimeAdapter()
|
|
253
253
|
] }); }
|
|
254
254
|
}
|
|
255
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
255
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: MomentDateTimeModule, decorators: [{
|
|
256
256
|
type: NgModule,
|
|
257
257
|
args: [{
|
|
258
258
|
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;AACxC,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,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A,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, 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":";;;;;AA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AAA,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,7 +1,7 @@
|
|
|
1
1
|
import * as i1 from '@angular/cdk/platform';
|
|
2
2
|
import { PlatformModule } from '@angular/cdk/platform';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
|
-
import { LOCALE_ID,
|
|
4
|
+
import { LOCALE_ID, Optional, Inject, Injectable, NgModule } from '@angular/core';
|
|
5
5
|
import { DateTimeAdapter, NXT_DATE_TIME_FORMATS } from 'nxt-pick-datetime';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -354,10 +354,10 @@ class NativeDateTimeAdapter extends DateTimeAdapter {
|
|
|
354
354
|
const d = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds()));
|
|
355
355
|
return dtf.format(d);
|
|
356
356
|
}
|
|
357
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
358
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
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 }); }
|
|
359
359
|
}
|
|
360
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
360
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: NativeDateTimeAdapter, decorators: [{
|
|
361
361
|
type: Injectable
|
|
362
362
|
}], ctorParameters: () => [{ type: i1.Platform }, { type: undefined, decorators: [{
|
|
363
363
|
type: Optional
|
|
@@ -392,13 +392,13 @@ function provideNativeDateTimeAdapter() {
|
|
|
392
392
|
];
|
|
393
393
|
}
|
|
394
394
|
class NativeDateTimeModule {
|
|
395
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
396
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
397
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
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: [
|
|
398
398
|
provideNativeDateTimeAdapter()
|
|
399
399
|
], imports: [PlatformModule] }); }
|
|
400
400
|
}
|
|
401
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
401
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: NativeDateTimeModule, decorators: [{
|
|
402
402
|
type: NgModule,
|
|
403
403
|
args: [{
|
|
404
404
|
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;Q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A,CAAA;kBANhC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,OAAO,EAAE,CAAC,cAAc,CAAC;AACzB,oBAAA,SAAS,EAAE;AACP,wBAAA,4BAA4B;AAC/B;AACJ,iBAAA;;;ACxBD;;AAEG;;;;"}
|
|
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;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