@angular/material-moment-adapter
Advanced tools
Comparing version 6.4.0 to 6.4.1
@@ -258,9 +258,3 @@ /** | ||
} | ||
var /** @type {?} */ result; | ||
if (this.options && this.options.useUtc) { | ||
result = moment.utc({ year: year, month: month, date: date }).locale(this.locale); | ||
} | ||
else { | ||
result = moment({ year: year, month: month, date: date }).locale(this.locale); | ||
} | ||
var /** @type {?} */ result = this._createMoment({ year: year, month: month, date: date }).locale(this.locale); | ||
// If the result isn't valid, the date must have been out of bounds for this month. | ||
@@ -279,3 +273,3 @@ if (!result.isValid()) { | ||
function () { | ||
return moment().locale(this.locale); | ||
return this._createMoment().locale(this.locale); | ||
}; | ||
@@ -294,5 +288,5 @@ /** | ||
if (value && typeof value == 'string') { | ||
return moment(value, parseFormat, this.locale); | ||
return this._createMoment(value, parseFormat, this.locale); | ||
} | ||
return value ? moment(value).locale(this.locale) : null; | ||
return value ? this._createMoment(value).locale(this.locale) : null; | ||
}; | ||
@@ -388,3 +382,3 @@ /** | ||
if (value instanceof Date) { | ||
date = moment(value); | ||
date = this._createMoment(value); | ||
} | ||
@@ -395,3 +389,3 @@ if (typeof value === 'string') { | ||
} | ||
date = moment(value, moment.ISO_8601).locale(this.locale); | ||
date = this._createMoment(value, moment.ISO_8601).locale(this.locale); | ||
} | ||
@@ -434,2 +428,19 @@ if (date && this.isValid(date)) { | ||
}; | ||
/** | ||
* Creates a Moment instance while respecting the current UTC settings. | ||
* @param {...?} args | ||
* @return {?} | ||
*/ | ||
MomentDateAdapter.prototype._createMoment = /** | ||
* Creates a Moment instance while respecting the current UTC settings. | ||
* @param {...?} args | ||
* @return {?} | ||
*/ | ||
function () { | ||
var args = []; | ||
for (var _i = 0; _i < arguments.length; _i++) { | ||
args[_i] = arguments[_i]; | ||
} | ||
return (this.options && this.options.useUtc) ? moment.utc.apply(moment, args) : moment.apply(void 0, args); | ||
}; | ||
MomentDateAdapter.decorators = [ | ||
@@ -436,0 +447,0 @@ { type: core.Injectable }, |
@@ -8,3 +8,3 @@ /** | ||
*/ | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/material"),require("moment")):"function"==typeof define&&define.amd?define("@angular/material-moment-adapter",["exports","@angular/core","@angular/material","moment"],e):e((t.ng=t.ng||{},t.ng["material-moment-adapter"]={}),t.ng.core,t.ng.material,t.moment)}(this,function(t,e,o,n){"use strict";function r(t,e){function o(){this.constructor=t}l(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}function a(){return{useUtc:!1}}function i(t,e){for(var o=Array(t),n=0;n<t;n++)o[n]=e(n);return o}var s=n.default,l=function(t,e){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},c=s||n,u=new e.InjectionToken("MAT_MOMENT_DATE_ADAPTER_OPTIONS",{providedIn:"root",factory:a}),p=function(t){function n(e,o){var n=t.call(this)||this;return n.options=o,n.setLocale(e||c.locale()),n}return r(n,t),n.prototype.setLocale=function(e){var o=this;t.prototype.setLocale.call(this,e);var n=c.localeData(e);this._localeData={firstDayOfWeek:n.firstDayOfWeek(),longMonths:n.months(),shortMonths:n.monthsShort(),dates:i(31,function(t){return o.createDate(2017,0,t+1).format("D")}),longDaysOfWeek:n.weekdays(),shortDaysOfWeek:n.weekdaysShort(),narrowDaysOfWeek:n.weekdaysMin()}},n.prototype.getYear=function(t){return this.clone(t).year()},n.prototype.getMonth=function(t){return this.clone(t).month()},n.prototype.getDate=function(t){return this.clone(t).date()},n.prototype.getDayOfWeek=function(t){return this.clone(t).day()},n.prototype.getMonthNames=function(t){return"long"==t?this._localeData.longMonths:this._localeData.shortMonths},n.prototype.getDateNames=function(){return this._localeData.dates},n.prototype.getDayOfWeekNames=function(t){return"long"==t?this._localeData.longDaysOfWeek:"short"==t?this._localeData.shortDaysOfWeek:this._localeData.narrowDaysOfWeek},n.prototype.getYearName=function(t){return this.clone(t).format("YYYY")},n.prototype.getFirstDayOfWeek=function(){return this._localeData.firstDayOfWeek},n.prototype.getNumDaysInMonth=function(t){return this.clone(t).daysInMonth()},n.prototype.clone=function(t){return t.clone().locale(this.locale)},n.prototype.createDate=function(t,e,o){if(e<0||e>11)throw Error('Invalid month index "'+e+'". Month index has to be between 0 and 11.');if(o<1)throw Error('Invalid date "'+o+'". Date has to be greater than 0.');var n;if(n=this.options&&this.options.useUtc?c.utc({year:t,month:e,date:o}).locale(this.locale):c({year:t,month:e,date:o}).locale(this.locale),!n.isValid())throw Error('Invalid date "'+o+'" for month with index "'+e+'".');return n},n.prototype.today=function(){return c().locale(this.locale)},n.prototype.parse=function(t,e){return t&&"string"==typeof t?c(t,e,this.locale):t?c(t).locale(this.locale):null},n.prototype.format=function(t,e){if(t=this.clone(t),!this.isValid(t))throw Error("MomentDateAdapter: Cannot format invalid date.");return t.format(e)},n.prototype.addCalendarYears=function(t,e){return this.clone(t).add({years:e})},n.prototype.addCalendarMonths=function(t,e){return this.clone(t).add({months:e})},n.prototype.addCalendarDays=function(t,e){return this.clone(t).add({days:e})},n.prototype.toIso8601=function(t){return this.clone(t).format()},n.prototype.deserialize=function(e){var o;if(e instanceof Date&&(o=c(e)),"string"==typeof e){if(!e)return null;o=c(e,c.ISO_8601).locale(this.locale)}return o&&this.isValid(o)?o:t.prototype.deserialize.call(this,e)},n.prototype.isDateInstance=function(t){return c.isMoment(t)},n.prototype.isValid=function(t){return this.clone(t).isValid()},n.prototype.invalid=function(){return c.invalid()},n.decorators=[{type:e.Injectable}],n.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[o.MAT_DATE_LOCALE]}]},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[u]}]}]},n}(o.DateAdapter),f={parse:{dateInput:"l"},display:{dateInput:"l",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}},d=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{providers:[{provide:o.DateAdapter,useClass:p,deps:[o.MAT_DATE_LOCALE,u]}]}]}],t}(),y=f,h=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[d],providers:[{provide:o.MAT_DATE_FORMATS,useValue:y}]}]}],t}();t.MomentDateModule=d,t.MatMomentDateModule=h,t.MAT_MOMENT_DATE_ADAPTER_OPTIONS=u,t.MAT_MOMENT_DATE_ADAPTER_OPTIONS_FACTORY=a,t.MomentDateAdapter=p,t.MAT_MOMENT_DATE_FORMATS=f,Object.defineProperty(t,"__esModule",{value:!0})}); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/material"),require("moment")):"function"==typeof define&&define.amd?define("@angular/material-moment-adapter",["exports","@angular/core","@angular/material","moment"],e):e((t.ng=t.ng||{},t.ng["material-moment-adapter"]={}),t.ng.core,t.ng.material,t.moment)}(this,function(t,e,o,r){"use strict";function n(t,e){function o(){this.constructor=t}l(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}function a(){return{useUtc:!1}}function i(t,e){for(var o=Array(t),r=0;r<t;r++)o[r]=e(r);return o}var s=r.default,l=function(t,e){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},c=s||r,p=new e.InjectionToken("MAT_MOMENT_DATE_ADAPTER_OPTIONS",{providedIn:"root",factory:a}),u=function(t){function r(e,o){var r=t.call(this)||this;return r.options=o,r.setLocale(e||c.locale()),r}return n(r,t),r.prototype.setLocale=function(e){var o=this;t.prototype.setLocale.call(this,e);var r=c.localeData(e);this._localeData={firstDayOfWeek:r.firstDayOfWeek(),longMonths:r.months(),shortMonths:r.monthsShort(),dates:i(31,function(t){return o.createDate(2017,0,t+1).format("D")}),longDaysOfWeek:r.weekdays(),shortDaysOfWeek:r.weekdaysShort(),narrowDaysOfWeek:r.weekdaysMin()}},r.prototype.getYear=function(t){return this.clone(t).year()},r.prototype.getMonth=function(t){return this.clone(t).month()},r.prototype.getDate=function(t){return this.clone(t).date()},r.prototype.getDayOfWeek=function(t){return this.clone(t).day()},r.prototype.getMonthNames=function(t){return"long"==t?this._localeData.longMonths:this._localeData.shortMonths},r.prototype.getDateNames=function(){return this._localeData.dates},r.prototype.getDayOfWeekNames=function(t){return"long"==t?this._localeData.longDaysOfWeek:"short"==t?this._localeData.shortDaysOfWeek:this._localeData.narrowDaysOfWeek},r.prototype.getYearName=function(t){return this.clone(t).format("YYYY")},r.prototype.getFirstDayOfWeek=function(){return this._localeData.firstDayOfWeek},r.prototype.getNumDaysInMonth=function(t){return this.clone(t).daysInMonth()},r.prototype.clone=function(t){return t.clone().locale(this.locale)},r.prototype.createDate=function(t,e,o){if(e<0||e>11)throw Error('Invalid month index "'+e+'". Month index has to be between 0 and 11.');if(o<1)throw Error('Invalid date "'+o+'". Date has to be greater than 0.');var r=this._createMoment({year:t,month:e,date:o}).locale(this.locale);if(!r.isValid())throw Error('Invalid date "'+o+'" for month with index "'+e+'".');return r},r.prototype.today=function(){return this._createMoment().locale(this.locale)},r.prototype.parse=function(t,e){return t&&"string"==typeof t?this._createMoment(t,e,this.locale):t?this._createMoment(t).locale(this.locale):null},r.prototype.format=function(t,e){if(t=this.clone(t),!this.isValid(t))throw Error("MomentDateAdapter: Cannot format invalid date.");return t.format(e)},r.prototype.addCalendarYears=function(t,e){return this.clone(t).add({years:e})},r.prototype.addCalendarMonths=function(t,e){return this.clone(t).add({months:e})},r.prototype.addCalendarDays=function(t,e){return this.clone(t).add({days:e})},r.prototype.toIso8601=function(t){return this.clone(t).format()},r.prototype.deserialize=function(e){var o;if(e instanceof Date&&(o=this._createMoment(e)),"string"==typeof e){if(!e)return null;o=this._createMoment(e,c.ISO_8601).locale(this.locale)}return o&&this.isValid(o)?o:t.prototype.deserialize.call(this,e)},r.prototype.isDateInstance=function(t){return c.isMoment(t)},r.prototype.isValid=function(t){return this.clone(t).isValid()},r.prototype.invalid=function(){return c.invalid()},r.prototype._createMoment=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return this.options&&this.options.useUtc?c.utc.apply(c,t):c.apply(void 0,t)},r.decorators=[{type:e.Injectable}],r.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[o.MAT_DATE_LOCALE]}]},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[p]}]}]},r}(o.DateAdapter),f={parse:{dateInput:"l"},display:{dateInput:"l",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}},d=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{providers:[{provide:o.DateAdapter,useClass:u,deps:[o.MAT_DATE_LOCALE,p]}]}]}],t}(),h=f,y=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[d],providers:[{provide:o.MAT_DATE_FORMATS,useValue:h}]}]}],t}();t.MomentDateModule=d,t.MatMomentDateModule=y,t.MAT_MOMENT_DATE_ADAPTER_OPTIONS=p,t.MAT_MOMENT_DATE_ADAPTER_OPTIONS_FACTORY=a,t.MomentDateAdapter=u,t.MAT_MOMENT_DATE_FORMATS=f,Object.defineProperty(t,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=material-moment-adapter.umd.min.js.map |
@@ -175,9 +175,3 @@ /** | ||
} | ||
let /** @type {?} */ result; | ||
if (this.options && this.options.useUtc) { | ||
result = moment.utc({ year, month, date }).locale(this.locale); | ||
} | ||
else { | ||
result = moment({ year, month, date }).locale(this.locale); | ||
} | ||
const /** @type {?} */ result = this._createMoment({ year, month, date }).locale(this.locale); | ||
// If the result isn't valid, the date must have been out of bounds for this month. | ||
@@ -193,3 +187,3 @@ if (!result.isValid()) { | ||
today() { | ||
return moment().locale(this.locale); | ||
return this._createMoment().locale(this.locale); | ||
} | ||
@@ -203,5 +197,5 @@ /** | ||
if (value && typeof value == 'string') { | ||
return moment(value, parseFormat, this.locale); | ||
return this._createMoment(value, parseFormat, this.locale); | ||
} | ||
return value ? moment(value).locale(this.locale) : null; | ||
return value ? this._createMoment(value).locale(this.locale) : null; | ||
} | ||
@@ -261,3 +255,3 @@ /** | ||
if (value instanceof Date) { | ||
date = moment(value); | ||
date = this._createMoment(value); | ||
} | ||
@@ -268,3 +262,3 @@ if (typeof value === 'string') { | ||
} | ||
date = moment(value, moment.ISO_8601).locale(this.locale); | ||
date = this._createMoment(value, moment.ISO_8601).locale(this.locale); | ||
} | ||
@@ -296,2 +290,10 @@ if (date && this.isValid(date)) { | ||
} | ||
/** | ||
* Creates a Moment instance while respecting the current UTC settings. | ||
* @param {...?} args | ||
* @return {?} | ||
*/ | ||
_createMoment(...args) { | ||
return (this.options && this.options.useUtc) ? moment.utc(...args) : moment(...args); | ||
} | ||
} | ||
@@ -298,0 +300,0 @@ MomentDateAdapter.decorators = [ |
@@ -227,9 +227,3 @@ /** | ||
} | ||
var /** @type {?} */ result; | ||
if (this.options && this.options.useUtc) { | ||
result = moment.utc({ year: year, month: month, date: date }).locale(this.locale); | ||
} | ||
else { | ||
result = moment({ year: year, month: month, date: date }).locale(this.locale); | ||
} | ||
var /** @type {?} */ result = this._createMoment({ year: year, month: month, date: date }).locale(this.locale); | ||
// If the result isn't valid, the date must have been out of bounds for this month. | ||
@@ -248,3 +242,3 @@ if (!result.isValid()) { | ||
function () { | ||
return moment().locale(this.locale); | ||
return this._createMoment().locale(this.locale); | ||
}; | ||
@@ -263,5 +257,5 @@ /** | ||
if (value && typeof value == 'string') { | ||
return moment(value, parseFormat, this.locale); | ||
return this._createMoment(value, parseFormat, this.locale); | ||
} | ||
return value ? moment(value).locale(this.locale) : null; | ||
return value ? this._createMoment(value).locale(this.locale) : null; | ||
}; | ||
@@ -357,3 +351,3 @@ /** | ||
if (value instanceof Date) { | ||
date = moment(value); | ||
date = this._createMoment(value); | ||
} | ||
@@ -364,3 +358,3 @@ if (typeof value === 'string') { | ||
} | ||
date = moment(value, moment.ISO_8601).locale(this.locale); | ||
date = this._createMoment(value, moment.ISO_8601).locale(this.locale); | ||
} | ||
@@ -403,2 +397,19 @@ if (date && this.isValid(date)) { | ||
}; | ||
/** | ||
* Creates a Moment instance while respecting the current UTC settings. | ||
* @param {...?} args | ||
* @return {?} | ||
*/ | ||
MomentDateAdapter.prototype._createMoment = /** | ||
* Creates a Moment instance while respecting the current UTC settings. | ||
* @param {...?} args | ||
* @return {?} | ||
*/ | ||
function () { | ||
var args = []; | ||
for (var _i = 0; _i < arguments.length; _i++) { | ||
args[_i] = arguments[_i]; | ||
} | ||
return (this.options && this.options.useUtc) ? moment.utc.apply(moment, args) : moment.apply(void 0, args); | ||
}; | ||
MomentDateAdapter.decorators = [ | ||
@@ -405,0 +416,0 @@ { type: Injectable }, |
{ | ||
"name": "@angular/material-moment-adapter", | ||
"version": "6.4.0", | ||
"version": "6.4.1", | ||
"description": "Angular Material Moment Adapter", | ||
@@ -19,3 +19,3 @@ "main": "./bundles/material-moment-adapter.umd.js", | ||
"peerDependencies": { | ||
"@angular/material": "6.4.0", | ||
"@angular/material": "6.4.1", | ||
"@angular/core": ">=6.0.0-beta.0 <7.0.0", | ||
@@ -22,0 +22,0 @@ "moment": "^2.18.1" |
@@ -58,2 +58,4 @@ /** | ||
invalid(): Moment; | ||
/** Creates a Moment instance while respecting the current UTC settings. */ | ||
private _createMoment(...args); | ||
} |
@@ -58,2 +58,4 @@ /** | ||
invalid(): Moment; | ||
/** Creates a Moment instance while respecting the current UTC settings. */ | ||
private _createMoment(...args); | ||
} |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":4,"metadata":{"MomentDateModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":24,"character":1},"arguments":[{"providers":[{"provide":{"__symbolic":"reference","module":"@angular/material","name":"DateAdapter","line":27,"character":15},"useClass":{"__symbolic":"reference","name":"MomentDateAdapter"},"deps":[{"__symbolic":"reference","module":"@angular/material","name":"MAT_DATE_LOCALE","line":29,"character":13},{"__symbolic":"reference","name":"MAT_MOMENT_DATE_ADAPTER_OPTIONS"}]}]}]}],"members":{}},"MatMomentDateModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":36,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","name":"MomentDateModule"}],"providers":[{"provide":{"__symbolic":"reference","module":"@angular/material","name":"MAT_DATE_FORMATS","line":38,"character":24},"useValue":{"__symbolic":"reference","name":"MAT_MOMENT_DATE_FORMATS"}}]}]}],"members":{}},"MatMomentDateAdapterOptions":{"__symbolic":"interface"},"MAT_MOMENT_DATE_ADAPTER_OPTIONS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":32,"character":51},"arguments":["MAT_MOMENT_DATE_ADAPTER_OPTIONS",{"providedIn":"root","factory":{"__symbolic":"reference","name":"MAT_MOMENT_DATE_ADAPTER_OPTIONS_FACTORY"}}]},"MAT_MOMENT_DATE_ADAPTER_OPTIONS_FACTORY":{"__symbolic":"function","parameters":[],"value":{"useUtc":false}},"MomentDateAdapter":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@angular/material","name":"DateAdapter","line":59,"character":39},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":58,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":75,"character":15}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":75,"character":27},"arguments":[{"__symbolic":"reference","module":"@angular/material","name":"MAT_DATE_LOCALE","line":75,"character":34}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":76,"character":5}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":76,"character":17},"arguments":[{"__symbolic":"reference","name":"MAT_MOMENT_DATE_ADAPTER_OPTIONS"}]}]],"parameters":[{"__symbolic":"reference","name":"string"},{"__symbolic":"reference","name":"any"}]}],"setLocale":[{"__symbolic":"method"}],"getYear":[{"__symbolic":"method"}],"getMonth":[{"__symbolic":"method"}],"getDate":[{"__symbolic":"method"}],"getDayOfWeek":[{"__symbolic":"method"}],"getMonthNames":[{"__symbolic":"method"}],"getDateNames":[{"__symbolic":"method"}],"getDayOfWeekNames":[{"__symbolic":"method"}],"getYearName":[{"__symbolic":"method"}],"getFirstDayOfWeek":[{"__symbolic":"method"}],"getNumDaysInMonth":[{"__symbolic":"method"}],"clone":[{"__symbolic":"method"}],"createDate":[{"__symbolic":"method"}],"today":[{"__symbolic":"method"}],"parse":[{"__symbolic":"method"}],"format":[{"__symbolic":"method"}],"addCalendarYears":[{"__symbolic":"method"}],"addCalendarMonths":[{"__symbolic":"method"}],"addCalendarDays":[{"__symbolic":"method"}],"toIso8601":[{"__symbolic":"method"}],"deserialize":[{"__symbolic":"method"}],"isDateInstance":[{"__symbolic":"method"}],"isValid":[{"__symbolic":"method"}],"invalid":[{"__symbolic":"method"}]}},"MAT_MOMENT_DATE_FORMATS":{"parse":{"dateInput":"l"},"display":{"dateInput":"l","monthYearLabel":"MMM YYYY","dateA11yLabel":"LL","monthYearA11yLabel":"MMMM YYYY"}}},"origins":{"MomentDateModule":"./adapter/index","MatMomentDateModule":"./adapter/index","MatMomentDateAdapterOptions":"./adapter/moment-date-adapter","MAT_MOMENT_DATE_ADAPTER_OPTIONS":"./adapter/moment-date-adapter","MAT_MOMENT_DATE_ADAPTER_OPTIONS_FACTORY":"./adapter/moment-date-adapter","MomentDateAdapter":"./adapter/moment-date-adapter","MAT_MOMENT_DATE_FORMATS":"./adapter/moment-date-formats"},"importAs":"@angular/material-moment-adapter"} | ||
{"__symbolic":"module","version":4,"metadata":{"MomentDateModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":24,"character":1},"arguments":[{"providers":[{"provide":{"__symbolic":"reference","module":"@angular/material","name":"DateAdapter","line":27,"character":15},"useClass":{"__symbolic":"reference","name":"MomentDateAdapter"},"deps":[{"__symbolic":"reference","module":"@angular/material","name":"MAT_DATE_LOCALE","line":29,"character":13},{"__symbolic":"reference","name":"MAT_MOMENT_DATE_ADAPTER_OPTIONS"}]}]}]}],"members":{}},"MatMomentDateModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":36,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","name":"MomentDateModule"}],"providers":[{"provide":{"__symbolic":"reference","module":"@angular/material","name":"MAT_DATE_FORMATS","line":38,"character":24},"useValue":{"__symbolic":"reference","name":"MAT_MOMENT_DATE_FORMATS"}}]}]}],"members":{}},"MatMomentDateAdapterOptions":{"__symbolic":"interface"},"MAT_MOMENT_DATE_ADAPTER_OPTIONS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":32,"character":51},"arguments":["MAT_MOMENT_DATE_ADAPTER_OPTIONS",{"providedIn":"root","factory":{"__symbolic":"reference","name":"MAT_MOMENT_DATE_ADAPTER_OPTIONS_FACTORY"}}]},"MAT_MOMENT_DATE_ADAPTER_OPTIONS_FACTORY":{"__symbolic":"function","parameters":[],"value":{"useUtc":false}},"MomentDateAdapter":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@angular/material","name":"DateAdapter","line":59,"character":39},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":58,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":75,"character":15}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":75,"character":27},"arguments":[{"__symbolic":"reference","module":"@angular/material","name":"MAT_DATE_LOCALE","line":75,"character":34}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":76,"character":5}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":76,"character":17},"arguments":[{"__symbolic":"reference","name":"MAT_MOMENT_DATE_ADAPTER_OPTIONS"}]}]],"parameters":[{"__symbolic":"reference","name":"string"},{"__symbolic":"reference","name":"any"}]}],"setLocale":[{"__symbolic":"method"}],"getYear":[{"__symbolic":"method"}],"getMonth":[{"__symbolic":"method"}],"getDate":[{"__symbolic":"method"}],"getDayOfWeek":[{"__symbolic":"method"}],"getMonthNames":[{"__symbolic":"method"}],"getDateNames":[{"__symbolic":"method"}],"getDayOfWeekNames":[{"__symbolic":"method"}],"getYearName":[{"__symbolic":"method"}],"getFirstDayOfWeek":[{"__symbolic":"method"}],"getNumDaysInMonth":[{"__symbolic":"method"}],"clone":[{"__symbolic":"method"}],"createDate":[{"__symbolic":"method"}],"today":[{"__symbolic":"method"}],"parse":[{"__symbolic":"method"}],"format":[{"__symbolic":"method"}],"addCalendarYears":[{"__symbolic":"method"}],"addCalendarMonths":[{"__symbolic":"method"}],"addCalendarDays":[{"__symbolic":"method"}],"toIso8601":[{"__symbolic":"method"}],"deserialize":[{"__symbolic":"method"}],"isDateInstance":[{"__symbolic":"method"}],"isValid":[{"__symbolic":"method"}],"invalid":[{"__symbolic":"method"}],"_createMoment":[{"__symbolic":"method"}]}},"MAT_MOMENT_DATE_FORMATS":{"parse":{"dateInput":"l"},"display":{"dateInput":"l","monthYearLabel":"MMM YYYY","dateA11yLabel":"LL","monthYearA11yLabel":"MMMM YYYY"}}},"origins":{"MomentDateModule":"./adapter/index","MatMomentDateModule":"./adapter/index","MatMomentDateAdapterOptions":"./adapter/moment-date-adapter","MAT_MOMENT_DATE_ADAPTER_OPTIONS":"./adapter/moment-date-adapter","MAT_MOMENT_DATE_ADAPTER_OPTIONS_FACTORY":"./adapter/moment-date-adapter","MomentDateAdapter":"./adapter/moment-date-adapter","MAT_MOMENT_DATE_FORMATS":"./adapter/moment-date-formats"},"importAs":"@angular/material-moment-adapter"} |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":4,"metadata":{"MomentDateModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":24,"character":1},"arguments":[{"providers":[{"provide":{"__symbolic":"reference","module":"@angular/material","name":"DateAdapter","line":27,"character":15},"useClass":{"__symbolic":"reference","name":"MomentDateAdapter"},"deps":[{"__symbolic":"reference","module":"@angular/material","name":"MAT_DATE_LOCALE","line":29,"character":13},{"__symbolic":"reference","name":"MAT_MOMENT_DATE_ADAPTER_OPTIONS"}]}]}]}],"members":{}},"MatMomentDateModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":36,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","name":"MomentDateModule"}],"providers":[{"provide":{"__symbolic":"reference","module":"@angular/material","name":"MAT_DATE_FORMATS","line":38,"character":24},"useValue":{"__symbolic":"reference","name":"MAT_MOMENT_DATE_FORMATS"}}]}]}],"members":{}},"MatMomentDateAdapterOptions":{"__symbolic":"interface"},"MAT_MOMENT_DATE_ADAPTER_OPTIONS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":32,"character":51},"arguments":["MAT_MOMENT_DATE_ADAPTER_OPTIONS",{"providedIn":"root","factory":{"__symbolic":"reference","name":"MAT_MOMENT_DATE_ADAPTER_OPTIONS_FACTORY"}}]},"MAT_MOMENT_DATE_ADAPTER_OPTIONS_FACTORY":{"__symbolic":"function","parameters":[],"value":{"useUtc":false}},"MomentDateAdapter":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@angular/material","name":"DateAdapter","line":59,"character":39},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":58,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":75,"character":15}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":75,"character":27},"arguments":[{"__symbolic":"reference","module":"@angular/material","name":"MAT_DATE_LOCALE","line":75,"character":34}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":76,"character":5}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":76,"character":17},"arguments":[{"__symbolic":"reference","name":"MAT_MOMENT_DATE_ADAPTER_OPTIONS"}]}]],"parameters":[{"__symbolic":"reference","name":"string"},{"__symbolic":"reference","name":"any"}]}],"setLocale":[{"__symbolic":"method"}],"getYear":[{"__symbolic":"method"}],"getMonth":[{"__symbolic":"method"}],"getDate":[{"__symbolic":"method"}],"getDayOfWeek":[{"__symbolic":"method"}],"getMonthNames":[{"__symbolic":"method"}],"getDateNames":[{"__symbolic":"method"}],"getDayOfWeekNames":[{"__symbolic":"method"}],"getYearName":[{"__symbolic":"method"}],"getFirstDayOfWeek":[{"__symbolic":"method"}],"getNumDaysInMonth":[{"__symbolic":"method"}],"clone":[{"__symbolic":"method"}],"createDate":[{"__symbolic":"method"}],"today":[{"__symbolic":"method"}],"parse":[{"__symbolic":"method"}],"format":[{"__symbolic":"method"}],"addCalendarYears":[{"__symbolic":"method"}],"addCalendarMonths":[{"__symbolic":"method"}],"addCalendarDays":[{"__symbolic":"method"}],"toIso8601":[{"__symbolic":"method"}],"deserialize":[{"__symbolic":"method"}],"isDateInstance":[{"__symbolic":"method"}],"isValid":[{"__symbolic":"method"}],"invalid":[{"__symbolic":"method"}]}},"MAT_MOMENT_DATE_FORMATS":{"parse":{"dateInput":"l"},"display":{"dateInput":"l","monthYearLabel":"MMM YYYY","dateA11yLabel":"LL","monthYearA11yLabel":"MMMM YYYY"}}},"origins":{"MomentDateModule":"./adapter/index","MatMomentDateModule":"./adapter/index","MatMomentDateAdapterOptions":"./adapter/moment-date-adapter","MAT_MOMENT_DATE_ADAPTER_OPTIONS":"./adapter/moment-date-adapter","MAT_MOMENT_DATE_ADAPTER_OPTIONS_FACTORY":"./adapter/moment-date-adapter","MomentDateAdapter":"./adapter/moment-date-adapter","MAT_MOMENT_DATE_FORMATS":"./adapter/moment-date-formats"},"importAs":"@angular/material-moment-adapter"} | ||
{"__symbolic":"module","version":4,"metadata":{"MomentDateModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":24,"character":1},"arguments":[{"providers":[{"provide":{"__symbolic":"reference","module":"@angular/material","name":"DateAdapter","line":27,"character":15},"useClass":{"__symbolic":"reference","name":"MomentDateAdapter"},"deps":[{"__symbolic":"reference","module":"@angular/material","name":"MAT_DATE_LOCALE","line":29,"character":13},{"__symbolic":"reference","name":"MAT_MOMENT_DATE_ADAPTER_OPTIONS"}]}]}]}],"members":{}},"MatMomentDateModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":36,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","name":"MomentDateModule"}],"providers":[{"provide":{"__symbolic":"reference","module":"@angular/material","name":"MAT_DATE_FORMATS","line":38,"character":24},"useValue":{"__symbolic":"reference","name":"MAT_MOMENT_DATE_FORMATS"}}]}]}],"members":{}},"MatMomentDateAdapterOptions":{"__symbolic":"interface"},"MAT_MOMENT_DATE_ADAPTER_OPTIONS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":32,"character":51},"arguments":["MAT_MOMENT_DATE_ADAPTER_OPTIONS",{"providedIn":"root","factory":{"__symbolic":"reference","name":"MAT_MOMENT_DATE_ADAPTER_OPTIONS_FACTORY"}}]},"MAT_MOMENT_DATE_ADAPTER_OPTIONS_FACTORY":{"__symbolic":"function","parameters":[],"value":{"useUtc":false}},"MomentDateAdapter":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@angular/material","name":"DateAdapter","line":59,"character":39},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":58,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":75,"character":15}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":75,"character":27},"arguments":[{"__symbolic":"reference","module":"@angular/material","name":"MAT_DATE_LOCALE","line":75,"character":34}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":76,"character":5}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":76,"character":17},"arguments":[{"__symbolic":"reference","name":"MAT_MOMENT_DATE_ADAPTER_OPTIONS"}]}]],"parameters":[{"__symbolic":"reference","name":"string"},{"__symbolic":"reference","name":"any"}]}],"setLocale":[{"__symbolic":"method"}],"getYear":[{"__symbolic":"method"}],"getMonth":[{"__symbolic":"method"}],"getDate":[{"__symbolic":"method"}],"getDayOfWeek":[{"__symbolic":"method"}],"getMonthNames":[{"__symbolic":"method"}],"getDateNames":[{"__symbolic":"method"}],"getDayOfWeekNames":[{"__symbolic":"method"}],"getYearName":[{"__symbolic":"method"}],"getFirstDayOfWeek":[{"__symbolic":"method"}],"getNumDaysInMonth":[{"__symbolic":"method"}],"clone":[{"__symbolic":"method"}],"createDate":[{"__symbolic":"method"}],"today":[{"__symbolic":"method"}],"parse":[{"__symbolic":"method"}],"format":[{"__symbolic":"method"}],"addCalendarYears":[{"__symbolic":"method"}],"addCalendarMonths":[{"__symbolic":"method"}],"addCalendarDays":[{"__symbolic":"method"}],"toIso8601":[{"__symbolic":"method"}],"deserialize":[{"__symbolic":"method"}],"isDateInstance":[{"__symbolic":"method"}],"isValid":[{"__symbolic":"method"}],"invalid":[{"__symbolic":"method"}],"_createMoment":[{"__symbolic":"method"}]}},"MAT_MOMENT_DATE_FORMATS":{"parse":{"dateInput":"l"},"display":{"dateInput":"l","monthYearLabel":"MMM YYYY","dateA11yLabel":"LL","monthYearA11yLabel":"MMMM YYYY"}}},"origins":{"MomentDateModule":"./adapter/index","MatMomentDateModule":"./adapter/index","MatMomentDateAdapterOptions":"./adapter/moment-date-adapter","MAT_MOMENT_DATE_ADAPTER_OPTIONS":"./adapter/moment-date-adapter","MAT_MOMENT_DATE_ADAPTER_OPTIONS_FACTORY":"./adapter/moment-date-adapter","MomentDateAdapter":"./adapter/moment-date-adapter","MAT_MOMENT_DATE_FORMATS":"./adapter/moment-date-formats"},"importAs":"@angular/material-moment-adapter"} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
146959
1543