@searchstax-inc/searchstudio-ux-vue 0.2.2 → 0.2.4
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 +16 -0
- package/dist/@searchstax-inc/components/SearchstaxFacetsWidget.vue.d.ts +1 -1
- package/dist/@searchstax-inc/components/SearchstaxPaginationWidget.vue.d.ts +1 -0
- package/dist/@searchstax-inc/components/SearchstaxPaginationWidget.vue.d.ts.map +1 -1
- package/dist/@searchstax-inc/components/SearchstaxResultWidget.vue.d.ts +17 -1
- package/dist/@searchstax-inc/searchstudio-ux-vue.cjs +5 -5
- package/dist/@searchstax-inc/searchstudio-ux-vue.iife.js +5 -5
- package/dist/@searchstax-inc/searchstudio-ux-vue.mjs +405 -373
- package/dist/@searchstax-inc/stores/searchstaxStore.d.ts +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -206,6 +206,11 @@ example of results widget initialization with minimum options
|
|
|
206
206
|
<SearchstaxResultWidget :afterLinkClick="afterLinkClick"></SearchstaxResultWidget>
|
|
207
207
|
```
|
|
208
208
|
|
|
209
|
+
example of results widget initialization with infinite scroll behavior
|
|
210
|
+
```
|
|
211
|
+
<SearchstaxResultWidget :afterLinkClick="afterLinkClick" :resultsPerPage="3" :renderMethod="'infiniteScroll'"></SearchstaxResultWidget>
|
|
212
|
+
```
|
|
213
|
+
|
|
209
214
|
example of result widget initialization with template override
|
|
210
215
|
```
|
|
211
216
|
<SearchstaxResultWidget :afterLinkClick="afterLinkClick">
|
|
@@ -308,6 +313,17 @@ example of pagination widget initialization with various options
|
|
|
308
313
|
</div>
|
|
309
314
|
</template>
|
|
310
315
|
```
|
|
316
|
+
example of pagination widget initialization with infinite scroll template override
|
|
317
|
+
```
|
|
318
|
+
<template #infiniteScroll="{ nextPage }">
|
|
319
|
+
<div className="searchstax-pagination-container"
|
|
320
|
+
<a
|
|
321
|
+
class="searchstax-pagination-load-more"
|
|
322
|
+
@click="nextPage"
|
|
323
|
+
>Load More override</a>
|
|
324
|
+
</div>
|
|
325
|
+
</template>
|
|
326
|
+
```
|
|
311
327
|
|
|
312
328
|
### Facets Widget ###
|
|
313
329
|
|
|
@@ -1064,7 +1064,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
1064
1064
|
readonly cookiesDisabled: boolean;
|
|
1065
1065
|
};
|
|
1066
1066
|
config: {
|
|
1067
|
-
renderMethod?: "
|
|
1067
|
+
renderMethod?: "infiniteScroll" | "pagination";
|
|
1068
1068
|
resultsPerPage?: number;
|
|
1069
1069
|
templates?: {
|
|
1070
1070
|
mainTemplate?: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchstaxPaginationWidget.vue.d.ts","sourceRoot":"","sources":["../../src/components/SearchstaxPaginationWidget.vue"],"names":[],"mappings":"AACA,cAAc,iJAAiJ,CAAC;;
|
|
1
|
+
{"version":3,"file":"SearchstaxPaginationWidget.vue.d.ts","sourceRoot":"","sources":["../../src/components/SearchstaxPaginationWidget.vue"],"names":[],"mappings":"AACA,cAAc,iJAAiJ,CAAC;;AA4DhK,wBAAiF"}
|
|
@@ -5,6 +5,14 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
5
5
|
type: PropType<(results: ISearchstaxParsedResult) => ISearchstaxParsedResult>;
|
|
6
6
|
required: false;
|
|
7
7
|
};
|
|
8
|
+
resultsPerPage: {
|
|
9
|
+
type: PropType<number>;
|
|
10
|
+
required: false;
|
|
11
|
+
};
|
|
12
|
+
renderMethod: {
|
|
13
|
+
type: PropType<"infiniteScroll" | "pagination">;
|
|
14
|
+
required: false;
|
|
15
|
+
};
|
|
8
16
|
}, unknown, {
|
|
9
17
|
searchResults: ISearchstaxParsedResult[];
|
|
10
18
|
metadata: ISearchstaxSearchMetadata;
|
|
@@ -1053,7 +1061,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
1053
1061
|
readonly cookiesDisabled: boolean;
|
|
1054
1062
|
};
|
|
1055
1063
|
config: {
|
|
1056
|
-
renderMethod?: "
|
|
1064
|
+
renderMethod?: "infiniteScroll" | "pagination";
|
|
1057
1065
|
resultsPerPage?: number;
|
|
1058
1066
|
templates?: {
|
|
1059
1067
|
mainTemplate?: {
|
|
@@ -9454,5 +9462,13 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
9454
9462
|
type: PropType<(results: ISearchstaxParsedResult) => ISearchstaxParsedResult>;
|
|
9455
9463
|
required: false;
|
|
9456
9464
|
};
|
|
9465
|
+
resultsPerPage: {
|
|
9466
|
+
type: PropType<number>;
|
|
9467
|
+
required: false;
|
|
9468
|
+
};
|
|
9469
|
+
renderMethod: {
|
|
9470
|
+
type: PropType<"infiniteScroll" | "pagination">;
|
|
9471
|
+
required: false;
|
|
9472
|
+
};
|
|
9457
9473
|
}>>, {}, {}>;
|
|
9458
9474
|
export default _sfc_main;
|