@coveo/atomic 3.34.0-pre.b099da8035 → 3.34.0-pre.b429ebe8aa

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 (299) 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/components/_index.d.ts +0 -4
  4. package/dist/atomic/components/_index.js +0 -2
  5. package/dist/atomic/components/analytics-config.js +1 -1
  6. package/dist/atomic/components/atomic-category-facet.js +1 -1
  7. package/dist/atomic/components/atomic-facet.js +1 -1
  8. package/dist/atomic/components/atomic-field-condition.js +1 -1
  9. package/dist/atomic/components/atomic-field-condition.js.map +1 -1
  10. package/dist/atomic/components/atomic-format-currency.js +1 -1
  11. package/dist/atomic/components/atomic-format-number.js +1 -1
  12. package/dist/atomic/components/atomic-format-unit.js +1 -1
  13. package/dist/atomic/components/atomic-insight-history-toggle.js +2 -2
  14. package/dist/atomic/components/atomic-insight-history-toggle.js.map +1 -1
  15. package/dist/atomic/components/atomic-insight-result-children-template.js +1 -1
  16. package/dist/atomic/components/atomic-insight-result-children-template.js.map +1 -1
  17. package/dist/atomic/components/atomic-insight-result-template.js +1 -1
  18. package/dist/atomic/components/atomic-insight-result-template.js.map +1 -1
  19. package/dist/atomic/components/atomic-insight-user-actions-toggle.js +2 -2
  20. package/dist/atomic/components/atomic-insight-user-actions-toggle.js.map +1 -1
  21. package/dist/atomic/components/atomic-numeric-facet.js +1 -1
  22. package/dist/atomic/components/atomic-quickview-modal2.js +23 -23
  23. package/dist/atomic/components/atomic-quickview-modal2.js.map +1 -1
  24. package/dist/atomic/components/atomic-quickview.js +1 -1
  25. package/dist/atomic/components/atomic-recs-result-template.js +1 -1
  26. package/dist/atomic/components/atomic-recs-result-template.js.map +1 -1
  27. package/dist/atomic/components/atomic-result-children-template.js +1 -1
  28. package/dist/atomic/components/atomic-result-children-template.js.map +1 -1
  29. package/dist/atomic/components/atomic-result-children.js +1 -1
  30. package/dist/atomic/components/atomic-result-fields-list.js +1 -1
  31. package/dist/atomic/components/atomic-result-link.js +1 -1
  32. package/dist/atomic/components/atomic-result-list.js +1 -1
  33. package/dist/atomic/components/atomic-result-list.js.map +1 -1
  34. package/dist/atomic/components/atomic-result-table-placeholder2.js +1 -1
  35. package/dist/atomic/components/atomic-result-template.js +1 -1
  36. package/dist/atomic/components/atomic-result-template.js.map +1 -1
  37. package/dist/atomic/components/atomic-search-box-query-suggestions2.js +1 -1
  38. package/dist/atomic/components/atomic-search-box.js +5 -11
  39. package/dist/atomic/components/atomic-search-box.js.map +1 -1
  40. package/dist/atomic/components/atomic-smart-snippet-feedback-modal2.js +2 -2
  41. package/dist/atomic/components/atomic-sort-dropdown.js +2 -2
  42. package/dist/atomic/components/atomic-sort-expression.js +1 -1
  43. package/dist/atomic/components/atomic-tab-manager.js +1 -1
  44. package/dist/atomic/components/clock.js +2 -2
  45. package/dist/atomic/components/components/commerce/atomic-commerce-breadbox/atomic-commerce-breadbox.js +17 -32
  46. package/dist/atomic/components/components/commerce/atomic-product-field-condition/atomic-product-field-condition.js +4 -3
  47. package/dist/atomic/components/components/commerce/atomic-product-template/atomic-product-template.js +3 -2
  48. package/dist/atomic/components/components/common/item-list/table-layout.js +1 -1
  49. package/dist/atomic/components/components/common/product-template/product-template-controller.js +16 -81
  50. package/dist/atomic/components/components/common/template-controller/base-template-controller.js +89 -0
  51. package/dist/atomic/components/components/common/{product-template/product-template-common.js → template-controller/template-utils.js} +11 -12
  52. package/dist/atomic/components/components/common/validate-props-controller/validate-props-controller.js +50 -0
  53. package/dist/atomic/components/components/search/atomic-relevance-inspector/atomic-relevance-inspector.js +100 -0
  54. package/dist/atomic/components/components/search/atomic-search-box-recent-queries/atomic-search-box-recent-queries.js +137 -0
  55. package/dist/atomic/components/components/search/atomic-search-interface/atomic-search-interface.js +11 -24
  56. package/dist/atomic/components/components/search/index.js +2 -0
  57. package/dist/atomic/components/components/search/lazy-index.js +2 -0
  58. package/dist/atomic/components/global/environment.js +1 -1
  59. package/dist/atomic/components/index.js.map +1 -1
  60. package/dist/atomic/components/{result-template-common.js → stencil-result-template-common.js} +1 -1
  61. package/dist/atomic/components/stencil-result-template-common.js.map +1 -0
  62. package/dist/atomic/components/table-element-utils.js.map +1 -1
  63. package/dist/atomic/components/utils/compare-utils.js +49 -0
  64. package/dist/atomic/{p-475124d2.entry.js → p-01511388.entry.js} +2 -2
  65. package/dist/atomic/{p-60800b2f.entry.js → p-0ed76e65.entry.js} +2 -2
  66. package/dist/atomic/{p-7fd5b6ac.entry.js → p-2213060b.entry.js} +2 -2
  67. package/dist/atomic/p-2213060b.entry.js.map +1 -0
  68. package/dist/atomic/{p-e7a25b00.entry.js → p-2895c42c.entry.js} +2 -2
  69. package/dist/atomic/p-2895c42c.entry.js.map +1 -0
  70. package/dist/atomic/{p-16f6c1f3.entry.js → p-2fb49fe8.entry.js} +2 -2
  71. package/dist/atomic/{p-13391e75.entry.js → p-3549a469.entry.js} +2 -2
  72. package/dist/atomic/{p-88af4470.entry.js → p-40c1dfcb.entry.js} +2 -2
  73. package/dist/atomic/{p-2250f505.js → p-4da8f827.js} +2 -2
  74. package/dist/atomic/p-4da8f827.js.map +1 -0
  75. package/dist/atomic/{p-1e59ce29.entry.js → p-4f34763d.entry.js} +2 -2
  76. package/dist/atomic/{p-7c3c5f07.entry.js → p-4f4c9a03.entry.js} +2 -2
  77. package/dist/atomic/p-4f4c9a03.entry.js.map +1 -0
  78. package/dist/atomic/{p-20764605.entry.js → p-52d5461a.entry.js} +2 -2
  79. package/dist/atomic/{p-406a288c.entry.js → p-6078667f.entry.js} +2 -2
  80. package/dist/atomic/{p-992bc2dc.js → p-60be00ad.js} +2 -2
  81. package/dist/atomic/{p-62e85c20.entry.js → p-6694e114.entry.js} +2 -2
  82. package/dist/atomic/p-6694e114.entry.js.map +1 -0
  83. package/dist/atomic/p-6f1bffa2.entry.js +2 -0
  84. package/dist/atomic/p-6f1bffa2.entry.js.map +1 -0
  85. package/dist/atomic/{p-3cbab25b.entry.js → p-7e971d15.entry.js} +2 -2
  86. package/dist/atomic/{p-4601eb93.entry.js → p-83d3857f.entry.js} +2 -2
  87. package/dist/atomic/{p-a1e5f767.entry.js → p-86f950a5.entry.js} +2 -2
  88. package/dist/atomic/p-86f950a5.entry.js.map +1 -0
  89. package/dist/atomic/{p-dbcef3a9.entry.js → p-87f69e53.entry.js} +2 -2
  90. package/dist/atomic/{p-6289adc7.entry.js → p-9239be63.entry.js} +2 -2
  91. package/dist/atomic/{p-aaea2ca1.entry.js → p-9a6ec803.entry.js} +2 -2
  92. package/dist/atomic/{p-aac849b0.entry.js → p-a3fac2ec.entry.js} +2 -2
  93. package/dist/atomic/{p-373448df.entry.js → p-a46d36dd.entry.js} +2 -2
  94. package/dist/atomic/p-a46d36dd.entry.js.map +1 -0
  95. package/dist/atomic/{p-e398835b.entry.js → p-b2b9e83f.entry.js} +2 -2
  96. package/dist/atomic/{p-8fdef8a3.entry.js → p-b313058c.entry.js} +2 -2
  97. package/dist/atomic/{p-0bdd730f.entry.js → p-b6ae0244.entry.js} +2 -2
  98. package/dist/atomic/{p-3a7a1a00.entry.js → p-bbfe727a.entry.js} +2 -2
  99. package/dist/atomic/{p-acd1a1d3.js → p-be0518ae.js} +1 -1
  100. package/dist/atomic/p-be0518ae.js.map +1 -0
  101. package/dist/atomic/{p-97ce3384.entry.js → p-be2a43f4.entry.js} +2 -2
  102. package/dist/atomic/{p-a5714bc4.entry.js → p-d211a422.entry.js} +2 -2
  103. package/dist/atomic/{p-c280cd05.js → p-e1cc5150.js} +1 -1
  104. package/dist/atomic/{p-9260dd7d.entry.js → p-ebd00891.entry.js} +2 -2
  105. package/dist/atomic/p-ebd00891.entry.js.map +1 -0
  106. package/dist/atomic/{p-5678a2ce.entry.js → p-f676b5ba.entry.js} +2 -2
  107. package/dist/atomic/p-f676b5ba.entry.js.map +1 -0
  108. package/dist/cjs/_loader.cjs.js +1 -1
  109. package/dist/cjs/{analytics-config-f75fd435.js → analytics-config-7fafe2ee.js} +2 -2
  110. package/dist/cjs/{analytics-config-f75fd435.js.map → analytics-config-7fafe2ee.js.map} +1 -1
  111. package/dist/cjs/atomic-category-facet.cjs.entry.js +1 -1
  112. package/dist/cjs/atomic-facet.cjs.entry.js +1 -1
  113. package/dist/cjs/atomic-field-condition.cjs.entry.js +3 -3
  114. package/dist/cjs/atomic-field-condition.cjs.entry.js.map +1 -1
  115. package/dist/cjs/atomic-format-currency.cjs.entry.js +1 -1
  116. package/dist/cjs/atomic-format-number.cjs.entry.js +1 -1
  117. package/dist/cjs/atomic-format-unit.cjs.entry.js +1 -1
  118. package/dist/cjs/atomic-insight-history-toggle.cjs.entry.js +2 -2
  119. package/dist/cjs/atomic-insight-history-toggle.cjs.entry.js.map +1 -1
  120. package/dist/cjs/atomic-insight-interface.cjs.entry.js +1 -1
  121. package/dist/cjs/atomic-insight-result-children-template.cjs.entry.js +5 -5
  122. package/dist/cjs/atomic-insight-result-children-template.cjs.entry.js.map +1 -1
  123. package/dist/cjs/atomic-insight-result-template.cjs.entry.js +5 -5
  124. package/dist/cjs/atomic-insight-result-template.cjs.entry.js.map +1 -1
  125. package/dist/cjs/atomic-insight-user-actions-toggle.cjs.entry.js +2 -2
  126. package/dist/cjs/atomic-insight-user-actions-toggle.cjs.entry.js.map +1 -1
  127. package/dist/cjs/atomic-numeric-facet.cjs.entry.js +1 -1
  128. package/dist/cjs/atomic-quickview-modal.cjs.entry.js +23 -23
  129. package/dist/cjs/atomic-quickview-modal.cjs.entry.js.map +1 -1
  130. package/dist/cjs/atomic-quickview.cjs.entry.js +1 -1
  131. package/dist/cjs/atomic-recs-interface.cjs.entry.js +1 -1
  132. package/dist/cjs/atomic-recs-result-template.cjs.entry.js +5 -5
  133. package/dist/cjs/atomic-recs-result-template.cjs.entry.js.map +1 -1
  134. package/dist/cjs/atomic-result-children-template.cjs.entry.js +4 -4
  135. package/dist/cjs/atomic-result-children-template.cjs.entry.js.map +1 -1
  136. package/dist/cjs/atomic-result-children.cjs.entry.js +1 -1
  137. package/dist/cjs/atomic-result-fields-list.cjs.entry.js +1 -1
  138. package/dist/cjs/atomic-result-link.cjs.entry.js +1 -1
  139. package/dist/cjs/atomic-result-list.cjs.entry.js +2 -2
  140. package/dist/cjs/atomic-result-list.cjs.entry.js.map +1 -1
  141. package/dist/cjs/atomic-result-placeholder_8.cjs.entry.js +1 -1
  142. package/dist/cjs/atomic-result-template.cjs.entry.js +4 -4
  143. package/dist/cjs/atomic-result-template.cjs.entry.js.map +1 -1
  144. package/dist/cjs/atomic-search-box-query-suggestions.cjs.entry.js +76 -0
  145. package/dist/cjs/atomic-search-box-query-suggestions.cjs.entry.js.map +1 -0
  146. package/dist/cjs/atomic-search-box.cjs.entry.js +3 -3
  147. package/dist/cjs/atomic-smart-snippet-feedback-modal.cjs.entry.js +2 -2
  148. package/dist/cjs/atomic-sort-dropdown.cjs.entry.js +2 -2
  149. package/dist/cjs/atomic-sort-expression.cjs.entry.js +1 -1
  150. package/dist/cjs/atomic-tab-manager.cjs.entry.js +1 -1
  151. package/dist/cjs/atomic.cjs.js +1 -1
  152. package/dist/cjs/clock-7aeb19d0.js +7 -0
  153. package/dist/cjs/clock-7aeb19d0.js.map +1 -0
  154. package/dist/cjs/index-757bc886.js +2 -6
  155. package/dist/cjs/{result-template-common-84bd4057.js → stencil-result-template-common-bb38948f.js} +2 -2
  156. package/dist/cjs/stencil-result-template-common-bb38948f.js.map +1 -0
  157. package/dist/cjs/{table-element-utils-4865b735.js → table-element-utils-2cc6dc82.js} +1 -1
  158. package/dist/cjs/table-element-utils-2cc6dc82.js.map +1 -0
  159. package/dist/cjs/version.cjs.js +1 -1
  160. package/dist/esm/_loader.js +1 -1
  161. package/dist/esm/{analytics-config-870dc878.js → analytics-config-a8c239d1.js} +2 -2
  162. package/dist/esm/{analytics-config-870dc878.js.map → analytics-config-a8c239d1.js.map} +1 -1
  163. package/dist/esm/atomic-category-facet.entry.js +1 -1
  164. package/dist/esm/atomic-facet.entry.js +1 -1
  165. package/dist/esm/atomic-field-condition.entry.js +2 -2
  166. package/dist/esm/atomic-field-condition.entry.js.map +1 -1
  167. package/dist/esm/atomic-format-currency.entry.js +1 -1
  168. package/dist/esm/atomic-format-number.entry.js +1 -1
  169. package/dist/esm/atomic-format-unit.entry.js +1 -1
  170. package/dist/esm/atomic-insight-history-toggle.entry.js +2 -2
  171. package/dist/esm/atomic-insight-history-toggle.entry.js.map +1 -1
  172. package/dist/esm/atomic-insight-interface.entry.js +1 -1
  173. package/dist/esm/atomic-insight-result-children-template.entry.js +2 -2
  174. package/dist/esm/atomic-insight-result-children-template.entry.js.map +1 -1
  175. package/dist/esm/atomic-insight-result-template.entry.js +2 -2
  176. package/dist/esm/atomic-insight-result-template.entry.js.map +1 -1
  177. package/dist/esm/atomic-insight-user-actions-toggle.entry.js +2 -2
  178. package/dist/esm/atomic-insight-user-actions-toggle.entry.js.map +1 -1
  179. package/dist/esm/atomic-numeric-facet.entry.js +1 -1
  180. package/dist/esm/atomic-quickview-modal.entry.js +23 -23
  181. package/dist/esm/atomic-quickview-modal.entry.js.map +1 -1
  182. package/dist/esm/atomic-quickview.entry.js +1 -1
  183. package/dist/esm/atomic-recs-interface.entry.js +1 -1
  184. package/dist/esm/atomic-recs-result-template.entry.js +2 -2
  185. package/dist/esm/atomic-recs-result-template.entry.js.map +1 -1
  186. package/dist/esm/atomic-result-children-template.entry.js +2 -2
  187. package/dist/esm/atomic-result-children-template.entry.js.map +1 -1
  188. package/dist/esm/atomic-result-children.entry.js +1 -1
  189. package/dist/esm/atomic-result-fields-list.entry.js +1 -1
  190. package/dist/esm/atomic-result-link.entry.js +1 -1
  191. package/dist/esm/atomic-result-list.entry.js +2 -2
  192. package/dist/esm/atomic-result-list.entry.js.map +1 -1
  193. package/dist/esm/atomic-result-placeholder_8.entry.js +1 -1
  194. package/dist/esm/atomic-result-template.entry.js +2 -2
  195. package/dist/esm/atomic-result-template.entry.js.map +1 -1
  196. package/dist/esm/atomic-search-box-query-suggestions.entry.js +72 -0
  197. package/dist/esm/atomic-search-box-query-suggestions.entry.js.map +1 -0
  198. package/dist/esm/atomic-search-box.entry.js +3 -3
  199. package/dist/esm/atomic-smart-snippet-feedback-modal.entry.js +2 -2
  200. package/dist/esm/atomic-sort-dropdown.entry.js +2 -2
  201. package/dist/esm/atomic-sort-expression.entry.js +1 -1
  202. package/dist/esm/atomic-tab-manager.entry.js +1 -1
  203. package/dist/esm/atomic.js +1 -1
  204. package/dist/esm/clock-b1f5d7f7.js +5 -0
  205. package/dist/esm/clock-b1f5d7f7.js.map +1 -0
  206. package/dist/esm/index-3f35faca.js +2 -6
  207. package/dist/esm/{result-template-common-995b94f8.js → stencil-result-template-common-19af5cfb.js} +2 -2
  208. package/dist/esm/stencil-result-template-common-19af5cfb.js.map +1 -0
  209. package/dist/esm/{table-element-utils-49d22ec6.js → table-element-utils-1dbc5ef6.js} +1 -1
  210. package/dist/esm/table-element-utils-1dbc5ef6.js.map +1 -0
  211. package/dist/esm/version.js +1 -1
  212. package/dist/types/components/commerce/atomic-commerce-breadbox/atomic-commerce-breadbox.d.ts +2 -3
  213. package/dist/types/components/common/facets/facet-search/facet-search-input-guard.d.ts +1 -1
  214. package/dist/types/components/common/no-items/guard.d.ts +1 -1
  215. package/dist/types/components/common/product-template/product-template-controller.d.ts +9 -19
  216. package/dist/types/components/common/product-template/stencil-product-template-common.d.ts +1 -1
  217. package/dist/types/components/common/refine-modal/guard.d.ts +1 -1
  218. package/dist/types/components/common/result-templates/result-template-controller.d.ts +16 -0
  219. package/dist/types/components/common/sort/sort-guard.d.ts +1 -1
  220. package/dist/types/components/common/template-controller/base-template-controller.d.ts +36 -0
  221. package/dist/types/components/common/template-controller/template-utils.d.ts +11 -0
  222. package/dist/types/components/common/validate-props-controller/validate-props-controller.d.ts +32 -0
  223. package/dist/types/components/insight/result-templates/atomic-insight-result-children-template/atomic-insight-result-children-template.d.ts +1 -1
  224. package/dist/types/components/search/atomic-relevance-inspector/atomic-relevance-inspector.d.ts +18 -8
  225. package/dist/types/components/search/atomic-search-box-recent-queries/atomic-search-box-recent-queries.d.ts +45 -0
  226. package/dist/types/components/search/atomic-search-interface/atomic-search-interface.d.ts +5 -3
  227. package/dist/types/components/search/index.d.ts +2 -0
  228. package/dist/types/components/search/result-templates/atomic-result-children-template/atomic-result-children-template.d.ts +1 -1
  229. package/dist/types/components.d.ts +0 -102
  230. package/dist/types/directives/hierarchical-path.d.ts +1 -1
  231. package/dist/types/utils/compare-utils.d.ts +9 -0
  232. package/docs/atomic-docs.json +1 -185
  233. package/package.json +1 -1
  234. package/dist/atomic/components/atomic-relevance-inspector.d.ts +0 -11
  235. package/dist/atomic/components/atomic-relevance-inspector.js +0 -53
  236. package/dist/atomic/components/atomic-relevance-inspector.js.map +0 -1
  237. package/dist/atomic/components/atomic-search-box-recent-queries.d.ts +0 -11
  238. package/dist/atomic/components/atomic-search-box-recent-queries.js +0 -8
  239. package/dist/atomic/components/atomic-search-box-recent-queries.js.map +0 -1
  240. package/dist/atomic/components/atomic-search-box-recent-queries2.js +0 -183
  241. package/dist/atomic/components/atomic-search-box-recent-queries2.js.map +0 -1
  242. package/dist/atomic/components/result-template-common.js.map +0 -1
  243. package/dist/atomic/p-2250f505.js.map +0 -1
  244. package/dist/atomic/p-373448df.entry.js.map +0 -1
  245. package/dist/atomic/p-5678a2ce.entry.js.map +0 -1
  246. package/dist/atomic/p-62e85c20.entry.js.map +0 -1
  247. package/dist/atomic/p-7c3c5f07.entry.js.map +0 -1
  248. package/dist/atomic/p-7fd5b6ac.entry.js.map +0 -1
  249. package/dist/atomic/p-9260dd7d.entry.js.map +0 -1
  250. package/dist/atomic/p-a1e5f767.entry.js.map +0 -1
  251. package/dist/atomic/p-acd1a1d3.js.map +0 -1
  252. package/dist/atomic/p-de687bed.entry.js +0 -2
  253. package/dist/atomic/p-de687bed.entry.js.map +0 -1
  254. package/dist/atomic/p-df4397ab.entry.js +0 -2
  255. package/dist/atomic/p-df4397ab.entry.js.map +0 -1
  256. package/dist/atomic/p-e7a25b00.entry.js.map +0 -1
  257. package/dist/cjs/atomic-relevance-inspector.cjs.entry.js +0 -38
  258. package/dist/cjs/atomic-relevance-inspector.cjs.entry.js.map +0 -1
  259. package/dist/cjs/atomic-search-box-query-suggestions_2.cjs.entry.js +0 -234
  260. package/dist/cjs/atomic-search-box-query-suggestions_2.cjs.entry.js.map +0 -1
  261. package/dist/cjs/clock-f03ff827.js +0 -7
  262. package/dist/cjs/clock-f03ff827.js.map +0 -1
  263. package/dist/cjs/result-template-common-84bd4057.js.map +0 -1
  264. package/dist/cjs/table-element-utils-4865b735.js.map +0 -1
  265. package/dist/esm/atomic-relevance-inspector.entry.js +0 -34
  266. package/dist/esm/atomic-relevance-inspector.entry.js.map +0 -1
  267. package/dist/esm/atomic-search-box-query-suggestions_2.entry.js +0 -229
  268. package/dist/esm/atomic-search-box-query-suggestions_2.entry.js.map +0 -1
  269. package/dist/esm/clock-add3e9a5.js +0 -5
  270. package/dist/esm/clock-add3e9a5.js.map +0 -1
  271. package/dist/esm/result-template-common-995b94f8.js.map +0 -1
  272. package/dist/esm/table-element-utils-49d22ec6.js.map +0 -1
  273. package/dist/types/components/common/product-template/product-template-common.d.ts +0 -6
  274. package/dist/types/components/search/search-box-suggestions/atomic-search-box-recent-queries/atomic-search-box-recent-queries.d.ts +0 -37
  275. /package/dist/atomic/components/components/{search/atomic-table-result → common}/table-element-utils.js +0 -0
  276. /package/dist/atomic/{p-475124d2.entry.js.map → p-01511388.entry.js.map} +0 -0
  277. /package/dist/atomic/{p-60800b2f.entry.js.map → p-0ed76e65.entry.js.map} +0 -0
  278. /package/dist/atomic/{p-16f6c1f3.entry.js.map → p-2fb49fe8.entry.js.map} +0 -0
  279. /package/dist/atomic/{p-13391e75.entry.js.map → p-3549a469.entry.js.map} +0 -0
  280. /package/dist/atomic/{p-88af4470.entry.js.map → p-40c1dfcb.entry.js.map} +0 -0
  281. /package/dist/atomic/{p-1e59ce29.entry.js.map → p-4f34763d.entry.js.map} +0 -0
  282. /package/dist/atomic/{p-20764605.entry.js.map → p-52d5461a.entry.js.map} +0 -0
  283. /package/dist/atomic/{p-406a288c.entry.js.map → p-6078667f.entry.js.map} +0 -0
  284. /package/dist/atomic/{p-992bc2dc.js.map → p-60be00ad.js.map} +0 -0
  285. /package/dist/atomic/{p-3cbab25b.entry.js.map → p-7e971d15.entry.js.map} +0 -0
  286. /package/dist/atomic/{p-4601eb93.entry.js.map → p-83d3857f.entry.js.map} +0 -0
  287. /package/dist/atomic/{p-dbcef3a9.entry.js.map → p-87f69e53.entry.js.map} +0 -0
  288. /package/dist/atomic/{p-6289adc7.entry.js.map → p-9239be63.entry.js.map} +0 -0
  289. /package/dist/atomic/{p-aaea2ca1.entry.js.map → p-9a6ec803.entry.js.map} +0 -0
  290. /package/dist/atomic/{p-aac849b0.entry.js.map → p-a3fac2ec.entry.js.map} +0 -0
  291. /package/dist/atomic/{p-e398835b.entry.js.map → p-b2b9e83f.entry.js.map} +0 -0
  292. /package/dist/atomic/{p-8fdef8a3.entry.js.map → p-b313058c.entry.js.map} +0 -0
  293. /package/dist/atomic/{p-0bdd730f.entry.js.map → p-b6ae0244.entry.js.map} +0 -0
  294. /package/dist/atomic/{p-3a7a1a00.entry.js.map → p-bbfe727a.entry.js.map} +0 -0
  295. /package/dist/atomic/{p-97ce3384.entry.js.map → p-be2a43f4.entry.js.map} +0 -0
  296. /package/dist/atomic/{p-a5714bc4.entry.js.map → p-d211a422.entry.js.map} +0 -0
  297. /package/dist/atomic/{p-c280cd05.js.map → p-e1cc5150.js.map} +0 -0
  298. /package/dist/types/components/common/result-templates/{result-template-common.d.ts → stencil-result-template-common.d.ts} +0 -0
  299. /package/dist/types/components/{search/atomic-table-result → common}/table-element-utils.d.ts +0 -0
