@searchcraft/javascript-sdk 0.2.2 → 0.2.3

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 (273) hide show
  1. package/dist/searchcraft-javascript-sdk/_commonjsHelpers-63cbe26c.js +34 -0
  2. package/dist/searchcraft-javascript-sdk/_commonjsHelpers-63cbe26c.js.map +1 -0
  3. package/dist/searchcraft-javascript-sdk/index-8211f330.js +3043 -0
  4. package/dist/searchcraft-javascript-sdk/index-8211f330.js.map +1 -0
  5. package/dist/{components/p-5cdc6210.js → searchcraft-javascript-sdk/index-d6567b9c.js} +10 -2
  6. package/dist/searchcraft-javascript-sdk/index-d6567b9c.js.map +1 -0
  7. package/dist/searchcraft-javascript-sdk/index.esm.js +14 -1
  8. package/dist/searchcraft-javascript-sdk/index.esm.js.map +1 -1
  9. package/dist/searchcraft-javascript-sdk/searchcraft-auto-search-form.entry.js +113 -0
  10. package/dist/searchcraft-javascript-sdk/searchcraft-auto-search-form.entry.js.map +1 -0
  11. package/dist/{esm → searchcraft-javascript-sdk}/searchcraft-base-search-form.entry.js +6 -6
  12. package/dist/searchcraft-javascript-sdk/searchcraft-base-search-form.entry.js.map +1 -0
  13. package/dist/searchcraft-javascript-sdk/searchcraft-base-search-result.entry.js +57 -0
  14. package/dist/searchcraft-javascript-sdk/searchcraft-base-search-result.entry.js.map +1 -0
  15. package/dist/{components/searchcraft-base-search-results.js → searchcraft-javascript-sdk/searchcraft-base-search-results.entry.js} +22 -83
  16. package/dist/searchcraft-javascript-sdk/searchcraft-base-search-results.entry.js.map +1 -0
  17. package/dist/{esm → searchcraft-javascript-sdk}/searchcraft-button-icon.entry.js +1 -1
  18. package/dist/searchcraft-javascript-sdk/searchcraft-button-icon.entry.js.map +1 -0
  19. package/dist/{esm → searchcraft-javascript-sdk}/searchcraft-button.entry.js +4 -4
  20. package/dist/searchcraft-javascript-sdk/searchcraft-button.entry.js.map +1 -0
  21. package/dist/{components/p-70722ab2.js → searchcraft-javascript-sdk/searchcraft-clear-icon-set.entry.js} +7 -24
  22. package/dist/searchcraft-javascript-sdk/searchcraft-clear-icon-set.entry.js.map +1 -0
  23. package/dist/searchcraft-javascript-sdk/searchcraft-clear-input-button.entry.js +30 -0
  24. package/dist/searchcraft-javascript-sdk/searchcraft-clear-input-button.entry.js.map +1 -0
  25. package/dist/searchcraft-javascript-sdk/searchcraft-error-message.entry.js +22 -0
  26. package/dist/searchcraft-javascript-sdk/searchcraft-error-message.entry.js.map +1 -0
  27. package/dist/{components/searchcraft-filters-list.js → searchcraft-javascript-sdk/searchcraft-filters-list.entry.js} +16 -43
  28. package/dist/searchcraft-javascript-sdk/searchcraft-filters-list.entry.js.map +1 -0
  29. package/dist/{components/p-6237f03e.js → searchcraft-javascript-sdk/searchcraft-input-caption.entry.js} +10 -31
  30. package/dist/searchcraft-javascript-sdk/searchcraft-input-caption.entry.js.map +1 -0
  31. package/dist/searchcraft-javascript-sdk/searchcraft-input-icon.entry.js +25 -0
  32. package/dist/searchcraft-javascript-sdk/searchcraft-input-icon.entry.js.map +1 -0
  33. package/dist/searchcraft-javascript-sdk/searchcraft-input-label.entry.js +29 -0
  34. package/dist/searchcraft-javascript-sdk/searchcraft-input-label.entry.js.map +1 -0
  35. package/dist/{components/p-2350c0ab.js → searchcraft-javascript-sdk/searchcraft-input.entry.js} +12 -83
  36. package/dist/searchcraft-javascript-sdk/searchcraft-input.entry.js.map +1 -0
  37. package/dist/searchcraft-javascript-sdk/searchcraft-javascript-sdk.esm.js +48 -1
  38. package/dist/searchcraft-javascript-sdk/searchcraft-javascript-sdk.esm.js.map +1 -1
  39. package/dist/{collection/components/searchcraft-results-info/searchcraft-results-info.js → searchcraft-javascript-sdk/searchcraft-results-info.entry.js} +15 -26
  40. package/dist/searchcraft-javascript-sdk/searchcraft-results-info.entry.js.map +1 -0
  41. package/dist/{components/p-a3bd1bc8.js → searchcraft-javascript-sdk/searchcraft-search-icon-set.entry.js} +7 -26
  42. package/dist/searchcraft-javascript-sdk/searchcraft-search-icon-set.entry.js.map +1 -0
  43. package/dist/searchcraft-javascript-sdk/searchcraft-slider.entry.js +76 -0
  44. package/dist/searchcraft-javascript-sdk/searchcraft-slider.entry.js.map +1 -0
  45. package/dist/searchcraft-javascript-sdk/searchcraft-spinner-dark.entry.js +17 -0
  46. package/dist/searchcraft-javascript-sdk/searchcraft-spinner-dark.entry.js.map +1 -0
  47. package/dist/searchcraft-javascript-sdk/searchcraft-spinner-light.entry.js +17 -0
  48. package/dist/searchcraft-javascript-sdk/searchcraft-spinner-light.entry.js.map +1 -0
  49. package/dist/{collection/components/searchcraft-toggle-button/searchcraft-toggle-button.js → searchcraft-javascript-sdk/searchcraft-toggle-button.entry.js} +15 -47
  50. package/dist/searchcraft-javascript-sdk/searchcraft-toggle-button.entry.js.map +1 -0
  51. package/dist/searchcraft-javascript-sdk/shadow-css-423dab2c.js +334 -0
  52. package/dist/searchcraft-javascript-sdk/shadow-css-423dab2c.js.map +1 -0
  53. package/dist/searchcraft-javascript-sdk/store-0451a982.js +3070 -0
  54. package/dist/searchcraft-javascript-sdk/store-0451a982.js.map +1 -0
  55. package/dist/searchcraft-javascript-sdk/store-18b7e3ea.js +3071 -0
  56. package/dist/searchcraft-javascript-sdk/store-18b7e3ea.js.map +1 -0
  57. package/dist/searchcraft-javascript-sdk/store-910b9836.js +3071 -0
  58. package/dist/searchcraft-javascript-sdk/store-910b9836.js.map +1 -0
  59. package/dist/searchcraft-javascript-sdk/store-935525f8.js +3071 -0
  60. package/dist/searchcraft-javascript-sdk/store-935525f8.js.map +1 -0
  61. package/dist/{components/p-aff5cd24.js → searchcraft-javascript-sdk/utils-6d98c145.js} +21 -2
  62. package/dist/searchcraft-javascript-sdk/utils-6d98c145.js.map +1 -0
  63. package/dist/{esm/utils-e2076797.js → searchcraft-javascript-sdk/utils-d88ac15c.js} +22 -4
  64. package/dist/searchcraft-javascript-sdk/utils-d88ac15c.js.map +1 -0
  65. package/dist/{cjs/utils-bd99e8b0.js → searchcraft-javascript-sdk/utils-dbb6302b.js} +23 -10
  66. package/dist/searchcraft-javascript-sdk/utils-dbb6302b.js.map +1 -0
  67. package/dist/types/components/searchcraft-auto-search-form/searchcraft-auto-search-form.d.ts +1 -1
  68. package/dist/types/components/searchcraft-base-search-result/searchcraft-base-search-result.d.ts +3 -3
  69. package/dist/types/components/searchcraft-base-search-results/searchcraft-base-search-results.d.ts +8 -9
  70. package/dist/types/components/searchcraft-filters-list/searchcraft-filters-list.d.ts +1 -1
  71. package/dist/types/components/searchcraft-input-icon/searchcraft-input-icon.d.ts +1 -7
  72. package/dist/types/components/searchcraft-slider/searchcraft-slider.d.ts +4 -4
  73. package/dist/types/components.d.ts +1 -13
  74. package/dist/types/provider/store.d.ts +8 -8
  75. package/dist/types/utils/utils.d.ts +1 -0
  76. package/package.json +1 -1
  77. package/dist/cjs/app-globals-3a1e7e63.js +0 -7
  78. package/dist/cjs/app-globals-3a1e7e63.js.map +0 -1
  79. package/dist/cjs/index-5b0b9d4c.js +0 -84
  80. package/dist/cjs/index-5b0b9d4c.js.map +0 -1
  81. package/dist/cjs/index-6c5282a0.js +0 -1279
  82. package/dist/cjs/index-6c5282a0.js.map +0 -1
  83. package/dist/cjs/index.cjs.js +0 -17
  84. package/dist/cjs/index.cjs.js.map +0 -1
  85. package/dist/cjs/loader.cjs.js +0 -17
  86. package/dist/cjs/loader.cjs.js.map +0 -1
  87. package/dist/cjs/searchcraft-auto-search-form_17.cjs.entry.js +0 -804
  88. package/dist/cjs/searchcraft-auto-search-form_17.cjs.entry.js.map +0 -1
  89. package/dist/cjs/searchcraft-base-search-form.cjs.entry.js +0 -64
  90. package/dist/cjs/searchcraft-base-search-form.cjs.entry.js.map +0 -1
  91. package/dist/cjs/searchcraft-button-icon.cjs.entry.js +0 -18
  92. package/dist/cjs/searchcraft-button-icon.cjs.entry.js.map +0 -1
  93. package/dist/cjs/searchcraft-button.cjs.entry.js +0 -37
  94. package/dist/cjs/searchcraft-button.cjs.entry.js.map +0 -1
  95. package/dist/cjs/searchcraft-javascript-sdk.cjs.js +0 -27
  96. package/dist/cjs/searchcraft-javascript-sdk.cjs.js.map +0 -1
  97. package/dist/cjs/store-ccdd30e6.js +0 -314
  98. package/dist/cjs/store-ccdd30e6.js.map +0 -1
  99. package/dist/cjs/utils-bd99e8b0.js.map +0 -1
  100. package/dist/collection/assets/searchcraft-button-icons.js +0 -9
  101. package/dist/collection/assets/searchcraft-button-icons.js.map +0 -1
  102. package/dist/collection/assets/searchcraft-clear-icon-set.js +0 -45
  103. package/dist/collection/assets/searchcraft-clear-icon-set.js.map +0 -1
  104. package/dist/collection/assets/searchcraft-search-icon-set.js +0 -84
  105. package/dist/collection/assets/searchcraft-search-icon-set.js.map +0 -1
  106. package/dist/collection/collection-manifest.json +0 -31
  107. package/dist/collection/components/searchcraft-auto-search-form/searchcraft-auto-search-form.js +0 -365
  108. package/dist/collection/components/searchcraft-auto-search-form/searchcraft-auto-search-form.js.map +0 -1
  109. package/dist/collection/components/searchcraft-auto-search-form/searchcraft-auto-search-form.module.css +0 -13
  110. package/dist/collection/components/searchcraft-base-search-form/searchcraft-base-search-form.js +0 -168
  111. package/dist/collection/components/searchcraft-base-search-form/searchcraft-base-search-form.js.map +0 -1
  112. package/dist/collection/components/searchcraft-base-search-form/searchcraft-base-search-form.module.css +0 -14
  113. package/dist/collection/components/searchcraft-base-search-result/searchcraft-base-search-result.js +0 -308
  114. package/dist/collection/components/searchcraft-base-search-result/searchcraft-base-search-result.js.map +0 -1
  115. package/dist/collection/components/searchcraft-base-search-result/searchcraft-base-search-result.module.css +0 -216
  116. package/dist/collection/components/searchcraft-base-search-results/searchcraft-base-search-results.js +0 -271
  117. package/dist/collection/components/searchcraft-base-search-results/searchcraft-base-search-results.js.map +0 -1
  118. package/dist/collection/components/searchcraft-base-search-results/searchcraft-base-search-results.module.css +0 -47
  119. package/dist/collection/components/searchcraft-button/searchcraft-button.js +0 -137
  120. package/dist/collection/components/searchcraft-button/searchcraft-button.js.map +0 -1
  121. package/dist/collection/components/searchcraft-button/searchcraft-button.module.css +0 -82
  122. package/dist/collection/components/searchcraft-clear-input-button/searchcraft-clear-input-button.js +0 -96
  123. package/dist/collection/components/searchcraft-clear-input-button/searchcraft-clear-input-button.js.map +0 -1
  124. package/dist/collection/components/searchcraft-clear-input-button/searchcraft-clear-input-button.module.css +0 -33
  125. package/dist/collection/components/searchcraft-error-message/searchcraft-error-message.js +0 -64
  126. package/dist/collection/components/searchcraft-error-message/searchcraft-error-message.js.map +0 -1
  127. package/dist/collection/components/searchcraft-error-message/searchcraft-error-message.module.css +0 -21
  128. package/dist/collection/components/searchcraft-filters-list/searchcraft-filters-list.js +0 -155
  129. package/dist/collection/components/searchcraft-filters-list/searchcraft-filters-list.js.map +0 -1
  130. package/dist/collection/components/searchcraft-filters-list/searchcraft-filters-list.module.css +0 -70
  131. package/dist/collection/components/searchcraft-input/searchcraft-input.js +0 -352
  132. package/dist/collection/components/searchcraft-input/searchcraft-input.js.map +0 -1
  133. package/dist/collection/components/searchcraft-input/searchcraft-input.module.css +0 -241
  134. package/dist/collection/components/searchcraft-input-caption/searchcraft-input-caption.js +0 -122
  135. package/dist/collection/components/searchcraft-input-caption/searchcraft-input-caption.js.map +0 -1
  136. package/dist/collection/components/searchcraft-input-caption/searchcraft-input-caption.module.css +0 -79
  137. package/dist/collection/components/searchcraft-input-icon/searchcraft-input-icon.js +0 -109
  138. package/dist/collection/components/searchcraft-input-icon/searchcraft-input-icon.js.map +0 -1
  139. package/dist/collection/components/searchcraft-input-icon/searchcraft-input-icon.module.css +0 -17
  140. package/dist/collection/components/searchcraft-input-label/searchcraft-input-label.js +0 -77
  141. package/dist/collection/components/searchcraft-input-label/searchcraft-input-label.js.map +0 -1
  142. package/dist/collection/components/searchcraft-input-label/searchcraft-input-label.module.css +0 -21
  143. package/dist/collection/components/searchcraft-results-info/searchcraft-results-info.js.map +0 -1
  144. package/dist/collection/components/searchcraft-results-info/searchcraft-results-info.module.css +0 -16
  145. package/dist/collection/components/searchcraft-slider/searchcraft-slider.js +0 -121
  146. package/dist/collection/components/searchcraft-slider/searchcraft-slider.js.map +0 -1
  147. package/dist/collection/components/searchcraft-slider/searchcraft-slider.module.css +0 -77
  148. package/dist/collection/components/searchcraft-spinner-dark/searchcraft-spinner-dark.js +0 -19
  149. package/dist/collection/components/searchcraft-spinner-dark/searchcraft-spinner-dark.js.map +0 -1
  150. package/dist/collection/components/searchcraft-spinner-dark/searchcraft-spinner-dark.module.css +0 -35
  151. package/dist/collection/components/searchcraft-spinner-light/searchcraft-spinner-light.js +0 -19
  152. package/dist/collection/components/searchcraft-spinner-light/searchcraft-spinner-light.js.map +0 -1
  153. package/dist/collection/components/searchcraft-spinner-light/searchcraft-spinner-light.module.css +0 -26
  154. package/dist/collection/components/searchcraft-toggle-button/searchcraft-toggle-button.js.map +0 -1
  155. package/dist/collection/components/searchcraft-toggle-button/searchcraft-toggle-button.module.css +0 -31
  156. package/dist/collection/index.js +0 -14
  157. package/dist/collection/index.js.map +0 -1
  158. package/dist/collection/provider/store.js +0 -97
  159. package/dist/collection/provider/store.js.map +0 -1
  160. package/dist/collection/utils/utils.js +0 -45
  161. package/dist/collection/utils/utils.js.map +0 -1
  162. package/dist/components/index.js +0 -58
  163. package/dist/components/index.js.map +0 -1
  164. package/dist/components/p-1101288c.js +0 -53
  165. package/dist/components/p-1101288c.js.map +0 -1
  166. package/dist/components/p-15dd4fe4.js +0 -33
  167. package/dist/components/p-15dd4fe4.js.map +0 -1
  168. package/dist/components/p-2350c0ab.js.map +0 -1
  169. package/dist/components/p-5cdc6210.js.map +0 -1
  170. package/dist/components/p-6237f03e.js.map +0 -1
  171. package/dist/components/p-70722ab2.js.map +0 -1
  172. package/dist/components/p-7498e493.js +0 -1113
  173. package/dist/components/p-7498e493.js.map +0 -1
  174. package/dist/components/p-848301b7.js +0 -40
  175. package/dist/components/p-848301b7.js.map +0 -1
  176. package/dist/components/p-85693c64.js +0 -61
  177. package/dist/components/p-85693c64.js.map +0 -1
  178. package/dist/components/p-8fe6289d.js +0 -49
  179. package/dist/components/p-8fe6289d.js.map +0 -1
  180. package/dist/components/p-99971aa9.js +0 -310
  181. package/dist/components/p-99971aa9.js.map +0 -1
  182. package/dist/components/p-a3bd1bc8.js.map +0 -1
  183. package/dist/components/p-aff5cd24.js.map +0 -1
  184. package/dist/components/p-bd90d9b4.js +0 -85
  185. package/dist/components/p-bd90d9b4.js.map +0 -1
  186. package/dist/components/p-c70cd874.js +0 -68
  187. package/dist/components/p-c70cd874.js.map +0 -1
  188. package/dist/components/p-c815eb98.js +0 -33
  189. package/dist/components/p-c815eb98.js.map +0 -1
  190. package/dist/components/searchcraft-auto-search-form.js +0 -207
  191. package/dist/components/searchcraft-auto-search-form.js.map +0 -1
  192. package/dist/components/searchcraft-base-search-form.js +0 -152
  193. package/dist/components/searchcraft-base-search-form.js.map +0 -1
  194. package/dist/components/searchcraft-base-search-result.js +0 -8
  195. package/dist/components/searchcraft-base-search-result.js.map +0 -1
  196. package/dist/components/searchcraft-base-search-results.js.map +0 -1
  197. package/dist/components/searchcraft-button-icon.js +0 -32
  198. package/dist/components/searchcraft-button-icon.js.map +0 -1
  199. package/dist/components/searchcraft-button.js +0 -8
  200. package/dist/components/searchcraft-button.js.map +0 -1
  201. package/dist/components/searchcraft-clear-icon-set.js +0 -8
  202. package/dist/components/searchcraft-clear-icon-set.js.map +0 -1
  203. package/dist/components/searchcraft-clear-input-button.js +0 -8
  204. package/dist/components/searchcraft-clear-input-button.js.map +0 -1
  205. package/dist/components/searchcraft-error-message.js +0 -8
  206. package/dist/components/searchcraft-error-message.js.map +0 -1
  207. package/dist/components/searchcraft-filters-list.js.map +0 -1
  208. package/dist/components/searchcraft-input-caption.js +0 -8
  209. package/dist/components/searchcraft-input-caption.js.map +0 -1
  210. package/dist/components/searchcraft-input-icon.js +0 -8
  211. package/dist/components/searchcraft-input-icon.js.map +0 -1
  212. package/dist/components/searchcraft-input-label.js +0 -8
  213. package/dist/components/searchcraft-input-label.js.map +0 -1
  214. package/dist/components/searchcraft-input.js +0 -8
  215. package/dist/components/searchcraft-input.js.map +0 -1
  216. package/dist/components/searchcraft-results-info.js +0 -63
  217. package/dist/components/searchcraft-results-info.js.map +0 -1
  218. package/dist/components/searchcraft-search-icon-set.js +0 -8
  219. package/dist/components/searchcraft-search-icon-set.js.map +0 -1
  220. package/dist/components/searchcraft-slider.js +0 -95
  221. package/dist/components/searchcraft-slider.js.map +0 -1
  222. package/dist/components/searchcraft-spinner-dark.js +0 -8
  223. package/dist/components/searchcraft-spinner-dark.js.map +0 -1
  224. package/dist/components/searchcraft-spinner-light.js +0 -8
  225. package/dist/components/searchcraft-spinner-light.js.map +0 -1
  226. package/dist/components/searchcraft-toggle-button.js +0 -83
  227. package/dist/components/searchcraft-toggle-button.js.map +0 -1
  228. package/dist/esm/index-0ac5bb53.js +0 -1251
  229. package/dist/esm/index-0ac5bb53.js.map +0 -1
  230. package/dist/esm/index-72ac5051.js +0 -82
  231. package/dist/esm/index-72ac5051.js.map +0 -1
  232. package/dist/esm/index.js +0 -4
  233. package/dist/esm/index.js.map +0 -1
  234. package/dist/esm/loader.js +0 -13
  235. package/dist/esm/loader.js.map +0 -1
  236. package/dist/esm/searchcraft-auto-search-form_17.entry.js +0 -784
  237. package/dist/esm/searchcraft-auto-search-form_17.entry.js.map +0 -1
  238. package/dist/esm/searchcraft-base-search-form.entry.js.map +0 -1
  239. package/dist/esm/searchcraft-button-icon.entry.js.map +0 -1
  240. package/dist/esm/searchcraft-button.entry.js.map +0 -1
  241. package/dist/esm/searchcraft-javascript-sdk.js +0 -22
  242. package/dist/esm/searchcraft-javascript-sdk.js.map +0 -1
  243. package/dist/esm/store-311de204.js +0 -310
  244. package/dist/esm/store-311de204.js.map +0 -1
  245. package/dist/esm/utils-e2076797.js.map +0 -1
  246. package/dist/index.cjs.js +0 -1
  247. package/dist/index.js +0 -1
  248. package/dist/loader/cdn.js +0 -1
  249. package/dist/loader/index.cjs.js +0 -1
  250. package/dist/loader/index.d.ts +0 -24
  251. package/dist/loader/index.es2017.js +0 -1
  252. package/dist/loader/index.js +0 -2
  253. package/dist/loader/package.json +0 -11
  254. package/dist/searchcraft-javascript-sdk/p-0880cfbb.js +0 -3
  255. package/dist/searchcraft-javascript-sdk/p-0880cfbb.js.map +0 -1
  256. package/dist/searchcraft-javascript-sdk/p-5cdc6210.js +0 -7
  257. package/dist/searchcraft-javascript-sdk/p-5cdc6210.js.map +0 -1
  258. package/dist/searchcraft-javascript-sdk/p-5ec960bd.entry.js +0 -2
  259. package/dist/searchcraft-javascript-sdk/p-5ec960bd.entry.js.map +0 -1
  260. package/dist/searchcraft-javascript-sdk/p-6108dd80.entry.js +0 -2
  261. package/dist/searchcraft-javascript-sdk/p-6108dd80.entry.js.map +0 -1
  262. package/dist/searchcraft-javascript-sdk/p-80ea9602.js +0 -11
  263. package/dist/searchcraft-javascript-sdk/p-80ea9602.js.map +0 -1
  264. package/dist/searchcraft-javascript-sdk/p-a9bac3ca.entry.js +0 -2
  265. package/dist/searchcraft-javascript-sdk/p-a9bac3ca.entry.js.map +0 -1
  266. package/dist/searchcraft-javascript-sdk/p-aff5cd24.js +0 -2
  267. package/dist/searchcraft-javascript-sdk/p-aff5cd24.js.map +0 -1
  268. package/dist/searchcraft-javascript-sdk/p-cc454542.entry.js +0 -2
  269. package/dist/searchcraft-javascript-sdk/p-cc454542.entry.js.map +0 -1
  270. package/dist/searchcraft-javascript-sdk/p-e1255160.js +0 -2
  271. package/dist/searchcraft-javascript-sdk/p-e1255160.js.map +0 -1
  272. /package/dist/{esm → searchcraft-javascript-sdk}/app-globals-0f993ce5.js +0 -0
  273. /package/dist/{esm → searchcraft-javascript-sdk}/app-globals-0f993ce5.js.map +0 -0
