@firestitch/datepicker
Advanced tools
Comparing version 0.3.7 to 0.3.8
@@ -64,9 +64,5 @@ "use strict"; | ||
FsDatePickDirective.prototype.writeValue = function (value) { | ||
if (value) { | ||
if (moment(value).isValid()) { | ||
value = moment(value); | ||
} | ||
else { | ||
value = null; | ||
} | ||
value = value || null; | ||
if (value && moment(value).isValid()) { | ||
value = moment(value); | ||
} | ||
@@ -73,0 +69,0 @@ if (this._model !== value) { |
@@ -1,1 +0,1 @@ | ||
[{"__symbolic":"module","version":4,"metadata":{"FsDatePickDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":10,"character":1},"arguments":[{"host":{"(input)":"onChangeInterceptor($event)","(click)":"inputClick($event)","(keyup)":"inputKeyup($event)","(blur)":"inputBlur($event)","$quoted$":["(input)","(click)","(keyup)","(blur)"]},"selector":"[fsDatePicker]","providers":[{"__symbolic":"reference","module":"./../value-accessors/fsdatepicker.value-accessor","name":"DATEPICKER_VALUE_ACCESSOR","line":18,"character":16}]}]}],"members":{"minYear":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":22,"character":5}}]}],"maxYear":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":23,"character":5}}]}],"minDate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":24,"character":5}}]}],"maxDate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":25,"character":5}}]}],"view":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":26,"character":5}}]}],"birthday":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":27,"character":5}}]}],"presets":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":28,"character":5}}]}],"change$":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":30,"character":5},"arguments":["change"]}]}],"registerOnChange":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":44,"character":9},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":44,"character":16}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":45,"character":9},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"Renderer2","line":45,"character":16}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":46,"character":9},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"ComponentFactoryResolver","line":46,"character":16}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":47,"character":9},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"ViewContainerRef","line":47,"character":16}]}],null,null],"parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":44,"character":49},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2","line":45,"character":45},null,null,{"__symbolic":"reference","module":"./../services/fsdatepickercommon.service","name":"FsDatePickerCommon","line":48,"character":36},{"__symbolic":"reference","module":"./../services/fsdatepickerfactory.service","name":"FsDatepickerFactory","line":49,"character":37}]}],"ngAfterViewInit":[{"__symbolic":"method"}],"onChangeInterceptor":[{"__symbolic":"method"}],"writeValue":[{"__symbolic":"method"}],"getValue":[{"__symbolic":"method"}],"open":[{"__symbolic":"method"}],"enableDefaultComponent":[{"__symbolic":"method"}],"inputClick":[{"__symbolic":"method"}],"inputKeyup":[{"__symbolic":"method"}],"inputBlur":[{"__symbolic":"method"}],"onFocus":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":152,"character":5},"arguments":["focus",["$event"]]}]}],"onWindowResize":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":159,"character":5},"arguments":["window:resize",["$event"]]}]}],"ngOnDestroy":[{"__symbolic":"method"}]}}}}] | ||
[{"__symbolic":"module","version":4,"metadata":{"FsDatePickDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":10,"character":1},"arguments":[{"host":{"(input)":"onChangeInterceptor($event)","(click)":"inputClick($event)","(keyup)":"inputKeyup($event)","(blur)":"inputBlur($event)","$quoted$":["(input)","(click)","(keyup)","(blur)"]},"selector":"[fsDatePicker]","providers":[{"__symbolic":"reference","module":"./../value-accessors/fsdatepicker.value-accessor","name":"DATEPICKER_VALUE_ACCESSOR","line":18,"character":16}]}]}],"members":{"minYear":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":22,"character":5}}]}],"maxYear":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":23,"character":5}}]}],"minDate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":24,"character":5}}]}],"maxDate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":25,"character":5}}]}],"view":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":26,"character":5}}]}],"birthday":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":27,"character":5}}]}],"presets":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":28,"character":5}}]}],"change$":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":30,"character":5},"arguments":["change"]}]}],"registerOnChange":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":44,"character":9},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":44,"character":16}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":45,"character":9},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"Renderer2","line":45,"character":16}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":46,"character":9},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"ComponentFactoryResolver","line":46,"character":16}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":47,"character":9},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"ViewContainerRef","line":47,"character":16}]}],null,null],"parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":44,"character":49},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2","line":45,"character":45},null,null,{"__symbolic":"reference","module":"./../services/fsdatepickercommon.service","name":"FsDatePickerCommon","line":48,"character":36},{"__symbolic":"reference","module":"./../services/fsdatepickerfactory.service","name":"FsDatepickerFactory","line":49,"character":37}]}],"ngAfterViewInit":[{"__symbolic":"method"}],"onChangeInterceptor":[{"__symbolic":"method"}],"writeValue":[{"__symbolic":"method"}],"getValue":[{"__symbolic":"method"}],"open":[{"__symbolic":"method"}],"enableDefaultComponent":[{"__symbolic":"method"}],"inputClick":[{"__symbolic":"method"}],"inputKeyup":[{"__symbolic":"method"}],"inputBlur":[{"__symbolic":"method"}],"onFocus":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":150,"character":5},"arguments":["focus",["$event"]]}]}],"onWindowResize":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":157,"character":5},"arguments":["window:resize",["$event"]]}]}],"ngOnDestroy":[{"__symbolic":"method"}]}}}}] |
{ | ||
"name": "@firestitch/datepicker", | ||
"version": "0.3.7", | ||
"version": "0.3.8", | ||
"repository": { | ||
@@ -5,0 +5,0 @@ "type": "git", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
1121853
8384