@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
@@ -481,7 +481,7 @@ const AtomicCategoryFacet = class {
481
481
  }
482
482
  render() {
483
483
  const { bindings: { i18n }, label, facetState: { facetSearch, enabled, valuesAsTrees, selectedValueAncestry }, searchStatusState: { hasError, firstSearchExecuted }, } = this;
484
- return (h(FacetGuard, { key: '0ffcbacbe73edf368726d16f5b9e848901f23cf2', enabled: enabled, firstSearchExecuted: firstSearchExecuted, hasError: hasError, hasResults: valuesAsTrees.length > 0 }, firstSearchExecuted ? (h(FacetContainer, null, this.renderHeader(), !this.isCollapsed && [
484
+ return (h(FacetGuard, { key: 'f2968f1c76d3d8b6b49b31e78294920afe26139c', enabled: enabled, firstSearchExecuted: firstSearchExecuted, hasError: hasError, hasResults: valuesAsTrees.length > 0 }, firstSearchExecuted ? (h(FacetContainer, null, this.renderHeader(), !this.isCollapsed && [
485
485
  this.renderSearchInput(),
486
486
  shouldDisplaySearchResults(facetSearch) ? (h(Fragment, null, facetSearch.values.length ? (h(FacetValuesGroup, { i18n: i18n, label: label, query: facetSearch.query }, this.renderSearchResults())) : (h("div", { class: "mt-3" })), this.renderMatches())) : (h(Fragment, null, h(FacetValuesGroup, { i18n: i18n, label: label }, this.hasParents ? (h(CategoryFacetParentAsTreeContainer, { isTopLevel: true, className: "mt-3" }, this.renderValuesTree(selectedValueAncestry, true))) : (h(CategoryFacetChildrenAsTreeContainer, { className: "mt-3" }, this.renderChildren()))), this.renderShowMoreLess())),
487
487
  ])) : (h(FacetPlaceholder, { isCollapsed: this.isCollapsed, numberOfValues: this.numberOfValues }))));
@@ -262,7 +262,7 @@ const AtomicFacet = class {
262
262
  return true;
263
263
  }
264
264
  render() {
265
- return (h(FacetGuard, { key: '86e0199496414e899a074abed60f78b09644f41d', enabled: this.facetState.enabled, hasError: this.searchStatusState.hasError, firstSearchExecuted: this.searchStatusState.firstSearchExecuted, hasResults: this.facetState.values.length > 0 }, this.searchStatusState.firstSearchExecuted ? (h(FacetContainer, null, h(FacetHeader, { i18n: this.bindings.i18n, label: this.definedLabel, onClearFilters: () => {
265
+ return (h(FacetGuard, { key: 'fa5c10a45b72a6ae62a005a752b5808ce3fadad8', enabled: this.facetState.enabled, hasError: this.searchStatusState.hasError, firstSearchExecuted: this.searchStatusState.firstSearchExecuted, hasResults: this.facetState.values.length > 0 }, this.searchStatusState.firstSearchExecuted ? (h(FacetContainer, null, h(FacetHeader, { i18n: this.bindings.i18n, label: this.definedLabel, onClearFilters: () => {
266
266
  this.focusTargets.header.focusAfterSearch();
267
267
  this.facet.deselectAll();
268
268
  }, numberOfActiveValues: this.activeValues.length, isCollapsed: this.isCollapsed, headingLevel: this.headingLevel, onToggleCollapse: () => (this.isCollapsed = !this.isCollapsed), headerRef: (el) => this.focusTargets.header.setTarget(el) }), this.renderBody())) : (h(FacetPlaceholder, { numberOfValues: this.numberOfValues, isCollapsed: this.isCollapsed }))));
@@ -1,13 +1,13 @@
1
1
  import { r as registerInstance, h, g as getElement } from './index-3f35faca.js';
2
2
  import { ResultTemplatesHelpers } from '@coveo/headless';
3
3
  import { M as MapProp } from './props-utils-e97ad6bd.js';
4
- import { m as makeMatchConditions } from './result-template-common-995b94f8.js';
4
+ import { m as makeMatchConditions } from './stencil-result-template-common-19af5cfb.js';
5
5
  import { R as ResultContext } from './result-template-decorators-2ed76ea9.js';
6
6
  import '@coveo/bueno';
7
7
  import './utils-7161486d.js';
8
8
  import './purify-c7ebd240.js';
9
9
  import './_commonjsHelpers-1789f0cf.js';
10
- import './table-element-utils-49d22ec6.js';
10
+ import './table-element-utils-1dbc5ef6.js';
11
11
  import './item-layout-sections-8afb5049.js';
12
12
  import './stencil-item-decorators-6c453c11.js';
13
13
  import './dom-utils-f6086cd3.js';
@@ -1 +1 @@
1
- {"file":"atomic-field-condition.entry.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,CAClB,sBAAsB,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,CAClB,sBAAsB,CAAC,sBAAsB,CAAC,UAAU,CAAC,CAC1D,CAAC;SACH;QAED,IAAI,CAAC,UAAU,CAAC,IAAI,CAClB,GAAG,mBAAmB,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,OAAO,eAAQ,CAAC;KACjB;IAEM,gBAAgB;QACrB,IAAI,CAAC,eAAe,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;KAC5C;;;AA9CqC;IAA7B,OAAO,CAAC,EAAC,WAAW,EAAE,IAAI,EAAC,CAAC;uDAChC;AAMiC;IAA7B,OAAO,CAAC,EAAC,WAAW,EAAE,IAAI,EAAC,CAAC;0DAChC;AAKoB;IAAxB,aAAa,EAAE;oDAAyB;;;;;","names":[],"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.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,CAClB,sBAAsB,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,CAClB,sBAAsB,CAAC,sBAAsB,CAAC,UAAU,CAAC,CAC1D,CAAC;SACH;QAED,IAAI,CAAC,UAAU,CAAC,IAAI,CAClB,GAAG,mBAAmB,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,OAAO,eAAQ,CAAC;KACjB;IAEM,gBAAgB;QACrB,IAAI,CAAC,eAAe,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;KAC5C;;;AA9CqC;IAA7B,OAAO,CAAC,EAAC,WAAW,EAAE,IAAI,EAAC,CAAC;uDAChC;AAMiC;IAA7B,OAAO,CAAC,EAAC,WAAW,EAAE,IAAI,EAAC,CAAC;0DAChC;AAKoB;IAAxB,aAAa,EAAE;oDAAyB;;;;;","names":[],"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}
@@ -19,7 +19,7 @@ const AtomicFormatCurrency = class {
19
19
  }
20
20
  render() {
21
21
  if (this.error) {
22
- return (h("atomic-component-error", { key: 'af6838ce71462de1c33af19501ca0eabf434afe5', element: this.host, error: this.error }));
22
+ return (h("atomic-component-error", { key: '3c36da499a9f54d0cd2e9fde56e3cf8b7d560b89', element: this.host, error: this.error }));
23
23
  }
24
24
  }
25
25
  get host() { return getElement(this); }
@@ -31,7 +31,7 @@ const AtomicFormatNumber = class {
31
31
  }
32
32
  render() {
33
33
  if (this.error) {
34
- return (h("atomic-component-error", { key: 'b628208b9523337f2043180ce4b0c49e798462c7', element: this.host, error: this.error }));
34
+ return (h("atomic-component-error", { key: '6cd7c1ec24822765f7cfed26d1f14d5e6990cf12', element: this.host, error: this.error }));
35
35
  }
36
36
  }
37
37
  get host() { return getElement(this); }
@@ -34,7 +34,7 @@ const AtomicFormatUnit = class {
34
34
  }
35
35
  render() {
36
36
  if (this.error) {
37
- return (h("atomic-component-error", { key: 'b9661d5b5575fcc413456872fba86c5a51479de5', element: this.host, error: this.error }));
37
+ return (h("atomic-component-error", { key: '9bf183f8ac84ed4149a53d6c9cfb1ab11221700e', element: this.host, error: this.error }));
38
38
  }
39
39
  }
40
40
  get host() { return getElement(this); }
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h } from './index-3f35faca.js';
2
- import { C as Clock } from './clock-add3e9a5.js';
2
+ import { C as Clockicon } from './clock-b1f5d7f7.js';
3
3
  import { I as IconButton } from './stencil-iconButton-ba40899c.js';
4
4
  import './stencil-button-1a29a5df.js';
5
5
  import './event-utils-8de63ec3.js';
@@ -17,7 +17,7 @@ const AtomicInsightHistoryToggle = class {
17
17
  this.tooltip = '';
18
18
  }
19
19
  render() {
20
- return (h(IconButton, { key: '6b51befa85ec864f15534e4ca42e0bdbb2692e24', partPrefix: "insight-history-toggle", style: "outline-neutral", icon: Clock, ariaLabel: "history", onClick: this.clickCallback, title: this.tooltip }));
20
+ return (h(IconButton, { key: '6b51befa85ec864f15534e4ca42e0bdbb2692e24', partPrefix: "insight-history-toggle", style: "outline-neutral", icon: Clockicon, ariaLabel: "history", onClick: this.clickCallback, title: this.tooltip }));
21
21
  }
22
22
  };
23
23
  AtomicInsightHistoryToggle.style = AtomicInsightHistoryToggleStyle0;
@@ -1 +1 @@
1
- {"file":"atomic-insight-history-toggle.entry.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,QACE,EAAC,UAAU,qDACT,UAAU,EAAC,wBAAwB,EACnC,KAAK,EAAC,iBAAiB,EACvB,IAAI,EAAEA,KAAS,EACf,SAAS,EAAC,SAAS,EACnB,OAAO,EAAE,IAAI,CAAC,aAAa,EAC3B,KAAK,EAAE,IAAI,CAAC,OAAO,GACnB,EACF;KACH;;;;;;","names":["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.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,QACE,EAAC,UAAU,qDACT,UAAU,EAAC,wBAAwB,EACnC,KAAK,EAAC,iBAAiB,EACvB,IAAI,EAAE,SAAS,EACf,SAAS,EAAC,SAAS,EACnB,OAAO,EAAE,IAAI,CAAC,aAAa,EAC3B,KAAK,EAAE,IAAI,CAAC,OAAO,GACnB,EACF;KACH;;;;;;","names":[],"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,7 +1,7 @@
1
1
  import { r as registerInstance, s as setNonce, h, H as Host, g as getElement } from './index-3f35faca.js';
2
2
  import { m as markParentAsReady } from './init-queue-fbe942c3.js';
3
3
  import { buildResultsPerPage, loadFieldActions, buildInsightEngine } from '@coveo/headless/insight';
4
- import { g as getNextAnalyticsConfig, a as augmentWithExternalMiddleware, b as augmentAnalyticsWithAtomicVersion, C as CommonAtomicInterfaceHelper, i as instance } from './analytics-config-870dc878.js';
4
+ import { g as getNextAnalyticsConfig, a as augmentWithExternalMiddleware, b as augmentAnalyticsWithAtomicVersion, C as CommonAtomicInterfaceHelper, i as instance } from './analytics-config-a8c239d1.js';
5
5
  import { A as ArrayProp } from './props-utils-e97ad6bd.js';
6
6
  import { D as DEFAULT_MOBILE_BREAKPOINT } from './replace-breakpoint-utils-7a336631.js';
7
7
  import { u as unsetLoadingFlag, s as setLoadingFlag, r as registerFacet, g as getFacetElements, w as waitUntilAppLoaded, a as createBaseStore } from './store-015afa83.js';
@@ -1,12 +1,12 @@
1
1
  import { r as registerInstance, g as getElement } from './index-3f35faca.js';
2
2
  import { M as MapProp } from './props-utils-e97ad6bd.js';
3
- import { R as ResultTemplateCommon, a as makeDefinedConditions, m as makeMatchConditions } from './result-template-common-995b94f8.js';
3
+ import { R as ResultTemplateCommon, a as makeDefinedConditions, m as makeMatchConditions } from './stencil-result-template-common-19af5cfb.js';
4
4
  import '@coveo/bueno';
5
5
  import './utils-7161486d.js';
6
6
  import './purify-c7ebd240.js';
7
7
  import './_commonjsHelpers-1789f0cf.js';
8
8
  import '@coveo/headless';
9
- import './table-element-utils-49d22ec6.js';
9
+ import './table-element-utils-1dbc5ef6.js';
10
10
  import './item-layout-sections-8afb5049.js';
11
11
 
12
12
  var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
@@ -1 +1 @@
1
- {"file":"atomic-insight-result-children-template.entry.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,IAAI,oBAAoB,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,GAAG,qBAAqB,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC;QAC3E,IAAI,CAAC,oBAAoB,CAAC,eAAe,GAAG,mBAAmB,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;IAApC,OAAO,CAAC,EAAC,WAAW,EAAE,IAAI,EAAC,CAAC;sEAG9B;AAOsC;IAApC,OAAO,CAAC,EAAC,WAAW,EAAE,IAAI,EAAC,CAAC;yEAG9B;;;;","names":[],"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.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,IAAI,oBAAoB,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,GAAG,qBAAqB,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC;QAC3E,IAAI,CAAC,oBAAoB,CAAC,eAAe,GAAG,mBAAmB,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;IAApC,OAAO,CAAC,EAAC,WAAW,EAAE,IAAI,EAAC,CAAC;sEAG9B;AAOsC;IAApC,OAAO,CAAC,EAAC,WAAW,EAAE,IAAI,EAAC,CAAC;yEAG9B;;;;","names":[],"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}
@@ -1,12 +1,12 @@
1
1
  import { r as registerInstance, g as getElement } from './index-3f35faca.js';
2
2
  import { M as MapProp } from './props-utils-e97ad6bd.js';
3
- import { R as ResultTemplateCommon, a as makeDefinedConditions, m as makeMatchConditions } from './result-template-common-995b94f8.js';
3
+ import { R as ResultTemplateCommon, a as makeDefinedConditions, m as makeMatchConditions } from './stencil-result-template-common-19af5cfb.js';
4
4
  import '@coveo/bueno';
5
5
  import './utils-7161486d.js';
6
6
  import './purify-c7ebd240.js';
7
7
  import './_commonjsHelpers-1789f0cf.js';
8
8
  import '@coveo/headless';
9
- import './table-element-utils-49d22ec6.js';
9
+ import './table-element-utils-1dbc5ef6.js';
10
10
  import './item-layout-sections-8afb5049.js';
11
11
 
12
12
  var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
@@ -1 +1 @@
1
- {"file":"atomic-insight-result-template.entry.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,IAAI,oBAAoB,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,GAAG,qBAAqB,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC;QAC3E,IAAI,CAAC,oBAAoB,CAAC,eAAe,GAAG,mBAAmB,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;IAApC,OAAO,CAAC,EAAC,WAAW,EAAE,IAAI,EAAC,CAAC;8DAG9B;AAOsC;IAApC,OAAO,CAAC,EAAC,WAAW,EAAE,IAAI,EAAC,CAAC;iEAG9B;;;;","names":[],"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.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,IAAI,oBAAoB,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,GAAG,qBAAqB,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC;QAC3E,IAAI,CAAC,oBAAoB,CAAC,eAAe,GAAG,mBAAmB,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;IAApC,OAAO,CAAC,EAAC,WAAW,EAAE,IAAI,EAAC,CAAC;8DAG9B;AAOsC;IAApC,OAAO,CAAC,EAAC,WAAW,EAAE,IAAI,EAAC,CAAC;iEAG9B;;;;","names":[],"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}
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, h, g as getElement } from './index-3f35faca.js';
2
2
  import { buildUserActions } from '@coveo/headless/insight';
3
- import { C as Clock } from './clock-add3e9a5.js';
3
+ import { C as Clockicon } from './clock-b1f5d7f7.js';
4
4
  import { I as InitializeBindings, B as BindStateToController } from './initialization-utils-ffbc4136.js';
5
5
  import { I as IconButton } from './stencil-iconButton-ba40899c.js';
6
6
  import './dom-utils-f6086cd3.js';
@@ -60,7 +60,7 @@ const AtomicInsightUserActionsToggle = class {
60
60
  this.modalRef.excludedCustomActions = this.excludedCustomActions;
61
61
  }
62
62
  render() {
63
- return (h(IconButton, { key: '944b266236746e954178687006e56395f3e24868', partPrefix: "insight-user-actions-toggle", style: "outline-neutral", icon: Clock, ariaLabel: this.bindings.i18n.t('user-actions'), onClick: () => {
63
+ return (h(IconButton, { key: '944b266236746e954178687006e56395f3e24868', partPrefix: "insight-user-actions-toggle", style: "outline-neutral", icon: Clockicon, ariaLabel: this.bindings.i18n.t('user-actions'), onClick: () => {
64
64
  this.enableModal();
65
65
  }, title: this.bindings.i18n.t('user-actions'), buttonRef: (button) => {
66
66
  if (!button) {
@@ -1 +1 @@
1
- {"file":"atomic-insight-user-actions-toggle.entry.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,gBAAuB,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,QACE,EAAC,UAAU,qDACT,UAAU,EAAC,6BAA6B,EACxC,KAAK,EAAC,iBAAiB,EACvB,IAAI,EAAEC,KAAS,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;IAA5B,kBAAkB,EAAE;gEAAmC;AAIjD;IAFN,qBAAqB,CAAC,aAAa,CAAC;wEAEa;;;;;","names":["buildInsightUserActions","Clockicon"],"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.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,gBAAuB,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,QACE,EAAC,UAAU,qDACT,UAAU,EAAC,6BAA6B,EACxC,KAAK,EAAC,iBAAiB,EACvB,IAAI,EAAE,SAAS,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;IAA5B,kBAAkB,EAAE;gEAAmC;AAIjD;IAFN,qBAAqB,CAAC,aAAa,CAAC;wEAEa;;;;;","names":["buildInsightUserActions"],"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}
@@ -305,7 +305,7 @@ const AtomicNumericFacet = class {
305
305
  }
306
306
  render() {
307
307
  const { searchStatusState: { firstSearchExecuted, hasError }, bindings: { i18n }, } = this;
308
- return (h(FacetGuard, { key: '95f72de0f0123a8c7f6dca33540552016b17fa80', enabled: this.enabled, firstSearchExecuted: firstSearchExecuted, hasError: hasError, hasResults: this.shouldRenderFacet }, firstSearchExecuted ? (h(FacetContainer, null, h(FacetHeader, { i18n: i18n, label: this.label, onClearFilters: () => {
308
+ return (h(FacetGuard, { key: '333e7325e16ce23a1d39baad905ea96f649ff007', enabled: this.enabled, firstSearchExecuted: firstSearchExecuted, hasError: hasError, hasResults: this.shouldRenderFacet }, firstSearchExecuted ? (h(FacetContainer, null, h(FacetHeader, { i18n: i18n, label: this.label, onClearFilters: () => {
309
309
  this.focusTarget.focusAfterSearch();
310
310
  if (this.filterState?.range) {
311
311
  this.filter?.clear();
@@ -141,6 +141,28 @@ const QuickviewIframe = ({ title, onSetIframeRef, uniqueIdentifier, content, san
141
141
  } }));
142
142
  };
143
143
 
144
+ const buildQuickviewPreviewBar = (words, highlightKeywords, iframe) => {
145
+ if (!iframe) {
146
+ return;
147
+ }
148
+ const documentWriter = iframe.contentDocument;
149
+ if (!documentWriter) {
150
+ return;
151
+ }
152
+ const bar = buildPreviewBar(documentWriter);
153
+ if (highlightKeywords.highlightNone) {
154
+ bar.remove();
155
+ return;
156
+ }
157
+ const docHeight = documentWriter.body.scrollHeight;
158
+ Object.values(words).forEach((word) => {
159
+ word.elements.forEach((wordElement) => {
160
+ const previewUnit = buildPreviewUnit(documentWriter, word, wordElement, docHeight, highlightKeywords);
161
+ bar.appendChild(previewUnit);
162
+ });
163
+ });
164
+ documentWriter.body.appendChild(bar);
165
+ };
144
166
  const buildPreviewBar = (documentWriter) => {
145
167
  const previewBarId = 'CoveoPreviewBar';
146
168
  const bar = documentWriter.getElementById(previewBarId) ||
@@ -170,28 +192,6 @@ const buildPreviewUnit = (documentWriter, word, wordElement, docHeight, highligh
170
192
  previewUnit.style.backgroundColor = word.color;
171
193
  return previewUnit;
172
194
  };
173
- const buildQuickviewPreviewBar = (words, highlightKeywords, iframe) => {
174
- if (!iframe) {
175
- return;
176
- }
177
- const documentWriter = iframe.contentDocument;
178
- if (!documentWriter) {
179
- return;
180
- }
181
- const bar = buildPreviewBar(documentWriter);
182
- if (highlightKeywords.highlightNone) {
183
- bar.remove();
184
- return;
185
- }
186
- const docHeight = documentWriter.body.scrollHeight;
187
- Object.values(words).forEach((word) => {
188
- word.elements.forEach((wordElement) => {
189
- const previewUnit = buildPreviewUnit(documentWriter, word, wordElement, docHeight, highlightKeywords);
190
- bar.appendChild(previewUnit);
191
- });
192
- });
193
- documentWriter.body.appendChild(bar);
194
- };
195
195
 
196
196
  const rgbToHsv = (r, g, b) => {
197
197
  const max = Math.max(r, g, b);
@@ -586,7 +586,7 @@ const AtomicQuickviewModal = class {
586
586
  });
587
587
  }
588
588
  render() {
589
- return (h("atomic-modal", { key: '84b950ecdc79dd6a1b53d3af44c62219740bc572', fullscreen: this.bindings.store.isMobile(), class: 'atomic-quickview-modal', isOpen: this.isOpen, close: () => this.onClose(), exportparts: ATOMIC_MODAL_EXPORT_PARTS }, this.renderHeader(), this.renderBody(), this.renderFooter()));
589
+ return (h("atomic-modal", { key: '8ff1438b0d7ff43933a1fc0800891a7cb7065043', fullscreen: this.bindings.store.isMobile(), class: 'atomic-quickview-modal', isOpen: this.isOpen, close: () => this.onClose(), exportparts: ATOMIC_MODAL_EXPORT_PARTS }, this.renderHeader(), this.renderBody(), this.renderFooter()));
590
590
  }
591
591
  static get watchers() { return {
592
592
  "highlightKeywords": ["watchHighlightKeywords"]