@searchcraft/javascript-sdk 0.5.3 → 0.6.0

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 (314) hide show
  1. package/dist/cjs/{index-b76bece0.js → index-b3b77ea2.js} +2 -1
  2. package/dist/cjs/index-b3b77ea2.js.map +1 -0
  3. package/dist/cjs/index.cjs.js +4 -4
  4. package/dist/cjs/loader.cjs.js +2 -2
  5. package/dist/cjs/searchcraft-base-search-result.cjs.entry.js +3 -3
  6. package/dist/cjs/searchcraft-base-search-result.cjs.entry.js.map +1 -1
  7. package/dist/cjs/searchcraft-base-search-results.cjs.entry.js +13 -12
  8. package/dist/cjs/searchcraft-base-search-results.cjs.entry.js.map +1 -1
  9. package/dist/cjs/searchcraft-button_3.cjs.entry.js +63 -0
  10. package/dist/cjs/searchcraft-button_3.cjs.entry.js.map +1 -0
  11. package/dist/cjs/searchcraft-facet-list_3.cjs.entry.js +140 -14
  12. package/dist/cjs/searchcraft-facet-list_3.cjs.entry.js.map +1 -1
  13. package/dist/cjs/searchcraft-filter-panel.cjs.entry.js +7 -7
  14. package/dist/cjs/searchcraft-filter-panel.cjs.entry.js.map +1 -1
  15. package/dist/cjs/searchcraft-input-form_2.cjs.entry.js +227 -0
  16. package/dist/cjs/searchcraft-input-form_2.cjs.entry.js.map +1 -0
  17. package/dist/cjs/searchcraft-javascript-sdk.cjs.js +2 -2
  18. package/dist/cjs/searchcraft-popover-button.cjs.entry.js +26 -0
  19. package/dist/cjs/searchcraft-popover-button.cjs.entry.js.map +1 -0
  20. package/dist/cjs/searchcraft-popover-form.cjs.entry.js +197 -3
  21. package/dist/cjs/searchcraft-popover-form.cjs.entry.js.map +1 -1
  22. package/dist/cjs/searchcraft-popover-list-item.cjs.entry.js +32 -0
  23. package/dist/cjs/searchcraft-popover-list-item.cjs.entry.js.map +1 -0
  24. package/dist/cjs/searchcraft-results-info.cjs.entry.js +5 -5
  25. package/dist/cjs/searchcraft-results-info.cjs.entry.js.map +1 -1
  26. package/dist/cjs/{store-943576b0.js → store-d7ebcf7a.js} +280 -267
  27. package/dist/cjs/store-d7ebcf7a.js.map +1 -0
  28. package/dist/cjs/styles-7b2d06f2.js +28 -0
  29. package/dist/cjs/styles-7b2d06f2.js.map +1 -0
  30. package/dist/cjs/units-fe4d8083.js +88 -0
  31. package/dist/cjs/units-fe4d8083.js.map +1 -0
  32. package/dist/collection/collection-manifest.json +2 -1
  33. package/dist/collection/components/searchcraft-base-search-result/searchcraft-base-search-result.js +21 -16
  34. package/dist/collection/components/searchcraft-base-search-result/searchcraft-base-search-result.js.map +1 -1
  35. package/dist/collection/components/searchcraft-base-search-result/searchcraft-base-search-result.module.css +54 -4
  36. package/dist/collection/components/searchcraft-base-search-results/searchcraft-base-search-results.js +45 -13
  37. package/dist/collection/components/searchcraft-base-search-results/searchcraft-base-search-results.js.map +1 -1
  38. package/dist/collection/components/searchcraft-base-search-results/searchcraft-base-search-results.module.css +52 -2
  39. package/dist/collection/components/searchcraft-button/searchcraft-button.js +11 -6
  40. package/dist/collection/components/searchcraft-button/searchcraft-button.js.map +1 -1
  41. package/dist/collection/components/searchcraft-button/searchcraft-button.module.css +52 -2
  42. package/dist/collection/components/searchcraft-error-message/searchcraft-error-message.js +11 -2
  43. package/dist/collection/components/searchcraft-error-message/searchcraft-error-message.js.map +1 -1
  44. package/dist/collection/components/searchcraft-error-message/searchcraft-error-message.module.css +52 -2
  45. package/dist/collection/components/searchcraft-facet-list/searchcraft-facet-list.js +23 -4
  46. package/dist/collection/components/searchcraft-facet-list/searchcraft-facet-list.js.map +1 -1
  47. package/dist/collection/components/searchcraft-facet-list/searchcraft-facet-list.module.css +52 -2
  48. package/dist/collection/components/searchcraft-filter-panel/searchcraft-filter-panel.js +13 -4
  49. package/dist/collection/components/searchcraft-filter-panel/searchcraft-filter-panel.js.map +1 -1
  50. package/dist/collection/components/searchcraft-filter-panel/searchcraft-filter-panel.module.css +52 -2
  51. package/dist/collection/components/searchcraft-input-form/searchcraft-input-form.js +66 -49
  52. package/dist/collection/components/searchcraft-input-form/searchcraft-input-form.js.map +1 -1
  53. package/dist/collection/components/searchcraft-input-form/searchcraft-input-form.module.css +56 -6
  54. package/dist/collection/components/searchcraft-input-label/searchcraft-input-label.js +12 -6
  55. package/dist/collection/components/searchcraft-input-label/searchcraft-input-label.js.map +1 -1
  56. package/dist/collection/components/searchcraft-input-label/searchcraft-input-label.module.css +52 -2
  57. package/dist/collection/components/searchcraft-popover-button/searchcraft-popover-button.js +25 -0
  58. package/dist/collection/components/searchcraft-popover-button/searchcraft-popover-button.js.map +1 -0
  59. package/dist/collection/components/searchcraft-popover-form/searchcraft-popover-form.js +278 -5
  60. package/dist/collection/components/searchcraft-popover-form/searchcraft-popover-form.js.map +1 -1
  61. package/dist/collection/components/searchcraft-popover-form/searchcraft-popover-form.module.css +322 -0
  62. package/dist/collection/components/searchcraft-popover-list-item/searchcraft-popover-list-item.js +139 -0
  63. package/dist/collection/components/searchcraft-popover-list-item/searchcraft-popover-list-item.js.map +1 -0
  64. package/dist/collection/components/searchcraft-popover-list-item/searchcraft-popover-list-item.module.css +209 -0
  65. package/dist/collection/components/searchcraft-popover-list-view/searchcraft-popover-list-view.js +47 -6
  66. package/dist/collection/components/searchcraft-popover-list-view/searchcraft-popover-list-view.js.map +1 -1
  67. package/dist/collection/components/searchcraft-results-info/searchcraft-results-info.js +11 -1
  68. package/dist/collection/components/searchcraft-results-info/searchcraft-results-info.js.map +1 -1
  69. package/dist/collection/components/searchcraft-results-info/searchcraft-results-info.module.css +53 -3
  70. package/dist/collection/components/searchcraft-slider/searchcraft-slider.js +13 -8
  71. package/dist/collection/components/searchcraft-slider/searchcraft-slider.js.map +1 -1
  72. package/dist/collection/components/searchcraft-slider/searchcraft-slider.module.css +52 -2
  73. package/dist/collection/components/searchcraft-toggle-button/searchcraft-toggle-button.js +9 -5
  74. package/dist/collection/components/searchcraft-toggle-button/searchcraft-toggle-button.js.map +1 -1
  75. package/dist/collection/components/searchcraft-toggle-button/searchcraft-toggle-button.module.css +52 -2
  76. package/dist/collection/index.js +1 -1
  77. package/dist/collection/index.js.map +1 -1
  78. package/dist/collection/provider/store.js +14 -15
  79. package/dist/collection/provider/store.js.map +1 -1
  80. package/dist/collection/types/_shared.types.js +2 -0
  81. package/dist/collection/types/_shared.types.js.map +1 -0
  82. package/dist/collection/types/index.js +1 -0
  83. package/dist/collection/types/index.js.map +1 -1
  84. package/dist/collection/types/searchcraft-base-search-results.types.js.map +1 -1
  85. package/dist/collection/types/searchcraft-popover-form.types.js.map +1 -1
  86. package/dist/collection/utils/{utils.js → facets.js} +7 -105
  87. package/dist/collection/utils/facets.js.map +1 -0
  88. package/dist/collection/utils/index.js +4 -0
  89. package/dist/collection/utils/index.js.map +1 -0
  90. package/dist/collection/utils/styles.js +22 -0
  91. package/dist/collection/utils/styles.js.map +1 -0
  92. package/dist/collection/utils/units.js +83 -0
  93. package/dist/collection/utils/units.js.map +1 -0
  94. package/dist/components/index.js +6 -4
  95. package/dist/components/index.js.map +1 -1
  96. package/dist/components/p-02a16e53.js +240 -0
  97. package/dist/components/p-02a16e53.js.map +1 -0
  98. package/dist/components/{p-cbdcf6df.js → p-04c46179.js} +3 -3
  99. package/dist/components/p-04c46179.js.map +1 -0
  100. package/dist/components/p-0e38a723.js +99 -0
  101. package/dist/components/p-0e38a723.js.map +1 -0
  102. package/dist/components/p-4c45ef80.js +67 -0
  103. package/dist/components/p-4c45ef80.js.map +1 -0
  104. package/dist/components/p-755f491b.js +84 -0
  105. package/dist/components/p-755f491b.js.map +1 -0
  106. package/dist/components/p-85765b81.js +56 -0
  107. package/dist/components/p-85765b81.js.map +1 -0
  108. package/dist/components/p-953f4238.js +35 -0
  109. package/dist/components/p-953f4238.js.map +1 -0
  110. package/dist/components/p-a248ad69.js +276 -0
  111. package/dist/components/p-a248ad69.js.map +1 -0
  112. package/dist/components/p-a9bd1872.js +38 -0
  113. package/dist/components/p-a9bd1872.js.map +1 -0
  114. package/dist/components/p-cf4ced92.js +49 -0
  115. package/dist/components/p-cf4ced92.js.map +1 -0
  116. package/dist/components/{p-ad4ebde0.js → p-d6a88eed.js} +280 -267
  117. package/dist/components/p-d6a88eed.js.map +1 -0
  118. package/dist/components/p-d9551738.js +25 -0
  119. package/dist/components/p-d9551738.js.map +1 -0
  120. package/dist/components/p-f9d778b3.js +48 -0
  121. package/dist/components/p-f9d778b3.js.map +1 -0
  122. package/dist/components/searchcraft-base-search-result.js +1 -1
  123. package/dist/components/searchcraft-base-search-results.js +6 -5
  124. package/dist/components/searchcraft-base-search-results.js.map +1 -1
  125. package/dist/components/searchcraft-button.js +1 -1
  126. package/dist/components/searchcraft-error-message.js +1 -1
  127. package/dist/components/searchcraft-facet-list.js +1 -1
  128. package/dist/components/searchcraft-filter-panel.js +8 -8
  129. package/dist/components/searchcraft-filter-panel.js.map +1 -1
  130. package/dist/components/searchcraft-input-form.js +1 -241
  131. package/dist/components/searchcraft-input-form.js.map +1 -1
  132. package/dist/components/searchcraft-input-label.js +1 -1
  133. package/dist/components/searchcraft-popover-button.d.ts +11 -0
  134. package/dist/components/searchcraft-popover-button.js +39 -0
  135. package/dist/components/searchcraft-popover-button.js.map +1 -0
  136. package/dist/components/searchcraft-popover-form.js +245 -5
  137. package/dist/components/searchcraft-popover-form.js.map +1 -1
  138. package/dist/components/searchcraft-popover-list-item.d.ts +11 -0
  139. package/dist/components/searchcraft-popover-list-item.js +8 -0
  140. package/dist/components/searchcraft-popover-list-item.js.map +1 -0
  141. package/dist/components/searchcraft-popover-list-view.js +1 -1
  142. package/dist/components/searchcraft-results-info.js +3 -3
  143. package/dist/components/searchcraft-results-info.js.map +1 -1
  144. package/dist/components/searchcraft-slider.js +1 -1
  145. package/dist/components/searchcraft-toggle-button.js +1 -1
  146. package/dist/esm/{index-be042742.js → index-11551663.js} +2 -2
  147. package/dist/esm/index-11551663.js.map +1 -0
  148. package/dist/esm/index.js +2 -2
  149. package/dist/esm/loader.js +3 -3
  150. package/dist/esm/searchcraft-base-search-result.entry.js +3 -3
  151. package/dist/esm/searchcraft-base-search-result.entry.js.map +1 -1
  152. package/dist/esm/searchcraft-base-search-results.entry.js +5 -4
  153. package/dist/esm/searchcraft-base-search-results.entry.js.map +1 -1
  154. package/dist/esm/searchcraft-button_3.entry.js +57 -0
  155. package/dist/esm/searchcraft-button_3.entry.js.map +1 -0
  156. package/dist/esm/searchcraft-facet-list_3.entry.js +137 -11
  157. package/dist/esm/searchcraft-facet-list_3.entry.js.map +1 -1
  158. package/dist/esm/searchcraft-filter-panel.entry.js +6 -6
  159. package/dist/esm/searchcraft-filter-panel.entry.js.map +1 -1
  160. package/dist/esm/searchcraft-input-form_2.entry.js +222 -0
  161. package/dist/esm/searchcraft-input-form_2.entry.js.map +1 -0
  162. package/dist/esm/searchcraft-javascript-sdk.js +3 -3
  163. package/dist/esm/searchcraft-popover-button.entry.js +22 -0
  164. package/dist/esm/searchcraft-popover-button.entry.js.map +1 -0
  165. package/dist/esm/searchcraft-popover-form.entry.js +197 -3
  166. package/dist/esm/searchcraft-popover-form.entry.js.map +1 -1
  167. package/dist/esm/searchcraft-popover-list-item.entry.js +28 -0
  168. package/dist/esm/searchcraft-popover-list-item.entry.js.map +1 -0
  169. package/dist/esm/searchcraft-results-info.entry.js +4 -4
  170. package/dist/esm/searchcraft-results-info.entry.js.map +1 -1
  171. package/dist/esm/{store-eb4269d6.js → store-1058f7b0.js} +280 -267
  172. package/dist/esm/store-1058f7b0.js.map +1 -0
  173. package/dist/esm/styles-961644ef.js +25 -0
  174. package/dist/esm/styles-961644ef.js.map +1 -0
  175. package/dist/esm/units-b6eba560.js +84 -0
  176. package/dist/esm/units-b6eba560.js.map +1 -0
  177. package/dist/searchcraft-javascript-sdk/index.esm.js +1 -1
  178. package/dist/searchcraft-javascript-sdk/p-4580e8a4.entry.js +2 -0
  179. package/dist/searchcraft-javascript-sdk/p-4580e8a4.entry.js.map +1 -0
  180. package/dist/searchcraft-javascript-sdk/p-7049b93d.entry.js +2 -0
  181. package/dist/searchcraft-javascript-sdk/p-7049b93d.entry.js.map +1 -0
  182. package/dist/searchcraft-javascript-sdk/p-755f491b.js +2 -0
  183. package/dist/searchcraft-javascript-sdk/p-755f491b.js.map +1 -0
  184. package/dist/searchcraft-javascript-sdk/p-8e539d62.entry.js +2 -0
  185. package/dist/searchcraft-javascript-sdk/p-8e539d62.entry.js.map +1 -0
  186. package/dist/searchcraft-javascript-sdk/p-98640a6a.entry.js +2 -0
  187. package/dist/searchcraft-javascript-sdk/p-98640a6a.entry.js.map +1 -0
  188. package/dist/searchcraft-javascript-sdk/p-9d0f5c89.entry.js +2 -0
  189. package/dist/searchcraft-javascript-sdk/p-9d0f5c89.entry.js.map +1 -0
  190. package/dist/searchcraft-javascript-sdk/p-b8bd53ce.entry.js +2 -0
  191. package/dist/searchcraft-javascript-sdk/p-b8bd53ce.entry.js.map +1 -0
  192. package/dist/searchcraft-javascript-sdk/p-c27a3673.entry.js +2 -0
  193. package/dist/searchcraft-javascript-sdk/p-c27a3673.entry.js.map +1 -0
  194. package/dist/searchcraft-javascript-sdk/p-cd852b84.entry.js +2 -0
  195. package/dist/searchcraft-javascript-sdk/p-cd852b84.entry.js.map +1 -0
  196. package/dist/searchcraft-javascript-sdk/p-d6a88eed.js +11 -0
  197. package/dist/searchcraft-javascript-sdk/p-d6a88eed.js.map +1 -0
  198. package/dist/searchcraft-javascript-sdk/p-d9551738.js +2 -0
  199. package/dist/searchcraft-javascript-sdk/p-d9551738.js.map +1 -0
  200. package/dist/searchcraft-javascript-sdk/p-e042deb9.entry.js +2 -0
  201. package/dist/searchcraft-javascript-sdk/p-e042deb9.entry.js.map +1 -0
  202. package/dist/searchcraft-javascript-sdk/{p-d7d0b88c.js → p-e0be53df.js} +2 -2
  203. package/dist/searchcraft-javascript-sdk/{p-d7d0b88c.js.map → p-e0be53df.js.map} +1 -1
  204. package/dist/searchcraft-javascript-sdk/p-efab9f3c.entry.js +2 -0
  205. package/dist/searchcraft-javascript-sdk/p-efab9f3c.entry.js.map +1 -0
  206. package/dist/searchcraft-javascript-sdk/searchcraft-javascript-sdk.esm.js +1 -1
  207. package/dist/searchcraft-javascript-sdk/searchcraft-javascript-sdk.esm.js.map +1 -1
  208. package/dist/types/components/searchcraft-base-search-result/searchcraft-base-search-result.d.ts +53 -0
  209. package/dist/types/components/searchcraft-base-search-results/searchcraft-base-search-results.d.ts +68 -0
  210. package/dist/types/components/searchcraft-button/searchcraft-button.d.ts +20 -0
  211. package/dist/types/components/searchcraft-error-message/searchcraft-error-message.d.ts +12 -0
  212. package/dist/types/components/searchcraft-facet-list/searchcraft-facet-list.d.ts +25 -0
  213. package/dist/types/components/searchcraft-filter-panel/searchcraft-filter-panel.d.ts +12 -0
  214. package/dist/types/components/searchcraft-input-form/searchcraft-input-form.d.ts +37 -13
  215. package/dist/types/components/searchcraft-input-label/searchcraft-input-label.d.ts +13 -1
  216. package/dist/types/components/searchcraft-popover-button/searchcraft-popover-button.d.ts +7 -0
  217. package/dist/types/components/searchcraft-popover-form/searchcraft-popover-form.d.ts +97 -1
  218. package/dist/types/components/searchcraft-popover-list-item/searchcraft-popover-list-item.d.ts +22 -0
  219. package/dist/types/components/searchcraft-popover-list-view/searchcraft-popover-list-view.d.ts +19 -3
  220. package/dist/types/components/searchcraft-results-info/searchcraft-results-info.d.ts +10 -0
  221. package/dist/types/components/searchcraft-slider/searchcraft-slider.d.ts +18 -0
  222. package/dist/types/components/searchcraft-toggle-button/searchcraft-toggle-button.d.ts +11 -3
  223. package/dist/types/components.d.ts +1023 -30
  224. package/dist/types/index.d.ts +1 -1
  225. package/dist/types/provider/store.d.ts +4 -2
  226. package/dist/types/types/_shared.types.d.ts +45 -0
  227. package/dist/types/types/index.d.ts +1 -0
  228. package/dist/types/types/searchcraft-base-search-results.types.d.ts +1 -8
  229. package/dist/types/types/searchcraft-popover-form.types.d.ts +2 -1
  230. package/dist/types/utils/facets.d.ts +6 -0
  231. package/dist/types/utils/index.d.ts +3 -0
  232. package/dist/types/utils/styles.d.ts +2 -0
  233. package/dist/types/utils/{utils.d.ts → units.d.ts} +12 -19
  234. package/package.json +7 -4
  235. package/dist/cjs/index-b76bece0.js.map +0 -1
  236. package/dist/cjs/searchcraft-button_2.cjs.entry.js +0 -51
  237. package/dist/cjs/searchcraft-button_2.cjs.entry.js.map +0 -1
  238. package/dist/cjs/searchcraft-error-message.cjs.entry.js +0 -23
  239. package/dist/cjs/searchcraft-error-message.cjs.entry.js.map +0 -1
  240. package/dist/cjs/searchcraft-input-form.cjs.entry.js +0 -202
  241. package/dist/cjs/searchcraft-input-form.cjs.entry.js.map +0 -1
  242. package/dist/cjs/searchcraft-popover-list-view.cjs.entry.js +0 -26
  243. package/dist/cjs/searchcraft-popover-list-view.cjs.entry.js.map +0 -1
  244. package/dist/cjs/searchcraft-popover-result.cjs.entry.js +0 -25
  245. package/dist/cjs/searchcraft-popover-result.cjs.entry.js.map +0 -1
  246. package/dist/cjs/store-943576b0.js.map +0 -1
  247. package/dist/cjs/utils-a17279a2.js +0 -226
  248. package/dist/cjs/utils-a17279a2.js.map +0 -1
  249. package/dist/collection/components/searchcraft-popover-result/searchcraft-popover-result.js +0 -21
  250. package/dist/collection/components/searchcraft-popover-result/searchcraft-popover-result.js.map +0 -1
  251. package/dist/collection/utils/utils.js.map +0 -1
  252. package/dist/components/p-16983367.js +0 -35
  253. package/dist/components/p-16983367.js.map +0 -1
  254. package/dist/components/p-42bfef5f.js +0 -151
  255. package/dist/components/p-42bfef5f.js.map +0 -1
  256. package/dist/components/p-5380505b.js +0 -99
  257. package/dist/components/p-5380505b.js.map +0 -1
  258. package/dist/components/p-672354c0.js +0 -38
  259. package/dist/components/p-672354c0.js.map +0 -1
  260. package/dist/components/p-9cb3d38b.js +0 -48
  261. package/dist/components/p-9cb3d38b.js.map +0 -1
  262. package/dist/components/p-a23d2994.js +0 -67
  263. package/dist/components/p-a23d2994.js.map +0 -1
  264. package/dist/components/p-ad4ebde0.js.map +0 -1
  265. package/dist/components/p-bd5fede3.js +0 -41
  266. package/dist/components/p-bd5fede3.js.map +0 -1
  267. package/dist/components/p-cbdcf6df.js.map +0 -1
  268. package/dist/components/p-f308d05d.js +0 -218
  269. package/dist/components/p-f308d05d.js.map +0 -1
  270. package/dist/components/searchcraft-popover-result.d.ts +0 -11
  271. package/dist/components/searchcraft-popover-result.js +0 -38
  272. package/dist/components/searchcraft-popover-result.js.map +0 -1
  273. package/dist/esm/index-be042742.js.map +0 -1
  274. package/dist/esm/searchcraft-button_2.entry.js +0 -46
  275. package/dist/esm/searchcraft-button_2.entry.js.map +0 -1
  276. package/dist/esm/searchcraft-error-message.entry.js +0 -19
  277. package/dist/esm/searchcraft-error-message.entry.js.map +0 -1
  278. package/dist/esm/searchcraft-input-form.entry.js +0 -198
  279. package/dist/esm/searchcraft-input-form.entry.js.map +0 -1
  280. package/dist/esm/searchcraft-popover-list-view.entry.js +0 -22
  281. package/dist/esm/searchcraft-popover-list-view.entry.js.map +0 -1
  282. package/dist/esm/searchcraft-popover-result.entry.js +0 -21
  283. package/dist/esm/searchcraft-popover-result.entry.js.map +0 -1
  284. package/dist/esm/store-eb4269d6.js.map +0 -1
  285. package/dist/esm/utils-c2ce411f.js +0 -218
  286. package/dist/esm/utils-c2ce411f.js.map +0 -1
  287. package/dist/searchcraft-javascript-sdk/p-04300412.entry.js +0 -2
  288. package/dist/searchcraft-javascript-sdk/p-04300412.entry.js.map +0 -1
  289. package/dist/searchcraft-javascript-sdk/p-09c7fbef.entry.js +0 -2
  290. package/dist/searchcraft-javascript-sdk/p-09c7fbef.entry.js.map +0 -1
  291. package/dist/searchcraft-javascript-sdk/p-32068485.entry.js +0 -2
  292. package/dist/searchcraft-javascript-sdk/p-32068485.entry.js.map +0 -1
  293. package/dist/searchcraft-javascript-sdk/p-4d3682a8.entry.js +0 -2
  294. package/dist/searchcraft-javascript-sdk/p-4d3682a8.entry.js.map +0 -1
  295. package/dist/searchcraft-javascript-sdk/p-61cf9d6c.entry.js +0 -2
  296. package/dist/searchcraft-javascript-sdk/p-61cf9d6c.entry.js.map +0 -1
  297. package/dist/searchcraft-javascript-sdk/p-93b92b65.entry.js +0 -2
  298. package/dist/searchcraft-javascript-sdk/p-93b92b65.entry.js.map +0 -1
  299. package/dist/searchcraft-javascript-sdk/p-a7a7b4e0.entry.js +0 -2
  300. package/dist/searchcraft-javascript-sdk/p-a7a7b4e0.entry.js.map +0 -1
  301. package/dist/searchcraft-javascript-sdk/p-a810aeae.entry.js +0 -2
  302. package/dist/searchcraft-javascript-sdk/p-a810aeae.entry.js.map +0 -1
  303. package/dist/searchcraft-javascript-sdk/p-aa155194.entry.js +0 -2
  304. package/dist/searchcraft-javascript-sdk/p-aa155194.entry.js.map +0 -1
  305. package/dist/searchcraft-javascript-sdk/p-ad4ebde0.js +0 -11
  306. package/dist/searchcraft-javascript-sdk/p-ad4ebde0.js.map +0 -1
  307. package/dist/searchcraft-javascript-sdk/p-adadf38a.entry.js +0 -2
  308. package/dist/searchcraft-javascript-sdk/p-adadf38a.entry.js.map +0 -1
  309. package/dist/searchcraft-javascript-sdk/p-d57eba31.entry.js +0 -2
  310. package/dist/searchcraft-javascript-sdk/p-d57eba31.entry.js.map +0 -1
  311. package/dist/searchcraft-javascript-sdk/p-f308d05d.js +0 -2
  312. package/dist/searchcraft-javascript-sdk/p-f308d05d.js.map +0 -1
  313. package/dist/types/components/searchcraft-popover-result/searchcraft-popover-result.d.ts +0 -6
  314. /package/dist/collection/components/{searchcraft-popover-result/searchcraft-popover-result.module.css → searchcraft-popover-button/searchcraft-popover-button.module.css} +0 -0
