Skip to content

Commit

Permalink
replace js with ts
Browse files Browse the repository at this point in the history
  • Loading branch information
uvarov-frontend committed Dec 1, 2023
1 parent 076c94f commit 135c331
Show file tree
Hide file tree
Showing 41 changed files with 79 additions and 79 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import VanillaCalendar from 'vanilla-calendar-pro';
import VanillaCalendar, { Options } from 'vanilla-calendar-pro';
import 'vanilla-calendar-pro/build/vanilla-calendar.min.css';

const options = {
const options: Options = {
settings: {
selection: {
time: true,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import VanillaCalendar from 'vanilla-calendar-pro';
import VanillaCalendar, { Options } from 'vanilla-calendar-pro';
import 'vanilla-calendar-pro/build/vanilla-calendar.min.css';

const options = {
const options: Options = {
settings: {
selection: {
day: 'multiple-ranged',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import VanillaCalendar from 'vanilla-calendar-pro';
import VanillaCalendar, { Options } from 'vanilla-calendar-pro';
import 'vanilla-calendar-pro/build/vanilla-calendar.min.css';

const options = {
const options: Options = {
actions: {
clickDay(event, dates) {
console.log(dates);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import VanillaCalendar from 'vanilla-calendar-pro';
import VanillaCalendar, { Options } from 'vanilla-calendar-pro';
import 'vanilla-calendar-pro/build/vanilla-calendar.min.css';

const options = {
const options: Options = {
type: 'month',
actions: {
clickMonth(e, month) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import VanillaCalendar from 'vanilla-calendar-pro';
import VanillaCalendar, { Options } from 'vanilla-calendar-pro';
import 'vanilla-calendar-pro/build/vanilla-calendar.min.css';

const options = {
const options: Options = {
actions: {
clickArrow(event, year, month) {
console.log(year, month);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import VanillaCalendar from 'vanilla-calendar-pro';
import VanillaCalendar, { Options } from 'vanilla-calendar-pro';
import 'vanilla-calendar-pro/build/vanilla-calendar.min.css';

const options = {
const options: Options = {
settings: {
selection: {
day: 'multiple-ranged',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import VanillaCalendar from 'vanilla-calendar-pro';
import VanillaCalendar, { Options } from 'vanilla-calendar-pro';
import 'vanilla-calendar-pro/build/vanilla-calendar.min.css';

const options = {
const options: Options = {
settings: {
visibility: {
weekNumbers: true,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import VanillaCalendar from 'vanilla-calendar-pro';
import VanillaCalendar, { Options } from 'vanilla-calendar-pro';
import 'vanilla-calendar-pro/build/vanilla-calendar.min.css';

const options = {
const options: Options = {
type: 'year',
actions: {
clickYear(event, year) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import VanillaCalendar from 'vanilla-calendar-pro';
import VanillaCalendar, { Options } from 'vanilla-calendar-pro';
import 'vanilla-calendar-pro/build/vanilla-calendar.min.css';

const options = {
const options: Options = {
actions: {
getDays(day, date, HTMLElement, HTMLButtonElement) {
const randomBoolean = Math.random() < 0.5;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import VanillaCalendar from 'vanilla-calendar-pro';
import VanillaCalendar, { Options } from 'vanilla-calendar-pro';
import 'vanilla-calendar-pro/build/vanilla-calendar.min.css';

// start irrelevant code
document.querySelector('#calendar-input-div').style.display = 'flex';
// end irrelevant code

const options = {
const options: Options = {
input: true,
actions: {
changeToInput(e, calendar, dates, time, hours, minutes, keeping) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import VanillaCalendar from 'vanilla-calendar-pro';
import VanillaCalendar, { Options } from 'vanilla-calendar-pro';
import 'vanilla-calendar-pro/build/vanilla-calendar.min.css';

// start irrelevant code
document.querySelector('#calendar-input').style.display = 'flex';
// end irrelevant code

const options = {
const options: Options = {
input: true,
type: 'multiple',
settings: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import VanillaCalendar from 'vanilla-calendar-pro';
import VanillaCalendar, { Options } from 'vanilla-calendar-pro';
import 'vanilla-calendar-pro/build/vanilla-calendar.min.css';

// start irrelevant code
document.querySelector('#calendar-input').style.display = 'flex';
// end irrelevant code

const options = {
const options: Options = {
input: true,
actions: {
changeToInput(e, calendar, dates, time, hours, minutes, keeping) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import VanillaCalendar from 'vanilla-calendar-pro';
import VanillaCalendar, { Options } from 'vanilla-calendar-pro';
import 'vanilla-calendar-pro/build/vanilla-calendar.min.css';

const options = {
const options: Options = {
settings: {
selection: {
time: true, // or 12
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import VanillaCalendar from 'vanilla-calendar-pro';
import VanillaCalendar, { Options } from 'vanilla-calendar-pro';
import 'vanilla-calendar-pro/build/vanilla-calendar.min.css';

const options = {
const options: Options = {
settings: {
selection: {
time: 24,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import VanillaCalendar from 'vanilla-calendar-pro';
import VanillaCalendar, { Options } from 'vanilla-calendar-pro';
import 'vanilla-calendar-pro/build/vanilla-calendar.min.css';

const options = {
const options: Options = {
settings: {
selection: {
time: true,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import VanillaCalendar from 'vanilla-calendar-pro';
import VanillaCalendar, { Options } from 'vanilla-calendar-pro';
import 'vanilla-calendar-pro/build/vanilla-calendar.min.css';

const options = {
const options: Options = {
settings: {
selection: {
time: true,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import VanillaCalendar from 'vanilla-calendar-pro';
import VanillaCalendar, { Options } from 'vanilla-calendar-pro';
import 'vanilla-calendar-pro/build/vanilla-calendar.min.css';

const options = {
const options: Options = {
CSSClasses: {
arrow: 'arrow-smile',
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import VanillaCalendar from 'vanilla-calendar-pro';
import VanillaCalendar, { Options } from 'vanilla-calendar-pro';
import 'vanilla-calendar-pro/build/vanilla-calendar.min.css';

const options = {
const options: Options = {
settings: {
selected: {
month: 6,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import VanillaCalendar from 'vanilla-calendar-pro';
import VanillaCalendar, { Options } from 'vanilla-calendar-pro';
import 'vanilla-calendar-pro/build/vanilla-calendar.min.css';

const options = {
const options: Options = {
DOMTemplates: {
default: `
<div class="vanilla-calendar-header">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import VanillaCalendar from 'vanilla-calendar-pro';
import VanillaCalendar, { Options } from 'vanilla-calendar-pro';
import 'vanilla-calendar-pro/build/vanilla-calendar.min.css';

const options = {
const options: Options = {
settings: {
visibility: {
theme: 'dark',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import VanillaCalendar from 'vanilla-calendar-pro';
import VanillaCalendar, { Options } from 'vanilla-calendar-pro';
import 'vanilla-calendar-pro/build/vanilla-calendar.min.css';

const options = {
const options: Options = {
settings: {
visibility: {
theme: 'light',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import VanillaCalendar from 'vanilla-calendar-pro';
import VanillaCalendar, { Options } from 'vanilla-calendar-pro';
import 'vanilla-calendar-pro/build/vanilla-calendar.min.css';

const options = {
const options: Options = {
settings: {
selection: {
day: false,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import VanillaCalendar from 'vanilla-calendar-pro';
import VanillaCalendar, { Options } from 'vanilla-calendar-pro';
import 'vanilla-calendar-pro/build/vanilla-calendar.min.css';

const options = {
const options: Options = {
settings: {
visibility: {
weekend: false,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import VanillaCalendar from 'vanilla-calendar-pro';
import VanillaCalendar, { Options } from 'vanilla-calendar-pro';
import 'vanilla-calendar-pro/build/vanilla-calendar.min.css';

const options = {
const options: Options = {
date: {
today: new Date('2022-01-07'),
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import VanillaCalendar from 'vanilla-calendar-pro';
import VanillaCalendar, { Options } from 'vanilla-calendar-pro';
import 'vanilla-calendar-pro/build/vanilla-calendar.min.css';

const options = {
const options: Options = {
settings: {
selection: {
day: 'multiple',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import VanillaCalendar from 'vanilla-calendar-pro';
import VanillaCalendar, { Options } from 'vanilla-calendar-pro';
import 'vanilla-calendar-pro/build/vanilla-calendar.min.css';

const options = {
const options: Options = {
settings: {
selected: {
month: 0,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import VanillaCalendar from 'vanilla-calendar-pro';
import VanillaCalendar, { Options } from 'vanilla-calendar-pro';
import 'vanilla-calendar-pro/build/vanilla-calendar.min.css';

const options = {
const options: Options = {
settings: {
range: {
min: '2022-07-01',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import VanillaCalendar from 'vanilla-calendar-pro';
import VanillaCalendar, { Options } from 'vanilla-calendar-pro';
import 'vanilla-calendar-pro/build/vanilla-calendar.min.css';

const options = {
const options: Options = {
settings: {
range: {
disableAllDays: true,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import VanillaCalendar from 'vanilla-calendar-pro';
import VanillaCalendar, { Options } from 'vanilla-calendar-pro';
import 'vanilla-calendar-pro/build/vanilla-calendar.min.css';

const options = {
const options: Options = {
date: {
min: '1920-01-01',
max: '2038-12-31',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import VanillaCalendar from 'vanilla-calendar-pro';
import VanillaCalendar, { Options } from 'vanilla-calendar-pro';
import 'vanilla-calendar-pro/build/vanilla-calendar.min.css';

const options = {
const options: Options = {
date: {
min: '1920-01-01',
max: '2038-12-31',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import VanillaCalendar from 'vanilla-calendar-pro';
import VanillaCalendar, { Options } from 'vanilla-calendar-pro';
import 'vanilla-calendar-pro/build/vanilla-calendar.min.css';

const options = {
const options: Options = {
settings: {
lang: 'define',
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import VanillaCalendar from 'vanilla-calendar-pro';
import VanillaCalendar, { Options } from 'vanilla-calendar-pro';
import 'vanilla-calendar-pro/build/vanilla-calendar.min.css';

const options = {
const options: Options = {
settings: {
iso8601: false,
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import VanillaCalendar from 'vanilla-calendar-pro';
import VanillaCalendar, { Options } from 'vanilla-calendar-pro';
import 'vanilla-calendar-pro/build/vanilla-calendar.min.css';

const options = {
const options: Options = {
settings: {
lang: 'de-AT', // Austrian-German
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import VanillaCalendar from 'vanilla-calendar-pro';
import VanillaCalendar, { Options } from 'vanilla-calendar-pro';
import 'vanilla-calendar-pro/build/vanilla-calendar.min.css';

const options = {
const options: Options = {
settings: {
visibility: {
weekNumbers: true,
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import VanillaCalendar from 'vanilla-calendar-pro';
import VanillaCalendar, { Options } from 'vanilla-calendar-pro';
import 'vanilla-calendar-pro/build/vanilla-calendar.min.css';

const options = {
const options: Options = {
type: 'default',
};

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import VanillaCalendar from 'vanilla-calendar-pro';
import VanillaCalendar, { Options } from 'vanilla-calendar-pro';
import 'vanilla-calendar-pro/build/vanilla-calendar.min.css';

const options = {
const options: Options = {
type: 'month',
};

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import VanillaCalendar from 'vanilla-calendar-pro';
import VanillaCalendar, { Options } from 'vanilla-calendar-pro';
import 'vanilla-calendar-pro/build/vanilla-calendar.min.css';

const options = {
const options: Options = {
type: 'multiple',
months: 2,
jumpMonths: 2,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import VanillaCalendar from 'vanilla-calendar-pro';
import VanillaCalendar, { Options } from 'vanilla-calendar-pro';
import 'vanilla-calendar-pro/build/vanilla-calendar.min.css';

const options = {
const options: Options = {
type: 'multiple',
months: 2,
jumpMonths: 1,
Expand Down
Loading

0 comments on commit 135c331

Please sign in to comment.