@coveo/atomic 3.33.8-pre.32aa53b021 → 3.33.8-pre.32dc00f676

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.
Files changed (724) hide show
  1. package/dist/atomic/_atomic.esm.js +1 -1
  2. package/dist/atomic/atomic.esm.js.map +1 -1
  3. package/dist/atomic/autoloader/index.cjs.js +2 -2
  4. package/dist/atomic/autoloader/index.esm.js +2 -2
  5. package/dist/atomic/components/_index.d.ts +4 -0
  6. package/dist/atomic/components/_index.js +21 -19
  7. package/dist/atomic/components/analytics-config.js +1 -1
  8. package/dist/atomic/components/atomic-category-facet.js +2 -2
  9. package/dist/atomic/components/atomic-category-facet.js.map +1 -1
  10. package/dist/atomic/components/atomic-citation.js +1 -1
  11. package/dist/atomic/components/atomic-facet-manager.js +1 -1
  12. package/dist/atomic/components/atomic-facet.d.ts +11 -0
  13. package/dist/atomic/components/atomic-facet.js +470 -0
  14. package/dist/atomic/components/atomic-facet.js.map +1 -0
  15. package/dist/atomic/components/atomic-field-condition.js +1 -1
  16. package/dist/atomic/components/atomic-field-condition.js.map +1 -1
  17. package/dist/atomic/components/atomic-format-currency.js +1 -1
  18. package/dist/atomic/components/atomic-format-number.js +1 -1
  19. package/dist/atomic/components/atomic-format-unit.js +1 -1
  20. package/dist/atomic/components/atomic-generated-answer-feedback-modal.js +1 -1
  21. package/dist/atomic/components/atomic-html2.js +1 -1
  22. package/dist/atomic/components/atomic-insight-edit-toggle.js +1 -1
  23. package/dist/atomic/components/atomic-insight-facet.js +4 -37
  24. package/dist/atomic/components/atomic-insight-facet.js.map +1 -1
  25. package/dist/atomic/components/atomic-insight-folded-result-list.js +1 -1
  26. package/dist/atomic/components/atomic-insight-full-search-button.js +1 -1
  27. package/dist/atomic/components/atomic-insight-history-toggle.js +1 -1
  28. package/dist/atomic/components/atomic-insight-interface.js +1 -1
  29. package/dist/atomic/components/atomic-insight-no-results.js +1 -1
  30. package/dist/atomic/components/atomic-insight-numeric-facet.js +2 -2
  31. package/dist/atomic/components/atomic-insight-numeric-facet.js.map +1 -1
  32. package/dist/atomic/components/atomic-insight-pager.js +3 -3
  33. package/dist/atomic/components/atomic-insight-query-error.js +1 -1
  34. package/dist/atomic/components/atomic-insight-refine-modal2.js +2 -2
  35. package/dist/atomic/components/atomic-insight-refine-toggle.js +1 -1
  36. package/dist/atomic/components/atomic-insight-result-action.js +2 -2
  37. package/dist/atomic/components/atomic-insight-result-action.js.map +1 -1
  38. package/dist/atomic/components/atomic-insight-result-attach-to-case-action.js +2 -2
  39. package/dist/atomic/components/atomic-insight-result-attach-to-case-action.js.map +1 -1
  40. package/dist/atomic/components/atomic-insight-result-attach-to-case-indicator.js +2 -2
  41. package/dist/atomic/components/atomic-insight-result-attach-to-case-indicator.js.map +1 -1
  42. package/dist/atomic/components/atomic-insight-result-children.js +1 -1
  43. package/dist/atomic/components/atomic-insight-result-list.js +1 -1
  44. package/dist/atomic/components/atomic-insight-result-quickview-action.js +2 -2
  45. package/dist/atomic/components/atomic-insight-result-quickview-action.js.map +1 -1
  46. package/dist/atomic/components/atomic-insight-result2.js +1 -1
  47. package/dist/atomic/components/atomic-insight-search-box.js +2 -2
  48. package/dist/atomic/components/atomic-insight-smart-snippet-feedback-modal2.js +2 -2
  49. package/dist/atomic/components/atomic-insight-tabs.js +1 -1
  50. package/dist/atomic/components/atomic-insight-user-actions-session2.js +1 -1
  51. package/dist/atomic/components/atomic-insight-user-actions-toggle.js +1 -1
  52. package/dist/atomic/components/atomic-ipx-body2.js +2 -2
  53. package/dist/atomic/components/atomic-ipx-button.js +2 -2
  54. package/dist/atomic/components/atomic-ipx-embedded.js +1 -1
  55. package/dist/atomic/components/atomic-ipx-modal.js +2 -2
  56. package/dist/atomic/components/atomic-ipx-recs-list.js +1 -1
  57. package/dist/atomic/components/atomic-ipx-refine-modal2.js +1 -1
  58. package/dist/atomic/components/atomic-ipx-refine-toggle.js +1 -1
  59. package/dist/atomic/components/atomic-ipx-result-link.js +2 -2
  60. package/dist/atomic/components/atomic-ipx-result-link.js.map +1 -1
  61. package/dist/atomic/components/atomic-ipx-tabs.js +1 -1
  62. package/dist/atomic/components/atomic-load-more-results.js +1 -1
  63. package/dist/atomic/components/atomic-no-results.js +1 -1
  64. package/dist/atomic/components/atomic-numeric-facet.js +2 -3
  65. package/dist/atomic/components/atomic-numeric-facet.js.map +1 -1
  66. package/dist/atomic/components/atomic-pager.js +3 -3
  67. package/dist/atomic/components/atomic-query-error.js +1 -1
  68. package/dist/atomic/components/atomic-quickview-modal2.js +1 -1
  69. package/dist/atomic/components/atomic-quickview.js +2 -2
  70. package/dist/atomic/components/atomic-quickview.js.map +1 -1
  71. package/dist/atomic/components/atomic-recs-error.js +1 -1
  72. package/dist/atomic/components/atomic-recs-interface.js +1 -1
  73. package/dist/atomic/components/atomic-recs-list.js +1 -1
  74. package/dist/atomic/components/atomic-refine-modal2.js +1 -1
  75. package/dist/atomic/components/atomic-refine-toggle.js +1 -1
  76. package/dist/atomic/components/atomic-relevance-inspector.js +1 -46
  77. package/dist/atomic/components/atomic-relevance-inspector.js.map +1 -1
  78. package/dist/atomic/components/atomic-relevance-inspector2.js +50 -0
  79. package/dist/atomic/components/atomic-relevance-inspector2.js.map +1 -0
  80. package/dist/atomic/components/atomic-result-badge.js +1 -1
  81. package/dist/atomic/components/atomic-result-badge.js.map +1 -1
  82. package/dist/atomic/components/atomic-result-children.js +2 -2
  83. package/dist/atomic/components/atomic-result-children.js.map +1 -1
  84. package/dist/atomic/components/atomic-result-date.js +1 -1
  85. package/dist/atomic/components/atomic-result-date.js.map +1 -1
  86. package/dist/atomic/components/atomic-result-fields-list.js +2 -2
  87. package/dist/atomic/components/atomic-result-fields-list.js.map +1 -1
  88. package/dist/atomic/components/atomic-result-html.js +1 -1
  89. package/dist/atomic/components/atomic-result-html.js.map +1 -1
  90. package/dist/atomic/components/atomic-result-icon.js +1 -1
  91. package/dist/atomic/components/atomic-result-icon.js.map +1 -1
  92. package/dist/atomic/components/atomic-result-image.js +1 -1
  93. package/dist/atomic/components/atomic-result-image.js.map +1 -1
  94. package/dist/atomic/components/atomic-result-link.js +2 -2
  95. package/dist/atomic/components/atomic-result-link.js.map +1 -1
  96. package/dist/atomic/components/atomic-result-list.js +1 -1
  97. package/dist/atomic/components/atomic-result-localized-text.js +1 -1
  98. package/dist/atomic/components/atomic-result-localized-text.js.map +1 -1
  99. package/dist/atomic/components/atomic-result-multi-value-text.js +1 -1
  100. package/dist/atomic/components/atomic-result-multi-value-text.js.map +1 -1
  101. package/dist/atomic/components/atomic-result-number.js +1 -1
  102. package/dist/atomic/components/atomic-result-number.js.map +1 -1
  103. package/dist/atomic/components/atomic-result-placeholder2.js +2 -2
  104. package/dist/atomic/components/atomic-result-printable-uri.js +1 -1
  105. package/dist/atomic/components/atomic-result-printable-uri.js.map +1 -1
  106. package/dist/atomic/components/atomic-result-rating.js +1 -1
  107. package/dist/atomic/components/atomic-result-rating.js.map +1 -1
  108. package/dist/atomic/components/atomic-result-table-placeholder2.js +1 -1
  109. package/dist/atomic/components/atomic-result-text2.js +1 -1
  110. package/dist/atomic/components/atomic-result-text2.js.map +1 -1
  111. package/dist/atomic/components/atomic-result-timespan.js +1 -1
  112. package/dist/atomic/components/atomic-result-timespan.js.map +1 -1
  113. package/dist/atomic/components/atomic-result2.js.map +1 -1
  114. package/dist/atomic/components/atomic-search-box-instant-results.js +1 -1
  115. package/dist/atomic/components/atomic-search-box-query-suggestions2.js +1 -1
  116. package/dist/atomic/components/atomic-search-box-recent-queries2.js +1 -1
  117. package/dist/atomic/components/atomic-search-box.js +3 -3
  118. package/dist/atomic/components/atomic-search-interface.d.ts +11 -0
  119. package/dist/atomic/components/atomic-search-interface.js +552 -0
  120. package/dist/atomic/components/atomic-search-interface.js.map +1 -0
  121. package/dist/atomic/components/atomic-smart-snippet-answer2.js +1 -1
  122. package/dist/atomic/components/atomic-smart-snippet-collapse-wrapper2.js +2 -2
  123. package/dist/atomic/components/atomic-smart-snippet-expandable-answer2.js +1 -1
  124. package/dist/atomic/components/atomic-smart-snippet-feedback-modal2.js +2 -2
  125. package/dist/atomic/components/atomic-smart-snippet-source2.js +1 -1
  126. package/dist/atomic/components/atomic-smart-snippet-source2.js.map +1 -1
  127. package/dist/atomic/components/atomic-sort-dropdown.js +2 -2
  128. package/dist/atomic/components/atomic-sort-expression.js +1 -1
  129. package/dist/atomic/components/atomic-stencil-facet-date-input.js +3 -3
  130. package/dist/atomic/components/atomic-suggestion-renderer2.js +1 -1
  131. package/dist/atomic/components/atomic-tab-manager.js +1 -1
  132. package/dist/atomic/components/components/commerce/atomic-commerce-interface/atomic-commerce-interface.js +50 -8
  133. package/dist/atomic/components/components/commerce/atomic-commerce-query-summary/atomic-commerce-query-summary.js +2 -2
  134. package/dist/atomic/components/components/commerce/atomic-commerce-recommendation-interface/atomic-commerce-recommendation-interface.js +25 -10
  135. package/dist/atomic/components/components/commerce/atomic-product-children/atomic-product-children.js +1 -1
  136. package/dist/atomic/components/components/commerce/atomic-product-description/atomic-product-description.js +1 -1
  137. package/dist/atomic/components/components/commerce/atomic-product-excerpt/atomic-product-excerpt.js +1 -1
  138. package/dist/atomic/components/components/commerce/atomic-product-field-condition/atomic-product-field-condition.js +1 -1
  139. package/dist/atomic/components/components/commerce/atomic-product-image/atomic-product-image.js +1 -1
  140. package/dist/atomic/components/components/commerce/atomic-product-link/atomic-product-link.js +2 -1
  141. package/dist/atomic/components/components/commerce/atomic-product-multi-value-text/atomic-product-multi-value-text.js +1 -1
  142. package/dist/atomic/components/components/commerce/atomic-product-numeric-field-value/atomic-product-numeric-field-value.js +1 -1
  143. package/dist/atomic/components/components/commerce/atomic-product-price/atomic-product-price.js +1 -1
  144. package/dist/atomic/components/components/commerce/atomic-product-rating/atomic-product-rating.js +1 -1
  145. package/dist/atomic/components/components/commerce/atomic-product-text/atomic-product-text.js +1 -1
  146. package/dist/atomic/components/components/commerce/product-template-component-utils/context/interactive-product-context-controller.js +25 -0
  147. package/dist/atomic/components/components/commerce/product-template-component-utils/context/product-context-controller.js +29 -0
  148. package/dist/atomic/components/components/common/formats/format-common.js +1 -1
  149. package/dist/atomic/components/components/search/atomic-search-layout/atomic-search-layout.js +9 -20
  150. package/dist/atomic/components/components/search/index.js +0 -2
  151. package/dist/atomic/components/components/search/lazy-index.js +0 -2
  152. package/dist/atomic/components/depends-on.js +28 -28
  153. package/dist/atomic/components/depends-on.js.map +1 -1
  154. package/dist/atomic/components/{stencil-facet-guard.js → facet-guard.js} +1 -2
  155. package/dist/atomic/components/facet-guard.js.map +1 -0
  156. package/dist/atomic/components/facet-number-input.js +2 -2
  157. package/dist/atomic/components/format-common.js.map +1 -1
  158. package/dist/atomic/components/global/environment.js +1 -1
  159. package/dist/atomic/components/index.js.map +1 -1
  160. package/dist/atomic/components/stencil-facet-value.js +39 -0
  161. package/dist/atomic/components/stencil-facet-value.js.map +1 -0
  162. package/dist/atomic/components/{result-template-decorators.js → stencil-result-template-decorators.js} +6 -2
  163. package/dist/atomic/components/stencil-result-template-decorators.js.map +1 -0
  164. package/dist/atomic/components/tab-button.js +1 -1
  165. package/dist/atomic/components/tab-popover.js +1 -1
  166. package/dist/atomic/index.esm.js +1 -1
  167. package/dist/atomic/index.esm.js.map +1 -1
  168. package/dist/atomic/{p-0c8e7d5f.entry.js → p-0112f957.entry.js} +2 -2
  169. package/dist/atomic/p-0112f957.entry.js.map +1 -0
  170. package/dist/atomic/{p-41c5d5fa.entry.js → p-021f01d6.entry.js} +2 -2
  171. package/dist/atomic/{p-a3fa6695.entry.js → p-035f8dc8.entry.js} +2 -2
  172. package/dist/atomic/{p-a4d277c7.entry.js → p-037de646.entry.js} +2 -2
  173. package/dist/atomic/p-037de646.entry.js.map +1 -0
  174. package/dist/atomic/{p-2f8de0b9.entry.js → p-07fbb49a.entry.js} +2 -2
  175. package/dist/atomic/{p-c8d29aa6.entry.js → p-10145d71.entry.js} +2 -2
  176. package/dist/atomic/p-10145d71.entry.js.map +1 -0
  177. package/dist/atomic/p-1992b245.entry.js +2 -0
  178. package/dist/atomic/{p-2ac75719.entry.js → p-1d1f54a5.entry.js} +2 -2
  179. package/dist/atomic/{p-aa3ac5aa.js → p-1f059522.js} +1 -1
  180. package/dist/atomic/p-1f059522.js.map +1 -0
  181. package/dist/atomic/{p-10b5e0f3.entry.js → p-20341936.entry.js} +2 -2
  182. package/dist/atomic/p-25a96534.js.map +1 -1
  183. package/dist/atomic/{p-3213225f.entry.js → p-26a51a77.entry.js} +2 -2
  184. package/dist/atomic/{p-15406648.entry.js → p-2ca352f4.entry.js} +2 -2
  185. package/dist/atomic/{p-dee60597.entry.js → p-2cad01bf.entry.js} +2 -2
  186. package/dist/atomic/p-2cad01bf.entry.js.map +1 -0
  187. package/dist/atomic/{p-926fe2d7.entry.js → p-2ce8220a.entry.js} +2 -2
  188. package/dist/atomic/{p-7a6468a7.entry.js → p-36fab158.entry.js} +2 -2
  189. package/dist/atomic/{p-9727f36b.entry.js → p-37374964.entry.js} +2 -2
  190. package/dist/atomic/{p-5adbf098.entry.js → p-3b023e83.entry.js} +2 -2
  191. package/dist/atomic/{p-0610b3e7.entry.js → p-3b20b011.entry.js} +2 -2
  192. package/dist/atomic/{p-e9dc8e90.entry.js → p-3ec45f9c.entry.js} +2 -2
  193. package/dist/atomic/p-3ec45f9c.entry.js.map +1 -0
  194. package/dist/atomic/{p-0bc9b088.js → p-3f2a66df.js} +2 -2
  195. package/dist/atomic/{p-c08f4ee6.entry.js → p-3f912e98.entry.js} +2 -2
  196. package/dist/atomic/{p-9e771351.entry.js → p-40635c2d.entry.js} +2 -2
  197. package/dist/atomic/{p-18684d4c.js → p-4080f740.js} +1 -1
  198. package/dist/atomic/p-4080f740.js.map +1 -0
  199. package/dist/atomic/{p-c9fe4f77.entry.js → p-43d708cb.entry.js} +2 -2
  200. package/dist/atomic/{p-b0c50194.entry.js → p-48f57fd8.entry.js} +2 -2
  201. package/dist/atomic/{p-e514cdb2.entry.js → p-4a74f4a3.entry.js} +2 -2
  202. package/dist/atomic/{p-24df7251.entry.js → p-4c2f230f.entry.js} +2 -2
  203. package/dist/atomic/{p-190ddaca.entry.js → p-4cf97b0a.entry.js} +2 -2
  204. package/dist/atomic/p-4cf97b0a.entry.js.map +1 -0
  205. package/dist/atomic/p-508b63e7.entry.js.map +1 -1
  206. package/dist/atomic/{p-1140ac4d.entry.js → p-52976c12.entry.js} +2 -2
  207. package/dist/atomic/{p-f0012580.entry.js → p-594488f2.entry.js} +2 -2
  208. package/dist/atomic/{p-78427c6a.entry.js → p-5a9460ab.entry.js} +2 -2
  209. package/dist/atomic/p-5a9460ab.entry.js.map +1 -0
  210. package/dist/atomic/p-5ca21deb.js +2 -0
  211. package/dist/atomic/p-5ca21deb.js.map +1 -0
  212. package/dist/atomic/{p-8df7270f.entry.js → p-5d19faa4.entry.js} +2 -2
  213. package/dist/atomic/p-5d19faa4.entry.js.map +1 -0
  214. package/dist/atomic/{p-b4ad3036.entry.js → p-5f1fa581.entry.js} +2 -2
  215. package/dist/atomic/{p-d50c96c2.entry.js → p-627e1265.entry.js} +2 -2
  216. package/dist/atomic/{p-004adbb8.entry.js → p-6329ff94.entry.js} +2 -2
  217. package/dist/atomic/{p-1ff7a9da.entry.js → p-6a3b139f.entry.js} +2 -2
  218. package/dist/atomic/p-6a3b139f.entry.js.map +1 -0
  219. package/dist/atomic/{p-e3af1bb4.entry.js → p-6e6d686e.entry.js} +2 -2
  220. package/dist/atomic/{p-79a9a372.entry.js → p-744da781.entry.js} +2 -2
  221. package/dist/atomic/{p-a3f27d57.entry.js → p-7626e460.entry.js} +2 -2
  222. package/dist/atomic/p-7626e460.entry.js.map +1 -0
  223. package/dist/atomic/{p-c7800a24.entry.js → p-7a50539b.entry.js} +2 -2
  224. package/dist/atomic/p-7a50539b.entry.js.map +1 -0
  225. package/dist/atomic/{p-97e42c43.entry.js → p-7ca7b237.entry.js} +2 -2
  226. package/dist/atomic/p-7ca7b237.entry.js.map +1 -0
  227. package/dist/atomic/{p-7fe2dfcd.entry.js → p-7dcf636e.entry.js} +2 -2
  228. package/dist/atomic/p-7dcf636e.entry.js.map +1 -0
  229. package/dist/atomic/{p-e6a7e7b2.entry.js → p-7dfcd6af.entry.js} +2 -2
  230. package/dist/atomic/{p-9147b0db.entry.js → p-8256cd44.entry.js} +2 -2
  231. package/dist/atomic/{p-0e27d4f2.entry.js → p-83c9244a.entry.js} +2 -2
  232. package/dist/atomic/{p-454a0328.entry.js → p-87948ac1.entry.js} +2 -2
  233. package/dist/atomic/p-87948ac1.entry.js.map +1 -0
  234. package/dist/atomic/{p-828cea10.entry.js → p-89ab44de.entry.js} +2 -2
  235. package/dist/atomic/{p-b3f6561d.entry.js → p-8e964890.entry.js} +2 -2
  236. package/dist/atomic/p-8e964890.entry.js.map +1 -0
  237. package/dist/atomic/{p-4b1bf2fd.entry.js → p-91c0917f.entry.js} +2 -2
  238. package/dist/atomic/{p-8fb8c4f0.entry.js → p-92548ab6.entry.js} +2 -2
  239. package/dist/atomic/p-92548ab6.entry.js.map +1 -0
  240. package/dist/atomic/{p-bd99fcc1.entry.js → p-939eaaac.entry.js} +2 -2
  241. package/dist/atomic/{p-9b92b4e2.entry.js → p-93e29b24.entry.js} +2 -2
  242. package/dist/atomic/{p-dbf0c5a3.entry.js → p-9564d67d.entry.js} +2 -2
  243. package/dist/atomic/{p-dbf0c5a3.entry.js.map → p-9564d67d.entry.js.map} +1 -1
  244. package/dist/atomic/{p-b6377fb6.entry.js → p-98c5b9b8.entry.js} +2 -2
  245. package/dist/atomic/{p-bf49fed3.entry.js → p-99b8d52d.entry.js} +2 -2
  246. package/dist/atomic/{p-98da2a98.entry.js → p-9f5590f6.entry.js} +2 -2
  247. package/dist/atomic/{p-160553ce.entry.js → p-a3efa89e.entry.js} +2 -2
  248. package/dist/atomic/{p-8a00adbe.entry.js → p-a425653f.entry.js} +2 -2
  249. package/dist/atomic/p-a425653f.entry.js.map +1 -0
  250. package/dist/atomic/{p-c538c8ac.entry.js → p-a53c7821.entry.js} +2 -2
  251. package/dist/atomic/{p-85f165af.entry.js → p-a8882a2a.entry.js} +2 -2
  252. package/dist/atomic/p-a9b32844.entry.js +2 -0
  253. package/dist/atomic/p-a9b32844.entry.js.map +1 -0
  254. package/dist/atomic/{p-c9f1790d.entry.js → p-acb1704c.entry.js} +2 -2
  255. package/dist/atomic/p-acb1704c.entry.js.map +1 -0
  256. package/dist/atomic/{p-e7c6a479.entry.js → p-ada63017.entry.js} +2 -2
  257. package/dist/atomic/p-ada63017.entry.js.map +1 -0
  258. package/dist/atomic/{p-ce41c447.entry.js → p-ae060711.entry.js} +2 -2
  259. package/dist/atomic/{p-b4c34553.entry.js → p-b0b17e21.entry.js} +2 -2
  260. package/dist/atomic/{p-e1c99e2e.entry.js → p-b2ff1330.entry.js} +2 -2
  261. package/dist/atomic/{p-618c6967.entry.js → p-b6963bae.entry.js} +2 -2
  262. package/dist/atomic/{p-08794435.entry.js → p-ba650801.entry.js} +2 -2
  263. package/dist/atomic/p-bde76abf.entry.js +2 -0
  264. package/dist/atomic/p-bde76abf.entry.js.map +1 -0
  265. package/dist/atomic/{p-0e5dc57f.entry.js → p-c126ee6b.entry.js} +2 -2
  266. package/dist/atomic/{p-754909fe.entry.js → p-c1999888.entry.js} +2 -2
  267. package/dist/atomic/{p-ca762513.entry.js → p-c889adbd.entry.js} +2 -2
  268. package/dist/atomic/{p-00a6ab8c.entry.js → p-d0f47b33.entry.js} +2 -2
  269. package/dist/atomic/{p-8a7a23b7.entry.js → p-d2173f4d.entry.js} +2 -2
  270. package/dist/atomic/{p-8a7a23b7.entry.js.map → p-d2173f4d.entry.js.map} +1 -1
  271. package/dist/atomic/p-d24d34a7.entry.js +2 -0
  272. package/dist/atomic/{p-7f40e57d.entry.js → p-d364064c.entry.js} +2 -2
  273. package/dist/atomic/p-d716d680.entry.js +2 -0
  274. package/dist/atomic/p-d716d680.entry.js.map +1 -0
  275. package/dist/atomic/{p-856e858c.entry.js → p-d785121d.entry.js} +2 -2
  276. package/dist/atomic/{p-7b1a3cab.entry.js → p-d84c70b4.entry.js} +2 -2
  277. package/dist/atomic/p-d84c70b4.entry.js.map +1 -0
  278. package/dist/atomic/{p-7d63bf7b.entry.js → p-d93adf52.entry.js} +2 -2
  279. package/dist/atomic/p-dafbe2ef.js +2 -0
  280. package/dist/atomic/p-dafbe2ef.js.map +1 -0
  281. package/dist/atomic/{p-2a4e9425.entry.js → p-de066001.entry.js} +2 -2
  282. package/dist/atomic/{p-945ddd53.entry.js → p-e1dbe31d.entry.js} +2 -2
  283. package/dist/atomic/p-e1dbe31d.entry.js.map +1 -0
  284. package/dist/atomic/{p-441b1a7b.entry.js → p-e23b3334.entry.js} +2 -2
  285. package/dist/atomic/p-e2afb475.entry.js +2 -0
  286. package/dist/atomic/{p-bd32625e.entry.js → p-ea446721.entry.js} +2 -2
  287. package/dist/atomic/{p-07b6424c.entry.js → p-ee6771f1.entry.js} +2 -2
  288. package/dist/atomic/{p-abb14108.entry.js → p-f0c2dfe8.entry.js} +2 -2
  289. package/dist/atomic/{p-9d023f0b.entry.js → p-f1137562.entry.js} +2 -2
  290. package/dist/atomic/p-f1137562.entry.js.map +1 -0
  291. package/dist/atomic/{p-cc68642f.entry.js → p-f289269f.entry.js} +2 -2
  292. package/dist/atomic/{p-3c532cda.entry.js → p-f3777dfa.entry.js} +2 -2
  293. package/dist/atomic/p-f3777dfa.entry.js.map +1 -0
  294. package/dist/atomic/{p-fa376d3d.entry.js → p-f5b58a15.entry.js} +2 -2
  295. package/dist/atomic/p-f5b58a15.entry.js.map +1 -0
  296. package/dist/atomic/{p-fbe37f4b.entry.js → p-f8d62605.entry.js} +2 -2
  297. package/dist/atomic/{p-bdbbb47b.entry.js → p-f8ded37c.entry.js} +2 -2
  298. package/dist/atomic/{p-d4ad7336.entry.js → p-fa8b7c4c.entry.js} +2 -2
  299. package/dist/atomic/{p-fb1a1e2e.entry.js → p-fbfe913d.entry.js} +2 -2
  300. package/dist/atomic/p-fcf3f7d7.entry.js +2 -0
  301. package/dist/atomic/{p-6de44060.entry.js.map → p-fcf3f7d7.entry.js.map} +1 -1
  302. package/dist/atomic/{p-f936f55e.entry.js → p-fea7bf3b.entry.js} +2 -2
  303. package/dist/cjs/_index.cjs.js +20 -20
  304. package/dist/cjs/_loader.cjs.js +1 -1
  305. package/dist/cjs/{analytics-config-b8cf7dfc.js → analytics-config-fac0aa98.js} +2 -2
  306. package/dist/cjs/{analytics-config-b8cf7dfc.js.map → analytics-config-fac0aa98.js.map} +1 -1
  307. package/dist/cjs/atomic-category-facet.cjs.entry.js +3 -3
  308. package/dist/cjs/atomic-category-facet.cjs.entry.js.map +1 -1
  309. package/dist/cjs/atomic-citation.cjs.entry.js +1 -1
  310. package/dist/cjs/atomic-color-facet.cjs.entry.js +1 -1
  311. package/dist/cjs/atomic-facet-manager.cjs.entry.js +1 -1
  312. package/dist/cjs/atomic-facet-number-input.cjs.entry.js +2 -2
  313. package/dist/cjs/atomic-facet.cjs.entry.js +453 -0
  314. package/dist/cjs/atomic-facet.cjs.entry.js.map +1 -0
  315. package/dist/cjs/atomic-field-condition.cjs.entry.js +2 -2
  316. package/dist/cjs/atomic-field-condition.cjs.entry.js.map +1 -1
  317. package/dist/cjs/atomic-format-currency.cjs.entry.js +1 -1
  318. package/dist/cjs/atomic-format-number.cjs.entry.js +1 -1
  319. package/dist/cjs/atomic-format-unit.cjs.entry.js +1 -1
  320. package/dist/cjs/atomic-generated-answer-feedback-modal.cjs.entry.js +1 -1
  321. package/dist/cjs/atomic-html.cjs.entry.js +1 -1
  322. package/dist/cjs/atomic-insight-edit-toggle.cjs.entry.js +1 -1
  323. package/dist/cjs/atomic-insight-facet.cjs.entry.js +11 -39
  324. package/dist/cjs/atomic-insight-facet.cjs.entry.js.map +1 -1
  325. package/dist/cjs/atomic-insight-folded-result-list.cjs.entry.js +1 -1
  326. package/dist/cjs/atomic-insight-full-search-button.cjs.entry.js +1 -1
  327. package/dist/cjs/atomic-insight-history-toggle.cjs.entry.js +1 -1
  328. package/dist/cjs/atomic-insight-interface.cjs.entry.js +2 -2
  329. package/dist/cjs/atomic-insight-no-results.cjs.entry.js +1 -1
  330. package/dist/cjs/atomic-insight-numeric-facet.cjs.entry.js +3 -3
  331. package/dist/cjs/atomic-insight-numeric-facet.cjs.entry.js.map +1 -1
  332. package/dist/cjs/atomic-insight-pager.cjs.entry.js +3 -3
  333. package/dist/cjs/atomic-insight-query-error.cjs.entry.js +1 -1
  334. package/dist/cjs/atomic-insight-refine-modal.cjs.entry.js +2 -2
  335. package/dist/cjs/atomic-insight-refine-toggle.cjs.entry.js +1 -1
  336. package/dist/cjs/atomic-insight-result-action.cjs.entry.js +3 -3
  337. package/dist/cjs/atomic-insight-result-action.cjs.entry.js.map +1 -1
  338. package/dist/cjs/atomic-insight-result-attach-to-case-action.cjs.entry.js +3 -3
  339. package/dist/cjs/atomic-insight-result-attach-to-case-action.cjs.entry.js.map +1 -1
  340. package/dist/cjs/atomic-insight-result-attach-to-case-indicator.cjs.entry.js +3 -3
  341. package/dist/cjs/atomic-insight-result-attach-to-case-indicator.cjs.entry.js.map +1 -1
  342. package/dist/cjs/atomic-insight-result-children.cjs.entry.js +1 -1
  343. package/dist/cjs/atomic-insight-result-list.cjs.entry.js +1 -1
  344. package/dist/cjs/atomic-insight-result-quickview-action.cjs.entry.js +3 -3
  345. package/dist/cjs/atomic-insight-result-quickview-action.cjs.entry.js.map +1 -1
  346. package/dist/cjs/atomic-insight-result.cjs.entry.js +1 -1
  347. package/dist/cjs/atomic-insight-search-box.cjs.entry.js +2 -2
  348. package/dist/cjs/atomic-insight-smart-snippet-feedback-modal.cjs.entry.js +2 -2
  349. package/dist/cjs/atomic-insight-tabs.cjs.entry.js +1 -1
  350. package/dist/cjs/atomic-insight-timeframe-facet.cjs.entry.js +1 -1
  351. package/dist/cjs/atomic-insight-user-actions-session_2.cjs.entry.js +1 -1
  352. package/dist/cjs/atomic-insight-user-actions-toggle.cjs.entry.js +1 -1
  353. package/dist/cjs/atomic-ipx-body.cjs.entry.js +2 -2
  354. package/dist/cjs/atomic-ipx-button.cjs.entry.js +2 -2
  355. package/dist/cjs/atomic-ipx-embedded.cjs.entry.js +1 -1
  356. package/dist/cjs/atomic-ipx-modal.cjs.entry.js +2 -2
  357. package/dist/cjs/atomic-ipx-recs-list.cjs.entry.js +1 -1
  358. package/dist/cjs/atomic-ipx-refine-modal.cjs.entry.js +1 -1
  359. package/dist/cjs/atomic-ipx-refine-toggle.cjs.entry.js +1 -1
  360. package/dist/cjs/atomic-ipx-result-link.cjs.entry.js +4 -4
  361. package/dist/cjs/atomic-ipx-result-link.cjs.entry.js.map +1 -1
  362. package/dist/cjs/atomic-ipx-tabs.cjs.entry.js +1 -1
  363. package/dist/cjs/atomic-load-more-results.cjs.entry.js +1 -1
  364. package/dist/cjs/atomic-no-results.cjs.entry.js +1 -1
  365. package/dist/cjs/atomic-numeric-facet.cjs.entry.js +3 -4
  366. package/dist/cjs/atomic-numeric-facet.cjs.entry.js.map +1 -1
  367. package/dist/cjs/atomic-pager.cjs.entry.js +3 -3
  368. package/dist/cjs/atomic-query-error.cjs.entry.js +1 -1
  369. package/dist/cjs/atomic-quickview-modal.cjs.entry.js +1 -1
  370. package/dist/cjs/atomic-quickview.cjs.entry.js +3 -3
  371. package/dist/cjs/atomic-quickview.cjs.entry.js.map +1 -1
  372. package/dist/cjs/atomic-rating-facet.cjs.entry.js +1 -1
  373. package/dist/cjs/atomic-rating-range-facet.cjs.entry.js +1 -1
  374. package/dist/cjs/atomic-recs-error.cjs.entry.js +1 -1
  375. package/dist/cjs/atomic-recs-interface.cjs.entry.js +2 -2
  376. package/dist/cjs/atomic-recs-list.cjs.entry.js +1 -1
  377. package/dist/cjs/atomic-refine-modal.cjs.entry.js +1 -1
  378. package/dist/cjs/atomic-refine-toggle.cjs.entry.js +1 -1
  379. package/dist/cjs/atomic-relevance-inspector.cjs.entry.js +2 -2
  380. package/dist/cjs/atomic-result-badge.cjs.entry.js +2 -2
  381. package/dist/cjs/atomic-result-badge.cjs.entry.js.map +1 -1
  382. package/dist/cjs/atomic-result-children.cjs.entry.js +3 -3
  383. package/dist/cjs/atomic-result-children.cjs.entry.js.map +1 -1
  384. package/dist/cjs/atomic-result-date.cjs.entry.js +2 -2
  385. package/dist/cjs/atomic-result-date.cjs.entry.js.map +1 -1
  386. package/dist/cjs/atomic-result-fields-list.cjs.entry.js +3 -3
  387. package/dist/cjs/atomic-result-fields-list.cjs.entry.js.map +1 -1
  388. package/dist/cjs/atomic-result-html.cjs.entry.js +2 -2
  389. package/dist/cjs/atomic-result-html.cjs.entry.js.map +1 -1
  390. package/dist/cjs/atomic-result-icon.cjs.entry.js +2 -2
  391. package/dist/cjs/atomic-result-icon.cjs.entry.js.map +1 -1
  392. package/dist/cjs/atomic-result-image.cjs.entry.js +2 -2
  393. package/dist/cjs/atomic-result-image.cjs.entry.js.map +1 -1
  394. package/dist/cjs/atomic-result-link.cjs.entry.js +4 -4
  395. package/dist/cjs/atomic-result-link.cjs.entry.js.map +1 -1
  396. package/dist/cjs/atomic-result-list.cjs.entry.js +1 -1
  397. package/dist/cjs/atomic-result-localized-text.cjs.entry.js +3 -3
  398. package/dist/cjs/atomic-result-localized-text.cjs.entry.js.map +1 -1
  399. package/dist/cjs/atomic-result-multi-value-text.cjs.entry.js +2 -2
  400. package/dist/cjs/atomic-result-multi-value-text.cjs.entry.js.map +1 -1
  401. package/dist/cjs/atomic-result-number.cjs.entry.js +2 -2
  402. package/dist/cjs/atomic-result-number.cjs.entry.js.map +1 -1
  403. package/dist/cjs/atomic-result-placeholder_8.cjs.entry.js +3 -3
  404. package/dist/cjs/atomic-result-printable-uri.cjs.entry.js +2 -2
  405. package/dist/cjs/atomic-result-printable-uri.cjs.entry.js.map +1 -1
  406. package/dist/cjs/atomic-result-rating.cjs.entry.js +2 -2
  407. package/dist/cjs/atomic-result-rating.cjs.entry.js.map +1 -1
  408. package/dist/cjs/atomic-result-text_2.cjs.entry.js +2 -2
  409. package/dist/cjs/atomic-result-text_2.cjs.entry.js.map +1 -1
  410. package/dist/cjs/atomic-result-timespan.cjs.entry.js +2 -2
  411. package/dist/cjs/atomic-result-timespan.cjs.entry.js.map +1 -1
  412. package/dist/cjs/atomic-result.cjs.entry.js.map +1 -1
  413. package/dist/cjs/atomic-search-box-instant-results.cjs.entry.js +1 -1
  414. package/dist/cjs/atomic-search-box-query-suggestions_2.cjs.entry.js +2 -2
  415. package/dist/cjs/atomic-search-box.cjs.entry.js +3 -3
  416. package/dist/cjs/atomic-search-interface.cjs.entry.js +511 -0
  417. package/dist/cjs/atomic-search-interface.cjs.entry.js.map +1 -0
  418. package/dist/cjs/atomic-segmented-facet.cjs.entry.js +1 -1
  419. package/dist/cjs/atomic-smart-snippet-answer_2.cjs.entry.js +2 -2
  420. package/dist/cjs/atomic-smart-snippet-answer_2.cjs.entry.js.map +1 -1
  421. package/dist/cjs/atomic-smart-snippet-collapse-wrapper_2.cjs.entry.js +3 -3
  422. package/dist/cjs/atomic-smart-snippet-feedback-modal.cjs.entry.js +2 -2
  423. package/dist/cjs/atomic-sort-dropdown.cjs.entry.js +2 -2
  424. package/dist/cjs/atomic-sort-expression.cjs.entry.js +1 -1
  425. package/dist/cjs/atomic-stencil-facet-date-input.cjs.entry.js +3 -3
  426. package/dist/cjs/atomic-suggestion-renderer.cjs.entry.js +1 -1
  427. package/dist/cjs/atomic-tab-bar_2.cjs.entry.js +1 -1
  428. package/dist/cjs/atomic-tab-button.cjs.entry.js +1 -1
  429. package/dist/cjs/atomic-tab-manager.cjs.entry.js +1 -1
  430. package/dist/cjs/atomic-timeframe-facet.cjs.entry.js +1 -1
  431. package/dist/cjs/atomic.cjs.js +1 -1
  432. package/dist/cjs/depends-on-f0cf3617.js +68 -0
  433. package/dist/cjs/depends-on-f0cf3617.js.map +1 -0
  434. package/dist/cjs/{stencil-facet-guard-9573df7f.js → facet-guard-328b588d.js} +1 -2
  435. package/dist/cjs/facet-guard-328b588d.js.map +1 -0
  436. package/dist/cjs/format-common-4aa8aa88.js.map +1 -1
  437. package/dist/cjs/index-757bc886.js +12 -4
  438. package/dist/cjs/index.cjs.js.map +1 -1
  439. package/dist/cjs/stencil-facet-value-e67c9332.js +41 -0
  440. package/dist/cjs/stencil-facet-value-e67c9332.js.map +1 -0
  441. package/dist/cjs/{result-template-decorators-432d11a9.js → stencil-result-template-decorators-28b05aaf.js} +6 -2
  442. package/dist/cjs/stencil-result-template-decorators-28b05aaf.js.map +1 -0
  443. package/dist/cjs/version.cjs.js +2 -2
  444. package/dist/esm/_index.js +19 -19
  445. package/dist/esm/_loader.js +1 -1
  446. package/dist/esm/{analytics-config-568c4df9.js → analytics-config-1e38fa5f.js} +2 -2
  447. package/dist/esm/{analytics-config-568c4df9.js.map → analytics-config-1e38fa5f.js.map} +1 -1
  448. package/dist/esm/atomic-category-facet.entry.js +3 -3
  449. package/dist/esm/atomic-category-facet.entry.js.map +1 -1
  450. package/dist/esm/atomic-citation.entry.js +1 -1
  451. package/dist/esm/atomic-color-facet.entry.js +1 -1
  452. package/dist/esm/atomic-facet-manager.entry.js +1 -1
  453. package/dist/esm/atomic-facet-number-input.entry.js +2 -2
  454. package/dist/esm/atomic-facet.entry.js +449 -0
  455. package/dist/esm/atomic-facet.entry.js.map +1 -0
  456. package/dist/esm/atomic-field-condition.entry.js +1 -1
  457. package/dist/esm/atomic-field-condition.entry.js.map +1 -1
  458. package/dist/esm/atomic-format-currency.entry.js +1 -1
  459. package/dist/esm/atomic-format-number.entry.js +1 -1
  460. package/dist/esm/atomic-format-unit.entry.js +1 -1
  461. package/dist/esm/atomic-generated-answer-feedback-modal.entry.js +1 -1
  462. package/dist/esm/atomic-html.entry.js +1 -1
  463. package/dist/esm/atomic-insight-edit-toggle.entry.js +1 -1
  464. package/dist/esm/atomic-insight-facet.entry.js +11 -39
  465. package/dist/esm/atomic-insight-facet.entry.js.map +1 -1
  466. package/dist/esm/atomic-insight-folded-result-list.entry.js +1 -1
  467. package/dist/esm/atomic-insight-full-search-button.entry.js +1 -1
  468. package/dist/esm/atomic-insight-history-toggle.entry.js +1 -1
  469. package/dist/esm/atomic-insight-interface.entry.js +2 -2
  470. package/dist/esm/atomic-insight-no-results.entry.js +1 -1
  471. package/dist/esm/atomic-insight-numeric-facet.entry.js +3 -3
  472. package/dist/esm/atomic-insight-numeric-facet.entry.js.map +1 -1
  473. package/dist/esm/atomic-insight-pager.entry.js +3 -3
  474. package/dist/esm/atomic-insight-query-error.entry.js +1 -1
  475. package/dist/esm/atomic-insight-refine-modal.entry.js +2 -2
  476. package/dist/esm/atomic-insight-refine-toggle.entry.js +1 -1
  477. package/dist/esm/atomic-insight-result-action.entry.js +2 -2
  478. package/dist/esm/atomic-insight-result-action.entry.js.map +1 -1
  479. package/dist/esm/atomic-insight-result-attach-to-case-action.entry.js +2 -2
  480. package/dist/esm/atomic-insight-result-attach-to-case-action.entry.js.map +1 -1
  481. package/dist/esm/atomic-insight-result-attach-to-case-indicator.entry.js +2 -2
  482. package/dist/esm/atomic-insight-result-attach-to-case-indicator.entry.js.map +1 -1
  483. package/dist/esm/atomic-insight-result-children.entry.js +1 -1
  484. package/dist/esm/atomic-insight-result-list.entry.js +1 -1
  485. package/dist/esm/atomic-insight-result-quickview-action.entry.js +2 -2
  486. package/dist/esm/atomic-insight-result-quickview-action.entry.js.map +1 -1
  487. package/dist/esm/atomic-insight-result.entry.js +1 -1
  488. package/dist/esm/atomic-insight-search-box.entry.js +2 -2
  489. package/dist/esm/atomic-insight-smart-snippet-feedback-modal.entry.js +2 -2
  490. package/dist/esm/atomic-insight-tabs.entry.js +1 -1
  491. package/dist/esm/atomic-insight-timeframe-facet.entry.js +1 -1
  492. package/dist/esm/atomic-insight-user-actions-session_2.entry.js +1 -1
  493. package/dist/esm/atomic-insight-user-actions-toggle.entry.js +1 -1
  494. package/dist/esm/atomic-ipx-body.entry.js +2 -2
  495. package/dist/esm/atomic-ipx-button.entry.js +2 -2
  496. package/dist/esm/atomic-ipx-embedded.entry.js +1 -1
  497. package/dist/esm/atomic-ipx-modal.entry.js +2 -2
  498. package/dist/esm/atomic-ipx-recs-list.entry.js +1 -1
  499. package/dist/esm/atomic-ipx-refine-modal.entry.js +1 -1
  500. package/dist/esm/atomic-ipx-refine-toggle.entry.js +1 -1
  501. package/dist/esm/atomic-ipx-result-link.entry.js +2 -2
  502. package/dist/esm/atomic-ipx-result-link.entry.js.map +1 -1
  503. package/dist/esm/atomic-ipx-tabs.entry.js +1 -1
  504. package/dist/esm/atomic-load-more-results.entry.js +1 -1
  505. package/dist/esm/atomic-no-results.entry.js +1 -1
  506. package/dist/esm/atomic-numeric-facet.entry.js +3 -4
  507. package/dist/esm/atomic-numeric-facet.entry.js.map +1 -1
  508. package/dist/esm/atomic-pager.entry.js +3 -3
  509. package/dist/esm/atomic-query-error.entry.js +1 -1
  510. package/dist/esm/atomic-quickview-modal.entry.js +1 -1
  511. package/dist/esm/atomic-quickview.entry.js +2 -2
  512. package/dist/esm/atomic-quickview.entry.js.map +1 -1
  513. package/dist/esm/atomic-rating-facet.entry.js +1 -1
  514. package/dist/esm/atomic-rating-range-facet.entry.js +1 -1
  515. package/dist/esm/atomic-recs-error.entry.js +1 -1
  516. package/dist/esm/atomic-recs-interface.entry.js +2 -2
  517. package/dist/esm/atomic-recs-list.entry.js +1 -1
  518. package/dist/esm/atomic-refine-modal.entry.js +1 -1
  519. package/dist/esm/atomic-refine-toggle.entry.js +1 -1
  520. package/dist/esm/atomic-relevance-inspector.entry.js +2 -2
  521. package/dist/esm/atomic-result-badge.entry.js +1 -1
  522. package/dist/esm/atomic-result-badge.entry.js.map +1 -1
  523. package/dist/esm/atomic-result-children.entry.js +2 -2
  524. package/dist/esm/atomic-result-children.entry.js.map +1 -1
  525. package/dist/esm/atomic-result-date.entry.js +1 -1
  526. package/dist/esm/atomic-result-date.entry.js.map +1 -1
  527. package/dist/esm/atomic-result-fields-list.entry.js +2 -2
  528. package/dist/esm/atomic-result-fields-list.entry.js.map +1 -1
  529. package/dist/esm/atomic-result-html.entry.js +1 -1
  530. package/dist/esm/atomic-result-html.entry.js.map +1 -1
  531. package/dist/esm/atomic-result-icon.entry.js +1 -1
  532. package/dist/esm/atomic-result-icon.entry.js.map +1 -1
  533. package/dist/esm/atomic-result-image.entry.js +1 -1
  534. package/dist/esm/atomic-result-image.entry.js.map +1 -1
  535. package/dist/esm/atomic-result-link.entry.js +2 -2
  536. package/dist/esm/atomic-result-link.entry.js.map +1 -1
  537. package/dist/esm/atomic-result-list.entry.js +1 -1
  538. package/dist/esm/atomic-result-localized-text.entry.js +2 -2
  539. package/dist/esm/atomic-result-localized-text.entry.js.map +1 -1
  540. package/dist/esm/atomic-result-multi-value-text.entry.js +1 -1
  541. package/dist/esm/atomic-result-multi-value-text.entry.js.map +1 -1
  542. package/dist/esm/atomic-result-number.entry.js +1 -1
  543. package/dist/esm/atomic-result-number.entry.js.map +1 -1
  544. package/dist/esm/atomic-result-placeholder_8.entry.js +3 -3
  545. package/dist/esm/atomic-result-printable-uri.entry.js +1 -1
  546. package/dist/esm/atomic-result-printable-uri.entry.js.map +1 -1
  547. package/dist/esm/atomic-result-rating.entry.js +1 -1
  548. package/dist/esm/atomic-result-rating.entry.js.map +1 -1
  549. package/dist/esm/atomic-result-text_2.entry.js +1 -1
  550. package/dist/esm/atomic-result-text_2.entry.js.map +1 -1
  551. package/dist/esm/atomic-result-timespan.entry.js +1 -1
  552. package/dist/esm/atomic-result-timespan.entry.js.map +1 -1
  553. package/dist/esm/atomic-result.entry.js.map +1 -1
  554. package/dist/esm/atomic-search-box-instant-results.entry.js +1 -1
  555. package/dist/esm/atomic-search-box-query-suggestions_2.entry.js +2 -2
  556. package/dist/esm/atomic-search-box.entry.js +3 -3
  557. package/dist/esm/atomic-search-interface.entry.js +507 -0
  558. package/dist/esm/atomic-search-interface.entry.js.map +1 -0
  559. package/dist/esm/atomic-segmented-facet.entry.js +1 -1
  560. package/dist/esm/atomic-smart-snippet-answer_2.entry.js +2 -2
  561. package/dist/esm/atomic-smart-snippet-answer_2.entry.js.map +1 -1
  562. package/dist/esm/atomic-smart-snippet-collapse-wrapper_2.entry.js +3 -3
  563. package/dist/esm/atomic-smart-snippet-feedback-modal.entry.js +2 -2
  564. package/dist/esm/atomic-sort-dropdown.entry.js +2 -2
  565. package/dist/esm/atomic-sort-expression.entry.js +1 -1
  566. package/dist/esm/atomic-stencil-facet-date-input.entry.js +3 -3
  567. package/dist/esm/atomic-suggestion-renderer.entry.js +1 -1
  568. package/dist/esm/atomic-tab-bar_2.entry.js +1 -1
  569. package/dist/esm/atomic-tab-button.entry.js +1 -1
  570. package/dist/esm/atomic-tab-manager.entry.js +1 -1
  571. package/dist/esm/atomic-timeframe-facet.entry.js +1 -1
  572. package/dist/esm/atomic.js +1 -1
  573. package/dist/esm/depends-on-20dabb86.js +66 -0
  574. package/dist/esm/depends-on-20dabb86.js.map +1 -0
  575. package/dist/esm/{stencil-facet-guard-edbfa966.js → facet-guard-4b795e90.js} +1 -2
  576. package/dist/esm/facet-guard-4b795e90.js.map +1 -0
  577. package/dist/esm/format-common-274e0f7c.js.map +1 -1
  578. package/dist/esm/index-3f35faca.js +12 -4
  579. package/dist/esm/index.js.map +1 -1
  580. package/dist/esm/stencil-facet-value-30dc9b6c.js +39 -0
  581. package/dist/esm/stencil-facet-value-30dc9b6c.js.map +1 -0
  582. package/dist/esm/{result-template-decorators-2ed76ea9.js → stencil-result-template-decorators-f989bc6b.js} +6 -2
  583. package/dist/esm/stencil-result-template-decorators-f989bc6b.js.map +1 -0
  584. package/dist/esm/version.js +2 -2
  585. package/dist/types/components/commerce/atomic-commerce-interface/atomic-commerce-interface.d.ts +30 -2
  586. package/dist/types/components/commerce/atomic-commerce-recommendation-interface/atomic-commerce-recommendation-interface.d.ts +1 -0
  587. package/dist/types/components/commerce/atomic-product/atomic-product.d.ts +1 -1
  588. package/dist/types/components/commerce/product-template-component-utils/context/fetch-product-context.d.ts +12 -0
  589. package/dist/types/components/commerce/product-template-component-utils/context/interactive-product-context-controller.d.ts +27 -0
  590. package/dist/types/components/commerce/product-template-component-utils/context/product-context-controller.d.ts +33 -0
  591. package/dist/types/components/commerce/product-template-component-utils/{stencil-product-template-decorators.d.ts → context/stencil-product-template-decorators.d.ts} +1 -1
  592. package/dist/types/components/common/smart-snippets/atomic-smart-snippet-source.d.ts +1 -1
  593. package/dist/types/components/search/atomic-result/atomic-result.d.ts +1 -1
  594. package/dist/types/components/search/atomic-search-interface/atomic-search-interface.d.ts +44 -46
  595. package/dist/types/components/search/atomic-search-interface/interfaces.d.ts +1 -2
  596. package/dist/types/components/search/atomic-search-layout/atomic-search-layout.d.ts +1 -3
  597. package/dist/types/components/search/{atomic-facet → facets/atomic-facet}/atomic-facet.d.ts +9 -13
  598. package/dist/types/components/search/index.d.ts +0 -2
  599. package/dist/types/components/search/result-template-component-utils/context/fetch-result-context.d.ts +8 -0
  600. package/dist/types/components/search/result-template-component-utils/context/interactive-result-context-controller.d.ts +12 -0
  601. package/dist/types/components/search/result-template-component-utils/context/result-context-controller.d.ts +18 -0
  602. package/dist/types/components/search/{result-template-components/result-template-decorators.d.ts → result-template-component-utils/context/stencil-result-template-decorators.d.ts} +6 -2
  603. package/dist/types/components.d.ts +338 -2
  604. package/dist/types/index.d.ts +3 -3
  605. package/docs/atomic-docs.json +7288 -6008
  606. package/package.json +4 -4
  607. package/dist/atomic/components/components/common/facets/depends-on.js +0 -62
  608. package/dist/atomic/components/components/common/facets/popover/popover-type.js +0 -5
  609. package/dist/atomic/components/components/common/item-list/fetch-item-context.js +0 -15
  610. package/dist/atomic/components/components/search/atomic-facet/atomic-facet.js +0 -613
  611. package/dist/atomic/components/components/search/atomic-search-interface/analytics-config.js +0 -57
  612. package/dist/atomic/components/components/search/atomic-search-interface/atomic-search-interface.js +0 -495
  613. package/dist/atomic/components/decorators/commerce/product-template-decorators.js +0 -68
  614. package/dist/atomic/components/result-template-decorators.js.map +0 -1
  615. package/dist/atomic/components/stencil-facet-guard.js.map +0 -1
  616. package/dist/atomic/p-0c8e7d5f.entry.js.map +0 -1
  617. package/dist/atomic/p-0edea6f9.entry.js +0 -2
  618. package/dist/atomic/p-0f13077e.js +0 -2
  619. package/dist/atomic/p-0f13077e.js.map +0 -1
  620. package/dist/atomic/p-18684d4c.js.map +0 -1
  621. package/dist/atomic/p-190ddaca.entry.js.map +0 -1
  622. package/dist/atomic/p-1ff7a9da.entry.js.map +0 -1
  623. package/dist/atomic/p-3c532cda.entry.js.map +0 -1
  624. package/dist/atomic/p-454a0328.entry.js.map +0 -1
  625. package/dist/atomic/p-4cb7756c.entry.js +0 -2
  626. package/dist/atomic/p-4cb7756c.entry.js.map +0 -1
  627. package/dist/atomic/p-6de44060.entry.js +0 -2
  628. package/dist/atomic/p-78427c6a.entry.js.map +0 -1
  629. package/dist/atomic/p-7b1a3cab.entry.js.map +0 -1
  630. package/dist/atomic/p-7fe2dfcd.entry.js.map +0 -1
  631. package/dist/atomic/p-8a00adbe.entry.js.map +0 -1
  632. package/dist/atomic/p-8df7270f.entry.js.map +0 -1
  633. package/dist/atomic/p-8fb8c4f0.entry.js.map +0 -1
  634. package/dist/atomic/p-945ddd53.entry.js.map +0 -1
  635. package/dist/atomic/p-97829295.entry.js +0 -2
  636. package/dist/atomic/p-97e42c43.entry.js.map +0 -1
  637. package/dist/atomic/p-9d023f0b.entry.js.map +0 -1
  638. package/dist/atomic/p-a3f27d57.entry.js.map +0 -1
  639. package/dist/atomic/p-a4d277c7.entry.js.map +0 -1
  640. package/dist/atomic/p-aa3ac5aa.js.map +0 -1
  641. package/dist/atomic/p-b3f6561d.entry.js.map +0 -1
  642. package/dist/atomic/p-c2b4b401.entry.js +0 -2
  643. package/dist/atomic/p-c7800a24.entry.js.map +0 -1
  644. package/dist/atomic/p-c8d29aa6.entry.js.map +0 -1
  645. package/dist/atomic/p-c9f1790d.entry.js.map +0 -1
  646. package/dist/atomic/p-dee60597.entry.js.map +0 -1
  647. package/dist/atomic/p-e7c6a479.entry.js.map +0 -1
  648. package/dist/atomic/p-e9dc8e90.entry.js.map +0 -1
  649. package/dist/atomic/p-fa376d3d.entry.js.map +0 -1
  650. package/dist/cjs/depends-on-0d4e4f15.js +0 -68
  651. package/dist/cjs/depends-on-0d4e4f15.js.map +0 -1
  652. package/dist/cjs/result-template-decorators-432d11a9.js.map +0 -1
  653. package/dist/cjs/stencil-facet-guard-9573df7f.js.map +0 -1
  654. package/dist/esm/depends-on-d73b0ce3.js +0 -66
  655. package/dist/esm/depends-on-d73b0ce3.js.map +0 -1
  656. package/dist/esm/result-template-decorators-2ed76ea9.js.map +0 -1
  657. package/dist/esm/stencil-facet-guard-edbfa966.js.map +0 -1
  658. package/dist/types/decorators/commerce/product-template-decorators.d.ts +0 -68
  659. /package/dist/atomic/{p-41c5d5fa.entry.js.map → p-021f01d6.entry.js.map} +0 -0
  660. /package/dist/atomic/{p-a3fa6695.entry.js.map → p-035f8dc8.entry.js.map} +0 -0
  661. /package/dist/atomic/{p-2f8de0b9.entry.js.map → p-07fbb49a.entry.js.map} +0 -0
  662. /package/dist/atomic/{p-0edea6f9.entry.js.map → p-1992b245.entry.js.map} +0 -0
  663. /package/dist/atomic/{p-2ac75719.entry.js.map → p-1d1f54a5.entry.js.map} +0 -0
  664. /package/dist/atomic/{p-10b5e0f3.entry.js.map → p-20341936.entry.js.map} +0 -0
  665. /package/dist/atomic/{p-3213225f.entry.js.map → p-26a51a77.entry.js.map} +0 -0
  666. /package/dist/atomic/{p-15406648.entry.js.map → p-2ca352f4.entry.js.map} +0 -0
  667. /package/dist/atomic/{p-926fe2d7.entry.js.map → p-2ce8220a.entry.js.map} +0 -0
  668. /package/dist/atomic/{p-7a6468a7.entry.js.map → p-36fab158.entry.js.map} +0 -0
  669. /package/dist/atomic/{p-9727f36b.entry.js.map → p-37374964.entry.js.map} +0 -0
  670. /package/dist/atomic/{p-5adbf098.entry.js.map → p-3b023e83.entry.js.map} +0 -0
  671. /package/dist/atomic/{p-0610b3e7.entry.js.map → p-3b20b011.entry.js.map} +0 -0
  672. /package/dist/atomic/{p-0bc9b088.js.map → p-3f2a66df.js.map} +0 -0
  673. /package/dist/atomic/{p-c08f4ee6.entry.js.map → p-3f912e98.entry.js.map} +0 -0
  674. /package/dist/atomic/{p-9e771351.entry.js.map → p-40635c2d.entry.js.map} +0 -0
  675. /package/dist/atomic/{p-c9fe4f77.entry.js.map → p-43d708cb.entry.js.map} +0 -0
  676. /package/dist/atomic/{p-b0c50194.entry.js.map → p-48f57fd8.entry.js.map} +0 -0
  677. /package/dist/atomic/{p-e514cdb2.entry.js.map → p-4a74f4a3.entry.js.map} +0 -0
  678. /package/dist/atomic/{p-24df7251.entry.js.map → p-4c2f230f.entry.js.map} +0 -0
  679. /package/dist/atomic/{p-1140ac4d.entry.js.map → p-52976c12.entry.js.map} +0 -0
  680. /package/dist/atomic/{p-f0012580.entry.js.map → p-594488f2.entry.js.map} +0 -0
  681. /package/dist/atomic/{p-b4ad3036.entry.js.map → p-5f1fa581.entry.js.map} +0 -0
  682. /package/dist/atomic/{p-d50c96c2.entry.js.map → p-627e1265.entry.js.map} +0 -0
  683. /package/dist/atomic/{p-004adbb8.entry.js.map → p-6329ff94.entry.js.map} +0 -0
  684. /package/dist/atomic/{p-e3af1bb4.entry.js.map → p-6e6d686e.entry.js.map} +0 -0
  685. /package/dist/atomic/{p-79a9a372.entry.js.map → p-744da781.entry.js.map} +0 -0
  686. /package/dist/atomic/{p-e6a7e7b2.entry.js.map → p-7dfcd6af.entry.js.map} +0 -0
  687. /package/dist/atomic/{p-9147b0db.entry.js.map → p-8256cd44.entry.js.map} +0 -0
  688. /package/dist/atomic/{p-0e27d4f2.entry.js.map → p-83c9244a.entry.js.map} +0 -0
  689. /package/dist/atomic/{p-828cea10.entry.js.map → p-89ab44de.entry.js.map} +0 -0
  690. /package/dist/atomic/{p-4b1bf2fd.entry.js.map → p-91c0917f.entry.js.map} +0 -0
  691. /package/dist/atomic/{p-bd99fcc1.entry.js.map → p-939eaaac.entry.js.map} +0 -0
  692. /package/dist/atomic/{p-9b92b4e2.entry.js.map → p-93e29b24.entry.js.map} +0 -0
  693. /package/dist/atomic/{p-b6377fb6.entry.js.map → p-98c5b9b8.entry.js.map} +0 -0
  694. /package/dist/atomic/{p-bf49fed3.entry.js.map → p-99b8d52d.entry.js.map} +0 -0
  695. /package/dist/atomic/{p-98da2a98.entry.js.map → p-9f5590f6.entry.js.map} +0 -0
  696. /package/dist/atomic/{p-160553ce.entry.js.map → p-a3efa89e.entry.js.map} +0 -0
  697. /package/dist/atomic/{p-c538c8ac.entry.js.map → p-a53c7821.entry.js.map} +0 -0
  698. /package/dist/atomic/{p-85f165af.entry.js.map → p-a8882a2a.entry.js.map} +0 -0
  699. /package/dist/atomic/{p-ce41c447.entry.js.map → p-ae060711.entry.js.map} +0 -0
  700. /package/dist/atomic/{p-b4c34553.entry.js.map → p-b0b17e21.entry.js.map} +0 -0
  701. /package/dist/atomic/{p-e1c99e2e.entry.js.map → p-b2ff1330.entry.js.map} +0 -0
  702. /package/dist/atomic/{p-618c6967.entry.js.map → p-b6963bae.entry.js.map} +0 -0
  703. /package/dist/atomic/{p-08794435.entry.js.map → p-ba650801.entry.js.map} +0 -0
  704. /package/dist/atomic/{p-0e5dc57f.entry.js.map → p-c126ee6b.entry.js.map} +0 -0
  705. /package/dist/atomic/{p-754909fe.entry.js.map → p-c1999888.entry.js.map} +0 -0
  706. /package/dist/atomic/{p-ca762513.entry.js.map → p-c889adbd.entry.js.map} +0 -0
  707. /package/dist/atomic/{p-00a6ab8c.entry.js.map → p-d0f47b33.entry.js.map} +0 -0
  708. /package/dist/atomic/{p-97829295.entry.js.map → p-d24d34a7.entry.js.map} +0 -0
  709. /package/dist/atomic/{p-7f40e57d.entry.js.map → p-d364064c.entry.js.map} +0 -0
  710. /package/dist/atomic/{p-856e858c.entry.js.map → p-d785121d.entry.js.map} +0 -0
  711. /package/dist/atomic/{p-7d63bf7b.entry.js.map → p-d93adf52.entry.js.map} +0 -0
  712. /package/dist/atomic/{p-2a4e9425.entry.js.map → p-de066001.entry.js.map} +0 -0
  713. /package/dist/atomic/{p-441b1a7b.entry.js.map → p-e23b3334.entry.js.map} +0 -0
  714. /package/dist/atomic/{p-c2b4b401.entry.js.map → p-e2afb475.entry.js.map} +0 -0
  715. /package/dist/atomic/{p-bd32625e.entry.js.map → p-ea446721.entry.js.map} +0 -0
  716. /package/dist/atomic/{p-07b6424c.entry.js.map → p-ee6771f1.entry.js.map} +0 -0
  717. /package/dist/atomic/{p-abb14108.entry.js.map → p-f0c2dfe8.entry.js.map} +0 -0
  718. /package/dist/atomic/{p-cc68642f.entry.js.map → p-f289269f.entry.js.map} +0 -0
  719. /package/dist/atomic/{p-fbe37f4b.entry.js.map → p-f8d62605.entry.js.map} +0 -0
  720. /package/dist/atomic/{p-bdbbb47b.entry.js.map → p-f8ded37c.entry.js.map} +0 -0
  721. /package/dist/atomic/{p-d4ad7336.entry.js.map → p-fa8b7c4c.entry.js.map} +0 -0
  722. /package/dist/atomic/{p-fb1a1e2e.entry.js.map → p-fbfe913d.entry.js.map} +0 -0
  723. /package/dist/atomic/{p-f936f55e.entry.js.map → p-fea7bf3b.entry.js.map} +0 -0
  724. /package/dist/types/components/common/facets/{stencil-facet-guard.d.ts → facet-guard.d.ts} +0 -0
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-757bc886.js');
6
6
  const initQueue = require('./init-queue-a18aa323.js');
