@searchstax-inc/searchstudio-ux-angular 0.0.2 → 1.0.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 +734 -13
- package/esm2020/lib/components/searchstax-search-external/searchstax-search-external.component.mjs +40 -0
- package/esm2020/lib/components/searchstax-search-facets/searchstax-search-facets.component.mjs +112 -0
- package/esm2020/lib/components/searchstax-search-overview/searchstax-search-overview.component.mjs +3 -3
- package/esm2020/lib/components/searchstax-search-pagination/searchstax-search-pagination.component.mjs +3 -3
- package/esm2020/lib/components/searchstax-search-related/searchstax-search-related.component.mjs +44 -0
- package/esm2020/lib/components/searchstax-search-sorting/searchstax-search-sorting.component.mjs +45 -0
- package/esm2020/lib/searchstudio-ux-angular.module.mjs +25 -5
- package/esm2020/public-api.mjs +5 -1
- package/fesm2015/searchstax-inc-searchstudio-ux-angular.mjs +264 -9
- package/fesm2015/searchstax-inc-searchstudio-ux-angular.mjs.map +1 -1
- package/fesm2020/searchstax-inc-searchstudio-ux-angular.mjs +250 -9
- package/fesm2020/searchstax-inc-searchstudio-ux-angular.mjs.map +1 -1
- package/lib/components/searchstax-search-external/searchstax-search-external.component.d.ts +17 -0
- package/lib/components/searchstax-search-facets/searchstax-search-facets.component.d.ts +37 -0
- package/lib/components/searchstax-search-overview/searchstax-search-overview.component.d.ts +1 -1
- package/lib/components/searchstax-search-pagination/searchstax-search-pagination.component.d.ts +1 -1
- package/lib/components/searchstax-search-related/searchstax-search-related.component.d.ts +19 -0
- package/lib/components/searchstax-search-sorting/searchstax-search-sorting.component.d.ts +18 -0
- package/lib/searchstudio-ux-angular.module.d.ts +6 -2
- package/package.json +1 -1
- package/public-api.d.ts +4 -0
|
@@ -255,10 +255,10 @@ class SearchstaxSearchFeedbackWidget {
|
|
|
255
255
|
}
|
|
256
256
|
}
|
|
257
257
|
SearchstaxSearchFeedbackWidget.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: SearchstaxSearchFeedbackWidget, deps: [{ token: StoreServiceService }], target: i0.ɵɵFactoryTarget.Component });
|
|
258
|
-
SearchstaxSearchFeedbackWidget.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.3", type: SearchstaxSearchFeedbackWidget, selector: "app-searchstax-
|
|
258
|
+
SearchstaxSearchFeedbackWidget.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.3", type: SearchstaxSearchFeedbackWidget, selector: "app-searchstax-search-feedback", inputs: { templateOverride: "templateOverride" }, ngImport: i0, template: "<div\n class=\"search-feedback-container\"\n [id]=\"'search-feedback-container' + rand\"\n>\n <div\n class=\"searchstax-feedback-container\"\n *ngIf=\"\n searchFeedbackData &&\n searchFeedbackData?.searchExecuted &&\n !templateOverride &&\n searchFeedbackData?.totalResults\n \"\n >\n Showing\n <b\n >{{ searchFeedbackData!.startResultIndex }} -\n {{ searchFeedbackData!.endResultIndex }}</b\n >\n of <b>{{ searchFeedbackData!.totalResults }}</b> results\n <span *ngIf=\"searchFeedbackData.searchTerm\"\n >for \"<b>{{ searchFeedbackData!.searchTerm }}</b\n >\"\n </span>\n <div class=\"searchstax-feedback-container-suggested\">\n <div *ngIf=\"searchFeedbackData.autoCorrectedQuery\">\n Search instead for\n <a\n href=\"#\"\n (click)=\"onOriginalQueryClick($event, context)\"\n class=\"searchstax-feedback-original-query\"\n >{{ searchFeedbackData!.originalQuery }}</a\n >\n </div>\n </div>\n </div>\n\n <div\n *ngIf=\"\n searchFeedbackData &&\n searchFeedbackData?.searchExecuted &&\n templateOverride &&\n searchFeedbackData?.totalResults\n \"\n >\n <ng-container\n *ngTemplateOutlet=\"templateOverride; context: context\"\n ></ng-container>\n </div>\n</div>\n", directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
|
|
259
259
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: SearchstaxSearchFeedbackWidget, decorators: [{
|
|
260
260
|
type: Component,
|
|
261
|
-
args: [{ selector: "app-searchstax-
|
|
261
|
+
args: [{ selector: "app-searchstax-search-feedback", styles: [], template: "<div\n class=\"search-feedback-container\"\n [id]=\"'search-feedback-container' + rand\"\n>\n <div\n class=\"searchstax-feedback-container\"\n *ngIf=\"\n searchFeedbackData &&\n searchFeedbackData?.searchExecuted &&\n !templateOverride &&\n searchFeedbackData?.totalResults\n \"\n >\n Showing\n <b\n >{{ searchFeedbackData!.startResultIndex }} -\n {{ searchFeedbackData!.endResultIndex }}</b\n >\n of <b>{{ searchFeedbackData!.totalResults }}</b> results\n <span *ngIf=\"searchFeedbackData.searchTerm\"\n >for \"<b>{{ searchFeedbackData!.searchTerm }}</b\n >\"\n </span>\n <div class=\"searchstax-feedback-container-suggested\">\n <div *ngIf=\"searchFeedbackData.autoCorrectedQuery\">\n Search instead for\n <a\n href=\"#\"\n (click)=\"onOriginalQueryClick($event, context)\"\n class=\"searchstax-feedback-original-query\"\n >{{ searchFeedbackData!.originalQuery }}</a\n >\n </div>\n </div>\n </div>\n\n <div\n *ngIf=\"\n searchFeedbackData &&\n searchFeedbackData?.searchExecuted &&\n templateOverride &&\n searchFeedbackData?.totalResults\n \"\n >\n <ng-container\n *ngTemplateOutlet=\"templateOverride; context: context\"\n ></ng-container>\n </div>\n</div>\n" }]
|
|
262
262
|
}], ctorParameters: function () { return [{ type: StoreServiceService }]; }, propDecorators: { templateOverride: [{
|
|
263
263
|
type: Input
|
|
264
264
|
}] } });
|
|
@@ -311,10 +311,235 @@ class SearchstaxSearchPaginationWidget {
|
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
313
|
SearchstaxSearchPaginationWidget.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: SearchstaxSearchPaginationWidget, deps: [{ token: StoreServiceService }], target: i0.ɵɵFactoryTarget.Component });
|
|
314
|
-
SearchstaxSearchPaginationWidget.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.3", type: SearchstaxSearchPaginationWidget, selector: "app-searchstax-
|
|
314
|
+
SearchstaxSearchPaginationWidget.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.3", type: SearchstaxSearchPaginationWidget, selector: "app-searchstax-search-pagination", inputs: { templateOverride: "templateOverride" }, ngImport: i0, template: "<div [id]=\"'searchstax-pagination-container' + rand\">\n <div\n class=\"searchstax-pagination-container\"\n *ngIf=\"paginationData?.totalResults && !templateOverride\"\n >\n <div class=\"searchstax-pagination-content\">\n <a\n class=\"searchstax-pagination-previous\"\n (click)=\"previousPage($event, context)\"\n id=\"searchstax-pagination-previous\"\n >\n < Previous\n </a>\n <div class=\"searchstax-pagination-details\">\n {{ paginationData?.startResultIndex }} -\n {{ paginationData?.endResultIndex }} of\n {{ paginationData?.totalResults }}\n </div>\n <a\n class=\"searchstax-pagination-next\"\n (click)=\"nextPage($event, context)\"\n id=\"searchstax-pagination-next\"\n >Next ></a\n >\n </div>\n </div>\n\n <div *ngIf=\"paginationData?.totalResults && templateOverride\">\n <ng-container\n *ngTemplateOutlet=\"templateOverride; context: context\"\n ></ng-container>\n </div>\n</div>\n", directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
|
|
315
315
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: SearchstaxSearchPaginationWidget, decorators: [{
|
|
316
316
|
type: Component,
|
|
317
|
-
args: [{ selector: "app-searchstax-
|
|
317
|
+
args: [{ selector: "app-searchstax-search-pagination", styles: [], template: "<div [id]=\"'searchstax-pagination-container' + rand\">\n <div\n class=\"searchstax-pagination-container\"\n *ngIf=\"paginationData?.totalResults && !templateOverride\"\n >\n <div class=\"searchstax-pagination-content\">\n <a\n class=\"searchstax-pagination-previous\"\n (click)=\"previousPage($event, context)\"\n id=\"searchstax-pagination-previous\"\n >\n < Previous\n </a>\n <div class=\"searchstax-pagination-details\">\n {{ paginationData?.startResultIndex }} -\n {{ paginationData?.endResultIndex }} of\n {{ paginationData?.totalResults }}\n </div>\n <a\n class=\"searchstax-pagination-next\"\n (click)=\"nextPage($event, context)\"\n id=\"searchstax-pagination-next\"\n >Next ></a\n >\n </div>\n </div>\n\n <div *ngIf=\"paginationData?.totalResults && templateOverride\">\n <ng-container\n *ngTemplateOutlet=\"templateOverride; context: context\"\n ></ng-container>\n </div>\n</div>\n" }]
|
|
318
|
+
}], ctorParameters: function () { return [{ type: StoreServiceService }]; }, propDecorators: { templateOverride: [{
|
|
319
|
+
type: Input
|
|
320
|
+
}] } });
|
|
321
|
+
|
|
322
|
+
class SearchstaxSearchFacetsWidget {
|
|
323
|
+
// @ViewChildren("facetContainers") facetContainers: QueryList<ElementRef>;
|
|
324
|
+
constructor(storeServiceService) {
|
|
325
|
+
this.storeServiceService = storeServiceService;
|
|
326
|
+
this.facetsTemplateDataDesktop = null;
|
|
327
|
+
this.facetsTemplateDataMobile = null;
|
|
328
|
+
this.context = this;
|
|
329
|
+
this.selectedFacetsCheckboxes = [];
|
|
330
|
+
this.selectedFacetsRange = [];
|
|
331
|
+
this.rand = Math.random();
|
|
332
|
+
}
|
|
333
|
+
ngOnInit() {
|
|
334
|
+
if (this.storeServiceService.searchstax) {
|
|
335
|
+
this.attachObservables();
|
|
336
|
+
setTimeout(() => {
|
|
337
|
+
this.addWidget();
|
|
338
|
+
}, 0);
|
|
339
|
+
}
|
|
340
|
+
else {
|
|
341
|
+
throw Error("Searchstax instance needs to be passed via props");
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
addWidget() {
|
|
345
|
+
this.storeServiceService.searchstax.addFacetsWidget('searchstax-facets-container' + this.rand, {
|
|
346
|
+
facetingType: this.facetingType,
|
|
347
|
+
specificFacets: this.specificFacets,
|
|
348
|
+
itemsPerPageDesktop: this.itemsPerPageDesktop,
|
|
349
|
+
itemsPerPageMobile: this.itemsPerPageMobile
|
|
350
|
+
});
|
|
351
|
+
}
|
|
352
|
+
attachObservables() {
|
|
353
|
+
this.storeServiceService.searchstax.dataLayer.$facetsTemplateData.subscribe((data) => {
|
|
354
|
+
if (data?.isMobile) {
|
|
355
|
+
this.facetsTemplateDataMobile = data;
|
|
356
|
+
}
|
|
357
|
+
else {
|
|
358
|
+
this.facetsTemplateDataDesktop = data;
|
|
359
|
+
}
|
|
360
|
+
});
|
|
361
|
+
this.storeServiceService.searchstax.dataLayer.$selectedFacetsTemplateData.subscribe((data) => {
|
|
362
|
+
const da = data ?? [];
|
|
363
|
+
this.selectedFacetsCheckboxes = da.filter((d) => d.type === 'checkbox');
|
|
364
|
+
});
|
|
365
|
+
}
|
|
366
|
+
unselectFacet(facet, context) {
|
|
367
|
+
context.storeServiceService.searchstax.searchFacetsWidget?.unselectFacet(facet);
|
|
368
|
+
}
|
|
369
|
+
unselectAll(context) {
|
|
370
|
+
context.storeServiceService.searchstax.searchFacetsWidget?.removeSelectedFacets();
|
|
371
|
+
}
|
|
372
|
+
isNotDeactivated(name, context) {
|
|
373
|
+
return !context.storeServiceService.searchstax.searchFacetsWidget?.deactivatedFacets[name];
|
|
374
|
+
}
|
|
375
|
+
toggleFacetGroup(name, context) {
|
|
376
|
+
if (context.storeServiceService.searchstax.searchFacetsWidget)
|
|
377
|
+
if (this.isNotDeactivated(name, context)) {
|
|
378
|
+
context.storeServiceService.searchstax.searchFacetsWidget.deactivatedFacets[name] = true;
|
|
379
|
+
}
|
|
380
|
+
else {
|
|
381
|
+
context.storeServiceService.searchstax.searchFacetsWidget.deactivatedFacets[name] = false;
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
isChecked(facetValue, context) {
|
|
385
|
+
return context.storeServiceService.searchstax.searchFacetsWidget?.isChecked(facetValue);
|
|
386
|
+
}
|
|
387
|
+
selectFacet(el, event, data, isInput, context) {
|
|
388
|
+
const wrapperDiv = document.createElement('div');
|
|
389
|
+
wrapperDiv.innerHTML = el.outerHTML;
|
|
390
|
+
context.storeServiceService.searchstax.searchFacetsWidget?.onFacetSelect(event, data, el, isInput);
|
|
391
|
+
}
|
|
392
|
+
showMoreLessDesktop(e, data, context) {
|
|
393
|
+
context.storeServiceService.searchstax.searchFacetsWidget?.onShowMoreLessClick(e, data, false);
|
|
394
|
+
}
|
|
395
|
+
showMoreLessMobile(e, data, context) {
|
|
396
|
+
context.storeServiceService.searchstax.searchFacetsWidget?.onShowMoreLessClick(e, data, true);
|
|
397
|
+
}
|
|
398
|
+
openOverlay(context) {
|
|
399
|
+
context.storeServiceService.searchstax.searchFacetsWidget?.openOverlay();
|
|
400
|
+
}
|
|
401
|
+
closeOverlay(context) {
|
|
402
|
+
context.storeServiceService.searchstax.searchFacetsWidget?.closeOverlay();
|
|
403
|
+
}
|
|
404
|
+
facetValues(facet) {
|
|
405
|
+
return facet.values;
|
|
406
|
+
}
|
|
407
|
+
facetMobileData(facet) {
|
|
408
|
+
return facet;
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
SearchstaxSearchFacetsWidget.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: SearchstaxSearchFacetsWidget, deps: [{ token: StoreServiceService }], target: i0.ɵɵFactoryTarget.Component });
|
|
412
|
+
SearchstaxSearchFacetsWidget.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.3", type: SearchstaxSearchFacetsWidget, selector: "app-searchstax-search-facets", inputs: { templateOverrideMobile: "templateOverrideMobile", templateOverrideDesktop: "templateOverrideDesktop", facetingType: "facetingType", itemsPerPageDesktop: "itemsPerPageDesktop", itemsPerPageMobile: "itemsPerPageMobile", specificFacets: "specificFacets" }, ngImport: i0, template: "<div [id]=\"'searchstax-facets-container' + rand\">\n <div\n *ngIf=\"facetsTemplateDataDesktop?.hasResultsOrExternalPromotions && !templateOverrideDesktop\"\n class=\"searchstax-facets-container-desktop\"\n >\n <div\n class=\"searchstax-facet-container\"\n *ngFor=\"let facet of facetsTemplateDataDesktop?.facets\"\n [class]=\"{ active: isNotDeactivated(facet.name, context) }\"\n >\n <div>\n <div class=\"searchstax-facet-title-container\" (click)=\"toggleFacetGroup(facet.name, context)\">\n <div class=\"searchstax-facet-title\">{{ facet.label }}</div>\n <div class=\"searchstax-facet-title-arrow active\"></div>\n </div>\n <div class=\"searchstax-facet-values-container\">\n <div\n *ngFor=\"let facetValue of facetValues(facet); index as key\"\n class=\"searchstax-facet-value-container\"\n [class]=\"{ 'searchstax-facet-value-disabled': facetValue.disabled }\"\n #ref\n >\n <div class=\"searchstax-facet-input\">\n <input\n type=\"checkbox\"\n class=\"searchstax-facet-input-checkbox\"\n [checked]=\"isChecked(facetValue, context)\"\n [disabled]=\"facetValue.disabled\"\n (click)=\"selectFacet(ref, $event, facetValue, true, context)\"\n />\n </div>\n <div class=\"searchstax-facet-value-label\" (click)=\"selectFacet(ref, $event, facetValue, false, context)\">\n {{ facetValue.value }}\n </div>\n <div class=\"searchstax-facet-value-count\" (click)=\"selectFacet(ref, $event, facetValue, false, context)\">\n ({{ facetValue.count }})\n </div>\n </div>\n <div class=\"searchstax-facet-show-more-container\" *ngIf=\"facet.hasMoreFacets\">\n <div class=\"searchstax-facet-show-more-container\" (click)=\"showMoreLessDesktop($event, facet, context)\">\n <div\n *ngIf=\"facet.showingAllFacets\"\n class=\"searchstax-facet-show-less-button searchstax-facet-show-button\"\n >\n less\n </div>\n <div\n *ngIf=\"!facet.showingAllFacets\"\n class=\"searchstax-facet-show-more-button searchstax-facet-show-button\"\n >\n more\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div *ngIf=\"facetsTemplateDataDesktop?.hasResultsOrExternalPromotions && templateOverrideDesktop\">\n <ng-container *ngTemplateOutlet=\"templateOverrideDesktop; context: context\"></ng-container>\n </div>\n\n <div\n class=\"searchstax-facets-container-mobile\"\n *ngIf=\"facetsTemplateDataMobile?.hasResultsOrExternalPromotions && !templateOverrideMobile\"\n >\n <div class=\"searchstax-facets-pills-container\">\n <div class=\"searchstax-facets-pill searchstax-facets-pill-filter-by\" (click)=\"openOverlay(context)\">\n <div class=\"searchstax-facets-pill-label\">Filter By</div>\n </div>\n <div class=\"searchstax-facets-pills-selected\">\n <div\n class=\"searchstax-facets-pill searchstax-facets-pill-facets\"\n *ngFor=\"let facet of selectedFacetsCheckboxes\"\n (click)=\"unselectFacet(facet, context)\"\n >\n <div class=\"searchstax-facets-pill-label\">{{ facet.value }} ({{ facet.count }})</div>\n <div class=\"searchstax-facets-pill-icon-close\"></div>\n </div>\n </div>\n <div\n class=\"searchstax-facets-pill searchstax-clear-filters searchstax-facets-pill-clear-all\"\n *ngIf=\"selectedFacetsCheckboxes.length\"\n (click)=\"unselectAll(context)\"\n >\n <div class=\"searchstax-facets-pill-label\">Clear Filters</div>\n </div>\n </div>\n <div\n class=\"searchstax-facets-mobile-overlay\"\n [class]=\"{ 'searchstax-show': facetMobileData(facetsTemplateDataMobile)?.overlayOpened }\"\n >\n <div class=\"searchstax-facets-mobile-overlay-header\">\n <div class=\"searchstax-facets-mobile-overlay-header-title\">Filter By</div>\n <div class=\"searchstax-search-close\" (click)=\"closeOverlay(context)\"></div>\n </div>\n <div class=\"searchstax-facets-container-mobile\">\n <div\n *ngFor=\"let facet of facetsTemplateDataMobile?.facets\"\n class=\"searchstax-facet-container\"\n [class]=\"{ active: isNotDeactivated(facet.name, context) }\"\n >\n <div>\n <div class=\"searchstax-facet-title-container\" (click)=\"toggleFacetGroup(facet.name, context)\">\n <div class=\"searchstax-facet-title\">{{ facet.label }}</div>\n <div class=\"searchstax-facet-title-arrow active\"></div>\n </div>\n <div class=\"searchstax-facet-values-container\">\n <div\n *ngFor=\"let facetValue of facetValues(facet); index as key\"\n class=\"searchstax-facet-value-container\"\n [class]=\"{ 'searchstax-facet-value-disabled': facetValue.disabled }\"\n #ref\n >\n <div class=\"searchstax-facet-input\">\n <input\n type=\"checkbox\"\n class=\"searchstax-facet-input-checkbox\"\n [checked]=\"isChecked(facetValue, context)\"\n [disabled]=\"facetValue.disabled\"\n (click)=\"selectFacet(ref, $event, facetValue, true, context)\"\n />\n </div>\n <div\n class=\"searchstax-facet-value-label\"\n (click)=\"selectFacet(ref, $event, facetValue, false, context)\"\n >\n {{ facetValue.value }}\n </div>\n <div\n class=\"searchstax-facet-value-count\"\n (click)=\"selectFacet(ref, $event, facetValue, false, context)\"\n >\n ({{ facetValue.count }})\n </div>\n </div>\n <div class=\"searchstax-facet-show-more-container\" *ngIf=\"facet.hasMoreFacets\">\n <div class=\"searchstax-facet-show-more-container\" (click)=\"showMoreLessDesktop($event, facet, context)\">\n <div\n *ngIf=\"facet.showingAllFacets\"\n class=\"searchstax-facet-show-less-button searchstax-facet-show-button\"\n >\n less\n </div>\n <div\n *ngIf=\"!facet.showingAllFacets\"\n class=\"searchstax-facet-show-more-button searchstax-facet-show-button\"\n >\n more\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <button class=\"searchstax-facets-mobile-overlay-done\" (click)=\"closeOverlay(context)\">Done</button>\n </div>\n </div>\n <div *ngIf=\"facetsTemplateDataMobile?.hasResultsOrExternalPromotions && templateOverrideMobile\">\n <ng-container *ngTemplateOutlet=\"templateOverrideMobile; context: context\"></ng-container>\n </div>\n</div>\n", directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
|
|
413
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: SearchstaxSearchFacetsWidget, decorators: [{
|
|
414
|
+
type: Component,
|
|
415
|
+
args: [{ selector: "app-searchstax-search-facets", styles: [], template: "<div [id]=\"'searchstax-facets-container' + rand\">\n <div\n *ngIf=\"facetsTemplateDataDesktop?.hasResultsOrExternalPromotions && !templateOverrideDesktop\"\n class=\"searchstax-facets-container-desktop\"\n >\n <div\n class=\"searchstax-facet-container\"\n *ngFor=\"let facet of facetsTemplateDataDesktop?.facets\"\n [class]=\"{ active: isNotDeactivated(facet.name, context) }\"\n >\n <div>\n <div class=\"searchstax-facet-title-container\" (click)=\"toggleFacetGroup(facet.name, context)\">\n <div class=\"searchstax-facet-title\">{{ facet.label }}</div>\n <div class=\"searchstax-facet-title-arrow active\"></div>\n </div>\n <div class=\"searchstax-facet-values-container\">\n <div\n *ngFor=\"let facetValue of facetValues(facet); index as key\"\n class=\"searchstax-facet-value-container\"\n [class]=\"{ 'searchstax-facet-value-disabled': facetValue.disabled }\"\n #ref\n >\n <div class=\"searchstax-facet-input\">\n <input\n type=\"checkbox\"\n class=\"searchstax-facet-input-checkbox\"\n [checked]=\"isChecked(facetValue, context)\"\n [disabled]=\"facetValue.disabled\"\n (click)=\"selectFacet(ref, $event, facetValue, true, context)\"\n />\n </div>\n <div class=\"searchstax-facet-value-label\" (click)=\"selectFacet(ref, $event, facetValue, false, context)\">\n {{ facetValue.value }}\n </div>\n <div class=\"searchstax-facet-value-count\" (click)=\"selectFacet(ref, $event, facetValue, false, context)\">\n ({{ facetValue.count }})\n </div>\n </div>\n <div class=\"searchstax-facet-show-more-container\" *ngIf=\"facet.hasMoreFacets\">\n <div class=\"searchstax-facet-show-more-container\" (click)=\"showMoreLessDesktop($event, facet, context)\">\n <div\n *ngIf=\"facet.showingAllFacets\"\n class=\"searchstax-facet-show-less-button searchstax-facet-show-button\"\n >\n less\n </div>\n <div\n *ngIf=\"!facet.showingAllFacets\"\n class=\"searchstax-facet-show-more-button searchstax-facet-show-button\"\n >\n more\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div *ngIf=\"facetsTemplateDataDesktop?.hasResultsOrExternalPromotions && templateOverrideDesktop\">\n <ng-container *ngTemplateOutlet=\"templateOverrideDesktop; context: context\"></ng-container>\n </div>\n\n <div\n class=\"searchstax-facets-container-mobile\"\n *ngIf=\"facetsTemplateDataMobile?.hasResultsOrExternalPromotions && !templateOverrideMobile\"\n >\n <div class=\"searchstax-facets-pills-container\">\n <div class=\"searchstax-facets-pill searchstax-facets-pill-filter-by\" (click)=\"openOverlay(context)\">\n <div class=\"searchstax-facets-pill-label\">Filter By</div>\n </div>\n <div class=\"searchstax-facets-pills-selected\">\n <div\n class=\"searchstax-facets-pill searchstax-facets-pill-facets\"\n *ngFor=\"let facet of selectedFacetsCheckboxes\"\n (click)=\"unselectFacet(facet, context)\"\n >\n <div class=\"searchstax-facets-pill-label\">{{ facet.value }} ({{ facet.count }})</div>\n <div class=\"searchstax-facets-pill-icon-close\"></div>\n </div>\n </div>\n <div\n class=\"searchstax-facets-pill searchstax-clear-filters searchstax-facets-pill-clear-all\"\n *ngIf=\"selectedFacetsCheckboxes.length\"\n (click)=\"unselectAll(context)\"\n >\n <div class=\"searchstax-facets-pill-label\">Clear Filters</div>\n </div>\n </div>\n <div\n class=\"searchstax-facets-mobile-overlay\"\n [class]=\"{ 'searchstax-show': facetMobileData(facetsTemplateDataMobile)?.overlayOpened }\"\n >\n <div class=\"searchstax-facets-mobile-overlay-header\">\n <div class=\"searchstax-facets-mobile-overlay-header-title\">Filter By</div>\n <div class=\"searchstax-search-close\" (click)=\"closeOverlay(context)\"></div>\n </div>\n <div class=\"searchstax-facets-container-mobile\">\n <div\n *ngFor=\"let facet of facetsTemplateDataMobile?.facets\"\n class=\"searchstax-facet-container\"\n [class]=\"{ active: isNotDeactivated(facet.name, context) }\"\n >\n <div>\n <div class=\"searchstax-facet-title-container\" (click)=\"toggleFacetGroup(facet.name, context)\">\n <div class=\"searchstax-facet-title\">{{ facet.label }}</div>\n <div class=\"searchstax-facet-title-arrow active\"></div>\n </div>\n <div class=\"searchstax-facet-values-container\">\n <div\n *ngFor=\"let facetValue of facetValues(facet); index as key\"\n class=\"searchstax-facet-value-container\"\n [class]=\"{ 'searchstax-facet-value-disabled': facetValue.disabled }\"\n #ref\n >\n <div class=\"searchstax-facet-input\">\n <input\n type=\"checkbox\"\n class=\"searchstax-facet-input-checkbox\"\n [checked]=\"isChecked(facetValue, context)\"\n [disabled]=\"facetValue.disabled\"\n (click)=\"selectFacet(ref, $event, facetValue, true, context)\"\n />\n </div>\n <div\n class=\"searchstax-facet-value-label\"\n (click)=\"selectFacet(ref, $event, facetValue, false, context)\"\n >\n {{ facetValue.value }}\n </div>\n <div\n class=\"searchstax-facet-value-count\"\n (click)=\"selectFacet(ref, $event, facetValue, false, context)\"\n >\n ({{ facetValue.count }})\n </div>\n </div>\n <div class=\"searchstax-facet-show-more-container\" *ngIf=\"facet.hasMoreFacets\">\n <div class=\"searchstax-facet-show-more-container\" (click)=\"showMoreLessDesktop($event, facet, context)\">\n <div\n *ngIf=\"facet.showingAllFacets\"\n class=\"searchstax-facet-show-less-button searchstax-facet-show-button\"\n >\n less\n </div>\n <div\n *ngIf=\"!facet.showingAllFacets\"\n class=\"searchstax-facet-show-more-button searchstax-facet-show-button\"\n >\n more\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <button class=\"searchstax-facets-mobile-overlay-done\" (click)=\"closeOverlay(context)\">Done</button>\n </div>\n </div>\n <div *ngIf=\"facetsTemplateDataMobile?.hasResultsOrExternalPromotions && templateOverrideMobile\">\n <ng-container *ngTemplateOutlet=\"templateOverrideMobile; context: context\"></ng-container>\n </div>\n</div>\n" }]
|
|
416
|
+
}], ctorParameters: function () { return [{ type: StoreServiceService }]; }, propDecorators: { templateOverrideMobile: [{
|
|
417
|
+
type: Input
|
|
418
|
+
}], templateOverrideDesktop: [{
|
|
419
|
+
type: Input
|
|
420
|
+
}], facetingType: [{
|
|
421
|
+
type: Input
|
|
422
|
+
}], itemsPerPageDesktop: [{
|
|
423
|
+
type: Input
|
|
424
|
+
}], itemsPerPageMobile: [{
|
|
425
|
+
type: Input
|
|
426
|
+
}], specificFacets: [{
|
|
427
|
+
type: Input
|
|
428
|
+
}] } });
|
|
429
|
+
|
|
430
|
+
class SearchstaxSearchSortingWidget {
|
|
431
|
+
constructor(storeServiceService) {
|
|
432
|
+
this.storeServiceService = storeServiceService;
|
|
433
|
+
this.sortingData = null;
|
|
434
|
+
this.rand = Math.random();
|
|
435
|
+
this.context = this;
|
|
436
|
+
this.selectedSorting = "";
|
|
437
|
+
}
|
|
438
|
+
ngOnInit() {
|
|
439
|
+
if (this.storeServiceService.searchstax) {
|
|
440
|
+
this.attachObservables();
|
|
441
|
+
setTimeout(() => {
|
|
442
|
+
this.storeServiceService.searchstax.addSearchSortingWidget("search-sorting-container" + this.rand, {});
|
|
443
|
+
}, 0);
|
|
444
|
+
}
|
|
445
|
+
else {
|
|
446
|
+
throw Error("Searchstax instance needs to be passed via props");
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
orderChange(e, context) {
|
|
450
|
+
e.stopImmediatePropagation();
|
|
451
|
+
context.storeServiceService.searchstax.searchSortingWidget?.setOrderQuery(e.target.value);
|
|
452
|
+
}
|
|
453
|
+
attachObservables() {
|
|
454
|
+
this.storeServiceService.searchstax.dataLayer.$searchSortingData.subscribe((sortingData) => {
|
|
455
|
+
this.sortingData = sortingData;
|
|
456
|
+
});
|
|
457
|
+
this.storeServiceService.searchstax.dataLayer.$searchObject.subscribe((searchObject) => {
|
|
458
|
+
this.selectedSorting = decodeURIComponent(searchObject?.order ?? '');
|
|
459
|
+
});
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
SearchstaxSearchSortingWidget.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: SearchstaxSearchSortingWidget, deps: [{ token: StoreServiceService }], target: i0.ɵɵFactoryTarget.Component });
|
|
463
|
+
SearchstaxSearchSortingWidget.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.3", type: SearchstaxSearchSortingWidget, selector: "app-searchstax-search-sorting", inputs: { templateOverride: "templateOverride" }, ngImport: i0, template: "<div class=\"search-feedback-container\" [id]=\"'search-sorting-container' + rand\">\n <div\n class=\"searchstax-sorting-container\"\n *ngIf=\"sortingData && sortingData?.searchExecuted && sortingData?.hasResultsOrExternalPromotions && !templateOverride\"\n >\n <label class=\"searchstax-sorting-label\" for=\"sort-by\">Sort By</label>\n <select\n id=\"searchstax-search-order-select\"\n class=\"searchstax-search-order-select\"\n [value]=\"selectedSorting\"\n (change)=\"orderChange($event, context)\"\n >\n <option value=\"\">Relevance</option>\n <option value=\"date desc\">Newest Content</option>\n <option value=\"date asc\">Oldest Content</option>\n </select>\n </div>\n\n <div\n *ngIf=\"\n sortingData && sortingData?.searchExecuted && sortingData?.hasResultsOrExternalPromotions && templateOverride\n \"\n >\n <ng-container *ngTemplateOutlet=\"templateOverride; context: context\"></ng-container>\n </div>\n</div>\n", directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
|
|
464
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: SearchstaxSearchSortingWidget, decorators: [{
|
|
465
|
+
type: Component,
|
|
466
|
+
args: [{ selector: "app-searchstax-search-sorting", styles: [], template: "<div class=\"search-feedback-container\" [id]=\"'search-sorting-container' + rand\">\n <div\n class=\"searchstax-sorting-container\"\n *ngIf=\"sortingData && sortingData?.searchExecuted && sortingData?.hasResultsOrExternalPromotions && !templateOverride\"\n >\n <label class=\"searchstax-sorting-label\" for=\"sort-by\">Sort By</label>\n <select\n id=\"searchstax-search-order-select\"\n class=\"searchstax-search-order-select\"\n [value]=\"selectedSorting\"\n (change)=\"orderChange($event, context)\"\n >\n <option value=\"\">Relevance</option>\n <option value=\"date desc\">Newest Content</option>\n <option value=\"date asc\">Oldest Content</option>\n </select>\n </div>\n\n <div\n *ngIf=\"\n sortingData && sortingData?.searchExecuted && sortingData?.hasResultsOrExternalPromotions && templateOverride\n \"\n >\n <ng-container *ngTemplateOutlet=\"templateOverride; context: context\"></ng-container>\n </div>\n</div>\n" }]
|
|
467
|
+
}], ctorParameters: function () { return [{ type: StoreServiceService }]; }, propDecorators: { templateOverride: [{
|
|
468
|
+
type: Input
|
|
469
|
+
}] } });
|
|
470
|
+
|
|
471
|
+
class SearchstaxSearchRelatedSearchesWidget {
|
|
472
|
+
constructor(storeServiceService) {
|
|
473
|
+
this.storeServiceService = storeServiceService;
|
|
474
|
+
this.relatedData = null;
|
|
475
|
+
this.rand = Math.random();
|
|
476
|
+
this.context = this;
|
|
477
|
+
}
|
|
478
|
+
ngOnInit() {
|
|
479
|
+
if (this.storeServiceService.searchstax) {
|
|
480
|
+
this.attachObservables();
|
|
481
|
+
setTimeout(() => {
|
|
482
|
+
this.storeServiceService.searchstax.addRelatedSearchesWidget("searchstax-related-searches-container" + this.rand, { relatedSearchesURL: this.relatedSearchesURL ?? "", relatedSearchesAPIKey: this.relatedSearchesAPIKey ?? "" });
|
|
483
|
+
}, 0);
|
|
484
|
+
}
|
|
485
|
+
else {
|
|
486
|
+
throw Error("Searchstax instance needs to be passed via props");
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
executeSearch(result, context) {
|
|
490
|
+
context.storeServiceService.searchstax.relatedSearchesWidget?.executeSearch(result);
|
|
491
|
+
}
|
|
492
|
+
attachObservables() {
|
|
493
|
+
this.storeServiceService.searchstax.dataLayer.$searchRelatedSearchesData.subscribe((relatedData) => {
|
|
494
|
+
this.relatedData = relatedData;
|
|
495
|
+
});
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
SearchstaxSearchRelatedSearchesWidget.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: SearchstaxSearchRelatedSearchesWidget, deps: [{ token: StoreServiceService }], target: i0.ɵɵFactoryTarget.Component });
|
|
499
|
+
SearchstaxSearchRelatedSearchesWidget.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.3", type: SearchstaxSearchRelatedSearchesWidget, selector: "app-searchstax-related-searches", inputs: { relatedSearchesURL: "relatedSearchesURL", relatedSearchesAPIKey: "relatedSearchesAPIKey", templateOverride: "templateOverride" }, ngImport: i0, template: "<div\n class=\"searchstax-related-searches-container\"\n [id]=\"'searchstax-related-searches-container' + rand\"\n *ngIf=\"relatedData && relatedData?.searchExecuted && relatedData?.hasRelatedSearches && !templateOverride\"\n>\n Related searches: <span id=\"searchstax-related-searches\"></span>\n <span class=\"searchstax-related-search\" *ngIf=\"relatedData.relatedSearches\">\n <span\n *ngFor=\"let related of relatedData.relatedSearches\"\n (click)=\"executeSearch(related, context)\"\n class=\"searchstax-related-search searchstax-related-search-item\"\n >\n {{ related.related_search }}<span *ngIf=\"!related.last\">,</span>\n </span>\n </span>\n</div>\n\n<div *ngIf=\"relatedData && relatedData?.searchExecuted && relatedData?.hasRelatedSearches && templateOverride\">\n <ng-container *ngTemplateOutlet=\"templateOverride; context: context\"></ng-container>\n</div>\n", directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
|
|
500
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: SearchstaxSearchRelatedSearchesWidget, decorators: [{
|
|
501
|
+
type: Component,
|
|
502
|
+
args: [{ selector: "app-searchstax-related-searches", styles: [], template: "<div\n class=\"searchstax-related-searches-container\"\n [id]=\"'searchstax-related-searches-container' + rand\"\n *ngIf=\"relatedData && relatedData?.searchExecuted && relatedData?.hasRelatedSearches && !templateOverride\"\n>\n Related searches: <span id=\"searchstax-related-searches\"></span>\n <span class=\"searchstax-related-search\" *ngIf=\"relatedData.relatedSearches\">\n <span\n *ngFor=\"let related of relatedData.relatedSearches\"\n (click)=\"executeSearch(related, context)\"\n class=\"searchstax-related-search searchstax-related-search-item\"\n >\n {{ related.related_search }}<span *ngIf=\"!related.last\">,</span>\n </span>\n </span>\n</div>\n\n<div *ngIf=\"relatedData && relatedData?.searchExecuted && relatedData?.hasRelatedSearches && templateOverride\">\n <ng-container *ngTemplateOutlet=\"templateOverride; context: context\"></ng-container>\n</div>\n" }]
|
|
503
|
+
}], ctorParameters: function () { return [{ type: StoreServiceService }]; }, propDecorators: { relatedSearchesURL: [{
|
|
504
|
+
type: Input
|
|
505
|
+
}], relatedSearchesAPIKey: [{
|
|
506
|
+
type: Input
|
|
507
|
+
}], templateOverride: [{
|
|
508
|
+
type: Input
|
|
509
|
+
}] } });
|
|
510
|
+
|
|
511
|
+
class SearchstaxSearchExternalPromotionsWidget {
|
|
512
|
+
constructor(storeServiceService) {
|
|
513
|
+
this.storeServiceService = storeServiceService;
|
|
514
|
+
this.externalPromotionsData = null;
|
|
515
|
+
this.rand = Math.random();
|
|
516
|
+
this.context = this;
|
|
517
|
+
}
|
|
518
|
+
ngOnInit() {
|
|
519
|
+
if (this.storeServiceService.searchstax) {
|
|
520
|
+
this.attachObservables();
|
|
521
|
+
setTimeout(() => {
|
|
522
|
+
this.storeServiceService.searchstax.addExternalPromotionsWidget("searchstax-external-promotions-layout-container" + this.rand, {});
|
|
523
|
+
}, 0);
|
|
524
|
+
}
|
|
525
|
+
else {
|
|
526
|
+
throw Error("Searchstax instance needs to be passed via props");
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
trackClick(externalPromotion, event, context) {
|
|
530
|
+
context.storeServiceService.searchstax.externalPromotionsWidget?.trackClick(externalPromotion, event);
|
|
531
|
+
}
|
|
532
|
+
attachObservables() {
|
|
533
|
+
this.storeServiceService.searchstax.dataLayer.$searchExternalPromotionsData.subscribe((externalPromotionsData) => {
|
|
534
|
+
this.externalPromotionsData = externalPromotionsData;
|
|
535
|
+
});
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
SearchstaxSearchExternalPromotionsWidget.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: SearchstaxSearchExternalPromotionsWidget, deps: [{ token: StoreServiceService }], target: i0.ɵɵFactoryTarget.Component });
|
|
539
|
+
SearchstaxSearchExternalPromotionsWidget.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.3", type: SearchstaxSearchExternalPromotionsWidget, selector: "app-searchstax-external-promotions", inputs: { templateOverride: "templateOverride" }, ngImport: i0, template: "<div [id]=\"'searchstax-external-promotions-layout-container' + rand\">\n <div\n class=\"searchstax-external-promotions-container\"\n id=\"searchstax-external-promotions-container\"\n *ngIf=\"\n externalPromotionsData &&\n externalPromotionsData?.searchExecuted &&\n externalPromotionsData?.hasExternalPromotions &&\n !templateOverride\n \"\n >\n <div\n class=\"searchstax-external-promotion searchstax-search-result\"\n *ngFor=\"let externalPromotion of externalPromotionsData.externalPromotions\"\n >\n <div class=\"icon-elevated\"></div>\n <a\n *ngIf=\"externalPromotion.url\"\n [href]=\"externalPromotion.url\"\n (click)=\"trackClick(externalPromotion, $event, context)\"\n class=\"searchstax-result-item-link\"\n ></a>\n <div class=\"searchstax-search-result-title-container\">\n <span class=\"searchstax-search-result-title\">{{ externalPromotion.name }}</span>\n </div>\n <p\n *ngIf=\"externalPromotion.description\"\n class=\"searchstax-search-result-description searchstax-search-result-common\"\n >\n {{ externalPromotion.description }}\n </p>\n <p *ngIf=\"externalPromotion.url\" class=\"searchstax-search-result-description searchstax-search-result-common\">\n {{ externalPromotion.url }}\n </p>\n </div>\n </div>\n <div\n *ngIf=\"\n externalPromotionsData &&\n externalPromotionsData?.searchExecuted &&\n externalPromotionsData?.hasExternalPromotions &&\n templateOverride\n \"\n >\n <ng-container *ngTemplateOutlet=\"templateOverride; context: context\"></ng-container>\n </div>\n</div>\n", directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
|
|
540
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: SearchstaxSearchExternalPromotionsWidget, decorators: [{
|
|
541
|
+
type: Component,
|
|
542
|
+
args: [{ selector: "app-searchstax-external-promotions", styles: [], template: "<div [id]=\"'searchstax-external-promotions-layout-container' + rand\">\n <div\n class=\"searchstax-external-promotions-container\"\n id=\"searchstax-external-promotions-container\"\n *ngIf=\"\n externalPromotionsData &&\n externalPromotionsData?.searchExecuted &&\n externalPromotionsData?.hasExternalPromotions &&\n !templateOverride\n \"\n >\n <div\n class=\"searchstax-external-promotion searchstax-search-result\"\n *ngFor=\"let externalPromotion of externalPromotionsData.externalPromotions\"\n >\n <div class=\"icon-elevated\"></div>\n <a\n *ngIf=\"externalPromotion.url\"\n [href]=\"externalPromotion.url\"\n (click)=\"trackClick(externalPromotion, $event, context)\"\n class=\"searchstax-result-item-link\"\n ></a>\n <div class=\"searchstax-search-result-title-container\">\n <span class=\"searchstax-search-result-title\">{{ externalPromotion.name }}</span>\n </div>\n <p\n *ngIf=\"externalPromotion.description\"\n class=\"searchstax-search-result-description searchstax-search-result-common\"\n >\n {{ externalPromotion.description }}\n </p>\n <p *ngIf=\"externalPromotion.url\" class=\"searchstax-search-result-description searchstax-search-result-common\">\n {{ externalPromotion.url }}\n </p>\n </div>\n </div>\n <div\n *ngIf=\"\n externalPromotionsData &&\n externalPromotionsData?.searchExecuted &&\n externalPromotionsData?.hasExternalPromotions &&\n templateOverride\n \"\n >\n <ng-container *ngTemplateOutlet=\"templateOverride; context: context\"></ng-container>\n </div>\n</div>\n" }]
|
|
318
543
|
}], ctorParameters: function () { return [{ type: StoreServiceService }]; }, propDecorators: { templateOverride: [{
|
|
319
544
|
type: Input
|
|
320
545
|
}] } });
|
|
@@ -326,11 +551,19 @@ SearchstudioUxAngularModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0
|
|
|
326
551
|
SearchstaxInputWidget,
|
|
327
552
|
SearchstaxResultsWidget,
|
|
328
553
|
SearchstaxSearchFeedbackWidget,
|
|
329
|
-
SearchstaxSearchPaginationWidget
|
|
554
|
+
SearchstaxSearchPaginationWidget,
|
|
555
|
+
SearchstaxSearchFacetsWidget,
|
|
556
|
+
SearchstaxSearchSortingWidget,
|
|
557
|
+
SearchstaxSearchRelatedSearchesWidget,
|
|
558
|
+
SearchstaxSearchExternalPromotionsWidget], imports: [CommonModule], exports: [SearchstaxWrapper,
|
|
330
559
|
SearchstaxInputWidget,
|
|
331
560
|
SearchstaxResultsWidget,
|
|
332
561
|
SearchstaxSearchFeedbackWidget,
|
|
333
|
-
SearchstaxSearchPaginationWidget
|
|
562
|
+
SearchstaxSearchPaginationWidget,
|
|
563
|
+
SearchstaxSearchFacetsWidget,
|
|
564
|
+
SearchstaxSearchSortingWidget,
|
|
565
|
+
SearchstaxSearchRelatedSearchesWidget,
|
|
566
|
+
SearchstaxSearchExternalPromotionsWidget] });
|
|
334
567
|
SearchstudioUxAngularModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: SearchstudioUxAngularModule, imports: [[CommonModule]] });
|
|
335
568
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: SearchstudioUxAngularModule, decorators: [{
|
|
336
569
|
type: NgModule,
|
|
@@ -340,7 +573,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImpor
|
|
|
340
573
|
SearchstaxInputWidget,
|
|
341
574
|
SearchstaxResultsWidget,
|
|
342
575
|
SearchstaxSearchFeedbackWidget,
|
|
343
|
-
SearchstaxSearchPaginationWidget
|
|
576
|
+
SearchstaxSearchPaginationWidget,
|
|
577
|
+
SearchstaxSearchFacetsWidget,
|
|
578
|
+
SearchstaxSearchSortingWidget,
|
|
579
|
+
SearchstaxSearchRelatedSearchesWidget,
|
|
580
|
+
SearchstaxSearchExternalPromotionsWidget
|
|
344
581
|
],
|
|
345
582
|
imports: [CommonModule],
|
|
346
583
|
exports: [
|
|
@@ -348,7 +585,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImpor
|
|
|
348
585
|
SearchstaxInputWidget,
|
|
349
586
|
SearchstaxResultsWidget,
|
|
350
587
|
SearchstaxSearchFeedbackWidget,
|
|
351
|
-
SearchstaxSearchPaginationWidget
|
|
588
|
+
SearchstaxSearchPaginationWidget,
|
|
589
|
+
SearchstaxSearchFacetsWidget,
|
|
590
|
+
SearchstaxSearchSortingWidget,
|
|
591
|
+
SearchstaxSearchRelatedSearchesWidget,
|
|
592
|
+
SearchstaxSearchExternalPromotionsWidget
|
|
352
593
|
],
|
|
353
594
|
}]
|
|
354
595
|
}] });
|
|
@@ -361,5 +602,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImpor
|
|
|
361
602
|
* Generated bundle index. Do not edit.
|
|
362
603
|
*/
|
|
363
604
|
|
|
364
|
-
export { SearchstaxInputWidget, SearchstaxResultsWidget, SearchstaxSearchFeedbackWidget, SearchstaxSearchPaginationWidget, SearchstaxWrapper, SearchstudioUxAngularModule, StoreServiceService };
|
|
605
|
+
export { SearchstaxInputWidget, SearchstaxResultsWidget, SearchstaxSearchExternalPromotionsWidget, SearchstaxSearchFacetsWidget, SearchstaxSearchFeedbackWidget, SearchstaxSearchPaginationWidget, SearchstaxSearchRelatedSearchesWidget, SearchstaxSearchSortingWidget, SearchstaxWrapper, SearchstudioUxAngularModule, StoreServiceService };
|
|
365
606
|
//# sourceMappingURL=searchstax-inc-searchstudio-ux-angular.mjs.map
|