@malloydata/malloyyo 0.2.12 → 0.2.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +20 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2282,6 +2282,25 @@ equals, not colon):
2282
2282
  (\`\u2026 + { where: lower(field) ~ f'll%'; limit: 50 }\`, case-insensitive,
2283
2283
  escaped). Without a dimension the fetched list is filtered client-side.
2284
2284
  Runs as a restricted query; lint checks the declaration compiles.
2285
+
2286
+ **RELATED (faceted) filters** \u2014 query-form only: a suggest query may
2287
+ reference the OTHER givens, and the runtime runs it with the dashboard's
2288
+ current values (the suggested given itself is excluded, so the list never
2289
+ collapses to the current pick). Brand suggestions narrow when Category is
2290
+ set:
2291
+
2292
+ \`\`\`malloy
2293
+ query: brand_suggest is inventory_items -> product_brand + {
2294
+ where:
2295
+ product_category ~ $CATEGORY, // NOT product_brand ~ $BRAND
2296
+ product_department ~ $DEPARTMENT
2297
+ limit: 500
2298
+ }
2299
+ \`\`\`
2300
+
2301
+ Declare one \`*_suggest\` per filter, each referencing the others; \`f''\`
2302
+ defaults mean unset filters don't constrain. \`source=\` suggests can't do
2303
+ this (no place for a \`where:\`) \u2014 another reason to prefer \`query=\`.
2285
2304
  - \`control=select\` \u2014 a fixed dropdown instead of a typeahead search box
2286
2305
  - \`range_min\` / \`range_max\` \u2014 bounds; makes a filter<number> given a
2287
2306
  dual-thumb range slider
@@ -2771,7 +2790,7 @@ async function serveDashboard(opts) {
2771
2790
  }
2772
2791
 
2773
2792
  // package.json
2774
- var version = "0.2.12";
2793
+ var version = "0.2.13";
2775
2794
 
2776
2795
  // src/index.ts
2777
2796
  function shortSha(sha) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@malloydata/malloyyo",
3
- "version": "0.2.12",
3
+ "version": "0.2.13",
4
4
  "description": "Publish Malloy models to a Malloyyo instance",
5
5
  "license": "MIT",
6
6
  "repository": {