@searchcraft/javascript-sdk 0.1.9 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (168) hide show
  1. package/dist/cjs/{index-d0e71432.js → index-6c5282a0.js} +3 -3
  2. package/dist/cjs/index-6c5282a0.js.map +1 -0
  3. package/dist/cjs/index.cjs.js +2 -2
  4. package/dist/cjs/loader.cjs.js +2 -2
  5. package/dist/cjs/{searchcraft-auto-search-form_16.cjs.entry.js → searchcraft-auto-search-form_17.cjs.entry.js} +177 -68
  6. package/dist/cjs/searchcraft-auto-search-form_17.cjs.entry.js.map +1 -0
  7. package/dist/cjs/searchcraft-base-search-form.cjs.entry.js +4 -4
  8. package/dist/cjs/searchcraft-button-icon.cjs.entry.js +1 -1
  9. package/dist/cjs/searchcraft-button.cjs.entry.js +2 -2
  10. package/dist/cjs/searchcraft-javascript-sdk.cjs.js +2 -2
  11. package/dist/cjs/{store-3f6eab7d.js → store-ccdd30e6.js} +35 -40
  12. package/dist/cjs/store-ccdd30e6.js.map +1 -0
  13. package/dist/cjs/{utils-39791159.js → utils-bd99e8b0.js} +3 -3
  14. package/dist/cjs/utils-bd99e8b0.js.map +1 -0
  15. package/dist/collection/collection-manifest.json +1 -0
  16. package/dist/collection/components/searchcraft-auto-search-form/searchcraft-auto-search-form.js +29 -6
  17. package/dist/collection/components/searchcraft-auto-search-form/searchcraft-auto-search-form.js.map +1 -1
  18. package/dist/collection/components/searchcraft-auto-search-form/searchcraft-auto-search-form.module.css +0 -6
  19. package/dist/collection/components/searchcraft-base-search-form/searchcraft-base-search-form.js +1 -1
  20. package/dist/collection/components/searchcraft-base-search-result/searchcraft-base-search-result.js +2 -2
  21. package/dist/collection/components/searchcraft-base-search-result/searchcraft-base-search-result.js.map +1 -1
  22. package/dist/collection/components/searchcraft-base-search-result/searchcraft-base-search-result.module.css +13 -6
  23. package/dist/collection/components/searchcraft-base-search-results/searchcraft-base-search-results.js +43 -9
  24. package/dist/collection/components/searchcraft-base-search-results/searchcraft-base-search-results.js.map +1 -1
  25. package/dist/collection/components/searchcraft-base-search-results/searchcraft-base-search-results.module.css +8 -1
  26. package/dist/collection/components/searchcraft-button/searchcraft-button.js +1 -1
  27. package/dist/collection/components/searchcraft-clear-input-button/searchcraft-clear-input-button.module.css +2 -2
  28. package/dist/collection/components/searchcraft-error-message/searchcraft-error-message.js +1 -1
  29. package/dist/collection/components/searchcraft-filters-list/searchcraft-filters-list.js +47 -23
  30. package/dist/collection/components/searchcraft-filters-list/searchcraft-filters-list.js.map +1 -1
  31. package/dist/collection/components/searchcraft-filters-list/searchcraft-filters-list.module.css +37 -2
  32. package/dist/collection/components/searchcraft-input/searchcraft-input.js +2 -2
  33. package/dist/collection/components/searchcraft-input/searchcraft-input.js.map +1 -1
  34. package/dist/collection/components/searchcraft-results-info/searchcraft-results-info.js +51 -0
  35. package/dist/collection/components/searchcraft-results-info/searchcraft-results-info.js.map +1 -0
  36. package/dist/collection/components/searchcraft-results-info/searchcraft-results-info.module.css +16 -0
  37. package/dist/collection/components/searchcraft-slider/searchcraft-slider.js +32 -8
  38. package/dist/collection/components/searchcraft-slider/searchcraft-slider.js.map +1 -1
  39. package/dist/collection/components/searchcraft-slider/searchcraft-slider.module.css +9 -7
  40. package/dist/collection/components/searchcraft-spinner-dark/searchcraft-spinner-dark.js +1 -1
  41. package/dist/collection/components/searchcraft-spinner-light/searchcraft-spinner-light.js +1 -1
  42. package/dist/collection/components/searchcraft-toggle-button/searchcraft-toggle-button.js +22 -9
  43. package/dist/collection/components/searchcraft-toggle-button/searchcraft-toggle-button.js.map +1 -1
  44. package/dist/collection/components/searchcraft-toggle-button/searchcraft-toggle-button.module.css +0 -7
  45. package/dist/collection/provider/store.js +3 -7
  46. package/dist/collection/provider/store.js.map +1 -1
  47. package/dist/collection/utils/utils.js +2 -2
  48. package/dist/collection/utils/utils.js.map +1 -1
  49. package/dist/components/index.js +3 -3
  50. package/dist/components/{p-25bd714c.js → p-01c5864b.js} +2 -2
  51. package/dist/components/{p-25bd714c.js.map → p-01c5864b.js.map} +1 -1
  52. package/dist/components/{p-f2e41d24.js → p-0ef8f141.js} +3 -3
  53. package/dist/components/{p-f2e41d24.js.map → p-0ef8f141.js.map} +1 -1
  54. package/dist/components/{p-c9629cc3.js → p-162887a4.js} +3 -3
  55. package/dist/components/{p-c9629cc3.js.map → p-162887a4.js.map} +1 -1
  56. package/dist/components/{p-574e8e3c.js → p-2bff6d1e.js} +4 -4
  57. package/dist/components/{p-574e8e3c.js.map → p-2bff6d1e.js.map} +1 -1
  58. package/dist/components/{p-50ca3fe4.js → p-2f5acc0e.js} +3 -3
  59. package/dist/components/{p-50ca3fe4.js.map → p-2f5acc0e.js.map} +1 -1
  60. package/dist/components/{p-e0e0fc94.js → p-42f8a605.js} +3 -3
  61. package/dist/components/{p-e0e0fc94.js.map → p-42f8a605.js.map} +1 -1
  62. package/dist/components/p-544b2de1.js +86 -0
  63. package/dist/components/p-544b2de1.js.map +1 -0
  64. package/dist/components/{p-9bb9d6f0.js → p-68ad42b5.js} +2 -2
  65. package/dist/components/{p-9bb9d6f0.js.map → p-68ad42b5.js.map} +1 -1
  66. package/dist/components/{p-c9cd5533.js → p-7498e493.js} +3 -3
  67. package/dist/components/p-7498e493.js.map +1 -0
  68. package/dist/components/{p-5aa6335f.js → p-80ea9602.js} +35 -40
  69. package/dist/components/p-80ea9602.js.map +1 -0
  70. package/dist/components/{p-17c94ac1.js → p-aff5cd24.js} +3 -3
  71. package/dist/components/p-aff5cd24.js.map +1 -0
  72. package/dist/components/{p-37df2122.js → p-d11d9b1f.js} +12 -12
  73. package/dist/components/p-d11d9b1f.js.map +1 -0
  74. package/dist/components/{p-71dff048.js → p-ee5e7a8c.js} +2 -2
  75. package/dist/components/{p-71dff048.js.map → p-ee5e7a8c.js.map} +1 -1
  76. package/dist/components/{p-05cd002d.js → p-fc0540e5.js} +2 -2
  77. package/dist/components/{p-05cd002d.js.map → p-fc0540e5.js.map} +1 -1
  78. package/dist/components/{p-403f6115.js → p-fd1f6c2f.js} +6 -6
  79. package/dist/components/p-fd1f6c2f.js.map +1 -0
  80. package/dist/components/searchcraft-auto-search-form.js +30 -21
  81. package/dist/components/searchcraft-auto-search-form.js.map +1 -1
  82. package/dist/components/searchcraft-base-search-form.js +15 -15
  83. package/dist/components/searchcraft-base-search-result.js +1 -1
  84. package/dist/components/searchcraft-base-search-results.js +28 -14
  85. package/dist/components/searchcraft-base-search-results.js.map +1 -1
  86. package/dist/components/searchcraft-button-icon.js +1 -1
  87. package/dist/components/searchcraft-button.js +1 -1
  88. package/dist/components/searchcraft-clear-icon-set.js +1 -1
  89. package/dist/components/searchcraft-clear-input-button.js +1 -1
  90. package/dist/components/searchcraft-error-message.js +1 -1
  91. package/dist/components/searchcraft-filters-list.js +50 -26
  92. package/dist/components/searchcraft-filters-list.js.map +1 -1
  93. package/dist/components/searchcraft-input-caption.js +1 -1
  94. package/dist/components/searchcraft-input-icon.js +1 -1
  95. package/dist/components/searchcraft-input-label.js +1 -1
  96. package/dist/components/searchcraft-input.js +1 -1
  97. package/dist/components/searchcraft-results-info.d.ts +11 -0
  98. package/dist/components/searchcraft-results-info.js +64 -0
  99. package/dist/components/searchcraft-results-info.js.map +1 -0
  100. package/dist/components/searchcraft-search-icon-set.js +1 -1
  101. package/dist/components/searchcraft-slider.js +35 -11
  102. package/dist/components/searchcraft-slider.js.map +1 -1
  103. package/dist/components/searchcraft-spinner-dark.js +1 -1
  104. package/dist/components/searchcraft-spinner-light.js +1 -1
  105. package/dist/components/searchcraft-toggle-button.js +25 -12
  106. package/dist/components/searchcraft-toggle-button.js.map +1 -1
  107. package/dist/esm/{index-92040c37.js → index-0ac5bb53.js} +3 -3
  108. package/dist/esm/index-0ac5bb53.js.map +1 -0
  109. package/dist/esm/index.js +2 -2
  110. package/dist/esm/loader.js +3 -3
  111. package/dist/esm/{searchcraft-auto-search-form_16.entry.js → searchcraft-auto-search-form_17.entry.js} +177 -69
  112. package/dist/esm/searchcraft-auto-search-form_17.entry.js.map +1 -0
  113. package/dist/esm/searchcraft-base-search-form.entry.js +4 -4
  114. package/dist/esm/searchcraft-button-icon.entry.js +1 -1
  115. package/dist/esm/searchcraft-button.entry.js +2 -2
  116. package/dist/esm/searchcraft-javascript-sdk.js +3 -3
  117. package/dist/esm/{store-5f6f8445.js → store-311de204.js} +35 -40
  118. package/dist/esm/store-311de204.js.map +1 -0
  119. package/dist/esm/{utils-7bff0c78.js → utils-e2076797.js} +3 -3
  120. package/dist/esm/utils-e2076797.js.map +1 -0
  121. package/dist/searchcraft-javascript-sdk/index.esm.js +1 -1
  122. package/dist/searchcraft-javascript-sdk/p-0880cfbb.js +3 -0
  123. package/dist/searchcraft-javascript-sdk/p-0880cfbb.js.map +1 -0
  124. package/dist/searchcraft-javascript-sdk/{p-81eaebdc.entry.js → p-5ec960bd.entry.js} +2 -2
  125. package/dist/searchcraft-javascript-sdk/p-6108dd80.entry.js +2 -0
  126. package/dist/searchcraft-javascript-sdk/p-6108dd80.entry.js.map +1 -0
  127. package/dist/searchcraft-javascript-sdk/{p-5aa6335f.js → p-80ea9602.js} +2 -2
  128. package/dist/searchcraft-javascript-sdk/p-80ea9602.js.map +1 -0
  129. package/dist/searchcraft-javascript-sdk/p-a9bac3ca.entry.js +2 -0
  130. package/dist/searchcraft-javascript-sdk/{p-639d019b.entry.js.map → p-a9bac3ca.entry.js.map} +1 -1
  131. package/dist/searchcraft-javascript-sdk/{p-17c94ac1.js → p-aff5cd24.js} +1 -1
  132. package/dist/searchcraft-javascript-sdk/p-aff5cd24.js.map +1 -0
  133. package/dist/searchcraft-javascript-sdk/{p-02f632b6.entry.js → p-cc454542.entry.js} +2 -2
  134. package/dist/searchcraft-javascript-sdk/searchcraft-javascript-sdk.esm.js +1 -1
  135. package/dist/searchcraft-javascript-sdk/searchcraft-javascript-sdk.esm.js.map +1 -1
  136. package/dist/types/components/searchcraft-auto-search-form/searchcraft-auto-search-form.d.ts +3 -2
  137. package/dist/types/components/searchcraft-base-search-results/searchcraft-base-search-results.d.ts +3 -1
  138. package/dist/types/components/searchcraft-filters-list/searchcraft-filters-list.d.ts +7 -0
  139. package/dist/types/components/searchcraft-results-info/searchcraft-results-info.d.ts +10 -0
  140. package/dist/types/components/searchcraft-slider/searchcraft-slider.d.ts +7 -1
  141. package/dist/types/components/searchcraft-toggle-button/searchcraft-toggle-button.d.ts +5 -0
  142. package/dist/types/components.d.ts +19 -2
  143. package/dist/types/utils/utils.d.ts +1 -1
  144. package/package.json +1 -1
  145. package/dist/cjs/index-d0e71432.js.map +0 -1
  146. package/dist/cjs/searchcraft-auto-search-form_16.cjs.entry.js.map +0 -1
  147. package/dist/cjs/store-3f6eab7d.js.map +0 -1
  148. package/dist/cjs/utils-39791159.js.map +0 -1
  149. package/dist/components/p-17c94ac1.js.map +0 -1
  150. package/dist/components/p-37df2122.js.map +0 -1
  151. package/dist/components/p-3cbac2bb.js +0 -86
  152. package/dist/components/p-3cbac2bb.js.map +0 -1
  153. package/dist/components/p-403f6115.js.map +0 -1
  154. package/dist/components/p-5aa6335f.js.map +0 -1
  155. package/dist/components/p-c9cd5533.js.map +0 -1
  156. package/dist/esm/index-92040c37.js.map +0 -1
  157. package/dist/esm/searchcraft-auto-search-form_16.entry.js.map +0 -1
  158. package/dist/esm/store-5f6f8445.js.map +0 -1
  159. package/dist/esm/utils-7bff0c78.js.map +0 -1
  160. package/dist/searchcraft-javascript-sdk/p-05369654.js +0 -3
  161. package/dist/searchcraft-javascript-sdk/p-05369654.js.map +0 -1
  162. package/dist/searchcraft-javascript-sdk/p-17c94ac1.js.map +0 -1
  163. package/dist/searchcraft-javascript-sdk/p-5aa6335f.js.map +0 -1
  164. package/dist/searchcraft-javascript-sdk/p-639d019b.entry.js +0 -2
  165. package/dist/searchcraft-javascript-sdk/p-73265750.entry.js +0 -2
  166. package/dist/searchcraft-javascript-sdk/p-73265750.entry.js.map +0 -1
  167. /package/dist/searchcraft-javascript-sdk/{p-81eaebdc.entry.js.map → p-5ec960bd.entry.js.map} +0 -0
  168. /package/dist/searchcraft-javascript-sdk/{p-02f632b6.entry.js.map → p-cc454542.entry.js.map} +0 -0
