const doc = getContext("#doc");
const nameSearch = createFilterQuery("name");
$doc.system.filters.inventory.typeSearch = createFilterQuery("type");
$doc.system.filters.inventory.typeSearch.set("");
$: console.log(nameSearch);
$: console.log($doc.system.filters.inventory.typeSearch);
const input = {
store: nameSearch,
efx: rippleFocus(),
placeholder: "*",
type: "search",
};
/** @type {import('@typhonjs-fvtt/runtime/svelte/store').DynMapReducer<string, Item>} */
const wildcard = doc.embedded.create("Item", {
name: "wildcard",
filters: [nameSearch, $doc.system.filters.inventory.typeSearch],
sort: (a, b) => a.name.localeCompare(b.name),
});
const doc = getContext("#doc");
const nameSearch = createFilterQuery("name");
$doc.system.filters.inventory.typeSearch = createFilterQuery("type");
$doc.system.filters.inventory.typeSearch.set("");
$: console.log(nameSearch);
$: console.log($doc.system.filters.inventory.typeSearch);
const input = {
store: nameSearch,
efx: rippleFocus(),
placeholder: "*",
type: "search",
};
/** @type {import('@typhonjs-fvtt/runtime/svelte/store').DynMapReducer<string, Item>} */
const wildcard = doc.embedded.create("Item", {
name: "wildcard",
filters: [nameSearch, $doc.system.filters.inventory.typeSearch],
sort: (a, b) => a.name.localeCompare(b.name),
});