@getlupa/client 0.7.0-alpha-16 → 0.7.0-alpha-19
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/dist/cjs/components/search-results/filters/facets/StatsFacet.vue.d.ts +2 -0
- package/dist/cjs/index.min.js +35 -10
- package/dist/cjs/types/DocumentElement.d.ts +1 -0
- package/dist/es/components/search-results/filters/facets/StatsFacet.vue.d.ts +2 -0
- package/dist/es/index.min.js +35 -10
- package/dist/es/types/DocumentElement.d.ts +1 -0
- package/dist/iife/components/search-results/filters/facets/StatsFacet.vue.d.ts +2 -0
- package/dist/iife/index.min.js +1 -1
- package/dist/iife/types/DocumentElement.d.ts +1 -0
- package/package.json +1 -1
|
@@ -26,6 +26,8 @@ export default class TermFacet extends Vue {
|
|
|
26
26
|
get facetMin(): number;
|
|
27
27
|
get facetMax(): number;
|
|
28
28
|
get statsSummary(): string;
|
|
29
|
+
get separator(): string;
|
|
30
|
+
get sliderInputFormat(): string | undefined;
|
|
29
31
|
onMinValueChange(): void;
|
|
30
32
|
onMaxValueChange(): void;
|
|
31
33
|
handleInputChange(): void;
|
package/dist/cjs/index.min.js
CHANGED
|
@@ -14806,7 +14806,7 @@ let TermFacet = class TermFacet extends Vue$1 {
|
|
|
14806
14806
|
}
|
|
14807
14807
|
get fromValue() {
|
|
14808
14808
|
return this.isPrice
|
|
14809
|
-
? this.sliderRange[0].toFixed(2)
|
|
14809
|
+
? this.sliderRange[0].toFixed(2).replace(".", this.separator)
|
|
14810
14810
|
: `${this.sliderRange[0]}`;
|
|
14811
14811
|
}
|
|
14812
14812
|
set fromValue(stringValue) {
|
|
@@ -14822,7 +14822,7 @@ let TermFacet = class TermFacet extends Vue$1 {
|
|
|
14822
14822
|
}
|
|
14823
14823
|
get toValue() {
|
|
14824
14824
|
return this.isPrice
|
|
14825
|
-
? this.sliderRange[1].toFixed(2)
|
|
14825
|
+
? this.sliderRange[1].toFixed(2).replace(".", this.separator)
|
|
14826
14826
|
: `${this.sliderRange[1]}`;
|
|
14827
14827
|
}
|
|
14828
14828
|
set toValue(stringValue) {
|
|
@@ -14881,9 +14881,16 @@ let TermFacet = class TermFacet extends Vue$1 {
|
|
|
14881
14881
|
get statsSummary() {
|
|
14882
14882
|
const [min, max] = this.sliderRange;
|
|
14883
14883
|
return this.isPrice
|
|
14884
|
-
? formatPriceSummary([min, max], this.currency, this.
|
|
14884
|
+
? formatPriceSummary([min, max], this.currency, this.separator)
|
|
14885
14885
|
: formatRange({ gte: min, lte: max });
|
|
14886
14886
|
}
|
|
14887
|
+
get separator() {
|
|
14888
|
+
var _a, _b, _c;
|
|
14889
|
+
return (_c = (_b = (_a = this.searchResultOptions) === null || _a === void 0 ? void 0 : _a.labels) === null || _b === void 0 ? void 0 : _b.priceSeparator) !== null && _c !== void 0 ? _c : ",";
|
|
14890
|
+
}
|
|
14891
|
+
get sliderInputFormat() {
|
|
14892
|
+
return this.isPrice ? `[0-9]+([${this.separator}][0-9]{1,2})?` : undefined;
|
|
14893
|
+
}
|
|
14887
14894
|
onMinValueChange() {
|
|
14888
14895
|
this.innerSliderRange = [];
|
|
14889
14896
|
}
|
|
@@ -14974,10 +14981,10 @@ var __vue_render__$N = function () {
|
|
|
14974
14981
|
},
|
|
14975
14982
|
],
|
|
14976
14983
|
attrs: {
|
|
14977
|
-
type: "
|
|
14984
|
+
type: "text",
|
|
14978
14985
|
max: _vm.facetMax,
|
|
14979
14986
|
min: _vm.facetMin,
|
|
14980
|
-
|
|
14987
|
+
pattern: _vm.sliderInputFormat,
|
|
14981
14988
|
},
|
|
14982
14989
|
domProps: { value: _vm.fromValue },
|
|
14983
14990
|
on: {
|
|
@@ -15014,10 +15021,10 @@ var __vue_render__$N = function () {
|
|
|
15014
15021
|
},
|
|
15015
15022
|
],
|
|
15016
15023
|
attrs: {
|
|
15017
|
-
type: "
|
|
15024
|
+
type: "text",
|
|
15018
15025
|
max: _vm.facetMax,
|
|
15019
15026
|
min: _vm.facetMin,
|
|
15020
|
-
|
|
15027
|
+
pattern: _vm.sliderInputFormat,
|
|
15021
15028
|
},
|
|
15022
15029
|
domProps: { value: _vm.toValue },
|
|
15023
15030
|
on: {
|
|
@@ -22421,6 +22428,7 @@ const tracking = (options) => {
|
|
|
22421
22428
|
initTracking(options);
|
|
22422
22429
|
};
|
|
22423
22430
|
const searchBox = (options) => {
|
|
22431
|
+
clearSearchBox();
|
|
22424
22432
|
Vue$1.use(Vuex);
|
|
22425
22433
|
app.box = new Vue$1({
|
|
22426
22434
|
el: options.inputSelector,
|
|
@@ -22430,6 +22438,7 @@ const searchBox = (options) => {
|
|
|
22430
22438
|
});
|
|
22431
22439
|
};
|
|
22432
22440
|
const searchResults = (options) => {
|
|
22441
|
+
clearSearchResults();
|
|
22433
22442
|
Vue$1.use(Vuex);
|
|
22434
22443
|
app.results = new Vue$1({
|
|
22435
22444
|
el: options.containerSelector,
|
|
@@ -22439,6 +22448,7 @@ const searchResults = (options) => {
|
|
|
22439
22448
|
});
|
|
22440
22449
|
};
|
|
22441
22450
|
const productList = (options) => {
|
|
22451
|
+
clearProductList();
|
|
22442
22452
|
Vue$1.use(Vuex);
|
|
22443
22453
|
app.productList = new Vue$1({
|
|
22444
22454
|
el: options.containerSelector,
|
|
@@ -22449,15 +22459,30 @@ const productList = (options) => {
|
|
|
22449
22459
|
};
|
|
22450
22460
|
const clearSearchBox = () => {
|
|
22451
22461
|
var _a;
|
|
22452
|
-
|
|
22462
|
+
try {
|
|
22463
|
+
(_a = app.box) === null || _a === void 0 ? void 0 : _a.$destroy();
|
|
22464
|
+
}
|
|
22465
|
+
catch (_b) {
|
|
22466
|
+
// do nothing, already destroyed;
|
|
22467
|
+
}
|
|
22453
22468
|
};
|
|
22454
22469
|
const clearSearchResults = () => {
|
|
22455
22470
|
var _a;
|
|
22456
|
-
|
|
22471
|
+
try {
|
|
22472
|
+
(_a = app.results) === null || _a === void 0 ? void 0 : _a.$destroy();
|
|
22473
|
+
}
|
|
22474
|
+
catch (_b) {
|
|
22475
|
+
// do nothing, already destroyed;
|
|
22476
|
+
}
|
|
22457
22477
|
};
|
|
22458
22478
|
const clearProductList = () => {
|
|
22459
22479
|
var _a;
|
|
22460
|
-
|
|
22480
|
+
try {
|
|
22481
|
+
(_a = app.productList) === null || _a === void 0 ? void 0 : _a.$destroy();
|
|
22482
|
+
}
|
|
22483
|
+
catch (_b) {
|
|
22484
|
+
// do nothing, already destroyed;
|
|
22485
|
+
}
|
|
22461
22486
|
};
|
|
22462
22487
|
const lupaSearch = {
|
|
22463
22488
|
searchBox,
|
|
@@ -35,6 +35,7 @@ export declare type DescriptionDocumentElement<T = any> = DocumentElementBase<T>
|
|
|
35
35
|
};
|
|
36
36
|
export declare type CustomDocumentElement<T = any> = DocumentElementBase<T> & {
|
|
37
37
|
type: DocumentElementType.CUSTOM;
|
|
38
|
+
maxLines?: number;
|
|
38
39
|
className: string;
|
|
39
40
|
key: string;
|
|
40
41
|
};
|
|
@@ -26,6 +26,8 @@ export default class TermFacet extends Vue {
|
|
|
26
26
|
get facetMin(): number;
|
|
27
27
|
get facetMax(): number;
|
|
28
28
|
get statsSummary(): string;
|
|
29
|
+
get separator(): string;
|
|
30
|
+
get sliderInputFormat(): string | undefined;
|
|
29
31
|
onMinValueChange(): void;
|
|
30
32
|
onMaxValueChange(): void;
|
|
31
33
|
handleInputChange(): void;
|
package/dist/es/index.min.js
CHANGED
|
@@ -14802,7 +14802,7 @@ let TermFacet = class TermFacet extends Vue$1 {
|
|
|
14802
14802
|
}
|
|
14803
14803
|
get fromValue() {
|
|
14804
14804
|
return this.isPrice
|
|
14805
|
-
? this.sliderRange[0].toFixed(2)
|
|
14805
|
+
? this.sliderRange[0].toFixed(2).replace(".", this.separator)
|
|
14806
14806
|
: `${this.sliderRange[0]}`;
|
|
14807
14807
|
}
|
|
14808
14808
|
set fromValue(stringValue) {
|
|
@@ -14818,7 +14818,7 @@ let TermFacet = class TermFacet extends Vue$1 {
|
|
|
14818
14818
|
}
|
|
14819
14819
|
get toValue() {
|
|
14820
14820
|
return this.isPrice
|
|
14821
|
-
? this.sliderRange[1].toFixed(2)
|
|
14821
|
+
? this.sliderRange[1].toFixed(2).replace(".", this.separator)
|
|
14822
14822
|
: `${this.sliderRange[1]}`;
|
|
14823
14823
|
}
|
|
14824
14824
|
set toValue(stringValue) {
|
|
@@ -14877,9 +14877,16 @@ let TermFacet = class TermFacet extends Vue$1 {
|
|
|
14877
14877
|
get statsSummary() {
|
|
14878
14878
|
const [min, max] = this.sliderRange;
|
|
14879
14879
|
return this.isPrice
|
|
14880
|
-
? formatPriceSummary([min, max], this.currency, this.
|
|
14880
|
+
? formatPriceSummary([min, max], this.currency, this.separator)
|
|
14881
14881
|
: formatRange({ gte: min, lte: max });
|
|
14882
14882
|
}
|
|
14883
|
+
get separator() {
|
|
14884
|
+
var _a, _b, _c;
|
|
14885
|
+
return (_c = (_b = (_a = this.searchResultOptions) === null || _a === void 0 ? void 0 : _a.labels) === null || _b === void 0 ? void 0 : _b.priceSeparator) !== null && _c !== void 0 ? _c : ",";
|
|
14886
|
+
}
|
|
14887
|
+
get sliderInputFormat() {
|
|
14888
|
+
return this.isPrice ? `[0-9]+([${this.separator}][0-9]{1,2})?` : undefined;
|
|
14889
|
+
}
|
|
14883
14890
|
onMinValueChange() {
|
|
14884
14891
|
this.innerSliderRange = [];
|
|
14885
14892
|
}
|
|
@@ -14970,10 +14977,10 @@ var __vue_render__$N = function () {
|
|
|
14970
14977
|
},
|
|
14971
14978
|
],
|
|
14972
14979
|
attrs: {
|
|
14973
|
-
type: "
|
|
14980
|
+
type: "text",
|
|
14974
14981
|
max: _vm.facetMax,
|
|
14975
14982
|
min: _vm.facetMin,
|
|
14976
|
-
|
|
14983
|
+
pattern: _vm.sliderInputFormat,
|
|
14977
14984
|
},
|
|
14978
14985
|
domProps: { value: _vm.fromValue },
|
|
14979
14986
|
on: {
|
|
@@ -15010,10 +15017,10 @@ var __vue_render__$N = function () {
|
|
|
15010
15017
|
},
|
|
15011
15018
|
],
|
|
15012
15019
|
attrs: {
|
|
15013
|
-
type: "
|
|
15020
|
+
type: "text",
|
|
15014
15021
|
max: _vm.facetMax,
|
|
15015
15022
|
min: _vm.facetMin,
|
|
15016
|
-
|
|
15023
|
+
pattern: _vm.sliderInputFormat,
|
|
15017
15024
|
},
|
|
15018
15025
|
domProps: { value: _vm.toValue },
|
|
15019
15026
|
on: {
|
|
@@ -22417,6 +22424,7 @@ const tracking = (options) => {
|
|
|
22417
22424
|
initTracking(options);
|
|
22418
22425
|
};
|
|
22419
22426
|
const searchBox = (options) => {
|
|
22427
|
+
clearSearchBox();
|
|
22420
22428
|
Vue$1.use(Vuex);
|
|
22421
22429
|
app.box = new Vue$1({
|
|
22422
22430
|
el: options.inputSelector,
|
|
@@ -22426,6 +22434,7 @@ const searchBox = (options) => {
|
|
|
22426
22434
|
});
|
|
22427
22435
|
};
|
|
22428
22436
|
const searchResults = (options) => {
|
|
22437
|
+
clearSearchResults();
|
|
22429
22438
|
Vue$1.use(Vuex);
|
|
22430
22439
|
app.results = new Vue$1({
|
|
22431
22440
|
el: options.containerSelector,
|
|
@@ -22435,6 +22444,7 @@ const searchResults = (options) => {
|
|
|
22435
22444
|
});
|
|
22436
22445
|
};
|
|
22437
22446
|
const productList = (options) => {
|
|
22447
|
+
clearProductList();
|
|
22438
22448
|
Vue$1.use(Vuex);
|
|
22439
22449
|
app.productList = new Vue$1({
|
|
22440
22450
|
el: options.containerSelector,
|
|
@@ -22445,15 +22455,30 @@ const productList = (options) => {
|
|
|
22445
22455
|
};
|
|
22446
22456
|
const clearSearchBox = () => {
|
|
22447
22457
|
var _a;
|
|
22448
|
-
|
|
22458
|
+
try {
|
|
22459
|
+
(_a = app.box) === null || _a === void 0 ? void 0 : _a.$destroy();
|
|
22460
|
+
}
|
|
22461
|
+
catch (_b) {
|
|
22462
|
+
// do nothing, already destroyed;
|
|
22463
|
+
}
|
|
22449
22464
|
};
|
|
22450
22465
|
const clearSearchResults = () => {
|
|
22451
22466
|
var _a;
|
|
22452
|
-
|
|
22467
|
+
try {
|
|
22468
|
+
(_a = app.results) === null || _a === void 0 ? void 0 : _a.$destroy();
|
|
22469
|
+
}
|
|
22470
|
+
catch (_b) {
|
|
22471
|
+
// do nothing, already destroyed;
|
|
22472
|
+
}
|
|
22453
22473
|
};
|
|
22454
22474
|
const clearProductList = () => {
|
|
22455
22475
|
var _a;
|
|
22456
|
-
|
|
22476
|
+
try {
|
|
22477
|
+
(_a = app.productList) === null || _a === void 0 ? void 0 : _a.$destroy();
|
|
22478
|
+
}
|
|
22479
|
+
catch (_b) {
|
|
22480
|
+
// do nothing, already destroyed;
|
|
22481
|
+
}
|
|
22457
22482
|
};
|
|
22458
22483
|
const lupaSearch = {
|
|
22459
22484
|
searchBox,
|
|
@@ -35,6 +35,7 @@ export declare type DescriptionDocumentElement<T = any> = DocumentElementBase<T>
|
|
|
35
35
|
};
|
|
36
36
|
export declare type CustomDocumentElement<T = any> = DocumentElementBase<T> & {
|
|
37
37
|
type: DocumentElementType.CUSTOM;
|
|
38
|
+
maxLines?: number;
|
|
38
39
|
className: string;
|
|
39
40
|
key: string;
|
|
40
41
|
};
|
|
@@ -26,6 +26,8 @@ export default class TermFacet extends Vue {
|
|
|
26
26
|
get facetMin(): number;
|
|
27
27
|
get facetMax(): number;
|
|
28
28
|
get statsSummary(): string;
|
|
29
|
+
get separator(): string;
|
|
30
|
+
get sliderInputFormat(): string | undefined;
|
|
29
31
|
onMinValueChange(): void;
|
|
30
32
|
onMaxValueChange(): void;
|
|
31
33
|
handleInputChange(): void;
|