@@ -0,0 +1 @@
1
+ {"file":"searchcraft-clear-icon-set.entry.esm.js","mappings":";;MAMa,uBAAuB;;;oBAMhC,aAAa;;IAEf,MAAM;QACJ,QAAQ,IAAI,CAAC,IAAI;YACf,K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ACE,OAAO,IAAI,CAAC;SACf;KACF;;;;;","names":[],"sources":["src/assets/searchcraft-clear-icon-set.tsx"],"sourcesContent":["import { Component, Prop, h } from '@stencil/core';\n\n@Component({\n tag: 'searchcraft-clear-icon-set',\n shadow: true,\n})\nexport class SearchcraftClearIconSet {\n /**\n * Type of the icon to display.\n * Options: 'clear-light', 'clear-dark', 'arrow-light', 'arrow-dark'\n */\n @Prop() type: 'clear-light' | 'clear-dark' | 'arrow-light' | 'arrow-dark' =\n 'clear-light';\n\n render() {\n switch (this.type) {\n case 'clear-light':\n return (\n <svg\n width='22'\n height='22'\n viewBox='0 0 22 22'\n fill='none'\n xmlns='http://www.w3.org/2000/svg'\n aria-labelledby='icon-title'\n >\n <title id='icon-title'>Searchcraft Clear Input Icon Light</title>\n <path\n d='M14 8L8 14M8 8L14 14M21 11C21 16.5228 16.5228 21 11 21C5.47715 21 1 16.5228 1 11C1 5.47715 5.47715 1 11 1C16.5228 1 21 5.47715 21 11Z'\n stroke='black'\n stroke-width='1.5'\n stroke-linecap='round'\n stroke-linejoin='round'\n />\n </svg>\n );\n case 'clear-dark':\n return (\n <svg\n width='22'\n height='22'\n viewBox='0 0 22 22'\n fill='none'\n xmlns='http://www.w3.org/2000/svg'\n aria-labelledby='icon-title'\n >\n <title id='icon-title'>Searchcraft Clear Input Icon Dark</title>\n <path\n d='M14 8L8 14M8 8L14 14M21 11C21 16.5228 16.5228 21 11 21C5.47715 21 1 16.5228 1 11C1 5.47715 5.47715 1 11 1C16.5228 1 21 5.47715 21 11Z'\n stroke='white'\n stroke-width='1.5'\n stroke-linecap='round'\n stroke-linejoin='round'\n />\n </svg>\n );\n case 'arrow-light':\n return (\n <svg\n width='20'\n height='21'\n viewBox='0 0 20 21'\n fill='none'\n xmlns='http://www.w3.org/2000/svg'\n aria-labelledby='icon-title'\n >\n <title id='icon-title'>Searchcraft Arrow Right Icon Light</title>\n <path\n d='M7.5 15.0444L12.5 10.0444L7.5 5.04443'\n stroke='#737373'\n stroke-width='1.5'\n stroke-linecap='round'\n stroke-linejoin='round'\n />\n </svg>\n );\n case 'arrow-dark':\n return (\n <svg\n width='8'\n height='12'\n viewBox='0 0 8 12'\n fill='none'\n xmlns='http://www.w3.org/2000/svg'\n aria-labelledby='icon-title'\n >\n <title id='icon-title'>Searchcraft Arrow Right Icon Dark</title>\n <path\n d='M1.5 11L6.5 6L1.5 1'\n stroke='#BFBFBF'\n stroke-width='1.5'\n stroke-linecap='round'\n stroke-linejoin='round'\n />\n </svg>\n );\n\n default:\n return null;\n }\n }\n}\n"],"version":3}
@@ -0,0 +1,30 @@
1
+ import { r as registerInstance, a as createEvent, h } from './index-8211f330.js';
2
+ import { c as classNames } from './index-d6567b9c.js';
3
+ import './_commonjsHelpers-63cbe26c.js';
4
+
5
+ const searchcraftClearInputButtonModuleCss = ":root{--font-stack:Helvetica, Arial, sans-serif}.inputClearButtonLTR{align-items:center;background:none;border:none;display:flex;height:20px;justify-content:center;padding:0;position:absolute;right:0;top:50%;transform:translateY(-50%);width:20px}.inputClearButtonRTL{align-items:center;background:none;border:none;display:flex;height:20px;justify-content:center;left:0px;padding:0;position:absolute;top:50%;transform:translateY(-50%);width:20px}";
6
+
7
+ const SearchcraftClearInputButton = class {
8
+ constructor(hostRef) {
9
+ registerInstance(this, hostRef);
10
+ this.clearInput = createEvent(this, "clearInput", 7);
11
+ this.handleClearClick = (event) => {
12
+ event.preventDefault();
13
+ this.clearInput.emit();
14
+ };
15
+ this.isRequesting = false;
16
+ this.rightToLeftOrientation = false;
17
+ this.theme = 'light';
18
+ }
19
+ isLightTheme() {
20
+ return this.theme === 'light';
21
+ }
22
+ render() {
23
+ return this.rightToLeftOrientation ? (h("button", { class: classNames('inputClearButtonRTL', '.sc-clear-input-button-rtl'), onClick: this.handleClearClick, type: 'button' }, this.isRequesting ? (this.isLightTheme ? (h("searchcraft-spinner-light", null)) : (h("searchcraft-spinner-dark", null))) : this.isLightTheme ? (h("searchcraft-clear-icon-set", { type: 'clear-light' })) : (h("searchcraft-clear-icon-set", { type: 'clear-dark' })))) : (h("button", { class: classNames('inputClearButtonLTR', '.sc-clear-input-button-ltr'), onClick: this.handleClearClick, type: 'button' }, this.isRequesting ? (this.isLightTheme ? (h("searchcraft-spinner-light", null)) : (h("searchcraft-spinner-dark", null))) : this.isLightTheme ? (h("searchcraft-clear-icon-set", { type: 'clear-light' })) : (h("searchcraft-clear-icon-set", { type: 'clear-dark' }))));
24
+ }
25
+ };
26
+ SearchcraftClearInputButton.style = searchcraftClearInputButtonModuleCss;
27
+
28
+ export { SearchcraftClearInputButton as searchcraft_clear_input_button };
29
+
30
+ //# sourceMappingURL=searchcraft-clear-input-button.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"searchcraft-clear-input-button.entry.esm.js","mappings":";;;;AAAA,MAAM,oCAAoC,GAAG,+bAA+b;;MCe/d,2BAA2B;;;;QAY9B,qBAAgB,GAAG,CAAC,KAAiB;YAC3C,KAAK,CAAC,cAAc,EAAE,CAAC;YACvB,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC;SACxB,CAAC;4BAdsB,KAAK;sCACI,KAAK;qBAIrB,OAAO;;IAEhB,YAAY;QAClB,OAAO,IAAI,CAAC,KAAK,KAAK,OAAO,CAAC;KAC/B;IAOD,MAAM;QACJ,OAAO,IAAI,CAAC,sBAAsB,IAChC,cACE,KAAK,EAAE,UAAU,CAAC,qBAAqB,EAAE,4BAA4B,CAAC,EACtE,OAAO,EAAE,IAAI,CAAC,gBAAgB,EAC9B,IAAI,EAAC,QAAQ,IAEZ,IAAI,CAAC,YAAY,IAChB,IAAI,CAAC,YAAY,IACf,oCAA6B,KAE7B,mCAA4B,CAC7B,IACC,IAAI,CAAC,YAAY,IACnB,kCAA4B,IAAI,EAAC,aAAa,GAAG,KAEjD,kCAA4B,IAAI,EAAC,YAAY,GAAG,CACjD,CACM,KAET,cACE,KAAK,EAAE,UAAU,CAAC,qBAAqB,EAAE,4BAA4B,CAAC,EACtE,OAAO,EAAE,IAAI,CAAC,gBAAgB,EAC9B,IAAI,EAAC,QAAQ,IAEZ,IAAI,CAAC,YAAY,IAChB,IAAI,CAAC,YAAY,IACf,oCAA6B,KAE7B,mCAA4B,CAC7B,IACC,IAAI,CAAC,YAAY,IACnB,kCAA4B,IAAI,EAAC,aAAa,GAAG,KAEjD,kCAA4B,IAAI,EAAC,YAAY,GAAG,CACjD,CACM,CACV,CAAC;KACH;;;;;;","names":[],"sources":["src/components/searchcraft-clear-input-button/searchcraft-clear-input-button.module.scss?tag=searchcraft-clear-input-button&encapsulation=shadow","src/components/searchcraft-clear-input-button/searchcraft-clear-input-button.tsx"],"sourcesContent":[":root {\n --font-stack: Helvetica, Arial, sans-serif;\n}\n\n.inputClearButtonLTR {\n align-items: center;\n background: none;\n border: none;\n display: flex;\n height: 20px;\n justify-content: center;\n padding: 0;\n position: absolute;\n right: 0;\n top: 50%;\n transform: translateY(-50%);\n width: 20px;\n}\n\n.inputClearButtonRTL {\n align-items: center;\n background: none;\n border: none;\n display: flex;\n height: 20px;\n justify-content: center;\n left: 0px;\n padding: 0;\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n width: 20px;\n}","import {\n Component,\n Event,\n type EventEmitter,\n Prop,\n h,\n State,\n} from '@stencil/core';\nimport classNames from 'classnames';\n\n@Component({\n tag: 'searchcraft-clear-input-button',\n styleUrl: 'searchcraft-clear-input-button.module.scss',\n shadow: true,\n})\nexport class SearchcraftClearInputButton {\n @Prop() isRequesting? = false;\n @Prop() rightToLeftOrientation = false;\n\n @Event() clearInput: EventEmitter<void>;\n\n @State() theme = 'light';\n\n private isLightTheme() {\n return this.theme === 'light';\n }\n\n private handleClearClick = (event: MouseEvent) => {\n event.preventDefault();\n this.clearInput.emit();\n };\n\n render() {\n return this.rightToLeftOrientation ? (\n <button\n class={classNames('inputClearButtonRTL', '.sc-clear-input-button-rtl')}\n onClick={this.handleClearClick}\n type='button'\n >\n {this.isRequesting ? (\n this.isLightTheme ? (\n <searchcraft-spinner-light />\n ) : (\n <searchcraft-spinner-dark />\n )\n ) : this.isLightTheme ? (\n <searchcraft-clear-icon-set type='clear-light' />\n ) : (\n <searchcraft-clear-icon-set type='clear-dark' />\n )}\n </button>\n ) : (\n <button\n class={classNames('inputClearButtonLTR', '.sc-clear-input-button-ltr')}\n onClick={this.handleClearClick}\n type='button'\n >\n {this.isRequesting ? (\n this.isLightTheme ? (\n <searchcraft-spinner-light />\n ) : (\n <searchcraft-spinner-dark />\n )\n ) : this.isLightTheme ? (\n <searchcraft-clear-icon-set type='clear-light' />\n ) : (\n <searchcraft-clear-icon-set type='clear-dark' />\n )}\n </button>\n );\n }\n}\n"],"version":3}
@@ -0,0 +1,22 @@
1
+ import { r as registerInstance, h } from './index-8211f330.js';
2
+ import { c as classNames } from './index-d6567b9c.js';
3
+ import './_commonjsHelpers-63cbe26c.js';
4
+
5
+ const searchcraftErrorMessageModuleCss = ":root{--font-stack:Helvetica, Arial, sans-serif}.errorMessageLight{font-family:var(--font-stack);font-size:12px;font-weight:400;line-height:16px;margin-top:4px;color:#990000}.errorMessageDark{font-family:var(--font-stack);font-size:12px;font-weight:400;line-height:16px;margin-top:4px;color:#FFB3B3}";
6
+
7
+ const SearchcraftErrorMessage = class {
8
+ constructor(hostRef) {
9
+ registerInstance(this, hostRef);
10
+ this.errorMessage = undefined;
11
+ this.theme = 'light';
12
+ }
13
+ render() {
14
+ const errorMessageStyle = this.theme === 'light' ? 'errorMessageLight' : 'errorMessageDark';
15
+ return (h("p", { key: '544903d700810ed5d6efdefedab646cafed2376d', class: classNames(errorMessageStyle) }, this.errorMessage || 'Search term is required.'));
16
+ }
17
+ };
18
+ SearchcraftErrorMessage.style = searchcraftErrorMessageModuleCss;
19
+
20
+ export { SearchcraftErrorMessage as searchcraft_error_message };
21
+
22
+ //# sourceMappingURL=searchcraft-error-message.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"searchcraft-error-message.entry.esm.js","mappings":";;;;AAAA,MAAM,gCAAgC,GAAG,6SAA6S;;MCQzU,uBAAuB;;;;qBASA,OAAO;;IAEzC,MAAM;QACJ,MAAM,iBAAiB,GACrB,IAAI,CAAC,KAAK,KAAK,OAAO,GAAG,mBAAmB,GAAG,kBAAkB,CAAC;QAEpE,QACE,0DAAG,KAAK,EAAE,UAAU,CAAC,iBAAiB,CAAC,IACpC,IAAI,CAAC,YAAY,IAAI,0BAA0B,CAC9C,EACJ;KACH;;;;;;","names":[],"sources":["src/components/searchcraft-error-message/searchcraft-error-message.module.scss?tag=searchcraft-error-message&encapsulation=shadow","src/components/searchcraft-error-message/searchcraft-error-message.tsx"],"sourcesContent":["@import '../../utils/theme';\n\n:root {\n --font-stack: Helvetica, Arial, sans-serif;\n}\n\n@mixin error-message-base {\n font-family: var(--font-stack);\n font-size: 12px;\n font-weight: 400;\n line-height: 16px;\n margin-top: 4px;\n}\n\n.errorMessageLight {\n @include error-message-base;\n color: $light-input-caption-color-error;\n}\n\n.errorMessageDark {\n @include error-message-base;\n color: $dark-input-caption-color-error;\n}","import { Component, Prop, h } from '@stencil/core';\nimport classNames from 'classnames';\n\n@Component({\n tag: 'searchcraft-error-message',\n styleUrl: 'searchcraft-error-message.module.scss',\n shadow: true,\n})\nexport class SearchcraftErrorMessage {\n /**\n * The error message to display. Defaults to a standard message if not provided.\n */\n @Prop() errorMessage?: string;\n\n /**\n * The theme, which determines the style (light or dark).\n */\n @Prop() theme: 'light' | 'dark' = 'light';\n\n render() {\n const errorMessageStyle =\n this.theme === 'light' ? 'errorMessageLight' : 'errorMessageDark';\n\n return (\n <p class={classNames(errorMessageStyle)}>\n {this.errorMessage || 'Search term is required.'}\n </p>\n );\n }\n}\n"],"version":3}
@@ -1,14 +1,12 @@
1
- import { p as proxyCustomElement, H, c as createEvent, h } from './p-7498e493.js';
2
- import { u as useSearchcraftStore } from './p-99971aa9.js';
1
+ import { r as registerInstance, a as createEvent, h } from './index-8211f330.js';
2
+ import { u as useSearchcraftStore } from './store-0451a982.js';
3
+ import './_commonjsHelpers-63cbe26c.js';
3
4
 
