pr comments
This commit is contained in:
parent
a0c4093645
commit
2b090c3a62
|
@ -15,7 +15,7 @@ interface Notification {
|
||||||
}
|
}
|
||||||
|
|
||||||
export const createNotificationStore = () => {
|
export const createNotificationStore = () => {
|
||||||
const timeoutIds = new Set<NodeJS.Timeout>()
|
const timeoutIds = new Set<ReturnType<typeof setTimeout>>()
|
||||||
const _notifications = writable<Notification[]>([], () => {
|
const _notifications = writable<Notification[]>([], () => {
|
||||||
return () => {
|
return () => {
|
||||||
// clear all the timers
|
// clear all the timers
|
||||||
|
|
|
@ -8,9 +8,9 @@
|
||||||
import InternalRenderer from "./InternalRenderer.svelte"
|
import InternalRenderer from "./InternalRenderer.svelte"
|
||||||
import { processStringSync } from "@budibase/string-templates"
|
import { processStringSync } from "@budibase/string-templates"
|
||||||
|
|
||||||
export let row: any
|
export let row: Record<string, any>
|
||||||
export let schema: any
|
export let schema: Record<string, any>
|
||||||
export let value: any
|
export let value: Record<string, any>
|
||||||
export let customRenderers: { column: string; component: any }[] = []
|
export let customRenderers: { column: string; component: any }[] = []
|
||||||
export let snippets: any
|
export let snippets: any
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
// adding the 0- will turn a string like 00:00:00 into a valid ISO
|
// adding the 0- will turn a string like 00:00:00 into a valid ISO
|
||||||
// date, but will make actual ISO dates invalid
|
// date, but will make actual ISO dates invalid
|
||||||
$: time = new Date(`0-${value}`)
|
$: time = new Date(`0-${value}`)
|
||||||
$: isTimeOnly = !isNaN(time.getTime()) || schema?.timeOnly
|
$: isTimeOnly = !isNaN(time as any) || schema?.timeOnly
|
||||||
$: isDateOnly = schema?.dateOnly
|
$: isDateOnly = schema?.dateOnly
|
||||||
$: format = isTimeOnly
|
$: format = isTimeOnly
|
||||||
? "HH:mm:ss"
|
? "HH:mm:ss"
|
||||||
|
|
Loading…
Reference in New Issue