@codaline-io/ionic-datepicker
Advanced tools
Comparing version 0.0.13 to 0.0.14
@@ -47,2 +47,3 @@ 'use strict'; | ||
componentDidLoad() { | ||
const date = this.selectedDate ? new Date(this.selectedDate) : null; | ||
this.picker = window.datepicker(this.el, Object.assign({ | ||
@@ -53,3 +54,3 @@ alwaysShow: true, | ||
customOverlayMonths: ['Jan', 'Feb', 'Mär', 'Apr', 'Mai', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dez'], | ||
dateSelected: this.selectedDate ? new Date(this.selectedDate) : new Date(), | ||
dateSelected: date && date.getTime() <= new Date(this.max).getTime() && date.getTime() >= new Date(this.min).getTime() ? date : new Date(), | ||
maxDate: new Date(this.max), | ||
@@ -56,0 +57,0 @@ minDate: new Date(this.min), |
@@ -37,2 +37,3 @@ import { Component, h, Prop, Watch } from '@stencil/core'; | ||
componentDidLoad() { | ||
const date = this.selectedDate ? new Date(this.selectedDate) : null; | ||
this.picker = window.datepicker(this.el, Object.assign({ | ||
@@ -43,3 +44,3 @@ alwaysShow: true, | ||
customOverlayMonths: ['Jan', 'Feb', 'Mär', 'Apr', 'Mai', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dez'], | ||
dateSelected: this.selectedDate ? new Date(this.selectedDate) : new Date(), | ||
dateSelected: date && date.getTime() <= new Date(this.max).getTime() && date.getTime() >= new Date(this.min).getTime() ? date : new Date(), | ||
maxDate: new Date(this.max), | ||
@@ -46,0 +47,0 @@ minDate: new Date(this.min), |
@@ -43,2 +43,3 @@ import { r as registerInstance, h } from './index-f3e464ac.js'; | ||
componentDidLoad() { | ||
const date = this.selectedDate ? new Date(this.selectedDate) : null; | ||
this.picker = window.datepicker(this.el, Object.assign({ | ||
@@ -49,3 +50,3 @@ alwaysShow: true, | ||
customOverlayMonths: ['Jan', 'Feb', 'Mär', 'Apr', 'Mai', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dez'], | ||
dateSelected: this.selectedDate ? new Date(this.selectedDate) : new Date(), | ||
dateSelected: date && date.getTime() <= new Date(this.max).getTime() && date.getTime() >= new Date(this.min).getTime() ? date : new Date(), | ||
maxDate: new Date(this.max), | ||
@@ -52,0 +53,0 @@ minDate: new Date(this.min), |
@@ -43,2 +43,3 @@ import { r as registerInstance, h } from './index-f3e464ac.js'; | ||
componentDidLoad() { | ||
const date = this.selectedDate ? new Date(this.selectedDate) : null; | ||
this.picker = window.datepicker(this.el, Object.assign({ | ||
@@ -49,3 +50,3 @@ alwaysShow: true, | ||
customOverlayMonths: ['Jan', 'Feb', 'Mär', 'Apr', 'Mai', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dez'], | ||
dateSelected: this.selectedDate ? new Date(this.selectedDate) : new Date(), | ||
dateSelected: date && date.getTime() <= new Date(this.max).getTime() && date.getTime() >= new Date(this.min).getTime() ? date : new Date(), | ||
maxDate: new Date(this.max), | ||
@@ -52,0 +53,0 @@ minDate: new Date(this.min), |
@@ -1,1 +0,1 @@ | ||
import{p as e,b as a}from"./p-a9232c04.js";e().then(e=>a([["p-aaa74b2c",[[1,"ionic-datepicker",{displayFormat:[1,"display-format"],disabled:[4],pickerOptions:[16],defaultDate:[1,"default-date"],placeholder:[1],nativeOnMobile:[4,"native-on-mobile"],max:[8],min:[8],required:[4],error:[4],popoverOptions:[16],errorClass:[1,"error-class"],formattedDate:[32],date:[32]}]]],["p-06e7ecde",[[0,"ionic-datepicker-popover",{disabled:[4],pickerOptions:[16],selectedDate:[8,"selected-date"],max:[8],min:[8]}]]]],e)); | ||
import{p as e,b as a}from"./p-a9232c04.js";e().then(e=>a([["p-aaa74b2c",[[1,"ionic-datepicker",{displayFormat:[1,"display-format"],disabled:[4],pickerOptions:[16],defaultDate:[1,"default-date"],placeholder:[1],nativeOnMobile:[4,"native-on-mobile"],max:[8],min:[8],required:[4],error:[4],popoverOptions:[16],errorClass:[1,"error-class"],formattedDate:[32],date:[32]}]]],["p-c8fb4429",[[0,"ionic-datepicker-popover",{disabled:[4],pickerOptions:[16],selectedDate:[8,"selected-date"],max:[8],min:[8]}]]]],e)); |
@@ -1,1 +0,1 @@ | ||
System.register(["./p-6b312a4f.system.js"],(function(){"use strict";var e,t;return{setters:[function(r){e=r.p;t=r.b}],execute:function(){e().then(e=>t([["p-475cbe80.system",[[1,"ionic-datepicker",{displayFormat:[1,"display-format"],disabled:[4],pickerOptions:[16],defaultDate:[1,"default-date"],placeholder:[1],nativeOnMobile:[4,"native-on-mobile"],max:[8],min:[8],required:[4],error:[4],popoverOptions:[16],errorClass:[1,"error-class"],formattedDate:[32],date:[32]}]]],["p-205a774b.system",[[0,"ionic-datepicker-popover",{disabled:[4],pickerOptions:[16],selectedDate:[8,"selected-date"],max:[8],min:[8]}]]]],e))}}})); | ||
System.register(["./p-6b312a4f.system.js"],(function(){"use strict";var e,t;return{setters:[function(r){e=r.p;t=r.b}],execute:function(){e().then(e=>t([["p-475cbe80.system",[[1,"ionic-datepicker",{displayFormat:[1,"display-format"],disabled:[4],pickerOptions:[16],defaultDate:[1,"default-date"],placeholder:[1],nativeOnMobile:[4,"native-on-mobile"],max:[8],min:[8],required:[4],error:[4],popoverOptions:[16],errorClass:[1,"error-class"],formattedDate:[32],date:[32]}]]],["p-756c99ef.system",[[0,"ionic-datepicker-popover",{disabled:[4],pickerOptions:[16],selectedDate:[8,"selected-date"],max:[8],min:[8]}]]]],e))}}})); |
{ | ||
"name": "@codaline-io/ionic-datepicker", | ||
"version": "0.0.13", | ||
"version": "0.0.14", | ||
"description": "A datepicker component for ionic", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
766216
9789