4
5
  const searchcraftFiltersListModuleCss = "@charset \"UTF-8\";.filtersList{width:100%}.checkboxLabel{align-items:center;color:#292929;display:flex;font-family:\"Source Sans Pro\";font-size:14px;font-weight:600;gap:14px}.checkboxLabel input[type=checkbox]{align-items:center;appearance:none;background-color:#EDEDED;border:1px solid #D9D9D9;cursor:pointer;display:flex;height:24px;justify-content:center;width:24px}.checkboxLabel input[type=checkbox]:checked{background-color:#000}.checkboxLabel input[type=checkbox]:checked::before{color:#fff;content:\"✔\"}.remainingFilterListCheckbox{margin-left:16px}.childCheckboxLabel{align-items:center;color:#292929;display:flex;font-family:\"Source Sans Pro\";font-size:14px;font-weight:600;gap:12px}.childCheckboxLabel input[type=checkbox]{align-items:center;appearance:none;background-color:#EDEDED;border:1px solid #D9D9D9;cursor:pointer;display:flex;height:24px;justify-content:center;width:24px}.childCheckboxLabel input[type=checkbox]:checked{background-color:#000}.childCheckboxLabel input[type=checkbox]:checked::before{color:#fff;content:\"✔\"}";
5
- const SearchcraftFiltersListStyle0 = searchcraftFiltersListModuleCss;
6
6
 