@@ -0,0 +1,2 @@
1
+ import{r as s,c as e,h as c,F as r}from"./p-e0be53df.js";import{c as a}from"./p-5cdc6210.js";const n=":root{--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;--sc-input-clear-icon-size:20px;--sc-input-padding-left:44px;--sc-input-padding-right:44px;--sc-image-border-radius:8px;--sc-popover-form-border-radius:8px;--sc-popover-list-view-height:400px;--sc-popover-list-item-image-size:60px;--sc-popover-list-item-padding-horizontal:8px;--sc-popover-list-item-padding-vertical:8px;--sc-popover-modal-max-width:570px}:root{--sc-surface-disabled:#D9D9D9;--sc-surface-neutral-primary:#FFFFFF;--sc-surface-neutral-secondary:#F3F3F3;--sc-surface-neutral-light:#FFFFFF;--sc-surface-neutral-primary-hover:#FAFAFA;--sc-surface-neutral-primary-active:#F7F7F7;--sc-surface-neutral-secondary-hover:#EDEDED;--sc-surface-neutral-secondary-active:#E6E6E6;--sc-surface-brand-primary:#000000;--sc-surface-brand-secondary:#E6E6E6;--sc-surface-brand-primary-hover:#2E2E2E;--sc-surface-brand-primary-active:#292929;--sc-surface-brand-secondary-hover:#EBEBEB;--sc-surface-brand-secondary-active:#E0E0E0;--sc-surface-success-primary:#008000;--sc-surface-success-secondary:#CCFFCC;--sc-surface-success-primary-hover:#009900;--sc-surface-success-primary-active:#006600;--sc-surface-success-secondary-hover:#E6FFE6;--sc-surface-success-secondary-active:#E6FFE6;--sc-surface-caution-primary:#CC6600;--sc-surface-caution-secondary:#FFD9B3;--sc-surface-caution-primary-hover:#E57300;--sc-surface-caution-primary-active:#B25A00;--sc-surface-caution-secondary-hover:#FFE5CC;--sc-surface-caution-secondary-active:#FFCC99;--sc-surface-danger-primary:#CC0000;--sc-surface-danger-secondary:#FFCCCC;--sc-surface-danger-primary-hover:#E50000;--sc-surface-danger-primary-active:#B30000;--sc-surface-danger-secondary-hover:#FFE7E7;--sc-surface-danger-secondary-active:#FFB3B3;--sc-content-brand:#000000;--sc-content-success:#008000;--sc-content-caution:#994D00;--sc-content-danger:#990000;--sc-content-disabled:#737373;--sc-content-neutral-primary:#292929;--sc-content-neutral-secondary:#404040;--sc-content-brand-on-primary:#FFFFFF;--sc-content-success-on-primary:#FFFFFF;--sc-content-caution-on-primary:#FFFFFF;--sc-content-danger-on-primary:#FFFFFF;--sc-content-disabled-on-disabled:#737373;--sc-border-neutral:rgba(0,0,0, 0.1);--sc-border-brand:#000000;--sc-border-success:#008000;--sc-border-caution:#CC6600;--sc-border-danger:#CC0000;--sc-border-disabled:#737373}:root{--sc-font-family:sans-serif;--sc-heading-1-font-size:32px;--sc-heading-1-line-height:36px;--sc-heading-1-font-weight:700;--sc-heading-2-font-size:29px;--sc-heading-2-line-height:32px;--sc-heading-2-font-weight:700;--sc-heading-3-font-size:26px;--sc-heading-3-line-height:28px;--sc-heading-3-font-weight:700;--sc-heading-4-font-size:23px;--sc-heading-4-line-height:24px;--sc-heading-4-font-weight:700;--sc-heading-5-font-size:20px;--sc-heading-5-line-height:24px;--sc-heading-5-font-weight:700;--sc-heading-6-font-size:10px;--sc-heading-6-line-height:12px;--sc-heading-6-font-weight:700;--sc-body-bold-font-size:16px;--sc-body-bold-line-height:20px;--sc-body-bold-font-weight:700;--sc-body-font-size:16px;--sc-body-line-height:20px;--sc-body-font-weight:400;--sc-body-small-bold-font-size:12px;--sc-body-small-bold-line-height:16px;--sc-body-small-bold-font-weight:700;--sc-body-small-font-size:12px;--sc-body-small-line-height:16px;--sc-body-small-font-weight:400}:root{--sc-breakpoint-sm:576px;--sc-breakpoint-md:768px;--sc-breakpoint-lg:992px}.searchcraft-button{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-bold-font-size);font-weight:var(--sc-body-bold-font-weight);line-height:var(--sc-body-bold-line-height);border-radius:8px;display:flex;padding:12px 20px;position:relative;background-color:var(--sc-surface-brand-primary);border:1px solid var(--sc-border-primary);color:var(--sc-content-brand-on-primary)}.searchcraft-button:hover{cursor:pointer;background-color:var(--sc-surface-brand-primary-hover)}.searchcraft-button:focus{outline:2px solid var(--sc-surface-brand-primary)}.buttonLabel{position:relative}";const i=n;const t=class{constructor(c){s(this,c);this.buttonClick=e(this,"buttonClick",7);this.handleClick=()=>{this.buttonClick.emit()};this.iconElement=undefined;this.iconOnly=false;this.iconPosition="left";this.label="Search";this.isRequesting=false}render(){return c(r,{key:"52b95f09f5da9f281b250285623e150c5d952dce"},this.iconOnly?c("button",{class:a("searchcraft-button"),onClick:this.handleClick,type:"submit"},this.isRequesting?c("searchcraft-spinner-dark",null):this.iconElement):c("button",{class:a("searchcraft-button"),onClick:this.handleClick,type:"submit"},this.iconPosition==="left"&&this.iconElement,c("span",{class:a("buttonLabel","searchcraft-button-label")},this.label)))}};t.style=i;const o=":root{--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;--sc-input-clear-icon-size:20px;--sc-input-padding-left:44px;--sc-input-padding-right:44px;--sc-image-border-radius:8px;--sc-popover-form-border-radius:8px;--sc-popover-list-view-height:400px;--sc-popover-list-item-image-size:60px;--sc-popover-list-item-padding-horizontal:8px;--sc-popover-list-item-padding-vertical:8px;--sc-popover-modal-max-width:570px}:root{--sc-surface-disabled:#D9D9D9;--sc-surface-neutral-primary:#FFFFFF;--sc-surface-neutral-secondary:#F3F3F3;--sc-surface-neutral-light:#FFFFFF;--sc-surface-neutral-primary-hover:#FAFAFA;--sc-surface-neutral-primary-active:#F7F7F7;--sc-surface-neutral-secondary-hover:#EDEDED;--sc-surface-neutral-secondary-active:#E6E6E6;--sc-surface-brand-primary:#000000;--sc-surface-brand-secondary:#E6E6E6;--sc-surface-brand-primary-hover:#2E2E2E;--sc-surface-brand-primary-active:#292929;--sc-surface-brand-secondary-hover:#EBEBEB;--sc-surface-brand-secondary-active:#E0E0E0;--sc-surface-success-primary:#008000;--sc-surface-success-secondary:#CCFFCC;--sc-surface-success-primary-hover:#009900;--sc-surface-success-primary-active:#006600;--sc-surface-success-secondary-hover:#E6FFE6;--sc-surface-success-secondary-active:#E6FFE6;--sc-surface-caution-primary:#CC6600;--sc-surface-caution-secondary:#FFD9B3;--sc-surface-caution-primary-hover:#E57300;--sc-surface-caution-primary-active:#B25A00;--sc-surface-caution-secondary-hover:#FFE5CC;--sc-surface-caution-secondary-active:#FFCC99;--sc-surface-danger-primary:#CC0000;--sc-surface-danger-secondary:#FFCCCC;--sc-surface-danger-primary-hover:#E50000;--sc-surface-danger-primary-active:#B30000;--sc-surface-danger-secondary-hover:#FFE7E7;--sc-surface-danger-secondary-active:#FFB3B3;--sc-content-brand:#000000;--sc-content-success:#008000;--sc-content-caution:#994D00;--sc-content-danger:#990000;--sc-content-disabled:#737373;--sc-content-neutral-primary:#292929;--sc-content-neutral-secondary:#404040;--sc-content-brand-on-primary:#FFFFFF;--sc-content-success-on-primary:#FFFFFF;--sc-content-caution-on-primary:#FFFFFF;--sc-content-danger-on-primary:#FFFFFF;--sc-content-disabled-on-disabled:#737373;--sc-border-neutral:rgba(0,0,0, 0.1);--sc-border-brand:#000000;--sc-border-success:#008000;--sc-border-caution:#CC6600;--sc-border-danger:#CC0000;--sc-border-disabled:#737373}:root{--sc-font-family:sans-serif;--sc-heading-1-font-size:32px;--sc-heading-1-line-height:36px;--sc-heading-1-font-weight:700;--sc-heading-2-font-size:29px;--sc-heading-2-line-height:32px;--sc-heading-2-font-weight:700;--sc-heading-3-font-size:26px;--sc-heading-3-line-height:28px;--sc-heading-3-font-weight:700;--sc-heading-4-font-size:23px;--sc-heading-4-line-height:24px;--sc-heading-4-font-weight:700;--sc-heading-5-font-size:20px;--sc-heading-5-line-height:24px;--sc-heading-5-font-weight:700;--sc-heading-6-font-size:10px;--sc-heading-6-line-height:12px;--sc-heading-6-font-weight:700;--sc-body-bold-font-size:16px;--sc-body-bold-line-height:20px;--sc-body-bold-font-weight:700;--sc-body-font-size:16px;--sc-body-line-height:20px;--sc-body-font-weight:400;--sc-body-small-bold-font-size:12px;--sc-body-small-bold-line-height:16px;--sc-body-small-bold-font-weight:700;--sc-body-small-font-size:12px;--sc-body-small-line-height:16px;--sc-body-small-font-weight:400}:root{--sc-breakpoint-sm:576px;--sc-breakpoint-md:768px;--sc-breakpoint-lg:992px}.searchcraft-error-message{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-body-small-font-weight);line-height:var(--sc-body-small-line-height);color:var(--sc-content-danger);margin:0}";const d=o;const p=class{constructor(e){s(this,e);this.errorMessage=undefined}render(){return c("p",{key:"5bdc428adf6f239d66a9b0f946ee6e582de41e86",class:"searchcraft-error-message"},this.errorMessage||"Search term is required.")}};p.style=d;const h=":root{--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;--sc-input-clear-icon-size:20px;--sc-input-padding-left:44px;--sc-input-padding-right:44px;--sc-image-border-radius:8px;--sc-popover-form-border-radius:8px;--sc-popover-list-view-height:400px;--sc-popover-list-item-image-size:60px;--sc-popover-list-item-padding-horizontal:8px;--sc-popover-list-item-padding-vertical:8px;--sc-popover-modal-max-width:570px}:root{--sc-surface-disabled:#D9D9D9;--sc-surface-neutral-primary:#FFFFFF;--sc-surface-neutral-secondary:#F3F3F3;--sc-surface-neutral-light:#FFFFFF;--sc-surface-neutral-primary-hover:#FAFAFA;--sc-surface-neutral-primary-active:#F7F7F7;--sc-surface-neutral-secondary-hover:#EDEDED;--sc-surface-neutral-secondary-active:#E6E6E6;--sc-surface-brand-primary:#000000;--sc-surface-brand-secondary:#E6E6E6;--sc-surface-brand-primary-hover:#2E2E2E;--sc-surface-brand-primary-active:#292929;--sc-surface-brand-secondary-hover:#EBEBEB;--sc-surface-brand-secondary-active:#E0E0E0;--sc-surface-success-primary:#008000;--sc-surface-success-secondary:#CCFFCC;--sc-surface-success-primary-hover:#009900;--sc-surface-success-primary-active:#006600;--sc-surface-success-secondary-hover:#E6FFE6;--sc-surface-success-secondary-active:#E6FFE6;--sc-surface-caution-primary:#CC6600;--sc-surface-caution-secondary:#FFD9B3;--sc-surface-caution-primary-hover:#E57300;--sc-surface-caution-primary-active:#B25A00;--sc-surface-caution-secondary-hover:#FFE5CC;--sc-surface-caution-secondary-active:#FFCC99;--sc-surface-danger-primary:#CC0000;--sc-surface-danger-secondary:#FFCCCC;--sc-surface-danger-primary-hover:#E50000;--sc-surface-danger-primary-active:#B30000;--sc-surface-danger-secondary-hover:#FFE7E7;--sc-surface-danger-secondary-active:#FFB3B3;--sc-content-brand:#000000;--sc-content-success:#008000;--sc-content-caution:#994D00;--sc-content-danger:#990000;--sc-content-disabled:#737373;--sc-content-neutral-primary:#292929;--sc-content-neutral-secondary:#404040;--sc-content-brand-on-primary:#FFFFFF;--sc-content-success-on-primary:#FFFFFF;--sc-content-caution-on-primary:#FFFFFF;--sc-content-danger-on-primary:#FFFFFF;--sc-content-disabled-on-disabled:#737373;--sc-border-neutral:rgba(0,0,0, 0.1);--sc-border-brand:#000000;--sc-border-success:#008000;--sc-border-caution:#CC6600;--sc-border-danger:#CC0000;--sc-border-disabled:#737373}:root{--sc-font-family:sans-serif;--sc-heading-1-font-size:32px;--sc-heading-1-line-height:36px;--sc-heading-1-font-weight:700;--sc-heading-2-font-size:29px;--sc-heading-2-line-height:32px;--sc-heading-2-font-weight:700;--sc-heading-3-font-size:26px;--sc-heading-3-line-height:28px;--sc-heading-3-font-weight:700;--sc-heading-4-font-size:23px;--sc-heading-4-line-height:24px;--sc-heading-4-font-weight:700;--sc-heading-5-font-size:20px;--sc-heading-5-line-height:24px;--sc-heading-5-font-weight:700;--sc-heading-6-font-size:10px;--sc-heading-6-line-height:12px;--sc-heading-6-font-weight:700;--sc-body-bold-font-size:16px;--sc-body-bold-line-height:20px;--sc-body-bold-font-weight:700;--sc-body-font-size:16px;--sc-body-line-height:20px;--sc-body-font-weight:400;--sc-body-small-bold-font-size:12px;--sc-body-small-bold-line-height:16px;--sc-body-small-bold-font-weight:700;--sc-body-small-font-size:12px;--sc-body-small-line-height:16px;--sc-body-small-font-weight:400}:root{--sc-breakpoint-sm:576px;--sc-breakpoint-md:768px;--sc-breakpoint-lg:992px}.searchcraft-input-label{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-bold-font-size);font-weight:var(--sc-body-small-bold-font-weight);line-height:var(--sc-body-small-bold-line-height);color:var(--sc-content-neutral-primary);margin-top:4px;margin-bottom:4px}";const u=h;const l=class{constructor(e){s(this,e);this.inputLabelClassName="";this.label=undefined}render(){return c("label",{key:"4f913c1d9027ff781725a01e71e241cb5767eadb",class:a("searchcraft-input-label",this.inputLabelClassName),htmlFor:"searchcraft-input-id"},this.label)}};l.style=u;export{t as searchcraft_button,p as searchcraft_error_message,l as searchcraft_input_label};
2
+ //# sourceMappingURL=p-efab9f3c.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["searchcraftButtonModuleCss","SearchcraftButtonStyle0","SearchcraftButton","this","handleClick","buttonClick","emit","render","h","Fragment","key","iconOnly","class","classNames","onClick","type","isRequesting","iconPosition","iconElement","label","searchcraftErrorMessageModuleCss","SearchcraftErrorMessageStyle0","SearchcraftErrorMessage","errorMessage","searchcraftInputLabelModuleCss","SearchcraftInputLabelStyle0","SearchcraftInputLabel","inputLabelClassName","htmlFor"],"sources":["src/components/searchcraft-button/searchcraft-button.module.scss?tag=searchcraft-button","src/components/searchcraft-button/searchcraft-button.tsx","src/components/searchcraft-error-message/searchcraft-error-message.module.scss?tag=searchcraft-error-message","src/components/searchcraft-error-message/searchcraft-error-message.tsx","src/components/searchcraft-input-label/searchcraft-input-label.module.scss?tag=searchcraft-input-label","src/components/searchcraft-input-label/searchcraft-input-label.tsx"],"sourcesContent":[".searchcraft-button {\n @include body-bold;\n\n border-radius: 8px;\n display: flex;\n padding: 12px 20px;\n position: relative;\n\n background-color: var(--sc-surface-brand-primary);\n border: 1px solid var(--sc-border-primary);\n color: var(--sc-content-brand-on-primary);\n\n &:hover {\n cursor: pointer;\n background-color: var(--sc-surface-brand-primary-hover);\n }\n\n &:focus {\n outline: 2px solid var(--sc-surface-brand-primary);\n }\n}\n\n.buttonLabel {\n position: relative;\n}","import {\n Component,\n Event,\n type EventEmitter,\n Prop,\n h,\n State,\n Fragment,\n} from '@stencil/core';\nimport classNames from 'classnames';\n\n/**\n * This web component represents a button to be consumed within the `search-input-form` component.\n * It provides a clear, interactive way for users to submit search queries or trigger actions in a search interface.\n * It is consumed within the `searchcraft-input-form` component.\n */\n@Component({\n tag: 'searchcraft-button',\n styleUrl: 'searchcraft-button.module.scss',\n shadow: false,\n})\nexport class SearchcraftButton {\n /**\n * The icon element.\n */\n @Prop() iconElement?: Element;\n /**\n * Should the button only display an icon.\n */\n @Prop() iconOnly = false;\n /**\n * The position of the icon.\n */\n @Prop() iconPosition = 'left';\n /**\n * The label for the button.\n */\n @Prop() label = 'Search';\n\n /**\n * When the button is clicked.\n */\n @Event() buttonClick!: EventEmitter<void>;\n\n @State() isRequesting = false;\n\n private handleClick = () => {\n this.buttonClick.emit();\n };\n\n render() {\n return (\n <Fragment>\n {this.iconOnly ? (\n <button\n class={classNames('searchcraft-button')}\n onClick={this.handleClick}\n type='submit'\n >\n {this.isRequesting ? (\n <searchcraft-spinner-dark />\n ) : (\n this.iconElement\n )}\n </button>\n ) : (\n <button\n class={classNames('searchcraft-button')}\n onClick={this.handleClick}\n type='submit'\n >\n {this.iconPosition === 'left' && this.iconElement}\n <span class={classNames('buttonLabel', 'searchcraft-button-label')}>\n {this.label}\n </span>\n </button>\n )}\n </Fragment>\n );\n }\n}\n",".searchcraft-error-message {\n @include body-small();\n color: var(--sc-content-danger);\n margin: 0;\n}\n","import { Component, Prop, h } from '@stencil/core';\n\n/**\n * This web component is designed to display a user-friendly error message when a search query fails, providing clear feedback to users and enhancing their experience when an issue arises during the search process.\n *\n * ## Usage\n * ```html\n * <!-- index.html -->\n * <searchcraft-error-message error-message=\"No search results found for query\" />\n * ```\n */\n@Component({\n tag: 'searchcraft-error-message',\n styleUrl: 'searchcraft-error-message.module.scss',\n shadow: false,\n})\nexport class SearchcraftErrorMessage {\n /**\n * The error message.\n */\n @Prop() errorMessage?: string;\n\n render() {\n return (\n <p class='searchcraft-error-message'>\n {this.errorMessage || 'Search term is required.'}\n </p>\n );\n }\n}\n",".searchcraft-input-label {\n @include body-small-bold();\n color: var(--sc-content-neutral-primary);\n margin-top: 4px;\n margin-bottom: 4px;\n}\n","import { Component, Prop, h } from '@stencil/core';\nimport classNames from 'classnames';\n\n/**\n * This web component serves as the input label for the searchcraft-input-form component.\n *\n * ## Usage\n * ```html\n * <!-- index.html -->\n * <searchcraft-input-label label=\"Search\" />\n * ```\n */\n@Component({\n tag: 'searchcraft-input-label',\n styleUrl: 'searchcraft-input-label.module.scss',\n shadow: false,\n})\nexport class SearchcraftInputLabel {\n /**\n * The classname applied to the label element.\n */\n @Prop() inputLabelClassName? = '';\n @Prop() label: string;\n\n render() {\n return (\n <label\n class={classNames('searchcraft-input-label', this.inputLabelClassName)}\n htmlFor='searchcraft-input-id'\n >\n {this.label}\n </label>\n );\n }\n}\n"],"mappings":"6FAAA,MAAMA,EAA6B,66HACnC,MAAAC,EAAeD,E,MCoBFE,EAAiB,M,kEAyBpBC,KAAAC,YAAc,KACpBD,KAAKE,YAAYC,MAAM,E,yCAlBN,M,kBAII,O,WAIP,S,kBAOQ,K,CAMxB,MAAAC,GACE,OACEC,EAACC,EAAQ,CAAAC,IAAA,4CACNP,KAAKQ,SACJH,EAAA,UACEI,MAAOC,EAAW,sBAClBC,QAASX,KAAKC,YACdW,KAAK,UAEJZ,KAAKa,aACJR,EAAA,iCAEAL,KAAgB,aAIpBK,EAAA,UACEI,MAAOC,EAAW,sBAClBC,QAASX,KAAKC,YACdW,KAAK,UAEJZ,KAAKc,eAAiB,QAAUd,KAAKe,YACtCV,EAAA,QAAMI,MAAOC,EAAW,cAAe,6BACpCV,KAAKgB,Q,aCzEpB,MAAMC,EAAmC,6kHACzC,MAAAC,EAAeD,E,MCeFE,EAAuB,M,qDAMlC,MAAAf,GACE,OACEC,EAAA,KAAAE,IAAA,2CAAGE,MAAM,6BACNT,KAAKoB,cAAgB,2B,aCzB9B,MAAMC,EAAiC,2nHACvC,MAAAC,EAAeD,E,MCgBFE,EAAqB,M,kDAID,G,qBAG/B,MAAAnB,GACE,OACEC,EAAA,SAAAE,IAAA,2CACEE,MAAOC,EAAW,0BAA2BV,KAAKwB,qBAClDC,QAAQ,wBAEPzB,KAAKgB,M","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- import{p as e,b as t}from"./p-d7d0b88c.js";export{s as setNonce}from"./p-d7d0b88c.js";import{g as a}from"./p-e1255160.js";var r=()=>{const t=import.meta.url;const a={};if(t!==""){a.resourcesUrl=new URL(".",t).href}return e(a)};r().then((async e=>{await a();return t([["p-a810aeae",[[0,"searchcraft-filter-panel",{items:[16],unsubscribe:[32],lastQuery:[32]}]]],["p-32068485",[[0,"searchcraft-input-form",{config:[16],autoSearch:[4,"auto-search"],buttonPlacement:[1,"button-placement"],buttonLabel:[1,"button-label"],inputLabel:[1,"input-label"],customStyles:[1,"custom-styles"],placeholderValue:[1,"placeholder-value"],searchTerm:[1,"search-term"],debounceDelay:[2,"debounce-delay"],inputValue:[32],error:[32],isSearchcraftInitialized:[32]},null,{config:["onConfigChange"]}]]],["p-4d3682a8",[[4,"searchcraft-base-search-results",{adInterval:[2,"ad-interval"],customStylesForResults:[1,"custom-styles-for-results"],searchResultMappings:[16],placeAdAtEnd:[4,"place-ad-at-end"],placeAdAtStart:[4,"place-ad-at-start"],resultImagePlacement:[1,"result-image-placement"],buttonLabel:[1,"button-label"],buttonTarget:[1,"button-target"],buttonRel:[1,"button-rel"],containerTarget:[1,"container-target"],containerRel:[1,"container-rel"],hasSearched:[32],query:[32],searchResults:[32]}]]],["p-61cf9d6c",[[0,"searchcraft-popover-form",{config:[16],type:[1],popoverResultMappings:[16]}]]],["p-a7a7b4e0",[[0,"searchcraft-popover-result"]]],["p-d57eba31",[[0,"searchcraft-results-info",{isRequesting:[32],resultsCount:[32],responseTime:[32],query:[32]}]]],["p-93b92b65",[[0,"searchcraft-base-search-result",{titleContent:[1,"title-content"],subtitleContent:[1,"subtitle-content"],bodyContent:[1,"body-content"],footerContent:[1,"footer-content"],buttonLabel:[1,"button-label"],buttonHref:[1,"button-href"],buttonTarget:[1,"button-target"],buttonRel:[1,"button-rel"],containerHref:[1,"container-href"],containerTarget:[1,"container-target"],containerRel:[1,"container-rel"],imageSrc:[1,"image-src"],imageAlt:[1,"image-alt"],imagePlacement:[1,"image-placement"],customStyles:[1,"custom-styles"],documentPosition:[2,"document-position"]}]]],["p-adadf38a",[[0,"searchcraft-popover-list-view",{popoverResultMappings:[16]}]]],["p-04300412",[[0,"searchcraft-button",{iconElement:[16],iconOnly:[4,"icon-only"],iconPosition:[1,"icon-position"],label:[1],isRequesting:[32]}],[0,"searchcraft-input-label",{inputLabelClassName:[1,"input-label-class-name"],label:[1]}]]],["p-09c7fbef",[[0,"searchcraft-error-message",{errorMessage:[1,"error-message"]}]]],["p-aa155194",[[0,"searchcraft-facet-list",{fieldName:[1,"field-name"],baseFacetRoot:[32],facetRoot:[32],selectedPaths:[32],lastTimeTaken:[32],hasNewSearchTerm:[32],lastQuery:[32],lastSearchMode:[32],lastSortType:[32],unsubscribe:[32]}],[0,"searchcraft-slider",{max:[2],min:[2],granularity:[2],dataType:[1,"data-type"],endValue:[32],startValue:[32],lastFocusedHandle:[32]}],[0,"searchcraft-toggle-button",{label:[1],subLabel:[1,"sub-label"],isActive:[32],unsubscribe:[32],lastQuery:[32]}]]]],e)}));
1
+ import{p as e,b as t}from"./p-e0be53df.js";export{s as setNonce}from"./p-e0be53df.js";import{g as a}from"./p-e1255160.js";var r=()=>{const t=import.meta.url;const a={};if(t!==""){a.resourcesUrl=new URL(".",t).href}return e(a)};r().then((async e=>{await a();return t([["p-c27a3673",[[0,"searchcraft-filter-panel",{items:[16],unsubscribe:[32],lastQuery:[32]}]]],["p-cd852b84",[[4,"searchcraft-base-search-results",{adInterval:[2,"ad-interval"],customStylesForResults:[1,"custom-styles-for-results"],searchResultMappings:[16],placeAdAtEnd:[4,"place-ad-at-end"],placeAdAtStart:[4,"place-ad-at-start"],resultImagePlacement:[1,"result-image-placement"],buttonLabel:[1,"button-label"],buttonTarget:[1,"button-target"],buttonRel:[1,"button-rel"],containerTarget:[1,"container-target"],containerRel:[1,"container-rel"],hasSearched:[32],query:[32],searchResults:[32]}]]],["p-b8bd53ce",[[4,"searchcraft-popover-button"]]],["p-e042deb9",[[0,"searchcraft-results-info",{isRequesting:[32],resultsCount:[32],responseTime:[32],query:[32]}]]],["p-8e539d62",[[0,"searchcraft-base-search-result",{titleContent:[1,"title-content"],subtitleContent:[1,"subtitle-content"],bodyContent:[1,"body-content"],footerContent:[1,"footer-content"],buttonLabel:[1,"button-label"],buttonHref:[1,"button-href"],buttonTarget:[1,"button-target"],buttonRel:[1,"button-rel"],containerHref:[1,"container-href"],containerTarget:[1,"container-target"],containerRel:[1,"container-rel"],imageSrc:[1,"image-src"],imageAlt:[1,"image-alt"],imagePlacement:[1,"image-placement"],customStyles:[1,"custom-styles"],documentPosition:[2,"document-position"]}]]],["p-98640a6a",[[0,"searchcraft-popover-list-item",{titleContent:[1,"title-content"],subtitleContent:[1,"subtitle-content"],imageSrc:[1,"image-src"],imageAlt:[1,"image-alt"],href:[1],documentPosition:[2,"document-position"]}]]],["p-efab9f3c",[[0,"searchcraft-button",{iconElement:[16],iconOnly:[4,"icon-only"],iconPosition:[1,"icon-position"],label:[1],isRequesting:[32]}],[0,"searchcraft-input-label",{inputLabelClassName:[1,"input-label-class-name"],label:[1]}],[0,"searchcraft-error-message",{errorMessage:[1,"error-message"]}]]],["p-4580e8a4",[[0,"searchcraft-input-form",{config:[16],autoSearch:[4,"auto-search"],buttonPlacement:[1,"button-placement"],buttonLabel:[1,"button-label"],inputLabel:[1,"input-label"],customStyles:[1,"custom-styles"],placeholderValue:[1,"placeholder-value"],searchTerm:[1,"search-term"],inputValue:[32],error:[32],isSearchcraftInitialized:[32]},null,{config:["onConfigChange"]}],[0,"searchcraft-popover-list-view",{popoverResultMappings:[16],documents:[16]}]]],["p-7049b93d",[[0,"searchcraft-popover-form",{config:[16],type:[1],popoverResultMappings:[16],hotkey:[1],hotkeyModifier:[1,"hotkey-modifier"],isPopoverVisibleInState:[32],unsubscribe:[32],searchResults:[32],searchTerm:[32],isFocused:[32],breakpointSm:[32],breakpointMd:[32],breakpointLg:[32],modalElement:[32]}]]],["p-9d0f5c89",[[0,"searchcraft-facet-list",{fieldName:[1,"field-name"],baseFacetRoot:[32],facetRoot:[32],selectedPaths:[32],lastTimeTaken:[32],hasNewSearchTerm:[32],lastQuery:[32],lastSearchMode:[32],lastSortType:[32],unsubscribe:[32]}],[0,"searchcraft-slider",{max:[2],min:[2],granularity:[2],dataType:[1,"data-type"],endValue:[32],startValue:[32],lastFocusedHandle:[32]}],[0,"searchcraft-toggle-button",{label:[1],subLabel:[1,"sub-label"],isActive:[32],unsubscribe:[32],lastQuery:[32]}]]]],e)}));
2
2
  //# sourceMappingURL=searchcraft-javascript-sdk.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["patchBrowser","importMeta","url","opts","resourcesUrl","URL","href","promiseResolve","then","async","options","globalScripts","bootstrapLazy","items","unsubscribe","lastQuery","config","autoSearch","buttonPlacement","buttonLabel","inputLabel","customStyles","placeholderValue","searchTerm","debounceDelay","inputValue","error","isSearchcraftInitialized","adInterval","customStylesForResults","searchResultMappings","placeAdAtEnd","placeAdAtStart","resultImagePlacement","buttonTarget","buttonRel","containerTarget","containerRel","hasSearched","query","searchResults","type","popoverResultMappings","isRequesting","resultsCount","responseTime","titleContent","subtitleContent","bodyContent","footerContent","buttonHref","containerHref","imageSrc","imageAlt","imagePlacement","documentPosition","iconElement","iconOnly","iconPosition","label","inputLabelClassName","errorMessage","fieldName","baseFacetRoot","facetRoot","selectedPaths","lastTimeTaken","hasNewSearchTerm","lastSearchMode","lastSortType","max","min","granularity","dataType","endValue","startValue","lastFocusedHandle","subLabel","isActive"],"sources":["../../node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v4.22.3 | MIT Licensed | https://stenciljs.com\n */\n\n// src/client/client-patch-browser.ts\nimport { BUILD, NAMESPACE } from \"@stencil/core/internal/app-data\";\nimport { consoleDevInfo, doc, H, promiseResolve } from \"@stencil/core\";\nvar patchBrowser = () => {\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo(\"Running in development mode.\");\n }\n if (BUILD.cloneNodeFix) {\n patchCloneNodeFix(H.prototype);\n }\n const scriptElm = BUILD.scriptDataOpts ? Array.from(doc.querySelectorAll(\"script\")).find(\n (s) => new RegExp(`/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) || s.getAttribute(\"data-stencil-namespace\") === NAMESPACE\n ) : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})[\"data-opts\"] || {} : {};\n if (importMeta !== \"\") {\n opts.resourcesUrl = new URL(\".\", importMeta).href;\n }\n return promiseResolve(opts);\n};\nvar patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function(deep) {\n if (this.nodeName === \"TEMPLATE\") {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport {\n patchBrowser\n};\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(async (options) => {\n await globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"mappings":"0HAOA,IAAIA,EAAe,KAUjB,MAAMC,cAAyBC,IAC/B,MAAMC,EAAqE,GAC3E,GAAIF,IAAe,GAAI,CACrBE,EAAKC,aAAe,IAAIC,IAAI,IAAKJ,GAAYK,IACjD,CACE,OAAOC,EAAeJ,EAAK,EClB7BH,IAAeQ,MAAKC,MAAOC,UACnBC,IACN,OAAOC,EAAc,8CAAuC,CAAAC,MAAA,KAAAC,YAAA,KAAAC,UAAA,qDAAAC,OAAA,KAAAC,WAAA,kBAAAC,gBAAA,uBAAAC,YAAA,mBAAAC,WAAA,kBAAAC,aAAA,oBAAAC,iBAAA,wBAAAC,WAAA,kBAAAC,cAAA,qBAAAC,WAAA,KAAAC,MAAA,KAAAC,yBAAA,YAAAX,OAAA,4EAAAY,WAAA,kBAAAC,uBAAA,gCAAAC,qBAAA,KAAAC,aAAA,sBAAAC,eAAA,wBAAAC,qBAAA,6BAAAd,YAAA,mBAAAe,aAAA,oBAAAC,UAAA,iBAAAC,gBAAA,uBAAAC,aAAA,oBAAAC,YAAA,KAAAC,MAAA,KAAAC,cAAA,uDAAAxB,OAAA,KAAAyB,KAAA,IAAAC,sBAAA,yGAAAC,aAAA,KAAAC,aAAA,KAAAC,aAAA,KAAAN,MAAA,6DAAAO,aAAA,oBAAAC,gBAAA,uBAAAC,YAAA,mBAAAC,cAAA,qBAAA9B,YAAA,mBAAA+B,WAAA,kBAAAhB,aAAA,oBAAAC,UAAA,iBAAAgB,cAAA,qBAAAf,gBAAA,uBAAAC,aAAA,oBAAAe,SAAA,gBAAAC,SAAA,gBAAAC,eAAA,sBAAAjC,aAAA,oBAAAkC,iBAAA,+EAAAb,sBAAA,iDAAAc,YAAA,KAAAC,SAAA,gBAAAC,aAAA,oBAAAC,MAAA,IAAAhB,aAAA,qCAAAiB,oBAAA,6BAAAD,MAAA,uDAAAE,aAAA,oEAAAC,UAAA,iBAAAC,cAAA,KAAAC,UAAA,KAAAC,cAAA,KAAAC,cAAA,KAAAC,iBAAA,KAAApD,UAAA,KAAAqD,eAAA,KAAAC,aAAA,KAAAvD,YAAA,gCAAAwD,IAAA,IAAAC,IAAA,IAAAC,YAAA,IAAAC,SAAA,gBAAAC,SAAA,KAAAC,WAAA,KAAAC,kBAAA,uCAAAjB,MAAA,IAAAkB,SAAA,gBAAAC,SAAA,KAAAhE,YAAA,KAAAC,UAAA,UAAAL,EAAA","ignoreList":[]}
