@fluid-topics/ft-search-result-title 1.1.96 → 1.1.97

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.
@@ -1,4 +1,4 @@
1
- import { nothing } from "lit";
1
+ import { nothing, PropertyValues } from "lit";
2
2
  import { ElementDefinitionsMap } from "@fluid-topics/ft-wc-utils";
3
3
  import { FtSearchResultTitleProperties } from "./ft-search-result-title.properties";
4
4
  import { FtSearchResultComponent } from "@fluid-topics/ft-search-result-context/build/registration";
@@ -8,4 +8,5 @@ export declare class FtSearchResultTitle extends FtSearchResultComponent impleme
8
8
  protected render(): typeof nothing | import("lit").TemplateResult<1>;
9
9
  private onResultClick;
10
10
  private selectTitle;
11
+ protected contentAvailableCallback(props: PropertyValues): void;
11
12
  }
@@ -27,6 +27,10 @@ class FtSearchResultTitle extends FtSearchResultComponent {
27
27
  }
28
28
  return "";
29
29
  }
30
+ contentAvailableCallback(props) {
31
+ super.contentAvailableCallback(props);
32
+ this.shadowRoot.querySelectorAll(".kwicmatch").forEach(match => match.setAttribute("part", "kwicmatch"));
33
+ }
30
34
  }
31
35
  FtSearchResultTitle.elementDefinitions = {
32
36
  "ft-typography": FtTypography,