@coveo/atomic-angular 3.7.8-pre.bcd9d55cdd → 3.7.8-pre.c15f1d422b
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.
|
@@ -4,10 +4,31 @@ import * as i0 from '@angular/core';
|
|
|
4
4
|
import { ChangeDetectionStrategy, Component, APP_INITIALIZER, NgModule } from '@angular/core';
|
|
5
5
|
import { __decorate } from 'tslib';
|
|
6
6
|
import { fromEvent } from 'rxjs';
|
|
7
|
-
import
|
|
7
|
+
import customElementsManifest from '@coveo/atomic/custom-elements-manifest';
|
|
8
|
+
import { defineCustomElementAtomicAutomaticFacet, defineCustomElementAtomicAutomaticFacetGenerator, defineCustomElementAtomicBreadbox, defineCustomElementAtomicCategoryFacet, defineCustomElementAtomicCitation, defineCustomElementAtomicColorFacet, defineCustomElementAtomicDidYouMean, defineCustomElementAtomicExternal, defineCustomElementAtomicFacet, defineCustomElementAtomicFacetManager, defineCustomElementAtomicFieldCondition, defineCustomElementAtomicFoldedResultList, defineCustomElementAtomicFormatCurrency, defineCustomElementAtomicFormatNumber, defineCustomElementAtomicFormatUnit, defineCustomElementAtomicGeneratedAnswer, defineCustomElementAtomicGeneratedAnswerFeedbackModal, defineCustomElementAtomicHtml, defineCustomElementAtomicInsightInterface, defineCustomElementAtomicInsightUserActionsTimeline, defineCustomElementAtomicInsightUserActionsToggle, defineCustomElementAtomicLoadMoreResults, defineCustomElementAtomicNoResults, defineCustomElementAtomicNotifications, defineCustomElementAtomicNumericFacet, defineCustomElementAtomicNumericRange, defineCustomElementAtomicPager, defineCustomElementAtomicPopover, defineCustomElementAtomicQueryError, defineCustomElementAtomicQuickview, defineCustomElementAtomicQuickviewModal, defineCustomElementAtomicRatingFacet, defineCustomElementAtomicRatingRangeFacet, defineCustomElementAtomicRecsError, defineCustomElementAtomicRecsInterface, defineCustomElementAtomicRecsList, defineCustomElementAtomicRecsResult, defineCustomElementAtomicRecsResultTemplate, defineCustomElementAtomicRefineModal, defineCustomElementAtomicRefineToggle, defineCustomElementAtomicRelevanceInspector, defineCustomElementAtomicResult, defineCustomElementAtomicResultBadge, defineCustomElementAtomicResultChildren, defineCustomElementAtomicResultChildrenTemplate, defineCustomElementAtomicResultDate, defineCustomElementAtomicResultFieldsList, defineCustomElementAtomicResultHtml, defineCustomElementAtomicResultIcon, defineCustomElementAtomicResultImage, defineCustomElementAtomicResultLink, defineCustomElementAtomicResultList, defineCustomElementAtomicResultLocalizedText, defineCustomElementAtomicResultMultiValueText, defineCustomElementAtomicResultNumber, defineCustomElementAtomicResultPrintableUri, defineCustomElementAtomicResultRating, defineCustomElementAtomicResultSectionActions, defineCustomElementAtomicResultSectionBadges, defineCustomElementAtomicResultSectionBottomMetadata, defineCustomElementAtomicResultSectionChildren, defineCustomElementAtomicResultSectionEmphasized, defineCustomElementAtomicResultSectionExcerpt, defineCustomElementAtomicResultSectionTitle, defineCustomElementAtomicResultSectionTitleMetadata, defineCustomElementAtomicResultSectionVisual, defineCustomElementAtomicResultTemplate, defineCustomElementAtomicResultText, defineCustomElementAtomicResultTimespan, defineCustomElementAtomicSearchBox, defineCustomElementAtomicSearchBoxInstantResults, defineCustomElementAtomicSearchBoxQuerySuggestions, defineCustomElementAtomicSearchBoxRecentQueries, defineCustomElementAtomicSegmentedFacet, defineCustomElementAtomicSegmentedFacetScrollable, defineCustomElementAtomicSmartSnippet, defineCustomElementAtomicSmartSnippetFeedbackModal, defineCustomElementAtomicSmartSnippetSuggestions, defineCustomElementAtomicSortDropdown, defineCustomElementAtomicSortExpression, defineCustomElementAtomicTab, defineCustomElementAtomicTabManager, defineCustomElementAtomicTableElement, defineCustomElementAtomicText, defineCustomElementAtomicTimeframe, defineCustomElementAtomicTimeframeFacet, AtomicCommerceBreadbox as AtomicCommerceBreadbox$1, AtomicCommerceCategoryFacet as AtomicCommerceCategoryFacet$1, AtomicCommerceDidYouMean as AtomicCommerceDidYouMean$1, AtomicCommerceFacet as AtomicCommerceFacet$1, AtomicCommerceFacets as AtomicCommerceFacets$1, AtomicCommerceInterface as AtomicCommerceInterface$1, AtomicCommerceLayout as AtomicCommerceLayout$1, AtomicCommerceLoadMoreProducts as AtomicCommerceLoadMoreProducts$1, AtomicCommerceNoProducts as AtomicCommerceNoProducts$1, AtomicCommerceNumericFacet as AtomicCommerceNumericFacet$1, AtomicCommercePager as AtomicCommercePager$1, AtomicCommerceProductList as AtomicCommerceProductList$1, AtomicCommerceProductsPerPage as AtomicCommerceProductsPerPage$1, AtomicCommerceQueryError as AtomicCommerceQueryError$1, AtomicCommerceQuerySummary as AtomicCommerceQuerySummary$1, AtomicCommerceRecommendationInterface as AtomicCommerceRecommendationInterface$1, AtomicCommerceRecommendationList as AtomicCommerceRecommendationList$1, AtomicCommerceRefineModal as AtomicCommerceRefineModal$1, AtomicCommerceRefineToggle as AtomicCommerceRefineToggle$1, AtomicCommerceSearchBoxInstantProducts as AtomicCommerceSearchBoxInstantProducts$1, AtomicCommerceSearchBoxQuerySuggestions as AtomicCommerceSearchBoxQuerySuggestions$1, AtomicCommerceSearchBoxRecentQueries as AtomicCommerceSearchBoxRecentQueries$1, AtomicCommerceSearchBox as AtomicCommerceSearchBox$1, AtomicCommerceSortDropdown as AtomicCommerceSortDropdown$1, AtomicCommerceText as AtomicCommerceText$1, AtomicCommerceTimeframeFacet as AtomicCommerceTimeframeFacet$1, AtomicProductChildren as AtomicProductChildren$1, AtomicProductDescription as AtomicProductDescription$1, AtomicProductExcerpt as AtomicProductExcerpt$1, AtomicProductFieldCondition as AtomicProductFieldCondition$1, AtomicProductImage as AtomicProductImage$1, AtomicProductLink as AtomicProductLink$1, AtomicProductMultiValueText as AtomicProductMultiValueText$1, AtomicProductNumericFieldValue as AtomicProductNumericFieldValue$1, AtomicProductPrice as AtomicProductPrice$1, AtomicProductRating as AtomicProductRating$1, AtomicProductSectionActions as AtomicProductSectionActions$1, AtomicProductSectionBadges as AtomicProductSectionBadges$1, AtomicProductSectionBottomMetadata as AtomicProductSectionBottomMetadata$1, AtomicProductSectionChildren as AtomicProductSectionChildren$1, AtomicProductSectionDescription as AtomicProductSectionDescription$1, AtomicProductSectionEmphasized as AtomicProductSectionEmphasized$1, AtomicProductSectionMetadata as AtomicProductSectionMetadata$1, AtomicProductSectionName as AtomicProductSectionName$1, AtomicProductSectionVisual as AtomicProductSectionVisual$1, AtomicProductTemplate as AtomicProductTemplate$1, AtomicProductText as AtomicProductText$1, AtomicProduct as AtomicProduct$1, AtomicAriaLive as AtomicAriaLive$1, AtomicComponentError as AtomicComponentError$1, AtomicIcon as AtomicIcon$1, AtomicLayoutSection as AtomicLayoutSection$1, AtomicQuerySummary as AtomicQuerySummary$1, AtomicResultsPerPage as AtomicResultsPerPage$1, AtomicSearchInterface as AtomicSearchInterface$1, AtomicSearchLayout as AtomicSearchLayout$1 } from '@coveo/atomic/components';
|
|
8
9
|
|
|
9
10
|
/* eslint-disable */
|
|
10
11
|
/* tslint:disable */
|
|
12
|
+
const createPropertyToAttributeMap = () => {
|
|
13
|
+
const map = new Map();
|
|
14
|
+
customElementsManifest.modules.forEach((module) => {
|
|
15
|
+
module.declarations?.forEach((declaration) => {
|
|
16
|
+
if (declaration.kind === 'class' && declaration.attributes) {
|
|
17
|
+
declaration.attributes.forEach((attr) => {
|
|
18
|
+
if (attr.fieldName && attr.name) {
|
|
19
|
+
map.set(attr.fieldName, attr.name);
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
});
|
|
25
|
+
return map;
|
|
26
|
+
};
|
|
27
|
+
const propertyToAttributeMap = createPropertyToAttributeMap();
|
|
28
|
+
const getAttributeName = (propertyName) => {
|
|
29
|
+
const mappedAttr = propertyToAttributeMap.get(propertyName);
|
|
30
|
+
return mappedAttr || propertyName.replace(/([A-Z])/g, '-$1').toLowerCase();
|
|
31
|
+
};
|
|
11
32
|
const proxyInputs = (Cmp, inputs) => {
|
|
12
33
|
const Prototype = Cmp.prototype;
|
|
13
34
|
inputs.forEach((item) => {
|
|
@@ -16,7 +37,10 @@ const proxyInputs = (Cmp, inputs) => {
|
|
|
16
37
|
return this.el[item];
|
|
17
38
|
},
|
|
18
39
|
set(val) {
|
|
19
|
-
this.z.runOutsideAngular(() =>
|
|
40
|
+
this.z.runOutsideAngular(() => {
|
|
41
|
+
const attrName = getAttributeName(item);
|
|
42
|
+
this.el.setAttribute(attrName, val);
|
|
43
|
+
});
|
|
20
44
|
},
|
|
21
45
|
/**
|
|
22
46
|
* In the event that proxyInputs is called
|
|
@@ -764,6 +788,34 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImpor
|
|
|
764
788
|
inputs: ['end', 'endInclusive', 'label', 'start'],
|
|
765
789
|
}]
|
|
766
790
|
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }] });
|
|
791
|
+
let AtomicPager = class AtomicPager {
|
|
792
|
+
z;
|
|
793
|
+
el;
|
|
794
|
+
constructor(c, r, z) {
|
|
795
|
+
this.z = z;
|
|
796
|
+
c.detach();
|
|
797
|
+
this.el = r.nativeElement;
|
|
798
|
+
proxyOutputs(this, this.el, ['atomic/scrollToTop']);
|
|
799
|
+
}
|
|
800
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: AtomicPager, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
801
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.2", type: AtomicPager, isStandalone: false, selector: "atomic-pager", inputs: { nextButtonIcon: "nextButtonIcon", numberOfPages: "numberOfPages", previousButtonIcon: "previousButtonIcon" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
802
|
+
};
|
|
803
|
+
AtomicPager = __decorate([
|
|
804
|
+
ProxyCmp({
|
|
805
|
+
inputs: ['nextButtonIcon', 'numberOfPages', 'previousButtonIcon'],
|
|
806
|
+
defineCustomElementFn: defineCustomElementAtomicPager
|
|
807
|
+
})
|
|
808
|
+
], AtomicPager);
|
|
809
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: AtomicPager, decorators: [{
|
|
810
|
+
type: Component,
|
|
811
|
+
args: [{ standalone: false,
|
|
812
|
+
selector: 'atomic-pager',
|
|
813
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
814
|
+
template: '<ng-content></ng-content>',
|
|
815
|
+
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
816
|
+
inputs: ['nextButtonIcon', 'numberOfPages', 'previousButtonIcon'],
|
|
817
|
+
}]
|
|
818
|
+
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }] });
|
|
767
819
|
let AtomicPopover = class AtomicPopover {
|
|
768
820
|
z;
|
|
769
821
|
el;
|
|
@@ -1978,34 +2030,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImpor
|
|
|
1978
2030
|
inputs: ['icon', 'maxWithQuery', 'maxWithoutQuery'],
|
|
1979
2031
|
}]
|
|
1980
2032
|
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }] });
|
|
1981
|
-
let AtomicSearchInterface = class AtomicSearchInterface {
|
|
1982
|
-
z;
|
|
1983
|
-
el;
|
|
1984
|
-
constructor(c, r, z) {
|
|
1985
|
-
this.z = z;
|
|
1986
|
-
c.detach();
|
|
1987
|
-
this.el = r.nativeElement;
|
|
1988
|
-
}
|
|
1989
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: AtomicSearchInterface, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
1990
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.2", type: AtomicSearchInterface, isStandalone: false, selector: "atomic-search-interface", inputs: { CspNonce: "CspNonce", analytics: "analytics", enableRelevanceInspector: "enableRelevanceInspector", engine: "engine", fieldsToInclude: "fieldsToInclude", i18n: "i18n", iconAssetsPath: "iconAssetsPath", language: "language", languageAssetsPath: "languageAssetsPath", logLevel: "logLevel", pipeline: "pipeline", reflectStateInUrl: "reflectStateInUrl", scrollContainer: "scrollContainer", searchHub: "searchHub", timezone: "timezone" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1991
|
-
};
|
|
1992
|
-
AtomicSearchInterface = __decorate([
|
|
1993
|
-
ProxyCmp({
|
|
1994
|
-
inputs: ['CspNonce', 'analytics', 'enableRelevanceInspector', 'engine', 'fieldsToInclude', 'i18n', 'iconAssetsPath', 'language', 'languageAssetsPath', 'logLevel', 'pipeline', 'reflectStateInUrl', 'scrollContainer', 'searchHub', 'timezone'],
|
|
1995
|
-
methods: ['initialize', 'initializeWithSearchEngine', 'executeFirstSearch'],
|
|
1996
|
-
defineCustomElementFn: defineCustomElementAtomicSearchInterface
|
|
1997
|
-
})
|
|
1998
|
-
], AtomicSearchInterface);
|
|
1999
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: AtomicSearchInterface, decorators: [{
|
|
2000
|
-
type: Component,
|
|
2001
|
-
args: [{ standalone: false,
|
|
2002
|
-
selector: 'atomic-search-interface',
|
|
2003
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2004
|
-
template: '<ng-content></ng-content>',
|
|
2005
|
-
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
2006
|
-
inputs: ['CspNonce', 'analytics', 'enableRelevanceInspector', 'engine', 'fieldsToInclude', 'i18n', 'iconAssetsPath', 'language', 'languageAssetsPath', 'logLevel', 'pipeline', 'reflectStateInUrl', 'scrollContainer', 'searchHub', 'timezone'],
|
|
2007
|
-
}]
|
|
2008
|
-
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }] });
|
|
2009
2033
|
let AtomicSegmentedFacet = class AtomicSegmentedFacet {
|
|
2010
2034
|
z;
|
|
2011
2035
|
el;
|
|
@@ -2512,7 +2536,7 @@ let AtomicCommerceInterface = class AtomicCommerceInterface {
|
|
|
2512
2536
|
AtomicCommerceInterface = __decorate([
|
|
2513
2537
|
ProxyCmp({
|
|
2514
2538
|
inputs: ['type', 'analytics', 'logLevel', 'language', 'reflectStateInUrl', 'disableStateReflectionInUrl', 'scrollContainer', 'languageAssetsPath', 'iconAssetsPath'],
|
|
2515
|
-
methods: ['initialize', 'initializeWithEngine', 'executeFirstRequest', 'toggleAnalytics', 'updateIconAssetsPath', 'updateLanguage', 'scrollToTop'],
|
|
2539
|
+
methods: ['initialize', 'initializeWithEngine', 'executeFirstRequest', 'updateLocale', 'toggleAnalytics', 'updateIconAssetsPath', 'updateLanguage', 'scrollToTop'],
|
|
2516
2540
|
defineCustomElementFn: () => { customElements.get('atomic-commerce-interface') || customElements.define('atomic-commerce-interface', AtomicCommerceInterface$1); }
|
|
2517
2541
|
})
|
|
2518
2542
|
], AtomicCommerceInterface);
|
|
@@ -2534,6 +2558,7 @@ let AtomicCommerceLayout = class AtomicCommerceLayout {
|
|
|
2534
2558
|
this.z = z;
|
|
2535
2559
|
c.detach();
|
|
2536
2560
|
this.el = el.nativeElement;
|
|
2561
|
+
proxyOutputs(this, this.el, ['atomic-layout-breakpoint-change']);
|
|
2537
2562
|
}
|
|
2538
2563
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: AtomicCommerceLayout, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
2539
2564
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.2", type: AtomicCommerceLayout, isStandalone: false, selector: "atomic-commerce-layout", inputs: { mobileBreakpoint: "mobileBreakpoint" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
@@ -2541,7 +2566,7 @@ let AtomicCommerceLayout = class AtomicCommerceLayout {
|
|
|
2541
2566
|
AtomicCommerceLayout = __decorate([
|
|
2542
2567
|
ProxyCmp({
|
|
2543
2568
|
inputs: ['mobileBreakpoint'],
|
|
2544
|
-
methods: [],
|
|
2569
|
+
methods: ['onMobileBreakpointChange'],
|
|
2545
2570
|
defineCustomElementFn: () => { customElements.get('atomic-commerce-layout') || customElements.define('atomic-commerce-layout', AtomicCommerceLayout$1); }
|
|
2546
2571
|
})
|
|
2547
2572
|
], AtomicCommerceLayout);
|
|
@@ -3866,36 +3891,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImpor
|
|
|
3866
3891
|
inputs: ['section', 'minWidth', 'maxWidth']
|
|
3867
3892
|
}]
|
|
3868
3893
|
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }] });
|
|
3869
|
-
let AtomicPager = class AtomicPager {
|
|
3870
|
-
z;
|
|
3871
|
-
el;
|
|
3872
|
-
constructor(c, el, z) {
|
|
3873
|
-
this.z = z;
|
|
3874
|
-
c.detach();
|
|
3875
|
-
this.el = el.nativeElement;
|
|
3876
|
-
proxyOutputs(this, this.el, ['atomic/scrollToTop']);
|
|
3877
|
-
}
|
|
3878
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: AtomicPager, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
3879
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.2", type: AtomicPager, isStandalone: false, selector: "atomic-pager", inputs: { numberOfPages: "numberOfPages", previousButtonIcon: "previousButtonIcon", nextButtonIcon: "nextButtonIcon" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3880
|
-
};
|
|
3881
|
-
AtomicPager = __decorate([
|
|
3882
|
-
ProxyCmp({
|
|
3883
|
-
inputs: ['numberOfPages', 'previousButtonIcon', 'nextButtonIcon'],
|
|
3884
|
-
methods: ['initialize'],
|
|
3885
|
-
defineCustomElementFn: () => { customElements.get('atomic-pager') || customElements.define('atomic-pager', AtomicPager$1); }
|
|
3886
|
-
})
|
|
3887
|
-
], AtomicPager);
|
|
3888
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: AtomicPager, decorators: [{
|
|
3889
|
-
type: Component,
|
|
3890
|
-
args: [{
|
|
3891
|
-
selector: 'atomic-pager',
|
|
3892
|
-
standalone: false,
|
|
3893
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
3894
|
-
template: '<ng-content></ng-content>',
|
|
3895
|
-
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
3896
|
-
inputs: ['numberOfPages', 'previousButtonIcon', 'nextButtonIcon']
|
|
3897
|
-
}]
|
|
3898
|
-
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }] });
|
|
3899
3894
|
let AtomicQuerySummary = class AtomicQuerySummary {
|
|
3900
3895
|
z;
|
|
3901
3896
|
el;
|
|
@@ -3955,6 +3950,35 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImpor
|
|
|
3955
3950
|
inputs: ['choicesDisplayed', 'initialChoice']
|
|
3956
3951
|
}]
|
|
3957
3952
|
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }] });
|
|
3953
|
+
let AtomicSearchInterface = class AtomicSearchInterface {
|
|
3954
|
+
z;
|
|
3955
|
+
el;
|
|
3956
|
+
constructor(c, el, z) {
|
|
3957
|
+
this.z = z;
|
|
3958
|
+
c.detach();
|
|
3959
|
+
this.el = el.nativeElement;
|
|
3960
|
+
}
|
|
3961
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: AtomicSearchInterface, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
3962
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.2", type: AtomicSearchInterface, isStandalone: false, selector: "atomic-search-interface", inputs: { fieldsToInclude: "fieldsToInclude", pipeline: "pipeline", searchHub: "searchHub", analytics: "analytics", timezone: "timezone", logLevel: "logLevel", language: "language", reflectStateInUrl: "reflectStateInUrl", disableStateReflectionInUrl: "disableStateReflectionInUrl", scrollContainer: "scrollContainer", languageAssetsPath: "languageAssetsPath", iconAssetsPath: "iconAssetsPath", enableRelevanceInspector: "enableRelevanceInspector", disableRelevanceInspector: "disableRelevanceInspector" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3963
|
+
};
|
|
3964
|
+
AtomicSearchInterface = __decorate([
|
|
3965
|
+
ProxyCmp({
|
|
3966
|
+
inputs: ['fieldsToInclude', 'pipeline', 'searchHub', 'analytics', 'timezone', 'logLevel', 'language', 'reflectStateInUrl', 'disableStateReflectionInUrl', 'scrollContainer', 'languageAssetsPath', 'iconAssetsPath', 'enableRelevanceInspector', 'disableRelevanceInspector'],
|
|
3967
|
+
methods: ['scrollToTop', 'closeRelevanceInspector', 'initialize', 'initializeWithSearchEngine', 'executeFirstSearch', 'updateSearchConfiguration', 'updateSearchHub', 'updatePipeline', 'toggleAnalytics', 'updateLanguage', 'updateIconAssetsPath', 'registerFieldsToInclude'],
|
|
3968
|
+
defineCustomElementFn: () => { customElements.get('atomic-search-interface') || customElements.define('atomic-search-interface', AtomicSearchInterface$1); }
|
|
3969
|
+
})
|
|
3970
|
+
], AtomicSearchInterface);
|
|
3971
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: AtomicSearchInterface, decorators: [{
|
|
3972
|
+
type: Component,
|
|
3973
|
+
args: [{
|
|
3974
|
+
selector: 'atomic-search-interface',
|
|
3975
|
+
standalone: false,
|
|
3976
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
3977
|
+
template: '<ng-content></ng-content>',
|
|
3978
|
+
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
3979
|
+
inputs: ['fieldsToInclude', 'pipeline', 'searchHub', 'analytics', 'timezone', 'logLevel', 'language', 'reflectStateInUrl', 'disableStateReflectionInUrl', 'scrollContainer', 'languageAssetsPath', 'iconAssetsPath', 'enableRelevanceInspector', 'disableRelevanceInspector']
|
|
3980
|
+
}]
|
|
3981
|
+
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }] });
|
|
3958
3982
|
let AtomicSearchLayout = class AtomicSearchLayout {
|
|
3959
3983
|
z;
|
|
3960
3984
|
el;
|
|
@@ -3962,6 +3986,7 @@ let AtomicSearchLayout = class AtomicSearchLayout {
|
|
|
3962
3986
|
this.z = z;
|
|
3963
3987
|
c.detach();
|
|
3964
3988
|
this.el = el.nativeElement;
|
|
3989
|
+
proxyOutputs(this, this.el, ['atomic-layout-breakpoint-change']);
|
|
3965
3990
|
}
|
|
3966
3991
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: AtomicSearchLayout, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
3967
3992
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.2", type: AtomicSearchLayout, isStandalone: false, selector: "atomic-search-layout", inputs: { mobileBreakpoint: "mobileBreakpoint" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
@@ -3969,7 +3994,7 @@ let AtomicSearchLayout = class AtomicSearchLayout {
|
|
|
3969
3994
|
AtomicSearchLayout = __decorate([
|
|
3970
3995
|
ProxyCmp({
|
|
3971
3996
|
inputs: ['mobileBreakpoint'],
|
|
3972
|
-
methods: [],
|
|
3997
|
+
methods: ['onMobileBreakpointChange'],
|
|
3973
3998
|
defineCustomElementFn: () => { customElements.get('atomic-search-layout') || customElements.define('atomic-search-layout', AtomicSearchLayout$1); }
|
|
3974
3999
|
})
|
|
3975
4000
|
], AtomicSearchLayout);
|
|
@@ -4018,7 +4043,6 @@ const DECLARATIONS = [
|
|
|
4018
4043
|
AtomicComponentError,
|
|
4019
4044
|
AtomicIcon,
|
|
4020
4045
|
AtomicLayoutSection,
|
|
4021
|
-
AtomicPager,
|
|
4022
4046
|
AtomicProduct,
|
|
4023
4047
|
AtomicProductChildren,
|
|
4024
4048
|
AtomicProductDescription,
|
|
@@ -4043,6 +4067,7 @@ const DECLARATIONS = [
|
|
|
4043
4067
|
AtomicProductText,
|
|
4044
4068
|
AtomicQuerySummary,
|
|
4045
4069
|
AtomicResultsPerPage,
|
|
4070
|
+
AtomicSearchInterface,
|
|
4046
4071
|
AtomicSearchLayout,
|
|
4047
4072
|
AtomicAutomaticFacet,
|
|
4048
4073
|
AtomicAutomaticFacetGenerator,
|
|
@@ -4070,6 +4095,7 @@ const DECLARATIONS = [
|
|
|
4070
4095
|
AtomicNotifications,
|
|
4071
4096
|
AtomicNumericFacet,
|
|
4072
4097
|
AtomicNumericRange,
|
|
4098
|
+
AtomicPager,
|
|
4073
4099
|
AtomicPopover,
|
|
4074
4100
|
AtomicQueryError,
|
|
4075
4101
|
AtomicQuickview,
|
|
@@ -4116,7 +4142,6 @@ const DECLARATIONS = [
|
|
|
4116
4142
|
AtomicSearchBoxInstantResults,
|
|
4117
4143
|
AtomicSearchBoxQuerySuggestions,
|
|
4118
4144
|
AtomicSearchBoxRecentQueries,
|
|
4119
|
-
AtomicSearchInterface,
|
|
4120
4145
|
AtomicSegmentedFacet,
|
|
4121
4146
|
AtomicSegmentedFacetScrollable,
|
|
4122
4147
|
AtomicSmartSnippet,
|
|
@@ -4192,7 +4217,6 @@ class AtomicAngularModule {
|
|
|
4192
4217
|
AtomicComponentError,
|
|
4193
4218
|
AtomicIcon,
|
|
4194
4219
|
AtomicLayoutSection,
|
|
4195
|
-
AtomicPager,
|
|
4196
4220
|
AtomicProduct,
|
|
4197
4221
|
AtomicProductChildren,
|
|
4198
4222
|
AtomicProductDescription,
|
|
@@ -4217,6 +4241,7 @@ class AtomicAngularModule {
|
|
|
4217
4241
|
AtomicProductText,
|
|
4218
4242
|
AtomicQuerySummary,
|
|
4219
4243
|
AtomicResultsPerPage,
|
|
4244
|
+
AtomicSearchInterface,
|
|
4220
4245
|
AtomicSearchLayout,
|
|
4221
4246
|
AtomicAutomaticFacet,
|
|
4222
4247
|
AtomicAutomaticFacetGenerator,
|
|
@@ -4244,6 +4269,7 @@ class AtomicAngularModule {
|
|
|
4244
4269
|
AtomicNotifications,
|
|
4245
4270
|
AtomicNumericFacet,
|
|
4246
4271
|
AtomicNumericRange,
|
|
4272
|
+
AtomicPager,
|
|
4247
4273
|
AtomicPopover,
|
|
4248
4274
|
AtomicQueryError,
|
|
4249
4275
|
AtomicQuickview,
|
|
@@ -4290,7 +4316,6 @@ class AtomicAngularModule {
|
|
|
4290
4316
|
AtomicSearchBoxInstantResults,
|
|
4291
4317
|
AtomicSearchBoxQuerySuggestions,
|
|
4292
4318
|
AtomicSearchBoxRecentQueries,
|
|
4293
|
-
AtomicSearchInterface,
|
|
4294
4319
|
AtomicSegmentedFacet,
|
|
4295
4320
|
AtomicSegmentedFacetScrollable,
|
|
4296
4321
|
AtomicSmartSnippet,
|
|
@@ -4333,7 +4358,6 @@ class AtomicAngularModule {
|
|
|
4333
4358
|
AtomicComponentError,
|
|
4334
4359
|
AtomicIcon,
|
|
4335
4360
|
AtomicLayoutSection,
|
|
4336
|
-
AtomicPager,
|
|
4337
4361
|
AtomicProduct,
|
|
4338
4362
|
AtomicProductChildren,
|
|
4339
4363
|
AtomicProductDescription,
|
|
@@ -4358,6 +4382,7 @@ class AtomicAngularModule {
|
|
|
4358
4382
|
AtomicProductText,
|
|
4359
4383
|
AtomicQuerySummary,
|
|
4360
4384
|
AtomicResultsPerPage,
|
|
4385
|
+
AtomicSearchInterface,
|
|
4361
4386
|
AtomicSearchLayout,
|
|
4362
4387
|
AtomicAutomaticFacet,
|
|
4363
4388
|
AtomicAutomaticFacetGenerator,
|
|
@@ -4385,6 +4410,7 @@ class AtomicAngularModule {
|
|
|
4385
4410
|
AtomicNotifications,
|
|
4386
4411
|
AtomicNumericFacet,
|
|
4387
4412
|
AtomicNumericRange,
|
|
4413
|
+
AtomicPager,
|
|
4388
4414
|
AtomicPopover,
|
|
4389
4415
|
AtomicQueryError,
|
|
4390
4416
|
AtomicQuickview,
|
|
@@ -4431,7 +4457,6 @@ class AtomicAngularModule {
|
|
|
4431
4457
|
AtomicSearchBoxInstantResults,
|
|
4432
4458
|
AtomicSearchBoxQuerySuggestions,
|
|
4433
4459
|
AtomicSearchBoxRecentQueries,
|
|
4434
|
-
AtomicSearchInterface,
|
|
4435
4460
|
AtomicSegmentedFacet,
|
|
4436
4461
|
AtomicSegmentedFacetScrollable,
|
|
4437
4462
|
AtomicSmartSnippet,
|