1
+ {"version":3,"names":["patchBrowser","importMeta","url","opts","resourcesUrl","URL","href","promiseResolve","then","async","options","globalScripts","bootstrapLazy","items","unsubscribe","lastQuery","adInterval","customStylesForResults","searchResultMappings","placeAdAtEnd","placeAdAtStart","resultImagePlacement","buttonLabel","buttonTarget","buttonRel","containerTarget","containerRel","hasSearched","query","searchResults","isRequesting","resultsCount","responseTime","titleContent","subtitleContent","bodyContent","footerContent","buttonHref","containerHref","imageSrc","imageAlt","imagePlacement","customStyles","documentPosition","iconElement","iconOnly","iconPosition","label","inputLabelClassName","errorMessage","config","autoSearch","buttonPlacement","inputLabel","placeholderValue","searchTerm","inputValue","error","isSearchcraftInitialized","popoverResultMappings","documents","type","hotkey","hotkeyModifier","isPopoverVisibleInState","isFocused","breakpointSm","breakpointMd","breakpointLg","modalElement","fieldName","baseFacetRoot","facetRoot","selectedPaths","lastTimeTaken","hasNewSearchTerm","lastSearchMode","lastSortType","max","min","granularity","dataType","endValue","startValue","lastFocusedHandle","subLabel","isActive"],"sources":["../../node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v4.22.3 | MIT Licensed | https://stenciljs.com\n */\n\n// src/client/client-patch-browser.ts\nimport { BUILD, NAMESPACE } from \"@stencil/core/internal/app-data\";\nimport { consoleDevInfo, doc, H, promiseResolve } from \"@stencil/core\";\nvar patchBrowser = () => {\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo(\"Running in development mode.\");\n }\n if (BUILD.cloneNodeFix) {\n patchCloneNodeFix(H.prototype);\n }\n const scriptElm = BUILD.scriptDataOpts ? Array.from(doc.querySelectorAll(\"script\")).find(\n (s) => new RegExp(`/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) || s.getAttribute(\"data-stencil-namespace\") === NAMESPACE\n ) : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})[\"data-opts\"] || {} : {};\n if (importMeta !== \"\") {\n opts.resourcesUrl = new URL(\".\", importMeta).href;\n }\n return promiseResolve(opts);\n};\nvar patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function(deep) {\n if (this.nodeName === \"TEMPLATE\") {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport {\n patchBrowser\n};\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(async (options) => {\n await globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"mappings":"0HAOA,IAAIA,EAAe,KAUjB,MAAMC,cAAyBC,IAC/B,MAAMC,EAAqE,GAC3E,GAAIF,IAAe,GAAI,CACrBE,EAAKC,aAAe,IAAIC,IAAI,IAAKJ,GAAYK,IACjD,CACE,OAAOC,EAAeJ,EAAK,EClB7BH,IAAeQ,MAAKC,MAAOC,UACnBC,IACN,OAAOC,EAAc,8CAAuC,CAAAC,MAAA,KAAAC,YAAA,KAAAC,UAAA,8DAAAC,WAAA,kBAAAC,uBAAA,gCAAAC,qBAAA,KAAAC,aAAA,sBAAAC,eAAA,wBAAAC,qBAAA,6BAAAC,YAAA,mBAAAC,aAAA,oBAAAC,UAAA,iBAAAC,gBAAA,uBAAAC,aAAA,oBAAAC,YAAA,KAAAC,MAAA,KAAAC,cAAA,yGAAAC,aAAA,KAAAC,aAAA,KAAAC,aAAA,KAAAJ,MAAA,6DAAAK,aAAA,oBAAAC,gBAAA,uBAAAC,YAAA,mBAAAC,cAAA,qBAAAd,YAAA,mBAAAe,WAAA,kBAAAd,aAAA,oBAAAC,UAAA,iBAAAc,cAAA,qBAAAb,gBAAA,uBAAAC,aAAA,oBAAAa,SAAA,gBAAAC,SAAA,gBAAAC,eAAA,sBAAAC,aAAA,oBAAAC,iBAAA,+EAAAV,aAAA,oBAAAC,gBAAA,uBAAAK,SAAA,gBAAAC,SAAA,gBAAAlC,KAAA,IAAAqC,iBAAA,oEAAAC,YAAA,KAAAC,SAAA,gBAAAC,aAAA,oBAAAC,MAAA,IAAAjB,aAAA,qCAAAkB,oBAAA,6BAAAD,MAAA,sCAAAE,aAAA,oEAAAC,OAAA,KAAAC,WAAA,kBAAAC,gBAAA,uBAAA9B,YAAA,mBAAA+B,WAAA,kBAAAX,aAAA,oBAAAY,iBAAA,wBAAAC,WAAA,kBAAAC,WAAA,KAAAC,MAAA,KAAAC,yBAAA,YAAAR,OAAA,yDAAAS,sBAAA,KAAAC,UAAA,uDAAAV,OAAA,KAAAW,KAAA,IAAAF,sBAAA,KAAAG,OAAA,IAAAC,eAAA,sBAAAC,wBAAA,KAAAlD,YAAA,KAAAe,cAAA,KAAA0B,WAAA,KAAAU,UAAA,KAAAC,aAAA,KAAAC,aAAA,KAAAC,aAAA,KAAAC,aAAA,qDAAAC,UAAA,iBAAAC,cAAA,KAAAC,UAAA,KAAAC,cAAA,KAAAC,cAAA,KAAAC,iBAAA,KAAA5D,UAAA,KAAA6D,eAAA,KAAAC,aAAA,KAAA/D,YAAA,gCAAAgE,IAAA,IAAAC,IAAA,IAAAC,YAAA,IAAAC,SAAA,gBAAAC,SAAA,KAAAC,WAAA,KAAAC,kBAAA,uCAAArC,MAAA,IAAAsC,SAAA,gBAAAC,SAAA,KAAAxE,YAAA,KAAAC,UAAA,UAAAL,EAAA","ignoreList":[]}
@@ -1,19 +1,72 @@
1
+ /**
2
+ * This web component is designed to display detailed information for a single search result.
3
+ * Once a query is submitted, the component formats and presents the result.
4
+ * It is consumed within the `searchcraft-base-search-results` component.
5
+ */
1
6
  export declare class SearchcraftBaseSearchResult {
7
+ /**
8
+ * The title content.
9
+ */
2
10
  titleContent: string | undefined;
11
+ /**
12
+ * The subtitle content.
13
+ */
3
14
  subtitleContent: string | undefined;
15
+ /**
16
+ * The body content.
17
+ */
4
18
  bodyContent: string | undefined;
19
+ /**
20
+ * The footer content.
21
+ */
5
22
  footerContent: string | undefined;
23
+ /**
24
+ * The label for the button rendered when containerHref is not present.
25
+ */
6
26
  buttonLabel: string | undefined;
27
+ /**
28
+ * The link for the button rendered when containerHref is not present.
29
+ */
7
30
  buttonHref: string | undefined;
31
+ /**
32
+ * Where to open the link for the button rendered when containerHref is not present.
33
+ */
8
34
  buttonTarget: '_blank' | '_self' | '_top' | '_parent';
35
+ /**
36
+ * The relationship between the current document and the link for the button rendered when containerHref is not present.
37
+ */
9
38
  buttonRel: 'noreferrer' | 'noopener' | 'nofollow' | undefined;
39
+ /**
40
+ * The link for the containing element.
41
+ */
10
42
  containerHref: string | undefined;
43
+ /**
44
+ * Where to open the link for the containing element.
45
+ */
11
46
  containerTarget: '_blank' | '_self' | '_top' | '_parent';
47
+ /**
48
+ * The relationship between the current document and the link for the containing element.
49
+ */
12
50
  containerRel: 'noreferrer' | 'noopener' | 'nofollow' | undefined;
51
+ /**
52
+ * The image source.
53
+ */
13
54
  imageSrc: string | undefined;
55
+ /**
56
+ * The image alternative text.
57
+ */
14
58
  imageAlt: string | undefined;
59
+ /**
60
+ * The placement of the image.
61
+ */
15
62
  imagePlacement: 'left' | 'right';
63
+ /**
64
+ * A custom styles object.
65
+ */
16
66
  customStyles: string | undefined;
67
+ /**
68
+ * The position in the document. Used with the "document_clicked" measure event.
69
+ */
17
70
  documentPosition: number;
18
71
  private searchcraftStore;
19
72
  private recordMeasureEvent;
@@ -1,18 +1,86 @@
1
1
  import { type EventEmitter } from '../../stencil-public-runtime';
2
2
  import type { SearchcraftResponse } from '@searchcraft/core';
3
3
  import type { SearchResultMappings } from "../../types/index";
4
+ /**
5
+ * This web component is responsible for displaying the results of a search query.
6
+ * Once a query is submitted, the component formats and presents an ordered list of the results.
7
+ *
8
+ * ## Usage
9
+ * ```html
10
+ * <!-- index.html -->
11
+ * <searchcraft-base-search-results
12
+ * ad-interval="4"
13
+ * place-ad-at-start="false"
14
+ * result-image-placement="right"
15
+ * />
16
+ * ```
17
+ *
18
+ * ```js
19
+ * // index.js
20
+ * const baseSearchResults = document.querySelector('searchcraft-base-search-results');
21
+ *
22
+ * baseSearchResults.searchResultMappings = containerHref: {
23
+ * fieldNames: [
24
+ * {
25
+ * fieldName: 'canonical_link',
26
+ * dataType: 'text',
27
+ * },
28
+ * ],
29
+ * };
30
+ *
31
+ * baseSearchResults.addEventListener('noResults', () => {
32
+ * console.log('No search results found');
33
+ * });
34
+ * ```
35
+ */
4
36
  export declare class SearchcraftBaseSearchResults {
37
+ /**
38
+ * How often ads are injected.
39
+ */
5
40
  adInterval: number;
41
+ /**
42
+ * A custom styles object.
43
+ */
6
44
  customStylesForResults: string | Record<string, Record<string, string>> | undefined;
45
+ /**
46
+ * Formats the content rendered for each result.
47
+ */
7
48
  searchResultMappings: SearchResultMappings | undefined;
49
+ /**
50
+ * Should an ad be placed at the end of the results.
51
+ */
8
52
  placeAdAtEnd: boolean;
53
+ /**
54
+ * Should an ad be placed at the start of the results.
55
+ */
9
56
  placeAdAtStart: boolean;
57
+ /**
58
+ * The placement of the image for each result.
59
+ */
10
60
  resultImagePlacement: 'left' | 'right';
61
+ /**
62
+ * The label for the button rendered when containerHref is not present for each result.
63
+ */
11
64
  buttonLabel: string | undefined;
65
+ /**
66
+ * Where to open the link for the button rendered when containerHref is not present for each result.
67
+ */
12
68
  buttonTarget: '_blank' | '_self' | '_top' | '_parent';
69
+ /**
70
+ * The relationship between the current document and the link for the button rendered when containerHref is not present for each result.
71
+ */
13
72
  buttonRel: 'noreferrer' | 'noopener' | 'nofollow' | undefined;
73
+ /**
74
+ * Where to open the link for the containing element for each result.
75
+ */
14
76
  containerTarget: '_blank' | '_self' | '_top' | '_parent';
77
+ /**
78
+ * The relationship between the current document and the link for the containing element for each result.
79
+ */
15
80
  containerRel: 'noreferrer' | 'noopener' | 'nofollow' | undefined;
81
+ /**
82
+ * When no results are returned.
83
+ */
16
84
  noResults: EventEmitter<void>;
17
85
  hasSearched: boolean;
18
86
  query: string;
@@ -1,9 +1,29 @@
1
1
  import { type EventEmitter } from '../../stencil-public-runtime';
2
+ /**
3
+ * This web component represents a button to be consumed within the `search-input-form` component.
4
+ * It provides a clear, interactive way for users to submit search queries or trigger actions in a search interface.
5
+ * It is consumed within the `searchcraft-input-form` component.
6
+ */
2
7
  export declare class SearchcraftButton {
8
+ /**
9
+ * The icon element.
10
+ */
3
11
  iconElement?: Element;
12
+ /**
13
+ * Should the button only display an icon.
14
+ */
4
15
  iconOnly: boolean;
16
+ /**
17
+ * The position of the icon.
18
+ */
5
19
  iconPosition: string;
20
+ /**
21
+ * The label for the button.
22
+ */
6
23
  label: string;
24
+ /**
25
+ * When the button is clicked.
26
+ */
7
27
  buttonClick: EventEmitter<void>;
8
28
  isRequesting: boolean;
9
29
  private handleClick;
@@ -1,4 +1,16 @@
1
+ /**
2
+ * This web component is designed to display a user-friendly error message when a search query fails, providing clear feedback to users and enhancing their experience when an issue arises during the search process.
3
+ *
4
+ * ## Usage
5
+ * ```html
6
+ * <!-- index.html -->
7
+ * <searchcraft-error-message error-message="No search results found for query" />
8
+ * ```
9
+ */
1
10
  export declare class SearchcraftErrorMessage {
11
+ /**
12
+ * The error message.
13
+ */
2
14
  errorMessage?: string;
3
15
  render(): any;
4
16
  }
@@ -1,8 +1,33 @@
1
1
  import { type EventEmitter } from '../../stencil-public-runtime';
2
2
  import type { FacetChild, FacetRoot } from '@searchcraft/core';
3
3
  import { type SearchcraftState } from "../../provider/store";
4
+ /**
5
+ * This web component is designed to display facets in a search interface, allowing users to refine their search results by applying filters based on various attributes.
6
+ * It is consumed within the `searchcraft-filter-panel`.
7
+ *
8
+ * ## Usage
9
+ * ```html
10
+ * <!-- index.html -->
11
+ * <searchcraft-facet-list field-name="title" />
12
+ * ```
13
+ *
14
+ * ```js
15
+ * // index.js
16
+ * const facetList = document.querySelector('searchcraft-facet-list');
17
+ *
18
+ * facetList.addEventListener('facetSelectionUpdated', () => {
19
+ * console.log('Facet selection updated');
20
+ * });
21
+ * ```
22
+ */
4
23
  export declare class SearchcraftFacetList {
24
+ /**
25
+ * The name of the field where facets are applied.
26
+ */
5
27
  fieldName: string;
28
+ /**
29
+ * When the facets are updated.
30
+ */
6
31
  facetSelectionUpdated: EventEmitter<{
7
32
  paths: string[];
8
33
  }>;
@@ -1,5 +1,17 @@
1
1
  import type { FilterItem } from '../../types/searchcraft-filter-panel.types';
2
+ /**
3
+ * This web component represents a series of filters that allows users to refine and control their search queries by applying various filter criteria.
4
+ *
5
+ * ## Usage
6
+ * ```html
7
+ * <!-- index.html -->
8
+ * <searchcraft-filter-panel />
9
+ * ```
10
+ */
2
11
  export declare class SearchcraftFilterPanel {
12
+ /**
13
+ * The items to filter.
14
+ */
3
15
  items: FilterItem[];
4
16
  unsubscribe: (() => void) | undefined;
5
17
  lastQuery: string | undefined;
@@ -4,6 +4,31 @@ export interface ScInputCustomEvent<T> extends CustomEvent<T> {
4
4
  detail: T;
5
5
  target: HTMLSearchcraftInputFormElement;
6
6
  }
7
+ /**
8
+ * This web component provides a user-friendly interface for querying an indexed dataset, enabling users to easily search large collections of data.
9
+ * It abstracts the complexities of index-based searching, making it accessible to users of all technical levels.
10
+ *
11
+ * ## Usage
12
+ * ```html
13
+ * <!-- index.html -->
14
+ * <searchcraft-input-form placeholder-value="Search here" />
15
+ * ```
16
+ *
17
+ * ```js
18
+ * // index.js
19
+ * const searchInputForm = document.querySelector('searchcraft-input-form');
20
+ *
21
+ * seardchInputForm.config = {
22
+ * index: [],
23
+ * readKey: '',
24
+ * endpointUrl: '',
25
+ * };
26
+ *
27
+ * searchForm.addEventListener('querySubmit', (event) => {
28
+ * console.log('Query submitted', event.detail);
29
+ * });
30
+ * ```
31
+ */
7
32
  export declare class SearchcraftInput {
8
33
  /**
9
34
  * The Searchcraft config object.
@@ -38,33 +63,32 @@ export declare class SearchcraftInput {
38
63
  */
39
64
  searchTerm: string;
40
65
  /**
41
- * The duration to debounce the input's `inputChange` event.
42
- */
43
- debounceDelay: number;
44
- /**
45
- * Event emitted when the input element has been cleared.
66
+ * When the input is cleared.
46
67
  */
47
68
  inputCleared: EventEmitter<void>;
48
69
  /**
49
- * Event emitted when a query returns with no results received.
70
+ * When no results are returned.
50
71
  */
51
72
  noResultsReceived: EventEmitter<void>;
52
73
  /**
53
- * Event emitted when a new search request has been submitted.
54
- */
55
- querySubmit: EventEmitter<string>;
56
- /**
57
- * Event emitted when the input has gained focus.
74
+ * When the input becomes focused.
58
75
  */
59
76
  inputFocus: EventEmitter<void>;
60
77
  /**
61
- * Event emitted when the input has lost focus.
78
+ * When the input becomes unfocused.
62
79
  */
63
80
  inputBlur: EventEmitter<void>;
81
+ /**
82
+ * Event emitted when input initializes.
83
+ */
84
+ inputInit: EventEmitter<void>;
85
+ /**
86
+ * Event emitted when a query has been submitted.
87
+ */
88
+ querySubmit: EventEmitter<string>;
64
89
  inputValue: string;
65
90
  error: boolean;
66
91
  isSearchcraftInitialized: boolean;
67
- private debounceTimeout;
68
92
  private searchStore;
69
93
  init(): void;
70
94
  componentDidLoad(): void;
@@ -1,5 +1,17 @@
1
+ /**
2
+ * This web component serves as the input label for the searchcraft-input-form component.
3
+ *
4
+ * ## Usage
5
+ * ```html
6
+ * <!-- index.html -->
7
+ * <searchcraft-input-label label="Search" />
8
+ * ```
9
+ */
1
10
  export declare class SearchcraftInputLabel {
11
+ /**
12
+ * The classname applied to the label element.
13
+ */
2
14
  inputLabelClassName?: string;
3
- label?: string;
15
+ label: string;
4
16
  render(): any;
5
17
  }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Renders a button which, when clicked, turns on popover visibility.
3
+ */
4
+ export declare class SearchcraftPopoverButton {
5
+ handleOnClick(): void;
6
+ render(): any;
7
+ }
@@ -1,8 +1,104 @@
1
- import type { SearchcraftConfig } from '@searchcraft/core';
1
+ import type { SearchcraftConfig, SearchcraftResponse } from '@searchcraft/core';
2
2
  import type { PopoverResultMappings } from "../../types/index";
3
+ /**
4
+ * This web component is designed to display search results in a popover container that dynamically appears when the user interacts with a search input field.
5
+ *
6
+ * ## Usage
7
+ * ```html
8
+ * <!-- index.html -->
9
+ * <searchcraft-popover-form type="fullscreen" />
10
+ * ```
11
+ *
12
+ * ```js
13
+ * // index.js
14
+ * const popoverForm = document.querySelector('searchcraft-popover-form');
15
+ *
16
+ * popoverForm.config = {
17
+ * index: [index_name_from_vektron],
18
+ * readKey: 'read_key_from_vektron',
19
+ * endpointUrl: 'enpoint_url_from_vektron',
20
+ * };
21
+ *
22
+ * popoverForm.popoverResultMappings = {
23
+ * containerHref: {
24
+ * fieldNames: [
25
+ * {
26
+ * fieldName: 'canonical_link',
27
+ * dataType: 'text',
28
+ * },
29
+ * ],
30
+ * };
31
+ * ```
32
+ */
3
33
  export declare class SearchcraftPopoverForm {
34
+ /**
35
+ * The Searchcraft config object.
36
+ */
4
37
  config: SearchcraftConfig | undefined;
38
+ /**
39
+ * The type of popover form to render.
40
+ *
41
+ * - `inline` - Renders inline with the rest of the content on the page. The search results pop over the page content.
42
+ * - `fullscreen` - Renders in fullscreen view. Used together with the `searchcraft-popover-button` component.
43
+ * - `modal` - Renders in a modal view. Used together with the `searchcraft-popover-button` component.
44
+ */
5
45
  type: 'inline' | 'fullscreen' | 'modal';
46
+ /**
47
+ * Formats the content rendered for each result.
48
+ */
6
49
  popoverResultMappings: PopoverResultMappings | undefined;
50
+ /**
51
+ * The hotkey that activates the popover.
52
+ */
53
+ hotkey: string;
54
+ /**
55
+ * The hotkey modifier that activates the popover. Used together with the `hotkey` prop.
56
+ */
57
+ hotkeyModifier: 'ctrl' | 'meta' | 'alt' | 'option';
58
+ isPopoverVisibleInState: boolean;
59
+ unsubscribe: (() => void) | undefined;
60
+ searchResults: SearchcraftResponse | undefined;
61
+ searchTerm: string | undefined;
62
+ isFocused: boolean;
63
+ breakpointSm: number;
64
+ breakpointMd: number;
65
+ breakpointLg: number;
66
+ modalElement: any;
67
+ hostElement: HTMLElement;
68
+ componentDidLoad(): void;
69
+ disconnectedCallback(): void;
70
+ handleDocumentClick: (event: MouseEvent) => void;
71
+ /**
72
+ * Handles when popover visibility is changed in state
73
+ */
74
+ handlePopoverVisibilityChange(isVisible: boolean): void;
75
+ /**
76
+ * Actions to perform when various keys are pressed within the popover form.
77
+ */
78
+ handleDocumentKeyDown: (event: KeyboardEvent) => void;
79
+ handleInputInit: () => void;
80
+ /**
81
+ * When popover is `inline` and the viewport is at the smallest breakpoint,
82
+ * focusing on the input will open a modal version of the popover form.
83
+ */
84
+ handleInputFocus(): void;
85
+ handleModalBackdropClick(_event: MouseEvent): void;
86
+ /**
87
+ * When a hotkey is pressed, tests if the modifiers also match.
88
+ * If modifiers match, toggles visibility of the popover modal.
89
+ */
90
+ handleHotkeyPressed(event: KeyboardEvent): void;
91
+ handleCancelButtonClick(): void;
92
+ /**
93
+ * Moves focus to the next/previous list item in the list view. If you are at the top
94
+ * of the list view, it moves focus back to the input.
95
+ *
96
+ * @param direction
97
+ */
98
+ focusOnNextListItem(direction: 'ArrowDown' | 'ArrowUp'): void;
99
+ get hasResultsToShow(): boolean;
100
+ renderInlinePopover(documents: Record<string, unknown>[]): any;
101
+ renderModalPopover(documents: Record<string, unknown>[]): any;
102
+ renderFullscreenPopover(documents: Record<string, unknown>[]): any;
7
103
  render(): any;
8
104
  }
@@ -0,0 +1,22 @@
1
+ /**
2
+ * A single list item rendered in a searchcraft-popover-list-view.
3
+ */
4
+ export declare class SearchcraftPopoverListItem {
5
+ /** The result title */
6
+ titleContent: string | undefined;
7
+ /** The result subtitle */
8
+ subtitleContent: string | undefined;
9
+ /** The source of the image. If not included, no item will be rendered. */
10
+ imageSrc: string | undefined;
11
+ /** The image alt tag. */
12
+ imageAlt: string | undefined;
13
+ /** The link href */
14
+ href: string | undefined;
15
+ /** The document position relative to the search results (For Measure) */
16
+ documentPosition: number;
17
+ componentDidLoad(): void;
18
+ connectedCallback(): void;
19
+ disconnectedCallback(): void;
20
+ handleButtonClick(): void;
21
+ render(): any;
22
+ }
@@ -1,8 +1,24 @@
1
1
  import type { PopoverResultMappings } from "../../types/index";
2
+ /**
3
+ * This web component is designed to display a list of results within a popover interface.
4
+ * It is consumed within the `searchcraft-popover-form` component.
5
+ *
6
+ * ## Usage
7
+ * ```html
8
+ * <!-- index.html -->
9
+ * <searchcraft-popover-list-view />
10
+ * ```
11
+ */
2
12
  export declare class SearchcraftPopoverListView {
13
+ /**
14
+ * The mappings that define how the data in the documents are mapped to the
15
+ * list-view-item elements.
16
+ */
3
17
  popoverResultMappings: PopoverResultMappings | undefined;
4
- componentDidLoad(): void;
5
- connectedCallback(): void;
6
- disconnectedCallback(): void;
18
+ /**
19
+ * The documents to render in the list view.
20
+ */
21
+ documents: Record<string, unknown>[] | undefined;
22
+ renderDocument(document: Record<string, unknown>, index: number): any;
7
23
  render(): any;
8
24
  }
@@ -1,3 +1,13 @@
1
+ /**
2
+ * This web component is designed to display the number of results returned from a search query.
3
+ * It provides users with real-time feedback on the scale of the results, such as the total number of items found.
4
+ *
5
+ * ## Usage
6
+ * ```html
7
+ * <!-- index.html -->
8
+ * <searchcraft-results-info />
9
+ * ```
10
+ */
1
11
  export declare class SearchcraftResultsInfo {
2
12
  isRequesting: boolean;
3
13
  resultsCount: number;