@angular/material-date-fns-adapter 21.0.0 → 21.0.2
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.
|
@@ -205,7 +205,7 @@ class DateFnsAdapter extends DateAdapter {
|
|
|
205
205
|
}
|
|
206
206
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
207
207
|
minVersion: "12.0.0",
|
|
208
|
-
version: "
|
|
208
|
+
version: "21.0.0",
|
|
209
209
|
ngImport: i0,
|
|
210
210
|
type: DateFnsAdapter,
|
|
211
211
|
deps: [],
|
|
@@ -213,14 +213,14 @@ class DateFnsAdapter extends DateAdapter {
|
|
|
213
213
|
});
|
|
214
214
|
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
215
215
|
minVersion: "12.0.0",
|
|
216
|
-
version: "
|
|
216
|
+
version: "21.0.0",
|
|
217
217
|
ngImport: i0,
|
|
218
218
|
type: DateFnsAdapter
|
|
219
219
|
});
|
|
220
220
|
}
|
|
221
221
|
i0.ɵɵngDeclareClassMetadata({
|
|
222
222
|
minVersion: "12.0.0",
|
|
223
|
-
version: "
|
|
223
|
+
version: "21.0.0",
|
|
224
224
|
ngImport: i0,
|
|
225
225
|
type: DateFnsAdapter,
|
|
226
226
|
decorators: [{
|
|
@@ -247,7 +247,7 @@ const MAT_DATE_FNS_FORMATS = {
|
|
|
247
247
|
class DateFnsModule {
|
|
248
248
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
249
249
|
minVersion: "12.0.0",
|
|
250
|
-
version: "
|
|
250
|
+
version: "21.0.0",
|
|
251
251
|
ngImport: i0,
|
|
252
252
|
type: DateFnsModule,
|
|
253
253
|
deps: [],
|
|
@@ -255,13 +255,13 @@ class DateFnsModule {
|
|
|
255
255
|
});
|
|
256
256
|
static ɵmod = i0.ɵɵngDeclareNgModule({
|
|
257
257
|
minVersion: "14.0.0",
|
|
258
|
-
version: "
|
|
258
|
+
version: "21.0.0",
|
|
259
259
|
ngImport: i0,
|
|
260
260
|
type: DateFnsModule
|
|
261
261
|
});
|
|
262
262
|
static ɵinj = i0.ɵɵngDeclareInjector({
|
|
263
263
|
minVersion: "12.0.0",
|
|
264
|
-
version: "
|
|
264
|
+
version: "21.0.0",
|
|
265
265
|
ngImport: i0,
|
|
266
266
|
type: DateFnsModule,
|
|
267
267
|
providers: [{
|
|
@@ -272,7 +272,7 @@ class DateFnsModule {
|
|
|
272
272
|
}
|
|
273
273
|
i0.ɵɵngDeclareClassMetadata({
|
|
274
274
|
minVersion: "12.0.0",
|
|
275
|
-
version: "
|
|
275
|
+
version: "21.0.0",
|
|
276
276
|
ngImport: i0,
|
|
277
277
|
type: DateFnsModule,
|
|
278
278
|
decorators: [{
|
|
@@ -288,7 +288,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
288
288
|
class MatDateFnsModule {
|
|
289
289
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
290
290
|
minVersion: "12.0.0",
|
|
291
|
-
version: "
|
|
291
|
+
version: "21.0.0",
|
|
292
292
|
ngImport: i0,
|
|
293
293
|
type: MatDateFnsModule,
|
|
294
294
|
deps: [],
|
|
@@ -296,13 +296,13 @@ class MatDateFnsModule {
|
|
|
296
296
|
});
|
|
297
297
|
static ɵmod = i0.ɵɵngDeclareNgModule({
|
|
298
298
|
minVersion: "14.0.0",
|
|
299
|
-
version: "
|
|
299
|
+
version: "21.0.0",
|
|
300
300
|
ngImport: i0,
|
|
301
301
|
type: MatDateFnsModule
|
|
302
302
|
});
|
|
303
303
|
static ɵinj = i0.ɵɵngDeclareInjector({
|
|
304
304
|
minVersion: "12.0.0",
|
|
305
|
-
version: "
|
|
305
|
+
version: "21.0.0",
|
|
306
306
|
ngImport: i0,
|
|
307
307
|
type: MatDateFnsModule,
|
|
308
308
|
providers: [provideDateFnsAdapter()]
|
|
@@ -310,7 +310,7 @@ class MatDateFnsModule {
|
|
|
310
310
|
}
|
|
311
311
|
i0.ɵɵngDeclareClassMetadata({
|
|
312
312
|
minVersion: "12.0.0",
|
|
313
|
-
version: "
|
|
313
|
+
version: "21.0.0",
|
|
314
314
|
ngImport: i0,
|
|
315
315
|
type: MatDateFnsModule,
|
|
316
316
|
decorators: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"material-date-fns-adapter.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-199a4f3c4e20/bin/src/material-date-fns-adapter/adapter/date-fns-adapter.ts","../../../../../darwin_arm64-fastbuild-ST-199a4f3c4e20/bin/src/material-date-fns-adapter/adapter/date-fns-formats.ts","../../../../../darwin_arm64-fastbuild-ST-199a4f3c4e20/bin/src/material-date-fns-adapter/adapter/index.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {Injectable, inject} from '@angular/core';\nimport {DateAdapter, MAT_DATE_LOCALE} from '@angular/material/core';\nimport {\n Locale,\n getMonth,\n getYear,\n getDate,\n getDay,\n getHours,\n getMinutes,\n getSeconds,\n set,\n getDaysInMonth,\n formatISO,\n addYears,\n addMonths,\n addDays,\n addSeconds,\n isValid,\n isDate,\n format,\n parseISO,\n parse,\n} from 'date-fns';\n\n/** Creates an array and fills it with values. */\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// date-fns doesn't have a way to read/print month names or days of the week directly,\n// so we get them by formatting a date with a format that produces the desired month/day.\nconst MONTH_FORMATS = {\n long: 'LLLL',\n short: 'LLL',\n narrow: 'LLLLL',\n};\n\nconst DAY_OF_WEEK_FORMATS = {\n long: 'EEEE',\n short: 'EEE',\n narrow: 'EEEEE',\n};\n\n/** Adds date-fns support to Angular Material. */\n@Injectable()\nexport class DateFnsAdapter extends DateAdapter<Date, Locale> {\n constructor(...args: unknown[]);\n\n constructor() {\n super();\n const matDateLocale = inject(MAT_DATE_LOCALE, {optional: true});\n this.setLocale(matDateLocale as Locale);\n }\n\n getYear(date: Date): number {\n return getYear(date);\n }\n\n getMonth(date: Date): number {\n return getMonth(date);\n }\n\n getDate(date: Date): number {\n return getDate(date);\n }\n\n getDayOfWeek(date: Date): number {\n return getDay(date);\n }\n\n getMonthNames(style: 'long' | 'short' | 'narrow'): string[] {\n const pattern = MONTH_FORMATS[style];\n return range(12, i => this.format(new Date(2017, i, 1), pattern));\n }\n\n getDateNames(): string[] {\n const dtf =\n typeof Intl !== 'undefined'\n ? new Intl.DateTimeFormat(this.locale.code, {\n day: 'numeric',\n timeZone: 'utc',\n })\n : null;\n\n return range(31, i => {\n if (dtf) {\n // date-fns doesn't appear to support this functionality.\n // Fall back to `Intl` on supported browsers.\n const date = new Date();\n date.setUTCFullYear(2017, 0, i + 1);\n date.setUTCHours(0, 0, 0, 0);\n return dtf.format(date).replace(/[\\u200e\\u200f]/g, '');\n }\n\n return i + '';\n });\n }\n\n getDayOfWeekNames(style: 'long' | 'short' | 'narrow'): string[] {\n const pattern = DAY_OF_WEEK_FORMATS[style];\n return range(7, i => this.format(new Date(2017, 0, i + 1), pattern));\n }\n\n getYearName(date: Date): string {\n return this.format(date, 'y');\n }\n\n getFirstDayOfWeek(): number {\n return this.locale.options?.weekStartsOn ?? 0;\n }\n\n getNumDaysInMonth(date: Date): number {\n return getDaysInMonth(date);\n }\n\n clone(date: Date): Date {\n return new Date(date.getTime());\n }\n\n createDate(year: number, month: number, date: number): Date {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n // Check for invalid month and date (except upper bound on date which we have to check after\n // creating the Date).\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\n // Passing the year to the constructor causes year numbers <100 to be converted to 19xx.\n // To work around this we use `setFullYear` and `setHours` instead.\n const result = new Date();\n result.setFullYear(year, month, date);\n result.setHours(0, 0, 0, 0);\n\n // Check that the date wasn't above the upper bound for the month, causing the month to overflow\n if (result.getMonth() != month && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw Error(`Invalid date \"${date}\" for month with index \"${month}\".`);\n }\n\n return result;\n }\n\n today(): Date {\n return new Date();\n }\n\n parse(value: unknown, parseFormat: string | string[]): Date | null {\n return this._parse(value, parseFormat);\n }\n\n format(date: Date, displayFormat: string): string {\n if (!this.isValid(date)) {\n throw Error('DateFnsAdapter: Cannot format invalid date.');\n }\n\n return format(date, displayFormat, {locale: this.locale});\n }\n\n addCalendarYears(date: Date, years: number): Date {\n return addYears(date, years);\n }\n\n addCalendarMonths(date: Date, months: number): Date {\n return addMonths(date, months);\n }\n\n addCalendarDays(date: Date, days: number): Date {\n return addDays(date, days);\n }\n\n toIso8601(date: Date): string {\n return formatISO(date, {representation: 'date'});\n }\n\n /**\n * Returns the given value if given a valid Date or null. Deserializes valid ISO 8601 strings\n * (https://www.ietf.org/rfc/rfc3339.txt) into valid Dates and empty string into null. Returns an\n * invalid date for all other values.\n */\n override deserialize(value: unknown): Date | null {\n if (typeof value === 'string') {\n if (!value) {\n return null;\n }\n const date = parseISO(value);\n if (this.isValid(date)) {\n return date;\n }\n }\n return super.deserialize(value);\n }\n\n isDateInstance(obj: unknown): obj is Date {\n return isDate(obj);\n }\n\n isValid(date: Date): boolean {\n return isValid(date);\n }\n\n invalid(): Date {\n return new Date(NaN);\n }\n\n override setTime(target: Date, hours: number, minutes: number, seconds: number): Date {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n if (hours < 0 || hours > 23) {\n throw Error(`Invalid hours \"${hours}\". Hours value must be between 0 and 23.`);\n }\n\n if (minutes < 0 || minutes > 59) {\n throw Error(`Invalid minutes \"${minutes}\". Minutes value must be between 0 and 59.`);\n }\n\n if (seconds < 0 || seconds > 59) {\n throw Error(`Invalid seconds \"${seconds}\". Seconds value must be between 0 and 59.`);\n }\n }\n\n return set(this.clone(target), {hours, minutes, seconds, milliseconds: 0});\n }\n\n override getHours(date: Date): number {\n return getHours(date);\n }\n\n override getMinutes(date: Date): number {\n return getMinutes(date);\n }\n\n override getSeconds(date: Date): number {\n return getSeconds(date);\n }\n\n override parseTime(value: unknown, parseFormat: string | string[]): Date | null {\n return this._parse(value, parseFormat, false);\n }\n\n override addSeconds(date: Date, amount: number): Date {\n return addSeconds(date, amount);\n }\n\n private _parse(\n value: unknown,\n parseFormat: string | string[],\n shouldTryParseIso = true,\n ): Date | null {\n if (typeof value == 'string' && value.length > 0) {\n if (shouldTryParseIso) {\n const iso8601Date = parseISO(value);\n\n if (this.isValid(iso8601Date)) {\n return iso8601Date;\n }\n }\n\n const formats = Array.isArray(parseFormat) ? parseFormat : [parseFormat];\n\n if (!parseFormat.length) {\n throw Error('Formats array must not be empty.');\n }\n\n for (const currentFormat of formats) {\n const fromFormat = parse(value, currentFormat, new Date(), {locale: this.locale});\n\n if (this.isValid(fromFormat)) {\n return fromFormat;\n }\n }\n\n return this.invalid();\n } else if (typeof value === 'number') {\n return new Date(value);\n } else if (value instanceof Date) {\n return this.clone(value);\n }\n\n return null;\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {MatDateFormats} from '@angular/material/core';\n\nexport const MAT_DATE_FNS_FORMATS: MatDateFormats = {\n parse: {\n dateInput: 'P',\n timeInput: 'p',\n },\n display: {\n dateInput: 'P',\n timeInput: 'p',\n monthYearLabel: 'LLL uuuu',\n dateA11yLabel: 'PP',\n monthYearA11yLabel: 'LLLL uuuu',\n timeOptionLabel: 'p',\n },\n};\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {NgModule, Provider} from '@angular/core';\nimport {DateAdapter, MAT_DATE_FORMATS, MatDateFormats} from '@angular/material/core';\nimport {DateFnsAdapter} from './date-fns-adapter';\nimport {MAT_DATE_FNS_FORMATS} from './date-fns-formats';\n\nexport * from './date-fns-adapter';\nexport * from './date-fns-formats';\n\n@NgModule({\n providers: [\n {\n provide: DateAdapter,\n useClass: DateFnsAdapter,\n },\n ],\n})\nexport class DateFnsModule {}\n\n@NgModule({\n providers: [provideDateFnsAdapter()],\n})\nexport class MatDateFnsModule {}\n\nexport function provideDateFnsAdapter(formats: MatDateFormats = MAT_DATE_FNS_FORMATS): Provider[] {\n return [\n {\n provide: DateAdapter,\n useClass: DateFnsAdapter,\n },\n {provide: MAT_DATE_FORMATS, useValue: formats},\n ];\n}\n"],"names":["range","length","valueFunction","valuesArray","Array","i","MONTH_FORMATS","long","short","narrow","DAY_OF_WEEK_FORMATS","DateFnsAdapter","DateAdapter","constructor","matDateLocale","inject","MAT_DATE_LOCALE","optional","setLocale","getYear","date","getMonth","getDate","getDayOfWeek","getDay","getMonthNames","style","pattern","format","Date","getDateNames","dtf","Intl","DateTimeFormat","locale","code","day","timeZone","setUTCFullYear","setUTCHours","replace","getDayOfWeekNames","getYearName","getFirstDayOfWeek","options","weekStartsOn","getNumDaysInMonth","getDaysInMonth","clone","getTime","createDate","year","month","ngDevMode","Error","result","setFullYear","setHours","today","parse","value","parseFormat","_parse","displayFormat","isValid","addCalendarYears","years","addYears","addCalendarMonths","months","addMonths","addCalendarDays","days","addDays","toIso8601","formatISO","representation","deserialize","parseISO","isDateInstance","obj","isDate","invalid","NaN","setTime","target","hours","minutes","seconds","set","milliseconds","getHours","getMinutes","getSeconds","parseTime","addSeconds","amount","shouldTryParseIso","iso8601Date","formats","isArray","currentFormat","fromFormat","deps","i0","ɵɵFactoryTarget","Injectable","decorators","MAT_DATE_FNS_FORMATS","dateInput","timeInput","display","monthYearLabel","dateA11yLabel","monthYearA11yLabel","timeOptionLabel","DateFnsModule","NgModule","ɵinj","ɵɵngDeclareInjector","minVersion","version","ngImport","type","providers","provide","useClass","args","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material-date-fns-adapter.mjs","sources":["../../../../../k8-fastbuild-ST-199a4f3c4e20/bin/src/material-date-fns-adapter/adapter/date-fns-adapter.ts","../../../../../k8-fastbuild-ST-199a4f3c4e20/bin/src/material-date-fns-adapter/adapter/date-fns-formats.ts","../../../../../k8-fastbuild-ST-199a4f3c4e20/bin/src/material-date-fns-adapter/adapter/index.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {Injectable, inject} from '@angular/core';\nimport {DateAdapter, MAT_DATE_LOCALE} from '@angular/material/core';\nimport {\n Locale,\n getMonth,\n getYear,\n getDate,\n getDay,\n getHours,\n getMinutes,\n getSeconds,\n set,\n getDaysInMonth,\n formatISO,\n addYears,\n addMonths,\n addDays,\n addSeconds,\n isValid,\n isDate,\n format,\n parseISO,\n parse,\n} from 'date-fns';\n\n/** Creates an array and fills it with values. */\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// date-fns doesn't have a way to read/print month names or days of the week directly,\n// so we get them by formatting a date with a format that produces the desired month/day.\nconst MONTH_FORMATS = {\n long: 'LLLL',\n short: 'LLL',\n narrow: 'LLLLL',\n};\n\nconst DAY_OF_WEEK_FORMATS = {\n long: 'EEEE',\n short: 'EEE',\n narrow: 'EEEEE',\n};\n\n/** Adds date-fns support to Angular Material. */\n@Injectable()\nexport class DateFnsAdapter extends DateAdapter<Date, Locale> {\n constructor(...args: unknown[]);\n\n constructor() {\n super();\n const matDateLocale = inject(MAT_DATE_LOCALE, {optional: true});\n this.setLocale(matDateLocale as Locale);\n }\n\n getYear(date: Date): number {\n return getYear(date);\n }\n\n getMonth(date: Date): number {\n return getMonth(date);\n }\n\n getDate(date: Date): number {\n return getDate(date);\n }\n\n getDayOfWeek(date: Date): number {\n return getDay(date);\n }\n\n getMonthNames(style: 'long' | 'short' | 'narrow'): string[] {\n const pattern = MONTH_FORMATS[style];\n return range(12, i => this.format(new Date(2017, i, 1), pattern));\n }\n\n getDateNames(): string[] {\n const dtf =\n typeof Intl !== 'undefined'\n ? new Intl.DateTimeFormat(this.locale.code, {\n day: 'numeric',\n timeZone: 'utc',\n })\n : null;\n\n return range(31, i => {\n if (dtf) {\n // date-fns doesn't appear to support this functionality.\n // Fall back to `Intl` on supported browsers.\n const date = new Date();\n date.setUTCFullYear(2017, 0, i + 1);\n date.setUTCHours(0, 0, 0, 0);\n return dtf.format(date).replace(/[\\u200e\\u200f]/g, '');\n }\n\n return i + '';\n });\n }\n\n getDayOfWeekNames(style: 'long' | 'short' | 'narrow'): string[] {\n const pattern = DAY_OF_WEEK_FORMATS[style];\n return range(7, i => this.format(new Date(2017, 0, i + 1), pattern));\n }\n\n getYearName(date: Date): string {\n return this.format(date, 'y');\n }\n\n getFirstDayOfWeek(): number {\n return this.locale.options?.weekStartsOn ?? 0;\n }\n\n getNumDaysInMonth(date: Date): number {\n return getDaysInMonth(date);\n }\n\n clone(date: Date): Date {\n return new Date(date.getTime());\n }\n\n createDate(year: number, month: number, date: number): Date {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n // Check for invalid month and date (except upper bound on date which we have to check after\n // creating the Date).\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\n // Passing the year to the constructor causes year numbers <100 to be converted to 19xx.\n // To work around this we use `setFullYear` and `setHours` instead.\n const result = new Date();\n result.setFullYear(year, month, date);\n result.setHours(0, 0, 0, 0);\n\n // Check that the date wasn't above the upper bound for the month, causing the month to overflow\n if (result.getMonth() != month && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw Error(`Invalid date \"${date}\" for month with index \"${month}\".`);\n }\n\n return result;\n }\n\n today(): Date {\n return new Date();\n }\n\n parse(value: unknown, parseFormat: string | string[]): Date | null {\n return this._parse(value, parseFormat);\n }\n\n format(date: Date, displayFormat: string): string {\n if (!this.isValid(date)) {\n throw Error('DateFnsAdapter: Cannot format invalid date.');\n }\n\n return format(date, displayFormat, {locale: this.locale});\n }\n\n addCalendarYears(date: Date, years: number): Date {\n return addYears(date, years);\n }\n\n addCalendarMonths(date: Date, months: number): Date {\n return addMonths(date, months);\n }\n\n addCalendarDays(date: Date, days: number): Date {\n return addDays(date, days);\n }\n\n toIso8601(date: Date): string {\n return formatISO(date, {representation: 'date'});\n }\n\n /**\n * Returns the given value if given a valid Date or null. Deserializes valid ISO 8601 strings\n * (https://www.ietf.org/rfc/rfc3339.txt) into valid Dates and empty string into null. Returns an\n * invalid date for all other values.\n */\n override deserialize(value: unknown): Date | null {\n if (typeof value === 'string') {\n if (!value) {\n return null;\n }\n const date = parseISO(value);\n if (this.isValid(date)) {\n return date;\n }\n }\n return super.deserialize(value);\n }\n\n isDateInstance(obj: unknown): obj is Date {\n return isDate(obj);\n }\n\n isValid(date: Date): boolean {\n return isValid(date);\n }\n\n invalid(): Date {\n return new Date(NaN);\n }\n\n override setTime(target: Date, hours: number, minutes: number, seconds: number): Date {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n if (hours < 0 || hours > 23) {\n throw Error(`Invalid hours \"${hours}\". Hours value must be between 0 and 23.`);\n }\n\n if (minutes < 0 || minutes > 59) {\n throw Error(`Invalid minutes \"${minutes}\". Minutes value must be between 0 and 59.`);\n }\n\n if (seconds < 0 || seconds > 59) {\n throw Error(`Invalid seconds \"${seconds}\". Seconds value must be between 0 and 59.`);\n }\n }\n\n return set(this.clone(target), {hours, minutes, seconds, milliseconds: 0});\n }\n\n override getHours(date: Date): number {\n return getHours(date);\n }\n\n override getMinutes(date: Date): number {\n return getMinutes(date);\n }\n\n override getSeconds(date: Date): number {\n return getSeconds(date);\n }\n\n override parseTime(value: unknown, parseFormat: string | string[]): Date | null {\n return this._parse(value, parseFormat, false);\n }\n\n override addSeconds(date: Date, amount: number): Date {\n return addSeconds(date, amount);\n }\n\n private _parse(\n value: unknown,\n parseFormat: string | string[],\n shouldTryParseIso = true,\n ): Date | null {\n if (typeof value == 'string' && value.length > 0) {\n if (shouldTryParseIso) {\n const iso8601Date = parseISO(value);\n\n if (this.isValid(iso8601Date)) {\n return iso8601Date;\n }\n }\n\n const formats = Array.isArray(parseFormat) ? parseFormat : [parseFormat];\n\n if (!parseFormat.length) {\n throw Error('Formats array must not be empty.');\n }\n\n for (const currentFormat of formats) {\n const fromFormat = parse(value, currentFormat, new Date(), {locale: this.locale});\n\n if (this.isValid(fromFormat)) {\n return fromFormat;\n }\n }\n\n return this.invalid();\n } else if (typeof value === 'number') {\n return new Date(value);\n } else if (value instanceof Date) {\n return this.clone(value);\n }\n\n return null;\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {MatDateFormats} from '@angular/material/core';\n\nexport const MAT_DATE_FNS_FORMATS: MatDateFormats = {\n parse: {\n dateInput: 'P',\n timeInput: 'p',\n },\n display: {\n dateInput: 'P',\n timeInput: 'p',\n monthYearLabel: 'LLL uuuu',\n dateA11yLabel: 'PP',\n monthYearA11yLabel: 'LLLL uuuu',\n timeOptionLabel: 'p',\n },\n};\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {NgModule, Provider} from '@angular/core';\nimport {DateAdapter, MAT_DATE_FORMATS, MatDateFormats} from '@angular/material/core';\nimport {DateFnsAdapter} from './date-fns-adapter';\nimport {MAT_DATE_FNS_FORMATS} from './date-fns-formats';\n\nexport * from './date-fns-adapter';\nexport * from './date-fns-formats';\n\n@NgModule({\n providers: [\n {\n provide: DateAdapter,\n useClass: DateFnsAdapter,\n },\n ],\n})\nexport class DateFnsModule {}\n\n@NgModule({\n providers: [provideDateFnsAdapter()],\n})\nexport class MatDateFnsModule {}\n\nexport function provideDateFnsAdapter(formats: MatDateFormats = MAT_DATE_FNS_FORMATS): Provider[] {\n return [\n {\n provide: DateAdapter,\n useClass: DateFnsAdapter,\n },\n {provide: MAT_DATE_FORMATS, useValue: formats},\n ];\n}\n"],"names":["range","length","valueFunction","valuesArray","Array","i","MONTH_FORMATS","long","short","narrow","DAY_OF_WEEK_FORMATS","DateFnsAdapter","DateAdapter","constructor","matDateLocale","inject","MAT_DATE_LOCALE","optional","setLocale","getYear","date","getMonth","getDate","getDayOfWeek","getDay","getMonthNames","style","pattern","format","Date","getDateNames","dtf","Intl","DateTimeFormat","locale","code","day","timeZone","setUTCFullYear","setUTCHours","replace","getDayOfWeekNames","getYearName","getFirstDayOfWeek","options","weekStartsOn","getNumDaysInMonth","getDaysInMonth","clone","getTime","createDate","year","month","ngDevMode","Error","result","setFullYear","setHours","today","parse","value","parseFormat","_parse","displayFormat","isValid","addCalendarYears","years","addYears","addCalendarMonths","months","addMonths","addCalendarDays","days","addDays","toIso8601","formatISO","representation","deserialize","parseISO","isDateInstance","obj","isDate","invalid","NaN","setTime","target","hours","minutes","seconds","set","milliseconds","getHours","getMinutes","getSeconds","parseTime","addSeconds","amount","shouldTryParseIso","iso8601Date","formats","isArray","currentFormat","fromFormat","deps","i0","ɵɵFactoryTarget","Injectable","decorators","MAT_DATE_FNS_FORMATS","dateInput","timeInput","display","monthYearLabel","dateA11yLabel","monthYearA11yLabel","timeOptionLabel","DateFnsModule","NgModule","ɵinj","ɵɵngDeclareInjector","minVersion","version","ngImport","type","providers","provide","useClass","args","MatDateFnsModule","provideDateFnsAdapter","MAT_DATE_FORMATS","useValue"],"mappings":";;;;;AAkCA,SAASA,KAAKA,CAAIC,MAAc,EAAEC,aAAmC,EAAA;AACnE,EAAA,MAAMC,WAAW,GAAGC,KAAK,CAACH,MAAM,CAAC;EACjC,KAAK,IAAII,CAAC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;AAACU,IAAAA,IAAA,EAAA,CAAA;AACRH,MAAAA,SAAS,EAAE,CACT;AACEC,QAAAA,OAAO,EAAEjH,WAAW;AACpBkH,QAAAA,QAAQ,EAAEnH;OACX;KAEJ;;;MAMYqH,gBAAgB,CAAA;;;;;UAAhBA,gBAAgB;AAAAzB,IAAAA,IAAA,EAAA,EAAA;AAAAlB,IAAAA,MAAA,EAAAmB,EAAA,CAAAC,eAAA,CAAAY;AAAA,GAAA,CAAA;;;;;UAAhBW;AAAgB,GAAA,CAAA;AAAhB,EAAA,OAAAV,IAAA,GAAAd,EAAA,CAAAe,mBAAA,CAAA;AAAAC,IAAAA,UAAA,EAAA,QAAA;AAAAC,IAAAA,OAAA,EAAA,QAAA;AAAAC,IAAAA,QAAA,EAAAlB,EAAA;AAAAmB,IAAAA,IAAA,EAAAK,gBAAgB;AAFhBJ,IAAAA,SAAA,EAAA,CAACK,qBAAqB,EAAE;AAAC,GAAA,CAAA;;;;;;QAEzBD,gBAAgB;AAAArB,EAAAA,UAAA,EAAA,CAAA;UAH5BU,QAAQ;AAACU,IAAAA,IAAA,EAAA,CAAA;AACRH,MAAAA,SAAS,EAAE,CAACK,qBAAqB,EAAE;KACpC;;;AAGe,SAAAA,qBAAqBA,CAAC9B,OAAA,GAA0BS,oBAAoB,EAAA;AAClF,EAAA,OAAO,CACL;AACEiB,IAAAA,OAAO,EAAEjH,WAAW;AACpBkH,IAAAA,QAAQ,EAAEnH;AACX,GAAA,EACD;AAACkH,IAAAA,OAAO,EAAEK,gBAAgB;AAAEC,IAAAA,QAAQ,EAAEhC;AAAQ,GAAA,CAC/C;AACH;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/material-date-fns-adapter",
|
|
3
|
-
"version": "21.0.
|
|
3
|
+
"version": "21.0.2",
|
|
4
4
|
"description": "Angular Material date-fns Adapter",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
},
|
|
13
13
|
"homepage": "https://github.com/angular/components#readme",
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"@angular/material": "21.0.
|
|
15
|
+
"@angular/material": "21.0.2",
|
|
16
16
|
"@angular/core": "^21.0.0 || ^22.0.0",
|
|
17
17
|
"date-fns": ">2.20.0 <5.0"
|
|
18
18
|
},
|