@getlupa/client 0.5.1-alpha-7 → 0.5.1-alpha-10

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 (29) hide show
  1. package/dist/cjs/components/product-list/CategoryTopFilters.vue.d.ts +10 -0
  2. package/dist/cjs/components/search-results/products/SearchResultsProducts.vue.d.ts +1 -6
  3. package/dist/cjs/components/search-results/products/SearchResultsToolbar.vue.d.ts +12 -6
  4. package/dist/cjs/components/search-results/products/pagination/SearchResultsPageSelect.vue.d.ts +5 -0
  5. package/dist/cjs/index.d.ts +8 -3
  6. package/dist/cjs/index.min.js +1227 -1046
  7. package/dist/cjs/types/DocumentElement.d.ts +9 -2
  8. package/dist/cjs/types/General.d.ts +4 -2
  9. package/dist/cjs/types/search-results/SearchResultsOptions.d.ts +1 -1
  10. package/dist/es/components/product-list/CategoryTopFilters.vue.d.ts +10 -0
  11. package/dist/es/components/search-results/products/SearchResultsProducts.vue.d.ts +1 -6
  12. package/dist/es/components/search-results/products/SearchResultsToolbar.vue.d.ts +12 -6
  13. package/dist/es/components/search-results/products/pagination/SearchResultsPageSelect.vue.d.ts +5 -0
  14. package/dist/es/index.d.ts +8 -3
  15. package/dist/es/index.min.js +1193 -1012
  16. package/dist/es/types/DocumentElement.d.ts +9 -2
  17. package/dist/es/types/General.d.ts +4 -2
  18. package/dist/es/types/search-results/SearchResultsOptions.d.ts +1 -1
  19. package/dist/iife/components/product-list/CategoryTopFilters.vue.d.ts +10 -0
  20. package/dist/iife/components/search-results/products/SearchResultsProducts.vue.d.ts +1 -6
  21. package/dist/iife/components/search-results/products/SearchResultsToolbar.vue.d.ts +12 -6
  22. package/dist/iife/components/search-results/products/pagination/SearchResultsPageSelect.vue.d.ts +5 -0
  23. package/dist/iife/index.d.ts +8 -3
  24. package/dist/iife/index.min.js +1 -1
  25. package/dist/iife/types/DocumentElement.d.ts +9 -2
  26. package/dist/iife/types/General.d.ts +4 -2
  27. package/dist/iife/types/search-results/SearchResultsOptions.d.ts +1 -1
  28. package/dist/style.css +1 -1
  29. package/package.json +1 -1
@@ -0,0 +1,10 @@
1
+ import { ProductListOptions } from "@/types/product-list/ProductListOptions";
2
+ import Vue from "vue";
3
+ export default class CategoryTopFilters extends Vue {
4
+ options: ProductListOptions;
5
+ get hasBackButton(): boolean;
6
+ get backTitle(): string | undefined;
7
+ get backUrlLink(): string | undefined;
8
+ get hasEventRouting(): boolean;
9
+ handleNavigationBack(event?: Event): void;
10
+ }
@@ -1,8 +1,6 @@
1
- import { PaginationDisplay, PaginationOptions } from "@/types/search-results/PaginationOptions";
2
1
  import { ResultsLayout } from "@/types/search-results/ResultsLayout";
3
2
  import { ResultCurrentFilterOptions, SearchResultsProductOptions, SearchResultsSimilarQueriesLabels } from "@/types/search-results/SearchResultsOptions";
4
3
  import { SearchResultsProductCardOptions } from "@/types/search-results/SearchResultsProductCardOptions";
5
- import { SortOptions } from "@/types/search-results/SearchResultsSort";
6
4
  import { Document, SearchQueryResult } from "@getlupa/client-sdk/Types";
7
5
  import Vue from "vue";
