@angular/material-moment-adapter 22.0.0-next.7 → 22.0.0-next.8
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.
|
@@ -207,7 +207,7 @@ class MomentDateAdapter extends DateAdapter {
|
|
|
207
207
|
}
|
|
208
208
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
209
209
|
minVersion: "12.0.0",
|
|
210
|
-
version: "22.0.0-next.
|
|
210
|
+
version: "22.0.0-next.10",
|
|
211
211
|
ngImport: i0,
|
|
212
212
|
type: MomentDateAdapter,
|
|
213
213
|
deps: [],
|
|
@@ -215,7 +215,7 @@ class MomentDateAdapter extends DateAdapter {
|
|
|
215
215
|
});
|
|
216
216
|
static ɵprov = i0.ɵɵngDeclareService({
|
|
217
217
|
minVersion: "22.0.0",
|
|
218
|
-
version: "22.0.0-next.
|
|
218
|
+
version: "22.0.0-next.10",
|
|
219
219
|
ngImport: i0,
|
|
220
220
|
type: MomentDateAdapter,
|
|
221
221
|
autoProvided: false
|
|
@@ -223,7 +223,7 @@ class MomentDateAdapter extends DateAdapter {
|
|
|
223
223
|
}
|
|
224
224
|
i0.ɵɵngDeclareClassMetadata({
|
|
225
225
|
minVersion: "12.0.0",
|
|
226
|
-
version: "22.0.0-next.
|
|
226
|
+
version: "22.0.0-next.10",
|
|
227
227
|
ngImport: i0,
|
|
228
228
|
type: MomentDateAdapter,
|
|
229
229
|
decorators: [{
|
|
@@ -253,7 +253,7 @@ const MAT_MOMENT_DATE_FORMATS = {
|
|
|
253
253
|
class MomentDateModule {
|
|
254
254
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
255
255
|
minVersion: "12.0.0",
|
|
256
|
-
version: "22.0.0-next.
|
|
256
|
+
version: "22.0.0-next.10",
|
|
257
257
|
ngImport: i0,
|
|
258
258
|
type: MomentDateModule,
|
|
259
259
|
deps: [],
|
|
@@ -261,13 +261,13 @@ class MomentDateModule {
|
|
|
261
261
|
});
|
|
262
262
|
static ɵmod = i0.ɵɵngDeclareNgModule({
|
|
263
263
|
minVersion: "14.0.0",
|
|
264
|
-
version: "22.0.0-next.
|
|
264
|
+
version: "22.0.0-next.10",
|
|
265
265
|
ngImport: i0,
|
|
266
266
|
type: MomentDateModule
|
|
267
267
|
});
|
|
268
268
|
static ɵinj = i0.ɵɵngDeclareInjector({
|
|
269
269
|
minVersion: "12.0.0",
|
|
270
|
-
version: "22.0.0-next.
|
|
270
|
+
version: "22.0.0-next.10",
|
|
271
271
|
ngImport: i0,
|
|
272
272
|
type: MomentDateModule,
|
|
273
273
|
providers: [{
|
|
@@ -278,7 +278,7 @@ class MomentDateModule {
|
|
|
278
278
|
}
|
|
279
279
|
i0.ɵɵngDeclareClassMetadata({
|
|
280
280
|
minVersion: "12.0.0",
|
|
281
|
-
version: "22.0.0-next.
|
|
281
|
+
version: "22.0.0-next.10",
|
|
282
282
|
ngImport: i0,
|
|
283
283
|
type: MomentDateModule,
|
|
284
284
|
decorators: [{
|
|
@@ -294,7 +294,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
294
294
|
class MatMomentDateModule {
|
|
295
295
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
296
296
|
minVersion: "12.0.0",
|
|
297
|
-
version: "22.0.0-next.
|
|
297
|
+
version: "22.0.0-next.10",
|
|
298
298
|
ngImport: i0,
|
|
299
299
|
type: MatMomentDateModule,
|
|
300
300
|
deps: [],
|
|
@@ -302,13 +302,13 @@ class MatMomentDateModule {
|
|
|
302
302
|
});
|
|
303
303
|
static ɵmod = i0.ɵɵngDeclareNgModule({
|
|
304
304
|
minVersion: "14.0.0",
|
|
305
|
-
version: "22.0.0-next.
|
|
305
|
+
version: "22.0.0-next.10",
|
|
306
306
|
ngImport: i0,
|
|
307
307
|
type: MatMomentDateModule
|
|
308
308
|
});
|
|
309
309
|
static ɵinj = i0.ɵɵngDeclareInjector({
|
|
310
310
|
minVersion: "12.0.0",
|
|
311
|
-
version: "22.0.0-next.
|
|
311
|
+
version: "22.0.0-next.10",
|
|
312
312
|
ngImport: i0,
|
|
313
313
|
type: MatMomentDateModule,
|
|
314
314
|
providers: [provideMomentDateAdapter()]
|
|
@@ -316,7 +316,7 @@ class MatMomentDateModule {
|
|
|
316
316
|
}
|
|
317
317
|
i0.ɵɵngDeclareClassMetadata({
|
|
318
318
|
minVersion: "12.0.0",
|
|
319
|
-
version: "22.0.0-next.
|
|
319
|
+
version: "22.0.0-next.10",
|
|
320
320
|
ngImport: i0,
|
|
321
321
|
type: MatMomentDateModule,
|
|
322
322
|
decorators: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"material-moment-adapter.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/material-moment-adapter/adapter/moment-date-adapter.ts","../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/material-moment-adapter/adapter/moment-date-formats.ts","../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/material-moment-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 {Service, InjectionToken, inject} from '@angular/core';\nimport {DateAdapter, MAT_DATE_LOCALE} from '@angular/material/core';\n// Depending on whether rollup is used, moment needs to be imported differently.\n// Since Moment.js doesn't have a default export, we normally need to import using the `* as`\n// syntax. However, rollup creates a synthetic default module and we thus need to import it using\n// the `default as` syntax.\n// TODO(mmalerba): See if we can clean this up at some point.\nimport * as _moment from 'moment';\n// tslint:disable-next-line:no-duplicate-imports\nimport {default as _rollupMoment, Moment, MomentFormatSpecification, MomentInput} from 'moment';\n\nconst moment = _rollupMoment || _moment;\n\n/** Configurable options for MomentDateAdapter. */\nexport interface MatMomentDateAdapterOptions {\n /**\n * When enabled, the dates have to match the format exactly.\n * See https://momentjs.com/guides/#/parsing/strict-mode/.\n */\n strict?: boolean;\n\n /**\n * Turns the use of utc dates on or off.\n * Changing this will change how Angular Material components like DatePicker output dates.\n * Defaults to `false`.\n */\n useUtc?: boolean;\n}\n\n/** InjectionToken for moment date adapter to configure options. */\nexport const MAT_MOMENT_DATE_ADAPTER_OPTIONS = new InjectionToken<MatMomentDateAdapterOptions>(\n 'MAT_MOMENT_DATE_ADAPTER_OPTIONS',\n {\n providedIn: 'root',\n factory: () => ({useUtc: false}),\n },\n);\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/** Adapts Moment.js Dates for use with Angular Material. */\n@Service({autoProvided: false})\nexport class MomentDateAdapter extends DateAdapter<Moment> {\n private _options = inject<MatMomentDateAdapterOptions>(MAT_MOMENT_DATE_ADAPTER_OPTIONS, {\n optional: true,\n });\n\n // Note: all of the methods that accept a `Moment` input parameter immediately call `this.clone`\n // on it. This is to ensure that we're working with a `Moment` that has the correct locale setting\n // while avoiding mutating the original object passed to us. Just calling `.locale(...)` on the\n // input would mutate the object.\n\n private _localeData!: {\n firstDayOfWeek: number;\n longMonths: string[];\n shortMonths: string[];\n dates: string[];\n longDaysOfWeek: string[];\n shortDaysOfWeek: string[];\n narrowDaysOfWeek: string[];\n };\n\n constructor() {\n super();\n const dateLocale = inject<string>(MAT_DATE_LOCALE, {optional: true});\n this.setLocale(dateLocale || moment.locale());\n }\n\n override setLocale(locale: string) {\n super.setLocale(locale);\n\n let momentLocaleData = moment.localeData(locale);\n this._localeData = {\n firstDayOfWeek: momentLocaleData.firstDayOfWeek(),\n longMonths: momentLocaleData.months(),\n shortMonths: momentLocaleData.monthsShort(),\n dates: range(31, i => this.createDate(2017, 0, i + 1).format('D')),\n longDaysOfWeek: momentLocaleData.weekdays(),\n shortDaysOfWeek: momentLocaleData.weekdaysShort(),\n narrowDaysOfWeek: momentLocaleData.weekdaysMin(),\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 getDate(date: Moment): number {\n return this.clone(date).date();\n }\n\n getDayOfWeek(date: Moment): number {\n return this.clone(date).day();\n }\n\n getMonthNames(style: 'long' | 'short' | 'narrow'): string[] {\n // Moment.js doesn't support narrow month names, so we just use short if narrow is requested.\n return style == 'long' ? this._localeData.longMonths : this._localeData.shortMonths;\n }\n\n getDateNames(): string[] {\n return this._localeData.dates;\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 getYearName(date: Moment): string {\n return this.clone(date).format('YYYY');\n }\n\n getFirstDayOfWeek(): number {\n return this._localeData.firstDayOfWeek;\n }\n\n getNumDaysInMonth(date: Moment): number {\n return this.clone(date).daysInMonth();\n }\n\n clone(date: Moment): Moment {\n return date.clone().locale(this.locale);\n }\n\n createDate(year: number, month: number, date: number): Moment {\n // Moment.js will create an invalid date if any of the components are out of bounds, but we\n // explicitly check each case so we can throw more descriptive errors.\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\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 const result = this._createMoment({year, month, date}).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() && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw Error(`Invalid date \"${date}\" for month with index \"${month}\".`);\n }\n\n return result;\n }\n\n today(): Moment {\n return this._createMoment().locale(this.locale);\n }\n\n parse(value: unknown, parseFormat: string | string[]): Moment | null {\n if (value && typeof value == 'string') {\n return this._createMoment(value, parseFormat, this.locale);\n }\n return value ? this._createMoment(value).locale(this.locale) : null;\n }\n\n format(date: Moment, displayFormat: string): string {\n date = this.clone(date);\n if (!this.isValid(date) && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw Error('MomentDateAdapter: Cannot format invalid date.');\n }\n return date.format(displayFormat);\n }\n\n addCalendarYears(date: Moment, years: number): Moment {\n return this.clone(date).add({years});\n }\n\n addCalendarMonths(date: Moment, months: number): Moment {\n return this.clone(date).add({months});\n }\n\n addCalendarDays(date: Moment, days: number): Moment {\n return this.clone(date).add({days});\n }\n\n toIso8601(date: Moment): string {\n return this.clone(date).format();\n }\n\n /**\n * Returns the given value if given a valid Moment or null. 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 null. Returns an invalid date for all other values.\n */\n override deserialize(value: unknown): Moment | null {\n let date;\n if (value instanceof Date) {\n date = this._createMoment(value).locale(this.locale);\n } else if (this.isDateInstance(value)) {\n // Note: assumes that cloning also sets the correct locale.\n return this.clone(value);\n }\n if (typeof value === 'string') {\n if (!value) {\n return null;\n }\n date = this._createMoment(value, moment.ISO_8601).locale(this.locale);\n }\n if (date && this.isValid(date)) {\n return this._createMoment(date).locale(this.locale);\n }\n return super.deserialize(value);\n }\n\n isDateInstance(obj: unknown): obj is Moment {\n return moment.isMoment(obj);\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 override setTime(target: Moment, hours: number, minutes: number, seconds: number): Moment {\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 this.clone(target).set({hours, minutes, seconds, milliseconds: 0});\n }\n\n override getHours(date: Moment): number {\n return date.hours();\n }\n\n override getMinutes(date: Moment): number {\n return date.minutes();\n }\n\n override getSeconds(date: Moment): number {\n return date.seconds();\n }\n\n override parseTime(value: unknown, parseFormat: string | string[]): Moment | null {\n return this.parse(value, parseFormat);\n }\n\n override addSeconds(date: Moment, amount: number): Moment {\n return this.clone(date).add({seconds: amount});\n }\n\n /** Creates a Moment instance while respecting the current UTC settings. */\n private _createMoment(\n date?: MomentInput,\n format?: MomentFormatSpecification,\n locale?: string,\n ): Moment {\n const {strict, useUtc}: MatMomentDateAdapterOptions = this._options || {};\n\n return useUtc ? moment.utc(date, format, locale, strict) : moment(date, format, locale, strict);\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_MOMENT_DATE_FORMATS: MatDateFormats = {\n parse: {\n dateInput: 'l',\n timeInput: 'LT',\n },\n display: {\n dateInput: 'l',\n timeInput: 'LT',\n monthYearLabel: 'MMM YYYY',\n dateA11yLabel: 'LL',\n monthYearA11yLabel: 'MMMM YYYY',\n timeOptionLabel: 'LT',\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 {\n MAT_MOMENT_DATE_ADAPTER_OPTIONS,\n MatMomentDateAdapterOptions,\n MomentDateAdapter,\n} from './moment-date-adapter';\nimport {MAT_MOMENT_DATE_FORMATS} from './moment-date-formats';\n\nexport * from './moment-date-adapter';\nexport * from './moment-date-formats';\n\n@NgModule({\n providers: [\n {\n provide: DateAdapter,\n useClass: MomentDateAdapter,\n },\n ],\n})\nexport class MomentDateModule {}\n\n@NgModule({\n providers: [provideMomentDateAdapter()],\n})\nexport class MatMomentDateModule {}\n\nexport function provideMomentDateAdapter(\n formats: MatDateFormats = MAT_MOMENT_DATE_FORMATS,\n options?: MatMomentDateAdapterOptions,\n): Provider[] {\n const providers: Provider[] = [\n {\n provide: DateAdapter,\n useClass: MomentDateAdapter,\n },\n {provide: MAT_DATE_FORMATS, useValue: formats},\n ];\n\n if (options) {\n providers.push({provide: MAT_MOMENT_DATE_ADAPTER_OPTIONS, useValue: options});\n }\n\n return providers;\n}\n"],"names":["moment","_rollupMoment","_moment","MAT_MOMENT_DATE_ADAPTER_OPTIONS","InjectionToken","providedIn","factory","useUtc","range","length","valueFunction","valuesArray","Array","i","MomentDateAdapter","DateAdapter","_options","inject","optional","_localeData","constructor","dateLocale","MAT_DATE_LOCALE","setLocale","locale","momentLocaleData","localeData","firstDayOfWeek","longMonths","months","shortMonths","monthsShort","dates","createDate","format","longDaysOfWeek","weekdays","shortDaysOfWeek","weekdaysShort","narrowDaysOfWeek","weekdaysMin","getYear","date","clone","year","getMonth","month","getDate","getDayOfWeek","day","getMonthNames","style","getDateNames","getDayOfWeekNames","getYearName","getFirstDayOfWeek","getNumDaysInMonth","daysInMonth","ngDevMode","Error","result","_createMoment","isValid","today","parse","value","parseFormat","displayFormat","addCalendarYears","years","add","addCalendarMonths","addCalendarDays","days","toIso8601","deserialize","Date","isDateInstance","ISO_8601","obj","isMoment","invalid","setTime","target","hours","minutes","seconds","set","milliseconds","getHours","getMinutes","getSeconds","parseTime","addSeconds","amount","strict","utc","deps","i0","ɵɵFactoryTarget","Service","autoProvided","decorators","MAT_MOMENT_DATE_FORMATS","dateInput","timeInput","display","monthYearLabel","dateA11yLabel","monthYearA11yLabel","timeOptionLabel","MomentDateModule","NgModule","ɵinj","ɵɵngDeclareInjector","minVersion","version","ngImport","type","providers","provide","useClass","args","MatMomentDateModule","provideMomentDateAdapter","formats","options","MAT_DATE_FORMATS","useValue","push"],"mappings":";;;;;;AAmBA,MAAMA,MAAM,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mBAAA,CAAA;AAAAC,IAAAA,UAAA,EAAA,QAAA;AAAAC,IAAAA,OAAA,EAAA,eAAA;AAAAC,IAAAA,QAAA,EAAAnB,EAAA;AAAAoB,IAAAA,IAAA,EAAAK,mBAAmB;AAAAJ,IAAAA,SAAA,EAFnB,CAACK,wBAAwB,EAAE;AAAC,GAAA,CAAA;;;;;;QAE5BD,mBAAmB;AAAArB,EAAAA,UAAA,EAAA,CAAA;UAH/BU,QAAQ;AAACU,IAAAA,IAAA,EAAA,CAAA;AACRH,MAAAA,SAAS,EAAE,CAACK,wBAAwB,EAAE;KACvC;;;SAGeA,wBAAwBA,CACtCC,OAAA,GAA0BtB,uBAAuB,EACjDuB,OAAqC,EAAA;EAErC,MAAMP,SAAS,GAAe,CAC5B;AACEC,IAAAA,OAAO,EAAEzG,WAAW;AACpB0G,IAAAA,QAAQ,EAAE3G;AACX,GAAA,EACD;AAAC0G,IAAAA,OAAO,EAAEO,gBAAgB;AAAEC,IAAAA,QAAQ,EAAEH;AAAO,GAAC,CAC/C;AAED,EAAA,IAAIC,OAAO,EAAE;IACXP,SAAS,CAACU,IAAI,CAAC;AAACT,MAAAA,OAAO,EAAErH,+BAA+B;AAAE6H,MAAAA,QAAQ,EAAEF;AAAO,KAAC,CAAC;AAC/E,EAAA;AAEA,EAAA,OAAOP,SAAS;AAClB;;;;"}
|
|
1
|
+
{"version":3,"file":"material-moment-adapter.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/material-moment-adapter/adapter/moment-date-adapter.ts","../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/material-moment-adapter/adapter/moment-date-formats.ts","../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/material-moment-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 {Service, InjectionToken, inject} from '@angular/core';\nimport {DateAdapter, MAT_DATE_LOCALE} from '@angular/material/core';\n// Depending on whether rollup is used, moment needs to be imported differently.\n// Since Moment.js doesn't have a default export, we normally need to import using the `* as`\n// syntax. However, rollup creates a synthetic default module and we thus need to import it using\n// the `default as` syntax.\n// TODO(mmalerba): See if we can clean this up at some point.\nimport * as _moment from 'moment';\n// tslint:disable-next-line:no-duplicate-imports\nimport {default as _rollupMoment, Moment, MomentFormatSpecification, MomentInput} from 'moment';\n\nconst moment = _rollupMoment || _moment;\n\n/** Configurable options for MomentDateAdapter. */\nexport interface MatMomentDateAdapterOptions {\n /**\n * When enabled, the dates have to match the format exactly.\n * See https://momentjs.com/guides/#/parsing/strict-mode/.\n */\n strict?: boolean;\n\n /**\n * Turns the use of utc dates on or off.\n * Changing this will change how Angular Material components like DatePicker output dates.\n * Defaults to `false`.\n */\n useUtc?: boolean;\n}\n\n/** InjectionToken for moment date adapter to configure options. */\nexport const MAT_MOMENT_DATE_ADAPTER_OPTIONS = new InjectionToken<MatMomentDateAdapterOptions>(\n 'MAT_MOMENT_DATE_ADAPTER_OPTIONS',\n {\n providedIn: 'root',\n factory: () => ({useUtc: false}),\n },\n);\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/** Adapts Moment.js Dates for use with Angular Material. */\n@Service({autoProvided: false})\nexport class MomentDateAdapter extends DateAdapter<Moment> {\n private _options = inject<MatMomentDateAdapterOptions>(MAT_MOMENT_DATE_ADAPTER_OPTIONS, {\n optional: true,\n });\n\n // Note: all of the methods that accept a `Moment` input parameter immediately call `this.clone`\n // on it. This is to ensure that we're working with a `Moment` that has the correct locale setting\n // while avoiding mutating the original object passed to us. Just calling `.locale(...)` on the\n // input would mutate the object.\n\n private _localeData!: {\n firstDayOfWeek: number;\n longMonths: string[];\n shortMonths: string[];\n dates: string[];\n longDaysOfWeek: string[];\n shortDaysOfWeek: string[];\n narrowDaysOfWeek: string[];\n };\n\n constructor() {\n super();\n const dateLocale = inject<string>(MAT_DATE_LOCALE, {optional: true});\n this.setLocale(dateLocale || moment.locale());\n }\n\n override setLocale(locale: string) {\n super.setLocale(locale);\n\n let momentLocaleData = moment.localeData(locale);\n this._localeData = {\n firstDayOfWeek: momentLocaleData.firstDayOfWeek(),\n longMonths: momentLocaleData.months(),\n shortMonths: momentLocaleData.monthsShort(),\n dates: range(31, i => this.createDate(2017, 0, i + 1).format('D')),\n longDaysOfWeek: momentLocaleData.weekdays(),\n shortDaysOfWeek: momentLocaleData.weekdaysShort(),\n narrowDaysOfWeek: momentLocaleData.weekdaysMin(),\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 getDate(date: Moment): number {\n return this.clone(date).date();\n }\n\n getDayOfWeek(date: Moment): number {\n return this.clone(date).day();\n }\n\n getMonthNames(style: 'long' | 'short' | 'narrow'): string[] {\n // Moment.js doesn't support narrow month names, so we just use short if narrow is requested.\n return style == 'long' ? this._localeData.longMonths : this._localeData.shortMonths;\n }\n\n getDateNames(): string[] {\n return this._localeData.dates;\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 getYearName(date: Moment): string {\n return this.clone(date).format('YYYY');\n }\n\n getFirstDayOfWeek(): number {\n return this._localeData.firstDayOfWeek;\n }\n\n getNumDaysInMonth(date: Moment): number {\n return this.clone(date).daysInMonth();\n }\n\n clone(date: Moment): Moment {\n return date.clone().locale(this.locale);\n }\n\n createDate(year: number, month: number, date: number): Moment {\n // Moment.js will create an invalid date if any of the components are out of bounds, but we\n // explicitly check each case so we can throw more descriptive errors.\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\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 const result = this._createMoment({year, month, date}).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() && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw Error(`Invalid date \"${date}\" for month with index \"${month}\".`);\n }\n\n return result;\n }\n\n today(): Moment {\n return this._createMoment().locale(this.locale);\n }\n\n parse(value: unknown, parseFormat: string | string[]): Moment | null {\n if (value && typeof value == 'string') {\n return this._createMoment(value, parseFormat, this.locale);\n }\n return value ? this._createMoment(value).locale(this.locale) : null;\n }\n\n format(date: Moment, displayFormat: string): string {\n date = this.clone(date);\n if (!this.isValid(date) && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw Error('MomentDateAdapter: Cannot format invalid date.');\n }\n return date.format(displayFormat);\n }\n\n addCalendarYears(date: Moment, years: number): Moment {\n return this.clone(date).add({years});\n }\n\n addCalendarMonths(date: Moment, months: number): Moment {\n return this.clone(date).add({months});\n }\n\n addCalendarDays(date: Moment, days: number): Moment {\n return this.clone(date).add({days});\n }\n\n toIso8601(date: Moment): string {\n return this.clone(date).format();\n }\n\n /**\n * Returns the given value if given a valid Moment or null. 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 null. Returns an invalid date for all other values.\n */\n override deserialize(value: unknown): Moment | null {\n let date;\n if (value instanceof Date) {\n date = this._createMoment(value).locale(this.locale);\n } else if (this.isDateInstance(value)) {\n // Note: assumes that cloning also sets the correct locale.\n return this.clone(value);\n }\n if (typeof value === 'string') {\n if (!value) {\n return null;\n }\n date = this._createMoment(value, moment.ISO_8601).locale(this.locale);\n }\n if (date && this.isValid(date)) {\n return this._createMoment(date).locale(this.locale);\n }\n return super.deserialize(value);\n }\n\n isDateInstance(obj: unknown): obj is Moment {\n return moment.isMoment(obj);\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 override setTime(target: Moment, hours: number, minutes: number, seconds: number): Moment {\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 this.clone(target).set({hours, minutes, seconds, milliseconds: 0});\n }\n\n override getHours(date: Moment): number {\n return date.hours();\n }\n\n override getMinutes(date: Moment): number {\n return date.minutes();\n }\n\n override getSeconds(date: Moment): number {\n return date.seconds();\n }\n\n override parseTime(value: unknown, parseFormat: string | string[]): Moment | null {\n return this.parse(value, parseFormat);\n }\n\n override addSeconds(date: Moment, amount: number): Moment {\n return this.clone(date).add({seconds: amount});\n }\n\n /** Creates a Moment instance while respecting the current UTC settings. */\n private _createMoment(\n date?: MomentInput,\n format?: MomentFormatSpecification,\n locale?: string,\n ): Moment {\n const {strict, useUtc}: MatMomentDateAdapterOptions = this._options || {};\n\n return useUtc ? moment.utc(date, format, locale, strict) : moment(date, format, locale, strict);\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_MOMENT_DATE_FORMATS: MatDateFormats = {\n parse: {\n dateInput: 'l',\n timeInput: 'LT',\n },\n display: {\n dateInput: 'l',\n timeInput: 'LT',\n monthYearLabel: 'MMM YYYY',\n dateA11yLabel: 'LL',\n monthYearA11yLabel: 'MMMM YYYY',\n timeOptionLabel: 'LT',\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 {\n MAT_MOMENT_DATE_ADAPTER_OPTIONS,\n MatMomentDateAdapterOptions,\n MomentDateAdapter,\n} from './moment-date-adapter';\nimport {MAT_MOMENT_DATE_FORMATS} from './moment-date-formats';\n\nexport * from './moment-date-adapter';\nexport * from './moment-date-formats';\n\n@NgModule({\n providers: [\n {\n provide: DateAdapter,\n useClass: MomentDateAdapter,\n },\n ],\n})\nexport class MomentDateModule {}\n\n@NgModule({\n providers: [provideMomentDateAdapter()],\n})\nexport class MatMomentDateModule {}\n\nexport function provideMomentDateAdapter(\n formats: MatDateFormats = MAT_MOMENT_DATE_FORMATS,\n options?: MatMomentDateAdapterOptions,\n): Provider[] {\n const providers: Provider[] = [\n {\n provide: DateAdapter,\n useClass: MomentDateAdapter,\n },\n {provide: MAT_DATE_FORMATS, useValue: formats},\n ];\n\n if (options) {\n providers.push({provide: MAT_MOMENT_DATE_ADAPTER_OPTIONS, useValue: options});\n }\n\n return providers;\n}\n"],"names":["moment","_rollupMoment","_moment","MAT_MOMENT_DATE_ADAPTER_OPTIONS","InjectionToken","providedIn","factory","useUtc","range","length","valueFunction","valuesArray","Array","i","MomentDateAdapter","DateAdapter","_options","inject","optional","_localeData","constructor","dateLocale","MAT_DATE_LOCALE","setLocale","locale","momentLocaleData","localeData","firstDayOfWeek","longMonths","months","shortMonths","monthsShort","dates","createDate","format","longDaysOfWeek","weekdays","shortDaysOfWeek","weekdaysShort","narrowDaysOfWeek","weekdaysMin","getYear","date","clone","year","getMonth","month","getDate","getDayOfWeek","day","getMonthNames","style","getDateNames","getDayOfWeekNames","getYearName","getFirstDayOfWeek","getNumDaysInMonth","daysInMonth","ngDevMode","Error","result","_createMoment","isValid","today","parse","value","parseFormat","displayFormat","addCalendarYears","years","add","addCalendarMonths","addCalendarDays","days","toIso8601","deserialize","Date","isDateInstance","ISO_8601","obj","isMoment","invalid","setTime","target","hours","minutes","seconds","set","milliseconds","getHours","getMinutes","getSeconds","parseTime","addSeconds","amount","strict","utc","deps","i0","ɵɵFactoryTarget","Service","autoProvided","decorators","MAT_MOMENT_DATE_FORMATS","dateInput","timeInput","display","monthYearLabel","dateA11yLabel","monthYearA11yLabel","timeOptionLabel","MomentDateModule","NgModule","ɵinj","ɵɵngDeclareInjector","minVersion","version","ngImport","type","providers","provide","useClass","args","MatMomentDateModule","provideMomentDateAdapter","formats","options","MAT_DATE_FORMATS","useValue","push"],"mappings":";;;;;;AAmBA,MAAMA,MAAM,GAAGC,sBAAa,IAAIC,aAAO;MAmB1BC,+BAA+B,GAAG,IAAIC,cAAc,CAC/D,iCAAiC,EACjC;AACEC,EAAAA,UAAU,EAAE,MAAM;EAClBC,OAAO,EAAEA,OAAO;AAACC,IAAAA,MAAM,EAAE;GAAM;AAChC,CAAA;AAIH,SAASC,KAAKA,CAAIC,MAAc,EAAEC,aAAmC,EAAA;AACnE,EAAA,MAAMC,WAAW,GAAGC,KAAK,CAACH,MAAM,CAAC;EACjC,KAAK,IAAII,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGJ,MAAM,EAAEI,CAAC,EAAE,EAAE;AAC/BF,IAAAA,WAAW,CAACE,CAAC,CAAC,GAAGH,aAAa,CAACG,CAAC,CAAC;AACnC,EAAA;AACA,EAAA,OAAOF,WAAW;AACpB;AAIM,MAAOG,iBAAkB,SAAQC,WAAmB,CAAA;AAChDC,EAAAA,QAAQ,GAAGC,MAAM,CAA8Bd,+BAA+B,EAAE;AACtFe,IAAAA,QAAQ,EAAE;AACX,GAAA,CAAC;EAOMC,WAAW;AAUnBC,EAAAA,WAAAA,GAAA;AACE,IAAA,KAAK,EAAE;AACP,IAAA,MAAMC,UAAU,GAAGJ,MAAM,CAASK,eAAe,EAAE;AAACJ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AAO,KAAC,CAAC;AAC/E,EAAA;AAEA,EAAA,OAAOP,SAAS;AAClB;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/material-moment-adapter",
|
|
3
|
-
"version": "22.0.0-next.
|
|
3
|
+
"version": "22.0.0-next.8",
|
|
4
4
|
"description": "Angular Material Moment 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": "22.0.0-next.
|
|
15
|
+
"@angular/material": "22.0.0-next.8",
|
|
16
16
|
"@angular/core": "^22.0.0-0 || ^22.1.0-0 || ^22.2.0-0 || ^22.3.0-0 || ^23.0.0-0",
|
|
17
17
|
"moment": "^2.18.1"
|
|
18
18
|
},
|