@searchcraft/javascript-sdk 0.3.0 → 0.4.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.
- package/README.md +198 -0
- package/dist/cjs/{index-6c5282a0.js → index-c8a8e492.js} +317 -10
- package/dist/cjs/index-c8a8e492.js.map +1 -0
- package/dist/cjs/index.cjs.js +4 -5
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/package-ccc7e307.js +68 -0
- package/dist/cjs/package-ccc7e307.js.map +1 -0
- package/dist/cjs/searchcraft-auto-search-form.cjs.entry.js +160 -0
- package/dist/cjs/searchcraft-auto-search-form.cjs.entry.js.map +1 -0
- package/dist/cjs/searchcraft-base-search-form.cjs.entry.js +13 -8
- package/dist/cjs/searchcraft-base-search-form.cjs.entry.js.map +1 -1
- package/dist/cjs/searchcraft-base-search-result.cjs.entry.js +74 -0
- package/dist/cjs/searchcraft-base-search-result.cjs.entry.js.map +1 -0
- package/dist/cjs/searchcraft-base-search-results.cjs.entry.js +129 -0
- package/dist/cjs/searchcraft-base-search-results.cjs.entry.js.map +1 -0
- package/dist/cjs/searchcraft-button-icon.cjs.entry.js +1 -1
- package/dist/cjs/searchcraft-button.cjs.entry.js +4 -9
- package/dist/cjs/searchcraft-button.cjs.entry.js.map +1 -1
- package/dist/cjs/searchcraft-check-icon_2.cjs.entry.js +28 -0
- package/dist/cjs/searchcraft-check-icon_2.cjs.entry.js.map +1 -0
- package/dist/cjs/searchcraft-clear-icon-set.cjs.entry.js +30 -0
- package/dist/cjs/searchcraft-clear-icon-set.cjs.entry.js.map +1 -0
- package/dist/cjs/searchcraft-error-message_3.cjs.entry.js +95 -0
- package/dist/cjs/searchcraft-error-message_3.cjs.entry.js.map +1 -0
- package/dist/cjs/searchcraft-facet-list_3.cjs.entry.js +183 -0
- package/dist/cjs/searchcraft-facet-list_3.cjs.entry.js.map +1 -0
- package/dist/cjs/searchcraft-filter-panel.cjs.entry.js +134 -0
- package/dist/cjs/searchcraft-filter-panel.cjs.entry.js.map +1 -0
- package/dist/cjs/searchcraft-javascript-sdk.cjs.js +2 -2
- package/dist/cjs/searchcraft-results-info.cjs.entry.js +46 -0
- package/dist/cjs/searchcraft-results-info.cjs.entry.js.map +1 -0
- package/dist/cjs/searchcraft-search-icon-set.cjs.entry.js +33 -0
- package/dist/cjs/searchcraft-search-icon-set.cjs.entry.js.map +1 -0
- package/dist/cjs/searchcraft-spinner-dark.cjs.entry.js +22 -0
- package/dist/cjs/searchcraft-spinner-dark.cjs.entry.js.map +1 -0
- package/dist/cjs/searchcraft-spinner-light.cjs.entry.js +22 -0
- package/dist/cjs/searchcraft-spinner-light.cjs.entry.js.map +1 -0
- package/dist/cjs/store-72205332.js +945 -0
- package/dist/cjs/store-72205332.js.map +1 -0
- package/dist/cjs/utils-4ee2b88d.js +169 -0
- package/dist/cjs/utils-4ee2b88d.js.map +1 -0
- package/dist/collection/assets/searchcraft-button-icons.js.map +1 -1
- package/dist/collection/assets/searchcraft-check-icon.js.map +1 -1
- package/dist/collection/assets/searchcraft-clear-icon-set.js.map +1 -1
- package/dist/collection/assets/searchcraft-dash-icon.js.map +1 -1
- package/dist/collection/assets/searchcraft-search-icon-set.js.map +1 -1
- package/dist/collection/collection-manifest.json +2 -4
- package/dist/collection/components/searchcraft-auto-search-form/searchcraft-auto-search-form.js +68 -94
- package/dist/collection/components/searchcraft-auto-search-form/searchcraft-auto-search-form.js.map +1 -1
- package/dist/collection/components/searchcraft-auto-search-form/searchcraft-auto-search-form.module.css +98 -9
- package/dist/collection/components/searchcraft-base-search-form/searchcraft-base-search-form.js +42 -20
- package/dist/collection/components/searchcraft-base-search-form/searchcraft-base-search-form.js.map +1 -1
- package/dist/collection/components/searchcraft-base-search-form/searchcraft-base-search-form.module.css +94 -8
- package/dist/collection/components/searchcraft-base-search-result/searchcraft-base-search-result.js +158 -136
- package/dist/collection/components/searchcraft-base-search-result/searchcraft-base-search-result.js.map +1 -1
- package/dist/collection/components/searchcraft-base-search-result/searchcraft-base-search-result.module.css +142 -189
- package/dist/collection/components/searchcraft-base-search-results/searchcraft-base-search-results.js +172 -83
- package/dist/collection/components/searchcraft-base-search-results/searchcraft-base-search-results.js.map +1 -1
- package/dist/collection/components/searchcraft-base-search-results/searchcraft-base-search-results.module.css +105 -23
- package/dist/collection/components/searchcraft-button/searchcraft-button.js +3 -10
- package/dist/collection/components/searchcraft-button/searchcraft-button.js.map +1 -1
- package/dist/collection/components/searchcraft-button/searchcraft-button.module.css +107 -65
- package/dist/collection/components/searchcraft-error-message/searchcraft-error-message.js +2 -24
- package/dist/collection/components/searchcraft-error-message/searchcraft-error-message.js.map +1 -1
- package/dist/collection/components/searchcraft-error-message/searchcraft-error-message.module.css +101 -15
- package/dist/collection/components/searchcraft-facet-list/searchcraft-facet-list.js +140 -0
- package/dist/collection/components/searchcraft-facet-list/searchcraft-facet-list.js.map +1 -0
- package/dist/collection/components/searchcraft-facet-list/searchcraft-facet-list.module.css +216 -0
- package/dist/collection/components/searchcraft-filter-panel/searchcraft-filter-panel.js +166 -0
- package/dist/collection/components/searchcraft-filter-panel/searchcraft-filter-panel.js.map +1 -0
- package/dist/collection/components/searchcraft-filter-panel/searchcraft-filter-panel.module.css +118 -0
- package/dist/collection/components/searchcraft-input/searchcraft-input.js +43 -133
- package/dist/collection/components/searchcraft-input/searchcraft-input.js.map +1 -1
- package/dist/collection/components/searchcraft-input/searchcraft-input.module.css +162 -221
- package/dist/collection/components/searchcraft-input-label/searchcraft-input-label.js +1 -13
- package/dist/collection/components/searchcraft-input-label/searchcraft-input-label.js.map +1 -1
- package/dist/collection/components/searchcraft-input-label/searchcraft-input-label.module.css +102 -14
- package/dist/collection/components/searchcraft-results-info/searchcraft-results-info.js +4 -3
- package/dist/collection/components/searchcraft-results-info/searchcraft-results-info.js.map +1 -1
- package/dist/collection/components/searchcraft-results-info/searchcraft-results-info.module.css +111 -7
- package/dist/collection/components/searchcraft-slider/searchcraft-slider.js +101 -58
- package/dist/collection/components/searchcraft-slider/searchcraft-slider.js.map +1 -1
- package/dist/collection/components/searchcraft-slider/searchcraft-slider.module.css +136 -23
- package/dist/collection/components/searchcraft-spinner-dark/searchcraft-spinner-dark.js +1 -1
- package/dist/collection/components/searchcraft-spinner-dark/searchcraft-spinner-dark.js.map +1 -1
- package/dist/collection/components/searchcraft-spinner-dark/searchcraft-spinner-dark.module.css +103 -4
- package/dist/collection/components/searchcraft-spinner-light/searchcraft-spinner-light.js +1 -1
- package/dist/collection/components/searchcraft-spinner-light/searchcraft-spinner-light.js.map +1 -1
- package/dist/collection/components/searchcraft-spinner-light/searchcraft-spinner-light.module.css +102 -3
- package/dist/collection/components/searchcraft-toggle-button/searchcraft-toggle-button.js +51 -64
- package/dist/collection/components/searchcraft-toggle-button/searchcraft-toggle-button.js.map +1 -1
- package/dist/collection/components/searchcraft-toggle-button/searchcraft-toggle-button.module.css +135 -9
- package/dist/collection/index.js +2 -1
- package/dist/collection/index.js.map +1 -1
- package/dist/collection/provider/store.js +46 -31
- package/dist/collection/provider/store.js.map +1 -1
- package/dist/collection/types/index.js +3 -0
- package/dist/collection/types/index.js.map +1 -0
- package/dist/collection/types/searchcraft-base-search-results.types.js +2 -0
- package/dist/collection/types/searchcraft-base-search-results.types.js.map +1 -0
- package/dist/collection/types/searchcraft-filter-panel.types.js +2 -0
- package/dist/collection/types/searchcraft-filter-panel.types.js.map +1 -0
- package/dist/collection/utils/utils.js +117 -35
- package/dist/collection/utils/utils.js.map +1 -1
- package/dist/components/index.js +7 -11
- package/dist/components/index.js.map +1 -1
- package/dist/components/{p-d3187f5a.js → p-04d13314.js} +2 -2
- package/dist/components/{p-d3187f5a.js.map → p-04d13314.js.map} +1 -1
- package/dist/components/p-0deddac7.js +161 -0
- package/dist/components/p-0deddac7.js.map +1 -0
- package/dist/components/p-37f54c0b.js +54 -0
- package/dist/components/p-37f54c0b.js.map +1 -0
- package/dist/components/{p-7498e493.js → p-5639be85.js} +311 -10
- package/dist/components/p-5639be85.js.map +1 -0
- package/dist/components/p-68897c11.js +124 -0
- package/dist/components/p-68897c11.js.map +1 -0
- package/dist/components/p-69eed21e.js +66 -0
- package/dist/components/p-69eed21e.js.map +1 -0
- package/dist/components/p-8062f0ea.js +82 -0
- package/dist/components/p-8062f0ea.js.map +1 -0
- package/dist/components/p-9f2b8375.js +33 -0
- package/dist/components/p-9f2b8375.js.map +1 -0
- package/dist/components/p-ace4e6a0.js +35 -0
- package/dist/components/p-ace4e6a0.js.map +1 -0
- package/dist/components/p-b1a59f07.js +101 -0
- package/dist/components/p-b1a59f07.js.map +1 -0
- package/dist/components/p-be63dcac.js +941 -0
- package/dist/components/p-be63dcac.js.map +1 -0
- package/dist/components/p-c8bc1e4f.js +40 -0
- package/dist/components/p-c8bc1e4f.js.map +1 -0
- package/dist/components/{p-e5471fcf.js → p-de50441f.js} +2 -2
- package/dist/components/{p-e5471fcf.js.map → p-de50441f.js.map} +1 -1
- package/dist/components/p-e3c8b1ef.js +91 -0
- package/dist/components/p-e3c8b1ef.js.map +1 -0
- package/dist/components/p-ebf021b5.js +49 -0
- package/dist/components/p-ebf021b5.js.map +1 -0
- package/dist/components/searchcraft-auto-search-form.js +70 -84
- package/dist/components/searchcraft-auto-search-form.js.map +1 -1
- package/dist/components/searchcraft-base-search-form.js +27 -58
- package/dist/components/searchcraft-base-search-form.js.map +1 -1
- package/dist/components/searchcraft-base-search-result.js +1 -1
- package/dist/components/searchcraft-base-search-results.js +81 -53
- package/dist/components/searchcraft-base-search-results.js.map +1 -1
- package/dist/components/searchcraft-button-icon.js +1 -1
- package/dist/components/searchcraft-button.js +1 -1
- package/dist/components/searchcraft-check-icon.js +1 -1
- package/dist/components/searchcraft-clear-icon-set.js +39 -1
- package/dist/components/searchcraft-clear-icon-set.js.map +1 -1
- package/dist/components/searchcraft-dash-icon.js +1 -1
- package/dist/components/searchcraft-error-message.js +1 -1
- package/dist/components/searchcraft-facet-list.d.ts +11 -0
- package/dist/components/searchcraft-facet-list.js +8 -0
- package/dist/components/searchcraft-facet-list.js.map +1 -0
- package/dist/components/searchcraft-filter-panel.d.ts +11 -0
- package/dist/components/searchcraft-filter-panel.js +184 -0
- package/dist/components/searchcraft-filter-panel.js.map +1 -0
- package/dist/components/searchcraft-input-label.js +1 -1
- package/dist/components/searchcraft-input.js +1 -1
- package/dist/components/searchcraft-results-info.js +8 -7
- package/dist/components/searchcraft-results-info.js.map +1 -1
- package/dist/components/searchcraft-search-icon-set.js +44 -1
- package/dist/components/searchcraft-search-icon-set.js.map +1 -1
- package/dist/components/searchcraft-slider.js +1 -95
- package/dist/components/searchcraft-slider.js.map +1 -1
- package/dist/components/searchcraft-spinner-dark.js +1 -1
- package/dist/components/searchcraft-spinner-light.js +29 -1
- package/dist/components/searchcraft-spinner-light.js.map +1 -1
- package/dist/components/searchcraft-toggle-button.js +1 -91
- package/dist/components/searchcraft-toggle-button.js.map +1 -1
- package/dist/esm/{index-0ac5bb53.js → index-88dc5f88.js} +317 -10
- package/dist/esm/index-88dc5f88.js.map +1 -0
- package/dist/esm/index.js +2 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/package-ee16f835.js +66 -0
- package/dist/esm/package-ee16f835.js.map +1 -0
- package/dist/esm/searchcraft-auto-search-form.entry.js +156 -0
- package/dist/esm/searchcraft-auto-search-form.entry.js.map +1 -0
- package/dist/esm/searchcraft-base-search-form.entry.js +13 -8
- package/dist/esm/searchcraft-base-search-form.entry.js.map +1 -1
- package/dist/esm/searchcraft-base-search-result.entry.js +70 -0
- package/dist/esm/searchcraft-base-search-result.entry.js.map +1 -0
- package/dist/esm/searchcraft-base-search-results.entry.js +125 -0
- package/dist/esm/searchcraft-base-search-results.entry.js.map +1 -0
- package/dist/esm/searchcraft-button-icon.entry.js +1 -1
- package/dist/esm/searchcraft-button.entry.js +4 -9
- package/dist/esm/searchcraft-button.entry.js.map +1 -1
- package/dist/esm/searchcraft-check-icon_2.entry.js +23 -0
- package/dist/esm/searchcraft-check-icon_2.entry.js.map +1 -0
- package/dist/{components/p-70722ab2.js → esm/searchcraft-clear-icon-set.entry.js} +7 -24
- package/dist/esm/searchcraft-clear-icon-set.entry.js.map +1 -0
- package/dist/esm/searchcraft-error-message_3.entry.js +89 -0
- package/dist/esm/searchcraft-error-message_3.entry.js.map +1 -0
- package/dist/esm/searchcraft-facet-list_3.entry.js +177 -0
- package/dist/esm/searchcraft-facet-list_3.entry.js.map +1 -0
- package/dist/esm/searchcraft-filter-panel.entry.js +130 -0
- package/dist/esm/searchcraft-filter-panel.entry.js.map +1 -0
- package/dist/esm/searchcraft-javascript-sdk.js +3 -3
- package/dist/esm/searchcraft-results-info.entry.js +42 -0
- package/dist/esm/searchcraft-results-info.entry.js.map +1 -0
- package/dist/{components/p-a3bd1bc8.js → esm/searchcraft-search-icon-set.entry.js} +7 -26
- package/dist/esm/searchcraft-search-icon-set.entry.js.map +1 -0
- package/dist/esm/searchcraft-spinner-dark.entry.js +18 -0
- package/dist/esm/searchcraft-spinner-dark.entry.js.map +1 -0
- package/dist/esm/searchcraft-spinner-light.entry.js +18 -0
- package/dist/esm/searchcraft-spinner-light.entry.js.map +1 -0
- package/dist/esm/store-52436995.js +941 -0
- package/dist/esm/store-52436995.js.map +1 -0
- package/dist/esm/utils-89a02921.js +161 -0
- package/dist/esm/utils-89a02921.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/index.esm.js +1 -1
- package/dist/searchcraft-javascript-sdk/p-08bd95f1.entry.js +2 -0
- package/dist/searchcraft-javascript-sdk/p-08bd95f1.entry.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/p-0deddac7.js +2 -0
- package/dist/searchcraft-javascript-sdk/p-0deddac7.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/p-15f9891d.entry.js +2 -0
- package/dist/searchcraft-javascript-sdk/p-15f9891d.entry.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/p-2419a8c5.entry.js +2 -0
- package/dist/searchcraft-javascript-sdk/p-2419a8c5.entry.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/p-343adbe3.entry.js +2 -0
- package/dist/searchcraft-javascript-sdk/p-343adbe3.entry.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/p-3a2d9be9.entry.js +2 -0
- package/dist/searchcraft-javascript-sdk/p-3a2d9be9.entry.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/p-4278ff89.entry.js +2 -0
- package/dist/searchcraft-javascript-sdk/p-4278ff89.entry.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/p-4c32c87d.js +3 -0
- package/dist/searchcraft-javascript-sdk/p-4c32c87d.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/p-56413bef.entry.js +2 -0
- package/dist/searchcraft-javascript-sdk/p-56413bef.entry.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/p-69eed21e.js +2 -0
- package/dist/searchcraft-javascript-sdk/p-69eed21e.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/{p-5ec960bd.entry.js → p-69f64bdd.entry.js} +2 -2
- package/dist/searchcraft-javascript-sdk/p-7c59b3cd.entry.js +2 -0
- package/dist/searchcraft-javascript-sdk/p-7c59b3cd.entry.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/p-93e9de71.entry.js +2 -0
- package/dist/searchcraft-javascript-sdk/p-93e9de71.entry.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/p-9647ae41.entry.js +2 -0
- package/dist/searchcraft-javascript-sdk/p-9647ae41.entry.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/p-a613a6ba.entry.js +2 -0
- package/dist/searchcraft-javascript-sdk/p-a613a6ba.entry.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/p-acc645c7.entry.js +2 -0
- package/dist/searchcraft-javascript-sdk/p-acc645c7.entry.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/p-bb03e946.js +11 -0
- package/dist/searchcraft-javascript-sdk/p-bb03e946.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/p-bf80bbee.entry.js +2 -0
- package/dist/searchcraft-javascript-sdk/p-bf80bbee.entry.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/p-f4612b94.entry.js +2 -0
- package/dist/searchcraft-javascript-sdk/p-f4612b94.entry.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/searchcraft-javascript-sdk.esm.js +1 -1
- package/dist/searchcraft-javascript-sdk/searchcraft-javascript-sdk.esm.js.map +1 -1
- package/dist/types/components/searchcraft-auto-search-form/searchcraft-auto-search-form.d.ts +7 -7
- package/dist/types/components/searchcraft-base-search-form/searchcraft-base-search-form.d.ts +5 -4
- package/dist/types/components/searchcraft-base-search-result/searchcraft-base-search-result.d.ts +18 -17
- package/dist/types/components/searchcraft-base-search-results/searchcraft-base-search-results.d.ts +17 -5
- package/dist/types/components/searchcraft-button/searchcraft-button.d.ts +0 -2
- package/dist/types/components/searchcraft-error-message/searchcraft-error-message.d.ts +0 -7
- package/dist/types/components/searchcraft-facet-list/searchcraft-facet-list.d.ts +21 -0
- package/dist/types/components/searchcraft-filter-panel/searchcraft-filter-panel.d.ts +25 -0
- package/dist/types/components/searchcraft-input/searchcraft-input.d.ts +5 -11
- package/dist/types/components/searchcraft-input-label/searchcraft-input-label.d.ts +0 -2
- package/dist/types/components/searchcraft-slider/searchcraft-slider.d.ts +14 -10
- package/dist/types/components/searchcraft-toggle-button/searchcraft-toggle-button.d.ts +4 -9
- package/dist/types/components.d.ts +157 -193
- package/dist/types/index.d.ts +2 -1
- package/dist/types/provider/store.d.ts +16 -9
- package/dist/types/types/index.d.ts +2 -0
- package/dist/types/types/searchcraft-base-search-results.types.d.ts +17 -0
- package/dist/types/types/searchcraft-filter-panel.types.d.ts +42 -0
- package/dist/types/utils/utils.d.ts +24 -15
- package/package.json +2 -2
- package/dist/cjs/index-6c5282a0.js.map +0 -1
- package/dist/cjs/searchcraft-auto-search-form_19.cjs.entry.js +0 -861
- package/dist/cjs/searchcraft-auto-search-form_19.cjs.entry.js.map +0 -1
- package/dist/cjs/store-f3bec622.js +0 -406
- package/dist/cjs/store-f3bec622.js.map +0 -1
- package/dist/collection/components/searchcraft-clear-input-button/searchcraft-clear-input-button.js +0 -95
- package/dist/collection/components/searchcraft-clear-input-button/searchcraft-clear-input-button.js.map +0 -1
- package/dist/collection/components/searchcraft-clear-input-button/searchcraft-clear-input-button.module.css +0 -33
- package/dist/collection/components/searchcraft-filters-list/searchcraft-filters-list.js +0 -172
- package/dist/collection/components/searchcraft-filters-list/searchcraft-filters-list.js.map +0 -1
- package/dist/collection/components/searchcraft-filters-list/searchcraft-filters-list.module.css +0 -110
- package/dist/collection/components/searchcraft-input-caption/searchcraft-input-caption.js +0 -122
- package/dist/collection/components/searchcraft-input-caption/searchcraft-input-caption.js.map +0 -1
- package/dist/collection/components/searchcraft-input-caption/searchcraft-input-caption.module.css +0 -79
- package/dist/collection/components/searchcraft-input-icon/searchcraft-input-icon.js +0 -109
- package/dist/collection/components/searchcraft-input-icon/searchcraft-input-icon.js.map +0 -1
- package/dist/collection/components/searchcraft-input-icon/searchcraft-input-icon.module.css +0 -17
- package/dist/components/p-07edaa9b.js +0 -67
- package/dist/components/p-07edaa9b.js.map +0 -1
- package/dist/components/p-27a6ca57.js +0 -149
- package/dist/components/p-27a6ca57.js.map +0 -1
- package/dist/components/p-4468fba3.js +0 -61
- package/dist/components/p-4468fba3.js.map +0 -1
- package/dist/components/p-498c7ef9.js +0 -40
- package/dist/components/p-498c7ef9.js.map +0 -1
- package/dist/components/p-6237f03e.js +0 -60
- package/dist/components/p-6237f03e.js.map +0 -1
- package/dist/components/p-70722ab2.js.map +0 -1
- package/dist/components/p-7498e493.js.map +0 -1
- package/dist/components/p-7d1bcd2d.js +0 -88
- package/dist/components/p-7d1bcd2d.js.map +0 -1
- package/dist/components/p-8c38185e.js +0 -53
- package/dist/components/p-8c38185e.js.map +0 -1
- package/dist/components/p-a3bd1bc8.js.map +0 -1
- package/dist/components/p-ae84b899.js +0 -48
- package/dist/components/p-ae84b899.js.map +0 -1
- package/dist/components/p-bc3f9025.js +0 -33
- package/dist/components/p-bc3f9025.js.map +0 -1
- package/dist/components/p-bfb22305.js +0 -33
- package/dist/components/p-bfb22305.js.map +0 -1
- package/dist/components/p-c31274dd.js +0 -89
- package/dist/components/p-c31274dd.js.map +0 -1
- package/dist/components/p-ff049f0a.js +0 -313
- package/dist/components/p-ff049f0a.js.map +0 -1
- package/dist/components/searchcraft-clear-input-button.d.ts +0 -11
- package/dist/components/searchcraft-clear-input-button.js +0 -8
- package/dist/components/searchcraft-clear-input-button.js.map +0 -1
- package/dist/components/searchcraft-filters-list.d.ts +0 -11
- package/dist/components/searchcraft-filters-list.js +0 -155
- package/dist/components/searchcraft-filters-list.js.map +0 -1
- package/dist/components/searchcraft-input-caption.d.ts +0 -11
- package/dist/components/searchcraft-input-caption.js +0 -8
- package/dist/components/searchcraft-input-caption.js.map +0 -1
- package/dist/components/searchcraft-input-icon.d.ts +0 -11
- package/dist/components/searchcraft-input-icon.js +0 -8
- package/dist/components/searchcraft-input-icon.js.map +0 -1
- package/dist/esm/index-0ac5bb53.js.map +0 -1
- package/dist/esm/searchcraft-auto-search-form_19.entry.js +0 -839
- package/dist/esm/searchcraft-auto-search-form_19.entry.js.map +0 -1
- package/dist/esm/store-6af9ea01.js +0 -396
- package/dist/esm/store-6af9ea01.js.map +0 -1
- package/dist/searchcraft-javascript-sdk/p-05416a3e.entry.js +0 -2
- package/dist/searchcraft-javascript-sdk/p-05416a3e.entry.js.map +0 -1
- package/dist/searchcraft-javascript-sdk/p-0880cfbb.js +0 -3
- package/dist/searchcraft-javascript-sdk/p-0880cfbb.js.map +0 -1
- package/dist/searchcraft-javascript-sdk/p-1ab836bf.js +0 -11
- package/dist/searchcraft-javascript-sdk/p-1ab836bf.js.map +0 -1
- package/dist/searchcraft-javascript-sdk/p-3cb77ee1.entry.js +0 -2
- package/dist/searchcraft-javascript-sdk/p-3cb77ee1.entry.js.map +0 -1
- package/dist/searchcraft-javascript-sdk/p-72382d90.entry.js +0 -2
- package/dist/searchcraft-javascript-sdk/p-72382d90.entry.js.map +0 -1
- package/dist/types/components/searchcraft-clear-input-button/searchcraft-clear-input-button.d.ts +0 -10
- package/dist/types/components/searchcraft-filters-list/searchcraft-filters-list.d.ts +0 -34
- package/dist/types/components/searchcraft-input-caption/searchcraft-input-caption.d.ts +0 -9
- package/dist/types/components/searchcraft-input-icon/searchcraft-input-icon.d.ts +0 -9
- package/readme.md +0 -11
- /package/dist/searchcraft-javascript-sdk/{p-5ec960bd.entry.js.map → p-69f64bdd.entry.js.map} +0 -0
|
@@ -1,69 +1,48 @@
|
|
|
1
|
-
import { h,
|
|
1
|
+
import { h, } from "@stencil/core";
|
|
2
2
|
import classNames from "classnames";
|
|
3
3
|
import { parseCustomStyles } from "../../utils/utils";
|
|
4
4
|
export class SearchcraftInput {
|
|
5
5
|
constructor() {
|
|
6
|
+
this.handleOnInput = (event) => {
|
|
7
|
+
const input = event.target;
|
|
8
|
+
this.inputValue = input.value;
|
|
9
|
+
this.inputChange.emit(input.value);
|
|
10
|
+
};
|
|
11
|
+
this.handleClearInput = () => {
|
|
12
|
+
this.inputValue = '';
|
|
13
|
+
if (this.clearInput) {
|
|
14
|
+
this.clearInput.emit();
|
|
15
|
+
}
|
|
16
|
+
if (this.inputValue === '') {
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
};
|
|
6
20
|
this.customStyles = {};
|
|
7
21
|
this.error = false;
|
|
8
|
-
this.formClassName = '';
|
|
9
22
|
this.inputCaptionClassName = '';
|
|
10
23
|
this.inputCaptionValue = '';
|
|
11
24
|
this.inputClassName = '';
|
|
12
|
-
this.inputIconHeight = 20;
|
|
13
|
-
this.inputIconWidth = 20;
|
|
14
25
|
this.isRequesting = false;
|
|
15
26
|
this.placeholderValue = 'Enter Search';
|
|
16
|
-
this.rightToLeftOrientation = false;
|
|
17
27
|
this.query = '';
|
|
18
|
-
this.
|
|
19
|
-
|
|
20
|
-
get isLightTheme() {
|
|
21
|
-
return this.theme === 'light';
|
|
22
|
-
}
|
|
23
|
-
handleInputChange(event) {
|
|
24
|
-
const input = event.target;
|
|
25
|
-
this.searchInputChange.emit(input.value);
|
|
26
|
-
}
|
|
27
|
-
handleInputKeyUp(event) {
|
|
28
|
-
const input = event.target;
|
|
29
|
-
this.inputKeyUp.emit(input.value);
|
|
30
|
-
}
|
|
31
|
-
handleClearInput() {
|
|
32
|
-
if (this.query === '') {
|
|
33
|
-
return;
|
|
34
|
-
}
|
|
35
|
-
this.query = '';
|
|
36
|
-
if (this.clearInput) {
|
|
37
|
-
this.clearInput.emit();
|
|
38
|
-
}
|
|
28
|
+
this.flex = true;
|
|
29
|
+
this.inputValue = this.query;
|
|
39
30
|
}
|
|
40
31
|
render() {
|
|
41
|
-
const containerClassName = this.rightToLeftOrientation
|
|
42
|
-
? 'inputContainerRTL'
|
|
43
|
-
: 'inputContainerLTR';
|
|
44
|
-
const inputClassName = classNames(this.error
|
|
45
|
-
? this.isLightTheme
|
|
46
|
-
? 'inputErrorLightRTL'
|
|
47
|
-
: 'inputErrorDarkRTL'
|
|
48
|
-
: this.isLightTheme
|
|
49
|
-
? 'inputLightLTR'
|
|
50
|
-
: 'inputDarkLTR', 'searchcraft-input');
|
|
51
32
|
const validatedCustomStyles = parseCustomStyles(this.customStyles);
|
|
52
|
-
const
|
|
53
|
-
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
`), 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 }))))));
|
|
33
|
+
const inputWrapperClassNames = classNames('searchcraft-input-wrapper', {
|
|
34
|
+
'searchcraft-input-wrapper-flex': this.flex,
|
|
35
|
+
});
|
|
36
|
+
const inputClassNames = classNames('searchcraft-input', {
|
|
37
|
+
'searchcraft-input-flex': this.flex,
|
|
38
|
+
error: this.error,
|
|
39
|
+
});
|
|
40
|
+
const isShowingClearButton = this.inputValue.length > 0;
|
|
41
|
+
return (h("div", { key: 'ccc37209c67ce2d5faa3ad435f0c303bf23b9355', class: inputWrapperClassNames }, h("input", { key: 'd368f669c9e5ab7716502100d27325140a7d4c4e', autoComplete: 'off', class: inputClassNames, onInput: (event) => {
|
|
42
|
+
this.handleOnInput(event);
|
|
43
|
+
}, placeholder: this.placeholderValue, style: validatedCustomStyles, type: 'text', value: this.inputValue }), h("div", { key: 'b26c20cf29469f80a072635a4dc23ca8123d2b0b', class: 'searchcraft-input-search-icon-wrapper' }, h("svg", { key: '0865511d00e078982fe873e2b6fce30df290cdbd', class: 'searchcraft-input-search-icon', viewBox: '0 0 20 20', fill: 'none', xmlns: 'http://www.w3.org/2000/svg', "aria-labelledby": 'searchcraft-title' }, h("title", { key: '09e89005bc7972729888ed787f579ad18b6886b4', id: 'searchcraft-title' }, "Searchcraft Search Icon Light"), h("path", { key: 'fc37d213842b87f26d9d9f89c0708392a197648c', d: 'M17.5 17.5L13.875 13.875M15.8333 9.16667C15.8333 12.8486 12.8486 15.8333 9.16667 15.8333C5.48477 15.8333 2.5 12.8486 2.5 9.16667C2.5 5.48477 5.48477 2.5 9.16667 2.5C12.8486 2.5 15.8333 5.48477 15.8333 9.16667Z', stroke: '#404040', "stroke-width": '1.5', "stroke-linecap": 'round', "stroke-linejoin": 'round' }))), isShowingClearButton && (h("button", { key: '779b81efc2ae5e985415edf4f9c02618852c7185', type: 'button', class: 'searchcraft-input-clear-button', onClick: this.handleClearInput }, h("svg", { key: '511dd4755fd75ab0a75ecd21ad18eb8726f84c94', class: 'searchcraft-input-clear-icon', viewBox: '0 0 22 22', fill: 'none', xmlns: 'http://www.w3.org/2000/svg', "aria-labelledby": 'icon-title' }, h("title", { key: '97304d272345567dd59ef1c1985663074bd0ed0e', id: 'icon-title' }, "Searchcraft Clear Input Icon Light"), h("path", { key: '147f88e2f51d855fbc097e81d32f24c27217f443', 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', stroke: 'black', "stroke-width": '1.5', "stroke-linecap": 'round', "stroke-linejoin": 'round' }))))));
|
|
64
44
|
}
|
|
65
45
|
static get is() { return "searchcraft-input"; }
|
|
66
|
-
static get encapsulation() { return "shadow"; }
|
|
67
46
|
static get originalStyleUrls() {
|
|
68
47
|
return {
|
|
69
48
|
"$": ["searchcraft-input.module.scss"]
|
|
@@ -117,24 +96,6 @@ export class SearchcraftInput {
|
|
|
117
96
|
"reflect": false,
|
|
118
97
|
"defaultValue": "false"
|
|
119
98
|
},
|
|
120
|
-
"formClassName": {
|
|
121
|
-
"type": "string",
|
|
122
|
-
"mutable": false,
|
|
123
|
-
"complexType": {
|
|
124
|
-
"original": "string",
|
|
125
|
-
"resolved": "string",
|
|
126
|
-
"references": {}
|
|
127
|
-
},
|
|
128
|
-
"required": false,
|
|
129
|
-
"optional": false,
|
|
130
|
-
"docs": {
|
|
131
|
-
"tags": [],
|
|
132
|
-
"text": ""
|
|
133
|
-
},
|
|
134
|
-
"attribute": "form-class-name",
|
|
135
|
-
"reflect": false,
|
|
136
|
-
"defaultValue": "''"
|
|
137
|
-
},
|
|
138
99
|
"inputCaptionClassName": {
|
|
139
100
|
"type": "string",
|
|
140
101
|
"mutable": false,
|
|
@@ -189,42 +150,6 @@ export class SearchcraftInput {
|
|
|
189
150
|
"reflect": false,
|
|
190
151
|
"defaultValue": "''"
|
|
191
152
|
},
|
|
192
|
-
"inputIconHeight": {
|
|
193
|
-
"type": "number",
|
|
194
|
-
"mutable": false,
|
|
195
|
-
"complexType": {
|
|
196
|
-
"original": "number",
|
|
197
|
-
"resolved": "number",
|
|
198
|
-
"references": {}
|
|
199
|
-
},
|
|
200
|
-
"required": false,
|
|
201
|
-
"optional": false,
|
|
202
|
-
"docs": {
|
|
203
|
-
"tags": [],
|
|
204
|
-
"text": ""
|
|
205
|
-
},
|
|
206
|
-
"attribute": "input-icon-height",
|
|
207
|
-
"reflect": false,
|
|
208
|
-
"defaultValue": "20"
|
|
209
|
-
},
|
|
210
|
-
"inputIconWidth": {
|
|
211
|
-
"type": "number",
|
|
212
|
-
"mutable": false,
|
|
213
|
-
"complexType": {
|
|
214
|
-
"original": "number",
|
|
215
|
-
"resolved": "number",
|
|
216
|
-
"references": {}
|
|
217
|
-
},
|
|
218
|
-
"required": false,
|
|
219
|
-
"optional": false,
|
|
220
|
-
"docs": {
|
|
221
|
-
"tags": [],
|
|
222
|
-
"text": ""
|
|
223
|
-
},
|
|
224
|
-
"attribute": "input-icon-width",
|
|
225
|
-
"reflect": false,
|
|
226
|
-
"defaultValue": "20"
|
|
227
|
-
},
|
|
228
153
|
"isRequesting": {
|
|
229
154
|
"type": "boolean",
|
|
230
155
|
"mutable": false,
|
|
@@ -261,12 +186,12 @@ export class SearchcraftInput {
|
|
|
261
186
|
"reflect": false,
|
|
262
187
|
"defaultValue": "'Enter Search'"
|
|
263
188
|
},
|
|
264
|
-
"
|
|
265
|
-
"type": "
|
|
189
|
+
"query": {
|
|
190
|
+
"type": "string",
|
|
266
191
|
"mutable": false,
|
|
267
192
|
"complexType": {
|
|
268
|
-
"original": "
|
|
269
|
-
"resolved": "
|
|
193
|
+
"original": "string",
|
|
194
|
+
"resolved": "string",
|
|
270
195
|
"references": {}
|
|
271
196
|
},
|
|
272
197
|
"required": false,
|
|
@@ -275,16 +200,16 @@ export class SearchcraftInput {
|
|
|
275
200
|
"tags": [],
|
|
276
201
|
"text": ""
|
|
277
202
|
},
|
|
278
|
-
"attribute": "
|
|
203
|
+
"attribute": "query",
|
|
279
204
|
"reflect": false,
|
|
280
|
-
"defaultValue": "
|
|
205
|
+
"defaultValue": "''"
|
|
281
206
|
},
|
|
282
|
-
"
|
|
283
|
-
"type": "
|
|
207
|
+
"flex": {
|
|
208
|
+
"type": "boolean",
|
|
284
209
|
"mutable": false,
|
|
285
210
|
"complexType": {
|
|
286
|
-
"original": "
|
|
287
|
-
"resolved": "
|
|
211
|
+
"original": "boolean",
|
|
212
|
+
"resolved": "boolean",
|
|
288
213
|
"references": {}
|
|
289
214
|
},
|
|
290
215
|
"required": false,
|
|
@@ -293,15 +218,15 @@ export class SearchcraftInput {
|
|
|
293
218
|
"tags": [],
|
|
294
219
|
"text": ""
|
|
295
220
|
},
|
|
296
|
-
"attribute": "
|
|
221
|
+
"attribute": "flex",
|
|
297
222
|
"reflect": false,
|
|
298
|
-
"defaultValue": "
|
|
223
|
+
"defaultValue": "true"
|
|
299
224
|
}
|
|
300
225
|
};
|
|
301
226
|
}
|
|
302
227
|
static get states() {
|
|
303
228
|
return {
|
|
304
|
-
"
|
|
229
|
+
"inputValue": {}
|
|
305
230
|
};
|
|
306
231
|
}
|
|
307
232
|
static get events() {
|
|
@@ -321,23 +246,8 @@ export class SearchcraftInput {
|
|
|
321
246
|
"references": {}
|
|
322
247
|
}
|
|
323
248
|
}, {
|
|
324
|
-
"method": "
|
|
325
|
-
"name": "
|
|
326
|
-
"bubbles": true,
|
|
327
|
-
"cancelable": true,
|
|
328
|
-
"composed": true,
|
|
329
|
-
"docs": {
|
|
330
|
-
"tags": [],
|
|
331
|
-
"text": ""
|
|
332
|
-
},
|
|
333
|
-
"complexType": {
|
|
334
|
-
"original": "string",
|
|
335
|
-
"resolved": "string",
|
|
336
|
-
"references": {}
|
|
337
|
-
}
|
|
338
|
-
}, {
|
|
339
|
-
"method": "inputKeyUp",
|
|
340
|
-
"name": "inputKeyUp",
|
|
249
|
+
"method": "inputChange",
|
|
250
|
+
"name": "inputChange",
|
|
341
251
|
"bubbles": true,
|
|
342
252
|
"cancelable": true,
|
|
343
253
|
"composed": true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"searchcraft-input.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"searchcraft-input.js","sourceRoot":"","sources":["../../../../src/components/searchcraft-input/searchcraft-input.tsx"],"names":[],"mappings":"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","sourcesContent":["import {\n Component,\n h,\n Prop,\n State,\n Event,\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: false,\n})\nexport class SearchcraftInput {\n @Prop() customStyles: string | Record<string, string> = {};\n @Prop() error = false;\n @Prop() inputCaptionClassName = '';\n @Prop() inputCaptionValue = '';\n @Prop() inputClassName = '';\n @Prop() isRequesting = false;\n @Prop() placeholderValue = 'Enter Search';\n @Prop() query = '';\n @Prop() flex = true;\n\n @Event() clearInput: EventEmitter<void>;\n @Event() inputChange: EventEmitter<string>;\n\n @State() inputValue = this.query;\n\n handleOnInput = (event: Event) => {\n const input = event.target as HTMLInputElement;\n this.inputValue = input.value;\n this.inputChange.emit(input.value);\n };\n\n handleClearInput = () => {\n this.inputValue = '';\n\n if (this.clearInput) {\n this.clearInput.emit();\n }\n if (this.inputValue === '') {\n return;\n }\n };\n\n render() {\n const validatedCustomStyles = parseCustomStyles(this.customStyles);\n\n const inputWrapperClassNames = classNames('searchcraft-input-wrapper', {\n 'searchcraft-input-wrapper-flex': this.flex,\n });\n\n const inputClassNames = classNames('searchcraft-input', {\n 'searchcraft-input-flex': this.flex,\n error: this.error,\n });\n\n const isShowingClearButton = this.inputValue.length > 0;\n\n return (\n <div class={inputWrapperClassNames}>\n <input\n autoComplete='off'\n class={inputClassNames}\n onInput={(event) => {\n this.handleOnInput(event);\n }}\n placeholder={this.placeholderValue}\n style={validatedCustomStyles}\n type='text'\n value={this.inputValue}\n />\n <div class='searchcraft-input-search-icon-wrapper'>\n <svg\n class='searchcraft-input-search-icon'\n viewBox='0 0 20 20'\n fill='none'\n xmlns='http://www.w3.org/2000/svg'\n aria-labelledby='searchcraft-title'\n >\n <title id='searchcraft-title'>Searchcraft Search Icon Light</title>\n <path\n d='M17.5 17.5L13.875 13.875M15.8333 9.16667C15.8333 12.8486 12.8486 15.8333 9.16667 15.8333C5.48477 15.8333 2.5 12.8486 2.5 9.16667C2.5 5.48477 5.48477 2.5 9.16667 2.5C12.8486 2.5 15.8333 5.48477 15.8333 9.16667Z'\n stroke='#404040'\n stroke-width='1.5'\n stroke-linecap='round'\n stroke-linejoin='round'\n />\n </svg>\n </div>\n {isShowingClearButton && (\n <button\n type='button'\n class='searchcraft-input-clear-button'\n onClick={this.handleClearInput}\n >\n <svg\n class='searchcraft-input-clear-icon'\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 </button>\n )}\n </div>\n );\n }\n}\n"]}
|