7
7
  const insight = require('@coveo/headless/insight');
8
- const analyticsConfig = require('./analytics-config-b8cf7dfc.js');
8
+ const analyticsConfig = require('./analytics-config-fac0aa98.js');
9
9
  const propsUtils = require('./props-utils-1e4ba1b0.js');
10
10
  const replaceBreakpointUtils = require('./replace-breakpoint-utils-7a084f54.js');
11
11
  const store = require('./store-82abd941.js');
@@ -288,7 +288,7 @@ const AtomicInsightInterface = class {
288
288
  this.initialized = true;
289
289
  }
290
290
  render() {
291
- return (this.engine && (index.h(index.Host, { key: '53ae449a082a237aeaf252b434ac3f2ccac3b355' }, index.h("slot", { key: '014213e9abbe998a723c646913deb2d93ed3b806', name: "full-search" }), index.h("slot", { key: 'ce4e1360340307e0c17121c199c08f0dce8a003a' }))));
291
+ return (this.engine && (index.h(index.Host, { key: 'aed4bfd7d85a00c74732bbe3ee8aeb96ce93b640' }, index.h("slot", { key: '2b01a05f3df814e6ba4624ebe5c4fad59b8667c9', name: "full-search" }), index.h("slot", { key: '5729d003ec8ebf565d4b706fe5b6bfb1a749c5f3' }))));
292
292
  }
