-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use the on:event syntax where passive:false needs to be specified.
- Loading branch information
Showing
13 changed files
with
92 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import {DateTime, Duration, Settings} from "luxon"; | ||
import {getWeekInfo} from "./components/utils"; | ||
|
||
declare module "luxon" { | ||
interface TSSettings { | ||
throwOnInvalid: true; | ||
} | ||
} | ||
|
||
Settings.throwOnInvalid = true; | ||
|
||
Settings.defaultWeekSettings = getWeekInfo(new Intl.Locale(navigator.language)); | ||
|
||
// Prevent the luxon classes from serialising as strings, to make it possible to write a custom | ||
// serialiser that retains the class information. | ||
for (const cl of [DateTime, Duration]) { | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
delete (cl as any).prototype.toJSON; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import {DelegatedEvents} from "solid-js/web"; | ||
|
||
declare module "solid-js" { | ||
namespace JSX { | ||
interface CustomEvents extends HTMLElementEventMap {} | ||
interface ExplicitBoolAttributes { | ||
// TODO: Switch inert to bool:inert attributes in the code when Solid types are fixed | ||
// (https://github.com/ryansolid/dom-expressions/pull/368) | ||
inert: boolean | undefined; | ||
} | ||
} | ||
} | ||
|
||
// Allow stopping propagation of events (see https://github.com/solidjs/solid/issues/1786#issuecomment-1694589801). | ||
DelegatedEvents.clear(); |
File renamed without changes.
This file was deleted.
Oops, something went wrong.