@@ -1,2 +1,2 @@
1
- import{p as t,b as e}from"./p-05369654.js";export{s as setNonce}from"./p-05369654.js";import{g as a}from"./p-e1255160.js";var r=()=>{const e=import.meta.url;const a={};if(e!==""){a.resourcesUrl=new URL(".",e).href}return t(a)};r().then((async t=>{await a();return e([["p-73265750",[[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",{searchKeys:[1,"search-keys"],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"],query:[32],searchResults:[32]}],[1,"searchcraft-filters-list",{filters:[16],dynamicFilters:[32],isRequesting:[32],selectedFilters:[32],originalFilterCounts:[32]}],[1,"searchcraft-slider",{minYear:[2,"min-year"],maxYear:[2,"max-year"],startYear:[32],endYear:[32]}],[1,"searchcraft-toggle-button",{type:[1],isActive:[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-639d019b",[[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-81eaebdc",[[1,"searchcraft-button-icon"]]],["p-02f632b6",[[1,"searchcraft-button",{iconElement:[16],iconOnly:[4,"icon-only"],iconPosition:[1,"icon-position"],label:[1],isRequesting:[32],theme:[32]}]]]],t)}));
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)}));
2
2
  //# sourceMappingURL=searchcraft-javascript-sdk.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["patchBrowser","importMeta","url","opts","resourcesUrl","URL","href","promiseResolve","then","async","options","globalScripts","bootstrapLazy","autoSearchFormClass","clearInput","config","customStylesForInput","inputCaptionValue","inputIconHeight","inputIconWidth","labelForInput","placeholderValue","rightToLeftOrientation","searchContainerClass","error","isRequesting","query","searchResults","searchKeys","customStylesForResults","placeAdAtStart","placeAdAtEnd","adInterval","formatTime","filters","dynamicFilters","selectedFilters","originalFilterCounts","minYear","maxYear","startYear","endYear","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,MAAKC,MAAOC,UACnBC,IACN,OAAOC,EAAc,kDAAuC,CAAAC,oBAAA,6BAAAC,WAAA,KAAAC,OAAA,KAAAC,qBAAA,8BAAAC,kBAAA,0BAAAC,gBAAA,wBAAAC,eAAA,uBAAAC,cAAA,sBAAAC,iBAAA,wBAAAC,uBAAA,gCAAAC,qBAAA,6BAAAC,MAAA,KAAAC,aAAA,KAAAC,MAAA,KAAAC,cAAA,6CAAAC,WAAA,kBAAAC,uBAAA,gCAAAC,eAAA,wBAAAC,aAAA,sBAAAC,WAAA,kBAAAC,WAAA,kBAAAP,MAAA,KAAAC,cAAA,sCAAAO,QAAA,KAAAC,eAAA,KAAAV,aAAA,KAAAW,gBAAA,KAAAC,qBAAA,gCAAAC,QAAA,eAAAC,QAAA,eAAAC,UAAA,KAAAC,QAAA,uCAAAC,KAAA,IAAAC,SAAA,4CAAAC,WAAA,kBAAAC,iBAAA,wBAAAC,YAAA,mBAAAC,cAAA,qBAAAC,eAAA,sBAAAC,iBAAA,wBAAAC,gBAAA,uBAAAC,YAAA,mBAAAC,eAAA,sBAAAC,UAAA,iBAAAC,aAAA,8CAAAA,aAAA,oBAAA9B,MAAA,IAAA+B,cAAA,sBAAAC,sBAAA,+BAAAvC,kBAAA,0BAAAwC,eAAA,uBAAAvC,gBAAA,wBAAAC,eAAA,uBAAAM,aAAA,oBAAAJ,iBAAA,wBAAAC,uBAAA,gCAAAI,MAAA,IAAAgC,MAAA,qCAAAC,oBAAA,6BAAAC,MAAA,IAAAF,MAAA,4CAAAjC,aAAA,oBAAAH,uBAAA,gCAAAoC,MAAA,oCAAAlC,MAAA,IAAAF,uBAAA,gCAAAuC,OAAA,IAAAC,MAAA,IAAAJ,MAAA,uCAAAK,aAAA,oBAAAL,MAAA,sCAAAlC,MAAA,IAAAgC,sBAAA,+BAAAvC,kBAAA,0BAAAK,uBAAA,gCAAAoC,MAAA,wCAAAhB,KAAA,wCAAAA,KAAA,IAAAoB,MAAA,IAAAD,OAAA,yHAAA9C,OAAA,KAAAgD,aAAA,oBAAA3C,cAAA,sBAAAE,uBAAA,gCAAAE,MAAA,KAAAE,MAAA,KAAAC,cAAA,gGAAAqC,YAAA,KAAAC,SAAA,gBAAAC,aAAA,oBAAAN,MAAA,IAAAnC,aAAA,KAAAiC,MAAA,UAAAhD,EAAA","ignoreList":[]}
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,MAAKC,MAAOC,UACnBC,IACN,OAAOC,EAAc,kDAAuC,CAAAC,oBAAA,6BAAAC,WAAA,KAAAC,OAAA,KAAAC,qBAAA,8BAAAC,kBAAA,0BAAAC,gBAAA,wBAAAC,eAAA,uBAAAC,cAAA,sBAAAC,iBAAA,wBAAAC,uBAAA,gCAAAC,qBAAA,6BAAAC,MAAA,KAAAC,aAAA,KAAAC,MAAA,KAAAC,cAAA,6CAAAC,6BAAA,sCAAAC,uBAAA,gCAAAC,eAAA,wBAAAC,aAAA,sBAAAC,WAAA,kBAAAC,WAAA,kBAAAC,gBAAA,KAAAR,MAAA,KAAAC,cAAA,KAAAQ,YAAA,sCAAAC,QAAA,KAAAC,eAAA,KAAAC,eAAA,KAAAb,aAAA,KAAAc,gBAAA,KAAAC,qBAAA,KAAAd,MAAA,KAAAe,aAAA,sCAAAhB,aAAA,KAAAgB,aAAA,KAAAC,aAAA,KAAAhB,MAAA,gCAAAiB,QAAA,eAAAC,QAAA,eAAAC,QAAA,KAAAnB,MAAA,KAAAoB,UAAA,KAAAX,YAAA,KAAAM,aAAA,uCAAAM,KAAA,IAAAC,SAAA,KAAAtB,MAAA,KAAAe,aAAA,4CAAAQ,WAAA,kBAAAC,iBAAA,wBAAAC,YAAA,mBAAAC,cAAA,qBAAAC,eAAA,sBAAAC,iBAAA,wBAAAC,gBAAA,uBAAAC,YAAA,mBAAAC,eAAA,sBAAAC,UAAA,iBAAAC,aAAA,8CAAAA,aAAA,oBAAAnC,MAAA,IAAAoC,cAAA,sBAAAC,sBAAA,+BAAA5C,kBAAA,0BAAA6C,eAAA,uBAAA5C,gBAAA,wBAAAC,eAAA,uBAAAM,aAAA,oBAAAJ,iBAAA,wBAAAC,uBAAA,gCAAAI,MAAA,IAAAqC,MAAA,qCAAAC,oBAAA,6BAAAC,MAAA,IAAAF,MAAA,4CAAAtC,aAAA,oBAAAH,uBAAA,gCAAAyC,MAAA,oCAAAvC,MAAA,IAAAF,uBAAA,gCAAA4C,OAAA,IAAAC,MAAA,IAAAJ,MAAA,uCAAAK,aAAA,oBAAAL,MAAA,sCAAAvC,MAAA,IAAAqC,sBAAA,+BAAA5C,kBAAA,0BAAAK,uBAAA,gCAAAyC,MAAA,wCAAAhB,KAAA,wCAAAA,KAAA,IAAAoB,MAAA,IAAAD,OAAA,yHAAAnD,OAAA,KAAAqD,aAAA,oBAAAhD,cAAA,sBAAAE,uBAAA,gCAAAE,MAAA,KAAAE,MAAA,KAAAC,cAAA,gGAAA0C,YAAA,KAAAC,SAAA,gBAAAC,aAAA,oBAAAN,MAAA,IAAAxC,aAAA,KAAAsC,MAAA,UAAArD,EAAA","ignoreList":[]}
@@ -1,5 +1,5 @@
1
1
  import { type EventEmitter } from '../../stencil-public-runtime';
