@fluid-topics/ft-search-results-number 1.3.52 → 1.3.54

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.
@@ -3,6 +3,7 @@ import { I18nAttributeValue } from "@fluid-topics/ft-i18n/build/decorators/i18nA
3
3
  import { Debouncer, ElementDefinitionsMap } from "@fluid-topics/ft-wc-utils";
4
4
  import { FtSearchResultsNumberProperties } from "./ft-search-results-number.properties";
5
5
  import { FtSearchComponent } from "@fluid-topics/ft-search-context/build/registration";
6
+ import { FtSearchStateResourceRequest } from "@fluid-topics/ft-search-context/build/store/model";
6
7
  declare const FtSearchResultsNumber_base: typeof FtSearchComponent & import("@fluid-topics/ft-wc-utils").Constructor<import("@fluid-topics/ft-i18n").FtLitElementWithI18nInterface> & import("@fluid-topics/ft-wc-utils").Constructor<import("@fluid-topics/ft-wc-utils").FtLitElementWithAriaNotificationInterface>;
7
8
  export declare class FtSearchResultsNumber extends FtSearchResultsNumber_base implements FtSearchResultsNumberProperties {
8
9
  static elementDefinitions: ElementDefinitionsMap;
@@ -10,6 +11,7 @@ export declare class FtSearchResultsNumber extends FtSearchResultsNumber_base im
10
11
  protected ariaNotificationDebouncer: Debouncer;
11
12
  searchNumberOfResults: I18nAttributeValue;
12
13
  private paging?;
14
+ neededSearchRequests: FtSearchStateResourceRequest[];
13
15
  constructor();
14
16
  protected render(): typeof nothing | import("lit-html").TemplateResult<1>;
15
17
  protected willUpdate(props: PropertyValues): void;
@@ -11,6 +11,7 @@ import { FtSearchComponent } from "@fluid-topics/ft-search-context/build/registr
11
11
  import { withI18n } from "@fluid-topics/ft-i18n";
12
12
  import { defaultResultsNumberContextMessages, resultsNumberContext } from "./SearchResultsNumberMessages";
13
13
  import { FtTypography, FtTypographyVariants } from "@fluid-topics/ft-typography";
14
+ import { FtSearchStateResourceRequest } from "@fluid-topics/ft-search-context/build/store/model";
14
15
  class FtSearchResultsNumber extends withAriaNotification(withI18n(FtSearchComponent)) {
15
16
  constructor() {
16
17
  super();
@@ -20,6 +21,7 @@ class FtSearchResultsNumber extends withAriaNotification(withI18n(FtSearchCompon
20
21
  key: "searchNumberOfResults",
21
22
  message: "",
22
23
  };
24
+ this.neededSearchRequests = [FtSearchStateResourceRequest.CLUSTERED_SEARCH];
23
25
  this.addI18nContext(resultsNumberContext, defaultResultsNumberContextMessages);
24
26
  }
25
27
  render() {