@schedule-x/current-time
Advanced tools
Comparing version 1.63.1 to 1.64.0-alpha.0
@@ -68,4 +68,4 @@ import { Signal, ReadonlySignal } from "@preact/signals"; | ||
interface Config { | ||
locale: string; | ||
firstDayOfWeek: WeekDay; | ||
locale: Signal<string>; | ||
firstDayOfWeek: Signal<WeekDay>; | ||
} | ||
@@ -329,14 +329,14 @@ declare enum Placement { | ||
defaultView: ViewName; | ||
views: View[]; | ||
dayBoundaries: DayBoundariesInternal; | ||
weekOptions: WeekOptions; | ||
monthGridOptions: MonthGridOptions; | ||
views: Signal<View[]>; | ||
dayBoundaries: Signal<DayBoundariesInternal>; | ||
weekOptions: Signal<WeekOptions>; | ||
calendars: Signal<Record<string, CalendarType>>; | ||
isDark: Signal<boolean>; | ||
minDate: Signal<string | undefined>; | ||
maxDate: Signal<string | undefined>; | ||
monthGridOptions: Signal<MonthGridOptions>; | ||
plugins: Plugins; | ||
isDark: boolean; | ||
isResponsive: boolean; | ||
callbacks: CalendarCallbacks; | ||
_customComponentFns: CustomComponentFns; | ||
minDate?: string; | ||
maxDate?: string; | ||
// Getters | ||
@@ -343,0 +343,0 @@ isHybridDay: boolean; |
@@ -69,3 +69,3 @@ 'use strict'; | ||
const timePointsFromString = (timeString) => { | ||
if (!timeStringRegex.test(timeString)) | ||
if (!timeStringRegex.test(timeString) && timeString !== '24:00') | ||
throw new InvalidTimeStringError(timeString); | ||
@@ -178,3 +178,3 @@ const [hoursInt, minutesInt] = timeString | ||
currentTimeIndicator.classList.add('sx__current-time-indicator'); | ||
const top = getYCoordinateInTimeGrid(nowDateTimeString, this.$app.config.dayBoundaries, this.$app.config.timePointsPerDay) + '%'; | ||
const top = getYCoordinateInTimeGrid(nowDateTimeString, this.$app.config.dayBoundaries.value, this.$app.config.timePointsPerDay) + '%'; | ||
currentTimeIndicator.style.top = top; | ||
@@ -181,0 +181,0 @@ todayElement.appendChild(currentTimeIndicator); |
@@ -68,4 +68,4 @@ import { Signal, ReadonlySignal } from "@preact/signals"; | ||
interface Config { | ||
locale: string; | ||
firstDayOfWeek: WeekDay; | ||
locale: Signal<string>; | ||
firstDayOfWeek: Signal<WeekDay>; | ||
} | ||
@@ -329,14 +329,14 @@ declare enum Placement { | ||
defaultView: ViewName; | ||
views: View[]; | ||
dayBoundaries: DayBoundariesInternal; | ||
weekOptions: WeekOptions; | ||
monthGridOptions: MonthGridOptions; | ||
views: Signal<View[]>; | ||
dayBoundaries: Signal<DayBoundariesInternal>; | ||
weekOptions: Signal<WeekOptions>; | ||
calendars: Signal<Record<string, CalendarType>>; | ||
isDark: Signal<boolean>; | ||
minDate: Signal<string | undefined>; | ||
maxDate: Signal<string | undefined>; | ||
monthGridOptions: Signal<MonthGridOptions>; | ||
plugins: Plugins; | ||
isDark: boolean; | ||
isResponsive: boolean; | ||
callbacks: CalendarCallbacks; | ||
_customComponentFns: CustomComponentFns; | ||
minDate?: string; | ||
maxDate?: string; | ||
// Getters | ||
@@ -343,0 +343,0 @@ isHybridDay: boolean; |
@@ -67,3 +67,3 @@ import 'preact/jsx-runtime'; | ||
const timePointsFromString = (timeString) => { | ||
if (!timeStringRegex.test(timeString)) | ||
if (!timeStringRegex.test(timeString) && timeString !== '24:00') | ||
throw new InvalidTimeStringError(timeString); | ||
@@ -176,3 +176,3 @@ const [hoursInt, minutesInt] = timeString | ||
currentTimeIndicator.classList.add('sx__current-time-indicator'); | ||
const top = getYCoordinateInTimeGrid(nowDateTimeString, this.$app.config.dayBoundaries, this.$app.config.timePointsPerDay) + '%'; | ||
const top = getYCoordinateInTimeGrid(nowDateTimeString, this.$app.config.dayBoundaries.value, this.$app.config.timePointsPerDay) + '%'; | ||
currentTimeIndicator.style.top = top; | ||
@@ -179,0 +179,0 @@ todayElement.appendChild(currentTimeIndicator); |
@@ -68,4 +68,4 @@ import { Signal, ReadonlySignal } from "@preact/signals"; | ||
interface Config { | ||
locale: string; | ||
firstDayOfWeek: WeekDay; | ||
locale: Signal<string>; | ||
firstDayOfWeek: Signal<WeekDay>; | ||
} | ||
@@ -329,14 +329,14 @@ declare enum Placement { | ||
defaultView: ViewName; | ||
views: View[]; | ||
dayBoundaries: DayBoundariesInternal; | ||
weekOptions: WeekOptions; | ||
monthGridOptions: MonthGridOptions; | ||
views: Signal<View[]>; | ||
dayBoundaries: Signal<DayBoundariesInternal>; | ||
weekOptions: Signal<WeekOptions>; | ||
calendars: Signal<Record<string, CalendarType>>; | ||
isDark: Signal<boolean>; | ||
minDate: Signal<string | undefined>; | ||
maxDate: Signal<string | undefined>; | ||
monthGridOptions: Signal<MonthGridOptions>; | ||
plugins: Plugins; | ||
isDark: boolean; | ||
isResponsive: boolean; | ||
callbacks: CalendarCallbacks; | ||
_customComponentFns: CustomComponentFns; | ||
minDate?: string; | ||
maxDate?: string; | ||
// Getters | ||
@@ -343,0 +343,0 @@ isHybridDay: boolean; |
@@ -71,3 +71,3 @@ (function (global, factory) { | ||
const timePointsFromString = (timeString) => { | ||
if (!timeStringRegex.test(timeString)) | ||
if (!timeStringRegex.test(timeString) && timeString !== '24:00') | ||
throw new InvalidTimeStringError(timeString); | ||
@@ -180,3 +180,3 @@ const [hoursInt, minutesInt] = timeString | ||
currentTimeIndicator.classList.add('sx__current-time-indicator'); | ||
const top = getYCoordinateInTimeGrid(nowDateTimeString, this.$app.config.dayBoundaries, this.$app.config.timePointsPerDay) + '%'; | ||
const top = getYCoordinateInTimeGrid(nowDateTimeString, this.$app.config.dayBoundaries.value, this.$app.config.timePointsPerDay) + '%'; | ||
currentTimeIndicator.style.top = top; | ||
@@ -183,0 +183,0 @@ todayElement.appendChild(currentTimeIndicator); |
{ | ||
"name": "@schedule-x/current-time", | ||
"umdName": "SXCurrentTime", | ||
"version": "1.63.1", | ||
"version": "1.64.0-alpha.0", | ||
"description": "Schedule-X plugin for displaying an indicator for the current time", | ||
@@ -37,3 +37,3 @@ "author": { | ||
"homepage": "https://schedule-x.dev", | ||
"gitHead": "559d32882f6fe764328d542216bb3c2c8813acca" | ||
"gitHead": "f0cfd68222837d0f5c97f0c88386ae8b017d0195" | ||
} |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
68052
1