8
6
  export default class SearchResultsProducts extends Vue {
@@ -14,6 +12,7 @@ export default class SearchResultsProducts extends Vue {
14
12
  productCardOptions(): SearchResultsProductCardOptions;
15
13
  get similarQueriesLabels(): SearchResultsSimilarQueriesLabels;
16
14
  get showTopFilters(): boolean;
15
+ get showMobileFilters(): boolean;
17
16
  get currentFilterOptions(): ResultCurrentFilterOptions | undefined;
18
17
  columnCount: number;
19
18
  searchResult: SearchQueryResult;
@@ -21,9 +20,5 @@ export default class SearchResultsProducts extends Vue {
21
20
  limit: number;
22
21
  page: number;
23
22
  get columnSize(): string;
24
- get sortOptions(): SortOptions;
25
- get paginationOptions(): PaginationOptions;
26
- get topPagination(): PaginationDisplay;
27
- get bottomPagination(): PaginationDisplay;
28
23
  getProductKey(index: string, product: Document): string;
29
24
  }
@@ -3,15 +3,21 @@ import Vue from "vue";
3
3
  import { SortOptions } from "@/types/search-results/SearchResultsSort";
4
4
  import { SearchResultsProductOptions } from "@/types/search-results/SearchResultsOptions";
5
5
  import { QueryParams } from "@/types/search-results/QueryParams";
6
+ import { SearchQueryResult } from "@getlupa/client-sdk/Types";
6
7
  export default class SearchResultsToolbar extends Vue {
7
8
  options: SearchResultsProductOptions;
8
- paginationOptions: PaginationOptions;
9
- paginationDisplay: PaginationDisplay;
10
- sortOptions: SortOptions;
11
- showLayoutSelection: boolean;
12
- showItemSummary: boolean;
13
- showFilterClear: boolean;
9
+ paginationLocation: "top" | "bottom";
10
+ limit: number;
11
+ page: number;
14
12
  hasAnyFilter: boolean;
13
+ searchResult: SearchQueryResult;
14
+ get isBottomLocation(): boolean;
15
+ get showFilterClear(): boolean;
16
+ get showItemSummary(): boolean;
17
+ get showLayoutSelection(): boolean;
18
+ get sortOptions(): SortOptions | undefined;
19
+ get paginationDisplay(): PaginationDisplay;
20
+ get paginationOptions(): PaginationOptions;
15
21
  get displayPageSelect(): boolean;
16
22
  get searchSummaryLabel(): string;
17
23
  get showMobileFilterCount(): boolean;
@@ -5,6 +5,11 @@ export default class SearchResultsPageSelect extends Vue {
5
5
  label: string;
6
6
  options: PaginationPageSelect;
7
7
  get pages(): number[];
8
+ get lastPage(): number | undefined;
9
+ get showLastPage(): boolean;
10
+ get showLastPageSeparator(): boolean;
11
+ get showFirstPage(): boolean;
12
+ get showFirstPageSeparator(): boolean;
8
13
  appendParams: ({ params, paramsToRemove, }: {
9
14
  params: {
10
15
  name: string;
@@ -1,7 +1,12 @@
1
1
  import { SearchBoxOptions } from "./types/search-box/SearchBoxOptions";
2
- import { SearchResultsOptions } from "./types/search-results/SearchResultsOptions";
3
- import { SdkOptions, TrackingOptions } from "./types/General";
2
+ import { FacetStyle, SearchResultsOptions } from "./types/search-results/SearchResultsOptions";
3
+ import { SdkOptions, TrackingOptions, Environment, SortDirection } from "./types/General";
4
4
  import { ProductListOptions } from "./types/product-list/ProductListOptions";
5
+ import { DocumentElementType } from "./types/DocumentElement";
6
+ import { SearchBoxPanelType } from "./types/search-box/SearchBoxPanel";
7
+ import { RoutingBehavior } from "./types/search-results/RoutingBehavior";
8
+ import { AnchorPosition } from "./types/search-results/SearchResultsProductCardOptions";
9
+ import { BadgeType } from "./types/search-results/BadgeOptions";
5
10
  declare const lupaSearch: {
6
11
  searchBox: (options: SearchBoxOptions) => void;
7
12
  searchResults: (options: SearchResultsOptions) => void;
@@ -11,5 +16,5 @@ declare const lupaSearch: {
11
16
  clearSearchResults: () => void;
12
17
  clearProductList: () => void;
13
18
  };
14
- export { TrackingOptions, SearchBoxOptions, SearchResultsOptions, ProductListOptions, SdkOptions, };
19
+ export { TrackingOptions, SearchBoxOptions, SearchResultsOptions, ProductListOptions, SdkOptions, DocumentElementType, SearchBoxPanelType, FacetStyle, Environment, RoutingBehavior, AnchorPosition, BadgeType, SortDirection, };
15
20
  export default lupaSearch;