7
- const SearchcraftFiltersList$1 = /*@__PURE__*/ proxyCustomElement(class SearchcraftFiltersList extends H {
8
- constructor() {
9
- super();
10
- this.__registerHost();
11
- this.__attachShadow();
7
+ const SearchcraftFiltersList = class {
8
+ constructor(hostRef) {
9
+ registerInstance(this, hostRef);
12
10
  this.filtersUpdated = createEvent(this, "filtersUpdated", 7);
13
11
  this.searchStore = useSearchcraftStore.getState();
14
12
  this.handleFilterChange = (value, checked) => {
@@ -27,10 +25,10 @@ const SearchcraftFiltersList$1 = /*@__PURE__*/ proxyCustomElement(class Searchcr
27
25
  this.dynamicFilters = [];
28
26
  this.initialFilters = [];
29
27
  this.isRequesting = false;
30
- this.selectedFilters = new Set();
31
28
  this.originalFilterCounts = {};
32
29
  this.query = '';
33
30
  this.resultsCount = 0;
31
+ this.selectedFilters = new Set();
34
32
  }
35
33
  connectedCallback() {
36
34
  this.unsubscribe = useSearchcraftStore.subscribe((state) => {
@@ -72,10 +70,10 @@ const SearchcraftFiltersList$1 = /*@__PURE__*/ proxyCustomElement(class Searchcr
72
70
  }
73
71
  formatLabel(label) {
74
72
  return label
75
- .replace(/-/g, ' ') // Replace dashes with spaces
76
- .split(' ') // Split words
77
- .map((word) => word.charAt(0).toUpperCase() + word.slice(1)) // Capitalize the first letter
78
- .join(' '); // Join words back into a single string
73
+ .replace(/-/g, ' ')
74
+ .split(' ')
75
+ .map((word) => word.charAt(0).toUpperCase() + word.slice(1))
76
+ .join(' ');
79
77
  }
80
78
  render() {
81
79
  if (!this.query || this.resultsCount === 0) {
@@ -89,38 +87,13 @@ const SearchcraftFiltersList$1 = /*@__PURE__*/ proxyCustomElement(class Searchcr
89
87
  });
90
88
  return (h("div", { class: 'filtersList' }, filtersToRender.map((filter) => (h("div", { key: filter.value }, h("label", { class: 'checkboxLabel' }, h("input", { class: 'filterCheckbox', checked: filter.isChecked, onChange: (event) => this.handleFilterChange(filter.value, event.target.checked), type: 'checkbox', value: filter.value }), this.formatLabel(filter.label)), filter.isChecked &&
91
89
  filter.children.map((childFilter) => {
92
- const childLabel = childFilter.label.split('/').pop(); // Get only the part after the last '/'
90
+ const childLabel = childFilter.label.split('/').pop();
93
91
  return (h("label", { class: 'childCheckboxLabel', key: childFilter.value, style: { marginLeft: '20px' } }, h("input", { class: 'childFilterCheckbox', checked: this.selectedFilters.has(childFilter.value), onChange: (event) => this.handleFilterChange(childFilter.value, event.target.checked), type: 'checkbox', value: childFilter.value }), this.formatLabel(childLabel || '')));
94
92
  }))))));
95
93
  }
96
- static get style() { return SearchcraftFiltersListStyle0; }
97
- }, [1, "searchcraft-filters-list", {
98
- "filters": [16],
99
- "dynamicFilters": [32],
100
- "initialFilters": [32],
101
- "isRequesting": [32],
102
- "selectedFilters": [32],
103
- "originalFilterCounts": [32],
104
- "query": [32],
105
- "resultsCount": [32]
106
- }]);
107
- function defineCustomElement$1() {
108
- if (typeof customElements === "undefined") {
109
- return;
110
- }
111
- const components = ["searchcraft-filters-list"];
112
- components.forEach(tagName => { switch (tagName) {
113
- case "searchcraft-filters-list":
114
- if (!customElements.get(tagName)) {
115
- customElements.define(tagName, SearchcraftFiltersList$1);
116
- }
117
- break;
118
- } });
119
- }
120
-
121
- const SearchcraftFiltersList = SearchcraftFiltersList$1;
122
- const defineCustomElement = defineCustomElement$1;
94
+ };
95
+ SearchcraftFiltersList.style = searchcraftFiltersListModuleCss;
123
96
 
124
- export { SearchcraftFiltersList, defineCustomElement };
97
+ export { SearchcraftFiltersList as searchcraft_filters_list };
125
98
 
126
- //# sourceMappingURL=searchcraft-filters-list.js.map
99
+ //# sourceMappingURL=searchcraft-filters-list.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"searchcraft-filters-list.entry.esm.js","mappings":";;;;AAAA,MAAM,+BAA+B,GAAG,6hCAA6hC;;MCkBxjC,sBAAsB;;;;QAazB,gBAAW,GAAG,mBAAmB,CAAC,QAAQ,EAAE,CAAC;QAqDrD,uBAAkB,GAAG,CAAC,KAAa,EAAE,OAAgB;YACnD,IAAI,OAAO,EAAE;gBACX,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;aACjC;iBAAM;gBACL,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;aACpC;YAED,MAAM,oBAAoB,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;YAE9D,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC;YAC/C,IAAI,CAAC,WAAW,CAAC,kBAAkB,CAAC,oBAAoB,CAAC,CAAC;YAC1D,IAAI,CAAC,WAAW,CAAC,MAAM,EAAE,CAAC;SAC3B,CAAC;uBA7EyD,EAAE;8BAIM,EAAE;8BACF,EAAE;4BAC7C,KAAK;oCAC2B,EAAE;qBACzC,EAAE;4BACK,CAAC;+BACe,IAAI,GAAG,EAAE;;IAKjD,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AK,EAAC,eAAe,IAC1B,aACE,KAAK,EAAC,gBAAgB,EACtB,OAAO,EAAE,MAAM,CAAC,SAAS,EACzB,QAAQ,EAAE,CAAC,KAAY,KACrB,IAAI,CAAC,kBAAkB,CACrB,MAAM,CAAC,KAAK,EACX,KAAK,CAAC,MAA2B,CAAC,OAAO,CAC3C,EAEH,IAAI,EAAC,UAAU,EACf,KAAK,EAAE,MAAM,CAAC,KAAK,GACnB,EACD,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,KAAK,CAAC,CACzB,EACP,MAAM,CAAC,SAAS;YACf,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,WAAW;gBAC9B,MAAM,UAAU,GAAG,WAAW,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC;gBACtD,QACE,aACE,KAAK,EAAC,oBAAoB,EAC1B,GAAG,EAAE,WAAW,CAAC,KAAK,EACtB,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE,IAE7B,aACE,KAAK,EAAC,qBAAqB,EAC3B,OAAO,EAAE,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,WAAW,CAAC,KAAK,CAAC,EACpD,QAAQ,EAAE,CAAC,KAAY,KACrB,IAAI,CAAC,kBAAkB,CACrB,WAAW,CAAC,KAAK,EAChB,KAAK,CAAC,MAA2B,CAAC,OAAO,CAC3C,EAEH,IAAI,EAAC,UAAU,EACf,KAAK,EAAE,WAAW,CAAC,KAAK,GACxB,EACD,IAAI,CAAC,WAAW,CAAC,UAAU,IAAI,EAAE,CAAC,CAC7B,EACR;aACH,CAAC,CACA,CACP,CAAC,CACE,EACN;KACH;;;;;;","names":[],"sources":["src/components/searchcraft-filters-list/searchcraft-filters-list.module.scss?tag=searchcraft-filters-list&encapsulation=shadow","src/components/searchcraft-filters-list/searchcraft-filters-list.tsx"],"sourcesContent":[".filtersList {\n width: 100%;\n}\n\n.checkboxLabel {\n align-items: center;\n color: #292929;\n display: flex;\n font-family: 'Source Sans Pro';\n font-size: 14px;\n font-weight: 600;\n gap: 14px;\n}\n\n.checkboxLabel input[type=\"checkbox\"] {\n align-items: center;\n appearance: none;\n background-color:#EDEDED;\n border: 1px solid #D9D9D9;\n cursor: pointer;\n display: flex;\n height: 24px;\n justify-content: center;\n width: 24px;\n}\n\n.checkboxLabel input[type=\"checkbox\"]:checked {\n background-color: #000;\n}\n\n.checkboxLabel input[type=\"checkbox\"]:checked::before {\n color: #fff;\n content: '✔';\n}\n\n.remainingFilterListCheckbox {\n margin-left: 16px;\n}\n\n.childCheckboxLabel {\n align-items: center;\n color: #292929;\n display: flex;\n font-family: 'Source Sans Pro';\n font-size: 14px;\n font-weight: 600;\n gap: 12px;\n}\n\n.childCheckboxLabel input[type=\"checkbox\"] {\n align-items: center;\n appearance: none;\n background-color:#EDEDED;\n border: 1px solid #D9D9D9;\n cursor: pointer;\n display: flex;\n height: 24px;\n justify-content: center;\n width: 24px;\n}\n\n.childCheckboxLabel input[type=\"checkbox\"]:checked {\n background-color: #000;\n}\n\n.childCheckboxLabel input[type=\"checkbox\"]:checked::before {\n color: #fff;\n content: '✔';\n}","import {\n Component,\n h,\n State,\n Prop,\n Event,\n type EventEmitter,\n} from '@stencil/core';\n\nimport type { Facets } from '@searchcraft/core';\n\nimport { useSearchcraftStore } from '@provider/store';\n\n@Component({\n tag: 'searchcraft-filters-list',\n styleUrl: 'searchcraft-filters-list.module.scss',\n shadow: true,\n})\nexport class SearchcraftFiltersList {\n @Prop() filters: Array<{ label: string; value: string }> = [];\n\n @Event() filtersUpdated: EventEmitter<string[]>;\n\n @State() dynamicFilters: Array<{ label: string; value: string }> = [];\n @State() initialFilters: Array<{ label: string; value: string }> = [];\n @State() isRequesting = false;\n @State() originalFilterCounts: Record<string, string> = {};\n @State() query = '';\n @State() resultsCount = 0;\n @State() selectedFilters: Set<string> = new Set();\n\n private searchStore = useSearchcraftStore.getState();\n unsubscribe: () => void;\n\n connectedCallback() {\n this.unsubscribe = useSearchcraftStore.subscribe((state) => {\n this.isRequesting = state.isRequesting;\n this.query = state.query || '';\n this.resultsCount = state.searchResults?.data?.hits?.length || 0;\n\n const facets = state.searchResults?.data.facets;\n if (facets) {\n this.populateFiltersFromFacets(facets);\n }\n });\n }\n\n disconnectedCallback() {\n if (this.unsubscribe) {\n this.unsubscribe();\n }\n }\n\n populateFiltersFromFacets(facets: Facets) {\n const newFilters = Object.entries(facets.section?.counts || {}).map(\n ([key, count]) => {\n const filterValue = key;\n this.originalFilterCounts[filterValue] = `${count}`;\n return {\n label: `${key.replace(/^\\//, '')} (${count})`,\n value: filterValue,\n };\n },\n );\n\n // Update dynamic filters while preserving the initial filters\n const updatedFilters = [\n ...this.initialFilters,\n ...newFilters.filter(\n (filter) =>\n !this.initialFilters.some(\n (initial) => initial.value === filter.value,\n ),\n ),\n ];\n\n this.dynamicFilters = updatedFilters;\n\n // Store the initial filters only once\n if (this.initialFilters.length === 0) {\n this.initialFilters = [...updatedFilters];\n }\n }\n\n handleFilterChange = (value: string, checked: boolean) => {\n if (checked) {\n this.selectedFilters.add(value);\n } else {\n this.selectedFilters.delete(value);\n }\n\n const selectedFiltersArray = Array.from(this.selectedFilters);\n\n this.filtersUpdated.emit(selectedFiltersArray);\n this.searchStore.setSelectedFilters(selectedFiltersArray);\n this.searchStore.search();\n };\n\n formatLabel(label: string): string {\n return label\n .replace(/-/g, ' ')\n .split(' ')\n .map((word) => word.charAt(0).toUpperCase() + word.slice(1))\n .join(' ');\n }\n\n render() {\n if (!this.query || this.resultsCount === 0) {\n return null;\n }\n\n const filtersToRender = this.initialFilters.map((initialFilter) => {\n const isChecked = this.selectedFilters.has(initialFilter.value);\n const dynamicChildren = this.dynamicFilters.filter(\n (dynamicFilter) =>\n dynamicFilter.value.startsWith(initialFilter.value) &&\n dynamicFilter.value !== initialFilter.value, // Exclude parent itself\n );\n return {\n ...initialFilter,\n isChecked,\n children: dynamicChildren,\n };\n });\n\n return (\n <div class='filtersList'>\n {filtersToRender.map((filter) => (\n <div key={filter.value}>\n {/* Render the parent filter */}\n <label class='checkboxLabel'>\n <input\n class='filterCheckbox'\n checked={filter.isChecked}\n onChange={(event: Event) =>\n this.handleFilterChange(\n filter.value,\n (event.target as HTMLInputElement).checked,\n )\n }\n type='checkbox'\n value={filter.value}\n />\n {this.formatLabel(filter.label)}\n </label>\n {filter.isChecked &&\n filter.children.map((childFilter) => {\n const childLabel = childFilter.label.split('/').pop();\n return (\n <label\n class='childCheckboxLabel'\n key={childFilter.value}\n style={{ marginLeft: '20px' }}\n >\n <input\n class='childFilterCheckbox'\n checked={this.selectedFilters.has(childFilter.value)}\n onChange={(event: Event) =>\n this.handleFilterChange(\n childFilter.value,\n (event.target as HTMLInputElement).checked,\n )\n }\n type='checkbox'\n value={childFilter.value}\n />\n {this.formatLabel(childLabel || '')}\n </label>\n );\n })}\n </div>\n ))}\n </div>\n );\n }\n}\n"],"version":3}
@@ -1,14 +1,12 @@
1
- import { p as proxyCustomElement, H, h } from './p-7498e493.js';
2
- import { c as classNames } from './p-5cdc6210.js';
1
+ import { r as registerInstance, h } from './index-8211f330.js';
2
+ import { c as classNames } from './index-d6567b9c.js';
3
+ import './_commonjsHelpers-63cbe26c.js';
3
4
 
4
5
  const searchcraftInputCaptionModuleCss = ":root{--font-stack:Helvetica, Arial, sans-serif}.inputCaptionLightLTR{font-family:var(--font-stack);font-size:12px;font-weight:400;line-height:16px;margin-top:4px;color:#404040}.inputCaptionDarkLTR{font-family:var(--font-stack);font-size:12px;font-weight:400;line-height:16px;margin-top:4px;color:#E6E6E6}.inputCaptionErrorLightLTR{font-family:var(--font-stack);font-size:12px;font-weight:400;line-height:16px;margin-top:4px;color:#990000}.inputCaptionErrorDarkLTR{font-family:var(--font-stack);font-size:12px;font-weight:400;line-height:16px;margin-top:4px;color:#FFB3B3}.inputCaptionLightRTL{font-family:var(--font-stack);font-size:12px;font-weight:400;line-height:16px;margin-top:4px;color:#404040;text-align:right}.inputCaptionDarkRTL{font-family:var(--font-stack);font-size:12px;font-weight:400;line-height:16px;margin-top:4px;color:#E6E6E6;text-align:right}.inputCaptionErrorLightRTL{font-family:var(--font-stack);font-size:12px;font-weight:400;line-height:16px;margin-top:4px;color:#990000;text-align:right}.inputCaptionErrorDarkRTL{font-family:var(--font-stack);font-size:12px;font-weight:400;line-height:16px;margin-top:4px;color:#FFB3B3;text-align:right}";
5
- const SearchcraftInputCaptionStyle0 = searchcraftInputCaptionModuleCss;
6
6
 
7
- const SearchcraftInputCaption = /*@__PURE__*/ proxyCustomElement(class SearchcraftInputCaption extends H {
8
- constructor() {
9
- super();
10
- this.__registerHost();
11
- this.__attachShadow();
7
+ const SearchcraftInputCaption = class {
8
+ constructor(hostRef) {
9
+ registerInstance(this, hostRef);
12
10
  this.error = undefined;
13
11
  this.inputCaptionClassName = '';
14
12
  this.inputCaptionValue = 'Enter Search';
@@ -33,28 +31,9 @@ const SearchcraftInputCaption = /*@__PURE__*/ proxyCustomElement(class Searchcra
33
31
  ? 'inputCaptionLightLTR'
34
32
  : 'inputCaptionDarkLTR', this.inputCaptionClassName, '.searchcraft-input-caption') }, this.inputCaptionValue));
35
33
  }
36
- static get style() { return SearchcraftInputCaptionStyle0; }
37
- }, [1, "searchcraft-input-caption", {
38
- "error": [4],
39
- "inputCaptionClassName": [1, "input-caption-class-name"],
40
- "inputCaptionValue": [1, "input-caption-value"],
41
- "rightToLeftOrientation": [4, "right-to-left-orientation"],
42
- "theme": [32]
43
- }]);
44
- function defineCustomElement() {
45
- if (typeof customElements === "undefined") {
46
- return;
47
- }
48
- const components = ["searchcraft-input-caption"];
49
- components.forEach(tagName => { switch (tagName) {
50
- case "searchcraft-input-caption":
51
- if (!customElements.get(tagName)) {
52
- customElements.define(tagName, SearchcraftInputCaption);
53
- }
54
- break;
55
- } });
56
- }
34
+ };
35
+ SearchcraftInputCaption.style = searchcraftInputCaptionModuleCss;
57
36
 
58
- export { SearchcraftInputCaption as S, defineCustomElement as d };
37
+ export { SearchcraftInputCaption as searchcraft_input_caption };
59
38
 
60
- //# sourceMappingURL=p-6237f03e.js.map
39
+ //# sourceMappingURL=searchcraft-input-caption.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"searchcraft-input-caption.entry.esm.js","mappings":";;;;AAAA,MAAM,gCAAgC,GAAG,8oCAA8oC;;MCQ1qC,uBAAuB;;;;qCAED,EAAE;iCACP,cAAc;sCACT,KAAK;qBACrB,OAAO;;IAEhB,YAAY;QAClB,OAAO,IAAI,CAAC,KAAK,KAAK,OAAO,CAAC;KAC/B;IAED,MAAM;QACJ,OAAO,IAAI,CAAC,sBAAsB,IAChC,SACE,KAAK,EAAE,UAAU,CACf,IAAI,CAAC,KAAK;kBACN,IAAI,CAAC,YAAY;sBACf,2BAA2B;sBAC3B,0BAA0B;kBAC5B,IAAI,CAAC,YAAY;sBACf,sBAAsB;sBACtB,qBAAqB,EAC3B,IAAI,CAAC,qBAAqB,EAC1B,4BAA4B,CAC7B,IAEA,IAAI,CAAC,iBAAiB,CACrB,KAEJ,SACE,KAAK,EAAE,UAAU,CACf,IAAI,CAAC,KAAK;kBACN,IAAI,CAAC,YAAY;sBACf,2BAA2B;sBAC3B,0BAA0B;kBAC5B,IAAI,CAAC,YAAY;sBACf,sBAAsB;sBACtB,qBAAqB,EAC3B,IAAI,CAAC,qBAAqB,EAC1B,4BAA4B,CAC7B,IAEA,IAAI,CAAC,iBAAiB,CACrB,CACL,CAAC;KACH;;;;;;","names":[],"sources":["src/components/searchcraft-input-caption/searchcraft-input-caption.module.scss?tag=searchcraft-input-caption&encapsulation=shadow","src/components/searchcraft-input-caption/searchcraft-input-caption.tsx"],"sourcesContent":["@import '../../utils/theme';\n\n:root {\n --font-stack: Helvetica, Arial, sans-serif;\n}\n\n@mixin input-caption-base {\n font-family: var(--font-stack);\n font-size: 12px;\n font-weight: 400;\n line-height: 16px;\n margin-top: 4px;\n}\n\n@mixin input-caption-base-light {\n @include input-caption-base;\n color: $light-input-caption-color;\n}\n\n@mixin input-caption-base-dark {\n @include input-caption-base;\n color: $dark-input-caption-color;\n}\n\n.inputCaptionLightLTR {\n @include input-caption-base-light;\n}\n\n.inputCaptionDarkLTR {\n @include input-caption-base-dark;\n}\n\n.inputCaptionErrorLightLTR {\n @include input-caption-base;\n color: $light-input-caption-color-error;\n}\n\n.inputCaptionErrorDarkLTR {\n @include input-caption-base;\n color: $dark-input-caption-color-error;\n}\n\n.inputCaptionLightRTL {\n @include input-caption-base-light;\n text-align: right;\n}\n\n.inputCaptionDarkRTL {\n @include input-caption-base-dark;\n text-align: right;\n}\n\n.inputCaptionErrorLightRTL {\n @include input-caption-base;\n color: $light-input-caption-color-error;\n text-align: right;\n}\n\n.inputCaptionErrorDarkRTL {\n @include input-caption-base;\n color: $dark-input-caption-color-error;\n text-align: right;\n}","import { Component, Prop, h, State } from '@stencil/core';\nimport classNames from 'classnames';\n\n@Component({\n tag: 'searchcraft-input-caption',\n styleUrl: 'searchcraft-input-caption.module.scss',\n shadow: true,\n})\nexport class SearchcraftInputCaption {\n @Prop() error?: boolean;\n @Prop() inputCaptionClassName? = '';\n @Prop() inputCaptionValue = 'Enter Search';\n @Prop() rightToLeftOrientation = false;\n @State() theme = 'light';\n\n private isLightTheme() {\n return this.theme === 'light';\n }\n\n render() {\n return this.rightToLeftOrientation ? (\n <p\n class={classNames(\n this.error\n ? this.isLightTheme\n ? 'inputCaptionErrorLightRTL'\n : 'inputCaptionErrorDarkRTL'\n : this.isLightTheme\n ? 'inputCaptionLightRTL'\n : 'inputCaptionDarkRTL',\n this.inputCaptionClassName,\n '.searchcraft-input-caption',\n )}\n >\n {this.inputCaptionValue}\n </p>\n ) : (\n <p\n class={classNames(\n this.error\n ? this.isLightTheme\n ? 'inputCaptionErrorLightLTR'\n : 'inputCaptionErrorDarkLTR'\n : this.isLightTheme\n ? 'inputCaptionLightLTR'\n : 'inputCaptionDarkLTR',\n this.inputCaptionClassName,\n '.searchcraft-input-caption',\n )}\n >\n {this.inputCaptionValue}\n </p>\n );\n }\n}\n"],"version":3}
@@ -0,0 +1,25 @@
1
+ import { r as registerInstance, h } from './index-8211f330.js';
2
+
3
+ const searchcraftInputIconModuleCss = ":root{--font-stack:Helvetica, Arial, sans-serif}.inputIconLTR{left:15px;position:absolute;top:50%;transform:translateY(-50%)}.inputIconRTL{position:absolute;right:15px;top:50%;transform:translateY(-50%)}";
4
+
5
+ const SearchcraftInputIcon = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ this.error = undefined;
9
+ this.height = 20;
10
+ this.rightToLeftOrientation = false;
11
+ this.width = 20;
12
+ this.theme = 'light';
13
+ }
14
+ isLightTheme() {
15
+ return this.theme === 'light';
16
+ }
17
+ render() {
18
+ return this.error ? (h("div", { class: this.rightToLeftOrientation ? 'inputIconRTL' : 'inputIconLTR' }, this.isLightTheme() ? (h("searchcraft-search-icon-set", { height: this.height, type: 'error-light', width: this.width })) : (h("searchcraft-search-icon-set", { height: this.height, type: 'error-dark', width: this.width })))) : (h("div", { class: this.rightToLeftOrientation ? 'inputIconRTL' : 'inputIconLTR' }, this.isLightTheme() ? (h("searchcraft-search-icon-set", { height: this.height, type: 'search-light', width: this.width })) : (h("searchcraft-search-icon-set", { height: this.height, type: 'search-dark', width: this.width }))));
19
+ }
20
+ };
21
+ SearchcraftInputIcon.style = searchcraftInputIconModuleCss;
22
+
23
+ export { SearchcraftInputIcon as searchcraft_input_icon };
24
+
25
+ //# sourceMappingURL=searchcraft-input-icon.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"searchcraft-input-icon.entry.esm.js","mappings":";;AAAA,MAAM,6BAA6B,GAAG,6MAA6M;;MCOtO,oBAAoB;;;;sBAEd,EAAE;sCACc,KAAK;qBACtB,EAAE;qBAED,OAAO;;IAEhB,YAAY;QAClB,OAAO,IAAI,CAAC,KAAK,KAAK,OAAO,CAAC;KAC/B;IAED,MAAM;QACJ,OAAO,IAAI,CAAC,KAAK,IACf,WACE,KAAK,EAAE,IAAI,CAAC,sBAAsB,GAAG,cAAc,GAAG,cAAc,IAEnE,IAAI,CAAC,YAAY,EAAE,IAClB,mCACE,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,IAAI,EAAC,aAAa,EAClB,KAAK,EAAE,IAAI,CAAC,KAAK,GACjB,KAEF,mCACE,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,IAAI,EAAC,YAAY,EACjB,KAAK,EAAE,IAAI,CAAC,KAAK,GACjB,CACH,CACG,KAEN,WACE,KAAK,EAAE,IAAI,CAAC,sBAAsB,GAAG,cAAc,GAAG,cAAc,IAEnE,IAAI,CAAC,YAAY,EAAE,IAClB,mCACE,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,IAAI,EAAC,cAAc,EACnB,KAAK,EAAE,IAAI,CAAC,KAAK,GACjB,KAEF,mCACE,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,IAAI,EAAC,aAAa,EAClB,KAAK,EAAE,IAAI,CAAC,KAAK,GACjB,CACH,CACG,CACP,CAAC;KACH;;;;;;","names":[],"sources":["src/components/searchcraft-input-icon/searchcraft-input-icon.module.scss?tag=searchcraft-input-icon&encapsulation=shadow","src/components/searchcraft-input-icon/searchcraft-input-icon.tsx"],"sourcesContent":[":root {\n --font-stack: Helvetica, Arial, sans-serif;\n}\n\n.inputIconLTR {\n left: 15px;\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n}\n\n.inputIconRTL {\n position: absolute;\n right: 15px;\n top: 50%;\n transform: translateY(-50%);\n}","import { Component, Prop, h, State } from '@stencil/core';\n\n@Component({\n tag: 'searchcraft-input-icon',\n styleUrl: 'searchcraft-input-icon.module.scss',\n shadow: true,\n})\nexport class SearchcraftInputIcon {\n @Prop() error?: boolean;\n @Prop() height = 20;\n @Prop() rightToLeftOrientation = false;\n @Prop() width = 20;\n\n @State() theme = 'light';\n\n private isLightTheme() {\n return this.theme === 'light';\n }\n\n render() {\n return this.error ? (\n <div\n class={this.rightToLeftOrientation ? 'inputIconRTL' : 'inputIconLTR'}\n >\n {this.isLightTheme() ? (\n <searchcraft-search-icon-set\n height={this.height}\n type='error-light'\n width={this.width}\n />\n ) : (\n <searchcraft-search-icon-set\n height={this.height}\n type='error-dark'\n width={this.width}\n />\n )}\n </div>\n ) : (\n <div\n class={this.rightToLeftOrientation ? 'inputIconRTL' : 'inputIconLTR'}\n >\n {this.isLightTheme() ? (\n <searchcraft-search-icon-set\n height={this.height}\n type='search-light'\n width={this.width}\n />\n ) : (\n <searchcraft-search-icon-set\n height={this.height}\n type='search-dark'\n width={this.width}\n />\n )}\n </div>\n );\n }\n}\n"],"version":3}
@@ -0,0 +1,29 @@
1
+ import { r as registerInstance, h } from './index-8211f330.js';
2
+ import { c as classNames } from './index-d6567b9c.js';
3
+ import './_commonjsHelpers-63cbe26c.js';
4
+
5
+ const searchcraftInputLabelModuleCss = ":root{--font-stack:Helvetica, Arial, sans-serif}.labelLight{font-family:var(--font-stack);font-size:12px;font-weight:400;line-height:16px;margin-top:4px;color:#292929}.labelDark{font-family:var(--font-stack);font-size:12px;font-weight:400;line-height:16px;margin-top:4px;color:#FFF}";
6
+
7
+ const SearchcraftInputLabel = class {
8
+ constructor(hostRef) {
9
+ registerInstance(this, hostRef);
10
+ this.inputLabelClassName = '';
11
+ this.label = undefined;
12
+ this.theme = 'light';
13
+ }
14
+ isLightTheme() {
15
+ return this.theme === 'light';
16
+ }
17
+ render() {
18
+ if (!this.label) {
19
+ return null;
20
+ }
21
+ const labelStyle = this.isLightTheme() ? 'labelLight' : 'labelDark';
22
+ return (h("label", { class: classNames(labelStyle, this.inputLabelClassName), htmlFor: 'searchcraft-input-id' }, this.label));
23
+ }
24
+ };
25
+ SearchcraftInputLabel.style = searchcraftInputLabelModuleCss;
26
+
27
+ export { SearchcraftInputLabel as searchcraft_input_label };
28
+
29
+ //# sourceMappingURL=searchcraft-input-label.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"searchcraft-input-label.entry.esm.js","mappings":";;;;AAAA,MAAM,8BAA8B,GAAG,4RAA4R;;MCQtT,qBAAqB;;;mCACD,EAAE;;qBAEhB,OAAO;;IAEhB,YAAY;QAClB,OAAO,IAAI,CAAC,KAAK,KAAK,OAAO,CAAC;KAC/B;IAED,MAAM;QACJ,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE;YACf,OAAO,IAAI,CAAC;SACb;QACD,MAAM,UAAU,GAAG,IAAI,CAAC,YAAY,EAAE,GAAG,YAAY,GAAG,WAAW,CAAC;QACpE,QACE,aACE,KAAK,EAAE,UAAU,CAAC,UAAU,EAAE,IAAI,CAAC,mBAAmB,CAAC,EACvD,OAAO,EAAC,sBAAsB,IAE7B,IAAI,CAAC,KAAK,CACL,EACR;KACH;;;;;;","names":[],"sources":["src/components/searchcraft-input-label/searchcraft-input-label.module.scss?tag=searchcraft-input-label&encapsulation=shadow","src/components/searchcraft-input-label/searchcraft-input-label.tsx"],"sourcesContent":["@import '../../utils/theme';\n\n:root {\n --font-stack: Helvetica, Arial, sans-serif;\n}\n\n@mixin input-label-base {\n font-family: var(--font-stack);\n font-size: 12px;\n font-weight: 400;\n line-height: 16px;\n margin-top: 4px;\n}\n\n.labelLight {\n @include input-label-base;\n color: $light-input-label-color;\n}\n\n.labelDark {\n @include input-label-base;\n color: $dark-input-label-color;\n}","import { Component, Prop, h, State } from '@stencil/core';\nimport classNames from 'classnames';\n\n@Component({\n tag: 'searchcraft-input-label',\n styleUrl: 'searchcraft-input-label.module.scss',\n shadow: true,\n})\nexport class SearchcraftInputLabel {\n @Prop() inputLabelClassName? = '';\n @Prop() label?: string;\n @State() theme = 'light';\n\n private isLightTheme() {\n return this.theme === 'light';\n }\n\n render() {\n if (!this.label) {\n return null;\n }\n const labelStyle = this.isLightTheme() ? 'labelLight' : 'labelDark';\n return (\n <label\n class={classNames(labelStyle, this.inputLabelClassName)}\n htmlFor='searchcraft-input-id'\n >\n {this.label}\n </label>\n );\n }\n}\n"],"version":3}
@@ -1,22 +1,13 @@
1
- import { p as proxyCustomElement, H, c as createEvent, h, F as Fragment } from './p-7498e493.js';
2
- import { c as classNames } from './p-5cdc6210.js';
3
- import { p as parseCustomStyles } from './p-aff5cd24.js';
4
- import { d as defineCustomElement$7 } from './p-70722ab2.js';
5
- import { d as defineCustomElement$6 } from './p-c70cd874.js';
6
- import { d as defineCustomElement$5 } from './p-6237f03e.js';
7
- import { d as defineCustomElement$4 } from './p-1101288c.js';
8
- import { d as defineCustomElement$3 } from './p-a3bd1bc8.js';
9
- import { d as defineCustomElement$2 } from './p-15dd4fe4.js';
10
- import { d as defineCustomElement$1 } from './p-c815eb98.js';
1
+ import { r as registerInstance, a as createEvent, h, F as Fragment } from './index-8211f330.js';
2
+ import { c as classNames } from './index-d6567b9c.js';
3
+ import { p as parseCustomStyles } from './utils-dbb6302b.js';
4
+ import './_commonjsHelpers-63cbe26c.js';
11
5
 
12
6
  const searchcraftInputModuleCss = ":root{--font-stack:Helvetica, Arial, sans-serif}.inputContainerLTR{position:relative;width:100%}.inputContainerRTL{position:relative;width:100%;margin-left:8px}.inputLightLTR{border:none;border-radius:8px;font-family:var(--font-stack);outline:none;padding-bottom:15px;padding-top:15px;width:100%;background-color:#EDEDED;color:#292929;margin-right:8px;padding-left:36px;padding-right:16px}.inputLightLTR::placeholder{font-family:var(--font-stack);font-size:16px}.inputLightLTR::placeholder{color:#737373}.inputLightLTR:focus{outline:2px solid #000}.inputDarkLTR{border:none;border-radius:8px;font-family:var(--font-stack);outline:none;padding-bottom:15px;padding-top:15px;width:100%;background-color:#1A1A1A;color:#FFF;margin-right:8px;padding-left:36px;padding-right:16px}.inputDarkLTR::placeholder{font-family:var(--font-stack);font-size:16px}.inputDarkLTR::placeholder{color:#BFBFBF}.inputDarkLTR:focus{outline:2px solid #FFF}.inputErrorLightLTR{border:none;border-radius:8px;font-family:var(--font-stack);outline:none;padding-bottom:15px;padding-top:15px;width:100%;background-color:#EDEDED;color:#292929;outline:2px solid #c00;margin-right:8px;padding-left:36px;padding-right:16px}.inputErrorLightLTR::placeholder{font-family:var(--font-stack);font-size:16px}.inputErrorLightLTR::placeholder{color:#737373}.inputErrorLightLTR:focus{outline:2px solid #000}.inputErrorLightLTR:focus-visible{outline:2px solid #c00}.inputErrorDarkLTR{border:none;border-radius:8px;font-family:var(--font-stack);outline:none;padding-bottom:15px;padding-top:15px;width:100%;background-color:#1A1A1A;color:#FFF;outline:2px solid #FFB3B3;margin-right:8px;padding-left:36px;padding-right:16px}.inputErrorDarkLTR::placeholder{font-family:var(--font-stack);font-size:16px}.inputErrorDarkLTR::placeholder{color:#BFBFBF}.inputErrorDarkLTR:focus{outline:2px solid #FFF}.inputErrorDarkLTR:focus-visible{outline:2px solid #FFB3B3}.inputLightRTL{border:none;border-radius:8px;font-family:var(--font-stack);outline:none;padding-bottom:15px;padding-top:15px;width:100%;background-color:#EDEDED;color:#292929;margin-left:8px;padding-left:16px;padding-right:36px;text-align:right}.inputLightRTL::placeholder{font-family:var(--font-stack);font-size:16px}.inputLightRTL::placeholder{color:#737373}.inputLightRTL:focus{outline:2px solid #000}.inputDarkRTL{border:none;border-radius:8px;font-family:var(--font-stack);outline:none;padding-bottom:15px;padding-top:15px;width:100%;background-color:#1A1A1A;color:#FFF;margin-left:8px;padding-left:16px;padding-right:36px;text-align:right}.inputDarkRTL::placeholder{font-family:var(--font-stack);font-size:16px}.inputDarkRTL::placeholder{color:#BFBFBF}.inputDarkRTL:focus{outline:2px solid #FFF}.inputErrorLightRTL{border:none;border-radius:8px;font-family:var(--font-stack);outline:none;padding-bottom:15px;padding-top:15px;width:100%;background-color:#EDEDED;color:#292929;outline:2px solid #c00;margin-left:8px;padding-left:16px;padding-right:36px;text-align:right}.inputErrorLightRTL::placeholder{font-family:var(--font-stack);font-size:16px}.inputErrorLightRTL::placeholder{color:#737373}.inputErrorLightRTL:focus{outline:2px solid #000}.inputErrorLightRTL:focus-visible{outline:2px solid #c00}.inputErrorDarkRTL{border:none;border-radius:8px;font-family:var(--font-stack);outline:none;padding-bottom:15px;padding-top:15px;width:100%;background-color:#1A1A1A;color:#FFF;outline:2px solid #FFB3B3;margin-left:8px;padding-left:16px;padding-right:36px;text-align:right}.inputErrorDarkRTL::placeholder{font-family:var(--font-stack);font-size:16px}.inputErrorDarkRTL::placeholder{color:#BFBFBF}.inputErrorDarkRTL:focus{outline:2px solid #FFF}.inputErrorDarkRTL:focus-visible{outline:2px solid #FFB3B3}.inputWrapper{align-items:center;display:flex;position:relative;width:100%}";
13
- const SearchcraftInputStyle0 = searchcraftInputModuleCss;
14
7
 
15
- const SearchcraftInput = /*@__PURE__*/ proxyCustomElement(class SearchcraftInput extends H {
16
- constructor() {
17
- super();
18
- this.__registerHost();
19
- this.__attachShadow();
8
+ const SearchcraftInput = class {
9
+ constructor(hostRef) {
10
+ registerInstance(this, hostRef);
20
11
  this.clearInput = createEvent(this, "clearInput", 7);
21
12
  this.searchInputChange = createEvent(this, "searchInputChange", 7);
22
13
  this.inputKeyUp = createEvent(this, "inputKeyUp", 7);
@@ -65,7 +56,7 @@ const SearchcraftInput = /*@__PURE__*/ proxyCustomElement(class SearchcraftInput
65
56
  const placeholderStyle = {
66
57
  fontSize: validatedCustomStyles.placeholderFontSize || '16px',
67
58
  };
68
- return (h("div", { key: 'ca2698b808ef606d890817f6b8c133503663570e', class: classNames(containerClassName, this.formClassName, 'searchcraft-input-form') }, this.rightToLeftOrientation ? (h(Fragment, null, h("input", { autoComplete: 'off', class: classNames(inputClassName, 'searchcraft-input'), id: 'searchcraft-input-id', onChange: this.handleInputChange.bind(this), onKeyUp: this.handleInputKeyUp.bind(this), placeholder: this.placeholderValue, type: 'text', value: this.query, style: validatedCustomStyles }), h("style", null, `
59
+ return (h("div", { key: '80b683ed9ed141f5e74b06f63dabab10e17b9de2', class: classNames(containerClassName, this.formClassName, 'searchcraft-input-form') }, this.rightToLeftOrientation ? (h(Fragment, null, h("input", { autoComplete: 'off', class: classNames(inputClassName, 'searchcraft-input'), id: 'searchcraft-input-id', onChange: this.handleInputChange.bind(this), onKeyUp: this.handleInputKeyUp.bind(this), placeholder: this.placeholderValue, type: 'text', value: this.query, style: validatedCustomStyles }), h("style", null, `
69
60
  #searchcraft-input-id::placeholder {
70
61
  font-size: ${placeholderStyle.fontSize};
71
62
  }
@@ -75,71 +66,9 @@ const SearchcraftInput = /*@__PURE__*/ proxyCustomElement(class SearchcraftInput
75
66
  }
76
67
  `), this.inputCaptionValue && (h("searchcraft-input-caption", { inputCaptionClassName: this.inputCaptionClassName, inputCaptionValue: this.inputCaptionValue, rightToLeftOrientation: this.rightToLeftOrientation })), this.query.length > 0 && (h("searchcraft-clear-input-button", { isRequesting: this.isRequesting, onClearInput: this.handleClearInput, rightToLeftOrientation: this.rightToLeftOrientation }))))));
77
68
  }
78
- static get style() { return SearchcraftInputStyle0; }
79
- }, [1, "searchcraft-input", {
80
- "customStyles": [1, "custom-styles"],
81
- "error": [4],
82
- "formClassName": [1, "form-class-name"],
83
- "inputCaptionClassName": [1, "input-caption-class-name"],
84
- "inputCaptionValue": [1, "input-caption-value"],
85
- "inputClassName": [1, "input-class-name"],
86
- "inputIconHeight": [2, "input-icon-height"],
87
- "inputIconWidth": [2, "input-icon-width"],
88
- "isRequesting": [4, "is-requesting"],
89
- "placeholderValue": [1, "placeholder-value"],
90
- "rightToLeftOrientation": [4, "right-to-left-orientation"],
91
- "query": [1],
92
- "theme": [32]
93
- }]);
94
- function defineCustomElement() {
95
- if (typeof customElements === "undefined") {
96
- return;
97
- }
98
- const components = ["searchcraft-input", "searchcraft-clear-icon-set", "searchcraft-clear-input-button", "searchcraft-input-caption", "searchcraft-input-icon", "searchcraft-search-icon-set", "searchcraft-spinner-dark", "searchcraft-spinner-light"];
99
- components.forEach(tagName => { switch (tagName) {
100
- case "searchcraft-input":
101
- if (!customElements.get(tagName)) {
102
- customElements.define(tagName, SearchcraftInput);
103
- }
104
- break;
105
- case "searchcraft-clear-icon-set":
106
- if (!customElements.get(tagName)) {
107
- defineCustomElement$7();
108
- }
109
- break;
110
- case "searchcraft-clear-input-button":
111
- if (!customElements.get(tagName)) {
112
- defineCustomElement$6();
113
- }
114
- break;
115
- case "searchcraft-input-caption":
116
- if (!customElements.get(tagName)) {
117
- defineCustomElement$5();
118
- }
119
- break;
120
- case "searchcraft-input-icon":
121
- if (!customElements.get(tagName)) {
122
- defineCustomElement$4();
123
- }
124
- break;
125
- case "searchcraft-search-icon-set":
126
- if (!customElements.get(tagName)) {
127
- defineCustomElement$3();
128
- }
129
- break;
130
- case "searchcraft-spinner-dark":
131
- if (!customElements.get(tagName)) {
132
- defineCustomElement$2();
133
- }
134
- break;
135
- case "searchcraft-spinner-light":
136
- if (!customElements.get(tagName)) {
137
- defineCustomElement$1();
138
- }
139
- break;
140
- } });
141
- }
69
+ };
70
+ SearchcraftInput.style = searchcraftInputModuleCss;
142
71
 
143
- export { SearchcraftInput as S, defineCustomElement as d };
72
+ export { SearchcraftInput as searchcraft_input };
144
73
 
145
- //# sourceMappingURL=p-2350c0ab.js.map
74
+ //# sourceMappingURL=searchcraft-input.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"searchcraft-input.entry.esm.js","mappings":";;;;;AAAA,MAAM,yBAAyB,GAAG,2sHAA2sH;;MCuBhuH,gBAAgB;;;;;;4BAC6B,EAAE;qBAC1C,KAAK;6BACG,EAAE;qCACM,EAAE;iCACN,EAAE;8BACL,EAAE;+BACD,EAAE;8BACH,EAAE;4BACJ,KAAK;gCACD,cAAc;sCACR,KAAK;qBACtB,EAAE;qBAMD,OAAO;;IAExB,IAAY,YAAY;QACtB,OAAO,IAAI,CAAC,KAAK,KAAK,OAAO,CAAC;KAC/B;IAED,iBAAiB,CAAC,KAAY;QAC5B,MAAM,KAAK,GAAG,KAAK,CAAC,MAA0B,CAAC;QAC/C,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;KAC1C;IAED,gBAAgB,CAAC,KAAoB;QACnC,MAAM,KAAK,GAAG,KAAK,CAAC,MAA0B,CAAC;QAC/C,IAAI,CAAC,UAA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,GACnD,CACH,EACA,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,KACpB,sCACE,YAAY,EAAE,IAAI,CAAC,YAAY,EAC/B,YAAY,EAAE,IAAI,CAAC,gBAAgB,EACnC,sBAAsB,EAAE,IAAI,CAAC,sBAAsB,GACnD,CACH,CACQ,CACZ,CACG,EACN;KACH;;;;;;","names":[],"sources":["src/components/searchcraft-input/searchcraft-input.module.scss?tag=searchcraft-input&encapsulation=shadow","src/components/searchcraft-input/searchcraft-input.tsx"],"sourcesContent":["@import '../../utils/theme';\n\n:root {\n --font-stack: Helvetica, Arial, sans-serif;\n}\n\n@mixin input-container-base {\n position: relative;\n width: 100%;\n}\n\n@mixin input-base {\n border: none;\n border-radius: 8px;\n font-family: var(--font-stack);\n outline: none;\n padding-bottom: 15px;\n padding-top: 15px;\n width: 100%;\n\n &::placeholder {\n font-family: var(--font-stack);\n font-size: 16px;\n }\n}\n\n@mixin input-base-light {\n @include input-base;\n background-color: $light-input-background-color;\n color: $light-input-label-color;\n\n &::placeholder {\n color: $light-input-placeholder-color;\n }\n\n &:focus {\n outline: 2px solid $light-input-outline-focus;\n }\n}\n\n@mixin input-base-dark {\n @include input-base;\n background-color: $dark-input-background-color;\n color: $dark-input-label-color;\n\n &::placeholder {\n color: $dark-input-placeholder-color;\n }\n\n &:focus {\n outline: 2px solid $dark-input-outline-focus;\n }\n}\n\n@mixin input-error-base-light {\n @include input-base-light;\n outline: 2px solid $light-input-error-outline;\n\n &:focus-visible {\n outline: 2px solid $light-input-error-outline,\n }\n}\n\n@mixin input-error-base-dark {\n @include input-base-dark;\n outline: 2px solid $dark-input-error-outline;\n\n &:focus-visible {\n outline: 2px solid $dark-input-error-outline;\n }\n}\n\n.inputContainerLTR {\n @include input-container-base;\n}\n\n.inputContainerRTL {\n @include input-container-base;\n margin-left: 8px;\n}\n\n@mixin align-LTR {\n margin-right: 8px;\n padding-left: 36px;\n padding-right: 16px;\n}\n\n.inputLightLTR {\n @include input-base-light;\n @include align-LTR;\n}\n\n.inputDarkLTR {\n @include input-base-dark;\n @include align-LTR;\n}\n\n.inputErrorLightLTR {\n @include input-error-base-light;\n @include align-LTR;\n}\n\n.inputErrorDarkLTR {\n @include input-error-base-dark;\n @include align-LTR;\n}\n\n@mixin align-RTL {\n margin-left: 8px;\n padding-left: 16px;\n padding-right: 36px;\n text-align: right;\n}\n\n.inputLightRTL {\n @include input-base-light;\n @include align-RTL;\n}\n\n.inputDarkRTL {\n @include input-base-dark;\n @include align-RTL;\n}\n\n.inputErrorLightRTL {\n @include input-error-base-light;\n @include align-RTL;\n}\n\n.inputErrorDarkRTL {\n @include input-error-base-dark;\n @include align-RTL;\n}\n\n.inputWrapper {\n align-items: center;\n display: flex;\n position: relative;\n width: 100%;\n}\n","import {\n Component,\n h,\n Prop,\n State,\n Event,\n Fragment,\n type EventEmitter,\n} from '@stencil/core';\nimport classNames from 'classnames';\n\nimport { parseCustomStyles } from '@utils/utils';\n\nexport interface ScInputCustomEvent<T> extends CustomEvent<T> {\n detail: T;\n target: HTMLSearchcraftInputElement;\n}\n\n@Component({\n tag: 'searchcraft-input',\n styleUrl: 'searchcraft-input.module.scss',\n shadow: true,\n})\nexport class SearchcraftInput {\n @Prop() customStyles: string | Record<string, string> = {};\n @Prop() error = false;\n @Prop() formClassName = '';\n @Prop() inputCaptionClassName = '';\n @Prop() inputCaptionValue = '';\n @Prop() inputClassName = '';\n @Prop() inputIconHeight = 20;\n @Prop() inputIconWidth = 20;\n @Prop() isRequesting = false;\n @Prop() placeholderValue = 'Enter Search';\n @Prop() rightToLeftOrientation = false;\n @Prop() query = '';\n\n @Event() clearInput: EventEmitter<void>;\n @Event() searchInputChange: EventEmitter<string>;\n @Event() inputKeyUp: EventEmitter<string>;\n\n @State() theme = 'light';\n\n private get isLightTheme() {\n return this.theme === 'light';\n }\n\n handleInputChange(event: Event) {\n const input = event.target as HTMLInputElement;\n this.searchInputChange.emit(input.value);\n }\n\n handleInputKeyUp(event: KeyboardEvent) {\n const input = event.target as HTMLInputElement;\n this.inputKeyUp.emit(input.value);\n }\n\n handleClearInput() {\n if (this.clearInput) {\n this.clearInput.emit();\n }\n }\n\n render() {\n const containerClassName = this.rightToLeftOrientation\n ? 'inputContainerRTL'\n : 'inputContainerLTR';\n\n const inputClassName = classNames(\n this.error\n ? this.isLightTheme\n ? 'inputErrorLightRTL'\n : 'inputErrorDarkRTL'\n : this.isLightTheme\n ? 'inputLightLTR'\n : 'inputDarkLTR',\n 'searchcraft-input',\n );\n\n const validatedCustomStyles = parseCustomStyles(this.customStyles);\n\n const placeholderStyle = {\n fontSize: validatedCustomStyles.placeholderFontSize || '16px',\n };\n return (\n <div\n class={classNames(\n containerClassName,\n this.formClassName,\n 'searchcraft-input-form',\n )}\n >\n {this.rightToLeftOrientation ? (\n <Fragment>\n <input\n autoComplete='off'\n class={classNames(inputClassName, 'searchcraft-input')}\n id='searchcraft-input-id'\n onChange={this.handleInputChange.bind(this)}\n onKeyUp={this.handleInputKeyUp.bind(this)}\n placeholder={this.placeholderValue}\n type='text'\n value={this.query}\n style={validatedCustomStyles}\n />\n <style>\n {`\n #searchcraft-input-id::placeholder {\n font-size: ${placeholderStyle.fontSize};\n }\n `}\n </style>\n {this.inputCaptionValue && (\n <searchcraft-input-caption\n inputCaptionClassName={this.inputCaptionClassName}\n inputCaptionValue={this.inputCaptionValue}\n rightToLeftOrientation={this.rightToLeftOrientation}\n />\n )}\n {this.query.length > 0 && (\n <searchcraft-clear-input-button\n isRequesting={this.isRequesting}\n onClearInput={this.handleClearInput}\n rightToLeftOrientation={this.rightToLeftOrientation}\n />\n )}\n <searchcraft-input-icon\n error={this.error}\n height={this.inputIconHeight}\n rightToLeftOrientation={this.rightToLeftOrientation}\n width={this.inputIconWidth}\n />\n </Fragment>\n ) : (\n <Fragment>\n <searchcraft-input-icon\n error={this.error}\n height={this.inputIconHeight}\n rightToLeftOrientation={this.rightToLeftOrientation}\n width={this.inputIconWidth}\n />\n <input\n autoComplete='off'\n class={classNames(inputClassName, 'searchcraft-input')}\n id='searchcraft-input-id'\n onChange={this.handleInputChange.bind(this)}\n onKeyUp={this.handleInputKeyUp.bind(this)}\n placeholder={this.placeholderValue}\n type='text'\n value={this.query}\n style={validatedCustomStyles}\n />\n <style>\n {`\n #searchcraft-input-id::placeholder {\n font-size: ${placeholderStyle.fontSize};\n }\n `}\n </style>\n {this.inputCaptionValue && (\n <searchcraft-input-caption\n inputCaptionClassName={this.inputCaptionClassName}\n inputCaptionValue={this.inputCaptionValue}\n rightToLeftOrientation={this.rightToLeftOrientation}\n />\n )}\n {this.query.length > 0 && (\n <searchcraft-clear-input-button\n isRequesting={this.isRequesting}\n onClearInput={this.handleClearInput}\n rightToLeftOrientation={this.rightToLeftOrientation}\n />\n )}\n </Fragment>\n )}\n </div>\n );\n }\n}\n"],"version":3}
@@ -1,2 +1,49 @@
1
- import{p as t,b as e}from"./p-0880cfbb.js";export{s as setNonce}from"./p-0880cfbb.js";import{g as r}from"./p-e1255160.js";var a=()=>{const e=import.meta.url;const r={};if(e!==""){r.resourcesUrl=new URL(".",e).href}return t(r)};a().then((async t=>{await r();return e([["p-6108dd80",[[1,"searchcraft-auto-search-form",{autoSearchFormClass:[1,"auto-search-form-class"],clearInput:[16],config:[16],customStylesForInput:[1,"custom-styles-for-input"],inputCaptionValue:[1,"input-caption-value"],inputIconHeight:[2,"input-icon-height"],inputIconWidth:[2,"input-icon-width"],labelForInput:[1,"label-for-input"],placeholderValue:[1,"placeholder-value"],rightToLeftOrientation:[4,"right-to-left-orientation"],searchContainerClass:[1,"search-container-class"],error:[32],isRequesting:[32],query:[32],searchResults:[32]}],[1,"searchcraft-base-search-results",{documentAttributesForDisplay:[1,"document-attributes-for-display"],customStylesForResults:[1,"custom-styles-for-results"],placeAdAtStart:[4,"place-ad-at-start"],placeAdAtEnd:[4,"place-ad-at-end"],adInterval:[2,"ad-interval"],formatTime:[4,"format-time"],fallbackElement:[16],query:[32],searchResults:[32],hasSearched:[32]}],[1,"searchcraft-filters-list",{filters:[16],dynamicFilters:[32],initialFilters:[32],isRequesting:[32],selectedFilters:[32],originalFilterCounts:[32],query:[32],resultsCount:[32]}],[1,"searchcraft-results-info",{isRequesting:[32],resultsCount:[32],responseTime:[32],query:[32]}],[1,"searchcraft-slider",{minYear:[2,"min-year"],maxYear:[2,"max-year"],endYear:[32],query:[32],startYear:[32],hasSearched:[32],resultsCount:[32]}],[1,"searchcraft-toggle-button",{type:[1],isActive:[32],query:[32],resultsCount:[32]}],[1,"searchcraft-base-search-result",{buttonText:[1,"button-text"],imageDescription:[1,"image-description"],imageSource:[1,"image-source"],isInteractive:[4,"is-interactive"],primaryContent:[1,"primary-content"],secondaryContent:[1,"secondary-content"],tertiaryContent:[1,"tertiary-content"],headingText:[1,"heading-text"],subheadingText:[1,"subheading-text"],themeMode:[1,"theme-mode"],customStyles:[1,"custom-styles"]}],[1,"searchcraft-input",{customStyles:[1,"custom-styles"],error:[4],formClassName:[1,"form-class-name"],inputCaptionClassName:[1,"input-caption-class-name"],inputCaptionValue:[1,"input-caption-value"],inputClassName:[1,"input-class-name"],inputIconHeight:[2,"input-icon-height"],inputIconWidth:[2,"input-icon-width"],isRequesting:[4,"is-requesting"],placeholderValue:[1,"placeholder-value"],rightToLeftOrientation:[4,"right-to-left-orientation"],query:[1],theme:[32]}],[1,"searchcraft-input-label",{inputLabelClassName:[1,"input-label-class-name"],label:[1],theme:[32]}],[1,"searchcraft-clear-input-button",{isRequesting:[4,"is-requesting"],rightToLeftOrientation:[4,"right-to-left-orientation"],theme:[32]}],[1,"searchcraft-input-icon",{error:[4],rightToLeftOrientation:[4,"right-to-left-orientation"],height:[2],width:[2],theme:[32]}],[1,"searchcraft-error-message",{errorMessage:[1,"error-message"],theme:[1]}],[1,"searchcraft-input-caption",{error:[4],inputCaptionClassName:[1,"input-caption-class-name"],inputCaptionValue:[1,"input-caption-value"],rightToLeftOrientation:[4,"right-to-left-orientation"],theme:[32]}],[1,"searchcraft-clear-icon-set",{type:[1]}],[1,"searchcraft-search-icon-set",{type:[1],width:[2],height:[2]}],[1,"searchcraft-spinner-light"],[1,"searchcraft-spinner-dark"]]],["p-a9bac3ca",[[1,"searchcraft-base-search-form",{config:[16],errorMessage:[1,"error-message"],labelForInput:[1,"label-for-input"],rightToLeftOrientation:[4,"right-to-left-orientation"],error:[32],query:[32],searchResults:[32]}]]],["p-5ec960bd",[[1,"searchcraft-button-icon"]]],["p-cc454542",[[1,"searchcraft-button",{iconElement:[16],iconOnly:[4,"icon-only"],iconPosition:[1,"icon-position"],label:[1],isRequesting:[32],theme:[32]}]]]],t)}));
1
+ import { B as BUILD, c as consoleDevInfo, H, d as doc, N as NAMESPACE, p as promiseResolve, b as bootstrapLazy } from './index-8211f330.js';
2
+ export { s as setNonce } from './index-8211f330.js';
3
+ import { g as globalScripts } from './app-globals-0f993ce5.js';
4
+
5
+ /*
6
+ Stencil Client Patch Browser v4.22.3 | MIT Licensed | https://stenciljs.com
7
+ */
8
+ var patchBrowser = () => {
9
+ if (BUILD.isDev && !BUILD.isTesting) {
10
+ consoleDevInfo("Running in development mode.");
11
+ }
12
+ if (BUILD.cloneNodeFix) {
13
+ patchCloneNodeFix(H.prototype);
14
+ }
15
+ const scriptElm = BUILD.scriptDataOpts ? Array.from(doc.querySelectorAll("script")).find(
16
+ (s) => new RegExp(`/${NAMESPACE}(\\.esm)?\\.js($|\\?|#)`).test(s.src) || s.getAttribute("data-stencil-namespace") === NAMESPACE
17
+ ) : null;
18
+ const importMeta = import.meta.url;
19
+ const opts = BUILD.scriptDataOpts ? (scriptElm || {})["data-opts"] || {} : {};
20
+ if (importMeta !== "") {
21
+ opts.resourcesUrl = new URL(".", importMeta).href;
22
+ }
23
+ return promiseResolve(opts);
24
+ };
25
+ var patchCloneNodeFix = (HTMLElementPrototype) => {
26
+ const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;
27
+ HTMLElementPrototype.cloneNode = function(deep) {
28
+ if (this.nodeName === "TEMPLATE") {
29
+ return nativeCloneNodeFn.call(this, deep);
30
+ }
31
+ const clonedNode = nativeCloneNodeFn.call(this, false);
32
+ const srcChildNodes = this.childNodes;
33
+ if (deep) {
34
+ for (let i = 0; i < srcChildNodes.length; i++) {
35
+ if (srcChildNodes[i].nodeType !== 2) {
36
+ clonedNode.appendChild(srcChildNodes[i].cloneNode(true));
37
+ }
38
+ }
39
+ }
40
+ return clonedNode;
41
+ };
42
+ };
43
+
44
+ patchBrowser().then(async (options) => {
45
+ await globalScripts();
46
+ return bootstrapLazy([["searchcraft-base-search-form",[[1,"searchcraft-base-search-form",{"config":[16],"errorMessage":[1,"error-message"],"labelForInput":[1,"label-for-input"],"rightToLeftOrientation":[4,"right-to-left-orientation"],"error":[32],"query":[32],"searchResults":[32]}]]],["searchcraft-auto-search-form",[[1,"searchcraft-auto-search-form",{"autoSearchFormClass":[1,"auto-search-form-class"],"clearInput":[16],"config":[16],"customStylesForInput":[1,"custom-styles-for-input"],"inputCaptionValue":[1,"input-caption-value"],"inputIconHeight":[2,"input-icon-height"],"inputIconWidth":[2,"input-icon-width"],"labelForInput":[1,"label-for-input"],"placeholderValue":[1,"placeholder-value"],"rightToLeftOrientation":[4,"right-to-left-orientation"],"searchContainerClass":[1,"search-container-class"],"error":[32],"isRequesting":[32],"query":[32],"searchResults":[32]}]]],["searchcraft-base-search-results",[[1,"searchcraft-base-search-results",{"adInterval":[2,"ad-interval"],"customStylesForResults":[1,"custom-styles-for-results"],"documentAttributesForDisplay":[1,"document-attributes-for-display"],"fallbackElement":[16],"formatTime":[4,"format-time"],"placeAdAtEnd":[4,"place-ad-at-end"],"placeAdAtStart":[4,"place-ad-at-start"],"hasSearched":[32],"query":[32],"searchResults":[32]}]]],["searchcraft-button-icon",[[1,"searchcraft-button-icon"]]],["searchcraft-filters-list",[[1,"searchcraft-filters-list",{"filters":[16],"dynamicFilters":[32],"initialFilters":[32],"isRequesting":[32],"originalFilterCounts":[32],"query":[32],"resultsCount":[32],"selectedFilters":[32]}]]],["searchcraft-results-info",[[1,"searchcraft-results-info",{"isRequesting":[32],"resultsCount":[32],"responseTime":[32],"query":[32]}]]],["searchcraft-slider",[[1,"searchcraft-slider",{"maxYear":[2,"max-year"],"minYear":[2,"min-year"],"endYear":[32],"hasSearched":[32],"query":[32],"resultsCount":[32],"startYear":[32]}]]],["searchcraft-toggle-button",[[1,"searchcraft-toggle-button",{"type":[1],"isActive":[32],"query":[32],"resultsCount":[32]}]]],["searchcraft-button",[[1,"searchcraft-button",{"iconElement":[16],"iconOnly":[4,"icon-only"],"iconPosition":[1,"icon-position"],"label":[1],"isRequesting":[32],"theme":[32]}]]],["searchcraft-base-search-result",[[1,"searchcraft-base-search-result",{"buttonText":[1,"button-text"],"customStyles":[1,"custom-styles"],"headingText":[1,"heading-text"],"imageDescription":[1,"image-description"],"imageSource":[1,"image-source"],"isInteractive":[4,"is-interactive"],"primaryContent":[1,"primary-content"],"secondaryContent":[1,"secondary-content"],"subheadingText":[1,"subheading-text"],"tertiaryContent":[1,"tertiary-content"],"themeMode":[1,"theme-mode"]}]]],["searchcraft-clear-icon-set",[[1,"searchcraft-clear-icon-set",{"type":[1]}]]],["searchcraft-input",[[1,"searchcraft-input",{"customStyles":[1,"custom-styles"],"error":[4],"formClassName":[1,"form-class-name"],"inputCaptionClassName":[1,"input-caption-class-name"],"inputCaptionValue":[1,"input-caption-value"],"inputClassName":[1,"input-class-name"],"inputIconHeight":[2,"input-icon-height"],"inputIconWidth":[2,"input-icon-width"],"isRequesting":[4,"is-requesting"],"placeholderValue":[1,"placeholder-value"],"rightToLeftOrientation":[4,"right-to-left-orientation"],"query":[1],"theme":[32]}]]],["searchcraft-input-label",[[1,"searchcraft-input-label",{"inputLabelClassName":[1,"input-label-class-name"],"label":[1],"theme":[32]}]]],["searchcraft-clear-input-button",[[1,"searchcraft-clear-input-button",{"isRequesting":[4,"is-requesting"],"rightToLeftOrientation":[4,"right-to-left-orientation"],"theme":[32]}]]],["searchcraft-input-icon",[[1,"searchcraft-input-icon",{"error":[4],"height":[2],"rightToLeftOrientation":[4,"right-to-left-orientation"],"width":[2],"theme":[32]}]]],["searchcraft-error-message",[[1,"searchcraft-error-message",{"errorMessage":[1,"error-message"],"theme":[1]}]]],["searchcraft-input-caption",[[1,"searchcraft-input-caption",{"error":[4],"inputCaptionClassName":[1,"input-caption-class-name"],"inputCaptionValue":[1,"input-caption-value"],"rightToLeftOrientation":[4,"right-to-left-orientation"],"theme":[32]}]]],["searchcraft-search-icon-set",[[1,"searchcraft-search-icon-set",{"type":[1],"width":[2],"height":[2]}]]],["searchcraft-spinner-light",[[1,"searchcraft-spinner-light"]]],["searchcraft-spinner-dark",[[1,"searchcraft-spinner-dark"]]]], options);
47
+ });
48
+
2
49
  //# 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","autoSearchFormClass","clearInput","config","customStylesForInput","inputCaptionValue","inputIconHeight","inputIconWidth","labelForInput","placeholderValue","rightToLeftOrientation","searchContainerClass","error","isRequesting","query","searchResults","documentAttributesForDisplay","customStylesForResults","placeAdAtStart","placeAdAtEnd","adInterval","formatTime","fallbackElement","hasSearched","filters","dynamicFilters","initialFilters","selectedFilters","originalFilterCounts","resultsCount","responseTime","minYear","maxYear","endYear","startYear","type","isActive","buttonText","imageDescription","imageSource","isInteractive","primaryContent","secondaryContent","tertiaryContent","headingText","subheadingText","themeMode","customStyles","formClassName","inputCaptionClassName","inputClassName","theme","inputLabelClassName","label","height","width","errorMessage","iconElement","iconOnly","iconPosition"],"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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AO,aAAa,CAAC,4BAA4B,EAAE,OAAO,CAAC,CAAC;AAC9D,CAAC,CAAC","names":[],"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"],"version":3}