@getlupa/client 0.4.3-1 → 0.5.0
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.
- package/README.md +11 -3
- package/dist/cjs/components/search-results/filters/facets/TermFacet.vue.d.ts +3 -2
- package/dist/cjs/constants/development/searchBoxDev.example.const.d.ts +1 -0
- package/dist/cjs/constants/development/searchResultsDev.example.const.d.ts +1 -0
- package/dist/cjs/constants/queryParams.const.d.ts +1 -0
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/index.min.js +442 -233
- package/dist/cjs/store/modules/searchBox.d.ts +4 -3
- package/dist/cjs/types/General.d.ts +4 -0
- package/dist/cjs/types/search-box/SearchBoxOptions.d.ts +1 -0
- package/dist/cjs/types/search-results/SearchResultsOptions.d.ts +1 -0
- package/dist/cjs/utils/filter.toggle.utils.d.ts +1 -1
- package/dist/cjs/utils/filter.utils.d.ts +1 -0
- package/dist/cjs/utils/price.utils.d.ts +2 -2
- package/dist/cjs/utils/tracking.utils.d.ts +4 -0
- package/dist/es/components/search-results/filters/facets/TermFacet.vue.d.ts +3 -2
- package/dist/es/constants/development/searchBoxDev.example.const.d.ts +1 -0
- package/dist/es/constants/development/searchResultsDev.example.const.d.ts +1 -0
- package/dist/es/constants/queryParams.const.d.ts +1 -0
- package/dist/es/index.d.ts +1 -0
- package/dist/es/index.min.js +442 -233
- package/dist/es/store/modules/searchBox.d.ts +4 -3
- package/dist/es/types/General.d.ts +4 -0
- package/dist/es/types/search-box/SearchBoxOptions.d.ts +1 -0
- package/dist/es/types/search-results/SearchResultsOptions.d.ts +1 -0
- package/dist/es/utils/filter.toggle.utils.d.ts +1 -1
- package/dist/es/utils/filter.utils.d.ts +1 -0
- package/dist/es/utils/price.utils.d.ts +2 -2
- package/dist/es/utils/tracking.utils.d.ts +4 -0
- package/dist/iife/components/search-results/filters/facets/TermFacet.vue.d.ts +3 -2
- package/dist/iife/constants/development/searchBoxDev.example.const.d.ts +1 -0
- package/dist/iife/constants/development/searchResultsDev.example.const.d.ts +1 -0
- package/dist/iife/constants/queryParams.const.d.ts +1 -0
- package/dist/iife/index.d.ts +1 -0
- package/dist/iife/index.min.js +1 -1
- package/dist/iife/store/modules/searchBox.d.ts +4 -3
- package/dist/iife/types/General.d.ts +4 -0
- package/dist/iife/types/search-box/SearchBoxOptions.d.ts +1 -0
- package/dist/iife/types/search-results/SearchResultsOptions.d.ts +1 -0
- package/dist/iife/utils/filter.toggle.utils.d.ts +1 -1
- package/dist/iife/utils/filter.utils.d.ts +1 -0
- package/dist/iife/utils/price.utils.d.ts +2 -2
- package/dist/iife/utils/tracking.utils.d.ts +4 -0
- package/package.json +2 -2
- package/.github/workflows/build-test.yml +0 -23
- package/.github/workflows/npm-publish.yml +0 -24
- package/cypress.json +0 -1
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@ To
|
|
|
14
14
|
|
|
15
15
|
- `src/constants/development/searchResultsDev.const.ts`.
|
|
16
16
|
|
|
17
|
-
If files are copied, development build will not work.
|
|
17
|
+
If files are not copied, development build will not work.
|
|
18
18
|
|
|
19
19
|
## Project setup
|
|
20
20
|
|
|
@@ -62,10 +62,18 @@ See [Configuration Reference](https://cli.vuejs.org/config/).
|
|
|
62
62
|
|
|
63
63
|
## Documentation
|
|
64
64
|
|
|
65
|
-
If you are integrating standalone version of the plugin (as a cdn link):
|
|
65
|
+
If you are integrating **standalone** version of the plugin (as a **cdn** link):
|
|
66
66
|
|
|
67
67
|
- See [Getting Started - Standalone](/docs/getting-started-standalone.md) for more information about plugin integration.
|
|
68
68
|
|
|
69
|
-
For integration as an npm package
|
|
69
|
+
For integration as an **npm package**:
|
|
70
70
|
|
|
71
71
|
- See [Getting Started - npm](/docs/getting-started-npm.md) for more information about plugin integration.
|
|
72
|
+
|
|
73
|
+
For more information about individual components and all available options:
|
|
74
|
+
|
|
75
|
+
- [Search Box](/docs/components/search-box.md)
|
|
76
|
+
|
|
77
|
+
- [Search Results](/docs/components/search-results.md)
|
|
78
|
+
|
|
79
|
+
- [Tracing and Analytics](/docs/components/tracking.md)
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import Vue from "vue";
|
|
2
|
-
import { FacetGroup, FacetGroupItem, FilterGroupItemTypeTerms } from "@getlupa/client-sdk/Types";
|
|
2
|
+
import { FacetGroup, FacetGroupItem, FilterGroupItemTypeRange, FilterGroupItemTypeTerms } from "@getlupa/client-sdk/Types";
|
|
3
3
|
import { ResultFacetOptions } from "@/types/search-results/SearchResultsOptions";
|
|
4
4
|
export default class TermFacet extends Vue {
|
|
5
5
|
options: ResultFacetOptions;
|
|
6
6
|
facet: FacetGroup;
|
|
7
|
-
currentFilters: FilterGroupItemTypeTerms;
|
|
7
|
+
currentFilters: FilterGroupItemTypeTerms | FilterGroupItemTypeRange[];
|
|
8
8
|
showAll: boolean;
|
|
9
9
|
termFilter: string;
|
|
10
10
|
get itemLimit(): number;
|
|
@@ -12,6 +12,7 @@ export default class TermFacet extends Vue {
|
|
|
12
12
|
get displayValues(): FacetGroupItem[];
|
|
13
13
|
get filteredValues(): FacetGroupItem[];
|
|
14
14
|
get isFilterable(): boolean;
|
|
15
|
+
get isRange(): boolean;
|
|
15
16
|
handleFacetClick(item: FacetGroupItem): void;
|
|
16
17
|
handleShowAll(): void;
|
|
17
18
|
isChecked(item: FacetGroupItem): boolean;
|