nxt-pick-datetime 16.0.0-alpha.6 → 16.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/{esm2020 → esm2022}/lib/class/date-time-adapter.class.mjs +96 -96
- package/{esm2020 → esm2022}/lib/class/date-time-format.class.mjs +3 -3
- package/esm2022/lib/class/date-time.class.mjs +96 -0
- package/{esm2020 → esm2022}/lib/class/dialog-config.class.mjs +46 -46
- package/{esm2020 → esm2022}/lib/class/dialog-ref.class.mjs +118 -118
- package/esm2022/lib/date-time/calendar/calendar.component.mjs +347 -0
- package/esm2022/lib/date-time/calendar-body/calendar-body.component.mjs +152 -0
- package/esm2022/lib/date-time/calendar-month-view/calendar-month-view.component.mjs +430 -0
- package/esm2022/lib/date-time/calendar-multi-year-view/calendar-multi-year-view.component.mjs +359 -0
- package/esm2022/lib/date-time/calendar-year-view/calendar-year-view.component.mjs +363 -0
- package/esm2022/lib/date-time/date-time-inline/date-time-inline.component.mjs +276 -0
- package/esm2022/lib/date-time/date-time-picker/date-time-picker.component.mjs +542 -0
- package/{esm2020 → esm2022}/lib/date-time/date-time-picker-container/date-time-picker-container.animations.mjs +18 -18
- package/esm2022/lib/date-time/date-time-picker-container/date-time-picker-container.component.mjs +390 -0
- package/esm2022/lib/date-time/date-time-picker-input.directive.mjs +619 -0
- package/esm2022/lib/date-time/date-time-picker-intl.service.mjs +62 -0
- package/esm2022/lib/date-time/date-time-picker-trigger.directive.mjs +71 -0
- package/esm2022/lib/date-time/date-time.module.mjs +97 -0
- package/esm2022/lib/date-time/number-fixed-len.pipe.mjs +23 -0
- package/esm2022/lib/date-time/timer/timer.component.mjs +300 -0
- package/esm2022/lib/date-time/timer-box/timer-box.component.mjs +96 -0
- package/esm2022/lib/dialog/dialog-container/dialog-container.component.mjs +249 -0
- package/esm2022/lib/dialog/dialog.module.mjs +43 -0
- package/esm2022/lib/dialog/dialog.service.mjs +252 -0
- package/esm2022/lib/utils/object.mjs +24 -0
- package/esm2022/moment-adapter/date-time-adapter.class.mjs +221 -0
- package/{esm2020 → esm2022}/moment-adapter/date-time-format.class.mjs +12 -12
- package/esm2022/moment-adapter/moment-adapter.module.mjs +38 -0
- package/{esm2020 → esm2022}/moment-adapter/nxt-pick-datetime-moment-adapter.mjs +4 -4
- package/{esm2020 → esm2022}/moment-adapter/public-api.mjs +2 -2
- package/esm2022/native-adapter/date-time-adapter.class.mjs +367 -0
- package/{esm2020 → esm2022}/native-adapter/date-time-format.class.mjs +12 -12
- package/esm2022/native-adapter/native-adapter.module.mjs +38 -0
- package/{esm2020 → esm2022}/native-adapter/nxt-pick-datetime-native-adapter.mjs +4 -4
- package/{esm2020 → esm2022}/native-adapter/public-api.mjs +1 -1
- package/{esm2020 → esm2022}/nxt-pick-datetime.mjs +4 -4
- package/{esm2020 → esm2022}/public-api.mjs +13 -13
- package/{fesm2020 → fesm2022}/nxt-pick-datetime-moment-adapter.mjs +257 -257
- package/{fesm2020 → fesm2022}/nxt-pick-datetime-moment-adapter.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/nxt-pick-datetime-native-adapter.mjs +402 -402
- package/{fesm2020 → fesm2022}/nxt-pick-datetime-native-adapter.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/nxt-pick-datetime.mjs +4858 -4860
- package/{fesm2020 → fesm2022}/nxt-pick-datetime.mjs.map +1 -1
- package/index.d.ts +5 -5
- package/lib/class/date-time-adapter.class.d.ts +176 -176
- package/lib/class/date-time-format.class.d.ts +12 -12
- package/lib/class/date-time.class.d.ts +76 -76
- package/lib/class/dialog-config.class.d.ts +90 -90
- package/lib/class/dialog-ref.class.d.ts +50 -50
- package/lib/date-time/calendar/calendar.component.d.ts +147 -147
- package/lib/date-time/calendar-body/calendar-body.component.d.ts +79 -79
- package/lib/date-time/calendar-month-view/calendar-month-view.component.d.ts +139 -139
- package/lib/date-time/calendar-multi-year-view/calendar-multi-year-view.component.d.ts +115 -115
- package/lib/date-time/calendar-year-view/calendar-year-view.component.d.ts +123 -123
- package/lib/date-time/date-time-inline/date-time-inline.component.d.ts +106 -106
- package/lib/date-time/date-time-picker/date-time-picker.component.d.ts +172 -172
- package/lib/date-time/date-time-picker-container/date-time-picker-container.animations.d.ts +6 -6
- package/lib/date-time/date-time-picker-container/date-time-picker-container.component.d.ts +129 -129
- package/lib/date-time/date-time-picker-input.directive.d.ts +167 -167
- package/lib/date-time/date-time-picker-intl.service.d.ts +51 -51
- package/lib/date-time/date-time-picker-trigger.directive.d.ts +22 -22
- package/lib/date-time/date-time.module.d.ts +23 -23
- package/lib/date-time/number-fixed-len.pipe.d.ts +8 -8
- package/lib/date-time/timer/timer.component.d.ts +131 -131
- package/lib/date-time/timer-box/timer-box.component.d.ts +37 -37
- package/lib/dialog/dialog-container/dialog-container.component.d.ts +69 -69
- package/lib/dialog/dialog.module.d.ts +12 -12
- package/lib/dialog/dialog.service.d.ts +78 -78
- package/lib/utils/object.d.ts +9 -10
- package/moment-adapter/date-time-adapter.class.d.ts +64 -64
- package/moment-adapter/date-time-format.class.d.ts +5 -5
- package/moment-adapter/index.d.ts +5 -5
- package/moment-adapter/moment-adapter.module.d.ts +6 -6
- package/moment-adapter/public-api.d.ts +2 -2
- package/native-adapter/date-time-adapter.class.d.ts +72 -72
- package/native-adapter/date-time-format.class.d.ts +5 -5
- package/native-adapter/index.d.ts +5 -5
- package/native-adapter/native-adapter.module.d.ts +7 -7
- package/native-adapter/public-api.d.ts +1 -1
- package/package.json +18 -28
- package/public-api.d.ts +14 -14
- package/esm2020/lib/class/date-time.class.mjs +0 -95
- package/esm2020/lib/date-time/calendar/calendar.component.mjs +0 -346
- package/esm2020/lib/date-time/calendar-body/calendar-body.component.mjs +0 -151
- package/esm2020/lib/date-time/calendar-month-view/calendar-month-view.component.mjs +0 -429
- package/esm2020/lib/date-time/calendar-multi-year-view/calendar-multi-year-view.component.mjs +0 -358
- package/esm2020/lib/date-time/calendar-year-view/calendar-year-view.component.mjs +0 -362
- package/esm2020/lib/date-time/date-time-inline/date-time-inline.component.mjs +0 -275
- package/esm2020/lib/date-time/date-time-picker/date-time-picker.component.mjs +0 -541
- package/esm2020/lib/date-time/date-time-picker-container/date-time-picker-container.component.mjs +0 -389
- package/esm2020/lib/date-time/date-time-picker-input.directive.mjs +0 -618
- package/esm2020/lib/date-time/date-time-picker-intl.service.mjs +0 -61
- package/esm2020/lib/date-time/date-time-picker-trigger.directive.mjs +0 -70
- package/esm2020/lib/date-time/date-time.module.mjs +0 -96
- package/esm2020/lib/date-time/number-fixed-len.pipe.mjs +0 -22
- package/esm2020/lib/date-time/timer/timer.component.mjs +0 -299
- package/esm2020/lib/date-time/timer-box/timer-box.component.mjs +0 -95
- package/esm2020/lib/dialog/dialog-container/dialog-container.component.mjs +0 -248
- package/esm2020/lib/dialog/dialog.module.mjs +0 -42
- package/esm2020/lib/dialog/dialog.service.mjs +0 -252
- package/esm2020/lib/utils/object.mjs +0 -25
- package/esm2020/moment-adapter/date-time-adapter.class.mjs +0 -220
- package/esm2020/moment-adapter/moment-adapter.module.mjs +0 -37
- package/esm2020/native-adapter/date-time-adapter.class.mjs +0 -366
- package/esm2020/native-adapter/native-adapter.module.mjs +0 -37
- package/fesm2015/nxt-pick-datetime-moment-adapter.mjs +0 -274
- package/fesm2015/nxt-pick-datetime-moment-adapter.mjs.map +0 -1
- package/fesm2015/nxt-pick-datetime-native-adapter.mjs +0 -420
- package/fesm2015/nxt-pick-datetime-native-adapter.mjs.map +0 -1
- package/fesm2015/nxt-pick-datetime.mjs +0 -5014
- package/fesm2015/nxt-pick-datetime.mjs.map +0 -1
|
@@ -1,274 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { InjectionToken, LOCALE_ID, Injectable, Optional, Inject, NgModule } from '@angular/core';
|
|
3
|
-
import moment from 'moment';
|
|
4
|
-
import { DateTimeAdapter, NXT_DATE_TIME_FORMATS } from 'nxt-pick-datetime';
|
|
5
|
-
|
|
6
|
-
/** InjectionToken for moment date adapter to configure options */
|
|
7
|
-
const NXT_MOMENT_DATE_TIME_ADAPTER_OPTIONS = new InjectionToken('NXT_MOMENT_DATE_TIME_ADAPTER_OPTIONS', {
|
|
8
|
-
providedIn: 'root',
|
|
9
|
-
factory: NXT_MOMENT_DATE_TIME_ADAPTER_OPTIONS_FACTORY
|
|
10
|
-
});
|
|
11
|
-
/** @internal */
|
|
12
|
-
function NXT_MOMENT_DATE_TIME_ADAPTER_OPTIONS_FACTORY() {
|
|
13
|
-
return {
|
|
14
|
-
useUtc: false
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Creates an array and fills it with values.
|
|
19
|
-
*
|
|
20
|
-
* @internal
|
|
21
|
-
*/
|
|
22
|
-
function range(length, valueFunction) {
|
|
23
|
-
const valuesArray = Array(length);
|
|
24
|
-
for (let i = 0; i < length; i++) {
|
|
25
|
-
valuesArray[i] = valueFunction(i);
|
|
26
|
-
}
|
|
27
|
-
return valuesArray;
|
|
28
|
-
}
|
|
29
|
-
class MomentDateTimeAdapter extends DateTimeAdapter {
|
|
30
|
-
constructor(dateTimeLocale, options) {
|
|
31
|
-
super();
|
|
32
|
-
this.options = options;
|
|
33
|
-
this._localeData = {};
|
|
34
|
-
this.setLocale(dateTimeLocale || moment.locale());
|
|
35
|
-
}
|
|
36
|
-
setLocale(locale) {
|
|
37
|
-
super.setLocale(locale);
|
|
38
|
-
const momentLocaleData = moment.localeData(locale);
|
|
39
|
-
this._localeData = {
|
|
40
|
-
longMonths: momentLocaleData.months(),
|
|
41
|
-
shortMonths: momentLocaleData.monthsShort(),
|
|
42
|
-
longDaysOfWeek: momentLocaleData.weekdays(),
|
|
43
|
-
shortDaysOfWeek: momentLocaleData.weekdaysShort(),
|
|
44
|
-
narrowDaysOfWeek: momentLocaleData.weekdaysMin(),
|
|
45
|
-
dates: range(31, (i) => this.createDate(2017, 0, i + 1).format('D'))
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
getYear(date) {
|
|
49
|
-
return this.clone(date).year();
|
|
50
|
-
}
|
|
51
|
-
getMonth(date) {
|
|
52
|
-
return this.clone(date).month();
|
|
53
|
-
}
|
|
54
|
-
getDay(date) {
|
|
55
|
-
return this.clone(date).day();
|
|
56
|
-
}
|
|
57
|
-
getDate(date) {
|
|
58
|
-
return this.clone(date).date();
|
|
59
|
-
}
|
|
60
|
-
getHours(date) {
|
|
61
|
-
return this.clone(date).hours();
|
|
62
|
-
}
|
|
63
|
-
getMinutes(date) {
|
|
64
|
-
return this.clone(date).minutes();
|
|
65
|
-
}
|
|
66
|
-
getSeconds(date) {
|
|
67
|
-
return this.clone(date).seconds();
|
|
68
|
-
}
|
|
69
|
-
getTime(date) {
|
|
70
|
-
return this.clone(date).valueOf();
|
|
71
|
-
}
|
|
72
|
-
getNumDaysInMonth(date) {
|
|
73
|
-
return this.clone(date).daysInMonth();
|
|
74
|
-
}
|
|
75
|
-
differenceInCalendarDays(dateLeft, dateRight) {
|
|
76
|
-
return this.clone(dateLeft).diff(dateRight, 'days');
|
|
77
|
-
}
|
|
78
|
-
getYearName(date) {
|
|
79
|
-
return this.clone(date).format('YYYY');
|
|
80
|
-
}
|
|
81
|
-
getMonthNames(style) {
|
|
82
|
-
return style === 'long' ? this._localeData.longMonths : this._localeData.shortMonths;
|
|
83
|
-
}
|
|
84
|
-
getDayOfWeekNames(style) {
|
|
85
|
-
if (style === 'long') {
|
|
86
|
-
return this._localeData.longDaysOfWeek;
|
|
87
|
-
}
|
|
88
|
-
if (style === 'short') {
|
|
89
|
-
return this._localeData.shortDaysOfWeek;
|
|
90
|
-
}
|
|
91
|
-
return this._localeData.narrowDaysOfWeek;
|
|
92
|
-
}
|
|
93
|
-
getDateNames() {
|
|
94
|
-
return this._localeData.dates;
|
|
95
|
-
}
|
|
96
|
-
toIso8601(date) {
|
|
97
|
-
return this.clone(date).format();
|
|
98
|
-
}
|
|
99
|
-
isEqual(dateLeft, dateRight) {
|
|
100
|
-
if (dateLeft && dateRight) {
|
|
101
|
-
return this.clone(dateLeft).isSame(this.clone(dateRight));
|
|
102
|
-
}
|
|
103
|
-
return dateLeft === dateRight;
|
|
104
|
-
}
|
|
105
|
-
isSameDay(dateLeft, dateRight) {
|
|
106
|
-
if (dateLeft && dateRight) {
|
|
107
|
-
return this.clone(dateLeft).isSame(this.clone(dateRight), 'day');
|
|
108
|
-
}
|
|
109
|
-
return dateLeft === dateRight;
|
|
110
|
-
}
|
|
111
|
-
isValid(date) {
|
|
112
|
-
return this.clone(date).isValid();
|
|
113
|
-
}
|
|
114
|
-
invalid() {
|
|
115
|
-
return moment.invalid();
|
|
116
|
-
}
|
|
117
|
-
isDateInstance(obj) {
|
|
118
|
-
return moment.isMoment(obj);
|
|
119
|
-
}
|
|
120
|
-
addCalendarYears(date, amount) {
|
|
121
|
-
return this.clone(date).add({ years: amount });
|
|
122
|
-
}
|
|
123
|
-
addCalendarMonths(date, amount) {
|
|
124
|
-
return this.clone(date).add({ months: amount });
|
|
125
|
-
}
|
|
126
|
-
addCalendarDays(date, amount) {
|
|
127
|
-
return this.clone(date).add({ days: amount });
|
|
128
|
-
}
|
|
129
|
-
setHours(date, amount) {
|
|
130
|
-
return this.clone(date).hours(amount);
|
|
131
|
-
}
|
|
132
|
-
setMinutes(date, amount) {
|
|
133
|
-
return this.clone(date).minutes(amount);
|
|
134
|
-
}
|
|
135
|
-
setSeconds(date, amount) {
|
|
136
|
-
return this.clone(date).seconds(amount);
|
|
137
|
-
}
|
|
138
|
-
createDate(year, month, date, hours = 0, minutes = 0, seconds = 0) {
|
|
139
|
-
if (month < 0 || month > 11) {
|
|
140
|
-
throw Error(`Invalid month index "${month}". Month index has to be between 0 and 11.`);
|
|
141
|
-
}
|
|
142
|
-
if (date < 1) {
|
|
143
|
-
throw Error(`Invalid date "${date}". Date has to be greater than 0.`);
|
|
144
|
-
}
|
|
145
|
-
if (hours < 0 || hours > 23) {
|
|
146
|
-
throw Error(`Invalid hours "${hours}". Hours has to be between 0 and 23.`);
|
|
147
|
-
}
|
|
148
|
-
if (minutes < 0 || minutes > 59) {
|
|
149
|
-
throw Error(`Invalid minutes "${minutes}". Minutes has to between 0 and 59.`);
|
|
150
|
-
}
|
|
151
|
-
if (seconds < 0 || seconds > 59) {
|
|
152
|
-
throw Error(`Invalid seconds "${seconds}". Seconds has to be between 0 and 59.`);
|
|
153
|
-
}
|
|
154
|
-
const result = this.createMoment({ year, month, date, hours, minutes, seconds }).locale(this.locale);
|
|
155
|
-
// If the result isn't valid, the date must have been out of bounds for this month.
|
|
156
|
-
if (!result.isValid()) {
|
|
157
|
-
throw Error(`Invalid date "${date}" for month with index "${month}".`);
|
|
158
|
-
}
|
|
159
|
-
return result;
|
|
160
|
-
}
|
|
161
|
-
clone(date) {
|
|
162
|
-
return this.createMoment(date).clone().locale(this.locale);
|
|
163
|
-
}
|
|
164
|
-
now() {
|
|
165
|
-
return this.createMoment().locale(this.locale);
|
|
166
|
-
}
|
|
167
|
-
format(date, displayFormat) {
|
|
168
|
-
date = this.clone(date);
|
|
169
|
-
if (!this.isValid(date)) {
|
|
170
|
-
throw Error('MomentDateTimeAdapter: Cannot format invalid date.');
|
|
171
|
-
}
|
|
172
|
-
return date.format(displayFormat);
|
|
173
|
-
}
|
|
174
|
-
parse(value, parseFormat) {
|
|
175
|
-
if (value && typeof value === 'string') {
|
|
176
|
-
return this.createMoment(value, parseFormat, this.locale);
|
|
177
|
-
}
|
|
178
|
-
return value ? this.createMoment(value).locale(this.locale) : undefined;
|
|
179
|
-
}
|
|
180
|
-
/**
|
|
181
|
-
* Returns the given value if given a valid Moment or undefined. Deserializes valid ISO 8601 strings
|
|
182
|
-
* (https://www.ietf.org/rfc/rfc3339.txt) and valid Date objects into valid Moments and empty
|
|
183
|
-
* string into undefined. Returns an invalid date for all other values.
|
|
184
|
-
*/
|
|
185
|
-
deserialize(value) {
|
|
186
|
-
let date;
|
|
187
|
-
if (value instanceof Date) {
|
|
188
|
-
date = this.createMoment(value);
|
|
189
|
-
}
|
|
190
|
-
if (typeof value === 'string') {
|
|
191
|
-
if (!value) {
|
|
192
|
-
return undefined;
|
|
193
|
-
}
|
|
194
|
-
date = this.createMoment(value, moment.ISO_8601).locale(this.locale);
|
|
195
|
-
}
|
|
196
|
-
if (date && this.isValid(date)) {
|
|
197
|
-
return date;
|
|
198
|
-
}
|
|
199
|
-
return super.deserialize(value);
|
|
200
|
-
}
|
|
201
|
-
/** Creates a Moment instance while respecting the current UTC settings */
|
|
202
|
-
createMoment(...args) {
|
|
203
|
-
return (this.options && this.options.useUtc) ? moment.utc(...args) : moment(...args);
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
MomentDateTimeAdapter.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: MomentDateTimeAdapter, deps: [{ token: LOCALE_ID, optional: true }, { token: NXT_MOMENT_DATE_TIME_ADAPTER_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
207
|
-
MomentDateTimeAdapter.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: MomentDateTimeAdapter });
|
|
208
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: MomentDateTimeAdapter, decorators: [{
|
|
209
|
-
type: Injectable
|
|
210
|
-
}], ctorParameters: function () {
|
|
211
|
-
return [{ type: undefined, decorators: [{
|
|
212
|
-
type: Optional
|
|
213
|
-
}, {
|
|
214
|
-
type: Inject,
|
|
215
|
-
args: [LOCALE_ID]
|
|
216
|
-
}] }, { type: undefined, decorators: [{
|
|
217
|
-
type: Optional
|
|
218
|
-
}, {
|
|
219
|
-
type: Inject,
|
|
220
|
-
args: [NXT_MOMENT_DATE_TIME_ADAPTER_OPTIONS]
|
|
221
|
-
}] }];
|
|
222
|
-
} });
|
|
223
|
-
|
|
224
|
-
/**
|
|
225
|
-
* @internal
|
|
226
|
-
*/
|
|
227
|
-
const NXT_MOMENT_DATE_TIME_FORMATS = {
|
|
228
|
-
parseInput: 'l LT',
|
|
229
|
-
fullPickerInput: 'l LT',
|
|
230
|
-
datePickerInput: 'l',
|
|
231
|
-
timePickerInput: 'LT',
|
|
232
|
-
monthYearLabel: 'MMM YYYY',
|
|
233
|
-
dateA11yLabel: 'LL',
|
|
234
|
-
monthYearA11yLabel: 'MMMM YYYY'
|
|
235
|
-
};
|
|
236
|
-
|
|
237
|
-
class MomentDateTimeModule {
|
|
238
|
-
}
|
|
239
|
-
MomentDateTimeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: MomentDateTimeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
240
|
-
MomentDateTimeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.4", ngImport: i0, type: MomentDateTimeModule });
|
|
241
|
-
MomentDateTimeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: MomentDateTimeModule, providers: [
|
|
242
|
-
{
|
|
243
|
-
provide: DateTimeAdapter,
|
|
244
|
-
useClass: MomentDateTimeAdapter,
|
|
245
|
-
deps: [LOCALE_ID, NXT_MOMENT_DATE_TIME_ADAPTER_OPTIONS]
|
|
246
|
-
},
|
|
247
|
-
{
|
|
248
|
-
provide: NXT_DATE_TIME_FORMATS,
|
|
249
|
-
useValue: NXT_MOMENT_DATE_TIME_FORMATS
|
|
250
|
-
}
|
|
251
|
-
] });
|
|
252
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: MomentDateTimeModule, decorators: [{
|
|
253
|
-
type: NgModule,
|
|
254
|
-
args: [{
|
|
255
|
-
providers: [
|
|
256
|
-
{
|
|
257
|
-
provide: DateTimeAdapter,
|
|
258
|
-
useClass: MomentDateTimeAdapter,
|
|
259
|
-
deps: [LOCALE_ID, NXT_MOMENT_DATE_TIME_ADAPTER_OPTIONS]
|
|
260
|
-
},
|
|
261
|
-
{
|
|
262
|
-
provide: NXT_DATE_TIME_FORMATS,
|
|
263
|
-
useValue: NXT_MOMENT_DATE_TIME_FORMATS
|
|
264
|
-
}
|
|
265
|
-
]
|
|
266
|
-
}]
|
|
267
|
-
}] });
|
|
268
|
-
|
|
269
|
-
/**
|
|
270
|
-
* Generated bundle index. Do not edit.
|
|
271
|
-
*/
|
|
272
|
-
|
|
273
|
-
export { MomentDateTimeModule, NXT_MOMENT_DATE_TIME_ADAPTER_OPTIONS };
|
|
274
|
-
//# sourceMappingURL=nxt-pick-datetime-moment-adapter.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
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'\nimport moment, { Moment } from 'moment'\nimport { DateTimeAdapter } from 'nxt-pick-datetime'\n\n/** Configurable options for {@see MomentDateAdapter} */\nexport interface MomentDateTimeAdapterOptions {\n /**\n * Turns the use of utc dates on or off.\n * Changing this will change how the DateTimePicker output value.\n * {@default false}\n */\n useUtc: boolean\n}\n\n/** InjectionToken for moment date adapter to configure options */\nexport const NXT_MOMENT_DATE_TIME_ADAPTER_OPTIONS = new InjectionToken<MomentDateTimeAdapterOptions>(\n 'NXT_MOMENT_DATE_TIME_ADAPTER_OPTIONS', {\n providedIn: 'root',\n factory: NXT_MOMENT_DATE_TIME_ADAPTER_OPTIONS_FACTORY\n})\n\n/** @internal */\nexport function NXT_MOMENT_DATE_TIME_ADAPTER_OPTIONS_FACTORY(): MomentDateTimeAdapterOptions {\n return {\n useUtc: false\n }\n}\n\n/**\n * Creates an array and fills it with values.\n *\n * @internal\n */\nfunction range<T>(length: number, valueFunction: (index: number) => T): T[] {\n const valuesArray = Array(length)\n for (let i = 0; i < length; i++) {\n valuesArray[i] = valueFunction(i)\n }\n return valuesArray\n}\n\n@Injectable()\nexport class MomentDateTimeAdapter extends DateTimeAdapter<Moment> {\n\n private _localeData: {\n longMonths: string[]\n shortMonths: string[]\n longDaysOfWeek: string[]\n shortDaysOfWeek: string[]\n narrowDaysOfWeek: string[]\n dates: string[]\n } = {} as any\n\n constructor(\n @Optional()\n @Inject(LOCALE_ID)\n dateTimeLocale?: string,\n @Optional()\n @Inject(NXT_MOMENT_DATE_TIME_ADAPTER_OPTIONS)\n private readonly options?: MomentDateTimeAdapterOptions\n ) {\n super()\n this.setLocale(dateTimeLocale || moment.locale())\n }\n\n override setLocale(locale: string) {\n super.setLocale(locale)\n\n const momentLocaleData = moment.localeData(locale)\n this._localeData = {\n longMonths: momentLocaleData.months(),\n shortMonths: momentLocaleData.monthsShort(),\n longDaysOfWeek: momentLocaleData.weekdays(),\n shortDaysOfWeek: momentLocaleData.weekdaysShort(),\n narrowDaysOfWeek: momentLocaleData.weekdaysMin(),\n dates: range(31, (i) => this.createDate(2017, 0, i + 1).format('D'))\n }\n }\n\n getYear(date: Moment): number {\n return this.clone(date).year()\n }\n\n getMonth(date: Moment): number {\n return this.clone(date).month()\n }\n\n getDay(date: Moment): number {\n return this.clone(date).day()\n }\n\n getDate(date: Moment): number {\n return this.clone(date).date()\n }\n\n getHours(date: Moment): number {\n return this.clone(date).hours()\n }\n\n getMinutes(date: Moment): number {\n return this.clone(date).minutes()\n }\n\n getSeconds(date: Moment): number {\n return this.clone(date).seconds()\n }\n\n getTime(date: Moment): number {\n return this.clone(date).valueOf()\n }\n\n getNumDaysInMonth(date: Moment): number {\n return this.clone(date).daysInMonth()\n }\n\n differenceInCalendarDays(dateLeft: Moment, dateRight: Moment): number {\n return this.clone(dateLeft).diff(dateRight, 'days')\n }\n\n getYearName(date: Moment): string {\n return this.clone(date).format('YYYY')\n }\n\n getMonthNames(style: 'long' | 'short' | 'narrow'): string[] {\n return style === 'long' ? this._localeData.longMonths : this._localeData.shortMonths\n }\n\n getDayOfWeekNames(style: 'long' | 'short' | 'narrow'): string[] {\n if (style === 'long') {\n return this._localeData.longDaysOfWeek\n }\n if (style === 'short') {\n return this._localeData.shortDaysOfWeek\n }\n return this._localeData.narrowDaysOfWeek\n }\n\n getDateNames(): string[] {\n return this._localeData.dates\n }\n\n toIso8601(date: Moment): string {\n return this.clone(date).format()\n }\n\n isEqual(dateLeft: Moment, dateRight: Moment): boolean {\n\n if (dateLeft && dateRight) {\n return this.clone(dateLeft).isSame(this.clone(dateRight))\n }\n\n return dateLeft === dateRight\n }\n\n isSameDay(dateLeft: Moment, dateRight: Moment): boolean {\n\n if (dateLeft && dateRight) {\n return this.clone(dateLeft).isSame(this.clone(dateRight), 'day')\n }\n\n return dateLeft === dateRight\n }\n\n isValid(date: Moment): boolean {\n return this.clone(date).isValid()\n }\n\n invalid(): Moment {\n return moment.invalid()\n }\n\n isDateInstance(obj: any): boolean {\n return moment.isMoment(obj)\n }\n\n addCalendarYears(date: Moment, amount: number): Moment {\n return this.clone(date).add({ years: amount })\n }\n\n addCalendarMonths(date: Moment, amount: number): Moment {\n return this.clone(date).add({ months: amount })\n }\n\n addCalendarDays(date: Moment, amount: number): Moment {\n return this.clone(date).add({ days: amount })\n }\n\n setHours(date: Moment, amount: number): Moment {\n return this.clone(date).hours(amount)\n }\n\n setMinutes(date: Moment, amount: number): Moment {\n return this.clone(date).minutes(amount)\n }\n\n setSeconds(date: Moment, amount: number): Moment {\n return this.clone(date).seconds(amount)\n }\n\n createDate(year: number, month: number, date: number): Moment\n createDate(year: number, month: number, date: number, hours: number = 0, minutes: number = 0, seconds: number = 0): Moment {\n if (month < 0 || month > 11) {\n throw Error(`Invalid month index \"${month}\". Month index has to be between 0 and 11.`)\n }\n\n if (date < 1) {\n throw Error(`Invalid date \"${date}\". Date has to be greater than 0.`)\n }\n\n if (hours < 0 || hours > 23) {\n throw Error(`Invalid hours \"${hours}\". Hours has to be between 0 and 23.`)\n }\n\n if (minutes < 0 || minutes > 59) {\n throw Error(`Invalid minutes \"${minutes}\". Minutes has to between 0 and 59.`)\n }\n\n if (seconds < 0 || seconds > 59) {\n throw Error(`Invalid seconds \"${seconds}\". Seconds has to be between 0 and 59.`)\n }\n\n const result = this.createMoment({ year, month, date, hours, minutes, seconds }).locale(this.locale)\n\n // If the result isn't valid, the date must have been out of bounds for this month.\n if (!result.isValid()) {\n throw Error(`Invalid date \"${date}\" for month with index \"${month}\".`)\n }\n\n return result\n }\n\n clone(date: Moment): Moment {\n return this.createMoment(date).clone().locale(this.locale)\n }\n\n now(): Moment {\n return this.createMoment().locale(this.locale)\n }\n\n format(date: Moment, displayFormat: any): string {\n date = this.clone(date)\n if (!this.isValid(date)) {\n throw Error('MomentDateTimeAdapter: Cannot format invalid date.')\n }\n return date.format(displayFormat)\n }\n\n parse(value: any, parseFormat: any): Moment | undefined {\n if (value && typeof value === 'string') {\n return this.createMoment(value, parseFormat, this.locale)\n }\n return value ? this.createMoment(value).locale(this.locale) : undefined\n }\n\n /**\n * Returns the given value if given a valid Moment or undefined. Deserializes valid ISO 8601 strings\n * (https://www.ietf.org/rfc/rfc3339.txt) and valid Date objects into valid Moments and empty\n * string into undefined. Returns an invalid date for all other values.\n */\n override deserialize(value: any): Moment | undefined {\n let date\n if (value instanceof Date) {\n date = this.createMoment(value)\n }\n if (typeof value === 'string') {\n if (!value) {\n return undefined\n }\n date = this.createMoment(value, moment.ISO_8601).locale(this.locale)\n }\n if (date && this.isValid(date)) {\n return date\n }\n return super.deserialize(value)\n }\n\n /** Creates a Moment instance while respecting the current UTC settings */\n private createMoment(...args: any[]): Moment {\n return (this.options && this.options.useUtc) ? moment.utc(...args) : moment(...args)\n }\n}\n","import { DateTimeFormats } from 'nxt-pick-datetime'\n\n/**\n * @internal\n */\nexport const NXT_MOMENT_DATE_TIME_FORMATS: DateTimeFormats = {\n parseInput: 'l LT',\n fullPickerInput: 'l LT',\n datePickerInput: 'l',\n timePickerInput: 'LT',\n monthYearLabel: 'MMM YYYY',\n dateA11yLabel: 'LL',\n monthYearA11yLabel: 'MMMM YYYY'\n}\n","import { LOCALE_ID, NgModule } from '@angular/core'\nimport { DateTimeAdapter, NXT_DATE_TIME_FORMATS } from 'nxt-pick-datetime'\nimport { MomentDateTimeAdapter, NXT_MOMENT_DATE_TIME_ADAPTER_OPTIONS } from './date-time-adapter.class'\nimport { NXT_MOMENT_DATE_TIME_FORMATS } from './date-time-format.class'\n\n@NgModule({\n providers: [\n {\n provide: DateTimeAdapter,\n useClass: MomentDateTimeAdapter,\n deps: [LOCALE_ID, NXT_MOMENT_DATE_TIME_ADAPTER_OPTIONS]\n },\n {\n provide: NXT_DATE_TIME_FORMATS,\n useValue: NXT_MOMENT_DATE_TIME_FORMATS\n }\n ]\n})\nexport class MomentDateTimeModule { }\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,4CAA4C;AACxD,CAAA,EAAC;AAEF;SACgB,4CAA4C,GAAA;IACxD,OAAO;AACH,QAAA,MAAM,EAAE,KAAK;KAChB,CAAA;AACL,CAAC;AAED;;;;AAIG;AACH,SAAS,KAAK,CAAI,MAAc,EAAE,aAAmC,EAAA;AACjE,IAAA,MAAM,WAAW,GAAG,KAAK,CAAC,MAAM,CAAC,CAAA;IACjC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,EAAE,CAAC,EAAE,EAAE;QAC7B,WAAW,CAAC,CAAC,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC,CAAA;AACpC,KAAA;AACD,IAAA,OAAO,WAAW,CAAA;AACtB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