wc-datepicker
Advanced tools
Comparing version 0.5.2 to 0.5.3
@@ -79,2 +79,3 @@ 'use strict'; | ||
const newDate = new Date(date); | ||
newDate.setDate(1); | ||
newDate.setMonth(newDate.getMonth() + 1); | ||
@@ -93,2 +94,3 @@ return newDate; | ||
const newDate = new Date(date); | ||
newDate.setDate(1); | ||
newDate.setMonth(newDate.getMonth() - 1); | ||
@@ -95,0 +97,0 @@ return newDate; |
@@ -73,2 +73,3 @@ export function addDays(date, days) { | ||
const newDate = new Date(date); | ||
newDate.setDate(1); | ||
newDate.setMonth(newDate.getMonth() + 1); | ||
@@ -87,2 +88,3 @@ return newDate; | ||
const newDate = new Date(date); | ||
newDate.setDate(1); | ||
newDate.setMonth(newDate.getMonth() - 1); | ||
@@ -89,0 +91,0 @@ return newDate; |
@@ -75,2 +75,3 @@ import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client'; | ||
const newDate = new Date(date); | ||
newDate.setDate(1); | ||
newDate.setMonth(newDate.getMonth() + 1); | ||
@@ -89,2 +90,3 @@ return newDate; | ||
const newDate = new Date(date); | ||
newDate.setDate(1); | ||
newDate.setMonth(newDate.getMonth() - 1); | ||
@@ -91,0 +93,0 @@ return newDate; |
@@ -75,2 +75,3 @@ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-2c898150.js'; | ||
const newDate = new Date(date); | ||
newDate.setDate(1); | ||
newDate.setMonth(newDate.getMonth() + 1); | ||
@@ -89,2 +90,3 @@ return newDate; | ||
const newDate = new Date(date); | ||
newDate.setDate(1); | ||
newDate.setMonth(newDate.getMonth() - 1); | ||
@@ -91,0 +93,0 @@ return newDate; |
@@ -1,1 +0,1 @@ | ||
import{p as t,b as e}from"./p-b662e034.js";(()=>{const e=import.meta.url,n={};return""!==e&&(n.resourcesUrl=new URL(".",e).href),t(n)})().then((t=>e([["p-fe08b63b",[[2,"wc-datepicker",{clearButtonContent:[1,"clear-button-content"],disabled:[4],disableDate:[16],elementClassName:[1,"element-class-name"],firstDayOfWeek:[2,"first-day-of-week"],range:[4],labels:[16],locale:[1],nextMonthButtonContent:[1,"next-month-button-content"],nextYearButtonContent:[1,"next-year-button-content"],previousMonthButtonContent:[1,"previous-month-button-content"],previousYearButtonContent:[1,"previous-year-button-content"],showClearButton:[4,"show-clear-button"],showMonthStepper:[4,"show-month-stepper"],showTodayButton:[4,"show-today-button"],showYearStepper:[4,"show-year-stepper"],startDate:[1,"start-date"],todayButtonContent:[1,"today-button-content"],value:[1040],currentDate:[32],hoveredDate:[32],weekdays:[32]}]]]],t))); | ||
import{p as t,b as e}from"./p-b662e034.js";(()=>{const e=import.meta.url,n={};return""!==e&&(n.resourcesUrl=new URL(".",e).href),t(n)})().then((t=>e([["p-9fa5a5c8",[[2,"wc-datepicker",{clearButtonContent:[1,"clear-button-content"],disabled:[4],disableDate:[16],elementClassName:[1,"element-class-name"],firstDayOfWeek:[2,"first-day-of-week"],range:[4],labels:[16],locale:[1],nextMonthButtonContent:[1,"next-month-button-content"],nextYearButtonContent:[1,"next-year-button-content"],previousMonthButtonContent:[1,"previous-month-button-content"],previousYearButtonContent:[1,"previous-year-button-content"],showClearButton:[4,"show-clear-button"],showMonthStepper:[4,"show-month-stepper"],showTodayButton:[4,"show-today-button"],showYearStepper:[4,"show-year-stepper"],startDate:[1,"start-date"],todayButtonContent:[1,"today-button-content"],value:[1040],currentDate:[32],hoveredDate:[32],weekdays:[32]}]]]],t))); |
{ | ||
"name": "wc-datepicker", | ||
"version": "0.5.2", | ||
"version": "0.5.3", | ||
"description": "A small, accessible and customizable datepicker written in TypeScript.", | ||
@@ -5,0 +5,0 @@ "repository": { |
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
454184
8191