MCPcopy Create free account
hub / github.com/TechJeeper/Printventory / appendSearchBoolOp

Function appendSearchBoolOp

query-builder.js:497–515  ·  view source on GitHub ↗
(op)

Source from the content-addressed store, hash-verified

495 }
496 if (elementId === "license-select") {
497 const sc = effectiveScalarValues("license", "license-select");
498 if (!sc.values.length) return [];
499 if (sc.values.length === 1) return [{ t: "filter", kind: "license", value: sc.values[0] }];
500 return [{ t: "filterMulti", kind: "license", values: sc.values.slice(), combine: sc.combine }];
501 }
502 if (elementId === "parent-select") {
503 const sc = effectiveScalarValues("parentModel", "parent-select");
504 if (!sc.values.length) return [];
505 if (sc.values.length === 1) return [{ t: "filter", kind: "parentModel", value: sc.values[0] }];
506 return [{ t: "filterMulti", kind: "parentModel", values: sc.values.slice(), combine: sc.combine }];
507 }
508 if (elementId === "tag-filter") {
509 const sc = effectiveTagValues();
510 if (!sc.values.length) return [];
511 if (sc.values.length === 1) return [{ t: "filter", kind: "tag", value: sc.values[0] }];
512 return [{ t: "filterMulti", kind: "tag", values: sc.values.slice(), combine: sc.combine }];
513 }
514 if (elementId === "filament-filter") {
515 const sc = effectiveScalarValues("filaments", "filament-filter");
516 if (!sc.values.length) return [];
517 if (sc.values.length === 1) return [{ t: "filter", kind: "filament", value: sc.values[0] }];
518 return [{ t: "filterMulti", kind: "filament", values: sc.values.slice(), combine: sc.combine }];

Callers

nothing calls this directly

Tested by

no test coverage detected