Compare commits
2 Commits
cb7dfadf3d
...
4d8ac0717d
Author | SHA1 | Date |
---|---|---|
Tomáš Mládek | 4d8ac0717d | |
Tomáš Mládek | 68e7d67d7b |
|
@ -163,6 +163,8 @@
|
||||||
filter: brightness(0.85);
|
filter: brightness(0.85);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
z-index: 99;
|
||||||
}
|
}
|
||||||
|
|
||||||
.addmodal {
|
.addmodal {
|
||||||
|
|
|
@ -145,6 +145,7 @@
|
||||||
current = undefined;
|
current = undefined;
|
||||||
dispatch('input', current);
|
dispatch('input', current);
|
||||||
}
|
}
|
||||||
|
$: if (!inputValue) reset();
|
||||||
|
|
||||||
let options: SelectorOption[] = [];
|
let options: SelectorOption[] = [];
|
||||||
let searchResult: UpListing | undefined = undefined;
|
let searchResult: UpListing | undefined = undefined;
|
||||||
|
|
|
@ -56,7 +56,7 @@
|
||||||
let newEntryValue: SelectorValue | undefined;
|
let newEntryValue: SelectorValue | undefined;
|
||||||
|
|
||||||
$: if (adding && newAttrSelector) newAttrSelector.focus();
|
$: if (adding && newAttrSelector) newAttrSelector.focus();
|
||||||
$: if (!addFocus && !addHover) adding = false;
|
$: if (!addFocus && !addHover && !newEntryAttribute && !newEntryValue) adding = false;
|
||||||
|
|
||||||
async function addEntry(attribute: string, value: SelectorValue) {
|
async function addEntry(attribute: string, value: SelectorValue) {
|
||||||
dispatch('change', {
|
dispatch('change', {
|
||||||
|
@ -352,7 +352,7 @@
|
||||||
<div class="cell mark-attribute">
|
<div class="cell mark-attribute">
|
||||||
<Selector
|
<Selector
|
||||||
types={['Attribute', 'NewAttribute']}
|
types={['Attribute', 'NewAttribute']}
|
||||||
on:input={(ev) => (newEntryAttribute = ev.detail.name)}
|
on:input={(ev) => (newEntryAttribute = ev.detail?.name)}
|
||||||
on:focus={(ev) => (addFocus = ev.detail)}
|
on:focus={(ev) => (addFocus = ev.detail)}
|
||||||
keepFocusOnSet
|
keepFocusOnSet
|
||||||
bind:this={newAttrSelector}
|
bind:this={newAttrSelector}
|
||||||
|
|
Loading…
Reference in New Issue