@pagefind/default-ui
Advanced tools
Comparing version 1.1.0-rc1 to 1.1.0
{ | ||
"name": "@pagefind/default-ui", | ||
"version": "1.1.0-rc1", | ||
"version": "1.1.0", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "main": "npm_dist/cjs/ui-core.cjs", |
@@ -86,2 +86,16 @@ import PagefindSvelte from "./svelte/ui.svelte"; | ||
triggerFilters(filters) { | ||
let selected_filters = {}; | ||
for (let [filter, key] of Object.entries(filters)) { | ||
if (Array.isArray(key)) { | ||
for (let val of key) { | ||
selected_filters[`${filter}:${val}`] = true; | ||
} | ||
} else { | ||
selected_filters[`${filter}:${key}`] = true; | ||
} | ||
} | ||
this._pfs.$$set({ selected_filters }); | ||
} | ||
destroy() { | ||
@@ -88,0 +102,0 @@ this._pfs.$destroy(); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
390951
11599
1