remove unneeded things
This commit is contained in:
parent
a7b9945010
commit
e9604ba967
|
@ -12,10 +12,8 @@
|
||||||
|
|
||||||
const dispatch = createEventDispatcher()
|
const dispatch = createEventDispatcher()
|
||||||
|
|
||||||
export let bindableProperties
|
|
||||||
export let value = ""
|
export let value = ""
|
||||||
export let bindingDrawer
|
export let bindingDrawer
|
||||||
export let valid = true
|
|
||||||
export let bindings = []
|
export let bindings = []
|
||||||
|
|
||||||
let originalValue = value
|
let originalValue = value
|
||||||
|
@ -26,16 +24,11 @@
|
||||||
|
|
||||||
$: categories = Object.entries(groupBy("category", bindings))
|
$: categories = Object.entries(groupBy("category", bindings))
|
||||||
$: value && checkValid()
|
$: value && checkValid()
|
||||||
$: bindableProperties = getBindableProperties(
|
|
||||||
$currentAsset,
|
|
||||||
$store.selectedComponentId
|
|
||||||
)
|
|
||||||
$: dispatch("update", value)
|
$: dispatch("update", value)
|
||||||
$: searchRgx = new RegExp(search, "ig")
|
$: searchRgx = new RegExp(search, "ig")
|
||||||
|
|
||||||
function checkValid() {
|
function checkValid() {
|
||||||
const runtimeValue = readableToRuntimeBinding(bindings, value)
|
validity = isValid(value)
|
||||||
validity = isValid(runtimeValue)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function addToText(binding) {
|
function addToText(binding) {
|
||||||
|
|
|
@ -55,7 +55,6 @@
|
||||||
value={readableValue}
|
value={readableValue}
|
||||||
close={handleClose}
|
close={handleClose}
|
||||||
on:update={event => (tempValue = event.detail)}
|
on:update={event => (tempValue = event.detail)}
|
||||||
bindableProperties={bindings}
|
|
||||||
{bindings} />
|
{bindings} />
|
||||||
</div>
|
</div>
|
||||||
</Drawer>
|
</Drawer>
|
||||||
|
|
Loading…
Reference in New Issue