293
293
  get host() { return index.getElement(this); }
294
294
  static get watchers() { return {
@@ -43,7 +43,7 @@ const AtomicInsightNoResults = class {
43
43
  }
44
44
  render() {
45
45
  const { bindings: { i18n }, } = this;
46
- return (index.h("div", { key: 'a23c36b70bcc6d0e71e68bb890ff2e2a27286169', class: "p-3 text-center" }, index.h(stencilTips.NoItemsGuard, { key: '80949ee88ba1d432dc12fcd00763e0326999cbb5', ...this.searchStatusState }, index.h(stencilMagnifyingGlass.NoItemsContainer, { key: 'ad7ddbd0582ab7e5668add11192e516cf9b44873' }, index.h(stencilMagnifyingGlass.MagnifyingGlass, { key: 'fbe200d569271d4b386f4ff6df591ddca9becce1' }), index.h(stencilTips.NoItems, { key: '1a20ceaa235e6fcbd1aa4ae8adbc78041b184bd9', query: this.querySummaryState.query, i18n: i18n, i18nKey: "no-results" }), index.h(stencilTips.SearchTips, { key: '3ae8f891aed35cc44f6e19555c5c7803f2acd81e', i18n: i18n })))));
46
+ return (index.h("div", { key: '2b2c2ef2f31507be6c651f564989a4de5340509c', class: "p-3 text-center" }, index.h(stencilTips.NoItemsGuard, { key: '0c1e2b803effae0aa585144f977b8d5bdbd03e1a', ...this.searchStatusState }, index.h(stencilMagnifyingGlass.NoItemsContainer, { key: '0c859b6a13fcf85b78cd7bd84c8655d86a0acd42' }, index.h(stencilMagnifyingGlass.MagnifyingGlass, { key: 'c85a8de8bfa7edbc23e3acb6ffd2bcc2d79c0a24' }), index.h(stencilTips.NoItems, { key: '3d6bb20e3fc9519885696552d94d240b29941ebb', query: this.querySummaryState.query, i18n: i18n, i18nKey: "no-results" }), index.h(stencilTips.SearchTips, { key: 'e2e86ae1323e15939dab8227cfcfbb21d67a8577', i18n: i18n })))));
47
47
  }
48
48
  };
49
49
  __decorate([
@@ -9,9 +9,9 @@ const initializationUtils = require('./initialization-utils-92f1b080.js');
9
9
  const propsUtils = require('./props-utils-1e4ba1b0.js');
10
10
  const stencilAccessibilityUtils = require('./stencil-accessibility-utils-aa4c9f6c.js');
11
11
  const utils = require('./utils-7153ae6b.js');
12
- const dependsOn = require('./depends-on-0d4e4f15.js');
12
+ const dependsOn = require('./depends-on-f0cf3617.js');
13
13
  const facetPlaceholder = require('./facet-placeholder-22074f05.js');
14
- const stencilFacetGuard = require('./stencil-facet-guard-9573df7f.js');
14
+ const facetGuard = require('./facet-guard-328b588d.js');
15
15
  const stencilValuesContainer = require('./stencil-values-container-9f50ec1a.js');
16
16
  const popoverType = require('./popover-type-b1385b27.js');
17
17
  const stencilFacetCommon = require('./stencil-facet-common-c258bef8.js');
@@ -262,7 +262,7 @@ const AtomicInsightNumericFacet = class {
262
262
  }
263
263
  render() {
264
264
  const { searchStatusState: { firstSearchExecuted, hasError }, bindings: { i18n }, label, numberOfSelectedValues, isCollapsed, headingLevel, focusTarget, withInput, filter, } = this;
265
- return (index.h(stencilFacetGuard.FacetGuard, { key: '780fa3db34446d4f4b5aeedfa0c27201b172c344', enabled: this.enabled, firstSearchExecuted: firstSearchExecuted, hasError: hasError, hasResults: this.shouldRenderFacet }, firstSearchExecuted ? (index.h(facetPlaceholder.FacetContainer, null, index.h(facetPlaceholder.FacetHeader, { i18n: i18n, label: label, onClearFilters: () => {
265
+ return (index.h(facetGuard.FacetGuard, { key: 'dfe425f62c284bdf206c5b8bb4731689809a1379', enabled: this.enabled, firstSearchExecuted: firstSearchExecuted, hasError: hasError, hasResults: this.shouldRenderFacet }, firstSearchExecuted ? (index.h(facetPlaceholder.FacetContainer, null, index.h(facetPlaceholder.FacetHeader, { i18n: i18n, label: label, onClearFilters: () => {
266
266
  focusTarget.focusAfterSearch();
267
267
  if (this.filterState?.range) {
268
268
  this.filter?.clear();
@@ -1 +1 @@
1
- {"file":"atomic-insight-numeric-facet.entry.cjs.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAM,4BAA4B,GAAG,4rwFAA4rwF,CAAC;AACluwF,wCAAe,4BAA4B;;;;;;;;;;;;MCuD9B,yBAAyB;;;QAQ5B,iBAAY,GAAsD,EAAE,CAAC;QAIrE,cAAS,GAAoBA,mCAAsB,CAAC;;;;;QAuB9B,UAAK,GAAG,UAAU,CAAC;;;;;QASnB,mBAAc,GAAG,CAAC,CAAC;;;;;QAUnB,iBAAY,GACxC,WAAW,CAAC;;;;QAKP,mBAAc,GAAoC,cAAc,CAAC;;;;;QAK1C,oBAAe,GAC3C,UAAU,CAAC;;;;QAIgC,gBAAW,GAAG,KAAK,CAAC;;;;QAInC,iBAAY,GAAG,CAAC,CAAC;;;;;;;QAOjB,qBAAgB,GAAG,IAAI,CAAC;;;;;;;QAOxB,mBAAc,GAAG,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;QAqB1B,cAAS,GAA2B,EAAE,CAAC;;;;;;;qBA1E3B,UAAU;;8BASD,CAAC;;4BAW9C,WAAW;8BAK4C,cAAc;+BAMrE,UAAU;2BAI+C,KAAK;4BAInB,CAAC;gCAOG,IAAI;8BAON,IAAI;yBAqBW,EAAE;;IAIzD,UAAU;QACf,IAAI,CAAC,aAAa,EAAE,CAAC;QACrB,IAAI,CAAC,cAAc,EAAE,CAAC;QACtB,IAAI,CAAC,uBAAuB,EAAE,CAAC;QAC/B,IAAI,CAAC,uBAAuB,EAAE,CAAC;QAC/B,IAAI,CAAC,gBAAgB,EAAE,CAAC;QACxB,IAAI,CAAC,6BAA6B,EAAE,CAAC;QACrC,IAAI,CAAC,sBAAsB,EAAE,CAAC;QAC9B,IAAI,CAAC,oBAAoB,EAAE,CAAC;KAC7B;IAED,IAAY,WAAW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AY,iBAAiB;QAC3B,OAAO,IAAI,CAAC,iBAAiB,IAAI,IAAI,CAAC,kBAAkB,CAAC;KAC1D;IAED,IAAY,SAAS;QACnB,IAAI,IAAI,CAAC,aAAa,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE;YAC3C,OAAO,IAAI,CAAC;SACb;QAED,OAAO,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC;KACrC;IAED,IAAY,OAAO;QACjB,OAAO,IAAI,CAAC,UAAU,EAAE,OAAO,IAAI,IAAI,CAAC,MAAM,EAAE,KAAK,CAAC,OAAO,IAAI,IAAI,CAAC;KACvE;IAEO,aAAa;QACnB,IAAIC,YAAM,CAAC;YACT,eAAe,EAAE,IAAIC,iBAAW,CAAC,EAAC,WAAW,EAAE,CAAC,UAAU,EAAE,MAAM,CAAC,EAAC,CAAC;YACrE,SAAS,EAAE,IAAIA,iBAAW,CAAC,EAAC,WAAW,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC,EAAC,CAAC;SAClE,CAAC,CAAC,QAAQ,CAAC;YACV,eAAe,EAAE,IAAI,CAAC,eAAe;YACrC,SAAS,EAAE,IAAI,CAAC,SAAS;SAC1B,CAAC,CAAC;KACJ;;;AAvb4B;IAA5BC,sCAAkB,EAAE;2DAAmC;AAYjD;IAFNC,yCAAqB,CAAC,eAAe,CAAC;6DAEM;AAGtC;IAFNA,yCAAqB,CAAC,QAAQ,CAAC;8DAEe;AAGxC;IAFNA,yCAAqB,CAAC,cAAc,CAAC;oEAEc;AAI7C;IAFNA,yCAAqB,CAAC,eAAe,CAAC;qEAEc;AAoF3B;IAAzBC,kBAAO,EAAE;4DAAuD;;;;;","names":["defaultNumberFormatter","FocusTargetController","buildInsightNumericFacet","buildInsightNumericRange","buildInsightNumericFilter","buildInsightFacetConditionsManager","parseDependsOn","buildInsightSearchStatus","formatHumanReadable","initializePopover","loadInsightNumericFacetSetActions","h","FacetGuard","FacetContainer","FacetHeader","FacetPlaceholder","NumericFacetValuesContainer","NumericFacetValueLink","shouldDisplayInputForFacetRange","randomID","Schema","StringValue","InitializeBindings","BindStateToController","MapProp"],"sources":["src/components/insight/atomic-insight-numeric-facet/atomic-insight-numeric-facet.pcss?tag=atomic-insight-numeric-facet&encapsulation=shadow","src/components/insight/atomic-insight-numeric-facet/atomic-insight-numeric-facet.tsx"],"sourcesContent":["@import '../../common/facets/numeric-facet-common.pcss';\n","import {Schema, StringValue} from '@coveo/bueno';\nimport {\n buildFacetConditionsManager as buildInsightFacetConditionsManager,\n buildNumericFacet as buildInsightNumericFacet,\n buildNumericFilter as buildInsightNumericFilter,\n buildNumericRange as buildInsightNumericRange,\n buildSearchStatus as buildInsightSearchStatus,\n CategoryFacetValueRequest as InsightCategoryFacetValueRequest,\n FacetConditionsManager as InsightFacetConditionsManager,\n FacetValueRequest as InsightFacetValueRequest,\n NumericFacet as InsightNumericFacet,\n NumericFacetState as InsightNumericFacetState,\n NumericFilter as InsightNumericFilter,\n NumericFilterState as InsightNumericFilterState,\n NumericRangeRequest as InsightNumericRangeRequest,\n RangeFacetRangeAlgorithm as InsightRangeFacetRangeAlgorithm,\n RangeFacetSortCriterion as InsightRangeFacetSortCriterion,\n SearchStatus as InsightSearchStatus,\n SearchStatusState as InsightSearchStatusState,\n loadNumericFacetSetActions as loadInsightNumericFacetSetActions,\n} from '@coveo/headless/insight';\nimport {Component, Element, h, Listen, Prop, State} from '@stencil/core';\nimport {\n BindStateToController,\n InitializableComponent,\n InitializeBindings,\n} from '../../../utils/initialization-utils';\nimport {MapProp} from '../../../utils/props-utils';\nimport {FocusTargetController} from '../../../utils/stencil-accessibility-utils';\nimport {randomID} from '../../../utils/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/stencil-facet-guard';\nimport {FacetHeader} from '../../common/facets/facet-header/stencil-facet-header';\nimport {NumberInputType} from '../../common/facets/facet-number-input/number-input-type';\nimport {FacetPlaceholder} from '../../common/facets/facet-placeholder/facet-placeholder';\nimport {formatHumanReadable} from '../../common/facets/numeric-facet/formatter';\nimport {NumericFacetValueLink} from '../../common/facets/numeric-facet/stencil-value-link';\nimport {NumericFacetValuesContainer} from '../../common/facets/numeric-facet/stencil-values-container';\nimport {initializePopover} from '../../common/facets/popover/popover-type';\nimport {shouldDisplayInputForFacetRange} from '../../common/facets/stencil-facet-common';\nimport {\n defaultNumberFormatter,\n NumberFormatter,\n} from '../../common/formats/format-common';\nimport {InsightBindings} from '../atomic-insight-interface/atomic-insight-interface';\n\n/**\n * @internal\n */\n@Component({\n tag: 'atomic-insight-numeric-facet',\n styleUrl: './atomic-insight-numeric-facet.pcss',\n shadow: true,\n})\nexport class AtomicInsightNumericFacet\n implements InitializableComponent<InsightBindings>\n{\n @InitializeBindings() public bindings!: InsightBindings;\n public facetForRange?: InsightNumericFacet;\n public facetForInput?: InsightNumericFacet;\n public filter?: InsightNumericFilter;\n public searchStatus!: InsightSearchStatus;\n private manualRanges: (InsightNumericRangeRequest & {label?: string})[] = [];\n private dependenciesManager?: InsightFacetConditionsManager;\n\n @Element() private host!: HTMLElement;\n private formatter: NumberFormatter = defaultNumberFormatter;\n @BindStateToController('facetForRange')\n @State()\n public facetState!: InsightNumericFacetState;\n @BindStateToController('filter')\n @State()\n public filterState?: InsightNumericFilterState;\n @BindStateToController('searchStatus')\n @State()\n public searchStatusState!: InsightSearchStatusState;\n @State() public error!: Error;\n @BindStateToController('facetForInput')\n @State()\n public facetForInputState?: InsightNumericFacetState;\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 * Used in the `atomic-breadbox` component through the bindings store.\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, when there are no manual ranges.\n * If the number of values is 0, no ranges will be displayed.\n */\n @Prop({reflect: true}) public numberOfValues = 8;\n /**\n * Whether this facet should contain an input allowing users to set custom ranges.\n * Depending on the field, the input can allow either decimal or integer values.\n */\n @Prop({reflect: true}) public withInput?: NumberInputType;\n /**\n * The sort criterion to apply to the returned facet values.\n * Possible values are 'ascending' and 'descending'.\n */\n @Prop({reflect: true}) public sortCriteria: InsightRangeFacetSortCriterion =\n 'ascending';\n /**\n * The algorithm that's used for generating the ranges of this facet when they aren't manually defined. The default value of `\"equiprobable\"` generates facet ranges which vary in size but have a more balanced number of results within each range. The value of `\"even\"` generates equally sized facet ranges across all of the results.\n */\n @Prop({reflect: true})\n public rangeAlgorithm: InsightRangeFacetRangeAlgorithm = 'equiprobable';\n /**\n * Whether to display the facet values as checkboxes (multiple selection) or links (single selection).\n * Possible values are 'checkbox' and 'link'.\n */\n @Prop({reflect: true}) public displayValuesAs: 'checkbox' | 'link' =\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({reflect: true}) public injectionDepth = 1000;\n\n /**\n * The required facets and values for this facet to be displayed.\n * Examples:\n * ```html\n * <atomic-insight-facet facet-id=\"abc\" field=\"objecttype\" ...></atomic-insight-facet>\n *\n * <!-- To show the facet when any value is selected in the facet with id \"abc\": -->\n * <atomic-insight-numeric-facet\n * depends-on-abc\n * ...\n * ></atomic-insight-numeric-facet>\n *\n * <!-- To show the facet when value \"doc\" is selected in the facet with id \"abc\": -->\n * <atomic-insight-numeric-facet\n * depends-on-abc=\"doc\"\n * ...\n * ></atomic-insight-numeric-facet>\n * ```\n */\n @MapProp() @Prop() public dependsOn: Record<string, string> = {};\n\n private headerFocus?: FocusTargetController;\n\n public initialize() {\n this.validateProps();\n this.computeFacetId();\n this.initializeFacetForInput();\n this.initializeFacetForRange();\n this.initializeFilter();\n this.initializeDependenciesManager();\n this.initializeSearchStatus();\n this.registerFacetToStore();\n }\n\n private get focusTarget(): FocusTargetController {\n if (!this.headerFocus) {\n this.headerFocus = new FocusTargetController(this);\n }\n return this.headerFocus;\n }\n\n public disconnectedCallback() {\n if (this.host.isConnected) {\n return;\n }\n this.dependenciesManager?.stopWatching();\n }\n\n private initializeFacetForInput() {\n if (!this.withInput) {\n return;\n }\n this.facetForInput = buildInsightNumericFacet(this.bindings.engine, {\n options: {\n facetId: `${this.facetId}_input_range`,\n numberOfValues: 1,\n generateAutomaticRanges: true,\n field: this.field,\n sortCriteria: this.sortCriteria,\n rangeAlgorithm: this.rangeAlgorithm,\n filterFacetCount: this.filterFacetCount,\n injectionDepth: this.injectionDepth,\n },\n });\n\n return this.facetForInput;\n }\n\n private initializeFacetForRange() {\n if (this.numberOfValues <= 0) {\n return;\n }\n\n this.manualRanges = Array.from(\n this.host.querySelectorAll('atomic-numeric-range')\n ).map(({start, end, endInclusive, label}) => ({\n ...buildInsightNumericRange({start, end, endInclusive}),\n label,\n }));\n\n this.facetForRange = buildInsightNumericFacet(this.bindings.engine, {\n options: {\n facetId: this.facetId,\n field: this.field,\n numberOfValues: this.numberOfValues,\n sortCriteria: this.sortCriteria,\n rangeAlgorithm: this.rangeAlgorithm,\n currentValues: this.manualRanges,\n generateAutomaticRanges: !this.manualRanges.length,\n filterFacetCount: this.filterFacetCount,\n injectionDepth: this.injectionDepth,\n },\n });\n\n return this.facetForRange;\n }\n\n private initializeFilter() {\n if (!this.withInput) {\n return;\n }\n\n this.filter = buildInsightNumericFilter(this.bindings.engine, {\n options: {\n facetId: `${this.facetId}_input`,\n field: this.field,\n },\n });\n }\n\n private initializeDependenciesManager() {\n this.dependenciesManager = buildInsightFacetConditionsManager(\n this.bindings.engine,\n {\n facetId:\n this.facetForRange?.state.facetId ?? this.filter!.state.facetId,\n conditions: parseDependsOn<\n InsightFacetValueRequest | InsightCategoryFacetValueRequest\n >(this.dependsOn),\n }\n );\n }\n\n private initializeSearchStatus() {\n this.searchStatus = buildInsightSearchStatus(this.bindings.engine);\n }\n\n private registerFacetToStore() {\n const facetInfo: FacetInfo = {\n label: () => this.bindings.i18n.t(this.label),\n facetId: this.facetId!,\n element: this.host,\n isHidden: () => this.isHidden,\n };\n\n this.bindings.store.registerFacet('numericFacets', {\n ...facetInfo,\n format: (value) =>\n formatHumanReadable({\n facetValue: value,\n logger: this.bindings.engine.logger,\n i18n: this.bindings.i18n,\n field: this.field,\n manualRanges: this.manualRanges,\n formatter: this.formatter,\n }),\n });\n\n initializePopover(this.host, {\n ...facetInfo,\n hasValues: () => this.hasValues,\n numberOfActiveValues: () => this.numberOfSelectedValues,\n });\n\n if (this.filter) {\n this.bindings.store.state.numericFacets[this.filter.state.facetId] =\n this.bindings.store.state.numericFacets[this.facetId!];\n }\n }\n\n @Listen('atomic/numberFormat')\n public setFormat(event: CustomEvent<NumberFormatter>) {\n event.preventDefault();\n event.stopPropagation();\n this.formatter = event.detail;\n }\n\n @Listen('atomic/numberInputApply')\n public applyNumberInput() {\n this.facetId &&\n this.bindings.engine.dispatch(\n loadInsightNumericFacetSetActions(\n this.bindings.engine\n ).deselectAllNumericFacetValues(this.facetId)\n );\n }\n\n public render() {\n const {\n searchStatusState: {firstSearchExecuted, hasError},\n bindings: {i18n},\n label,\n numberOfSelectedValues,\n isCollapsed,\n headingLevel,\n focusTarget,\n withInput,\n filter,\n } = this;\n return (\n <FacetGuard\n enabled={this.enabled}\n firstSearchExecuted={firstSearchExecuted}\n hasError={hasError}\n hasResults={this.shouldRenderFacet}\n >\n {firstSearchExecuted ? (\n <FacetContainer>\n <FacetHeader\n i18n={i18n}\n label={label}\n onClearFilters={() => {\n focusTarget.focusAfterSearch();\n if (this.filterState?.range) {\n this.filter?.clear();\n return;\n }\n this.facetForRange?.deselectAll();\n }}\n numberOfActiveValues={numberOfSelectedValues}\n isCollapsed={isCollapsed}\n headingLevel={headingLevel}\n onToggleCollapse={() => (this.isCollapsed = !this.isCollapsed)}\n headerRef={(el) => focusTarget.setTarget(el)}\n />\n {!isCollapsed && [\n this.shouldRenderValues && this.renderValues(),\n this.shouldRenderInput && (\n <atomic-facet-number-input\n type={withInput!}\n bindings={this.bindings}\n label={label}\n filter={filter!}\n filterState={filter!.state}\n ></atomic-facet-number-input>\n ),\n ]}\n </FacetContainer>\n ) : (\n <FacetPlaceholder\n isCollapsed={this.isCollapsed}\n numberOfValues={this.numberOfValues}\n />\n )}\n </FacetGuard>\n );\n }\n\n private renderValues() {\n const {\n displayValuesAs,\n field,\n manualRanges,\n label,\n bindings: {\n i18n,\n engine: {logger},\n },\n } = this;\n\n return (\n <NumericFacetValuesContainer i18n={i18n} label={label}>\n {this.valuesToRender.map((value) => (\n <NumericFacetValueLink\n formatter={this.formatter}\n displayValuesAs={displayValuesAs}\n facetValue={value}\n field={field}\n i18n={i18n}\n logger={logger}\n manualRanges={manualRanges}\n onClick={() =>\n this.displayValuesAs === 'link'\n ? this.facetForRange!.toggleSingleSelect(value)\n : this.facetForRange!.toggleSelect(value)\n }\n />\n ))}\n </NumericFacetValuesContainer>\n );\n }\n\n private get numberOfSelectedValues() {\n if (this.filter?.state.range) {\n return 1;\n }\n\n return (\n this.facetForRange?.state.values.filter(({state}) => state === 'selected')\n .length || 0\n );\n }\n\n private get shouldRenderValues() {\n return (\n !this.hasInputRange &&\n this.numberOfValues > 0 &&\n !!this.valuesToRender.length\n );\n }\n\n private get hasInputRange() {\n return !!this.filter?.state.range;\n }\n\n private get valuesToRender() {\n return (\n this.facetForRange?.state.values.filter(\n (value) => value.numberOfResults || value.state !== 'idle'\n ) || []\n );\n }\n\n private get shouldRenderInput() {\n return shouldDisplayInputForFacetRange({\n hasInputRange: this.hasInputRange,\n searchStatusState: this.searchStatusState,\n facetValues: this.facetForInput?.state.values || [],\n hasInput: !!this.withInput,\n });\n }\n\n private computeFacetId() {\n if (this.facetId) {\n return;\n }\n\n if (this.bindings.store.state.numericFacets[this.field]) {\n this.facetId = randomID(`${this.field}_`);\n }\n\n this.facetId = this.field;\n }\n\n private get isHidden() {\n return !this.shouldRenderFacet || !this.facetState.enabled;\n }\n\n private get shouldRenderFacet() {\n return this.shouldRenderInput || this.shouldRenderValues;\n }\n\n private get hasValues() {\n if (this.facetForInput?.state.values.length) {\n return true;\n }\n\n return !!this.valuesToRender.length;\n }\n\n private get enabled() {\n return this.facetState?.enabled ?? this.filter?.state.enabled ?? true;\n }\n\n private validateProps() {\n new Schema({\n displayValuesAs: new StringValue({constrainTo: ['checkbox', 'link']}),\n withInput: new StringValue({constrainTo: ['integer', 'decimal']}),\n }).validate({\n displayValuesAs: this.displayValuesAs,\n withInput: this.withInput,\n });\n }\n}\n"],"version":3}
1
+ {"file":"atomic-insight-numeric-facet.entry.cjs.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAM,4BAA4B,GAAG,4rwFAA4rwF,CAAC;AACluwF,wCAAe,4BAA4B;;;;;;;;;;;;MCuD9B,yBAAyB;;;QAQ5B,iBAAY,GAAsD,EAAE,CAAC;QAIrE,cAAS,GAAoBA,mCAAsB,CAAC;;;;;QAuB9B,UAAK,GAAG,UAAU,CAAC;;;;;QASnB,mBAAc,GAAG,CAAC,CAAC;;;;;QAUnB,iBAAY,GACxC,WAAW,CAAC;;;;QAKP,mBAAc,GAAoC,cAAc,CAAC;;;;;QAK1C,oBAAe,GAC3C,UAAU,CAAC;;;;QAIgC,gBAAW,GAAG,KAAK,CAAC;;;;QAInC,iBAAY,GAAG,CAAC,CAAC;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EAAE,SAAS,CAAC,EAAC,CAAC;SAClE,CAAC,CAAC,QAAQ,CAAC;YACV,eAAe,EAAE,IAAI,CAAC,eAAe;YACrC,SAAS,EAAE,IAAI,CAAC,SAAS;SAC1B,CAAC,CAAC;KACJ;;;AAvb4B;IAA5BC,sCAAkB,EAAE;2DAAmC;AAYjD;IAFNC,yCAAqB,CAAC,eAAe,CAAC;6DAEM;AAGtC;IAFNA,yCAAqB,CAAC,QAAQ,CAAC;8DAEe;AAGxC;IAFNA,yCAAqB,CAAC,cAAc,CAAC;oEAEc;AAI7C;IAFNA,yCAAqB,CAAC,eAAe,CAAC;qEAEc;AAoF3B;IAAzBC,kBAAO,EAAE;4DAAuD;;;;;","names":["defaultNumberFormatter","FocusTargetController","buildInsightNumericFacet","buildInsightNumericRange","buildInsightNumericFilter","buildInsightFacetConditionsManager","parseDependsOn","buildInsightSearchStatus","formatHumanReadable","initializePopover","loadInsightNumericFacetSetActions","h","FacetGuard","FacetContainer","FacetHeader","FacetPlaceholder","NumericFacetValuesContainer","NumericFacetValueLink","shouldDisplayInputForFacetRange","randomID","Schema","StringValue","InitializeBindings","BindStateToController","MapProp"],"sources":["src/components/insight/atomic-insight-numeric-facet/atomic-insight-numeric-facet.pcss?tag=atomic-insight-numeric-facet&encapsulation=shadow","src/components/insight/atomic-insight-numeric-facet/atomic-insight-numeric-facet.tsx"],"sourcesContent":["@import '../../common/facets/numeric-facet-common.pcss';\n","import {Schema, StringValue} from '@coveo/bueno';\nimport {\n buildFacetConditionsManager as buildInsightFacetConditionsManager,\n buildNumericFacet as buildInsightNumericFacet,\n buildNumericFilter as buildInsightNumericFilter,\n buildNumericRange as buildInsightNumericRange,\n buildSearchStatus as buildInsightSearchStatus,\n CategoryFacetValueRequest as InsightCategoryFacetValueRequest,\n FacetConditionsManager as InsightFacetConditionsManager,\n FacetValueRequest as InsightFacetValueRequest,\n NumericFacet as InsightNumericFacet,\n NumericFacetState as InsightNumericFacetState,\n NumericFilter as InsightNumericFilter,\n NumericFilterState as InsightNumericFilterState,\n NumericRangeRequest as InsightNumericRangeRequest,\n RangeFacetRangeAlgorithm as InsightRangeFacetRangeAlgorithm,\n RangeFacetSortCriterion as InsightRangeFacetSortCriterion,\n SearchStatus as InsightSearchStatus,\n SearchStatusState as InsightSearchStatusState,\n loadNumericFacetSetActions as loadInsightNumericFacetSetActions,\n} from '@coveo/headless/insight';\nimport {Component, Element, h, Listen, Prop, State} from '@stencil/core';\nimport {\n BindStateToController,\n InitializableComponent,\n InitializeBindings,\n} from '../../../utils/initialization-utils';\nimport {MapProp} from '../../../utils/props-utils';\nimport {FocusTargetController} from '../../../utils/stencil-accessibility-utils';\nimport {randomID} from '../../../utils/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 {NumberInputType} from '../../common/facets/facet-number-input/number-input-type';\nimport {FacetPlaceholder} from '../../common/facets/facet-placeholder/facet-placeholder';\nimport {formatHumanReadable} from '../../common/facets/numeric-facet/formatter';\nimport {NumericFacetValueLink} from '../../common/facets/numeric-facet/stencil-value-link';\nimport {NumericFacetValuesContainer} from '../../common/facets/numeric-facet/stencil-values-container';\nimport {initializePopover} from '../../common/facets/popover/popover-type';\nimport {shouldDisplayInputForFacetRange} from '../../common/facets/stencil-facet-common';\nimport {\n defaultNumberFormatter,\n NumberFormatter,\n} from '../../common/formats/format-common';\nimport {InsightBindings} from '../atomic-insight-interface/atomic-insight-interface';\n\n/**\n * @internal\n */\n@Component({\n tag: 'atomic-insight-numeric-facet',\n styleUrl: './atomic-insight-numeric-facet.pcss',\n shadow: true,\n})\nexport class AtomicInsightNumericFacet\n implements InitializableComponent<InsightBindings>\n{\n @InitializeBindings() public bindings!: InsightBindings;\n public facetForRange?: InsightNumericFacet;\n public facetForInput?: InsightNumericFacet;\n public filter?: InsightNumericFilter;\n public searchStatus!: InsightSearchStatus;\n private manualRanges: (InsightNumericRangeRequest & {label?: string})[] = [];\n private dependenciesManager?: InsightFacetConditionsManager;\n\n @Element() private host!: HTMLElement;\n private formatter: NumberFormatter = defaultNumberFormatter;\n @BindStateToController('facetForRange')\n @State()\n public facetState!: InsightNumericFacetState;\n @BindStateToController('filter')\n @State()\n public filterState?: InsightNumericFilterState;\n @BindStateToController('searchStatus')\n @State()\n public searchStatusState!: InsightSearchStatusState;\n @State() public error!: Error;\n @BindStateToController('facetForInput')\n @State()\n public facetForInputState?: InsightNumericFacetState;\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 * Used in the `atomic-breadbox` component through the bindings store.\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, when there are no manual ranges.\n * If the number of values is 0, no ranges will be displayed.\n */\n @Prop({reflect: true}) public numberOfValues = 8;\n /**\n * Whether this facet should contain an input allowing users to set custom ranges.\n * Depending on the field, the input can allow either decimal or integer values.\n */\n @Prop({reflect: true}) public withInput?: NumberInputType;\n /**\n * The sort criterion to apply to the returned facet values.\n * Possible values are 'ascending' and 'descending'.\n */\n @Prop({reflect: true}) public sortCriteria: InsightRangeFacetSortCriterion =\n 'ascending';\n /**\n * The algorithm that's used for generating the ranges of this facet when they aren't manually defined. The default value of `\"equiprobable\"` generates facet ranges which vary in size but have a more balanced number of results within each range. The value of `\"even\"` generates equally sized facet ranges across all of the results.\n */\n @Prop({reflect: true})\n public rangeAlgorithm: InsightRangeFacetRangeAlgorithm = 'equiprobable';\n /**\n * Whether to display the facet values as checkboxes (multiple selection) or links (single selection).\n * Possible values are 'checkbox' and 'link'.\n */\n @Prop({reflect: true}) public displayValuesAs: 'checkbox' | 'link' =\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({reflect: true}) public injectionDepth = 1000;\n\n /**\n * The required facets and values for this facet to be displayed.\n * Examples:\n * ```html\n * <atomic-insight-facet facet-id=\"abc\" field=\"objecttype\" ...></atomic-insight-facet>\n *\n * <!-- To show the facet when any value is selected in the facet with id \"abc\": -->\n * <atomic-insight-numeric-facet\n * depends-on-abc\n * ...\n * ></atomic-insight-numeric-facet>\n *\n * <!-- To show the facet when value \"doc\" is selected in the facet with id \"abc\": -->\n * <atomic-insight-numeric-facet\n * depends-on-abc=\"doc\"\n * ...\n * ></atomic-insight-numeric-facet>\n * ```\n */\n @MapProp() @Prop() public dependsOn: Record<string, string> = {};\n\n private headerFocus?: FocusTargetController;\n\n public initialize() {\n this.validateProps();\n this.computeFacetId();\n this.initializeFacetForInput();\n this.initializeFacetForRange();\n this.initializeFilter();\n this.initializeDependenciesManager();\n this.initializeSearchStatus();\n this.registerFacetToStore();\n }\n\n private get focusTarget(): FocusTargetController {\n if (!this.headerFocus) {\n this.headerFocus = new FocusTargetController(this);\n }\n return this.headerFocus;\n }\n\n public disconnectedCallback() {\n if (this.host.isConnected) {\n return;\n }\n this.dependenciesManager?.stopWatching();\n }\n\n private initializeFacetForInput() {\n if (!this.withInput) {\n return;\n }\n this.facetForInput = buildInsightNumericFacet(this.bindings.engine, {\n options: {\n facetId: `${this.facetId}_input_range`,\n numberOfValues: 1,\n generateAutomaticRanges: true,\n field: this.field,\n sortCriteria: this.sortCriteria,\n rangeAlgorithm: this.rangeAlgorithm,\n filterFacetCount: this.filterFacetCount,\n injectionDepth: this.injectionDepth,\n },\n });\n\n return this.facetForInput;\n }\n\n private initializeFacetForRange() {\n if (this.numberOfValues <= 0) {\n return;\n }\n\n this.manualRanges = Array.from(\n this.host.querySelectorAll('atomic-numeric-range')\n ).map(({start, end, endInclusive, label}) => ({\n ...buildInsightNumericRange({start, end, endInclusive}),\n label,\n }));\n\n this.facetForRange = buildInsightNumericFacet(this.bindings.engine, {\n options: {\n facetId: this.facetId,\n field: this.field,\n numberOfValues: this.numberOfValues,\n sortCriteria: this.sortCriteria,\n rangeAlgorithm: this.rangeAlgorithm,\n currentValues: this.manualRanges,\n generateAutomaticRanges: !this.manualRanges.length,\n filterFacetCount: this.filterFacetCount,\n injectionDepth: this.injectionDepth,\n },\n });\n\n return this.facetForRange;\n }\n\n private initializeFilter() {\n if (!this.withInput) {\n return;\n }\n\n this.filter = buildInsightNumericFilter(this.bindings.engine, {\n options: {\n facetId: `${this.facetId}_input`,\n field: this.field,\n },\n });\n }\n\n private initializeDependenciesManager() {\n this.dependenciesManager = buildInsightFacetConditionsManager(\n this.bindings.engine,\n {\n facetId:\n this.facetForRange?.state.facetId ?? this.filter!.state.facetId,\n conditions: parseDependsOn<\n InsightFacetValueRequest | InsightCategoryFacetValueRequest\n >(this.dependsOn),\n }\n );\n }\n\n private initializeSearchStatus() {\n this.searchStatus = buildInsightSearchStatus(this.bindings.engine);\n }\n\n private registerFacetToStore() {\n const facetInfo: FacetInfo = {\n label: () => this.bindings.i18n.t(this.label),\n facetId: this.facetId!,\n element: this.host,\n isHidden: () => this.isHidden,\n };\n\n this.bindings.store.registerFacet('numericFacets', {\n ...facetInfo,\n format: (value) =>\n formatHumanReadable({\n facetValue: value,\n logger: this.bindings.engine.logger,\n i18n: this.bindings.i18n,\n field: this.field,\n manualRanges: this.manualRanges,\n formatter: this.formatter,\n }),\n });\n\n initializePopover(this.host, {\n ...facetInfo,\n hasValues: () => this.hasValues,\n numberOfActiveValues: () => this.numberOfSelectedValues,\n });\n\n if (this.filter) {\n this.bindings.store.state.numericFacets[this.filter.state.facetId] =\n this.bindings.store.state.numericFacets[this.facetId!];\n }\n }\n\n @Listen('atomic/numberFormat')\n public setFormat(event: CustomEvent<NumberFormatter>) {\n event.preventDefault();\n event.stopPropagation();\n this.formatter = event.detail;\n }\n\n @Listen('atomic/numberInputApply')\n public applyNumberInput() {\n this.facetId &&\n this.bindings.engine.dispatch(\n loadInsightNumericFacetSetActions(\n this.bindings.engine\n ).deselectAllNumericFacetValues(this.facetId)\n );\n }\n\n public render() {\n const {\n searchStatusState: {firstSearchExecuted, hasError},\n bindings: {i18n},\n label,\n numberOfSelectedValues,\n isCollapsed,\n headingLevel,\n focusTarget,\n withInput,\n filter,\n } = this;\n return (\n <FacetGuard\n enabled={this.enabled}\n firstSearchExecuted={firstSearchExecuted}\n hasError={hasError}\n hasResults={this.shouldRenderFacet}\n >\n {firstSearchExecuted ? (\n <FacetContainer>\n <FacetHeader\n i18n={i18n}\n label={label}\n onClearFilters={() => {\n focusTarget.focusAfterSearch();\n if (this.filterState?.range) {\n this.filter?.clear();\n return;\n }\n this.facetForRange?.deselectAll();\n }}\n numberOfActiveValues={numberOfSelectedValues}\n isCollapsed={isCollapsed}\n headingLevel={headingLevel}\n onToggleCollapse={() => (this.isCollapsed = !this.isCollapsed)}\n headerRef={(el) => focusTarget.setTarget(el)}\n />\n {!isCollapsed && [\n this.shouldRenderValues && this.renderValues(),\n this.shouldRenderInput && (\n <atomic-facet-number-input\n type={withInput!}\n bindings={this.bindings}\n label={label}\n filter={filter!}\n filterState={filter!.state}\n ></atomic-facet-number-input>\n ),\n ]}\n </FacetContainer>\n ) : (\n <FacetPlaceholder\n isCollapsed={this.isCollapsed}\n numberOfValues={this.numberOfValues}\n />\n )}\n </FacetGuard>\n );\n }\n\n private renderValues() {\n const {\n displayValuesAs,\n field,\n manualRanges,\n label,\n bindings: {\n i18n,\n engine: {logger},\n },\n } = this;\n\n return (\n <NumericFacetValuesContainer i18n={i18n} label={label}>\n {this.valuesToRender.map((value) => (\n <NumericFacetValueLink\n formatter={this.formatter}\n displayValuesAs={displayValuesAs}\n facetValue={value}\n field={field}\n i18n={i18n}\n logger={logger}\n manualRanges={manualRanges}\n onClick={() =>\n this.displayValuesAs === 'link'\n ? this.facetForRange!.toggleSingleSelect(value)\n : this.facetForRange!.toggleSelect(value)\n }\n />\n ))}\n </NumericFacetValuesContainer>\n );\n }\n\n private get numberOfSelectedValues() {\n if (this.filter?.state.range) {\n return 1;\n }\n\n return (\n this.facetForRange?.state.values.filter(({state}) => state === 'selected')\n .length || 0\n );\n }\n\n private get shouldRenderValues() {\n return (\n !this.hasInputRange &&\n this.numberOfValues > 0 &&\n !!this.valuesToRender.length\n );\n }\n\n private get hasInputRange() {\n return !!this.filter?.state.range;\n }\n\n private get valuesToRender() {\n return (\n this.facetForRange?.state.values.filter(\n (value) => value.numberOfResults || value.state !== 'idle'\n ) || []\n );\n }\n\n private get shouldRenderInput() {\n return shouldDisplayInputForFacetRange({\n hasInputRange: this.hasInputRange,\n searchStatusState: this.searchStatusState,\n facetValues: this.facetForInput?.state.values || [],\n hasInput: !!this.withInput,\n });\n }\n\n private computeFacetId() {\n if (this.facetId) {\n return;\n }\n\n if (this.bindings.store.state.numericFacets[this.field]) {\n this.facetId = randomID(`${this.field}_`);\n }\n\n this.facetId = this.field;\n }\n\n private get isHidden() {\n return !this.shouldRenderFacet || !this.facetState.enabled;\n }\n\n private get shouldRenderFacet() {\n return this.shouldRenderInput || this.shouldRenderValues;\n }\n\n private get hasValues() {\n if (this.facetForInput?.state.values.length) {\n return true;\n }\n\n return !!this.valuesToRender.length;\n }\n\n private get enabled() {\n return this.facetState?.enabled ?? this.filter?.state.enabled ?? true;\n }\n\n private validateProps() {\n new Schema({\n displayValuesAs: new StringValue({constrainTo: ['checkbox', 'link']}),\n withInput: new StringValue({constrainTo: ['integer', 'decimal']}),\n }).validate({\n displayValuesAs: this.displayValuesAs,\n withInput: this.withInput,\n });\n }\n}\n"],"version":3}
@@ -57,15 +57,15 @@ const AtomicInsightPager = class {
57
57
  this.scrollToTopEvent.emit();
58
58
  }
59
59
  render() {
60
- return (index.h(index.Host, { key: 'b1322f38ffddc548e489d1f855d28bb6ff393cc7' }, index.h(stencilPagerNavigation.PagerNavigation, { key: 'cd1a9e8c02badcd228d70e4a0120801e3b8465b3', i18n: this.bindings.i18n }, index.h(stencilPagerNavigation.PagerPreviousButton, { key: '3e18e5c1bd7f6f150139eeaeb2c747cece7756c0', icon: arrowLeftRounded.ArrowLeftIcon, disabled: !this.pagerState.hasPreviousPage, i18n: this.bindings.i18n, onClick: () => {
60
+ return (index.h(index.Host, { key: '6a5e4fdd9560f6b3682429d0bd182d80add6c455' }, index.h(stencilPagerNavigation.PagerNavigation, { key: 'f9ae0d5bd500acaf5d74d475030e40176cb9832e', i18n: this.bindings.i18n }, index.h(stencilPagerNavigation.PagerPreviousButton, { key: '8223e6e8e07d110470838d40c4c6b8e71509634d', icon: arrowLeftRounded.ArrowLeftIcon, disabled: !this.pagerState.hasPreviousPage, i18n: this.bindings.i18n, onClick: () => {
61
61
  this.pager.previousPage();
62
62
  this.focusOnFirstResultAndScrollToTop();
63
- } }), index.h(stencilPagerNavigation.PagerPageButtons, { key: '31bd65d83e00cbad05a40ff53b964a1fdb62d6f8', i18n: this.bindings.i18n }, this.pagerState.currentPages.map((pageNumber) => {
63
+ } }), index.h(stencilPagerNavigation.PagerPageButtons, { key: '0b14ce9e4807ada6dc3b0eca4a2d98d6560cc595', i18n: this.bindings.i18n }, this.pagerState.currentPages.map((pageNumber) => {
64
64
  return (index.h(stencilPagerNavigation.PagerPageButton, { isSelected: this.pager.isCurrentPage(pageNumber), ariaLabel: this.bindings.i18n.t('page-number', { pageNumber }), onChecked: () => {
65
65
  this.pager.selectPage(pageNumber);
66
66
  this.focusOnFirstResultAndScrollToTop();
67
67
  }, page: pageNumber, groupName: this.radioGroupName, text: pageNumber.toLocaleString(this.bindings.i18n.language) }));
68
- })), index.h(stencilPagerNavigation.PagerNextButton, { key: 'fb64237dff6f55bc7d5ce212097a05736d1db8a4', icon: arrowRightRounded.ArrowRightIcon, disabled: !this.pagerState.hasNextPage, i18n: this.bindings.i18n, onClick: () => {
68
+ })), index.h(stencilPagerNavigation.PagerNextButton, { key: '41137d3a0f3ead187a8284e715e463477597f7ed', icon: arrowRightRounded.ArrowRightIcon, disabled: !this.pagerState.hasNextPage, i18n: this.bindings.i18n, onClick: () => {
69
69
  this.pager.nextPage();
70
70
  this.focusOnFirstResultAndScrollToTop();
71
71
  } }))));
@@ -48,7 +48,7 @@ const AtomicQueryError = class {
48
48
  if (hasError) {
49
49
  this.ariaMessage = stencilLink.getAriaMessageFromErrorType(i18n, organizationId, url, error?.type);
50
50
  }
51
- return (index.h(stencilLink.QueryErrorGuard, { key: '18dc2e83185dd0820b1a3c59a09de6dbca32505d', hasError: hasError }, index.h(stencilLink.QueryErrorContainer, { key: '205f102a865c6d6d0c8306f9fc30bfa62652d80f' }, index.h(stencilLink.QueryErrorIcon, { key: '486d1d6784b26fb722758e8e7ee9facbc719fec1', errorType: error?.type }), index.h(stencilLink.QueryErrorTitle, { key: '4f7ec033db523fab12d6c43680d51dd4bc8ce487', i18n: i18n, organizationId: organizationId }), index.h(stencilLink.QueryErrorDescription, { key: 'd2e1f142a3df55578dd8b41fad93065578ccde23', i18n: i18n, organizationId: organizationId, url: url }), index.h(stencilLink.QueryErrorShowMore, { key: '14bfc75c18e46f3231c8144c3093b12c3ccb9896', link: index.h(stencilLink.QueryErrorLink, { i18n: i18n, errorType: error?.type }), onShowMore: () => (this.showMoreInfo = !this.showMoreInfo), i18n: i18n }), index.h(stencilLink.QueryErrorDetails, { key: '0d13ac67caee0ff6621ce62011c9634cf3d68dfd', error: error, show: this.showMoreInfo }))));
51
+ return (index.h(stencilLink.QueryErrorGuard, { key: '8af2d0b5363c49da69717eb19b94aa192605d7d4', hasError: hasError }, index.h(stencilLink.QueryErrorContainer, { key: 'b30f7d3eab39949e9fe7ec20eaea8ed753c2e13c' }, index.h(stencilLink.QueryErrorIcon, { key: 'ae4257070ab6e725a021befeba47ad25bba700ea', errorType: error?.type }), index.h(stencilLink.QueryErrorTitle, { key: 'd1c5c80675ae45274edce0af7dfbd31277c7e8d4', i18n: i18n, organizationId: organizationId }), index.h(stencilLink.QueryErrorDescription, { key: 'a4cb70c757651504ad385fb2f681f5b4ce4fe5c1', i18n: i18n, organizationId: organizationId, url: url }), index.h(stencilLink.QueryErrorShowMore, { key: '7ae6bf0ae3fd62f92f438f27ab1ba4f884b1d907', link: index.h(stencilLink.QueryErrorLink, { i18n: i18n, errorType: error?.type }), onShowMore: () => (this.showMoreInfo = !this.showMoreInfo), i18n: i18n }), index.h(stencilLink.QueryErrorDetails, { key: 'c873692834f00076666997c2a8edc8915f6a5f0e', error: error, show: this.showMoreInfo }))));
52
52
  }
53
53
  };
54
54
  __decorate([
@@ -86,12 +86,12 @@ const AtomicInsightRefineModal = class {
86
86
  return (index.h("aside", { slot: "body", class: "flex flex-col w-full" }, this.renderHeader(), index.h("slot", { name: "facets" })));
87
87
  }
88
88
  render() {
89
- return (index.h(index.Host, { key: '572005258b9ca0b03f2d3695c2cf34b19230ae1b' }, this.interfaceDimensions && (index.h("style", { key: 'bca809425a5a1fc7a65e5c876504bdde23c64136' }, `atomic-modal::part(backdrop) {
89
+ return (index.h(index.Host, { key: '8d6adab844579e6d2d15940053b87caa6ca8c26e' }, this.interfaceDimensions && (index.h("style", { key: '5811d8db4f304e47ef3b411601c3fc006f3748f7' }, `atomic-modal::part(backdrop) {
90
90
  top: ${this.interfaceDimensions.top}px;
91
91
  left: ${this.interfaceDimensions.left}px;
92
92
  width: ${this.interfaceDimensions.width}px;
93
93
  height: ${this.interfaceDimensions.height}px;
94
- }`)), index.h(stencilModal.RefineModal, { key: '03ca226e506ae944c32abb88cb461c89c452580a', i18n: this.bindings.i18n, host: this.host, isOpen: this.isOpen, onClose: () => (this.isOpen = false), numberOfItems: this.querySummaryState.total, title: this.bindings.i18n.t('filters'), openButton: this.openButton, scope: this.bindings.interfaceElement }, this.renderBody())));
94
+ }`)), index.h(stencilModal.RefineModal, { key: 'c178d933ae152421101b0be085457a782a8bbb97', i18n: this.bindings.i18n, host: this.host, isOpen: this.isOpen, onClose: () => (this.isOpen = false), numberOfItems: this.querySummaryState.total, title: this.bindings.i18n.t('filters'), openButton: this.openButton, scope: this.bindings.interfaceElement }, this.renderBody())));
95
95
  }
96
96
  componentDidLoad() {
97
97
  this.host.style.display = '';
@@ -59,7 +59,7 @@ const AtomicInsightRefineToggle = class {
59
59
  this.modalRef.openButton = this.buttonRef;
60
60
  }
61
61
  render() {
62
- return (index.h(stencilIconButton.IconButton, { key: 'a597455f34f5b2bfb08dba34ac180a65d67b3c3b', partPrefix: "insight-refine-toggle", style: "outline-neutral", title: this.bindings.i18n.t('filters'), icon: filter.FilterIcon, disabled: !this.searchStatusState.hasResults && !this.numberOfBreadcrumbs, ariaLabel: this.bindings.i18n.t('sort'), onClick: () => {
62
+ return (index.h(stencilIconButton.IconButton, { key: '5bd279fef4524a59c396c5746349c45da1da89d5', partPrefix: "insight-refine-toggle", style: "outline-neutral", title: this.bindings.i18n.t('filters'), icon: filter.FilterIcon, disabled: !this.searchStatusState.hasResults && !this.numberOfBreadcrumbs, ariaLabel: this.bindings.i18n.t('sort'), onClick: () => {
63
63
  this.bindings.store.waitUntilAppLoaded(() => {
64
64
  this.enableModal();
65
65
  });
@@ -8,7 +8,7 @@ const attach = require('./attach-19283bec.js');
8
8
  const preview = require('./preview-8eebe5d5.js');
9
9
  const initializationUtils = require('./initialization-utils-92f1b080.js');
10
10
  const stencilIconButton = require('./stencil-iconButton-738b1548.js');
11
- const resultTemplateDecorators = require('./result-template-decorators-432d11a9.js');
11
+ const stencilResultTemplateDecorators = require('./stencil-result-template-decorators-28b05aaf.js');
12
12
  require('./dom-utils-d4790328.js');
13
13
  require('./event-utils-9bfcf3c5.js');
14
14
  require('./init-queue-a18aa323.js');
@@ -124,14 +124,14 @@ const AtomicInsightResultAction = class {
124
124
  }
125
125
  }
126
126
  render() {
127
- return (index.h(stencilIconButton.IconButton, { key: '5bfc0b93f8fe44cfebbf937610cfe9c23d12f8bb', partPrefix: "result-action", style: "outline-neutral", icon: this.getIcon(), title: this.tooltip, onClick: () => this.onClick() }));
127
+ return (index.h(stencilIconButton.IconButton, { key: '5e9ee2895008284cb24c88cdd23c3229c70934b7', partPrefix: "result-action", style: "outline-neutral", icon: this.getIcon(), title: this.tooltip, onClick: () => this.onClick() }));
128
128
  }
129
129
  };
130
130
  __decorate([
131
131
  initializationUtils.InitializeBindings()
132
132
  ], AtomicInsightResultAction.prototype, "bindings", void 0);
133
133
  __decorate([
134
- resultTemplateDecorators.ResultContext()
134
+ stencilResultTemplateDecorators.ResultContext()
135
135
  ], AtomicInsightResultAction.prototype, "result", void 0);
136
136
  AtomicInsightResultAction.style = AtomicInsightResultActionStyle0;
137
137
 
@@ -1 +1 @@
1
- {"file":"atomic-insight-result-action.entry.cjs.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAM,4BAA4B,GAAG,k1jEAAk1jE,CAAC;AACx3jE,wCAAe,4BAA4B;;;;;;;;;;;;ACuB3C,IAAY,OAMX;AAND,WAAY,OAAO;IACjB,8CAAmC,CAAA;IACnC,wCAA6B,CAAA;IAC7B,kCAAuB,CAAA;IACvB,oCAAyB,CAAA;IACzB,sCAA2B,CAAA;AAC7B,CAAC,EANW,OAAO,KAAP,OAAO,QAMlB;MASY,yBAAyB;;;;;;;QAkBN,SAAI,GAAG,EAAE,CAAC;;;;QAKV,YAAO,GAAG,EAAE,CAAC;;;;QAKb,mBAAc,GAAG,EAAE,CAAC;;;;QAKpB,WAAM,GAAqB,EAAE,CAAC;;oBAfvB,EAAE;uBAKC,EAAE;8BAKK,EAAE;sBAKQ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AClB;QAED,QAAQ,IAAI,CAAC,MAAM;YACjB,KAAK,OAAO,CAAC,eAAe;gBAC1B,OAAO,QAAQ,CAAC;YAClB,KAAK,OAAO,CAAC,YAAY;gBACvB,OAAOC,iBAAU,CAAC;YACpB,KAAK,OAAO,CAAC,SAAS;gBACpB,OAAOC,qBAAa,CAAC;YACvB,KAAK,OAAO,CAAC,UAAU;gBACrB,OAAO,QAAQ,CAAC;YAClB,KAAK,OAAO,CAAC,WAAW;gBACtB,OAAO,SAAS,CAAC;YACnB;gBACE,OAAOA,qBAAa,CAAC;SACxB;KACF;IAEM,MAAM;QACX,QACEC,QAACC,4BAAU,qDACT,UAAU,EAAC,eAAe,EAC1B,KAAK,EAAC,iBAAiB,EACvB,IAAI,EAAE,IAAI,CAAC,OAAO,EAAE,EACpB,KAAK,EAAE,IAAI,CAAC,OAAO,EACnB,OAAO,EAAE,MAAM,IAAI,CAAC,OAAO,EAAE,GAC7B,EACF;KACH;;AApG4B;IAA5BC,sCAAkB,EAAE;2DAAmC;AAC/B;IAAxBC,sCAAa,EAAE;yDAAyB;;;;;","names":["loadInsightAnalyticsActions","AttachIcon","QuickviewIcon","h","IconButton","InitializeBindings","ResultContext"],"sources":["src/components/insight/atomic-insight-result-action/atomic-insight-result-action.pcss?tag=atomic-insight-result-action","src/components/insight/atomic-insight-result-action/atomic-insight-result-action.tsx"],"sourcesContent":["@import '../../../global/global.pcss';\n\n:host {\n &::part(result-action-button) {\n @apply flex items-center justify-center;\n @apply h-8 w-8;\n }\n}\n","import {Result} from '@coveo/headless';\nimport {\n InsightAnalyticsActionCreators,\n loadInsightAnalyticsActions,\n} from '@coveo/headless/insight';\nimport {Component, Event, EventEmitter, Prop, State, h} from '@stencil/core';\nimport AttachIcon from '../../../images/attach.svg';\nimport CopyIcon from '../../../images/copy-dark.svg';\nimport EmailIcon from '../../../images/email.svg';\nimport QuickviewIcon from '../../../images/preview.svg';\nimport FeedIcon from '../../../images/share-post.svg';\nimport {\n InitializableComponent,\n InitializeBindings,\n} from '../../../utils/initialization-utils';\nimport {IconButton} from '../../common/stencil-iconButton';\nimport {ResultContext} from '../../search/result-template-components/result-template-decorators';\nimport {InsightBindings} from '../atomic-insight-interface/atomic-insight-interface';\n\nexport interface InsightResultActionClickedEvent {\n action: string;\n result: Result;\n}\n\nexport enum Actions {\n CopyToClipboard = 'copyToClipboard',\n AttachToCase = 'attachToCase',\n Quickview = 'quickview',\n PostToFeed = 'postToFeed',\n SendAsEmail = 'sendAsEmail',\n}\n\n/**\n * @internal\n */\n@Component({\n tag: 'atomic-insight-result-action',\n styleUrl: 'atomic-insight-result-action.pcss',\n})\nexport class AtomicInsightResultAction\n implements InitializableComponent<InsightBindings>\n{\n @InitializeBindings() public bindings!: InsightBindings;\n @ResultContext() private result!: Result;\n @State() public error!: Error;\n\n @Event({\n eventName: 'atomicInsightResultActionClicked',\n composed: true,\n cancelable: true,\n bubbles: true,\n })\n private actionClicked!: EventEmitter<InsightResultActionClickedEvent>;\n\n /**\n * Specify the result action icon to display.\n */\n @Prop({mutable: true}) public icon = '';\n\n /**\n * The text tooltip to show on the result action icon.\n */\n @Prop({mutable: true}) public tooltip = '';\n\n /**\n * The text tooltip to show on the result action icon for some time after clicking the button.\n */\n @Prop({mutable: true}) public tooltipOnClick = '';\n\n /**\n * The type of action to perform when the result action is clicked. This will be sent along the event fired when the button is clicked.\n */\n @Prop({mutable: true}) public action: Actions | string = '';\n\n private actions!: InsightAnalyticsActionCreators;\n\n public initialize() {\n this.actions = loadInsightAnalyticsActions(this.bindings.engine);\n }\n\n private onClick() {\n if (this.tooltipOnClick) {\n const originalTooltip = this.tooltip;\n this.tooltip = this.tooltipOnClick;\n setTimeout(() => {\n this.tooltip = originalTooltip;\n }, 1000);\n }\n\n switch (this.action) {\n case Actions.CopyToClipboard:\n this.bindings.engine.dispatch(\n this.actions.logCopyToClipboard(this.result)\n );\n navigator.clipboard.writeText(this.result?.clickUri);\n break;\n case Actions.PostToFeed:\n this.bindings.engine.dispatch(\n this.actions.logFeedItemTextPost(this.result)\n );\n break;\n case Actions.SendAsEmail:\n this.bindings.engine.dispatch(\n this.actions.logCaseSendEmail(this.result)\n );\n break;\n }\n\n this.actionClicked.emit({action: this.action, result: this.result});\n }\n\n private getIcon() {\n if (this.icon) {\n return this.icon;\n }\n\n switch (this.action) {\n case Actions.CopyToClipboard:\n return CopyIcon;\n case Actions.AttachToCase:\n return AttachIcon;\n case Actions.Quickview:\n return QuickviewIcon;\n case Actions.PostToFeed:\n return FeedIcon;\n case Actions.SendAsEmail:\n return EmailIcon;\n default:\n return QuickviewIcon;\n }\n }\n\n public render() {\n return (\n <IconButton\n partPrefix=\"result-action\"\n style=\"outline-neutral\"\n icon={this.getIcon()}\n title={this.tooltip}\n onClick={() => this.onClick()}\n />\n );\n }\n}\n"],"version":3}
1
+ {"file":"atomic-insight-result-action.entry.cjs.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAM,4BAA4B,GAAG,k1jEAAk1jE,CAAC;AACx3jE,wCAAe,4BAA4B;;;;;;;;;;;;ACuB3C,IAAY,OAMX;AAND,WAAY,OAAO;IACjB,8CAAmC,CAAA;IACnC,wCAA6B,CAAA;IAC7B,kCAAuB,CAAA;IACvB,oCAAyB,CAAA;IACzB,sCAA2B,CAAA;AAC7B,CAAC,EANW,OAAO,KAAP,OAAO,QAMlB;MASY,yBAAyB;;;;;;;QAkBN,SAAI,GAAG,EAAE,CAAC;;;;QAKV,YAAO,GAAG,EAAE,CAAC;;;;QAKb,mBAAc,GAAG,EAAE,CAAC;;;;QAKpB,WAAM,GAAqB,EAAE,CAAC;;oBAfvB,EAAE;uBAKC,EAAE;8BAKK,EAAE;sBAKQ,EAAE;;IAIpD,UAAU;QACf,IAAI,CAAC,OAAO,GAAGA,mCAA2B,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;KAClE;IAEO,OAAO;QACb,IAAI,IAAI,CAAC,cAAc,EAAE;YACvB,MAA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,SAAS;gBACpB,OAAOC,qBAAa,CAAC;YACvB,KAAK,OAAO,CAAC,UAAU;gBACrB,OAAO,QAAQ,CAAC;YAClB,KAAK,OAAO,CAAC,WAAW;gBACtB,OAAO,SAAS,CAAC;YACnB;gBACE,OAAOA,qBAAa,CAAC;SACxB;KACF;IAEM,MAAM;QACX,QACEC,QAACC,4BAAU,qDACT,UAAU,EAAC,eAAe,EAC1B,KAAK,EAAC,iBAAiB,EACvB,IAAI,EAAE,IAAI,CAAC,OAAO,EAAE,EACpB,KAAK,EAAE,IAAI,CAAC,OAAO,EACnB,OAAO,EAAE,MAAM,IAAI,CAAC,OAAO,EAAE,GAC7B,EACF;KACH;;AApG4B;IAA5BC,sCAAkB,EAAE;2DAAmC;AAC/B;IAAxBC,6CAAa,EAAE;yDAAyB;;;;;","names":["loadInsightAnalyticsActions","AttachIcon","QuickviewIcon","h","IconButton","InitializeBindings","ResultContext"],"sources":["src/components/insight/atomic-insight-result-action/atomic-insight-result-action.pcss?tag=atomic-insight-result-action","src/components/insight/atomic-insight-result-action/atomic-insight-result-action.tsx"],"sourcesContent":["@import '../../../global/global.pcss';\n\n:host {\n &::part(result-action-button) {\n @apply flex items-center justify-center;\n @apply h-8 w-8;\n }\n}\n","import {Result} from '@coveo/headless';\nimport {\n InsightAnalyticsActionCreators,\n loadInsightAnalyticsActions,\n} from '@coveo/headless/insight';\nimport {Component, Event, EventEmitter, Prop, State, h} from '@stencil/core';\nimport AttachIcon from '../../../images/attach.svg';\nimport CopyIcon from '../../../images/copy-dark.svg';\nimport EmailIcon from '../../../images/email.svg';\nimport QuickviewIcon from '../../../images/preview.svg';\nimport FeedIcon from '../../../images/share-post.svg';\nimport {\n InitializableComponent,\n InitializeBindings,\n} from '../../../utils/initialization-utils';\nimport {IconButton} from '../../common/stencil-iconButton';\nimport {ResultContext} from '@/src/components/search/result-template-component-utils/context/stencil-result-template-decorators';\nimport {InsightBindings} from '../atomic-insight-interface/atomic-insight-interface';\n\nexport interface InsightResultActionClickedEvent {\n action: string;\n result: Result;\n}\n\nexport enum Actions {\n CopyToClipboard = 'copyToClipboard',\n AttachToCase = 'attachToCase',\n Quickview = 'quickview',\n PostToFeed = 'postToFeed',\n SendAsEmail = 'sendAsEmail',\n}\n\n/**\n * @internal\n */\n@Component({\n tag: 'atomic-insight-result-action',\n styleUrl: 'atomic-insight-result-action.pcss',\n})\nexport class AtomicInsightResultAction\n implements InitializableComponent<InsightBindings>\n{\n @InitializeBindings() public bindings!: InsightBindings;\n @ResultContext() private result!: Result;\n @State() public error!: Error;\n\n @Event({\n eventName: 'atomicInsightResultActionClicked',\n composed: true,\n cancelable: true,\n bubbles: true,\n })\n private actionClicked!: EventEmitter<InsightResultActionClickedEvent>;\n\n /**\n * Specify the result action icon to display.\n */\n @Prop({mutable: true}) public icon = '';\n\n /**\n * The text tooltip to show on the result action icon.\n */\n @Prop({mutable: true}) public tooltip = '';\n\n /**\n * The text tooltip to show on the result action icon for some time after clicking the button.\n */\n @Prop({mutable: true}) public tooltipOnClick = '';\n\n /**\n * The type of action to perform when the result action is clicked. This will be sent along the event fired when the button is clicked.\n */\n @Prop({mutable: true}) public action: Actions | string = '';\n\n private actions!: InsightAnalyticsActionCreators;\n\n public initialize() {\n this.actions = loadInsightAnalyticsActions(this.bindings.engine);\n }\n\n private onClick() {\n if (this.tooltipOnClick) {\n const originalTooltip = this.tooltip;\n this.tooltip = this.tooltipOnClick;\n setTimeout(() => {\n this.tooltip = originalTooltip;\n }, 1000);\n }\n\n switch (this.action) {\n case Actions.CopyToClipboard:\n this.bindings.engine.dispatch(\n this.actions.logCopyToClipboard(this.result)\n );\n navigator.clipboard.writeText(this.result?.clickUri);\n break;\n case Actions.PostToFeed:\n this.bindings.engine.dispatch(\n this.actions.logFeedItemTextPost(this.result)\n );\n break;\n case Actions.SendAsEmail:\n this.bindings.engine.dispatch(\n this.actions.logCaseSendEmail(this.result)\n );\n break;\n }\n\n this.actionClicked.emit({action: this.action, result: this.result});\n }\n\n private getIcon() {\n if (this.icon) {\n return this.icon;\n }\n\n switch (this.action) {\n case Actions.CopyToClipboard:\n return CopyIcon;\n case Actions.AttachToCase:\n return AttachIcon;\n case Actions.Quickview:\n return QuickviewIcon;\n case Actions.PostToFeed:\n return FeedIcon;\n case Actions.SendAsEmail:\n return EmailIcon;\n default:\n return QuickviewIcon;\n }\n }\n\n public render() {\n return (\n <IconButton\n partPrefix=\"result-action\"\n style=\"outline-neutral\"\n icon={this.getIcon()}\n title={this.tooltip}\n onClick={() => this.onClick()}\n />\n );\n }\n}\n"],"version":3}
@@ -7,7 +7,7 @@ const insight = require('@coveo/headless/insight');
7
7
  const attach = require('./attach-19283bec.js');
8
8
  const initializationUtils = require('./initialization-utils-92f1b080.js');
9
9
  const stencilIconButton = require('./stencil-iconButton-738b1548.js');
10
- const resultTemplateDecorators = require('./result-template-decorators-432d11a9.js');
10
+ const stencilResultTemplateDecorators = require('./stencil-result-template-decorators-28b05aaf.js');
11
11
  require('./dom-utils-d4790328.js');
12
12
  require('./event-utils-9bfcf3c5.js');
13
13
  require('./init-queue-a18aa323.js');
@@ -74,7 +74,7 @@ const AtomicInsightResultAttachToCaseAction = class {
74
74
  : this.bindings.i18n.t('attach-to-case');
75
75
  }
76
76
  render() {
77
- return (index.h(stencilIconButton.IconButton, { key: 'ebf5f45e034e5f915ea989983c0524a64cde7828', partPrefix: "result-action", style: "outline-neutral", icon: this.getIcon(), title: this.getTooltip(), onClick: () => this.onClick() }));
77
+ return (index.h(stencilIconButton.IconButton, { key: 'e84f0bcfd388fc816bae9371a2e54d12e91ae096', partPrefix: "result-action", style: "outline-neutral", icon: this.getIcon(), title: this.getTooltip(), onClick: () => this.onClick() }));
78
78
  }
79
79
  get host() { return index.getElement(this); }
80
80
  };
@@ -82,7 +82,7 @@ __decorate([
82
82
  initializationUtils.InitializeBindings()
83
83
  ], AtomicInsightResultAttachToCaseAction.prototype, "bindings", void 0);
84
84
  __decorate([
85
- resultTemplateDecorators.ResultContext()
85
+ stencilResultTemplateDecorators.ResultContext()
86
86
  ], AtomicInsightResultAttachToCaseAction.prototype, "result", void 0);
87
87
  __decorate([
88
88
  initializationUtils.BindStateToController('attachToCase')
@@ -1 +1 @@
1
- {"file":"atomic-insight-result-attach-to-case-action.entry.cjs.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAM,wCAAwC,GAAG,yqjEAAyqjE,CAAC;AAC3tjE,oDAAe,wCAAwC;;;;;;;;;;;;MC4B1C,qCAAqC;;;;;;;;IA+BzC,UAAU;QACf,MAAM,MAAM,GACV,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,kBAAkB,EAAE,MAAM,IAAI,EAAE,CAAC;QAC9D,IAAI,CAAC,YAAY,GAAGA,yBAAiB,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE;YAC1D,OAAO,EAAE;gBACP,MAAM,EAAE,IAAI,CAAC,MAAM;gBACnB,MAAM,EAAE,MAAM;aACf;SACF,CAAC,CAAC;KACJ;IAEO,OAAO;QACb,IAAI,IAAI,CAAC,YAAY,CAAC,UAAU,EAAE,EAAE;YAClC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC;gBACf,QAAQ,EAAE,IAAI,CAAC,YAAY,CAAC,MAAM;gBAClC,MAAM,EAAE,IAAI,CAAC,MAAM;aACpB,CAAC,CAAC;SACJ;aAAM;YACL,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC;gBACf,QAAQ,EAAE,IAAI,CAAC,YAAY,CAAC,MAAM;gBAClC,MAAM,EAAE,IAAI,CAAC,MAAM;aACpB,CAAC,CAAC;SACJ;KACF;IAEO,OAAO;QACb,OAAO,IAAI,CAAC,YAAY,CAAC,UAAU,EAAE,GAAG,UAAU,GAAGC,iBAAU,CAAC;KACjE;IAEO,UAAU;QAChB,OAAO,IAAI,CAAC,YAAY,CAAC,UAAU,EAAE;cACjC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,kBAAkB,CAAC;cACxC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC;KAC5C;IAEM,MAAM;QACX,QACEC,QAACC,4BAAU,qDACT,UAAU,EAAC,eAAe,EAC1B,KAAK,EAAC,iBAAiB,EACvB,IAAI,EAAE,IAAI,CAAC,OAAO,EAAE,EACpB,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,EACxB,OAAO,EAAE,MAAM,IAAI,CAAC,OAAO,EAAE,GAC7B,EACF;KACH;;;AAzE4B;IAA5BC,sCAAkB,EAAE;uEAAmC;AAC/B;IAAxBC,sCAAa,EAAE;qEAAyB;AASlC;IAFNC,yCAAqB,CAAC,cAAc,CAAC;gFAER;;;;;","names":["buildAttachToCase","AttachIcon","h","IconButton","InitializeBindings","ResultContext","BindStateToController"],"sources":["src/components/insight/atomic-insight-result-attach-to-case-action/atomic-insight-result-attach-to-case-action.pcss?tag=atomic-insight-result-attach-to-case-action","src/components/insight/atomic-insight-result-attach-to-case-action/atomic-insight-result-attach-to-case-action.tsx"],"sourcesContent":["@import '../../../global/global.pcss';\n","import {AttachToCase, buildAttachToCase, Result} from '@coveo/headless/insight';\nimport {Component, Event, State, h, Element, EventEmitter} from '@stencil/core';\nimport AttachIcon from '../../../images/attach.svg';\nimport DetachIcon from '../../../images/detach.svg';\nimport {\n BindStateToController,\n InitializableComponent,\n InitializeBindings,\n} from '../../../utils/initialization-utils';\nimport {IconButton} from '../../common/stencil-iconButton';\nimport {ResultContext} from '../../search/result-template-components/result-template-decorators';\nimport {InsightBindings} from '../atomic-insight-interface/atomic-insight-interface';\n\nexport interface InsightResultAttachToCaseEvent {\n callback: () => void;\n result: Result;\n}\n/**\n * @internal\n * The `atomic-insight-result-attach-to-case-action` component can be nested inside a `atomic-insight-result-actions` to render an interactive button that will emit an `atomic/insight/attachToCase/attach` or `atomic/insight/attachToCase/detach` JavaScript event, based on its current state, when clicked.\n *\n * @part result-action-container - The result action container\n * @part result-action-button - The result action button\n * @part result-action-icon - The result action icon\n */\n@Component({\n tag: 'atomic-insight-result-attach-to-case-action',\n styleUrl: 'atomic-insight-result-attach-to-case-action.pcss',\n})\nexport class AtomicInsightResultAttachToCaseAction\n implements InitializableComponent<InsightBindings>\n{\n @InitializeBindings() public bindings!: InsightBindings;\n @ResultContext() private result!: Result;\n\n @Element() host!: HTMLElement;\n @State() public error!: Error;\n\n public attachToCase!: AttachToCase;\n\n @BindStateToController('attachToCase')\n @State()\n public attachToCaseState!: {};\n\n @Event({\n eventName: 'atomic/insight/attachToCase/attach',\n composed: true,\n cancelable: true,\n bubbles: true,\n })\n private attach!: EventEmitter<InsightResultAttachToCaseEvent>;\n\n @Event({\n eventName: 'atomic/insight/attachToCase/detach',\n composed: true,\n cancelable: true,\n bubbles: true,\n })\n private detach!: EventEmitter<InsightResultAttachToCaseEvent>;\n\n public initialize() {\n const caseId: string =\n this.bindings.engine.state.insightCaseContext?.caseId || '';\n this.attachToCase = buildAttachToCase(this.bindings.engine, {\n options: {\n result: this.result,\n caseId: caseId,\n },\n });\n }\n\n private onClick() {\n if (this.attachToCase.isAttached()) {\n this.detach.emit({\n callback: this.attachToCase.detach,\n result: this.result,\n });\n } else {\n this.attach.emit({\n callback: this.attachToCase.attach,\n result: this.result,\n });\n }\n }\n\n private getIcon() {\n return this.attachToCase.isAttached() ? DetachIcon : AttachIcon;\n }\n\n private getTooltip() {\n return this.attachToCase.isAttached()\n ? this.bindings.i18n.t('detach-from-case')\n : this.bindings.i18n.t('attach-to-case');\n }\n\n public render() {\n return (\n <IconButton\n partPrefix=\"result-action\"\n style=\"outline-neutral\"\n icon={this.getIcon()}\n title={this.getTooltip()}\n onClick={() => this.onClick()}\n />\n );\n }\n}\n"],"version":3}
1
+ {"file":"atomic-insight-result-attach-to-case-action.entry.cjs.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAM,wCAAwC,GAAG,yqjEAAyqjE,CAAC;AAC3tjE,oDAAe,wCAAwC;;;;;;;;;;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AAI,CAAC,OAAO,EAAE,GAC7B,EACF;KACH;;;AAzE4B;IAA5BC,sCAAkB,EAAE;uEAAmC;AAC/B;IAAxBC,6CAAa,EAAE;qEAAyB;AASlC;IAFNC,yCAAqB,CAAC,cAAc,CAAC;gFAER;;;;;","names":["buildAttachToCase","AttachIcon","h","IconButton","InitializeBindings","ResultContext","BindStateToController"],"sources":["src/components/insight/atomic-insight-result-attach-to-case-action/atomic-insight-result-attach-to-case-action.pcss?tag=atomic-insight-result-attach-to-case-action","src/components/insight/atomic-insight-result-attach-to-case-action/atomic-insight-result-attach-to-case-action.tsx"],"sourcesContent":["@import '../../../global/global.pcss';\n","import {AttachToCase, buildAttachToCase, Result} from '@coveo/headless/insight';\nimport {Component, Event, State, h, Element, EventEmitter} from '@stencil/core';\nimport AttachIcon from '../../../images/attach.svg';\nimport DetachIcon from '../../../images/detach.svg';\nimport {\n BindStateToController,\n InitializableComponent,\n InitializeBindings,\n} from '../../../utils/initialization-utils';\nimport {IconButton} from '../../common/stencil-iconButton';\nimport {ResultContext} from '@/src/components/search/result-template-component-utils/context/stencil-result-template-decorators';\nimport {InsightBindings} from '../atomic-insight-interface/atomic-insight-interface';\n\nexport interface InsightResultAttachToCaseEvent {\n callback: () => void;\n result: Result;\n}\n/**\n * @internal\n * The `atomic-insight-result-attach-to-case-action` component can be nested inside a `atomic-insight-result-actions` to render an interactive button that will emit an `atomic/insight/attachToCase/attach` or `atomic/insight/attachToCase/detach` JavaScript event, based on its current state, when clicked.\n *\n * @part result-action-container - The result action container\n * @part result-action-button - The result action button\n * @part result-action-icon - The result action icon\n */\n@Component({\n tag: 'atomic-insight-result-attach-to-case-action',\n styleUrl: 'atomic-insight-result-attach-to-case-action.pcss',\n})\nexport class AtomicInsightResultAttachToCaseAction\n implements InitializableComponent<InsightBindings>\n{\n @InitializeBindings() public bindings!: InsightBindings;\n @ResultContext() private result!: Result;\n\n @Element() host!: HTMLElement;\n @State() public error!: Error;\n\n public attachToCase!: AttachToCase;\n\n @BindStateToController('attachToCase')\n @State()\n public attachToCaseState!: {};\n\n @Event({\n eventName: 'atomic/insight/attachToCase/attach',\n composed: true,\n cancelable: true,\n bubbles: true,\n })\n private attach!: EventEmitter<InsightResultAttachToCaseEvent>;\n\n @Event({\n eventName: 'atomic/insight/attachToCase/detach',\n composed: true,\n cancelable: true,\n bubbles: true,\n })\n private detach!: EventEmitter<InsightResultAttachToCaseEvent>;\n\n public initialize() {\n const caseId: string =\n this.bindings.engine.state.insightCaseContext?.caseId || '';\n this.attachToCase = buildAttachToCase(this.bindings.engine, {\n options: {\n result: this.result,\n caseId: caseId,\n },\n });\n }\n\n private onClick() {\n if (this.attachToCase.isAttached()) {\n this.detach.emit({\n callback: this.attachToCase.detach,\n result: this.result,\n });\n } else {\n this.attach.emit({\n callback: this.attachToCase.attach,\n result: this.result,\n });\n }\n }\n\n private getIcon() {\n return this.attachToCase.isAttached() ? DetachIcon : AttachIcon;\n }\n\n private getTooltip() {\n return this.attachToCase.isAttached()\n ? this.bindings.i18n.t('detach-from-case')\n : this.bindings.i18n.t('attach-to-case');\n }\n\n public render() {\n return (\n <IconButton\n partPrefix=\"result-action\"\n style=\"outline-neutral\"\n icon={this.getIcon()}\n title={this.getTooltip()}\n onClick={() => this.onClick()}\n />\n );\n }\n}\n"],"version":3}
@@ -6,7 +6,7 @@ const index = require('./index-757bc886.js');
6
6
  const insight = require('@coveo/headless/insight');
7
7
  const attach = require('./attach-19283bec.js');
8
8
  const initializationUtils = require('./initialization-utils-92f1b080.js');
9
- const resultTemplateDecorators = require('./result-template-decorators-432d11a9.js');
9
+ const stencilResultTemplateDecorators = require('./stencil-result-template-decorators-28b05aaf.js');
10
10
  require('./dom-utils-d4790328.js');
11
11
  require('./event-utils-9bfcf3c5.js');
12
12
  require('./init-queue-a18aa323.js');
@@ -43,7 +43,7 @@ const AtomicInsightResultAttachToCaseIndicator = class {
43
43
  }
44
44
  render() {
45
45
  if (this.attachToCase.isAttached()) {
46
- return (index.h("atomic-icon", { key: 'f5a9c8ef641335fd25e885cb7c2bc78abf40e084', part: "icon", class: "flex w-5 justify-center", icon: attach.AttachIcon, title: this.bindings.i18n.t('result-is-attached') }));
46
+ return (index.h("atomic-icon", { key: '68c56872abd73cc85d91cad9a925ce23510bc898', part: "icon", class: "flex w-5 justify-center", icon: attach.AttachIcon, title: this.bindings.i18n.t('result-is-attached') }));
47
47
  }
48
48
  }
49
49
  get host() { return index.getElement(this); }
@@ -52,7 +52,7 @@ __decorate([
52
52
  initializationUtils.InitializeBindings()
53
53
  ], AtomicInsightResultAttachToCaseIndicator.prototype, "bindings", void 0);
54
54
  __decorate([
55
- resultTemplateDecorators.ResultContext()
55
+ stencilResultTemplateDecorators.ResultContext()
56
56
  ], AtomicInsightResultAttachToCaseIndicator.prototype, "result", void 0);
57
57
  __decorate([
58
58
  initializationUtils.BindStateToController('attachToCase')
@@ -1 +1 @@
1
- {"file":"atomic-insight-result-attach-to-case-indicator.entry.cjs.js","mappings":";;;;;;;;;;;;;;;AAAA,MAAM,2CAA2C,GAAG,yqjEAAyqjE,CAAC;AAC9tjE,uDAAe,2CAA2C;;;;;;;;;;;;MCoB7C,wCAAwC;;;;;;IAe5C,UAAU;QACf,MAAM,MAAM,GACV,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,kBAAkB,EAAE,MAAM,IAAI,EAAE,CAAC;QAC9D,IAAI,CAAC,YAAY,GAAGA,yBAAiB,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE;YAC1D,OAAO,EAAE;gBACP,MAAM,EAAE,IAAI,CAAC,MAAM;gBACnB,MAAM,EAAE,MAAM;aACf;SACF,CAAC,CAAC;KACJ;IAEM,MAAM;QACX,IAAI,IAAI,CAAC,YAAY,CAAC,UAAU,EAAE,EAAE;YAClC,QACEC,0EACE,IAAI,EAAC,MAAM,EACX,KAAK,EAAC,yBAAyB,EAC/B,IAAI,EAAEC,iBAAU,EAChB,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,oBAAoB,CAAC,GACpC,EACf;SACH;KACF;;;AAlC4B;IAA5BC,sCAAkB,EAAE;0EAAmC;AAC/B;IAAxBC,sCAAa,EAAE;wEAAyB;AASlC;IAFNC,yCAAqB,CAAC,cAAc,CAAC;mFAER;;;;;","names":["buildAttachToCase","h","AttachIcon","InitializeBindings","ResultContext","BindStateToController"],"sources":["src/components/insight/atomic-insight-result-attach-to-case-indicator/atomic-insight-result-attach-to-case-indicator.pcss?tag=atomic-insight-result-attach-to-case-indicator","src/components/insight/atomic-insight-result-attach-to-case-indicator/atomic-insight-result-attach-to-case-indicator.tsx"],"sourcesContent":["@import '../../../global/global.pcss';\n","import {AttachToCase, buildAttachToCase, Result} from '@coveo/headless/insight';\nimport {Component, State, h, Element} from '@stencil/core';\nimport AttachIcon from '../../../images/attach.svg';\nimport {\n BindStateToController,\n InitializableComponent,\n InitializeBindings,\n} from '../../../utils/initialization-utils';\nimport {ResultContext} from '../../search/result-template-components/result-template-decorators';\nimport {InsightBindings} from '../atomic-insight-interface/atomic-insight-interface';\n\n/**\n * @internal\n * The `atomic-insight-result-attach-to-case-indicator` component can be included inside a result template to indicate whether a result is attached to the current case.\n *\n * @part icon The icon that indicates whether the result is attached to the case.\n */\n@Component({\n tag: 'atomic-insight-result-attach-to-case-indicator',\n styleUrl: 'atomic-insight-result-attach-to-case-indicator.pcss',\n})\nexport class AtomicInsightResultAttachToCaseIndicator\n implements InitializableComponent<InsightBindings>\n{\n @InitializeBindings() public bindings!: InsightBindings;\n @ResultContext() private result!: Result;\n\n @Element() host!: HTMLElement;\n @State() public error!: Error;\n\n public attachToCase!: AttachToCase;\n\n @BindStateToController('attachToCase')\n @State()\n public attachToCaseState!: {};\n\n public initialize() {\n const caseId: string =\n this.bindings.engine.state.insightCaseContext?.caseId || '';\n this.attachToCase = buildAttachToCase(this.bindings.engine, {\n options: {\n result: this.result,\n caseId: caseId,\n },\n });\n }\n\n public render() {\n if (this.attachToCase.isAttached()) {\n return (\n <atomic-icon\n part=\"icon\"\n class=\"flex w-5 justify-center\"\n icon={AttachIcon}\n title={this.bindings.i18n.t('result-is-attached')}\n ></atomic-icon>\n );\n }\n }\n}\n"],"version":3}
1
+ {"file":"atomic-insight-result-attach-to-case-indicator.entry.cjs.js","mappings":";;;;;;;;;;;;;;;AAAA,MAAM,2CAA2C,GAAG,yqjEAAyqjE,CAAC;AAC9tjE,uDAAe,2CAA2C;;;;;;;;;;;;MCoB7C,wCAAwC;;;;;;IAe5C,UAAU;QACf,MAAM,MAAM,GACV,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,kBAAkB,EAAE,MAAM,IAAI,EAAE,CAAC;QAC9D,IAAI,CAAC,YAAY,GAAGA,yBAAiB,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE;YAC1D,OAAO,EAAE;gBACP,MAAM,EAAE,IAAI,CAAC,MAAM;gBACnB,MAAM,EAAE,MAAM;aACf;SACF,CAAC,CAAC;KACJ;IAEM,MAAM;QACX,IAAI,IAAI,CAAC,YAAY,CAAC,UAAU,EAAE,EAAE;YAClC,QACEC,0EACE,IAAI,EAAC,MAAM,EACX,KAAK,EAAC,yBAAyB,EAC/B,IAAI,EAAEC,iBAAU,EAChB,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,oBAAoB,CAAC,GACpC,EACf;SACH;KACF;;;AAlC4B;IAA5BC,sCAAkB,EAAE;0EAAmC;AAC/B;IAAxBC,6CAAa,EAAE;wEAAyB;AASlC;IAFNC,yCAAqB,CAAC,cAAc,CAAC;mFAER;;;;;","names":["buildAttachToCase","h","AttachIcon","InitializeBindings","ResultContext","BindStateToController"],"sources":["src/components/insight/atomic-insight-result-attach-to-case-indicator/atomic-insight-result-attach-to-case-indicator.pcss?tag=atomic-insight-result-attach-to-case-indicator","src/components/insight/atomic-insight-result-attach-to-case-indicator/atomic-insight-result-attach-to-case-indicator.tsx"],"sourcesContent":["@import '../../../global/global.pcss';\n","import {AttachToCase, buildAttachToCase, Result} from '@coveo/headless/insight';\nimport {Component, State, h, Element} from '@stencil/core';\nimport AttachIcon from '../../../images/attach.svg';\nimport {\n BindStateToController,\n InitializableComponent,\n InitializeBindings,\n} from '../../../utils/initialization-utils';\nimport {ResultContext} from '@/src/components/search/result-template-component-utils/context/stencil-result-template-decorators';\nimport {InsightBindings} from '../atomic-insight-interface/atomic-insight-interface';\n\n/**\n * @internal\n * The `atomic-insight-result-attach-to-case-indicator` component can be included inside a result template to indicate whether a result is attached to the current case.\n *\n * @part icon The icon that indicates whether the result is attached to the case.\n */\n@Component({\n tag: 'atomic-insight-result-attach-to-case-indicator',\n styleUrl: 'atomic-insight-result-attach-to-case-indicator.pcss',\n})\nexport class AtomicInsightResultAttachToCaseIndicator\n implements InitializableComponent<InsightBindings>\n{\n @InitializeBindings() public bindings!: InsightBindings;\n @ResultContext() private result!: Result;\n\n @Element() host!: HTMLElement;\n @State() public error!: Error;\n\n public attachToCase!: AttachToCase;\n\n @BindStateToController('attachToCase')\n @State()\n public attachToCaseState!: {};\n\n public initialize() {\n const caseId: string =\n this.bindings.engine.state.insightCaseContext?.caseId || '';\n this.attachToCase = buildAttachToCase(this.bindings.engine, {\n options: {\n result: this.result,\n caseId: caseId,\n },\n });\n }\n\n public render() {\n if (this.attachToCase.isAttached()) {\n return (\n <atomic-icon\n part=\"icon\"\n class=\"flex w-5 justify-center\"\n icon={AttachIcon}\n title={this.bindings.i18n.t('result-is-attached')}\n ></atomic-icon>\n );\n }\n }\n}\n"],"version":3}
@@ -132,7 +132,7 @@ const AtomicResultChildren = class {
132
132
  return (index.h(showHideButton.ChildrenWrapper, { hasChildren: children.length > 0 }, children.map((child, i) => this.renderChild(child, i === children.length - 1))));
133
133
  }
134
134
  render() {
135
- return (index.h(showHideButton.ResultChildrenGuard, { key: '373a3b5e413999083c60c826aab9d93851a8a76b', inheritTemplates: this.inheritTemplates, resultTemplateRegistered: this.resultTemplateRegistered, templateHasError: this.templateHasError }, this.collection ? this.renderCollection() : this.renderFoldedResult()));
135
+ return (index.h(showHideButton.ResultChildrenGuard, { key: '5c29b29073bd765c58f42ea2ac7fd661617b7ade', inheritTemplates: this.inheritTemplates, resultTemplateRegistered: this.resultTemplateRegistered, templateHasError: this.templateHasError }, this.collection ? this.renderCollection() : this.renderFoldedResult()));
136
136
  }
137
137
  get host() { return index.getElement(this); }
138
138
  };
@@ -115,7 +115,7 @@ const AtomicInsightResultList = class {
115
115
  render() {
116
116
  this.itemListCommon.updateBreakpoints();
117
117
  const listClasses = this.computeListDisplayClasses();
118
- return (index.h(itemListGuard.ItemListGuard, { key: '68c6de3278b153a5999e117a36938fe55b67d178', hasTemplate: this.resultTemplateRegistered, templateHasError: this.itemTemplateProvider.hasError, firstRequestExecuted: this.resultListState.firstSearchExecuted, hasItems: this.resultListState.hasResults, hasError: this.resultListState.hasError }, index.h(stencilDisplayWrapper.DisplayWrapper, { key: '088d9b3819274cebd30c17ef86664cbfc6912ca2', listClasses: listClasses, display: this.display }, index.h(stencilPlaceholders.ResultsPlaceholdersGuard, { key: '87135c73b06dbc15afbc0ca271a211e23fc10830', displayPlaceholders: !this.isAppLoaded, numberOfPlaceholders: this.resultsPerPageState.numberOfResults, display: this.display, density: this.density, imageSize: this.imageSize }), index.h(stencilDisplayWrapper.ItemDisplayGuard, { key: '022af0fc1875857d00bdef23dc68457b859fc2de', firstRequestExecuted: this.resultListState.firstSearchExecuted, hasItems: this.resultListState.hasResults }, this.resultListState.results.map((result, i) => {
118
+ return (index.h(itemListGuard.ItemListGuard, { key: '679c34952f7d2fecefa5eedcad186eebb3dade1a', hasTemplate: this.resultTemplateRegistered, templateHasError: this.itemTemplateProvider.hasError, firstRequestExecuted: this.resultListState.firstSearchExecuted, hasItems: this.resultListState.hasResults, hasError: this.resultListState.hasError }, index.h(stencilDisplayWrapper.DisplayWrapper, { key: '76cc5cd5f24857721dc064d718c1ecb6aad890bf', listClasses: listClasses, display: this.display }, index.h(stencilPlaceholders.ResultsPlaceholdersGuard, { key: 'da390bbf14b32764e6e2bfc5c2ffbd25b479495a', displayPlaceholders: !this.isAppLoaded, numberOfPlaceholders: this.resultsPerPageState.numberOfResults, display: this.display, density: this.density, imageSize: this.imageSize }), index.h(stencilDisplayWrapper.ItemDisplayGuard, { key: '056bcf747b5d2d853c467fc5e0e86c2f993e1f4d', firstRequestExecuted: this.resultListState.firstSearchExecuted, hasItems: this.resultListState.hasResults }, this.resultListState.results.map((result, i) => {
119
119
  const atomicInsightResultProps = this.getPropsForAtomicInsightResult(result);
120
120
  return (index.h("atomic-insight-result", { ...atomicInsightResultProps, part: "outline", ref: (element) => element && this.itemListCommon.setNewResultRef(element, i) }));
121
121
  })))));
@@ -9,7 +9,7 @@ const preview = require('./preview-8eebe5d5.js');
9
9
  const initializationUtils = require('./initialization-utils-92f1b080.js');
10
10
  const stencilAccessibilityUtils = require('./stencil-accessibility-utils-aa4c9f6c.js');
11
11
  const stencilIconButton = require('./stencil-iconButton-738b1548.js');
12
- const resultTemplateDecorators = require('./result-template-decorators-432d11a9.js');
12
+ const stencilResultTemplateDecorators = require('./stencil-result-template-decorators-28b05aaf.js');
13
13
  require('./dom-utils-d4790328.js');
14
14
  require('./event-utils-9bfcf3c5.js');
15
15
  require('./init-queue-a18aa323.js');
@@ -118,7 +118,7 @@ const AtomicInsightResultQuickviewAction = class {
118
118
  this.addQuickviewModalIfNeeded();
119
119
  this.updateModalContent();
120
120
  if (this.shouldRenderQuickview) {
121
- return (index.h(stencilIconButton.IconButton, { key: 'a731ecd4015b07e448f043a56246318fa06d4aa4', partPrefix: "result-action", style: "outline-neutral", ref: this.focusTarget.setTarget, icon: preview.QuickviewIcon, title: this.bindings.i18n.t('quickview'), onClick: () => this.onClick() }));
121
+ return (index.h(stencilIconButton.IconButton, { key: '55f4cece550f53beedbd5623bef2194851914759', partPrefix: "result-action", style: "outline-neutral", ref: this.focusTarget.setTarget, icon: preview.QuickviewIcon, title: this.bindings.i18n.t('quickview'), onClick: () => this.onClick() }));
122
122
  }
123
123
  }
124
124
  get host() { return index.getElement(this); }
@@ -127,7 +127,7 @@ __decorate([
127
127
  initializationUtils.InitializeBindings()
128
128
  ], AtomicInsightResultQuickviewAction.prototype, "bindings", void 0);
129
129
  __decorate([
130
- resultTemplateDecorators.ResultContext()
130
+ stencilResultTemplateDecorators.ResultContext()
131
131
  ], AtomicInsightResultQuickviewAction.prototype, "result", void 0);
132
132
  __decorate([
133
133
  initializationUtils.BindStateToController('quickview')
@@ -1 +1 @@
1
- {"file":"atomic-insight-result-quickview-action.entry.cjs.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAM,qCAAqC,GAAG,yqjEAAyqjE,CAAC;AACxtjE,iDAAe,qCAAqC;;;;;;;;;;;;MC4BvC,kCAAkC;;;;;;;;;;;;;;QA6BtC,YAAO,GAAG,qDAAqD,CAAC;;;uBAAtD,qDAAqD;;IAM/D,eAAe,CAAC,GAAU;QAC/B,GAAG,CAAC,wBAAwB,EAAE,CAAC;QAC/B,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;KACvB;IAGM,mBAAmB,CAAC,GAAU;QACnC,GAAG,CAAC,wBAAwB,EAAE,CAAC;QAC/B,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,CAAC;KAC3B;IAID,IAAW,WAAW;QACpB,IAAI,CAAC,IAAI,CAAC,iBAAiB,EAAE;YAC3B,IAAI,CAAC,iBAAiB,GAAG,IAAIA,+CAAqB,CAAC,IAAI,CAAC,CAAC;SAC1D;QACD,OAAO,IAAI,CAAC,iBAAiB,CAAC;KAC/B;IAEM,UAAU;QACf,IAAI,CAAC,SAAS,GAAGC,uBAAc,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE;YACpD,OAAO,EAAE,EAAC,MAAM,EAAE,IAAI,CAAC,MAAM,EAAC;SAC/B,CAAC,CAAC;QACH,IAAIC,YAAM,CAAC;YACT,OAAO,EAAE,I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ultContext","BindStateToController","AriaLiveRegion"],"sources":["src/components/insight/atomic-insight-result-quickview-action/atomic-insight-result-quickview-action.pcss?tag=atomic-insight-result-quickview-action","src/components/insight/atomic-insight-result-quickview-action/atomic-insight-result-quickview-action.tsx"],"sourcesContent":["@import '../../../global/global.pcss';\n","import {Schema, StringValue} from '@coveo/bueno';\nimport {\n buildQuickview,\n QuickviewState,\n Quickview,\n Result,\n} from '@coveo/headless';\nimport {Component, Listen, Prop, State, h, Element} from '@stencil/core';\nimport QuickviewIcon from '../../../images/preview.svg';\nimport {\n BindStateToController,\n InitializableComponent,\n InitializeBindings,\n} from '../../../utils/initialization-utils';\nimport {\n AriaLiveRegion,\n FocusTargetController,\n} from '../../../utils/stencil-accessibility-utils';\nimport {IconButton} from '../../common/stencil-iconButton';\nimport {Bindings} from '../../search/atomic-search-interface/atomic-search-interface';\nimport {ResultContext} from '../../search/result-template-components/result-template-decorators';\n\n/**\n * @internal\n */\n@Component({\n tag: 'atomic-insight-result-quickview-action',\n styleUrl: 'atomic-insight-result-quickview-action.pcss',\n})\nexport class AtomicInsightResultQuickviewAction\n implements InitializableComponent\n{\n @InitializeBindings() public bindings!: Bindings;\n @ResultContext() private result!: Result;\n\n private buttonFocusTarget?: FocusTargetController;\n\n @Element() host!: HTMLElement;\n @State() public error!: Error;\n\n public quickview!: Quickview;\n\n @BindStateToController('quickview')\n @State()\n public quickviewState!: QuickviewState;\n\n /**\n * The `sandbox` attribute to apply to the quickview iframe.\n *\n * The quickview is loaded inside an iframe with a [`sandbox`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe#attr-sandbox) attribute for security reasons.\n *\n * This attribute exists primarily to protect against potential XSS attacks that could originate from the document being displayed.\n *\n * By default, the sandbox attributes are: `allow-popups allow-top-navigation allow-same-origin`.\n *\n * `allow-same-origin` is not optional, and must always be included in the list of allowed capabilities for the component to function properly.\n */\n @Prop()\n public sandbox = 'allow-popups allow-top-navigation allow-same-origin';\n\n @AriaLiveRegion('quickview')\n protected quickviewAriaMessage!: string;\n\n @Listen('atomic/quickview/next', {target: 'body'})\n public onNextQuickview(evt: Event) {\n evt.stopImmediatePropagation();\n this.quickview.next();\n }\n\n @Listen('atomic/quickview/previous', {target: 'body'})\n public onPreviousQuickview(evt: Event) {\n evt.stopImmediatePropagation();\n this.quickview.previous();\n }\n\n private quickviewModalRef?: HTMLAtomicQuickviewModalElement;\n\n public get focusTarget() {\n if (!this.buttonFocusTarget) {\n this.buttonFocusTarget = new FocusTargetController(this);\n }\n return this.buttonFocusTarget;\n }\n\n public initialize() {\n this.quickview = buildQuickview(this.bindings.engine, {\n options: {result: this.result},\n });\n new Schema({\n sandbox: new StringValue({\n required: true,\n regex: /allow-same-origin/,\n }),\n }).validate({sandbox: this.sandbox});\n }\n\n private addQuickviewModalIfNeeded() {\n if (this.quickviewModalRef) {\n return;\n }\n\n const quickviewModal = this.bindings.interfaceElement.querySelector(\n 'atomic-quickview-modal'\n );\n if (quickviewModal) {\n this.quickviewModalRef = quickviewModal;\n return;\n }\n this.quickviewModalRef = document.createElement('atomic-quickview-modal');\n this.quickviewModalRef.setAttribute('sandbox', this.sandbox);\n this.bindings.interfaceElement.appendChild(this.quickviewModalRef);\n }\n\n private updateModalContent() {\n if (this.quickviewModalRef && this.quickview.state.content) {\n this.quickviewModalRef.content = this.quickview.state.content;\n this.quickviewModalRef.result = this.result;\n this.quickviewModalRef.total = this.quickviewState.totalResults;\n this.quickviewModalRef.current = this.quickviewState.currentResult;\n this.quickviewModalRef.modalCloseCallback = () =>\n this.focusTarget.focus();\n\n this.quickviewAriaMessage = this.quickviewState.isLoading\n ? this.bindings.i18n.t('quickview-loading')\n : this.bindings.i18n.t('quickview-loaded', {\n first: this.quickviewState.currentResult,\n last: this.quickviewState.totalResults,\n title: this.result.title,\n });\n }\n }\n\n private onClick(event?: MouseEvent) {\n event?.stopPropagation();\n this.quickview.fetchResultContent();\n }\n\n private get shouldRenderQuickview() {\n return this.quickviewState.resultHasPreview;\n }\n\n public render() {\n this.addQuickviewModalIfNeeded();\n this.updateModalContent();\n if (this.shouldRenderQuickview) {\n return (\n <IconButton\n partPrefix=\"result-action\"\n style=\"outline-neutral\"\n ref={this.focusTarget.setTarget}\n icon={QuickviewIcon}\n title={this.bindings.i18n.t('quickview')}\n onClick={() => this.onClick()}\n />\n );\n }\n }\n}\n"],"version":3}
1
+ {"file":"atomic-insight-result-quickview-action.entry.cjs.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAM,qCAAqC,GAAG,yqjEAAyqjE,CAAC;AACxtjE,iDAAe,qCAAqC;;;;;;;;;;;;MC4BvC,kCAAkC;;;;;;;;;;;;;;QA6BtC,YAAO,GAAG,qDAAqD,CAAC;;;uBAAtD,qDAAqD;;IAM/D,eAAe,CAAC,GAAU;QAC/B,GAAG,CAAC,wBAAwB,EAAE,CAAC;QAC/B,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;KACvB;IAGM,mBAAmB,CAAC,GAAU;QACnC,GAAG,CAAC,wBAAwB,EAAE,CAAC;QAC/B,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,CAAC;KAC3B;IAID,IAAW,WAAW;QACpB,IAAI,CAAC,IAAI,CAAC,iBAAiB,EAAE;YAC3B,IAAI,CAAC,iBAAiB,GAAG,IAAIA,+CAAqB,CAAC,IAAI,CAAC,CAAC;SAC1D;QACD,OAAO,IAAI,CAAC,iBAAiB,CAAC;KAC/B;IAEM,UAAU;QACf,IAAI,CAAC,SAAS,GAAGC,uBAAc,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE;YACpD,OAAO,EAAE,EAAC,MAAM,EAAE,IAAI,CAAC,MAAM,EAAC;SAC/B,CAAC,CAAC;QACH,IAAIC,YAAM,CAAC;YACT,OAAO,EAAE,IAAIC,iBAAW,CAAC;gBACvB,QAAQ,EAAE,IAAI;gBACd,KAAK,EAAE,mBAAmB;aAC3B,CAAC;SACH,CAAC,CAAC,QAAQ,CAAC,EAAC,OA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AAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,kBAAkB,EAAE;oBACvC,KAAK,EAAE,IAAI,CAAC,cAAc,CAAC,aAAa;oBACxC,IAAI,EAAE,IAAI,CAAC,cAAc,CAAC,YAAY;oBACtC,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,KAAK;iBACzB,CAAC,CAAC;SACR;KACF;IAEO,OAAO,CAAC,KAAkB;QAChC,KAAK,EAAE,eAAe,EAAE,CAAC;QACzB,IAAI,CAAC,SAAS,CAAC,kBAAkB,EAAE,CAAC;KACrC;IAED,IAAY,qBAAqB;QAC/B,OAAO,IAAI,CAAC,cAAc,CAAC,gBAAgB,CAAC;KAC7C;IAEM,MAAM;QACX,IAAI,CAAC,yBAAyB,EAAE,CAAC;QACjC,IAAI,CAAC,kBAAkB,EAAE,CAAC;QAC1B,IAAI,IAAI,CAAC,qBAAqB,EAAE;YAC9B,QACEC,QAACC,4BAAU,qDACT,UAAU,EAAC,eAAe,EAC1B,KAAK,EAAC,iBAAiB,EACvB,GAAG,EAAE,IAAI,CAAC,WAAW,CAAC,SAAS,EAC/B,IAAI,EAAEC,qBAAa,EACnB,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,WAAW,CAAC,EACxC,OAAO,EAAE,MAAM,IAAI,CAAC,OAAO,EAAE,GAC7B,EACF;SACH;KACF;;;AA5H4B;IAA5BC,sCAAkB,EAAE;oEAA4B;AACxB;IAAxBC,6CAAa,EAAE;kEAAyB;AAWlC;IAFNC,yCAAqB,CAAC,WAAW,CAAC;0EAEI;AAiB7B;IADTC,wCAAc,CAAC,WAAW,CAAC;gFACY;;;;;","names":["FocusTargetController","buildQuickview","Schema","StringValue","h","IconButton","QuickviewIcon","InitializeBindings","ResultContext","BindStateToController","AriaLiveRegion"],"sources":["src/components/insight/atomic-insight-result-quickview-action/atomic-insight-result-quickview-action.pcss?tag=atomic-insight-result-quickview-action","src/components/insight/atomic-insight-result-quickview-action/atomic-insight-result-quickview-action.tsx"],"sourcesContent":["@import '../../../global/global.pcss';\n","import {Schema, StringValue} from '@coveo/bueno';\nimport {\n buildQuickview,\n QuickviewState,\n Quickview,\n Result,\n} from '@coveo/headless';\nimport {Component, Listen, Prop, State, h, Element} from '@stencil/core';\nimport QuickviewIcon from '../../../images/preview.svg';\nimport {\n BindStateToController,\n InitializableComponent,\n InitializeBindings,\n} from '../../../utils/initialization-utils';\nimport {\n AriaLiveRegion,\n FocusTargetController,\n} from '../../../utils/stencil-accessibility-utils';\nimport {IconButton} from '../../common/stencil-iconButton';\nimport {Bindings} from '../../search/atomic-search-interface/atomic-search-interface';\nimport {ResultContext} from '@/src/components/search/result-template-component-utils/context/stencil-result-template-decorators';\n\n/**\n * @internal\n */\n@Component({\n tag: 'atomic-insight-result-quickview-action',\n styleUrl: 'atomic-insight-result-quickview-action.pcss',\n})\nexport class AtomicInsightResultQuickviewAction\n implements InitializableComponent\n{\n @InitializeBindings() public bindings!: Bindings;\n @ResultContext() private result!: Result;\n\n private buttonFocusTarget?: FocusTargetController;\n\n @Element() host!: HTMLElement;\n @State() public error!: Error;\n\n public quickview!: Quickview;\n\n @BindStateToController('quickview')\n @State()\n public quickviewState!: QuickviewState;\n\n /**\n * The `sandbox` attribute to apply to the quickview iframe.\n *\n * The quickview is loaded inside an iframe with a [`sandbox`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe#attr-sandbox) attribute for security reasons.\n *\n * This attribute exists primarily to protect against potential XSS attacks that could originate from the document being displayed.\n *\n * By default, the sandbox attributes are: `allow-popups allow-top-navigation allow-same-origin`.\n *\n * `allow-same-origin` is not optional, and must always be included in the list of allowed capabilities for the component to function properly.\n */\n @Prop()\n public sandbox = 'allow-popups allow-top-navigation allow-same-origin';\n\n @AriaLiveRegion('quickview')\n protected quickviewAriaMessage!: string;\n\n @Listen('atomic/quickview/next', {target: 'body'})\n public onNextQuickview(evt: Event) {\n evt.stopImmediatePropagation();\n this.quickview.next();\n }\n\n @Listen('atomic/quickview/previous', {target: 'body'})\n public onPreviousQuickview(evt: Event) {\n evt.stopImmediatePropagation();\n this.quickview.previous();\n }\n\n private quickviewModalRef?: HTMLAtomicQuickviewModalElement;\n\n public get focusTarget() {\n if (!this.buttonFocusTarget) {\n this.buttonFocusTarget = new FocusTargetController(this);\n }\n return this.buttonFocusTarget;\n }\n\n public initialize() {\n this.quickview = buildQuickview(this.bindings.engine, {\n options: {result: this.result},\n });\n new Schema({\n sandbox: new StringValue({\n required: true,\n regex: /allow-same-origin/,\n }),\n }).validate({sandbox: this.sandbox});\n }\n\n private addQuickviewModalIfNeeded() {\n if (this.quickviewModalRef) {\n return;\n }\n\n const quickviewModal = this.bindings.interfaceElement.querySelector(\n 'atomic-quickview-modal'\n );\n if (quickviewModal) {\n this.quickviewModalRef = quickviewModal;\n return;\n }\n this.quickviewModalRef = document.createElement('atomic-quickview-modal');\n this.quickviewModalRef.setAttribute('sandbox', this.sandbox);\n this.bindings.interfaceElement.appendChild(this.quickviewModalRef);\n }\n\n private updateModalContent() {\n if (this.quickviewModalRef && this.quickview.state.content) {\n this.quickviewModalRef.content = this.quickview.state.content;\n this.quickviewModalRef.result = this.result;\n this.quickviewModalRef.total = this.quickviewState.totalResults;\n this.quickviewModalRef.current = this.quickviewState.currentResult;\n this.quickviewModalRef.modalCloseCallback = () =>\n this.focusTarget.focus();\n\n this.quickviewAriaMessage = this.quickviewState.isLoading\n ? this.bindings.i18n.t('quickview-loading')\n : this.bindings.i18n.t('quickview-loaded', {\n first: this.quickviewState.currentResult,\n last: this.quickviewState.totalResults,\n title: this.result.title,\n });\n }\n }\n\n private onClick(event?: MouseEvent) {\n event?.stopPropagation();\n this.quickview.fetchResultContent();\n }\n\n private get shouldRenderQuickview() {\n return this.quickviewState.resultHasPreview;\n }\n\n public render() {\n this.addQuickviewModalIfNeeded();\n this.updateModalContent();\n if (this.shouldRenderQuickview) {\n return (\n <IconButton\n partPrefix=\"result-action\"\n style=\"outline-neutral\"\n ref={this.focusTarget.setTarget}\n icon={QuickviewIcon}\n title={this.bindings.i18n.t('quickview')}\n onClick={() => this.onClick()}\n />\n );\n }\n }\n}\n"],"version":3}
@@ -76,7 +76,7 @@ const AtomicInsightResult = class {
76
76
  .join('');
77
77
  }
78
78
  render() {
79
- return (index.h(index.Host, { key: '505c25b1654eb640ab6e06b25b162a56d43f491f', class: stencilItemListCommon.resultComponentClass }, index.h("div", { key: 'cb2689c14b83b4dc8356c4cb0150017972f8613e', class: `result-root ${this.layout
79
+ return (index.h(index.Host, { key: 'ac627bb778973dcfd31f2bf141f44ccbe350fd40', class: stencilItemListCommon.resultComponentClass }, index.h("div", { key: '4a25aafedcc4cd3658d7451bb9df9402bf2bacf3', class: `result-root ${this.layout
80
80
  .getClasses()
81
81
  .concat(this.classes)
82
82
  .join(' ')}`, innerHTML: this.getContentHTML() })));
@@ -216,13 +216,13 @@ const AtomicInsightSearchBox = class {
216
216
  : this.bindings.i18n.t('query-suggestions-unavailable');
217
217
  }
218
218
  render() {
219
- return (index.h(stencilSuggestionManager.SearchBoxWrapper, { key: 'f92f6078e860d6984ebb5f55ebbc166606b5a509', disabled: this.disableSearch, onFocusout: (event) => {
219
+ return (index.h(stencilSuggestionManager.SearchBoxWrapper, { key: '12f64d65feaa873b2ac0db08f604053dc66534e5', disabled: this.disableSearch, onFocusout: (event) => {
220
220
  if (!utils.isFocusingOut(event)) {
221
221
  return;
222
222
  }
223
223
  this.suggestionManager.clearSuggestions();
224
224
  this.isExpanded = false;
225
- } }, index.h("atomic-icon", { key: '1fc15cc40b0eafac001ed602d482973002ac01ed', part: "submit-icon", icon: stencilSuggestionManager.SearchSlimIcon, class: "my-auto mr-0 ml-4 h-4 w-4" }), index.h(stencilSuggestionManager.SearchTextArea, { key: '15315ae93d56c429993452860f20a4dc3ba23eec', textAreaRef: this.textAreaRef, loading: this.searchBoxState.isLoading, ref: (el) => el && (this.textAreaRef = el), bindings: this.bindings, value: this.searchBoxState.value, ariaLabel: this.getSearchInputLabel(), placeholder: this.bindings.i18n.t('search-ellipsis'), onFocus: () => this.onFocus(), onKeyDown: (e) => this.onKeyDown(e), onClear: () => {
225
+ } }, index.h("atomic-icon", { key: 'a29f3004b5aef3eb4bd09fc492bfb5852a55ec33', part: "submit-icon", icon: stencilSuggestionManager.SearchSlimIcon, class: "my-auto mr-0 ml-4 h-4 w-4" }), index.h(stencilSuggestionManager.SearchTextArea, { key: '1be4ab720b97fa0f4bcd26830a68bbd831bc059d', textAreaRef: this.textAreaRef, loading: this.searchBoxState.isLoading, ref: (el) => el && (this.textAreaRef = el), bindings: this.bindings, value: this.searchBoxState.value, ariaLabel: this.getSearchInputLabel(), placeholder: this.bindings.i18n.t('search-ellipsis'), onFocus: () => this.onFocus(), onKeyDown: (e) => this.onKeyDown(e), onClear: () => {
226
226
  this.searchBox.clear();
227
227
  this.triggerTextAreaChange('');
228
228
  }, onInput: (e) => this.onInput(e.target.value) }), this.renderSuggestions()));
@@ -53,9 +53,9 @@ const AtomicInsightSmartSnippetFeedbackModal = class {
53
53
  }
54
54
  render() {
55
55
  replaceBreakpointUtils.updateBreakpoints(this.host);
56
- return (index.h("atomic-modal", { key: '7f27e946204b80ac255fcc91ca67b26d0a1bfe2e', fullscreen: false, source: this.source, container: this.host, isOpen: this.isOpen, close: () => this.close(), exportparts: exportParts.ATOMIC_MODAL_EXPORT_PARTS }, index.h(smartSnippetFeedbackModalCommon.SmartSnippetFeedbackModalHeader, { key: '2862eb9f636366ad7ce3a7679829454ac66b6972', i18n: this.bindings.i18n }), index.h(smartSnippetFeedbackModalCommon.SmartSnippetFeedbackModalBody, { key: 'a6b2665561a15085af500b239d4c1b33edf97974', formId: this.formId, onSubmit: (e) => this.sendFeedback(e) }, index.h(smartSnippetFeedbackModalCommon.SmartSnippetFeebackModalOptions, { key: '5529b15ba4d771c0e1ecbef2319e0851f118ab7f', i18n: this.bindings.i18n }, smartSnippetFeedbackModalCommon.smartSnippetFeedbackOptions.map(({ id, localeKey, correspondingAnswer }) => (index.h(smartSnippetFeedbackModalCommon.SmartSnippetFeedbackModalOption, { correspondingAnswer: correspondingAnswer, currentAnswer: this.currentAnswer, i18n: this.bindings.i18n, id: id, localeKey: localeKey, onChange: () => {
56
+ return (index.h("atomic-modal", { key: '823bdfa852b86273e3fac96114f15160db8a4e22', fullscreen: false, source: this.source, container: this.host, isOpen: this.isOpen, close: () => this.close(), exportparts: exportParts.ATOMIC_MODAL_EXPORT_PARTS }, index.h(smartSnippetFeedbackModalCommon.SmartSnippetFeedbackModalHeader, { key: 'fd2fa5abf4cbf7d130c20fd2f8ade288ee0310cc', i18n: this.bindings.i18n }), index.h(smartSnippetFeedbackModalCommon.SmartSnippetFeedbackModalBody, { key: 'fae2fcecbdec92ae624a140fccafa95e374aef1e', formId: this.formId, onSubmit: (e) => this.sendFeedback(e) }, index.h(smartSnippetFeedbackModalCommon.SmartSnippetFeebackModalOptions, { key: '0eb4a8642235558423dda8160004a54b938d64a1', i18n: this.bindings.i18n }, smartSnippetFeedbackModalCommon.smartSnippetFeedbackOptions.map(({ id, localeKey, correspondingAnswer }) => (index.h(smartSnippetFeedbackModalCommon.SmartSnippetFeedbackModalOption, { correspondingAnswer: correspondingAnswer, currentAnswer: this.currentAnswer, i18n: this.bindings.i18n, id: id, localeKey: localeKey, onChange: () => {
57
57
  this.currentAnswer = correspondingAnswer;
58
- } })))), index.h(smartSnippetFeedbackModalCommon.SmartSnippetFeedbackModalDetails, { key: '7a3d40453da9dbc950693f5664e805dbfcd8cf0e', currentAnswer: this.currentAnswer, i18n: this.bindings.i18n, setDetailsInputRef: (ref) => (this.detailsInputRef = ref) })), index.h(smartSnippetFeedbackModalCommon.SmartSnippetFeedbackModalFooter, { key: '60c5f2461918a776fa9c1333cdc1224facd4c841', formId: this.formId, i18n: this.bindings.i18n, onClick: () => this.close() })));
58
+ } })))), index.h(smartSnippetFeedbackModalCommon.SmartSnippetFeedbackModalDetails, { key: '1b52ebd8b21e2e457d42e51f1bc9c490454415bf', currentAnswer: this.currentAnswer, i18n: this.bindings.i18n, setDetailsInputRef: (ref) => (this.detailsInputRef = ref) })), index.h(smartSnippetFeedbackModalCommon.SmartSnippetFeedbackModalFooter, { key: '283f4639ae0711c1a1b39a30df4b057e5e337d59', formId: this.formId, i18n: this.bindings.i18n, onClick: () => this.close() })));
59
59
  }
60
60
  close() {
61
61
  this.isOpen = false;
@@ -25,7 +25,7 @@ const AtomicInsightTabs = class {
25
25
  this.error = undefined;
26
26
  }
27
27
  render() {
28
- return (index.h("atomic-tab-bar", { key: 'f6fd5e43db6567e6c31818e29378a7917e917e88' }, index.h("slot", { key: 'aaa18852e801b844d251be5ed4978cf82b68811b' })));
28
+ return (index.h("atomic-tab-bar", { key: 'd30284ba5e166484d4a047bdcc43fc24eae04a23' }, index.h("slot", { key: '2a738fcc839fde6181e6b87f342b853fc37c4d0d' })));
29
29
  }
30
30
  };
31
31
  __decorate([
@@ -7,7 +7,7 @@ const insight = require('@coveo/headless/insight');
7
7
  const initializationUtils = require('./initialization-utils-92f1b080.js');
8
8
  const propsUtils = require('./props-utils-1e4ba1b0.js');
9
9
  const stencilAccessibilityUtils = require('./stencil-accessibility-utils-aa4c9f6c.js');
10
- const dependsOn = require('./depends-on-0d4e4f15.js');
10
+ const dependsOn = require('./depends-on-f0cf3617.js');
11
11
  const facetPlaceholder = require('./facet-placeholder-22074f05.js');
12
12
  const timeframeFacetCommon = require('./timeframe-facet-common-b5535cca.js');
13
13
  require('./dom-utils-d4790328.js');