@coveo/atomic 3.31.2-pre.81392399e7 → 3.31.2-pre.bd810aa426
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 +3 -3
- package/dist/atomic/_atomic.esm.js +1 -1
- package/dist/atomic/atomic.esm.js.map +1 -1
- package/dist/atomic/components/_index.d.ts +0 -2
- package/dist/atomic/components/_index.js +0 -1
- package/dist/atomic/components/analytics-config.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-product-description/atomic-product-description.js +149 -0
- package/dist/atomic/components/components/commerce/atomic-product-description/atomic-product-description.tw.css.js +3 -0
- package/dist/atomic/components/components/commerce/atomic-product-template/atomic-product-template.js +1 -0
- package/dist/atomic/components/components/commerce/index.js +1 -0
- package/dist/atomic/components/components/commerce/lazy-index.js +1 -0
- package/dist/atomic/components/global/environment.js +1 -1
- package/dist/atomic/components/index.js.map +1 -1
- package/dist/atomic/components/props-utils.js +3 -0
- package/dist/atomic/components/props-utils.js.map +1 -1
- package/dist/atomic/components/stencil-facet-show-more-less.js +7 -1
- package/dist/atomic/components/stencil-facet-show-more-less.js.map +1 -1
- package/dist/atomic/components/utils/props-utils.js +3 -0
- package/dist/atomic/{p-b8beb062.entry.js → p-0007beed.entry.js} +2 -2
- package/dist/atomic/{p-7017f8da.entry.js → p-00c7c8bc.entry.js} +2 -2
- package/dist/atomic/{p-446b788b.entry.js → p-0674783d.entry.js} +2 -2
- package/dist/atomic/{p-a24a8702.entry.js → p-0f3df0e6.entry.js} +2 -2
- package/dist/atomic/{p-85749286.entry.js → p-11dd759c.entry.js} +2 -2
- package/dist/atomic/{p-d1d012bc.entry.js → p-16914fd4.entry.js} +2 -2
- package/dist/atomic/p-1e0f2e91.entry.js +2 -0
- package/dist/atomic/{p-e14019fd.entry.js.map → p-1e0f2e91.entry.js.map} +1 -1
- package/dist/atomic/{p-8300e2f3.js → p-1e118dbf.js} +2 -2
- package/dist/atomic/p-29c272bb.entry.js +2 -0
- package/dist/atomic/{p-64dc1a62.entry.js.map → p-29c272bb.entry.js.map} +1 -1
- package/dist/atomic/{p-7b6843d6.entry.js → p-2e00152f.entry.js} +2 -2
- package/dist/atomic/{p-7969276e.entry.js → p-2e028d26.entry.js} +2 -2
- package/dist/atomic/p-417b1b64.js +2 -0
- package/dist/atomic/{p-c100197d.js.map → p-417b1b64.js.map} +1 -1
- package/dist/atomic/p-44a3c052.entry.js +2 -0
- package/dist/atomic/{p-609d801e.entry.js.map → p-44a3c052.entry.js.map} +1 -1
- package/dist/atomic/{p-28cea2b1.entry.js → p-494c57a0.entry.js} +2 -2
- package/dist/atomic/{p-3ce4d644.entry.js → p-773dcc60.entry.js} +2 -2
- package/dist/atomic/{p-be04b3b0.entry.js → p-7d2a47f5.entry.js} +2 -2
- package/dist/atomic/{p-d2db2d70.js → p-86428057.js} +1 -1
- package/dist/atomic/p-86428057.js.map +1 -0
- package/dist/atomic/{p-741cfe8d.entry.js → p-89fbc54c.entry.js} +2 -2
- package/dist/atomic/{p-2ba33076.entry.js → p-8b3df33c.entry.js} +2 -2
- package/dist/atomic/p-91477908.entry.js +2 -0
- package/dist/atomic/{p-3f881919.entry.js.map → p-91477908.entry.js.map} +1 -1
- package/dist/atomic/{p-8edfd289.entry.js → p-a0b3c6e2.entry.js} +2 -2
- package/dist/atomic/{p-f7ae7657.entry.js → p-c874a70b.entry.js} +2 -2
- package/dist/atomic/{p-174f6410.entry.js → p-c9fc93d7.entry.js} +2 -2
- package/dist/atomic/{p-84740eed.entry.js → p-cbaf262a.entry.js} +2 -2
- package/dist/atomic/{p-0ec46480.entry.js → p-d8953e30.entry.js} +2 -2
- package/dist/atomic/{p-5a1b0c43.entry.js → p-da185993.entry.js} +2 -2
- package/dist/atomic/p-e8ba8acd.entry.js +2 -0
- package/dist/atomic/{p-0873c1b8.entry.js.map → p-e8ba8acd.entry.js.map} +1 -1
- package/dist/atomic/{p-a4f1e397.entry.js → p-ebb8ae5b.entry.js} +2 -2
- package/dist/atomic/{p-5920a26f.entry.js → p-efe9ef19.entry.js} +2 -2
- package/dist/atomic/{p-538fa6a8.entry.js → p-fae68fde.entry.js} +2 -2
- package/dist/atomic/{p-c8f4a164.entry.js → p-fc73190d.entry.js} +2 -2
- package/dist/cjs/_loader.cjs.js +1 -1
- package/dist/cjs/{analytics-config-3a2fc126.js → analytics-config-edaf0d1e.js} +2 -2
- package/dist/cjs/{analytics-config-3a2fc126.js.map → analytics-config-edaf0d1e.js.map} +1 -1
- package/dist/cjs/atomic-category-facet.cjs.entry.js +2 -3
- package/dist/cjs/atomic-category-facet.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-color-facet.cjs.entry.js +2 -3
- package/dist/cjs/atomic-color-facet.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-commerce-category-facet_4.cjs.entry.js +1 -2
- package/dist/cjs/atomic-commerce-category-facet_4.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-facet.cjs.entry.js +2 -3
- package/dist/cjs/atomic-facet.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-field-condition.cjs.entry.js +1 -1
- package/dist/cjs/atomic-folded-result-list.cjs.entry.js +1 -1
- package/dist/cjs/atomic-generated-answer.cjs.entry.js +1 -1
- package/dist/cjs/atomic-insight-facet.cjs.entry.js +1 -2
- package/dist/cjs/atomic-insight-facet.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-insight-interface.cjs.entry.js +2 -2
- package/dist/cjs/atomic-insight-numeric-facet.cjs.entry.js +1 -1
- package/dist/cjs/atomic-insight-result-children-template.cjs.entry.js +1 -1
- package/dist/cjs/atomic-insight-result-template.cjs.entry.js +1 -1
- package/dist/cjs/atomic-insight-timeframe-facet.cjs.entry.js +1 -1
- package/dist/cjs/atomic-numeric-facet.cjs.entry.js +1 -1
- package/dist/cjs/atomic-product-field-condition.cjs.entry.js +1 -1
- package/dist/cjs/atomic-rating-facet.cjs.entry.js +1 -1
- package/dist/cjs/atomic-rating-range-facet.cjs.entry.js +1 -1
- package/dist/cjs/atomic-recs-interface.cjs.entry.js +2 -2
- package/dist/cjs/atomic-recs-result-template.cjs.entry.js +1 -1
- package/dist/cjs/atomic-result-children-template.cjs.entry.js +1 -1
- package/dist/cjs/atomic-result-list.cjs.entry.js +1 -1
- package/dist/cjs/atomic-result-localized-text.cjs.entry.js +1 -1
- package/dist/cjs/atomic-result-template.cjs.entry.js +1 -1
- package/dist/cjs/atomic-search-interface.cjs.entry.js +2 -2
- package/dist/cjs/atomic-segmented-facet.cjs.entry.js +1 -1
- package/dist/cjs/atomic-smart-snippet.cjs.entry.js +1 -1
- package/dist/cjs/atomic-sort-expression.cjs.entry.js +1 -1
- package/dist/cjs/atomic-timeframe-facet.cjs.entry.js +1 -1
- package/dist/cjs/atomic.cjs.js +1 -1
- package/dist/cjs/index-757bc886.js +0 -4
- package/dist/cjs/{props-utils-dd638419.js → props-utils-1e4ba1b0.js} +4 -1
- package/dist/cjs/props-utils-1e4ba1b0.js.map +1 -0
- package/dist/cjs/{stencil-facet-show-more-less-21d22973.js → stencil-facet-show-more-less-541e1544.js} +10 -4
- package/dist/cjs/stencil-facet-show-more-less-541e1544.js.map +1 -0
- package/dist/cjs/version.cjs.js +2 -2
- package/dist/esm/_loader.js +1 -1
- package/dist/esm/{analytics-config-371aa4cf.js → analytics-config-1fab55eb.js} +2 -2
- package/dist/esm/{analytics-config-371aa4cf.js.map → analytics-config-1fab55eb.js.map} +1 -1
- package/dist/esm/atomic-category-facet.entry.js +2 -3
- package/dist/esm/atomic-category-facet.entry.js.map +1 -1
- package/dist/esm/atomic-color-facet.entry.js +2 -3
- package/dist/esm/atomic-color-facet.entry.js.map +1 -1
- package/dist/esm/atomic-commerce-category-facet_4.entry.js +1 -2
- package/dist/esm/atomic-commerce-category-facet_4.entry.js.map +1 -1
- package/dist/esm/atomic-facet.entry.js +2 -3
- package/dist/esm/atomic-facet.entry.js.map +1 -1
- package/dist/esm/atomic-field-condition.entry.js +1 -1
- package/dist/esm/atomic-folded-result-list.entry.js +1 -1
- package/dist/esm/atomic-generated-answer.entry.js +1 -1
- package/dist/esm/atomic-insight-facet.entry.js +1 -2
- package/dist/esm/atomic-insight-facet.entry.js.map +1 -1
- package/dist/esm/atomic-insight-interface.entry.js +2 -2
- package/dist/esm/atomic-insight-numeric-facet.entry.js +1 -1
- package/dist/esm/atomic-insight-result-children-template.entry.js +1 -1
- package/dist/esm/atomic-insight-result-template.entry.js +1 -1
- package/dist/esm/atomic-insight-timeframe-facet.entry.js +1 -1
- package/dist/esm/atomic-numeric-facet.entry.js +1 -1
- package/dist/esm/atomic-product-field-condition.entry.js +1 -1
- package/dist/esm/atomic-rating-facet.entry.js +1 -1
- package/dist/esm/atomic-rating-range-facet.entry.js +1 -1
- package/dist/esm/atomic-recs-interface.entry.js +2 -2
- package/dist/esm/atomic-recs-result-template.entry.js +1 -1
- package/dist/esm/atomic-result-children-template.entry.js +1 -1
- package/dist/esm/atomic-result-list.entry.js +1 -1
- package/dist/esm/atomic-result-localized-text.entry.js +1 -1
- package/dist/esm/atomic-result-template.entry.js +1 -1
- package/dist/esm/atomic-search-interface.entry.js +2 -2
- package/dist/esm/atomic-segmented-facet.entry.js +1 -1
- package/dist/esm/atomic-smart-snippet.entry.js +1 -1
- package/dist/esm/atomic-sort-expression.entry.js +1 -1
- package/dist/esm/atomic-timeframe-facet.entry.js +1 -1
- package/dist/esm/atomic.js +1 -1
- package/dist/esm/index-3f35faca.js +0 -4
- package/dist/esm/{props-utils-8e3d7f26.js → props-utils-e17fa18c.js} +4 -1
- package/dist/esm/props-utils-e17fa18c.js.map +1 -0
- package/dist/esm/{stencil-facet-show-more-less-4b023ee3.js → stencil-facet-show-more-less-1198472f.js} +8 -2
- package/dist/esm/stencil-facet-show-more-less-1198472f.js.map +1 -0
- package/dist/esm/version.js +2 -2
- package/dist/types/components/commerce/atomic-product-description/atomic-product-description.d.ts +21 -10
- package/dist/types/components/commerce/atomic-product-template/atomic-product-template.d.ts +1 -0
- package/dist/types/components/commerce/index.d.ts +1 -0
- package/dist/types/components.d.ts +0 -51
- package/dist/types/utils/props-utils.d.ts +3 -0
- package/docs/atomic-docs.json +1 -124
- package/package.json +11 -23
- package/dist/atomic/components/atomic-product-description.d.ts +0 -11
- package/dist/atomic/components/atomic-product-description.js +0 -153
- package/dist/atomic/components/atomic-product-description.js.map +0 -1
- package/dist/atomic/components/plus.js +0 -10
- package/dist/atomic/components/plus.js.map +0 -1
- package/dist/atomic/p-0873c1b8.entry.js +0 -2
- package/dist/atomic/p-3f881919.entry.js +0 -2
- package/dist/atomic/p-609d801e.entry.js +0 -2
- package/dist/atomic/p-64dc1a62.entry.js +0 -2
- package/dist/atomic/p-8f20d930.js +0 -2
- package/dist/atomic/p-8f20d930.js.map +0 -1
- package/dist/atomic/p-c100197d.js +0 -2
- package/dist/atomic/p-d2db2d70.js.map +0 -1
- package/dist/atomic/p-e14019fd.entry.js +0 -2
- package/dist/atomic/p-f2d31b97.entry.js +0 -2
- package/dist/atomic/p-f2d31b97.entry.js.map +0 -1
- package/dist/cjs/atomic-product-description.cjs.entry.js +0 -141
- package/dist/cjs/atomic-product-description.cjs.entry.js.map +0 -1
- package/dist/cjs/plus-07843914.js +0 -13
- package/dist/cjs/plus-07843914.js.map +0 -1
- package/dist/cjs/props-utils-dd638419.js.map +0 -1
- package/dist/cjs/stencil-facet-show-more-less-21d22973.js.map +0 -1
- package/dist/esm/atomic-product-description.entry.js +0 -137
- package/dist/esm/atomic-product-description.entry.js.map +0 -1
- package/dist/esm/plus-00840ff6.js +0 -10
- package/dist/esm/plus-00840ff6.js.map +0 -1
- package/dist/esm/props-utils-8e3d7f26.js.map +0 -1
- package/dist/esm/stencil-facet-show-more-less-4b023ee3.js.map +0 -1
- /package/dist/atomic/{p-b8beb062.entry.js.map → p-0007beed.entry.js.map} +0 -0
- /package/dist/atomic/{p-7017f8da.entry.js.map → p-00c7c8bc.entry.js.map} +0 -0
- /package/dist/atomic/{p-446b788b.entry.js.map → p-0674783d.entry.js.map} +0 -0
- /package/dist/atomic/{p-a24a8702.entry.js.map → p-0f3df0e6.entry.js.map} +0 -0
- /package/dist/atomic/{p-85749286.entry.js.map → p-11dd759c.entry.js.map} +0 -0
- /package/dist/atomic/{p-d1d012bc.entry.js.map → p-16914fd4.entry.js.map} +0 -0
- /package/dist/atomic/{p-8300e2f3.js.map → p-1e118dbf.js.map} +0 -0
- /package/dist/atomic/{p-7b6843d6.entry.js.map → p-2e00152f.entry.js.map} +0 -0
- /package/dist/atomic/{p-7969276e.entry.js.map → p-2e028d26.entry.js.map} +0 -0
- /package/dist/atomic/{p-28cea2b1.entry.js.map → p-494c57a0.entry.js.map} +0 -0
- /package/dist/atomic/{p-3ce4d644.entry.js.map → p-773dcc60.entry.js.map} +0 -0
- /package/dist/atomic/{p-be04b3b0.entry.js.map → p-7d2a47f5.entry.js.map} +0 -0
- /package/dist/atomic/{p-741cfe8d.entry.js.map → p-89fbc54c.entry.js.map} +0 -0
- /package/dist/atomic/{p-2ba33076.entry.js.map → p-8b3df33c.entry.js.map} +0 -0
- /package/dist/atomic/{p-8edfd289.entry.js.map → p-a0b3c6e2.entry.js.map} +0 -0
- /package/dist/atomic/{p-f7ae7657.entry.js.map → p-c874a70b.entry.js.map} +0 -0
- /package/dist/atomic/{p-174f6410.entry.js.map → p-c9fc93d7.entry.js.map} +0 -0
- /package/dist/atomic/{p-84740eed.entry.js.map → p-cbaf262a.entry.js.map} +0 -0
- /package/dist/atomic/{p-0ec46480.entry.js.map → p-d8953e30.entry.js.map} +0 -0
- /package/dist/atomic/{p-5a1b0c43.entry.js.map → p-da185993.entry.js.map} +0 -0
- /package/dist/atomic/{p-a4f1e397.entry.js.map → p-ebb8ae5b.entry.js.map} +0 -0
- /package/dist/atomic/{p-5920a26f.entry.js.map → p-efe9ef19.entry.js.map} +0 -0
- /package/dist/atomic/{p-538fa6a8.entry.js.map → p-fae68fde.entry.js.map} +0 -0
- /package/dist/atomic/{p-c8f4a164.entry.js.map → p-fc73190d.entry.js.map} +0 -0
|
@@ -2,7 +2,7 @@ import { r as registerInstance, h, g as getElement } from './index-3f35faca.js';
|
|
|
2
2
|
import { buildInteractiveCitation, buildGeneratedAnswer, buildSearchStatus, buildTabManager } from '@coveo/headless';
|
|
3
3
|
import { d as debounce } from './debounce-utils-efa015c0.js';
|
|
4
4
|
import { I as InitializeBindings, B as BindStateToController, H as Hidden } from './initialization-utils-ff3edf9a.js';
|
|
5
|
-
import { A as ArrayProp } from './props-utils-
|
|
5
|
+
import { A as ArrayProp } from './props-utils-e17fa18c.js';
|
|
6
6
|
import { A as AriaLiveRegion } from './stencil-accessibility-utils-bc273be5.js';
|
|
7
7
|
import { s as shouldDisplayOnCurrentTab } from './tab-utils-35886d3e.js';
|
|
8
8
|
import { G as GeneratedAnswerCommon } from './generated-answer-common-ee9bfc67.js';
|
|
@@ -6,7 +6,7 @@ import { p as parseDependsOn } from './depends-on-d73b0ce3.js';
|
|
|
6
6
|
import { a as FacetContainer, F as FacetHeader } from './stencil-facet-header-6a0bb1d4.js';
|
|
7
7
|
import { F as FacetGuard } from './facet-guard-e7fea41e.js';
|
|
8
8
|
import { F as FacetPlaceholder } from './facet-placeholder-ecbe6e6f.js';
|
|
9
|
-
import { F as FacetShowMoreLess, a as announceFacetSearchResultsWithAriaLive } from './stencil-facet-show-more-less-
|
|
9
|
+
import { F as FacetShowMoreLess, a as announceFacetSearchResultsWithAriaLive } from './stencil-facet-show-more-less-1198472f.js';
|
|
10
10
|
import { F as FacetValue } from './stencil-facet-value-fda6d52e.js';
|
|
11
11
|
import { F as FacetValuesGroup } from './stencil-facet-values-group-1108573d.js';
|
|
12
12
|
import { i as initializePopover } from './popover-type-895c0e24.js';
|
|
@@ -26,7 +26,6 @@ import './stencil-button-style-0bc80040.js';
|
|
|
26
26
|
import './stencil-heading-2b28a9b9.js';
|
|
27
27
|
import './stencil-facet-value-label-highlight-b4083ffd.js';
|
|
28
28
|
import './string-utils-5f5a23a8.js';
|
|
29
|
-
import './plus-00840ff6.js';
|
|
30
29
|
import './field-utils-f0146383.js';
|
|
31
30
|
import './stencil-facet-value-box-30a3003f.js';
|
|
32
31
|
import './stencil-facet-value-checkbox-82d52a44.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"atomic-insight-facet.entry.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAM,qBAAqB,GAAG,o+6DAAo+6D,CAAC;AACng7D,iCAAe,qBAAqB;;;;;;;;;;;;MCgDvB,kBAAkB;;;QAMtB,cAAS,GAAG,EAAE,CAAC;;;;QAkBQ,UAAK,GAAG,UAAU,CAAC;;;;;QASnB,mBAAc,GAAG,CAAC,CAAC;;;;;QAKnB,iBAAY,GACxC,WAAW,CAAC;;;;;;;QAOgB,qBAAgB,GAC5C,iBAAiB,CAAC;;;;;QAKU,oBAAe,GAC3C,UAAU,CAAC;;;;QAIgC,gBAAW,GAAG,KAAK,CAAC;;;;QAInC,iBAAY,GAAG,CAAC,CAAC;;;;;;;QAOjB,qBAAgB,GAAG,IAAI,CAAC;;;;;;;QAOvC,mBAAc,GAAG,IAAI,CAAC;;;;QAIP,oBAAe,GAAG,KAAK,CAAC;;;;;qBAvDhB,UAAU;;8BASD,CAAC;4BAM9C,WAAW;gCAQX,iBAAiB;+BAMjB,UAAU;2BAI+C,KAAK;4BAInB,CAAC;gCAOG,IAAI;8BAOrB,IAAI;+BAIY,KAAK;;IAU9C,UAAU;QACf,MAAM,OAAO,GAAwB;YACnC,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,cAAc,EAAE,IAAI,CAAC,cAAc;YACnC,YAAY,EAAE,IAAI,CAAC,YAAY;YAC/B,WAAW,EAAE,EAAC,cAAc,EAAE,IAAI,CAAC,cAAc,EAAC;YAClD,gBAAgB,EAAE,IAAI,CAAC,gBAAgB;YACvC,cAAc,EAAE,IAAI,CAAC,cAAc;SACpC,CAAC;QAEF,IAAI,CAAC,KAAK,G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AAC,SAAS,CAAC;SAClB,CACF,CAAC;KACH;IAEO,WAAW;QACjB,iBAAiB,CAAC,IAAI,CAAC,IAAI,EAAE;YAC3B,GAAG,IAAI,CAAC,SAAS;YACjB,SAAS,EAAE,MAAM,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM;YACjD,oBAAoB,EAAE,MAAM,IAAI,CAAC,YAAY,CAAC,MAAM;SACrD,CAAC,CAAC;KACJ;IAED,IAAY,QAAQ;QAClB,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC;KACrE;IAED,IAAY,SAAS;QACnB,OAAO;YACL,KAAK,EAAE,MAAM,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC;YAC7C,OAAO,EAAE,IAAI,CAAC,OAAQ;YACtB,OAAO,EAAE,IAAI,CAAC,IAAI;YAClB,QAAQ,EAAE,MAAM,IAAI,CAAC,QAAQ;SAC9B,CAAC;KACH;IAEO,aAAa;QACnB,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,aAAa,CAAC,QAAQ,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;KAC7D;;;AAzT4B;IAA5B,kBAAkB,EAAE;oDAAmC;AAQjD;IAFN,qBAAqB,CAAC,OAAO,CAAC;sDAEO;AAG/B;IAFN,qBAAqB,CAAC,cAAc,CAAC;6DAEc;AAyE1C;IADT,cAAc,CAAC,cAAc,CAAC;kEACW;;;;;","names":["buildInsightFacet","buildInsightSearchStatus","buildInsightFacetConditionsManager"],"sources":["src/components/insight/atomic-insight-facet/atomic-insight-facet.pcss?tag=atomic-insight-facet&encapsulation=shadow","src/components/insight/atomic-insight-facet/atomic-insight-facet.tsx"],"sourcesContent":["@import '../../common/facets/facet-common.pcss';\n@import '../../common/facets/facet-search/facet-search.pcss';\n@import '../../common/facets/facet-value-checkbox/facet-value-checkbox.pcss';\n@import '../../common/facets/facet-value-exclude/facet-value-exclude.pcss';\n@import '../../common/facets/facet-value-box/facet-value-box.pcss';\n","import {FacetResultsMustMatch} from '@coveo/headless';\nimport {\n buildFacet as buildInsightFacet,\n buildFacetConditionsManager as buildInsightFacetConditionsManager,\n buildSearchStatus as buildInsightSearchStatus,\n CategoryFacetValueRequest as InsightCategoryFacetValueRequest,\n Facet as InsightFacet,\n FacetConditionsManager as InsightFacetConditionsManager,\n FacetOptions as InsightFacetOptions,\n FacetSortCriterion as InsightFacetSortCriterion,\n FacetState as InsightFacetState,\n FacetValueRequest as InsightFacetValueRequest,\n SearchStatus as InsightSearchStatus,\n SearchStatusState as InsightSearchStatusState,\n} from '@coveo/headless/insight';\nimport {Component, h, State, Prop, Element, VNode} from '@stencil/core';\nimport {\n BindStateToController,\n InitializableComponent,\n InitializeBindings,\n} from '../../../utils/initialization-utils';\nimport {\n AriaLiveRegion,\n FocusTargetController,\n} from '../../../utils/stencil-accessibility-utils';\nimport {parseDependsOn} from '../../common/facets/depends-on';\nimport {FacetInfo} from '../../common/facets/facet-common-store';\nimport {FacetContainer} from '../../common/facets/facet-container/stencil-facet-container';\nimport {FacetGuard} from '../../common/facets/facet-guard';\nimport {FacetHeader} from '../../common/facets/facet-header/stencil-facet-header';\nimport {FacetPlaceholder} from '../../common/facets/facet-placeholder/facet-placeholder';\nimport {announceFacetSearchResultsWithAriaLive} from '../../common/facets/facet-search/facet-search-aria-live';\nimport {FacetShowMoreLess} from '../../common/facets/facet-show-more-less/stencil-facet-show-more-less';\nimport {\n FacetValueProps,\n FacetValue,\n} from '../../common/facets/facet-value/stencil-facet-value';\nimport {FacetValuesGroup} from '../../common/facets/facet-values-group/stencil-facet-values-group';\nimport {initializePopover} from '../../common/facets/popover/popover-type';\nimport {InsightBindings} from '../atomic-insight-interface/atomic-insight-interface';\n\n/**\n * @internal\n */\n@Component({\n tag: 'atomic-insight-facet',\n styleUrl: 'atomic-insight-facet.pcss',\n shadow: true,\n})\nexport class AtomicInsightFacet\n implements InitializableComponent<InsightBindings>\n{\n @InitializeBindings() public bindings!: InsightBindings;\n public facet!: InsightFacet;\n public searchStatus!: InsightSearchStatus;\n public dependsOn = {};\n @Element() private host!: HTMLElement;\n\n @BindStateToController('facet')\n @State()\n public facetState!: InsightFacetState;\n @BindStateToController('searchStatus')\n @State()\n public searchStatusState!: InsightSearchStatusState;\n @State() public error!: Error;\n\n /**\n * Specifies a unique identifier for the facet.\n */\n @Prop({mutable: true, reflect: true}) public facetId?: string;\n /**\n * The non-localized label for the facet.\n */\n @Prop({reflect: true}) public label = 'no-label';\n /**\n * The field whose values you want to display in the facet.\n */\n @Prop({reflect: true}) public field!: string;\n /**\n * The number of values to request for this facet.\n * Also determines the number of additional values to request each time more values are shown.\n */\n @Prop({reflect: true}) public numberOfValues = 8;\n /**\n * The sort criterion to apply to the returned facet values.\n * Possible values are 'score', 'alphanumeric', 'alphanumericDescending', 'occurrences', alphanumericNatural', 'alphanumericNaturalDescending' and 'automatic'.\n */\n @Prop({reflect: true}) public sortCriteria: InsightFacetSortCriterion =\n 'automatic';\n /**\n * Specifies how a result must match the selected facet values.\n * Allowed values:\n * - `atLeastOneValue`: A result will match if at least one of the corresponding facet values is selected.\n * - `allValues`: A result will match if all corresponding facet values are selected.\n */\n @Prop({reflect: true}) public resultsMustMatch: FacetResultsMustMatch =\n 'atLeastOneValue';\n /**\n * Whether to display the facet values as checkboxes (multiple selection), links (single selection) or boxes (multiple selection).\n * Possible values are 'checkbox', 'link', and 'box'.\n */\n @Prop({reflect: true}) public displayValuesAs: 'checkbox' | 'link' | 'box' =\n 'checkbox';\n /**\n * Specifies if the facet is collapsed.\n */\n @Prop({reflect: true, mutable: true}) public isCollapsed = false;\n /**\n * The [heading level](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Heading_Elements) to use for the heading over the facet, from 1 to 6.\n */\n @Prop({reflect: true}) public headingLevel = 0;\n /**\n * Whether to exclude the parents of folded results when estimating the result count for each facet value.\n *\n *\n * Note: Resulting count is only an estimation, in some cases this value could be incorrect.\n */\n @Prop({reflect: true}) public filterFacetCount = true;\n /**\n * The maximum number of results to scan in the index to ensure that the facet lists all potential facet values.\n * Note: A high injectionDepth may negatively impact the facet request performance.\n * Minimum: `0`\n * Default: `1000`\n */\n @Prop() public injectionDepth = 1000;\n /**\n * Whether to allow excluding values from the facet.\n */\n @Prop({reflect: true}) public enableExclusion = false;\n\n private showLessFocus?: FocusTargetController;\n private showMoreFocus?: FocusTargetController;\n private headerFocus?: FocusTargetController;\n private facetConditionsManager?: InsightFacetConditionsManager;\n\n @AriaLiveRegion('facet-search')\n protected facetSearchAriaMessage!: string;\n\n public initialize() {\n const options: InsightFacetOptions = {\n facetId: this.facetId,\n field: this.field,\n numberOfValues: this.numberOfValues,\n sortCriteria: this.sortCriteria,\n facetSearch: {numberOfValues: this.numberOfValues},\n filterFacetCount: this.filterFacetCount,\n injectionDepth: this.injectionDepth,\n };\n\n this.facet = buildInsightFacet(this.bindings.engine, {options});\n this.facetId = this.facet.state.facetId;\n this.searchStatus = buildInsightSearchStatus(this.bindings.engine);\n this.initAriaLive();\n this.initConditionManager();\n this.initPopover();\n this.registerFacet();\n }\n\n private get focusTargets(): {\n showLess: FocusTargetController;\n showMore: FocusTargetController;\n header: FocusTargetController;\n } {\n if (!this.showLessFocus) {\n this.showLessFocus = new FocusTargetController(this);\n }\n if (!this.showMoreFocus) {\n this.showMoreFocus = new FocusTargetController(this);\n }\n if (!this.headerFocus) {\n this.headerFocus = new FocusTargetController(this);\n }\n return {\n showLess: this.showLessFocus,\n showMore: this.showMoreFocus,\n header: this.headerFocus,\n };\n }\n\n public disconnectedCallback() {\n if (this.host.isConnected) {\n return;\n }\n this.facetConditionsManager?.stopWatching();\n }\n\n public render() {\n return (\n <FacetGuard\n enabled={this.facetState.enabled}\n hasError={this.searchStatusState.hasError}\n firstSearchExecuted={this.searchStatusState.firstSearchExecuted}\n hasResults={this.facetState.values.length > 0}\n >\n {this.searchStatusState.firstSearchExecuted ? (\n <FacetContainer>\n <FacetHeader\n i18n={this.bindings.i18n}\n label={this.label}\n onClearFilters={() => {\n this.focusTargets.header.focusAfterSearch();\n this.facet.deselectAll();\n }}\n numberOfActiveValues={this.activeValues.length}\n isCollapsed={this.isCollapsed}\n headingLevel={this.headingLevel}\n onToggleCollapse={() => (this.isCollapsed = !this.isCollapsed)}\n headerRef={(el) => this.focusTargets.header.setTarget(el)}\n ></FacetHeader>\n {this.renderBody()}\n </FacetContainer>\n ) : (\n <FacetPlaceholder\n numberOfValues={this.numberOfValues}\n isCollapsed={this.isCollapsed}\n />\n )}\n </FacetGuard>\n );\n }\n\n private renderBody() {\n if (this.isCollapsed) {\n return;\n }\n return [this.renderValues(), this.renderShowMoreLess()];\n }\n\n private renderValuesContainer(children: VNode[], query?: string) {\n const classes = `mt-3 ${\n this.displayValuesAs === 'box' ? 'box-container' : ''\n }`;\n return (\n <FacetValuesGroup\n i18n={this.bindings.i18n}\n label={this.label}\n query={query}\n >\n <ul class={classes} part=\"values\">\n {children}\n </ul>\n </FacetValuesGroup>\n );\n }\n\n private renderValues() {\n return this.renderValuesContainer(\n this.facet.state.values.map((value, i) => {\n const shouldFocusOnShowLessAfterInteraction = i === 0;\n const shouldFocusOnShowMoreAfterInteraction =\n i ===\n (this.sortCriteria === 'automatic'\n ? 0\n : this.facetState.values.length - 1);\n\n return (\n <FacetValue\n {...this.facetValueProps}\n facetCount={value.numberOfResults}\n onExclude={() => this.facet.toggleExclude(value)}\n onSelect={() =>\n this.displayValuesAs === 'link'\n ? this.facet.toggleSingleSelect(value)\n : this.facet.toggleSelect(value)\n }\n facetValue={value.value}\n facetState={value.state}\n setRef={(btn) => {\n if (shouldFocusOnShowLessAfterInteraction) {\n this.showLessFocus?.setTarget(btn);\n }\n if (shouldFocusOnShowMoreAfterInteraction) {\n this.showMoreFocus?.setTarget(btn);\n }\n }}\n />\n );\n })\n );\n }\n\n private renderShowMoreLess() {\n return (\n <FacetShowMoreLess\n label={this.label}\n i18n={this.bindings.i18n}\n onShowMore={() => {\n this.focusTargets.showMore.focusAfterSearch();\n this.facet.showMoreValues();\n }}\n onShowLess={() => {\n this.focusTargets.showLess.focusAfterSearch();\n this.facet.showLessValues();\n }}\n canShowMoreValues={this.facet.state.canShowMoreValues}\n canShowLessValues={this.facet.state.canShowLessValues}\n ></FacetShowMoreLess>\n );\n }\n\n private get activeValues() {\n return this.facet.state.values.filter(({state}) => state !== 'idle');\n }\n\n private get facetValueProps(): Pick<\n FacetValueProps,\n | 'displayValuesAs'\n | 'facetSearchQuery'\n | 'enableExclusion'\n | 'field'\n | 'i18n'\n > {\n return {\n facetSearchQuery: this.facetState.facetSearch.query,\n displayValuesAs: this.displayValuesAs,\n enableExclusion: this.enableExclusion,\n field: this.field,\n i18n: this.bindings.i18n,\n };\n }\n\n private initAriaLive() {\n announceFacetSearchResultsWithAriaLive(\n this.facet,\n this.label,\n (msg) => (this.facetSearchAriaMessage = msg),\n this.bindings.i18n\n );\n }\n\n private initConditionManager() {\n this.facetConditionsManager = buildInsightFacetConditionsManager(\n this.bindings.engine,\n {\n facetId: this.facetId!,\n conditions: parseDependsOn<\n InsightFacetValueRequest | InsightCategoryFacetValueRequest\n >(this.dependsOn),\n }\n );\n }\n\n private initPopover() {\n initializePopover(this.host, {\n ...this.facetInfo,\n hasValues: () => !!this.facet.state.values.length,\n numberOfActiveValues: () => this.activeValues.length,\n });\n }\n\n private get isHidden() {\n return !this.facet.state.enabled || !this.facet.state.values.length;\n }\n\n private get facetInfo(): FacetInfo {\n return {\n label: () => this.bindings.i18n.t(this.label),\n facetId: this.facetId!,\n element: this.host,\n isHidden: () => this.isHidden,\n };\n }\n\n private registerFacet() {\n this.bindings.store.registerFacet('facets', this.facetInfo);\n }\n}\n"],"version":3}
|
|
1
|
+
{"file":"atomic-insight-facet.entry.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AM;YACjD,oBAAoB,EAAE,MAAM,IAAI,CAAC,YAAY,CAAC,MAAM;SACrD,CAAC,CAAC;KACJ;IAED,IAAY,QAAQ;QAClB,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC;KACrE;IAED,IAAY,SAAS;QACnB,OAAO;YACL,KAAK,EAAE,MAAM,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC;YAC7C,OAAO,EAAE,IAAI,CAAC,OAAQ;YACtB,OAAO,EAAE,IAAI,CAAC,IAAI;YAClB,QAAQ,EAAE,MAAM,IAAI,CAAC,QAAQ;SAC9B,CAAC;KACH;IAEO,aAAa;QACnB,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,aAAa,CAAC,QAAQ,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;KAC7D;;;AAzT4B;IAA5B,kBAAkB,EAAE;oDAAmC;AAQjD;IAFN,qBAAqB,CAAC,OAAO,CAAC;sDAEO;AAG/B;IAFN,qBAAqB,CAAC,cAAc,CAAC;6DAEc;AAyE1C;IADT,cAAc,CAAC,cAAc,CAAC;kEACW;;;;;","names":["buildInsightFacet","buildInsightSearchStatus","buildInsightFacetConditionsManager"],"sources":["src/components/insight/atomic-insight-facet/atomic-insight-facet.pcss?tag=atomic-insight-facet&encapsulation=shadow","src/components/insight/atomic-insight-facet/atomic-insight-facet.tsx"],"sourcesContent":["@import '../../common/facets/facet-common.pcss';\n@import '../../common/facets/facet-search/facet-search.pcss';\n@import '../../common/facets/facet-value-checkbox/facet-value-checkbox.pcss';\n@import '../../common/facets/facet-value-exclude/facet-value-exclude.pcss';\n@import '../../common/facets/facet-value-box/facet-value-box.pcss';\n","import {FacetResultsMustMatch} from '@coveo/headless';\nimport {\n buildFacet as buildInsightFacet,\n buildFacetConditionsManager as buildInsightFacetConditionsManager,\n buildSearchStatus as buildInsightSearchStatus,\n CategoryFacetValueRequest as InsightCategoryFacetValueRequest,\n Facet as InsightFacet,\n FacetConditionsManager as InsightFacetConditionsManager,\n FacetOptions as InsightFacetOptions,\n FacetSortCriterion as InsightFacetSortCriterion,\n FacetState as InsightFacetState,\n FacetValueRequest as InsightFacetValueRequest,\n SearchStatus as InsightSearchStatus,\n SearchStatusState as InsightSearchStatusState,\n} from '@coveo/headless/insight';\nimport {Component, h, State, Prop, Element, VNode} from '@stencil/core';\nimport {\n BindStateToController,\n InitializableComponent,\n InitializeBindings,\n} from '../../../utils/initialization-utils';\nimport {\n AriaLiveRegion,\n FocusTargetController,\n} from '../../../utils/stencil-accessibility-utils';\nimport {parseDependsOn} from '../../common/facets/depends-on';\nimport {FacetInfo} from '../../common/facets/facet-common-store';\nimport {FacetContainer} from '../../common/facets/facet-container/stencil-facet-container';\nimport {FacetGuard} from '../../common/facets/facet-guard';\nimport {FacetHeader} from '../../common/facets/facet-header/stencil-facet-header';\nimport {FacetPlaceholder} from '../../common/facets/facet-placeholder/facet-placeholder';\nimport {announceFacetSearchResultsWithAriaLive} from '../../common/facets/facet-search/facet-search-aria-live';\nimport {FacetShowMoreLess} from '../../common/facets/facet-show-more-less/stencil-facet-show-more-less';\nimport {\n FacetValueProps,\n FacetValue,\n} from '../../common/facets/facet-value/stencil-facet-value';\nimport {FacetValuesGroup} from '../../common/facets/facet-values-group/stencil-facet-values-group';\nimport {initializePopover} from '../../common/facets/popover/popover-type';\nimport {InsightBindings} from '../atomic-insight-interface/atomic-insight-interface';\n\n/**\n * @internal\n */\n@Component({\n tag: 'atomic-insight-facet',\n styleUrl: 'atomic-insight-facet.pcss',\n shadow: true,\n})\nexport class AtomicInsightFacet\n implements InitializableComponent<InsightBindings>\n{\n @InitializeBindings() public bindings!: InsightBindings;\n public facet!: InsightFacet;\n public searchStatus!: InsightSearchStatus;\n public dependsOn = {};\n @Element() private host!: HTMLElement;\n\n @BindStateToController('facet')\n @State()\n public facetState!: InsightFacetState;\n @BindStateToController('searchStatus')\n @State()\n public searchStatusState!: InsightSearchStatusState;\n @State() public error!: Error;\n\n /**\n * Specifies a unique identifier for the facet.\n */\n @Prop({mutable: true, reflect: true}) public facetId?: string;\n /**\n * The non-localized label for the facet.\n */\n @Prop({reflect: true}) public label = 'no-label';\n /**\n * The field whose values you want to display in the facet.\n */\n @Prop({reflect: true}) public field!: string;\n /**\n * The number of values to request for this facet.\n * Also determines the number of additional values to request each time more values are shown.\n */\n @Prop({reflect: true}) public numberOfValues = 8;\n /**\n * The sort criterion to apply to the returned facet values.\n * Possible values are 'score', 'alphanumeric', 'alphanumericDescending', 'occurrences', alphanumericNatural', 'alphanumericNaturalDescending' and 'automatic'.\n */\n @Prop({reflect: true}) public sortCriteria: InsightFacetSortCriterion =\n 'automatic';\n /**\n * Specifies how a result must match the selected facet values.\n * Allowed values:\n * - `atLeastOneValue`: A result will match if at least one of the corresponding facet values is selected.\n * - `allValues`: A result will match if all corresponding facet values are selected.\n */\n @Prop({reflect: true}) public resultsMustMatch: FacetResultsMustMatch =\n 'atLeastOneValue';\n /**\n * Whether to display the facet values as checkboxes (multiple selection), links (single selection) or boxes (multiple selection).\n * Possible values are 'checkbox', 'link', and 'box'.\n */\n @Prop({reflect: true}) public displayValuesAs: 'checkbox' | 'link' | 'box' =\n 'checkbox';\n /**\n * Specifies if the facet is collapsed.\n */\n @Prop({reflect: true, mutable: true}) public isCollapsed = false;\n /**\n * The [heading level](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Heading_Elements) to use for the heading over the facet, from 1 to 6.\n */\n @Prop({reflect: true}) public headingLevel = 0;\n /**\n * Whether to exclude the parents of folded results when estimating the result count for each facet value.\n *\n *\n * Note: Resulting count is only an estimation, in some cases this value could be incorrect.\n */\n @Prop({reflect: true}) public filterFacetCount = true;\n /**\n * The maximum number of results to scan in the index to ensure that the facet lists all potential facet values.\n * Note: A high injectionDepth may negatively impact the facet request performance.\n * Minimum: `0`\n * Default: `1000`\n */\n @Prop() public injectionDepth = 1000;\n /**\n * Whether to allow excluding values from the facet.\n */\n @Prop({reflect: true}) public enableExclusion = false;\n\n private showLessFocus?: FocusTargetController;\n private showMoreFocus?: FocusTargetController;\n private headerFocus?: FocusTargetController;\n private facetConditionsManager?: InsightFacetConditionsManager;\n\n @AriaLiveRegion('facet-search')\n protected facetSearchAriaMessage!: string;\n\n public initialize() {\n const options: InsightFacetOptions = {\n facetId: this.facetId,\n field: this.field,\n numberOfValues: this.numberOfValues,\n sortCriteria: this.sortCriteria,\n facetSearch: {numberOfValues: this.numberOfValues},\n filterFacetCount: this.filterFacetCount,\n injectionDepth: this.injectionDepth,\n };\n\n this.facet = buildInsightFacet(this.bindings.engine, {options});\n this.facetId = this.facet.state.facetId;\n this.searchStatus = buildInsightSearchStatus(this.bindings.engine);\n this.initAriaLive();\n this.initConditionManager();\n this.initPopover();\n this.registerFacet();\n }\n\n private get focusTargets(): {\n showLess: FocusTargetController;\n showMore: FocusTargetController;\n header: FocusTargetController;\n } {\n if (!this.showLessFocus) {\n this.showLessFocus = new FocusTargetController(this);\n }\n if (!this.showMoreFocus) {\n this.showMoreFocus = new FocusTargetController(this);\n }\n if (!this.headerFocus) {\n this.headerFocus = new FocusTargetController(this);\n }\n return {\n showLess: this.showLessFocus,\n showMore: this.showMoreFocus,\n header: this.headerFocus,\n };\n }\n\n public disconnectedCallback() {\n if (this.host.isConnected) {\n return;\n }\n this.facetConditionsManager?.stopWatching();\n }\n\n public render() {\n return (\n <FacetGuard\n enabled={this.facetState.enabled}\n hasError={this.searchStatusState.hasError}\n firstSearchExecuted={this.searchStatusState.firstSearchExecuted}\n hasResults={this.facetState.values.length > 0}\n >\n {this.searchStatusState.firstSearchExecuted ? (\n <FacetContainer>\n <FacetHeader\n i18n={this.bindings.i18n}\n label={this.label}\n onClearFilters={() => {\n this.focusTargets.header.focusAfterSearch();\n this.facet.deselectAll();\n }}\n numberOfActiveValues={this.activeValues.length}\n isCollapsed={this.isCollapsed}\n headingLevel={this.headingLevel}\n onToggleCollapse={() => (this.isCollapsed = !this.isCollapsed)}\n headerRef={(el) => this.focusTargets.header.setTarget(el)}\n ></FacetHeader>\n {this.renderBody()}\n </FacetContainer>\n ) : (\n <FacetPlaceholder\n numberOfValues={this.numberOfValues}\n isCollapsed={this.isCollapsed}\n />\n )}\n </FacetGuard>\n );\n }\n\n private renderBody() {\n if (this.isCollapsed) {\n return;\n }\n return [this.renderValues(), this.renderShowMoreLess()];\n }\n\n private renderValuesContainer(children: VNode[], query?: string) {\n const classes = `mt-3 ${\n this.displayValuesAs === 'box' ? 'box-container' : ''\n }`;\n return (\n <FacetValuesGroup\n i18n={this.bindings.i18n}\n label={this.label}\n query={query}\n >\n <ul class={classes} part=\"values\">\n {children}\n </ul>\n </FacetValuesGroup>\n );\n }\n\n private renderValues() {\n return this.renderValuesContainer(\n this.facet.state.values.map((value, i) => {\n const shouldFocusOnShowLessAfterInteraction = i === 0;\n const shouldFocusOnShowMoreAfterInteraction =\n i ===\n (this.sortCriteria === 'automatic'\n ? 0\n : this.facetState.values.length - 1);\n\n return (\n <FacetValue\n {...this.facetValueProps}\n facetCount={value.numberOfResults}\n onExclude={() => this.facet.toggleExclude(value)}\n onSelect={() =>\n this.displayValuesAs === 'link'\n ? this.facet.toggleSingleSelect(value)\n : this.facet.toggleSelect(value)\n }\n facetValue={value.value}\n facetState={value.state}\n setRef={(btn) => {\n if (shouldFocusOnShowLessAfterInteraction) {\n this.showLessFocus?.setTarget(btn);\n }\n if (shouldFocusOnShowMoreAfterInteraction) {\n this.showMoreFocus?.setTarget(btn);\n }\n }}\n />\n );\n })\n );\n }\n\n private renderShowMoreLess() {\n return (\n <FacetShowMoreLess\n label={this.label}\n i18n={this.bindings.i18n}\n onShowMore={() => {\n this.focusTargets.showMore.focusAfterSearch();\n this.facet.showMoreValues();\n }}\n onShowLess={() => {\n this.focusTargets.showLess.focusAfterSearch();\n this.facet.showLessValues();\n }}\n canShowMoreValues={this.facet.state.canShowMoreValues}\n canShowLessValues={this.facet.state.canShowLessValues}\n ></FacetShowMoreLess>\n );\n }\n\n private get activeValues() {\n return this.facet.state.values.filter(({state}) => state !== 'idle');\n }\n\n private get facetValueProps(): Pick<\n FacetValueProps,\n | 'displayValuesAs'\n | 'facetSearchQuery'\n | 'enableExclusion'\n | 'field'\n | 'i18n'\n > {\n return {\n facetSearchQuery: this.facetState.facetSearch.query,\n displayValuesAs: this.displayValuesAs,\n enableExclusion: this.enableExclusion,\n field: this.field,\n i18n: this.bindings.i18n,\n };\n }\n\n private initAriaLive() {\n announceFacetSearchResultsWithAriaLive(\n this.facet,\n this.label,\n (msg) => (this.facetSearchAriaMessage = msg),\n this.bindings.i18n\n );\n }\n\n private initConditionManager() {\n this.facetConditionsManager = buildInsightFacetConditionsManager(\n this.bindings.engine,\n {\n facetId: this.facetId!,\n conditions: parseDependsOn<\n InsightFacetValueRequest | InsightCategoryFacetValueRequest\n >(this.dependsOn),\n }\n );\n }\n\n private initPopover() {\n initializePopover(this.host, {\n ...this.facetInfo,\n hasValues: () => !!this.facet.state.values.length,\n numberOfActiveValues: () => this.activeValues.length,\n });\n }\n\n private get isHidden() {\n return !this.facet.state.enabled || !this.facet.state.values.length;\n }\n\n private get facetInfo(): FacetInfo {\n return {\n label: () => this.bindings.i18n.t(this.label),\n facetId: this.facetId!,\n element: this.host,\n isHidden: () => this.isHidden,\n };\n }\n\n private registerFacet() {\n this.bindings.store.registerFacet('facets', this.facetInfo);\n }\n}\n"],"version":3}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as registerInstance, s as setNonce, h, H as Host, g as getElement } from './index-3f35faca.js';
|
|
2
2
|
import { m as markParentAsReady } from './init-queue-fbe942c3.js';
|
|
3
3
|
import { buildResultsPerPage, loadFieldActions, buildInsightEngine } from '@coveo/headless/insight';
|
|
4
|
-
import { g as getNextAnalyticsConfig, a as augmentWithExternalMiddleware, b as augmentAnalyticsWithAtomicVersion, C as CommonAtomicInterfaceHelper, i as instance } from './analytics-config-
|
|
5
|
-
import { A as ArrayProp } from './props-utils-
|
|
4
|
+
import { g as getNextAnalyticsConfig, a as augmentWithExternalMiddleware, b as augmentAnalyticsWithAtomicVersion, C as CommonAtomicInterfaceHelper, i as instance } from './analytics-config-1fab55eb.js';
|
|
5
|
+
import { A as ArrayProp } from './props-utils-e17fa18c.js';
|
|
6
6
|
import { D as DEFAULT_MOBILE_BREAKPOINT } from './replace-breakpoint-213367f8.js';
|
|
7
7
|
import { u as unsetLoadingFlag, s as setLoadingFlag, r as registerFacet, g as getFacetElements, w as waitUntilAppLoaded, a as createBaseStore } from './store-5fcae420.js';
|
|
8
8
|
import { m as makeDesktopQuery } from './insight-layout-776b87f2.js';
|
|
@@ -2,7 +2,7 @@ import { r as registerInstance, h, g as getElement } from './index-3f35faca.js';
|
|
|
2
2
|
import { Schema, StringValue } from '@coveo/bueno';
|
|
3
3
|
import { buildNumericFacet, buildNumericRange, buildNumericFilter, buildFacetConditionsManager, buildSearchStatus, loadNumericFacetSetActions } from '@coveo/headless/insight';
|
|
4
4
|
import { I as InitializeBindings, B as BindStateToController } from './initialization-utils-ff3edf9a.js';
|
|
5
|
-
import { M as MapProp } from './props-utils-
|
|
5
|
+
import { M as MapProp } from './props-utils-e17fa18c.js';
|
|
6
6
|
import { F as FocusTargetController } from './stencil-accessibility-utils-bc273be5.js';
|
|
7
7
|
import { r as randomID } from './utils-30b00491.js';
|
|
8
8
|
import { p as parseDependsOn } from './depends-on-d73b0ce3.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, g as getElement } from './index-3f35faca.js';
|
|
2
|
-
import { M as MapProp } from './props-utils-
|
|
2
|
+
import { M as MapProp } from './props-utils-e17fa18c.js';
|
|
3
3
|
import { R as ResultTemplateCommon, a as makeDefinedConditions, m as makeMatchConditions } from './result-template-common-0eb26069.js';
|
|
4
4
|
import '@coveo/bueno';
|
|
5
5
|
import './utils-30b00491.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, g as getElement } from './index-3f35faca.js';
|
|
2
|
-
import { M as MapProp } from './props-utils-
|
|
2
|
+
import { M as MapProp } from './props-utils-e17fa18c.js';
|
|
3
3
|
import { R as ResultTemplateCommon, a as makeDefinedConditions, m as makeMatchConditions } from './result-template-common-0eb26069.js';
|
|
4
4
|
import '@coveo/bueno';
|
|
5
5
|
import './utils-30b00491.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, h, g as getElement } from './index-3f35faca.js';
|
|
2
2
|
import { buildFacetConditionsManager, buildDateRange, deserializeRelativeDate, buildSearchStatus, buildDateFacet, buildDateFilter, loadDateFacetSetActions } from '@coveo/headless/insight';
|
|
3
3
|
import { I as InitializeBindings, B as BindStateToController } from './initialization-utils-ff3edf9a.js';
|
|
4
|
-
import { M as MapProp } from './props-utils-
|
|
4
|
+
import { M as MapProp } from './props-utils-e17fa18c.js';
|
|
5
5
|
import { F as FocusTargetController } from './stencil-accessibility-utils-bc273be5.js';
|
|
6
6
|
import { p as parseDependsOn } from './depends-on-d73b0ce3.js';
|
|
7
7
|
import { F as FacetPlaceholder } from './facet-placeholder-ecbe6e6f.js';
|
|
@@ -2,7 +2,7 @@ import { r as registerInstance, h, g as getElement } from './index-3f35faca.js';
|
|
|
2
2
|
import { Schema, StringValue } from '@coveo/bueno';
|
|
3
3
|
import { buildSearchStatus, buildTabManager, buildNumericFacet, buildNumericRange, buildNumericFilter, buildFacetConditionsManager, loadNumericFacetSetActions } from '@coveo/headless';
|
|
4
4
|
import { I as InitializeBindings, B as BindStateToController } from './initialization-utils-ff3edf9a.js';
|
|
5
|
-
import { A as ArrayProp, M as MapProp } from './props-utils-
|
|
5
|
+
import { A as ArrayProp, M as MapProp } from './props-utils-e17fa18c.js';
|
|
6
6
|
import { F as FocusTargetController } from './stencil-accessibility-utils-bc273be5.js';
|
|
7
7
|
import { r as randomID } from './utils-30b00491.js';
|
|
8
8
|
import { p as parseDependsOn } from './depends-on-d73b0ce3.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, g as getElement } from './index-3f35faca.js';
|
|
2
|
-
import { M as MapProp } from './props-utils-
|
|
2
|
+
import { M as MapProp } from './props-utils-e17fa18c.js';
|
|
3
3
|
import './purify-c7ebd240.js';
|
|
4
4
|
import { ProductTemplatesHelpers } from '@coveo/headless/commerce';
|
|
5
5
|
import { P as ProductContext } from './stencil-product-template-decorators-58cfc116.js';
|
|
@@ -3,7 +3,7 @@ import { Schema, StringValue } from '@coveo/bueno';
|
|
|
3
3
|
import { buildSearchStatus, buildTabManager, buildNumericFacet, buildFacetConditionsManager, buildNumericRange } from '@coveo/headless';
|
|
4
4
|
import { S as Star, R as Rating } from './atomic-rating-c16526af.js';
|
|
5
5
|
import { I as InitializeBindings, B as BindStateToController, H as Hidden } from './initialization-utils-ff3edf9a.js';
|
|
6
|
-
import { A as ArrayProp, M as MapProp } from './props-utils-
|
|
6
|
+
import { A as ArrayProp, M as MapProp } from './props-utils-e17fa18c.js';
|
|
7
7
|
import { F as FocusTargetController } from './stencil-accessibility-utils-bc273be5.js';
|
|
8
8
|
import { p as parseDependsOn } from './depends-on-d73b0ce3.js';
|
|
9
9
|
import { F as FacetHeader, a as FacetContainer } from './stencil-facet-header-6a0bb1d4.js';
|
|
@@ -2,7 +2,7 @@ import { r as registerInstance, h, g as getElement } from './index-3f35faca.js';
|
|
|
2
2
|
import { buildSearchStatus, buildTabManager, buildNumericFacet, buildFacetConditionsManager, buildNumericRange } from '@coveo/headless';
|
|
3
3
|
import { S as Star, R as Rating } from './atomic-rating-c16526af.js';
|
|
4
4
|
import { I as InitializeBindings, B as BindStateToController, H as Hidden } from './initialization-utils-ff3edf9a.js';
|
|
5
|
-
import { A as ArrayProp, M as MapProp } from './props-utils-
|
|
5
|
+
import { A as ArrayProp, M as MapProp } from './props-utils-e17fa18c.js';
|
|
6
6
|
import { F as FocusTargetController } from './stencil-accessibility-utils-bc273be5.js';
|
|
7
7
|
import { p as parseDependsOn } from './depends-on-d73b0ce3.js';
|
|
8
8
|
import { F as FacetHeader, a as FacetContainer } from './stencil-facet-header-6a0bb1d4.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as registerInstance, s as setNonce, h, g as getElement } from './index-3f35faca.js';
|
|
2
2
|
import { m as markParentAsReady } from './init-queue-fbe942c3.js';
|
|
3
3
|
import { loadRecommendationActions, loadSearchConfigurationActions, EcommerceDefaultFieldsToInclude, loadFieldActions, buildRecommendationEngine } from '@coveo/headless/recommendation';
|
|
4
|
-
import { g as getNextAnalyticsConfig, c as augmentAnalyticsConfigWithDocument, d as augmentAnalyticsConfigWithAtomicVersion, a as augmentWithExternalMiddleware, b as augmentAnalyticsWithAtomicVersion, C as CommonAtomicInterfaceHelper, i as instance, m as mismatchedInterfaceAndEnginePropError } from './analytics-config-
|
|
5
|
-
import { A as ArrayProp } from './props-utils-
|
|
4
|
+
import { g as getNextAnalyticsConfig, c as augmentAnalyticsConfigWithDocument, d as augmentAnalyticsConfigWithAtomicVersion, a as augmentWithExternalMiddleware, b as augmentAnalyticsWithAtomicVersion, C as CommonAtomicInterfaceHelper, i as instance, m as mismatchedInterfaceAndEnginePropError } from './analytics-config-1fab55eb.js';
|
|
5
|
+
import { A as ArrayProp } from './props-utils-e17fa18c.js';
|
|
6
6
|
import { u as unsetLoadingFlag, s as setLoadingFlag, a as createBaseStore } from './store-5fcae420.js';
|
|
7
7
|
import './dayjs.min-d04628c6.js';
|
|
8
8
|
import './_commonjsHelpers-1789f0cf.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, g as getElement } from './index-3f35faca.js';
|
|
2
|
-
import { M as MapProp } from './props-utils-
|
|
2
|
+
import { M as MapProp } from './props-utils-e17fa18c.js';
|
|
3
3
|
import { R as ResultTemplateCommon, a as makeDefinedConditions, m as makeMatchConditions } from './result-template-common-0eb26069.js';
|
|
4
4
|
import '@coveo/bueno';
|
|
5
5
|
import './utils-30b00491.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, g as getElement } from './index-3f35faca.js';
|
|
2
|
-
import { M as MapProp } from './props-utils-
|
|
2
|
+
import { M as MapProp } from './props-utils-e17fa18c.js';
|
|
3
3
|
import { R as ResultTemplateCommon, m as makeMatchConditions } from './result-template-common-0eb26069.js';
|
|
4
4
|
import '@coveo/bueno';
|
|
5
5
|
import './utils-30b00491.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h, F as Fragment, r as registerInstance, g as getElement } from './index-3f35faca.js';
|
|
2
2
|
import { buildTabManager, buildResultList, buildResultsPerPage, buildInteractiveResult } from '@coveo/headless';
|
|
3
3
|
import { H as Hidden, I as InitializeBindings, B as BindStateToController } from './initialization-utils-ff3edf9a.js';
|
|
4
|
-
import { A as ArrayProp } from './props-utils-
|
|
4
|
+
import { A as ArrayProp } from './props-utils-e17fa18c.js';
|
|
5
5
|
import { F as FocusTargetController } from './stencil-accessibility-utils-bc273be5.js';
|
|
6
6
|
import { r as randomID } from './utils-30b00491.js';
|
|
7
7
|
import { R as ResultsPlaceholdersGuard } from './stencil-placeholders-58a0c818.js';
|
|
@@ -2,7 +2,7 @@ import { r as registerInstance } from './index-3f35faca.js';
|
|
|
2
2
|
import { isNullOrUndefined } from '@coveo/bueno';
|
|
3
3
|
import { ResultTemplatesHelpers } from '@coveo/headless';
|
|
4
4
|
import { I as InitializeBindings } from './initialization-utils-ff3edf9a.js';
|
|
5
|
-
import { M as MapProp } from './props-utils-
|
|
5
|
+
import { M as MapProp } from './props-utils-e17fa18c.js';
|
|
6
6
|
import { R as ResultContext } from './result-template-decorators-2ed76ea9.js';
|
|
7
7
|
import './dom-utils-f6086cd3.js';
|
|
8
8
|
import './event-utils-8de63ec3.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, g as getElement } from './index-3f35faca.js';
|
|
2
|
-
import { M as MapProp } from './props-utils-
|
|
2
|
+
import { M as MapProp } from './props-utils-e17fa18c.js';
|
|
3
3
|
import { R as ResultTemplateCommon, m as makeMatchConditions } from './result-template-common-0eb26069.js';
|
|
4
4
|
import '@coveo/bueno';
|
|
5
5
|
import './utils-30b00491.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { r as registerInstance, s as setNonce, h, g as getElement } from './index-3f35faca.js';
|
|
2
2
|
import { m as markParentAsReady } from './init-queue-fbe942c3.js';
|
|
3
3
|
import { loadSearchConfigurationActions, loadQueryActions, EcommerceDefaultFieldsToInclude, loadFieldActions, buildSearchEngine, buildUrlManager, buildSearchStatus } from '@coveo/headless';
|
|
4
|
-
import { g as getNextAnalyticsConfig, d as augmentAnalyticsConfigWithAtomicVersion, c as augmentAnalyticsConfigWithDocument, a as augmentWithExternalMiddleware, b as augmentAnalyticsWithAtomicVersion, C as CommonAtomicInterfaceHelper, i as instance, m as mismatchedInterfaceAndEnginePropError } from './analytics-config-
|
|
4
|
+
import { g as getNextAnalyticsConfig, d as augmentAnalyticsConfigWithAtomicVersion, c as augmentAnalyticsConfigWithDocument, a as augmentWithExternalMiddleware, b as augmentAnalyticsWithAtomicVersion, C as CommonAtomicInterfaceHelper, i as instance, m as mismatchedInterfaceAndEnginePropError } from './analytics-config-1fab55eb.js';
|
|
5
5
|
import { a as StorageItems, S as SafeStorage } from './local-storage-utils-410269e6.js';
|
|
6
|
-
import { A as ArrayProp } from './props-utils-
|
|
6
|
+
import { A as ArrayProp } from './props-utils-e17fa18c.js';
|
|
7
7
|
import { m as makeDesktopQuery, n as noResultsSelector, e as errorSelector, f as firstSearchExecutedSelector } from './search-layout-1e3bd9fd.js';
|
|
8
8
|
import { D as DEFAULT_MOBILE_BREAKPOINT } from './replace-breakpoint-213367f8.js';
|
|
9
9
|
import { u as unsetLoadingFlag, s as setLoadingFlag, r as registerFacet, g as getFacetElements, w as waitUntilAppLoaded, a as createBaseStore } from './store-5fcae420.js';
|
|
@@ -2,7 +2,7 @@ import { h, r as registerInstance } from './index-3f35faca.js';
|
|
|
2
2
|
import { buildSearchStatus, buildTabManager, buildFacet, buildFacetConditionsManager } from '@coveo/headless';
|
|
3
3
|
import { g as getFieldValueCaption } from './field-utils-f0146383.js';
|
|
4
4
|
import { I as InitializeBindings, B as BindStateToController, H as Hidden } from './initialization-utils-ff3edf9a.js';
|
|
5
|
-
import { A as ArrayProp, M as MapProp } from './props-utils-
|
|
5
|
+
import { A as ArrayProp, M as MapProp } from './props-utils-e17fa18c.js';
|
|
6
6
|
import { p as parseDependsOn } from './depends-on-d73b0ce3.js';
|
|
7
7
|
import { F as FacetValuesGroup } from './stencil-facet-values-group-1108573d.js';
|
|
8
8
|
import { B as Button } from './stencil-button-2a8cc429.js';
|
|
@@ -3,7 +3,7 @@ import { S as SmartSnippetQuestion, d as SmartSnippetTruncatedAnswer, a as Smart
|
|
|
3
3
|
import { r as randomID } from './utils-30b00491.js';
|
|
4
4
|
import { buildSmartSnippet, buildTabManager } from '@coveo/headless';
|
|
5
5
|
import { I as InitializeBindings, B as BindStateToController, H as Hidden } from './initialization-utils-ff3edf9a.js';
|
|
6
|
-
import { A as ArrayProp } from './props-utils-
|
|
6
|
+
import { A as ArrayProp } from './props-utils-e17fa18c.js';
|
|
7
7
|
import { s as shouldDisplayOnCurrentTab } from './tab-utils-35886d3e.js';
|
|
8
8
|
import { g as getAttributesFromLinkSlot } from './attributes-slot-0fb13fa2.js';
|
|
9
9
|
import './stencil-button-2a8cc429.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, g as getElement } from './index-3f35faca.js';
|
|
2
|
-
import { A as ArrayProp } from './props-utils-
|
|
2
|
+
import { A as ArrayProp } from './props-utils-e17fa18c.js';
|
|
3
3
|
import '@coveo/bueno';
|
|
4
4
|
import './utils-30b00491.js';
|
|
5
5
|
import './purify-c7ebd240.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, h, g as getElement } from './index-3f35faca.js';
|
|
2
2
|
import { buildFacetConditionsManager, buildDateRange, deserializeRelativeDate, buildSearchStatus, buildTabManager, buildDateFacet, buildDateFilter, loadDateFacetSetActions } from '@coveo/headless';
|
|
3
3
|
import { I as InitializeBindings, B as BindStateToController } from './initialization-utils-ff3edf9a.js';
|
|
4
|
-
import { A as ArrayProp, M as MapProp } from './props-utils-
|
|
4
|
+
import { A as ArrayProp, M as MapProp } from './props-utils-e17fa18c.js';
|
|
5
5
|
import { F as FocusTargetController } from './stencil-accessibility-utils-bc273be5.js';
|
|
6
6
|
import { p as parseDependsOn } from './depends-on-d73b0ce3.js';
|
|
7
7
|
import { F as FacetPlaceholder } from './facet-placeholder-ecbe6e6f.js';
|