2
- import { type CoreConfigSDK } from '@searchcraft/core';
2
+ import { type CoreConfigSDK, type SearchcraftResponse } from '@searchcraft/core';
3
3
  import type { ScInputCustomEvent } from "../searchcraft-input/searchcraft-input";
4
4
  export declare class SearchcraftAutoSearchForm {
5
5
  autoSearchFormClass: string;
@@ -14,10 +14,11 @@ export declare class SearchcraftAutoSearchForm {
14
14
  rightToLeftOrientation: boolean;
15
15
  searchContainerClass: string;
16
16
  querySubmit: EventEmitter<string>;
17
+ inputClearedOrNoResults: EventEmitter<void>;
17
18
  error: boolean;
18
19
  isRequesting: boolean;
19
20
  query: string;
20
- searchResults: string;
21
+ searchResults: SearchcraftResponse | null;
21
22
  private debounceTimeout;
22
23
  private debounceDelay;
23
24
  private searchStore;
@@ -2,12 +2,14 @@ import type { SearchcraftResponse } from '@searchcraft/core';
2
2
  export declare class SearchcraftBaseSearchResults {
3
3
  query: string;
4
4
  searchResults: SearchcraftResponse | null;
5
- searchKeys: string;
5
+ hasSearched: boolean;
6
+ documentAttributesForDisplay: string;
6
7
  customStylesForResults: string | Record<string, Record<string, string>>;
7
8
  placeAdAtStart: boolean;
8
9
  placeAdAtEnd: boolean;
9
10
  adInterval: number;
10
11
  formatTime: boolean;
12
+ fallbackElement: HTMLElement | null;
11
13
  private unsubscribe;
12
14
  componentDidLoad(): void;
13
15
  disconnectedCallback(): void;
@@ -10,14 +10,21 @@ export declare class SearchcraftFiltersList {
10
10
  label: string;
11
11
  value: string;
12
12
  }>;
13
+ initialFilters: Array<{
14
+ label: string;
15
+ value: string;
16
+ }>;
13
17
  isRequesting: boolean;
14
18
  selectedFilters: Set<string>;
15
19
  originalFilterCounts: Record<string, string>;
20
+ query: string;
21
+ resultsCount: number;
16
22
  private searchStore;
17
23
  unsubscribe: () => void;
18
24
  connectedCallback(): void;
19
25
  disconnectedCallback(): void;
20
26
  populateFiltersFromFacets(facets: Facets): void;
21
27
  handleFilterChange: (value: string, checked: boolean) => void;
28
+ formatLabel(label: string): string;
22
29
  render(): any;
23
30
  }
@@ -0,0 +1,10 @@
1
+ export declare class SearchcraftResultsInfo {
2
+ isRequesting: boolean;
3
+ resultsCount: number;
4
+ responseTime: string;
5
+ query: string;
6
+ unsubscribe: () => void;
7
+ connectedCallback(): void;
8
+ disconnectedCallback(): void;
9
+ render(): any;
10
+ }
@@ -1,9 +1,15 @@
1
1
  export declare class SearchcraftSlider {
2
2
  minYear: number;
3
3
  maxYear: number;
4
- startYear: number;
5
4
  endYear: number;
5
+ query: string;
6
+ startYear: number;
7
+ hasSearched: boolean;
8
+ unsubscribe: () => void;
6
9
  private searchStore;
10
+ resultsCount: number;
11
+ componentDidLoad(): void;
12
+ disconnectedCallback(): void;
7
13
  private updateYears;
8
14
  private handleStartYearChange;
9
15
  private handleEndYearChange;
@@ -6,7 +6,12 @@ export declare class SearchcraftToggleButton {
6
6
  */
7
7
  type: 'mode' | 'sort';
8
8
  isActive: boolean;
9
+ query: string;
10
+ resultsCount: number;
11
+ private unsubscribe;
9
12
  private searchStore;
13
+ componentDidLoad(): void;
14
+ disconnectedCallback(): void;
10
15
  private handleToggle;
11
16
  render(): any;
12
17
  }
@@ -44,10 +44,11 @@ export namespace Components {
44
44
  "adInterval": number;
45
45
  "customStylesForResults": | string
46
46
  | Record<string, Record<string, string>>;
47
+ "documentAttributesForDisplay": string;
48
+ "fallbackElement": HTMLElement | null;
47
49
  "formatTime": boolean;
48
50
  "placeAdAtEnd": boolean;
49
51
  "placeAdAtStart": boolean;
50
- "searchKeys": string;
51
52
  }
52
53
  interface SearchcraftButton {
53
54
  "iconElement"?: Element;
@@ -116,6 +117,8 @@ export namespace Components {
116
117
  "inputLabelClassName"?: string;
117
118
  "label"?: string;
118
119
  }
120
+ interface SearchcraftResultsInfo {
121
+ }
119
122
  interface SearchcraftSearchIconSet {
120
123
  "height": number;
121
124
  /**
@@ -170,6 +173,7 @@ export interface SearchcraftInputCustomEvent<T> extends CustomEvent<T> {
170
173
  declare global {
171
174
  interface HTMLSearchcraftAutoSearchFormElementEventMap {
172
175
  "querySubmit": string;
176
+ "inputClearedOrNoResults": void;
173
177
  }
174
178
  interface HTMLSearchcraftAutoSearchFormElement extends Components.SearchcraftAutoSearchForm, HTMLStencilElement {
175
179
  addEventListener<K extends keyof HTMLSearchcraftAutoSearchFormElementEventMap>(type: K, listener: (this: HTMLSearchcraftAutoSearchFormElement, ev: SearchcraftAutoSearchFormCustomEvent<HTMLSearchcraftAutoSearchFormElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
@@ -333,6 +337,12 @@ declare global {
333
337
  prototype: HTMLSearchcraftInputLabelElement;
334
338
  new (): HTMLSearchcraftInputLabelElement;
335
339
  };
340
+ interface HTMLSearchcraftResultsInfoElement extends Components.SearchcraftResultsInfo, HTMLStencilElement {
341
+ }
342
+ var HTMLSearchcraftResultsInfoElement: {
343
+ prototype: HTMLSearchcraftResultsInfoElement;
344
+ new (): HTMLSearchcraftResultsInfoElement;
345
+ };
336
346
  interface HTMLSearchcraftSearchIconSetElement extends Components.SearchcraftSearchIconSet, HTMLStencilElement {
337
347
  }
338
348
  var HTMLSearchcraftSearchIconSetElement: {
@@ -378,6 +388,7 @@ declare global {
378
388
  "searchcraft-input-caption": HTMLSearchcraftInputCaptionElement;
379
389
  "searchcraft-input-icon": HTMLSearchcraftInputIconElement;
380
390
  "searchcraft-input-label": HTMLSearchcraftInputLabelElement;
391
+ "searchcraft-results-info": HTMLSearchcraftResultsInfoElement;
381
392
  "searchcraft-search-icon-set": HTMLSearchcraftSearchIconSetElement;
382
393
  "searchcraft-slider": HTMLSearchcraftSliderElement;
383
394
  "searchcraft-spinner-dark": HTMLSearchcraftSpinnerDarkElement;
@@ -395,6 +406,7 @@ declare namespace LocalJSX {
395
406
  "inputIconHeight"?: number;
396
407
  "inputIconWidth"?: number;
397
408
  "labelForInput"?: string;
409
+ "onInputClearedOrNoResults"?: (event: SearchcraftAutoSearchFormCustomEvent<void>) => void;
398
410
  "onQuerySubmit"?: (event: SearchcraftAutoSearchFormCustomEvent<string>) => void;
399
411
  "placeholderValue"?: string;
400
412
  "rightToLeftOrientation"?: boolean;
@@ -427,10 +439,11 @@ declare namespace LocalJSX {
427
439
  "adInterval"?: number;
428
440
  "customStylesForResults"?: | string
429
441
  | Record<string, Record<string, string>>;
442
+ "documentAttributesForDisplay"?: string;
443
+ "fallbackElement"?: HTMLElement | null;
430
444
  "formatTime"?: boolean;
431
445
  "placeAdAtEnd"?: boolean;
432
446
  "placeAdAtStart"?: boolean;
433
- "searchKeys"?: string;
434
447
  }
435
448
  interface SearchcraftButton {
436
449
  "iconElement"?: Element;
@@ -505,6 +518,8 @@ declare namespace LocalJSX {
505
518
  "inputLabelClassName"?: string;
506
519
  "label"?: string;
507
520
  }
521
+ interface SearchcraftResultsInfo {
522
+ }
508
523
  interface SearchcraftSearchIconSet {
509
524
  "height"?: number;
510
525
  /**
@@ -542,6 +557,7 @@ declare namespace LocalJSX {
542
557
  "searchcraft-input-caption": SearchcraftInputCaption;
543
558
  "searchcraft-input-icon": SearchcraftInputIcon;
544
559
  "searchcraft-input-label": SearchcraftInputLabel;
560
+ "searchcraft-results-info": SearchcraftResultsInfo;
545
561
  "searchcraft-search-icon-set": SearchcraftSearchIconSet;
546
562
  "searchcraft-slider": SearchcraftSlider;
547
563
  "searchcraft-spinner-dark": SearchcraftSpinnerDark;
@@ -567,6 +583,7 @@ declare module "@stencil/core" {
567
583
  "searchcraft-input-caption": LocalJSX.SearchcraftInputCaption & JSXBase.HTMLAttributes<HTMLSearchcraftInputCaptionElement>;
568
584
  "searchcraft-input-icon": LocalJSX.SearchcraftInputIcon & JSXBase.HTMLAttributes<HTMLSearchcraftInputIconElement>;
569
585
  "searchcraft-input-label": LocalJSX.SearchcraftInputLabel & JSXBase.HTMLAttributes<HTMLSearchcraftInputLabelElement>;
586
+ "searchcraft-results-info": LocalJSX.SearchcraftResultsInfo & JSXBase.HTMLAttributes<HTMLSearchcraftResultsInfoElement>;
570
587
  "searchcraft-search-icon-set": LocalJSX.SearchcraftSearchIconSet & JSXBase.HTMLAttributes<HTMLSearchcraftSearchIconSetElement>;
571
588
  "searchcraft-slider": LocalJSX.SearchcraftSlider & JSXBase.HTMLAttributes<HTMLSearchcraftSliderElement>;
572
589
  "searchcraft-spinner-dark": LocalJSX.SearchcraftSpinnerDark & JSXBase.HTMLAttributes<HTMLSearchcraftSpinnerDarkElement>;
@@ -1,4 +1,4 @@
1
1
  export declare function parseCustomStyles(styles: string | Record<string, string>): Record<string, string>;
2
- export declare function parseSearchKeys(searchKeys: string): string[];
2
+ export declare function parseSearchKeys(documentAttributesForDisplay: string): string[];
3
3
  export declare function extractDynamicProperties(document: Record<string, string | number>, keys: string[]): Record<string, string | number>;
4
4
  export declare function serializeStyles(styles: Record<string, Record<string, string>>): string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@searchcraft/javascript-sdk",
3
3
  "private": false,
4
- "version": "0.1.9",
4
+ "version": "0.2.0",
5
5
  "description": "Searchcraft Javascript SDK",
6
6
  "author": "Searchcraft",
7
7
  "license": "Apache-2.0",