|
|
@ -15,7 +15,8 @@ export const binding_properties = {
|
|
|
|
// media
|
|
|
|
// media
|
|
|
|
currentTime: {
|
|
|
|
currentTime: {
|
|
|
|
valid_elements: ['audio', 'video'],
|
|
|
|
valid_elements: ['audio', 'video'],
|
|
|
|
omit_in_ssr: true
|
|
|
|
omit_in_ssr: true,
|
|
|
|
|
|
|
|
bidirectional: true
|
|
|
|
},
|
|
|
|
},
|
|
|
|
duration: {
|
|
|
|
duration: {
|
|
|
|
valid_elements: ['audio', 'video'],
|
|
|
|
valid_elements: ['audio', 'video'],
|
|
|
@ -25,7 +26,8 @@ export const binding_properties = {
|
|
|
|
focused: {},
|
|
|
|
focused: {},
|
|
|
|
paused: {
|
|
|
|
paused: {
|
|
|
|
valid_elements: ['audio', 'video'],
|
|
|
|
valid_elements: ['audio', 'video'],
|
|
|
|
omit_in_ssr: true
|
|
|
|
omit_in_ssr: true,
|
|
|
|
|
|
|
|
bidirectional: true
|
|
|
|
},
|
|
|
|
},
|
|
|
|
buffered: {
|
|
|
|
buffered: {
|
|
|
|
valid_elements: ['audio', 'video'],
|
|
|
|
valid_elements: ['audio', 'video'],
|
|
|
@ -41,15 +43,18 @@ export const binding_properties = {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
volume: {
|
|
|
|
volume: {
|
|
|
|
valid_elements: ['audio', 'video'],
|
|
|
|
valid_elements: ['audio', 'video'],
|
|
|
|
omit_in_ssr: true
|
|
|
|
omit_in_ssr: true,
|
|
|
|
|
|
|
|
bidirectional: true
|
|
|
|
},
|
|
|
|
},
|
|
|
|
muted: {
|
|
|
|
muted: {
|
|
|
|
valid_elements: ['audio', 'video'],
|
|
|
|
valid_elements: ['audio', 'video'],
|
|
|
|
omit_in_ssr: true
|
|
|
|
omit_in_ssr: true,
|
|
|
|
|
|
|
|
bidirectional: true
|
|
|
|
},
|
|
|
|
},
|
|
|
|
playbackRate: {
|
|
|
|
playbackRate: {
|
|
|
|
valid_elements: ['audio', 'video'],
|
|
|
|
valid_elements: ['audio', 'video'],
|
|
|
|
omit_in_ssr: true
|
|
|
|
omit_in_ssr: true,
|
|
|
|
|
|
|
|
bidirectional: true
|
|
|
|
},
|
|
|
|
},
|
|
|
|
seeking: {
|
|
|
|
seeking: {
|
|
|
|
valid_elements: ['audio', 'video'],
|
|
|
|
valid_elements: ['audio', 'video'],
|
|
|
@ -124,11 +129,13 @@ export const binding_properties = {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
scrollX: {
|
|
|
|
scrollX: {
|
|
|
|
valid_elements: ['svelte:window'],
|
|
|
|
valid_elements: ['svelte:window'],
|
|
|
|
omit_in_ssr: true
|
|
|
|
omit_in_ssr: true,
|
|
|
|
|
|
|
|
bidirectional: true
|
|
|
|
},
|
|
|
|
},
|
|
|
|
scrollY: {
|
|
|
|
scrollY: {
|
|
|
|
valid_elements: ['svelte:window'],
|
|
|
|
valid_elements: ['svelte:window'],
|
|
|
|
omit_in_ssr: true
|
|
|
|
omit_in_ssr: true,
|
|
|
|
|
|
|
|
bidirectional: true
|
|
|
|
},
|
|
|
|
},
|
|
|
|
online: {
|
|
|
|
online: {
|
|
|
|
valid_elements: ['svelte:window'],
|
|
|
|
valid_elements: ['svelte:window'],
|
|
|
@ -180,23 +187,28 @@ export const binding_properties = {
|
|
|
|
omit_in_ssr: true // no corresponding attribute
|
|
|
|
omit_in_ssr: true // no corresponding attribute
|
|
|
|
},
|
|
|
|
},
|
|
|
|
checked: {
|
|
|
|
checked: {
|
|
|
|
valid_elements: ['input']
|
|
|
|
valid_elements: ['input'],
|
|
|
|
|
|
|
|
bidirectional: true
|
|
|
|
},
|
|
|
|
},
|
|
|
|
group: {
|
|
|
|
group: {
|
|
|
|
valid_elements: ['input']
|
|
|
|
valid_elements: ['input'],
|
|
|
|
|
|
|
|
bidirectional: true
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// various
|
|
|
|
// various
|
|
|
|
this: {
|
|
|
|
this: {
|
|
|
|
omit_in_ssr: true
|
|
|
|
omit_in_ssr: true
|
|
|
|
},
|
|
|
|
},
|
|
|
|
innerText: {
|
|
|
|
innerText: {
|
|
|
|
invalid_elements: ['svelte:window', 'svelte:document']
|
|
|
|
invalid_elements: ['svelte:window', 'svelte:document'],
|
|
|
|
|
|
|
|
bidirectional: true
|
|
|
|
},
|
|
|
|
},
|
|
|
|
innerHTML: {
|
|
|
|
innerHTML: {
|
|
|
|
invalid_elements: ['svelte:window', 'svelte:document']
|
|
|
|
invalid_elements: ['svelte:window', 'svelte:document'],
|
|
|
|
|
|
|
|
bidirectional: true
|
|
|
|
},
|
|
|
|
},
|
|
|
|
textContent: {
|
|
|
|
textContent: {
|
|
|
|
invalid_elements: ['svelte:window', 'svelte:document']
|
|
|
|
invalid_elements: ['svelte:window', 'svelte:document'],
|
|
|
|
|
|
|
|
bidirectional: true
|
|
|
|
},
|
|
|
|
},
|
|
|
|
open: {
|
|
|
|
open: {
|
|
|
|
event: 'toggle',
|
|
|
|
event: 'toggle',
|
|
|
@ -204,10 +216,12 @@ export const binding_properties = {
|
|
|
|
valid_elements: ['details']
|
|
|
|
valid_elements: ['details']
|
|
|
|
},
|
|
|
|
},
|
|
|
|
value: {
|
|
|
|
value: {
|
|
|
|
valid_elements: ['input', 'textarea', 'select']
|
|
|
|
valid_elements: ['input', 'textarea', 'select'],
|
|
|
|
|
|
|
|
bidirectional: true
|
|
|
|
},
|
|
|
|
},
|
|
|
|
files: {
|
|
|
|
files: {
|
|
|
|
valid_elements: ['input'],
|
|
|
|
valid_elements: ['input'],
|
|
|
|
omit_in_ssr: true
|
|
|
|
omit_in_ssr: true,
|
|
|
|
|
|
|
|
bidirectional: true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|