Merge remote-tracking branch 'origin/master' into feature/filter-bindings
This commit is contained in:
commit
83eeddf422
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"version": "2.24.0",
|
||||
"version": "2.24.1",
|
||||
"npmClient": "yarn",
|
||||
"packages": [
|
||||
"packages/*",
|
||||
|
|
|
@ -4,6 +4,9 @@
|
|||
import dayjs from "dayjs"
|
||||
import NumberInput from "./NumberInput.svelte"
|
||||
import { createEventDispatcher } from "svelte"
|
||||
import isoWeek from "dayjs/plugin/isoWeek"
|
||||
|
||||
dayjs.extend(isoWeek)
|
||||
|
||||
export let value
|
||||
|
||||
|
@ -43,7 +46,7 @@
|
|||
return []
|
||||
}
|
||||
let monthEnd = monthStart.endOf("month")
|
||||
let calendarStart = monthStart.startOf("week")
|
||||
let calendarStart = monthStart.startOf("isoWeek")
|
||||
const numWeeks = Math.ceil((monthEnd.diff(calendarStart, "day") + 1) / 7)
|
||||
|
||||
let mondays = []
|
||||
|
|
|
@ -25,6 +25,6 @@
|
|||
name="field"
|
||||
headings
|
||||
options={SchemaTypeOptionsExpanded}
|
||||
compare={(option, value) => option.type === value.type}
|
||||
compare={(option, value) => option.type === value?.type}
|
||||
/>
|
||||
{/key}
|
||||
|
|
|
@ -695,7 +695,7 @@
|
|||
menuItems={schemaMenuItems}
|
||||
showMenu={!schemaReadOnly}
|
||||
readOnly={schemaReadOnly}
|
||||
compare={(option, value) => option.type === value.type}
|
||||
compare={(option, value) => option.type === value?.type}
|
||||
/>
|
||||
</Tab>
|
||||
{/if}
|
||||
|
|
|
@ -253,6 +253,7 @@ export const SchemaTypeOptions = [
|
|||
{ label: "Number", value: FieldType.NUMBER },
|
||||
{ label: "Boolean", value: FieldType.BOOLEAN },
|
||||
{ label: "Datetime", value: FieldType.DATETIME },
|
||||
{ label: "JSON", value: FieldType.JSON },
|
||||
]
|
||||
|
||||
export const SchemaTypeOptionsExpanded = SchemaTypeOptions.map(el => ({
|
||||
|
|
Loading…
Reference in New Issue