@@ -485,7 +485,7 @@ const AtomicCategoryFacet = class {
485
485
  }
486
486
  render() {
487
487
  const { bindings: { i18n }, label, facetState: { facetSearch, enabled, valuesAsTrees, selectedValueAncestry }, searchStatusState: { hasError, firstSearchExecuted }, } = this;
488
- return (index.h(facetGuard.FacetGuard, { key: '0ffcbacbe73edf368726d16f5b9e848901f23cf2', enabled: enabled, firstSearchExecuted: firstSearchExecuted, hasError: hasError, hasResults: valuesAsTrees.length > 0 }, firstSearchExecuted ? (index.h(facetPlaceholder.FacetContainer, null, this.renderHeader(), !this.isCollapsed && [
488
+ return (index.h(facetGuard.FacetGuard, { key: 'f2968f1c76d3d8b6b49b31e78294920afe26139c', enabled: enabled, firstSearchExecuted: firstSearchExecuted, hasError: hasError, hasResults: valuesAsTrees.length > 0 }, firstSearchExecuted ? (index.h(facetPlaceholder.FacetContainer, null, this.renderHeader(), !this.isCollapsed && [
489
489
  this.renderSearchInput(),
490
490
  stencilFacetValueLabelHighlight.shouldDisplaySearchResults(facetSearch) ? (index.h(index.Fragment, null, facetSearch.values.length ? (index.h(stencilFacetValuesGroup.FacetValuesGroup, { i18n: i18n, label: label, query: facetSearch.query }, this.renderSearchResults())) : (index.h("div", { class: "mt-3" })), this.renderMatches())) : (index.h(index.Fragment, null, index.h(stencilFacetValuesGroup.FacetValuesGroup, { i18n: i18n, label: label }, this.hasParents ? (index.h(CategoryFacetParentAsTreeContainer, { isTopLevel: true, className: "mt-3" }, this.renderValuesTree(selectedValueAncestry, true))) : (index.h(CategoryFacetChildrenAsTreeContainer, { className: "mt-3" }, this.renderChildren()))), this.renderShowMoreLess())),
491
491
  ])) : (index.h(facetPlaceholder.FacetPlaceholder, { isCollapsed: this.isCollapsed, numberOfValues: this.numberOfValues }))));
@@ -266,7 +266,7 @@ const AtomicFacet = class {
266
266
  return true;
267
267
  }
268
268
  render() {
269
- return (index.h(facetGuard.FacetGuard, { key: '86e0199496414e899a074abed60f78b09644f41d', enabled: this.facetState.enabled, hasError: this.searchStatusState.hasError, firstSearchExecuted: this.searchStatusState.firstSearchExecuted, hasResults: this.facetState.values.length > 0 }, this.searchStatusState.firstSearchExecuted ? (index.h(facetPlaceholder.FacetContainer, null, index.h(facetPlaceholder.FacetHeader, { i18n: this.bindings.i18n, label: this.definedLabel, onClearFilters: () => {
269
+ return (index.h(facetGuard.FacetGuard, { key: 'fa5c10a45b72a6ae62a005a752b5808ce3fadad8', enabled: this.facetState.enabled, hasError: this.searchStatusState.hasError, firstSearchExecuted: this.searchStatusState.firstSearchExecuted, hasResults: this.facetState.values.length > 0 }, this.searchStatusState.firstSearchExecuted ? (index.h(facetPlaceholder.FacetContainer, null, index.h(facetPlaceholder.FacetHeader, { i18n: this.bindings.i18n, label: this.definedLabel, onClearFilters: () => {
270
270
  this.focusTargets.header.focusAfterSearch();
271
271
  this.facet.deselectAll();
272
272
  }, numberOfActiveValues: this.activeValues.length, isCollapsed: this.isCollapsed, headingLevel: this.headingLevel, onToggleCollapse: () => (this.isCollapsed = !this.isCollapsed), headerRef: (el) => this.focusTargets.header.setTarget(el) }), this.renderBody())) : (index.h(facetPlaceholder.FacetPlaceholder, { numberOfValues: this.numberOfValues, isCollapsed: this.isCollapsed }))));
@@ -5,13 +5,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-757bc886.js');
6
6
  const headless = require('@coveo/headless');
7
7
  const propsUtils = require('./props-utils-1e4ba1b0.js');
8
- const resultTemplateCommon = require('./result-template-common-84bd4057.js');
8
+ const stencilResultTemplateCommon = require('./stencil-result-template-common-bb38948f.js');
9
9
  const resultTemplateDecorators = require('./result-template-decorators-432d11a9.js');
10
10
  require('@coveo/bueno');
11
11
  require('./utils-7153ae6b.js');
12
12
  require('./purify-85b542e2.js');
13
13
  require('./_commonjsHelpers-b3309d7b.js');
14
- require('./table-element-utils-4865b735.js');
14
+ require('./table-element-utils-2cc6dc82.js');
15
15
  require('./item-layout-sections-b09ba4b3.js');
16
16
  require('./stencil-item-decorators-43a96f33.js');
17
17
  require('./dom-utils-d4790328.js');
@@ -59,7 +59,7 @@ const AtomicFieldCondition = class {
59
59
  const fieldNames = this.ifNotDefined.split(',');
60
60
  this.conditions.push(headless.ResultTemplatesHelpers.fieldsMustNotBeDefined(fieldNames));
61
61
  }
62
- this.conditions.push(...resultTemplateCommon.makeMatchConditions(this.mustMatch, this.mustNotMatch));
62
+ this.conditions.push(...stencilResultTemplateCommon.makeMatchConditions(this.mustMatch, this.mustNotMatch));
63
63
  }
64
64
  render() {
65
65
  if (!this.conditions.every((condition) => condition(this.result))) {
@@ -1 +1 @@
1
- {"file":"atomic-field-condition.entry.cjs.js","mappings":";;;;;;;;;;;;;;;;;;;AAAA,MAAM,uBAAuB,GAAG,wCAAwC,CAAC;AACzE,mCAAe,uBAAuB;;;;;;;;;;;;MCuBzB,oBAAoB;;;;;;;QAgBO,cAAS,GAC7C,EAAE,CAAC;;;;;QAMiC,iBAAY,GAChD,EAAE,CAAC;QAEG,eAAU,GAA8B,EAAE,CAAC;QAC3C,oBAAe,GAAG,KAAK,CAAC;;;yBAV9B,EAAE;4BAOF,EAAE;;IAOG,iBAAiB;QACtB,IAAI,IAAI,CAAC,SAAS,EAAE;YAClB,MAAM,UAAU,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YAC7C,IAAI,CAAC,UAAU,CAAC,IAAI,CAClBA,+BAAsB,CAAC,mBAAmB,CAAC,UAAU,CAAC,CACvD,CAAC;SACH;QAED,IAAI,IAAI,CAAC,YAAY,EAAE;YACrB,MAAM,UAAU,GAAG,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YAChD,IAAI,CAAC,UAAU,CAAC,IAAI,CAClBA,+BAAsB,CAAC,sBAAsB,CAAC,UAAU,CAAC,CAC1D,CAAC;SACH;QAED,IAAI,CAAC,UAAU,CAAC,IAAI,CAClB,GAAGC,wCAAmB,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,YAAY,CAAC,CAC1D,CAAC;KACH;IAEM,MAAM;QACX,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,SAAS,KAAK,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,EAAE;YACjE,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC;YAC5B,OAAO,EAAE,CAAC;SACX;QAED,OAAOC,qBAAQ,CAAC;KACjB;IAEM,gBAAgB;QACrB,IAAI,CAAC,eAAe,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;KAC5C;;;AA9CqC;IAA7BC,kBAAO,CAAC,EAAC,WAAW,EAAE,IAAI,EAAC,CAAC;uDAChC;AAMiC;IAA7BA,kBAAO,CAAC,EAAC,WAAW,EAAE,IAAI,EAAC,CAAC;0DAChC;AAKoB;IAAxBC,sCAAa,EAAE;oDAAyB;;;;;","names":["ResultTemplatesHelpers","makeMatchConditions","h","MapProp","ResultContext"],"sources":["src/components/search/result-template-components/atomic-field-condition/atomic-field-condition.pcss?tag=atomic-field-condition","src/components/search/result-template-components/atomic-field-condition/atomic-field-condition.tsx"],"sourcesContent":["atomic-field-condition {\n max-width: 100%;\n}\n","import {\n Result,\n ResultTemplateCondition,\n ResultTemplatesHelpers,\n} from '@coveo/headless';\nimport {Component, Prop, h, Element} from '@stencil/core';\nimport {MapProp} from '../../../../utils/props-utils';\nimport {makeMatchConditions} from '../../../common/result-templates/result-template-common';\nimport {ResultContext} from '../result-template-decorators';\n\n/**\n * The `atomic-field-condition` component takes a list of conditions that, if fulfilled, apply the template in which it's defined.\n * The condition properties can be based on any top-level result property of the `result` object, not restricted to fields (e.g., `isRecommendation`).\n *\n * @slot default - The content to display if the conditions are met.\n *\n * @MapProp name: mustMatch;attr: must-match;docs: The field and values that define which result items the condition must be applied to. For example, a template with the following attribute only applies to result items whose `filetype` is `lithiummessage` or `YouTubePlaylist`: `must-match-filetype=\"lithiummessage,YouTubePlaylist\"`;type: Record<string, string[]> ;default: {}\n * @MapProp name: mustNotMatch;attr: must-not-match;docs: The field and values that define which result items the condition must not be applied to. For example, a template with the following attribute only applies to result items whose `filetype` is not `lithiummessage`: `must-not-match-filetype=\"lithiummessage\";type: Record<string, string[]> ;default: {}\n */\n@Component({\n tag: 'atomic-field-condition',\n styleUrl: 'atomic-field-condition.pcss',\n shadow: false,\n})\nexport class AtomicFieldCondition {\n @Element() host!: HTMLElement;\n\n /**\n * Verifies whether the specified fields are defined.\n */\n @Prop({reflect: true}) ifDefined?: string;\n /**\n * Verifies whether the specified fields are not defined.\n */\n @Prop({reflect: true}) ifNotDefined?: string;\n\n /**\n * Verifies whether the specified fields match the specified values.\n * @type {Record<string, string[]>}\n */\n @Prop() @MapProp({splitValues: true}) mustMatch: Record<string, string[]> =\n {};\n\n /**\n * Verifies whether the specified fields do not match the specified values.\n * @type {Record<string, string[]>}\n */\n @Prop() @MapProp({splitValues: true}) mustNotMatch: Record<string, string[]> =\n {};\n\n private conditions: ResultTemplateCondition[] = [];\n private shouldBeRemoved = false;\n\n @ResultContext() private result!: Result;\n\n public componentWillLoad() {\n if (this.ifDefined) {\n const fieldNames = this.ifDefined.split(',');\n this.conditions.push(\n ResultTemplatesHelpers.fieldsMustBeDefined(fieldNames)\n );\n }\n\n if (this.ifNotDefined) {\n const fieldNames = this.ifNotDefined.split(',');\n this.conditions.push(\n ResultTemplatesHelpers.fieldsMustNotBeDefined(fieldNames)\n );\n }\n\n this.conditions.push(\n ...makeMatchConditions(this.mustMatch, this.mustNotMatch)\n );\n }\n\n public render() {\n if (!this.conditions.every((condition) => condition(this.result))) {\n this.shouldBeRemoved = true;\n return '';\n }\n\n return <slot />;\n }\n\n public componentDidLoad() {\n this.shouldBeRemoved && this.host.remove();\n }\n}\n"],"version":3}
1
+ {"file":"atomic-field-condition.entry.cjs.js","mappings":";;;;;;;;;;;;;;;;;;;AAAA,MAAM,uBAAuB,GAAG,wCAAwC,CAAC;AACzE,mCAAe,uBAAuB;;;;;;;;;;;;MCuBzB,oBAAoB;;;;;;;QAgBO,cAAS,GAC7C,EAAE,CAAC;;;;;QAMiC,iBAAY,GAChD,EAAE,CAAC;QAEG,eAAU,GAA8B,EAAE,CAAC;QAC3C,oBAAe,GAAG,KAAK,CAAC;;;yBAV9B,EAAE;4BAOF,EAAE;;IAOG,iBAAiB;QACtB,IAAI,IAAI,CAAC,SAAS,EAAE;YAClB,MAAM,UAAU,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YAC7C,IAAI,CAAC,UAAU,CAAC,IAAI,CAClBA,+BAAsB,CAAC,mBAAmB,CAAC,UAAU,CAAC,CACvD,CAAC;SACH;QAED,IAAI,IAAI,CAAC,YAAY,EAAE;YACrB,MAAM,UAAU,GAAG,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YAChD,IAAI,CAAC,UAAU,CAAC,IAAI,CAClBA,+BAAsB,CAAC,sBAAsB,CAAC,UAAU,CAAC,CAC1D,CAAC;SACH;QAED,IAAI,CAAC,UAAU,CAAC,IAAI,CAClB,GAAGC,+CAAmB,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,YAAY,CAAC,CAC1D,CAAC;KACH;IAEM,MAAM;QACX,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,SAAS,KAAK,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,EAAE;YACjE,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC;YAC5B,OAAO,EAAE,CAAC;SACX;QAED,OAAOC,qBAAQ,CAAC;KACjB;IAEM,gBAAgB;QACrB,IAAI,CAAC,eAAe,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;KAC5C;;;AA9CqC;IAA7BC,kBAAO,CAAC,EAAC,WAAW,EAAE,IAAI,EAAC,CAAC;uDAChC;AAMiC;IAA7BA,kBAAO,CAAC,EAAC,WAAW,EAAE,IAAI,EAAC,CAAC;0DAChC;AAKoB;IAAxBC,sCAAa,EAAE;oDAAyB;;;;;","names":["ResultTemplatesHelpers","makeMatchConditions","h","MapProp","ResultContext"],"sources":["src/components/search/result-template-components/atomic-field-condition/atomic-field-condition.pcss?tag=atomic-field-condition","src/components/search/result-template-components/atomic-field-condition/atomic-field-condition.tsx"],"sourcesContent":["atomic-field-condition {\n max-width: 100%;\n}\n","import {\n Result,\n ResultTemplateCondition,\n ResultTemplatesHelpers,\n} from '@coveo/headless';\nimport {Component, Prop, h, Element} from '@stencil/core';\nimport {MapProp} from '../../../../utils/props-utils';\nimport {makeMatchConditions} from '../../../common/result-templates/stencil-result-template-common';\nimport {ResultContext} from '../result-template-decorators';\n\n/**\n * The `atomic-field-condition` component takes a list of conditions that, if fulfilled, apply the template in which it's defined.\n * The condition properties can be based on any top-level result property of the `result` object, not restricted to fields (e.g., `isRecommendation`).\n *\n * @slot default - The content to display if the conditions are met.\n *\n * @MapProp name: mustMatch;attr: must-match;docs: The field and values that define which result items the condition must be applied to. For example, a template with the following attribute only applies to result items whose `filetype` is `lithiummessage` or `YouTubePlaylist`: `must-match-filetype=\"lithiummessage,YouTubePlaylist\"`;type: Record<string, string[]> ;default: {}\n * @MapProp name: mustNotMatch;attr: must-not-match;docs: The field and values that define which result items the condition must not be applied to. For example, a template with the following attribute only applies to result items whose `filetype` is not `lithiummessage`: `must-not-match-filetype=\"lithiummessage\";type: Record<string, string[]> ;default: {}\n */\n@Component({\n tag: 'atomic-field-condition',\n styleUrl: 'atomic-field-condition.pcss',\n shadow: false,\n})\nexport class AtomicFieldCondition {\n @Element() host!: HTMLElement;\n\n /**\n * Verifies whether the specified fields are defined.\n */\n @Prop({reflect: true}) ifDefined?: string;\n /**\n * Verifies whether the specified fields are not defined.\n */\n @Prop({reflect: true}) ifNotDefined?: string;\n\n /**\n * Verifies whether the specified fields match the specified values.\n * @type {Record<string, string[]>}\n */\n @Prop() @MapProp({splitValues: true}) mustMatch: Record<string, string[]> =\n {};\n\n /**\n * Verifies whether the specified fields do not match the specified values.\n * @type {Record<string, string[]>}\n */\n @Prop() @MapProp({splitValues: true}) mustNotMatch: Record<string, string[]> =\n {};\n\n private conditions: ResultTemplateCondition[] = [];\n private shouldBeRemoved = false;\n\n @ResultContext() private result!: Result;\n\n public componentWillLoad() {\n if (this.ifDefined) {\n const fieldNames = this.ifDefined.split(',');\n this.conditions.push(\n ResultTemplatesHelpers.fieldsMustBeDefined(fieldNames)\n );\n }\n\n if (this.ifNotDefined) {\n const fieldNames = this.ifNotDefined.split(',');\n this.conditions.push(\n ResultTemplatesHelpers.fieldsMustNotBeDefined(fieldNames)\n );\n }\n\n this.conditions.push(\n ...makeMatchConditions(this.mustMatch, this.mustNotMatch)\n );\n }\n\n public render() {\n if (!this.conditions.every((condition) => condition(this.result))) {\n this.shouldBeRemoved = true;\n return '';\n }\n\n return <slot />;\n }\n\n public componentDidLoad() {\n this.shouldBeRemoved && this.host.remove();\n }\n}\n"],"version":3}
@@ -23,7 +23,7 @@ const AtomicFormatCurrency = class {
23
23
  }
24
24
  render() {
25
25
  if (this.error) {
26
- return (index.h("atomic-component-error", { key: 'af6838ce71462de1c33af19501ca0eabf434afe5', element: this.host, error: this.error }));
26
+ return (index.h("atomic-component-error", { key: '3c36da499a9f54d0cd2e9fde56e3cf8b7d560b89', element: this.host, error: this.error }));
27
27
  }
28
28
  }
29
29
  get host() { return index.getElement(this); }
@@ -35,7 +35,7 @@ const AtomicFormatNumber = class {
35
35
  }
36
36
  render() {
37
37
  if (this.error) {
38
- return (index.h("atomic-component-error", { key: 'b628208b9523337f2043180ce4b0c49e798462c7', element: this.host, error: this.error }));
38
+ return (index.h("atomic-component-error", { key: '6cd7c1ec24822765f7cfed26d1f14d5e6990cf12', element: this.host, error: this.error }));
39
39
  }
40
40
  }
41
41
  get host() { return index.getElement(this); }
@@ -38,7 +38,7 @@ const AtomicFormatUnit = class {
38
38
  }
39
39
  render() {
40
40
  if (this.error) {
41
- return (index.h("atomic-component-error", { key: 'b9661d5b5575fcc413456872fba86c5a51479de5', element: this.host, error: this.error }));
41
+ return (index.h("atomic-component-error", { key: '9bf183f8ac84ed4149a53d6c9cfb1ab11221700e', element: this.host, error: this.error }));
42
42
  }
43
43
  }
44
44
  get host() { return index.getElement(this); }
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-757bc886.js');
6
- const clock = require('./clock-f03ff827.js');
6
+ const clock = require('./clock-7aeb19d0.js');
7
7
  const stencilIconButton = require('./stencil-iconButton-738b1548.js');
8
8
  require('./stencil-button-94b89acc.js');
9
9
  require('./event-utils-9bfcf3c5.js');
@@ -21,7 +21,7 @@ const AtomicInsightHistoryToggle = class {
21
21
  this.tooltip = '';
22
22
  }
23
23
  render() {
24
- return (index.h(stencilIconButton.IconButton, { key: '6b51befa85ec864f15534e4ca42e0bdbb2692e24', partPrefix: "insight-history-toggle", style: "outline-neutral", icon: clock.Clock, ariaLabel: "history", onClick: this.clickCallback, title: this.tooltip }));
24
+ return (index.h(stencilIconButton.IconButton, { key: '6b51befa85ec864f15534e4ca42e0bdbb2692e24', partPrefix: "insight-history-toggle", style: "outline-neutral", icon: clock.Clockicon, ariaLabel: "history", onClick: this.clickCallback, title: this.tooltip }));
25
25
  }
26
26
  };
27
27
  AtomicInsightHistoryToggle.style = AtomicInsightHistoryToggleStyle0;
@@ -1 +1 @@
1
- {"file":"atomic-insight-history-toggle.entry.cjs.js","mappings":";;;;;;;;;;;AAAA,MAAM,6BAA6B,GAAG,0ljEAA0ljE,CAAC;AACjojE,yCAAe,6BAA6B;;MCW/B,0BAA0B;;;QACP,kBAAa,GAAe,SAAQ,CAAC;QAErC,YAAO,GAAG,EAAE,CAAC;6BAFe,SAAQ;uBAE1B,EAAE;;IAEnC,MAAM;QACX,QACEA,QAACC,4BAAU,qDACT,UAAU,EAAC,wBAAwB,EACnC,KAAK,EAAC,iBAAiB,EACvB,IAAI,EAAEC,WAAS,EACf,SAAS,EAAC,SAAS,EACnB,OAAO,EAAE,IAAI,CAAC,aAAa,EAC3B,KAAK,EAAE,IAAI,CAAC,OAAO,GACnB,EACF;KACH;;;;;;","names":["h","IconButton","Clockicon"],"sources":["src/components/insight/atomic-insight-history-toggle/atomic-insight-history-toggle.pcss?tag=atomic-insight-history-toggle&encapsulation=shadow","src/components/insight/atomic-insight-history-toggle/atomic-insight-history-toggle.tsx"],"sourcesContent":["@import '../../../global/global.pcss';\n","import {Component, h, Prop} from '@stencil/core';\nimport Clockicon from '../../../images/clock.svg';\nimport {IconButton} from '../../common/stencil-iconButton';\n\n/**\n * @internal\n */\n@Component({\n tag: 'atomic-insight-history-toggle',\n styleUrl: 'atomic-insight-history-toggle.pcss',\n shadow: true,\n})\nexport class AtomicInsightHistoryToggle {\n @Prop({mutable: true}) public clickCallback: () => void = () => {};\n\n @Prop({mutable: true}) public tooltip = '';\n\n public render() {\n return (\n <IconButton\n partPrefix=\"insight-history-toggle\"\n style=\"outline-neutral\"\n icon={Clockicon}\n ariaLabel=\"history\"\n onClick={this.clickCallback}\n title={this.tooltip}\n />\n );\n }\n}\n"],"version":3}
1
+ {"file":"atomic-insight-history-toggle.entry.cjs.js","mappings":";;;;;;;;;;;AAAA,MAAM,6BAA6B,GAAG,0ljEAA0ljE,CAAC;AACjojE,yCAAe,6BAA6B;;MCW/B,0BAA0B;;;QACP,kBAAa,GAAe,SAAQ,CAAC;QAErC,YAAO,GAAG,EAAE,CAAC;6BAFe,SAAQ;uBAE1B,EAAE;;IAEnC,MAAM;QACX,QACEA,QAACC,4BAAU,qDACT,UAAU,EAAC,wBAAwB,EACnC,KAAK,EAAC,iBAAiB,EACvB,IAAI,EAAEC,eAAS,EACf,SAAS,EAAC,SAAS,EACnB,OAAO,EAAE,IAAI,CAAC,aAAa,EAC3B,KAAK,EAAE,IAAI,CAAC,OAAO,GACnB,EACF;KACH;;;;;;","names":["h","IconButton","Clockicon"],"sources":["src/components/insight/atomic-insight-history-toggle/atomic-insight-history-toggle.pcss?tag=atomic-insight-history-toggle&encapsulation=shadow","src/components/insight/atomic-insight-history-toggle/atomic-insight-history-toggle.tsx"],"sourcesContent":["@import '../../../global/global.pcss';\n","import {Component, h, Prop} from '@stencil/core';\nimport Clockicon from '../../../images/clock.svg';\nimport {IconButton} from '../../common/stencil-iconButton';\n\n/**\n * @internal\n */\n@Component({\n tag: 'atomic-insight-history-toggle',\n styleUrl: 'atomic-insight-history-toggle.pcss',\n shadow: true,\n})\nexport class AtomicInsightHistoryToggle {\n @Prop({mutable: true}) public clickCallback: () => void = () => {};\n\n @Prop({mutable: true}) public tooltip = '';\n\n public render() {\n return (\n <IconButton\n partPrefix=\"insight-history-toggle\"\n style=\"outline-neutral\"\n icon={Clockicon}\n ariaLabel=\"history\"\n onClick={this.clickCallback}\n title={this.tooltip}\n />\n );\n }\n}\n"],"version":3}
@@ -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-f75fd435.js');
8
+ const analyticsConfig = require('./analytics-config-7fafe2ee.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');
@@ -4,13 +4,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-757bc886.js');
6
6
  const propsUtils = require('./props-utils-1e4ba1b0.js');
7
- const resultTemplateCommon = require('./result-template-common-84bd4057.js');
7
+ const stencilResultTemplateCommon = require('./stencil-result-template-common-bb38948f.js');
8
8
  require('@coveo/bueno');
9
9
  require('./utils-7153ae6b.js');
10
10
  require('./purify-85b542e2.js');
11
11
  require('./_commonjsHelpers-b3309d7b.js');
12
12
  require('@coveo/headless');
13
- require('./table-element-utils-4865b735.js');
13
+ require('./table-element-utils-2cc6dc82.js');
14
14
  require('./item-layout-sections-b09ba4b3.js');
15
15
 
16
16
  var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
@@ -54,7 +54,7 @@ const AtomicInsightResultChildrenTemplate = class {
54
54
  this.mustNotMatch = {};
55
55
  }
56
56
  connectedCallback() {
57
- this.resultTemplateCommon = new resultTemplateCommon.ResultTemplateCommon({
57
+ this.resultTemplateCommon = new stencilResultTemplateCommon.ResultTemplateCommon({
58
58
  host: this.host,
59
59
  setError: (err) => {
60
60
  this.error = err;
@@ -63,8 +63,8 @@ const AtomicInsightResultChildrenTemplate = class {
63
63
  });
64
64
  }
65
65
  componentWillLoad() {
66
- this.conditions = resultTemplateCommon.makeDefinedConditions(this.ifDefined, this.ifNotDefined);
67
- this.resultTemplateCommon.matchConditions = resultTemplateCommon.makeMatchConditions(this.mustMatch, this.mustNotMatch);
66
+ this.conditions = stencilResultTemplateCommon.makeDefinedConditions(this.ifDefined, this.ifNotDefined);
67
+ this.resultTemplateCommon.matchConditions = stencilResultTemplateCommon.makeMatchConditions(this.mustMatch, this.mustNotMatch);
68
68
  }
69
69
  /**
70
70
  * Gets the appropriate result template based on conditions applied.
@@ -1 +1 @@
1
- {"file":"atomic-insight-result-children-template.entry.cjs.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;MAgBa,mCAAmC;IAkD9C;;;;;;;;;QAtCe,eAAU,GAA8B,EAAE,CAAC;;;;;;QAqBb,cAAS,GAGlD,EAAE,CAAC;;;;;;QAOsC,iBAAY,GAGrD,EAAE,CAAC;;0BAlCgD,EAAE;;;yBAwBrD,EAAE;4BAUF,EAAE;KAIU;IAEhB,iBAAiB;QACf,IAAI,CAAC,oBAAoB,GAAG,IAAIA,yCAAoB,CAAC;YACnD,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,QAAQ,EAAE,CAAC,GAAG;gBACZ,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC;aAClB;YACD,YAAY,EAAE,CAAC,gCAAgC,CAAC;SACjD,CAAC,CAAC;KACJ;IAEM,iBAAiB;QACtB,IAAI,CAAC,UAAU,GAAGC,0CAAqB,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC;QAC3E,IAAI,CAAC,oBAAoB,CAAC,eAAe,GAAGC,wCAAmB,CAC7D,IAAI,CAAC,SAAS,EACd,IAAI,CAAC,YAAY,CAClB,CAAC;KACH;;;;IAMM,MAAM,WAAW;QACtB,OAAO,IAAI,CAAC,oBAAoB,CAAC,WAAW,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;KAC3E;IAEM,MAAM;QACX,OAAO,IAAI,CAAC,oBAAoB,CAAC,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;KAC5D;;;AA/C4C;IAApCC,kBAAO,CAAC,EAAC,WAAW,EAAE,IAAI,EAAC,CAAC;sEAG9B;AAOsC;IAApCA,kBAAO,CAAC,EAAC,WAAW,EAAE,IAAI,EAAC,CAAC;yEAG9B;;;;","names":["ResultTemplateCommon","makeDefinedConditions","makeMatchConditions","MapProp"],"sources":["src/components/insight/result-templates/atomic-insight-result-children-template/atomic-insight-result-children-template.tsx"],"sourcesContent":["import {ResultTemplate, ResultTemplateCondition} from '@coveo/headless';\nimport {Component, Element, Prop, State, Method} from '@stencil/core';\nimport {MapProp} from '../../../../utils/props-utils';\nimport {\n makeDefinedConditions,\n makeMatchConditions,\n ResultTemplateCommon,\n} from '../../../common/result-templates/result-template-common';\n\n/**\n * @internal\n */\n@Component({\n tag: 'atomic-insight-result-children-template',\n shadow: true,\n})\nexport class AtomicInsightResultChildrenTemplate {\n @Element() public host!: HTMLDivElement;\n\n @State() public error!: Error;\n\n /**\n * A function that must return true on results for the result template to apply.\n * Set programmatically before initialization, not via attribute.\n *\n * For example, the following targets a template and sets a condition to make it apply only to results whose `title` contains `singapore`:\n * `document.querySelector('#target-template').conditions = [(result) => /singapore/i.test(result.title)];`\n */\n @Prop() public conditions: ResultTemplateCondition[] = [];\n\n /**\n * The field that, when defined on a result item, would allow the template to be applied.\n *\n * For example, a template with the following attribute only applies to result items whose `filetype` and `sourcetype` fields are defined: `if-defined=\"filetype,sourcetype\"`\n */\n @Prop({reflect: true}) ifDefined?: string;\n\n /**\n * The field that, when defined on a result item, would prevent the template from being applied.\n *\n * For example, a template with the following attribute only applies to result items whose `filetype` and `sourcetype` fields are NOT defined: `if-not-defined=\"filetype,sourcetype\"`\n */\n @Prop({reflect: true}) ifNotDefined?: string;\n\n /**\n * The field and values that define which result items the condition must be applied to.\n *\n * For example, a template with the following attribute only applies to result items whose `filetype` is `lithiummessage` or `YouTubePlaylist`: `must-match-filetype=\"lithiummessage,YouTubePlaylist\"`\n */\n @Prop() @MapProp({splitValues: true}) public mustMatch: Record<\n string,\n string[]\n > = {};\n\n /**\n * The field and values that define which result items the condition must not be applied to.\n *\n * For example, a template with the following attribute only applies to result items whose `filetype` is not `lithiummessage`: `must-not-match-filetype=\"lithiummessage\"`\n */\n @Prop() @MapProp({splitValues: true}) public mustNotMatch: Record<\n string,\n string[]\n > = {};\n\n public resultTemplateCommon!: ResultTemplateCommon;\n\n constructor() {}\n\n connectedCallback() {\n this.resultTemplateCommon = new ResultTemplateCommon({\n host: this.host,\n setError: (err) => {\n this.error = err;\n },\n validParents: ['atomic-insight-result-children'],\n });\n }\n\n public componentWillLoad() {\n this.conditions = makeDefinedConditions(this.ifDefined, this.ifNotDefined);\n this.resultTemplateCommon.matchConditions = makeMatchConditions(\n this.mustMatch,\n this.mustNotMatch\n );\n }\n\n /**\n * Gets the appropriate result template based on conditions applied.\n */\n @Method()\n public async getTemplate(): Promise<ResultTemplate<DocumentFragment> | null> {\n return this.resultTemplateCommon.getTemplate(this.conditions, this.error);\n }\n\n public render() {\n return this.resultTemplateCommon.renderIfError(this.error);\n }\n}\n"],"version":3}
1
+ {"file":"atomic-insight-result-children-template.entry.cjs.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;MAgBa,mCAAmC;IAkD9C;;;;;;;;;QAtCe,eAAU,GAA8B,EAAE,CAAC;;;;;;QAqBb,cAAS,GAGlD,EAAE,CAAC;;;;;;QAOsC,iBAAY,GAGrD,EAAE,CAAC;;0BAlCgD,EAAE;;;yBAwBrD,EAAE;4BAUF,EAAE;KAIU;IAEhB,iBAAiB;QACf,IAAI,CAAC,oBAAoB,GAAG,IAAIA,gDAAoB,CAAC;YACnD,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,QAAQ,EAAE,CAAC,GAAG;gBACZ,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC;aAClB;YACD,YAAY,EAAE,CAAC,gCAAgC,CAAC;SACjD,CAAC,CAAC;KACJ;IAEM,iBAAiB;QACtB,IAAI,CAAC,UAAU,GAAGC,iDAAqB,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC;QAC3E,IAAI,CAAC,oBAAoB,CAAC,eAAe,GAAGC,+CAAmB,CAC7D,IAAI,CAAC,SAAS,EACd,IAAI,CAAC,YAAY,CAClB,CAAC;KACH;;;;IAMM,MAAM,WAAW;QACtB,OAAO,IAAI,CAAC,oBAAoB,CAAC,WAAW,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;KAC3E;IAEM,MAAM;QACX,OAAO,IAAI,CAAC,oBAAoB,CAAC,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;KAC5D;;;AA/C4C;IAApCC,kBAAO,CAAC,EAAC,WAAW,EAAE,IAAI,EAAC,CAAC;sEAG9B;AAOsC;IAApCA,kBAAO,CAAC,EAAC,WAAW,EAAE,IAAI,EAAC,CAAC;yEAG9B;;;;","names":["ResultTemplateCommon","makeDefinedConditions","makeMatchConditions","MapProp"],"sources":["src/components/insight/result-templates/atomic-insight-result-children-template/atomic-insight-result-children-template.tsx"],"sourcesContent":["import {ResultTemplate, ResultTemplateCondition} from '@coveo/headless';\nimport {Component, Element, Prop, State, Method} from '@stencil/core';\nimport {MapProp} from '../../../../utils/props-utils';\nimport {\n makeDefinedConditions,\n makeMatchConditions,\n ResultTemplateCommon,\n} from '../../../common/result-templates/stencil-result-template-common';\n\n/**\n * @internal\n */\n@Component({\n tag: 'atomic-insight-result-children-template',\n shadow: true,\n})\nexport class AtomicInsightResultChildrenTemplate {\n @Element() public host!: HTMLDivElement;\n\n @State() public error!: Error;\n\n /**\n * A function that must return true on results for the result template to apply.\n * Set programmatically before initialization, not via attribute.\n *\n * For example, the following targets a template and sets a condition to make it apply only to results whose `title` contains `singapore`:\n * `document.querySelector('#target-template').conditions = [(result) => /singapore/i.test(result.title)];`\n */\n @Prop() public conditions: ResultTemplateCondition[] = [];\n\n /**\n * The field that, when defined on a result item, would allow the template to be applied.\n *\n * For example, a template with the following attribute only applies to result items whose `filetype` and `sourcetype` fields are defined: `if-defined=\"filetype,sourcetype\"`\n */\n @Prop({reflect: true}) ifDefined?: string;\n\n /**\n * The field that, when defined on a result item, would prevent the template from being applied.\n *\n * For example, a template with the following attribute only applies to result items whose `filetype` and `sourcetype` fields are NOT defined: `if-not-defined=\"filetype,sourcetype\"`\n */\n @Prop({reflect: true}) ifNotDefined?: string;\n\n /**\n * The field and values that define which result items the condition must be applied to.\n *\n * For example, a template with the following attribute only applies to result items whose `filetype` is `lithiummessage` or `YouTubePlaylist`: `must-match-filetype=\"lithiummessage,YouTubePlaylist\"`\n */\n @Prop() @MapProp({splitValues: true}) public mustMatch: Record<\n string,\n string[]\n > = {};\n\n /**\n * The field and values that define which result items the condition must not be applied to.\n *\n * For example, a template with the following attribute only applies to result items whose `filetype` is not `lithiummessage`: `must-not-match-filetype=\"lithiummessage\"`\n */\n @Prop() @MapProp({splitValues: true}) public mustNotMatch: Record<\n string,\n string[]\n > = {};\n\n public resultTemplateCommon!: ResultTemplateCommon;\n\n constructor() {}\n\n connectedCallback() {\n this.resultTemplateCommon = new ResultTemplateCommon({\n host: this.host,\n setError: (err) => {\n this.error = err;\n },\n validParents: ['atomic-insight-result-children'],\n });\n }\n\n public componentWillLoad() {\n this.conditions = makeDefinedConditions(this.ifDefined, this.ifNotDefined);\n this.resultTemplateCommon.matchConditions = makeMatchConditions(\n this.mustMatch,\n this.mustNotMatch\n );\n }\n\n /**\n * Gets the appropriate result template based on conditions applied.\n */\n @Method()\n public async getTemplate(): Promise<ResultTemplate<DocumentFragment> | null> {\n return this.resultTemplateCommon.getTemplate(this.conditions, this.error);\n }\n\n public render() {\n return this.resultTemplateCommon.renderIfError(this.error);\n }\n}\n"],"version":3}
@@ -4,13 +4,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-757bc886.js');
6
6
  const propsUtils = require('./props-utils-1e4ba1b0.js');
7
- const resultTemplateCommon = require('./result-template-common-84bd4057.js');
7
+ const stencilResultTemplateCommon = require('./stencil-result-template-common-bb38948f.js');
8
8
  require('@coveo/bueno');
9
9
  require('./utils-7153ae6b.js');
10
10
  require('./purify-85b542e2.js');
11
11
  require('./_commonjsHelpers-b3309d7b.js');
12
12
  require('@coveo/headless');
13
- require('./table-element-utils-4865b735.js');
13
+ require('./table-element-utils-2cc6dc82.js');
14
14
  require('./item-layout-sections-b09ba4b3.js');
15
15
 
16
16
  var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
@@ -55,7 +55,7 @@ const AtomicInsightResultTemplate = class {
55
55
  this.mustNotMatch = {};
56
56
  }
57
57
  connectedCallback() {
58
- this.resultTemplateCommon = new resultTemplateCommon.ResultTemplateCommon({
58
+ this.resultTemplateCommon = new stencilResultTemplateCommon.ResultTemplateCommon({
59
59
  host: this.host,
60
60
  setError: (err) => {
61
61
  this.error = err;
@@ -68,8 +68,8 @@ const AtomicInsightResultTemplate = class {
68
68
  });
69
69
  }
70
70
  componentWillLoad() {
71
- this.conditions = resultTemplateCommon.makeDefinedConditions(this.ifDefined, this.ifNotDefined);
72
- this.resultTemplateCommon.matchConditions = resultTemplateCommon.makeMatchConditions(this.mustMatch, this.mustNotMatch);
71
+ this.conditions = stencilResultTemplateCommon.makeDefinedConditions(this.ifDefined, this.ifNotDefined);
72
+ this.resultTemplateCommon.matchConditions = stencilResultTemplateCommon.makeMatchConditions(this.mustMatch, this.mustNotMatch);
73
73
  }
74
74
  /**
75
75
  * Gets the appropriate result template based on conditions applied.
@@ -1 +1 @@
1
- {"file":"atomic-insight-result-template.entry.cjs.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;MAmBa,2BAA2B;IAmDtC;;QA7CO,oBAAe,GAAqC,EAAE,CAAC;;;;;;;;QAS/C,eAAU,GAAqC,EAAE,CAAC;;;;;;QAqBpB,cAAS,GAGlD,EAAE,CAAC;;;;;;QAOsC,iBAAY,GAGrD,EAAE,CAAC;;0BAlCuD,EAAE;;;yBAwB5D,EAAE;4BAUF,EAAE;KAEU;IAEhB,iBAAiB;QACf,IAAI,CAAC,oBAAoB,GAAG,IAAIA,yCAAoB,CAAC;YACnD,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,QAAQ,EAAE,CAAC,GAAG;gBACZ,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC;aAClB;YACD,YAAY,EAAE;gBACZ,4BAA4B;gBAC5B,mCAAmC;aACpC;YACD,UAAU,EAAE,IAAI;SACjB,CAAC,CAAC;KACJ;IAEM,iBAAiB;QACtB,IAAI,CAAC,UAAU,GAAGC,0CAAqB,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC;QAC3E,IAAI,CAAC,oBAAoB,CAAC,eAAe,GAAGC,wCAAmB,CAC7D,IAAI,CAAC,SAAS,EACd,IAAI,CAAC,YAAY,CAClB,CAAC;KACH;;;;IAMM,MAAM,WAAW;QACtB,OAAO,IAAI,CAAC,oBAAoB,CAAC,WAAW,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;KAC3E;IAEM,MAAM;QACX,OAAO,IAAI,CAAC,oBAAoB,CAAC,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;KAC5D;;;AAjD4C;IAApCC,kBAAO,CAAC,EAAC,WAAW,EAAE,IAAI,EAAC,CAAC;8DAG9B;AAOsC;IAApCA,kBAAO,CAAC,EAAC,WAAW,EAAE,IAAI,EAAC,CAAC;iEAG9B;;;;","names":["ResultTemplateCommon","makeDefinedConditions","makeMatchConditions","MapProp"],"sources":["src/components/insight/result-templates/atomic-insight-result-template/atomic-insight-result-template.tsx"],"sourcesContent":["import {\n ResultTemplate as InsightResultTemplate,\n ResultTemplateCondition as InsightResultTemplateCondition,\n} from '@coveo/headless/insight';\nimport {Component, Element, Prop, Method, State} from '@stencil/core';\nimport {MapProp} from '../../../../utils/props-utils';\nimport {\n makeDefinedConditions,\n makeMatchConditions,\n ResultTemplateCommon,\n} from '../../../common/result-templates/result-template-common';\n\n/**\n * @internal\n */\n@Component({\n tag: 'atomic-insight-result-template',\n shadow: true,\n})\nexport class AtomicInsightResultTemplate {\n private resultTemplateCommon!: ResultTemplateCommon;\n\n @State() public error!: Error;\n\n @Element() public host!: HTMLDivElement;\n public matchConditions: InsightResultTemplateCondition[] = [];\n\n /**\n * A function that must return true on results for the result template to apply.\n * Set programmatically before initialization, not via attribute.\n *\n * For example, the following targets a template and sets a condition to make it apply only to results whose `title` contains `singapore`:\n * `document.querySelector('#target-template').conditions = [(result) => /singapore/i.test(result.title)];`\n */\n @Prop() public conditions: InsightResultTemplateCondition[] = [];\n\n /**\n * The field that, when defined on a result item, would allow the template to be applied.\n *\n * For example, a template with the following attribute only applies to result items whose `filetype` and `sourcetype` fields are defined: `if-defined=\"filetype,sourcetype\"`\n */\n @Prop({reflect: true}) ifDefined?: string;\n\n /**\n * The field that, when defined on a result item, would prevent the template from being applied.\n *\n * For example, a template with the following attribute only applies to result items whose `filetype` and `sourcetype` fields are NOT defined: `if-not-defined=\"filetype,sourcetype\"`\n */\n @Prop({reflect: true}) ifNotDefined?: string;\n\n /**\n * The field and values that define which result items the condition must be applied to.\n *\n * For example, a template with the following attribute only applies to result items whose `filetype` is `lithiummessage` or `YouTubePlaylist`: `must-match-filetype=\"lithiummessage,YouTubePlaylist\"`\n */\n @Prop() @MapProp({splitValues: true}) public mustMatch: Record<\n string,\n string[]\n > = {};\n\n /**\n * The field and values that define which result items the condition must not be applied to.\n *\n * For example, a template with the following attribute only applies to result items whose `filetype` is not `lithiummessage`: `must-not-match-filetype=\"lithiummessage\"`\n */\n @Prop() @MapProp({splitValues: true}) public mustNotMatch: Record<\n string,\n string[]\n > = {};\n\n constructor() {}\n\n connectedCallback() {\n this.resultTemplateCommon = new ResultTemplateCommon({\n host: this.host,\n setError: (err) => {\n this.error = err;\n },\n validParents: [\n 'atomic-insight-result-list',\n 'atomic-insight-folded-result-list',\n ],\n allowEmpty: true,\n });\n }\n\n public componentWillLoad() {\n this.conditions = makeDefinedConditions(this.ifDefined, this.ifNotDefined);\n this.resultTemplateCommon.matchConditions = makeMatchConditions(\n this.mustMatch,\n this.mustNotMatch\n );\n }\n\n /**\n * Gets the appropriate result template based on conditions applied.\n */\n @Method()\n public async getTemplate(): Promise<InsightResultTemplate<DocumentFragment> | null> {\n return this.resultTemplateCommon.getTemplate(this.conditions, this.error);\n }\n\n public render() {\n return this.resultTemplateCommon.renderIfError(this.error);\n }\n}\n"],"version":3}
1
+ {"file":"atomic-insight-result-template.entry.cjs.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;MAmBa,2BAA2B;IAmDtC;;QA7CO,oBAAe,GAAqC,EAAE,CAAC;;;;;;;;QAS/C,eAAU,GAAqC,EAAE,CAAC;;;;;;QAqBpB,cAAS,GAGlD,EAAE,CAAC;;;;;;QAOsC,iBAAY,GAGrD,EAAE,CAAC;;0BAlCuD,EAAE;;;yBAwB5D,EAAE;4BAUF,EAAE;KAEU;IAEhB,iBAAiB;QACf,IAAI,CAAC,oBAAoB,GAAG,IAAIA,gDAAoB,CAAC;YACnD,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,QAAQ,EAAE,CAAC,GAAG;gBACZ,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC;aAClB;YACD,YAAY,EAAE;gBACZ,4BAA4B;gBAC5B,mCAAmC;aACpC;YACD,UAAU,EAAE,IAAI;SACjB,CAAC,CAAC;KACJ;IAEM,iBAAiB;QACtB,IAAI,CAAC,UAAU,GAAGC,iDAAqB,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC;QAC3E,IAAI,CAAC,oBAAoB,CAAC,eAAe,GAAGC,+CAAmB,CAC7D,IAAI,CAAC,SAAS,EACd,IAAI,CAAC,YAAY,CAClB,CAAC;KACH;;;;IAMM,MAAM,WAAW;QACtB,OAAO,IAAI,CAAC,oBAAoB,CAAC,WAAW,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;KAC3E;IAEM,MAAM;QACX,OAAO,IAAI,CAAC,oBAAoB,CAAC,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;KAC5D;;;AAjD4C;IAApCC,kBAAO,CAAC,EAAC,WAAW,EAAE,IAAI,EAAC,CAAC;8DAG9B;AAOsC;IAApCA,kBAAO,CAAC,EAAC,WAAW,EAAE,IAAI,EAAC,CAAC;iEAG9B;;;;","names":["ResultTemplateCommon","makeDefinedConditions","makeMatchConditions","MapProp"],"sources":["src/components/insight/result-templates/atomic-insight-result-template/atomic-insight-result-template.tsx"],"sourcesContent":["import {\n ResultTemplate as InsightResultTemplate,\n ResultTemplateCondition as InsightResultTemplateCondition,\n} from '@coveo/headless/insight';\nimport {Component, Element, Prop, Method, State} from '@stencil/core';\nimport {MapProp} from '../../../../utils/props-utils';\nimport {\n makeDefinedConditions,\n makeMatchConditions,\n ResultTemplateCommon,\n} from '../../../common/result-templates/stencil-result-template-common';\n\n/**\n * @internal\n */\n@Component({\n tag: 'atomic-insight-result-template',\n shadow: true,\n})\nexport class AtomicInsightResultTemplate {\n private resultTemplateCommon!: ResultTemplateCommon;\n\n @State() public error!: Error;\n\n @Element() public host!: HTMLDivElement;\n public matchConditions: InsightResultTemplateCondition[] = [];\n\n /**\n * A function that must return true on results for the result template to apply.\n * Set programmatically before initialization, not via attribute.\n *\n * For example, the following targets a template and sets a condition to make it apply only to results whose `title` contains `singapore`:\n * `document.querySelector('#target-template').conditions = [(result) => /singapore/i.test(result.title)];`\n */\n @Prop() public conditions: InsightResultTemplateCondition[] = [];\n\n /**\n * The field that, when defined on a result item, would allow the template to be applied.\n *\n * For example, a template with the following attribute only applies to result items whose `filetype` and `sourcetype` fields are defined: `if-defined=\"filetype,sourcetype\"`\n */\n @Prop({reflect: true}) ifDefined?: string;\n\n /**\n * The field that, when defined on a result item, would prevent the template from being applied.\n *\n * For example, a template with the following attribute only applies to result items whose `filetype` and `sourcetype` fields are NOT defined: `if-not-defined=\"filetype,sourcetype\"`\n */\n @Prop({reflect: true}) ifNotDefined?: string;\n\n /**\n * The field and values that define which result items the condition must be applied to.\n *\n * For example, a template with the following attribute only applies to result items whose `filetype` is `lithiummessage` or `YouTubePlaylist`: `must-match-filetype=\"lithiummessage,YouTubePlaylist\"`\n */\n @Prop() @MapProp({splitValues: true}) public mustMatch: Record<\n string,\n string[]\n > = {};\n\n /**\n * The field and values that define which result items the condition must not be applied to.\n *\n * For example, a template with the following attribute only applies to result items whose `filetype` is not `lithiummessage`: `must-not-match-filetype=\"lithiummessage\"`\n */\n @Prop() @MapProp({splitValues: true}) public mustNotMatch: Record<\n string,\n string[]\n > = {};\n\n constructor() {}\n\n connectedCallback() {\n this.resultTemplateCommon = new ResultTemplateCommon({\n host: this.host,\n setError: (err) => {\n this.error = err;\n },\n validParents: [\n 'atomic-insight-result-list',\n 'atomic-insight-folded-result-list',\n ],\n allowEmpty: true,\n });\n }\n\n public componentWillLoad() {\n this.conditions = makeDefinedConditions(this.ifDefined, this.ifNotDefined);\n this.resultTemplateCommon.matchConditions = makeMatchConditions(\n this.mustMatch,\n this.mustNotMatch\n );\n }\n\n /**\n * Gets the appropriate result template based on conditions applied.\n */\n @Method()\n public async getTemplate(): Promise<InsightResultTemplate<DocumentFragment> | null> {\n return this.resultTemplateCommon.getTemplate(this.conditions, this.error);\n }\n\n public render() {\n return this.resultTemplateCommon.renderIfError(this.error);\n }\n}\n"],"version":3}
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-757bc886.js');
6
6
  const insight = require('@coveo/headless/insight');
7
- const clock = require('./clock-f03ff827.js');
7
+ const clock = require('./clock-7aeb19d0.js');
8
8
  const initializationUtils = require('./initialization-utils-92f1b080.js');
9
9
  const stencilIconButton = require('./stencil-iconButton-738b1548.js');
10
10
  require('./dom-utils-d4790328.js');
@@ -64,7 +64,7 @@ const AtomicInsightUserActionsToggle = class {
64
64
  this.modalRef.excludedCustomActions = this.excludedCustomActions;
65
65
  }
66
66
  render() {
67
- return (index.h(stencilIconButton.IconButton, { key: '944b266236746e954178687006e56395f3e24868', partPrefix: "insight-user-actions-toggle", style: "outline-neutral", icon: clock.Clock, ariaLabel: this.bindings.i18n.t('user-actions'), onClick: () => {
67
+ return (index.h(stencilIconButton.IconButton, { key: '944b266236746e954178687006e56395f3e24868', partPrefix: "insight-user-actions-toggle", style: "outline-neutral", icon: clock.Clockicon, ariaLabel: this.bindings.i18n.t('user-actions'), onClick: () => {
68
68
  this.enableModal();
69
69
  }, title: this.bindings.i18n.t('user-actions'), buttonRef: (button) => {
70
70
  if (!button) {
@@ -1 +1 @@
1
- {"file":"atomic-insight-user-actions-toggle.entry.cjs.js","mappings":";;;;;;;;;;;;;;;;AAAA,MAAM,iCAAiC,GAAG,0ljEAA0ljE,CAAC;AACrojE,6CAAe,iCAAiC;;;;;;;;;;;;MCuBnC,8BAA8B;;;;;;QAsB1B,0BAAqB,GAAa,EAAE,CAAC;;;;;qCAAH,EAAE;;IAE5C,UAAU;QACf,IAAI,CAAC,WAAW,GAAGA,wBAAuB,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE;YAC/D,OAAO,EAAE;gBACP,kBAAkB,EAAE,IAAI,CAAC,sBAAsB;gBAC/C,qBAAqB,EAAE,IAAI,CAAC,qBAAqB;aAClD;SACF,CAAC,CAAC;KACJ;IAKO,WAAW;QACjB,IAAI,CAAC,QAAQ,KAAK,IAAI,CAAC,QAAQ,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;QAC/C,IAAI,CAAC,WAAW,CAAC,kBAAkB,EAAE,CAAC;KACvC;IAEO,SAAS;QACf,IAAI,IAAI,CAAC,QAAQ,EAAE;YACjB,OAAO;SACR;QAED,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC,aAAa,CAAC,mCAAmC,CAAC,CAAC;QAE5E,IAAI,CAAC,IAAI,CAAC,qBAAqB,CAAC,aAAa,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC9D,IAAI,CAAC,QAAQ,CAAC,UAAU,GAAG,IAAI,CAAC,SAAS,CAAC;QAC1C,IAAI,CAAC,QAAQ,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;QACnC,IAAI,CAAC,QAAQ,CAAC,sBAAsB,GAAG,IAAI,CAAC,sBAAsB,CAAC;QACnE,IAAI,CAAC,QAAQ,CAAC,qBAAqB,GAAG,IAAI,CAAC,qBAAqB,CAAC;KAClE;IAEM,MAAM;QACX,QACEC,QAACC,4BAAU,qDACT,UAAU,EAAC,6BAA6B,EACxC,KAAK,EAAC,iBAAiB,EACvB,IAAI,EAAEC,WAAS,EACf,SAAS,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,cAAc,CAAC,EAC/C,OAAO,EAAE;gBACP,IAAI,CAAC,WAAW,EAAE,CAAC;aACpB,EACD,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,cAAc,CAAC,EAC3C,SAAS,EAAE,CAAC,MAA0B;gBACpC,IAAI,CAAC,MAAM,EAAE;oBACX,OAAO;iBACR;gBACD,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC;gBACxB,IAAI,CAAC,SAAS,EAAE,CAAC;aAClB,GACD,EACF;KACH;;;AAvE4B;IAA5BC,sCAAkB,EAAE;gEAAmC;AAIjD;IAFNC,yCAAqB,CAAC,aAAa,CAAC;wEAEa;;;;;","names":["buildInsightUserActions","h","IconButton","Clockicon","InitializeBindings","BindStateToController"],"sources":["src/components/insight/user-actions/atomic-insight-user-actions-toggle/atomic-insight-user-actions-toggle.pcss?tag=atomic-insight-user-actions-toggle&encapsulation=shadow","src/components/insight/user-actions/atomic-insight-user-actions-toggle/atomic-insight-user-actions-toggle.tsx"],"sourcesContent":["@import '../../../../global/global.pcss';\n","import {\n buildUserActions as buildInsightUserActions,\n UserActions as InsightUserActions,\n UserActionsState as InsightUserActionsState,\n} from '@coveo/headless/insight';\nimport {Component, h, Prop, Element, State} from '@stencil/core';\nimport Clockicon from '../../../../images/clock.svg';\nimport {\n BindStateToController,\n InitializableComponent,\n InitializeBindings,\n} from '../../../../utils/initialization-utils';\nimport {IconButton} from '../../../common/stencil-iconButton';\nimport {InsightBindings} from '../../atomic-insight-interface/atomic-insight-interface';\n\n/**\n * Internal component of the atomic-insight-interface\n * The `atomic-insight-user-actions-toggle` component displays a button that opens a modal containing the user actions timeline component.\n */\n@Component({\n tag: 'atomic-insight-user-actions-toggle',\n styleUrl: 'atomic-insight-user-actions-toggle.pcss',\n shadow: true,\n})\nexport class AtomicInsightUserActionsToggle\n implements InitializableComponent<InsightBindings>\n{\n @Element() public host!: HTMLElement;\n @InitializeBindings() public bindings!: InsightBindings;\n public userActions!: InsightUserActions;\n @BindStateToController('userActions')\n @State()\n public userActionsState!: InsightUserActionsState;\n @State() public error!: Error;\n\n /**\n * The ID of the user whose actions are being displayed.\n */\n @Prop() public userId!: string;\n /**\n * The date and time when the case was created. For example \"2024-01-01T00:00:00Z\"\n */\n @Prop() public ticketCreationDateTime!: string;\n /**\n * The names of custom events to exclude.\n */\n @Prop() public excludedCustomActions: string[] = [];\n\n public initialize() {\n this.userActions = buildInsightUserActions(this.bindings.engine, {\n options: {\n ticketCreationDate: this.ticketCreationDateTime,\n excludedCustomActions: this.excludedCustomActions,\n },\n });\n }\n\n private buttonRef?: HTMLButtonElement;\n private modalRef?: HTMLAtomicInsightUserActionsModalElement;\n\n private enableModal() {\n this.modalRef && (this.modalRef.isOpen = true);\n this.userActions.logOpenUserActions();\n }\n\n private loadModal() {\n if (this.modalRef) {\n return;\n }\n\n this.modalRef = document.createElement('atomic-insight-user-actions-modal');\n\n this.host.insertAdjacentElement('beforebegin', this.modalRef);\n this.modalRef.openButton = this.buttonRef;\n this.modalRef.userId = this.userId;\n this.modalRef.ticketCreationDateTime = this.ticketCreationDateTime;\n this.modalRef.excludedCustomActions = this.excludedCustomActions;\n }\n\n public render() {\n return (\n <IconButton\n partPrefix=\"insight-user-actions-toggle\"\n style=\"outline-neutral\"\n icon={Clockicon}\n ariaLabel={this.bindings.i18n.t('user-actions')}\n onClick={() => {\n this.enableModal();\n }}\n title={this.bindings.i18n.t('user-actions')}\n buttonRef={(button?: HTMLButtonElement) => {\n if (!button) {\n return;\n }\n this.buttonRef = button;\n this.loadModal();\n }}\n />\n );\n }\n}\n"],"version":3}
1
+ {"file":"atomic-insight-user-actions-toggle.entry.cjs.js","mappings":";;;;;;;;;;;;;;;;AAAA,MAAM,iCAAiC,GAAG,0ljEAA0ljE,CAAC;AACrojE,6CAAe,iCAAiC;;;;;;;;;;;;MCuBnC,8BAA8B;;;;;;QAsB1B,0BAAqB,GAAa,EAAE,CAAC;;;;;qCAAH,EAAE;;IAE5C,UAAU;QACf,IAAI,CAAC,WAAW,GAAGA,wBAAuB,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE;YAC/D,OAAO,EAAE;gBACP,kBAAkB,EAAE,IAAI,CAAC,sBAAsB;gBAC/C,qBAAqB,EAAE,IAAI,CAAC,qBAAqB;aAClD;SACF,CAAC,CAAC;KACJ;IAKO,WAAW;QACjB,IAAI,CAAC,QAAQ,KAAK,IAAI,CAAC,QAAQ,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;QAC/C,IAAI,CAAC,WAAW,CAAC,kBAAkB,EAAE,CAAC;KACvC;IAEO,SAAS;QACf,IAAI,IAAI,CAAC,QAAQ,EAAE;YACjB,OAAO;SACR;QAED,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC,aAAa,CAAC,mCAAmC,CAAC,CAAC;QAE5E,IAAI,CAAC,IAAI,CAAC,qBAAqB,CAAC,aAAa,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC9D,IAAI,CAAC,QAAQ,CAAC,UAAU,GAAG,IAAI,CAAC,SAAS,CAAC;QAC1C,IAAI,CAAC,QAAQ,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;QACnC,IAAI,CAAC,QAAQ,CAAC,sBAAsB,GAAG,IAAI,CAAC,sBAAsB,CAAC;QACnE,IAAI,CAAC,QAAQ,CAAC,qBAAqB,GAAG,IAAI,CAAC,qBAAqB,CAAC;KAClE;IAEM,MAAM;QACX,QACEC,QAACC,4BAAU,qDACT,UAAU,EAAC,6BAA6B,EACxC,KAAK,EAAC,iBAAiB,EACvB,IAAI,EAAEC,eAAS,EACf,SAAS,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,cAAc,CAAC,EAC/C,OAAO,EAAE;gBACP,IAAI,CAAC,WAAW,EAAE,CAAC;aACpB,EACD,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,cAAc,CAAC,EAC3C,SAAS,EAAE,CAAC,MAA0B;gBACpC,IAAI,CAAC,MAAM,EAAE;oBACX,OAAO;iBACR;gBACD,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC;gBACxB,IAAI,CAAC,SAAS,EAAE,CAAC;aAClB,GACD,EACF;KACH;;;AAvE4B;IAA5BC,sCAAkB,EAAE;gEAAmC;AAIjD;IAFNC,yCAAqB,CAAC,aAAa,CAAC;wEAEa;;;;;","names":["buildInsightUserActions","h","IconButton","Clockicon","InitializeBindings","BindStateToController"],"sources":["src/components/insight/user-actions/atomic-insight-user-actions-toggle/atomic-insight-user-actions-toggle.pcss?tag=atomic-insight-user-actions-toggle&encapsulation=shadow","src/components/insight/user-actions/atomic-insight-user-actions-toggle/atomic-insight-user-actions-toggle.tsx"],"sourcesContent":["@import '../../../../global/global.pcss';\n","import {\n buildUserActions as buildInsightUserActions,\n UserActions as InsightUserActions,\n UserActionsState as InsightUserActionsState,\n} from '@coveo/headless/insight';\nimport {Component, h, Prop, Element, State} from '@stencil/core';\nimport Clockicon from '../../../../images/clock.svg';\nimport {\n BindStateToController,\n InitializableComponent,\n InitializeBindings,\n} from '../../../../utils/initialization-utils';\nimport {IconButton} from '../../../common/stencil-iconButton';\nimport {InsightBindings} from '../../atomic-insight-interface/atomic-insight-interface';\n\n/**\n * Internal component of the atomic-insight-interface\n * The `atomic-insight-user-actions-toggle` component displays a button that opens a modal containing the user actions timeline component.\n */\n@Component({\n tag: 'atomic-insight-user-actions-toggle',\n styleUrl: 'atomic-insight-user-actions-toggle.pcss',\n shadow: true,\n})\nexport class AtomicInsightUserActionsToggle\n implements InitializableComponent<InsightBindings>\n{\n @Element() public host!: HTMLElement;\n @InitializeBindings() public bindings!: InsightBindings;\n public userActions!: InsightUserActions;\n @BindStateToController('userActions')\n @State()\n public userActionsState!: InsightUserActionsState;\n @State() public error!: Error;\n\n /**\n * The ID of the user whose actions are being displayed.\n */\n @Prop() public userId!: string;\n /**\n * The date and time when the case was created. For example \"2024-01-01T00:00:00Z\"\n */\n @Prop() public ticketCreationDateTime!: string;\n /**\n * The names of custom events to exclude.\n */\n @Prop() public excludedCustomActions: string[] = [];\n\n public initialize() {\n this.userActions = buildInsightUserActions(this.bindings.engine, {\n options: {\n ticketCreationDate: this.ticketCreationDateTime,\n excludedCustomActions: this.excludedCustomActions,\n },\n });\n }\n\n private buttonRef?: HTMLButtonElement;\n private modalRef?: HTMLAtomicInsightUserActionsModalElement;\n\n private enableModal() {\n this.modalRef && (this.modalRef.isOpen = true);\n this.userActions.logOpenUserActions();\n }\n\n private loadModal() {\n if (this.modalRef) {\n return;\n }\n\n this.modalRef = document.createElement('atomic-insight-user-actions-modal');\n\n this.host.insertAdjacentElement('beforebegin', this.modalRef);\n this.modalRef.openButton = this.buttonRef;\n this.modalRef.userId = this.userId;\n this.modalRef.ticketCreationDateTime = this.ticketCreationDateTime;\n this.modalRef.excludedCustomActions = this.excludedCustomActions;\n }\n\n public render() {\n return (\n <IconButton\n partPrefix=\"insight-user-actions-toggle\"\n style=\"outline-neutral\"\n icon={Clockicon}\n ariaLabel={this.bindings.i18n.t('user-actions')}\n onClick={() => {\n this.enableModal();\n }}\n title={this.bindings.i18n.t('user-actions')}\n buttonRef={(button?: HTMLButtonElement) => {\n if (!button) {\n return;\n }\n this.buttonRef = button;\n this.loadModal();\n }}\n />\n );\n }\n}\n"],"version":3}
@@ -309,7 +309,7 @@ const AtomicNumericFacet = class {
309
309
  }
310
310
  render() {
311
311
  const { searchStatusState: { firstSearchExecuted, hasError }, bindings: { i18n }, } = this;
312
- return (index.h(facetGuard.FacetGuard, { key: '95f72de0f0123a8c7f6dca33540552016b17fa80', enabled: this.enabled, firstSearchExecuted: firstSearchExecuted, hasError: hasError, hasResults: this.shouldRenderFacet }, firstSearchExecuted ? (index.h(facetPlaceholder.FacetContainer, null, index.h(facetPlaceholder.FacetHeader, { i18n: i18n, label: this.label, onClearFilters: () => {
312
+ return (index.h(facetGuard.FacetGuard, { key: '333e7325e16ce23a1d39baad905ea96f649ff007', enabled: this.enabled, firstSearchExecuted: firstSearchExecuted, hasError: hasError, hasResults: this.shouldRenderFacet }, firstSearchExecuted ? (index.h(facetPlaceholder.FacetContainer, null, index.h(facetPlaceholder.FacetHeader, { i18n: i18n, label: this.label, onClearFilters: () => {
313
313
  this.focusTarget.focusAfterSearch();
314
314
  if (this.filterState?.range) {
315
315
  this.filter?.clear();
@@ -145,6 +145,28 @@ const QuickviewIframe = ({ title, onSetIframeRef, uniqueIdentifier, content, san
145
145
  } }));
146
146
  };
147
147
 
148
+ const buildQuickviewPreviewBar = (words, highlightKeywords, iframe) => {
149
+ if (!iframe) {
150
+ return;
151
+ }
152
+ const documentWriter = iframe.contentDocument;
153
+ if (!documentWriter) {
154
+ return;
155
+ }
156
+ const bar = buildPreviewBar(documentWriter);
157
+ if (highlightKeywords.highlightNone) {
158
+ bar.remove();
159
+ return;
160
+ }
161
+ const docHeight = documentWriter.body.scrollHeight;
162
+ Object.values(words).forEach((word) => {
163
+ word.elements.forEach((wordElement) => {
164
+ const previewUnit = buildPreviewUnit(documentWriter, word, wordElement, docHeight, highlightKeywords);
165
+ bar.appendChild(previewUnit);
166
+ });
167
+ });
168
+ documentWriter.body.appendChild(bar);
169
+ };
148
170
  const buildPreviewBar = (documentWriter) => {
149
171
  const previewBarId = 'CoveoPreviewBar';
150
172
  const bar = documentWriter.getElementById(previewBarId) ||
@@ -174,28 +196,6 @@ const buildPreviewUnit = (documentWriter, word, wordElement, docHeight, highligh
174
196
  previewUnit.style.backgroundColor = word.color;
175
197
  return previewUnit;
176
198
  };
177
- const buildQuickviewPreviewBar = (words, highlightKeywords, iframe) => {
178
- if (!iframe) {
179
- return;
180
- }
181
- const documentWriter = iframe.contentDocument;
182
- if (!documentWriter) {
183
- return;
184
- }
185
- const bar = buildPreviewBar(documentWriter);
186
- if (highlightKeywords.highlightNone) {
187
- bar.remove();
188
- return;
189
- }
190
- const docHeight = documentWriter.body.scrollHeight;
191
- Object.values(words).forEach((word) => {
192
- word.elements.forEach((wordElement) => {
193
- const previewUnit = buildPreviewUnit(documentWriter, word, wordElement, docHeight, highlightKeywords);
194
- bar.appendChild(previewUnit);
195
- });
196
- });
197
- documentWriter.body.appendChild(bar);
198
- };
199
199
 
200
200
  const rgbToHsv = (r, g, b) => {
201
201
  const max = Math.max(r, g, b);
@@ -590,7 +590,7 @@ const AtomicQuickviewModal = class {
590
590
  });
591
591
  }
592
592
  render() {
593
- return (index.h("atomic-modal", { key: '84b950ecdc79dd6a1b53d3af44c62219740bc572', fullscreen: this.bindings.store.isMobile(), class: 'atomic-quickview-modal', isOpen: this.isOpen, close: () => this.onClose(), exportparts: exportParts.ATOMIC_MODAL_EXPORT_PARTS }, this.renderHeader(), this.renderBody(), this.renderFooter()));
593
+ return (index.h("atomic-modal", { key: '8ff1438b0d7ff43933a1fc0800891a7cb7065043', fullscreen: this.bindings.store.isMobile(), class: 'atomic-quickview-modal', isOpen: this.isOpen, close: () => this.onClose(), exportparts: exportParts.ATOMIC_MODAL_EXPORT_PARTS }, this.renderHeader(), this.renderBody(), this.renderFooter()));
594
594
  }
595
595
  static get watchers() { return {
596
596
  "highlightKeywords": ["watchHighlightKeywords"]