@fluid-topics/ft-search-bar 0.3.11 → 0.3.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.
@@ -1,10 +1,10 @@
1
1
  import { designSystemVariables, FtCssVariableFactory, setVariable } from "@fluid-topics/ft-wc-utils";
2
2
  import { css } from "lit";
3
- import { FtButtonCssVariables } from "@fluid-topics/ft-button";
4
- import { FtInputLabelCssVariables } from "@fluid-topics/ft-input-label";
5
- import { FtSelectCssVariables } from "@fluid-topics/ft-select";
6
- import { FtSkeletonCssVariables } from "@fluid-topics/ft-skeleton";
7
- import { FtTooltipCssVariables } from "@fluid-topics/ft-tooltip";
3
+ import { FtButtonCssVariables } from "@fluid-topics/ft-button/build/ft-button.css";
4
+ import { FtInputLabelCssVariables } from "@fluid-topics/ft-input-label/build/ft-input-label.css";
5
+ import { FtSelectCssVariables } from "@fluid-topics/ft-select/build/ft-select.css";
6
+ import { FtSkeletonCssVariables } from "@fluid-topics/ft-skeleton/build/ft-skeleton.css";
7
+ import { FtTooltipCssVariables } from "@fluid-topics/ft-tooltip/build/ft-tooltip.css";
8
8
  export const FtSearchBarCssVariables = {
9
9
  height: FtCssVariableFactory.create("--ft-search-bar-height", "SIZE", "38px"),
10
10
  borderRadius: FtCssVariableFactory.extend("--ft-search-bar-border-radius", designSystemVariables.borderRadiusS),
@@ -1,10 +1,11 @@
1
1
  import { nothing, PropertyValues } from "lit";
2
- import { ElementDefinitionsMap, FtLitElement, ParametrizedLabelResolver, ParametrizedLabels } from "@fluid-topics/ft-wc-utils";
2
+ import { ElementDefinitionsMap, FtLitElement, ParametrizedLabelResolver } from "@fluid-topics/ft-wc-utils";
3
3
  import { FluidTopicsApi, FtSearchFacet, FtSearchFacetConf, FtSearchLocale, FtSearchPreset, FtSearchPrior, FtSearchRequest, FtSuggestRequest, FtSuggestResult } from "@fluid-topics/public-api";
4
4
  import { SuggestManager } from "./managers/SuggestManager";
5
5
  import { FacetsChipsManager } from "./managers/FacetsChipsManager";
6
6
  import { MobileSearchBarManager } from "./managers/MobileSearchBarManager";
7
7
  import { DesktopSearchBarManager } from "./managers/DesktopSearchBarManager";
8
+ import { DisplayMode, FtSearchBarLabels, FtSearchBarProperties } from "./ft-search-bar.properties";
8
9
  declare global {
9
10
  interface Window {
10
11
  fluidtopics?: {
@@ -12,37 +13,7 @@ declare global {
12
13
  };
13
14
  }
14
15
  }
15
- export interface FtSearchBarLabels extends ParametrizedLabels {
16
- clearFilters?: string;
17
- filtersButton?: string;
18
- inputPlaceHolder?: string;
19
- filterInputPlaceHolder?: string;
20
- clearInputButton?: string;
21
- clearFilterButton?: string;
22
- displayMoreFilterValuesButton?: string;
23
- noFilterValuesAvailable?: string;
24
- searchButton?: string;
25
- contentLocaleSelector?: string;
26
- presetsSelector?: string;
27
- removeRecentSearch?: string;
28
- back?: string;
29
- }
30
16
  export declare const DEFAULT_LABELS: FtSearchBarLabels;
31
- export declare type DisplayMode = "auto" | "mobile" | "desktop";
32
- export interface FtSearchBarProperties {
33
- labels?: FtSearchBarLabels;
34
- mode?: DisplayMode;
35
- forceMenuOpen?: boolean;
36
- baseUrl: string;
37
- apiIntegrationIdentifier?: string;
38
- contentLocale?: string;
39
- uiLocale?: string;
40
- displayedFilters?: Array<string>;
41
- presets?: Array<FtSearchPreset>;
42
- priors?: Array<FtSearchPrior>;
43
- selectedPreset?: string;
44
- dense: boolean;
45
- }
46
17
  export declare class LaunchSearchEvent extends CustomEvent<FtSearchRequest> {
47
18
  constructor(request: FtSearchRequest);
48
19
  }