@searchcraft/javascript-sdk 0.1.1 → 0.1.2
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/dist/cjs/{index-e7bd239c.js → index-e7e9ab69.js} +4 -3
- package/dist/cjs/index-e7e9ab69.js.map +1 -0
- package/dist/cjs/index.cjs.js +4 -2
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/searchcraft-auto-search-form_13.cjs.entry.js +55 -29
- package/dist/cjs/searchcraft-auto-search-form_13.cjs.entry.js.map +1 -1
- package/dist/cjs/searchcraft-base-search-form.cjs.entry.js +2 -2
- package/dist/cjs/searchcraft-button-icon.cjs.entry.js +1 -1
- package/dist/cjs/searchcraft-button.cjs.entry.js +2 -2
- package/dist/cjs/searchcraft-javascript-sdk.cjs.js +2 -2
- package/dist/cjs/{store-6c259dd0.js → store-ab3978ce.js} +2 -2
- package/dist/cjs/{store-6c259dd0.js.map → store-ab3978ce.js.map} +1 -1
- package/dist/cjs/utils-57b6c18f.js +48 -0
- package/dist/cjs/utils-57b6c18f.js.map +1 -0
- package/dist/collection/components/searchcraft-base-search-result/searchcraft-base-search-result.js +126 -65
- 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 +42 -2
- package/dist/collection/components/searchcraft-base-search-results/searchcraft-base-search-results.js +69 -4
- package/dist/collection/components/searchcraft-base-search-results/searchcraft-base-search-results.js.map +1 -1
- package/dist/collection/components/searchcraft-button/searchcraft-button.js +1 -1
- package/dist/collection/components/searchcraft-error-message/searchcraft-error-message.js +1 -1
- package/dist/collection/components/searchcraft-input-icon/searchcraft-input-icon.module.css +6 -4
- package/dist/collection/components/searchcraft-spinner-dark/searchcraft-spinner-dark.js +1 -1
- package/dist/collection/components/searchcraft-spinner-light/searchcraft-spinner-light.js +1 -1
- package/dist/collection/index.js +1 -1
- package/dist/collection/index.js.map +1 -1
- package/dist/collection/provider/store.js.map +1 -1
- package/dist/collection/utils/utils.js +23 -0
- package/dist/collection/utils/utils.js.map +1 -1
- package/dist/components/index.js +3 -3
- package/dist/components/{p-c69651f6.js → p-066c8210.js} +3 -3
- package/dist/components/p-066c8210.js.map +1 -0
- package/dist/components/p-1912bbbd.js +83 -0
- package/dist/components/p-1912bbbd.js.map +1 -0
- package/dist/components/{p-a18c4969.js → p-1bd04bac.js} +10 -10
- package/dist/components/{p-a18c4969.js.map → p-1bd04bac.js.map} +1 -1
- package/dist/components/{p-6f0eaec6.js → p-36c95064.js} +2 -2
- package/dist/components/{p-6f0eaec6.js.map → p-36c95064.js.map} +1 -1
- package/dist/components/p-5e3152c4.js +44 -0
- package/dist/components/p-5e3152c4.js.map +1 -0
- package/dist/components/{p-8646a603.js → p-63035c6a.js} +4 -4
- package/dist/components/p-63035c6a.js.map +1 -0
- package/dist/components/{p-0c25e95d.js → p-6f2a72d3.js} +3 -3
- package/dist/components/{p-0c25e95d.js.map → p-6f2a72d3.js.map} +1 -1
- package/dist/components/{p-e8e40447.js → p-8d9551ce.js} +3 -3
- package/dist/components/{p-e8e40447.js.map → p-8d9551ce.js.map} +1 -1
- package/dist/components/{p-2cc8c074.js → p-b1ff2296.js} +5 -5
- package/dist/components/{p-2cc8c074.js.map → p-b1ff2296.js.map} +1 -1
- package/dist/components/{p-f83f2b59.js → p-c3838435.js} +4 -4
- package/dist/components/{p-f83f2b59.js.map → p-c3838435.js.map} +1 -1
- package/dist/components/{p-199065b5.js → p-cb75ba7a.js} +2 -2
- package/dist/components/{p-199065b5.js.map → p-cb75ba7a.js.map} +1 -1
- package/dist/components/{p-04e7305e.js → p-d0edf961.js} +2 -2
- package/dist/components/{p-04e7305e.js.map → p-d0edf961.js.map} +1 -1
- package/dist/components/{p-155f7a59.js → p-d446eda4.js} +2 -2
- package/dist/components/{p-155f7a59.js.map → p-d446eda4.js.map} +1 -1
- package/dist/components/{p-9283a3c2.js → p-d54bca75.js} +2 -2
- package/dist/components/{p-9283a3c2.js.map → p-d54bca75.js.map} +1 -1
- package/dist/components/{p-16a533e3.js → p-d6616aa5.js} +3 -3
- package/dist/components/{p-16a533e3.js.map → p-d6616aa5.js.map} +1 -1
- package/dist/components/searchcraft-auto-search-form.js +13 -13
- package/dist/components/searchcraft-base-search-form.js +13 -13
- package/dist/components/searchcraft-base-search-result.js +1 -1
- package/dist/components/searchcraft-base-search-results.js +31 -9
- 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-clear-icon-set.js +1 -1
- package/dist/components/searchcraft-clear-input-button.js +1 -1
- package/dist/components/searchcraft-error-message.js +1 -1
- package/dist/components/searchcraft-input-caption.js +1 -1
- package/dist/components/searchcraft-input-icon.js +1 -1
- package/dist/components/searchcraft-input-label.js +1 -1
- package/dist/components/searchcraft-input.js +1 -1
- package/dist/components/searchcraft-search-icon-set.js +1 -1
- package/dist/components/searchcraft-spinner-dark.js +1 -1
- package/dist/components/searchcraft-spinner-light.js +1 -1
- package/dist/esm/{index-0d9f850d.js → index-eace3343.js} +4 -4
- package/dist/esm/index-eace3343.js.map +1 -0
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/searchcraft-auto-search-form_13.entry.js +55 -29
- package/dist/esm/searchcraft-auto-search-form_13.entry.js.map +1 -1
- package/dist/esm/searchcraft-base-search-form.entry.js +2 -2
- package/dist/esm/searchcraft-button-icon.entry.js +1 -1
- package/dist/esm/searchcraft-button.entry.js +2 -2
- package/dist/esm/searchcraft-javascript-sdk.js +3 -3
- package/dist/esm/{store-2370857c.js → store-e55b12aa.js} +2 -2
- package/dist/esm/{store-2370857c.js.map → store-e55b12aa.js.map} +1 -1
- package/dist/esm/utils-02b18bb5.js +44 -0
- package/dist/esm/utils-02b18bb5.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/index.esm.js +1 -1
- package/dist/searchcraft-javascript-sdk/{p-329c3f66.js → p-0ba9029b.js} +3 -3
- package/dist/searchcraft-javascript-sdk/p-0ba9029b.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/{p-6f0eaec6.js → p-36c95064.js} +1 -1
- package/dist/searchcraft-javascript-sdk/p-36c95064.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/p-437c6ef9.entry.js +2 -0
- package/dist/searchcraft-javascript-sdk/p-437c6ef9.entry.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/{p-0a8c2538.entry.js → p-562e923d.entry.js} +2 -2
- package/dist/searchcraft-javascript-sdk/{p-40791ead.entry.js → p-5959cd6a.entry.js} +2 -2
- package/dist/searchcraft-javascript-sdk/p-5e3152c4.js +2 -0
- package/dist/searchcraft-javascript-sdk/p-5e3152c4.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/{p-4d18a44a.entry.js → p-eb632a89.entry.js} +2 -2
- 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-base-search-result/searchcraft-base-search-result.d.ts +14 -11
- package/dist/types/components/searchcraft-base-search-results/searchcraft-base-search-results.d.ts +13 -2
- package/dist/types/components.d.ts +58 -22
- package/dist/types/index.d.ts +1 -1
- package/dist/types/provider/store.d.ts +3 -3
- package/dist/types/utils/utils.d.ts +2 -0
- package/package.json +1 -1
- package/dist/cjs/index-e7bd239c.js.map +0 -1
- package/dist/cjs/utils-cbbed1f7.js +0 -23
- package/dist/cjs/utils-cbbed1f7.js.map +0 -1
- package/dist/components/p-1ef23e15.js +0 -21
- package/dist/components/p-1ef23e15.js.map +0 -1
- package/dist/components/p-83c9df48.js +0 -76
- package/dist/components/p-83c9df48.js.map +0 -1
- package/dist/components/p-8646a603.js.map +0 -1
- package/dist/components/p-c69651f6.js.map +0 -1
- package/dist/esm/index-0d9f850d.js.map +0 -1
- package/dist/esm/utils-f221d91f.js +0 -21
- package/dist/esm/utils-f221d91f.js.map +0 -1
- package/dist/searchcraft-javascript-sdk/p-1ef23e15.js +0 -2
- package/dist/searchcraft-javascript-sdk/p-1ef23e15.js.map +0 -1
- package/dist/searchcraft-javascript-sdk/p-329c3f66.js.map +0 -1
- package/dist/searchcraft-javascript-sdk/p-6f0eaec6.js.map +0 -1
- package/dist/searchcraft-javascript-sdk/p-c0cb5bb1.entry.js +0 -2
- package/dist/searchcraft-javascript-sdk/p-c0cb5bb1.entry.js.map +0 -1
- /package/dist/searchcraft-javascript-sdk/{p-0a8c2538.entry.js.map → p-562e923d.entry.js.map} +0 -0
- /package/dist/searchcraft-javascript-sdk/{p-40791ead.entry.js.map → p-5959cd6a.entry.js.map} +0 -0
- /package/dist/searchcraft-javascript-sdk/{p-4d18a44a.entry.js.map → p-eb632a89.entry.js.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"p-
|
|
1
|
+
{"file":"p-d446eda4.js","mappings":";;MAMa,uBAAuB;;;;;oBAMhC,aAAa;;IAEf,MAAM;QACJ,QAAQ,IAAI,CAAC,IAAI;YACf,KAAK,aAAa;gBAChB,QACE,WACE,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,KAAK,EAAC,4BAA4B,qBAClB,YAAY,IAE5B,aAAO,EAAE,EAAC,YAAY,yCAA2C,EACjE,YACE,CAAC,EAAC,uIAAuI,EACzI,MAAM,EAAC,OAAO,kBACD,KAAK,oBACH,OAAO,qBACN,OAAO,GACvB,CACE,EACN;YACJ,KAAK,YAAY;gBACf,QACE,WACE,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,KAAK,EAAC,4BAA4B,qBAClB,YAAY,IAE5B,aAAO,EAAE,EAAC,YAAY,wCAA0C,EAChE,YACE,CAAC,EAAC,uIAAuI,EACzI,MAAM,EAAC,OAAO,kBACD,KAAK,oBACH,OAAO,qBACN,OAAO,GACvB,CACE,EACN;YACJ,KAAK,aAAa;gBAChB,QACE,WACE,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,KAAK,EAAC,4BAA4B,qBAClB,YAAY,IAE5B,aAAO,EAAE,EAAC,YAAY,yCAA2C,EACjE,YACE,CAAC,EAAC,uCAAuC,EACzC,MAAM,EAAC,SAAS,kBACH,KAAK,oBACH,OAAO,qBACN,OAAO,GACvB,CACE,EACN;YACJ,KAAK,YAAY;gBACf,QACE,WACE,KAAK,EAAC,GAAG,EACT,MAAM,EAAC,IAAI,EACX,OAAO,EAAC,UAAU,EAClB,IAAI,EAAC,MAAM,EACX,KAAK,EAAC,4BAA4B,qBAClB,YAAY,IAE5B,aAAO,EAAE,EAAC,YAAY,wCAA0C,EAChE,YACE,CAAC,EAAC,qBAAqB,EACvB,MAAM,EAAC,SAAS,kBACH,KAAK,oBACH,OAAO,qBACN,OAAO,GACvB,CACE,EACN;YAEJ;gBACE,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}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, h } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, h } from './p-066c8210.js';
|
|
2
2
|
import { c as classNames } from './p-5cdc6210.js';
|
|
3
3
|
|
|
4
4
|
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}";
|
|
@@ -47,4 +47,4 @@ defineCustomElement();
|
|
|
47
47
|
|
|
48
48
|
export { SearchcraftInputLabel as S, defineCustomElement as d };
|
|
49
49
|
|
|
50
|
-
//# sourceMappingURL=p-
|
|
50
|
+
//# sourceMappingURL=p-d54bca75.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"p-
|
|
1
|
+
{"file":"p-d54bca75.js","mappings":";;;AAAA,MAAM,8BAA8B,GAAG,4RAA4R,CAAC;AACpU,oCAAe,8BAA8B;;MCOhC,qBAAqB;;;;;mCACD,EAAE;;qBAEhB,OAAO;;IAEhB,YAAY;QAClB,OAAO,IAAI,CAAC,KAAK,KAAK,OAAO,CAAC;KAC/B;IAED,MAAM;;QAEJ,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE;YACf,OAAO,IAAI,CAAC;SACb;QAED,MAAM,UAAU,GAAG,IAAI,CAAC,YAAY,EAAE,GAAG,YAAY,GAAG,WAAW,CAAC;QAEpE,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; // Make label optional\n @State() theme = 'light';\n\n private isLightTheme() {\n return this.theme === 'light';\n }\n\n render() {\n // Render nothing if no label prop is provided\n if (!this.label) {\n return null;\n }\n\n const labelStyle = this.isLightTheme() ? 'labelLight' : 'labelDark';\n\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,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, h } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, h } from './p-066c8210.js';
|
|
2
2
|
|
|
3
3
|
const searchcraftSpinnerDarkModuleCss = ".spinnerContainer{background-color:transparent;height:20px;width:20px}.spinnerDark{height:100%;width:100%;background:conic-gradient(#000 50%, #FFFFFF);clip-path:circle(50%);mask-image:radial-gradient(circle at center, rgba(0, 0, 0, 0) 6.6666666667px, rgb(0, 0, 0) 6.6666666667px);animation:spinning 1s linear infinite}.spinnerLight{height:100%;width:100%;background:conic-gradient(#737373 50%, #FFFFFF);clip-path:circle(50%);mask-image:radial-gradient(circle at center, rgba(0, 0, 0, 0) 6.6666666667px, rgb(0, 0, 0) 6.6666666667px);animation:spinning 1s linear infinite}@keyframes spinning{0%{transform:rotate(0deg)}50%{transform:rotate(180deg)}100%{transform:rotate(360deg)}}";
|
|
4
4
|
const SearchcraftSpinnerDarkStyle0 = searchcraftSpinnerDarkModuleCss;
|
|
@@ -10,7 +10,7 @@ const SearchcraftSpinnerDark = /*@__PURE__*/ proxyCustomElement(class Searchcraf
|
|
|
10
10
|
this.__attachShadow();
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
|
-
return (h("div", { key: '
|
|
13
|
+
return (h("div", { key: 'fc32dd86414502f1895b157d8aa28645a5391ff9', class: 'spinnerContainer' }, h("div", { key: '260233361f9ff5a17d05b92e41ec2fc13adc2dbf', class: 'spinnerDark' })));
|
|
14
14
|
}
|
|
15
15
|
static get style() { return SearchcraftSpinnerDarkStyle0; }
|
|
16
16
|
}, [1, "searchcraft-spinner-dark"]);
|
|
@@ -31,4 +31,4 @@ defineCustomElement();
|
|
|
31
31
|
|
|
32
32
|
export { SearchcraftSpinnerDark as S, defineCustomElement as d };
|
|
33
33
|
|
|
34
|
-
//# sourceMappingURL=p-
|
|
34
|
+
//# sourceMappingURL=p-d6616aa5.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"p-
|
|
1
|
+
{"file":"p-d6616aa5.js","mappings":";;AAAA,MAAM,+BAA+B,GAAG,sqBAAsqB,CAAC;AAC/sB,qCAAe,+BAA+B;;MCMjC,sBAAsB;;;;;;IACjC,MAAM;QACJ,QACE,4DAAK,KAAK,EAAC,kBAAkB,IAC3B,4DAAK,KAAK,EAAC,aAAa,GAAG,CACvB,EACN;KACH;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/searchcraft-spinner-dark/searchcraft-spinner-dark.module.scss?tag=searchcraft-spinner-dark&encapsulation=shadow","src/components/searchcraft-spinner-dark/searchcraft-spinner-dark.tsx"],"sourcesContent":["$spinner-size: 20px;\n\n.spinnerContainer {\n background-color: transparent;\n height: $spinner-size;\n width: $spinner-size;\n}\n\n.spinnerDark {\n height: 100%;\n width: 100%;\n background: conic-gradient(#000 50%, #FFFFFF);\n clip-path: circle(50%);\n mask-image: radial-gradient(circle at center, rgba(0,0,0,0) calc($spinner-size/3), rgba(0,0,0,1) calc($spinner-size/3));\n animation: spinning 1s linear infinite;\n}\n\n.spinnerLight {\n height: 100%;\n width: 100%;\n background: conic-gradient(#737373 50%, #FFFFFF);\n clip-path: circle(50%);\n mask-image: radial-gradient(circle at center, rgba(0,0,0,0) calc($spinner-size/3), rgba(0,0,0,1) calc($spinner-size/3));\n animation: spinning 1s linear infinite;\n}\n\n@keyframes spinning {\n 0% { transform: rotate(0deg); }\n 50% {transform: rotate(180deg);}\n 100% { transform: rotate(360deg); }\n}","import { Component, h } from '@stencil/core';\n\n@Component({\n tag: 'searchcraft-spinner-dark',\n styleUrl: 'searchcraft-spinner-dark.module.scss',\n shadow: true,\n})\nexport class SearchcraftSpinnerDark {\n render() {\n return (\n <div class='spinnerContainer'>\n <div class='spinnerDark' />\n </div>\n );\n }\n}\n"],"version":3}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, c as createEvent, h } from './p-
|
|
2
|
-
import { u as useSearchcraftStore, g } from './p-
|
|
3
|
-
import { p as parseCustomStyles } from './p-
|
|
4
|
-
import { d as defineCustomElement$b } from './p-
|
|
5
|
-
import { d as defineCustomElement$a } from './p-
|
|
6
|
-
import { d as defineCustomElement$9 } from './p-
|
|
7
|
-
import { d as defineCustomElement$8 } from './p-
|
|
8
|
-
import { d as defineCustomElement$7 } from './p-
|
|
9
|
-
import { d as defineCustomElement$6 } from './p-
|
|
10
|
-
import { d as defineCustomElement$5 } from './p-
|
|
11
|
-
import { d as defineCustomElement$4 } from './p-
|
|
12
|
-
import { d as defineCustomElement$3 } from './p-
|
|
13
|
-
import { d as defineCustomElement$2 } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, c as createEvent, h } from './p-066c8210.js';
|
|
2
|
+
import { u as useSearchcraftStore, g } from './p-36c95064.js';
|
|
3
|
+
import { p as parseCustomStyles } from './p-5e3152c4.js';
|
|
4
|
+
import { d as defineCustomElement$b } from './p-d446eda4.js';
|
|
5
|
+
import { d as defineCustomElement$a } from './p-b1ff2296.js';
|
|
6
|
+
import { d as defineCustomElement$9 } from './p-6f2a72d3.js';
|
|
7
|
+
import { d as defineCustomElement$8 } from './p-1bd04bac.js';
|
|
8
|
+
import { d as defineCustomElement$7 } from './p-cb75ba7a.js';
|
|
9
|
+
import { d as defineCustomElement$6 } from './p-63035c6a.js';
|
|
10
|
+
import { d as defineCustomElement$5 } from './p-d54bca75.js';
|
|
11
|
+
import { d as defineCustomElement$4 } from './p-d0edf961.js';
|
|
12
|
+
import { d as defineCustomElement$3 } from './p-d6616aa5.js';
|
|
13
|
+
import { d as defineCustomElement$2 } from './p-8d9551ce.js';
|
|
14
14
|
|
|
15
15
|
const searchcraftAutoSearchFormModuleCss = ":root{--font-stack:Helvetica, Arial, sans-serif}.formLTR{text-align:left;width:100%}.formRTL{text-align:right;width:100%}.searchContainer{align-items:center;display:flex;width:100%}";
|
|
16
16
|
const SearchcraftAutoSearchFormStyle0 = searchcraftAutoSearchFormModuleCss;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, c as createEvent, h } from './p-
|
|
2
|
-
import { u as useSearchcraftStore, a as useThemeStore, g } from './p-
|
|
3
|
-
import { d as defineCustomElement$c } from './p-
|
|
4
|
-
import { d as defineCustomElement$b } from './p-
|
|
5
|
-
import { d as defineCustomElement$a } from './p-
|
|
6
|
-
import { d as defineCustomElement$9 } from './p-
|
|
7
|
-
import { d as defineCustomElement$8 } from './p-
|
|
8
|
-
import { d as defineCustomElement$7 } from './p-
|
|
9
|
-
import { d as defineCustomElement$6 } from './p-
|
|
10
|
-
import { d as defineCustomElement$5 } from './p-
|
|
11
|
-
import { d as defineCustomElement$4 } from './p-
|
|
12
|
-
import { d as defineCustomElement$3 } from './p-
|
|
13
|
-
import { d as defineCustomElement$2 } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, c as createEvent, h } from './p-066c8210.js';
|
|
2
|
+
import { u as useSearchcraftStore, a as useThemeStore, g } from './p-36c95064.js';
|
|
3
|
+
import { d as defineCustomElement$c } from './p-c3838435.js';
|
|
4
|
+
import { d as defineCustomElement$b } from './p-d446eda4.js';
|
|
5
|
+
import { d as defineCustomElement$a } from './p-b1ff2296.js';
|
|
6
|
+
import { d as defineCustomElement$9 } from './p-6f2a72d3.js';
|
|
7
|
+
import { d as defineCustomElement$8 } from './p-1bd04bac.js';
|
|
8
|
+
import { d as defineCustomElement$7 } from './p-cb75ba7a.js';
|
|
9
|
+
import { d as defineCustomElement$6 } from './p-63035c6a.js';
|
|
10
|
+
import { d as defineCustomElement$5 } from './p-d54bca75.js';
|
|
11
|
+
import { d as defineCustomElement$4 } from './p-d0edf961.js';
|
|
12
|
+
import { d as defineCustomElement$3 } from './p-d6616aa5.js';
|
|
13
|
+
import { d as defineCustomElement$2 } from './p-8d9551ce.js';
|
|
14
14
|
|
|
15
15
|
const searchcraftBaseSearchFormModuleCss = ".formLTR{font-family:Helvetica, Arial, sans-serif;text-align:left}.formRTL{font-family:Helvetica, Arial, sans-serif;text-align:right}.searchContainer{align-items:center;display:flex}";
|
|
16
16
|
const SearchcraftBaseSearchFormStyle0 = searchcraftBaseSearchFormModuleCss;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as SearchcraftBaseSearchResult$1, d as defineCustomElement$1 } from './p-
|
|
1
|
+
import { S as SearchcraftBaseSearchResult$1, d as defineCustomElement$1 } from './p-1912bbbd.js';
|
|
2
2
|
|
|
3
3
|
const SearchcraftBaseSearchResult = SearchcraftBaseSearchResult$1;
|
|
4
4
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, h } from './p-
|
|
2
|
-
import { u as useSearchcraftStore } from './p-
|
|
3
|
-
import {
|
|
4
|
-
import { d as defineCustomElement$
|
|
5
|
-
import { d as defineCustomElement$
|
|
1
|
+
import { p as proxyCustomElement, H, h } from './p-066c8210.js';
|
|
2
|
+
import { u as useSearchcraftStore } from './p-36c95064.js';
|
|
3
|
+
import { a as parseSearchKeys, p as parseCustomStyles, e as extractDynamicProperties } from './p-5e3152c4.js';
|
|
4
|
+
import { d as defineCustomElement$4 } from './p-1912bbbd.js';
|
|
5
|
+
import { d as defineCustomElement$3 } from './p-d446eda4.js';
|
|
6
|
+
import { d as defineCustomElement$2 } from './p-6f2a72d3.js';
|
|
6
7
|
|
|
7
8
|
const searchcraftBaseSearchResultsModuleCss = ":root{--font-stack:Helvetica, Arial, sans-serif}.resultsContainer{display:flex;flex-direction:column;justify-content:center;margin:100px 20px}.resultsContainer>p{align-self:center}.resultsContainer>div{margin-bottom:20px}.resultsContainer>div img{height:300px;width:200px}";
|
|
8
9
|
const SearchcraftBaseSearchResultsStyle0 = searchcraftBaseSearchResultsModuleCss;
|
|
@@ -14,17 +15,22 @@ const SearchcraftBaseSearchResults$1 = /*@__PURE__*/ proxyCustomElement(class Se
|
|
|
14
15
|
this.__attachShadow();
|
|
15
16
|
this.query = '';
|
|
16
17
|
this.searchResults = null;
|
|
18
|
+
this.searchKeys = '';
|
|
19
|
+
this.customStylesForResults = {};
|
|
17
20
|
}
|
|
18
21
|
componentDidLoad() {
|
|
22
|
+
// Initialize searchKeys if not provided
|
|
23
|
+
if (!this.searchKeys || this.searchKeys.length === 0) {
|
|
24
|
+
console.warn('No searchKeys provided; using empty keys array.');
|
|
25
|
+
this.searchKeys = ''; // Ensure it's explicitly set as an empty array
|
|
26
|
+
}
|
|
19
27
|
// Subscribe to state changes
|
|
20
28
|
this.unsubscribe = useSearchcraftStore.subscribe((state) => {
|
|
21
|
-
console.log('Store updated:', state);
|
|
22
29
|
this.searchResults = Object.assign({}, state.searchResults);
|
|
23
30
|
this.query = state.query;
|
|
24
31
|
});
|
|
25
32
|
// Fetch initial state
|
|
26
33
|
const { searchResults, query } = useSearchcraftStore.getState();
|
|
27
|
-
console.log('Initial state:', searchResults, query);
|
|
28
34
|
this.searchResults = searchResults;
|
|
29
35
|
this.query = query;
|
|
30
36
|
}
|
|
@@ -39,15 +45,31 @@ const SearchcraftBaseSearchResults$1 = /*@__PURE__*/ proxyCustomElement(class Se
|
|
|
39
45
|
console.warn('No search results data available');
|
|
40
46
|
return h("div", null, "No results to display.");
|
|
41
47
|
}
|
|
48
|
+
const parsedSearchKeys = parseSearchKeys(this.searchKeys);
|
|
49
|
+
const parsedCustomStyles = parseCustomStyles(this.customStylesForResults);
|
|
42
50
|
return (h("div", { class: 'resultsContainer' }, (_d = (_c = (_b = this.searchResults) === null || _b === void 0 ? void 0 : _b.data) === null || _c === void 0 ? void 0 : _c.hits) === null || _d === void 0 ? void 0 :
|
|
43
51
|
_d.map((document, index) => {
|
|
44
52
|
const { doc: result } = document;
|
|
45
|
-
|
|
53
|
+
const dynamicProperties = extractDynamicProperties(result, parsedSearchKeys);
|
|
54
|
+
// Render the custom element if present, otherwise fallback to default
|
|
55
|
+
const customElement = this.hostElement.querySelector('[slot="result-template"]');
|
|
56
|
+
if (customElement) {
|
|
57
|
+
// Clone the custom element and pass data to it
|
|
58
|
+
const customElementClone = customElement.cloneNode(true);
|
|
59
|
+
customElementClone.removeAttribute('slot'); // Remove the slot attribute
|
|
60
|
+
customElementClone.setAttribute('data-result', JSON.stringify(result));
|
|
61
|
+
return (h("div", { key: `${dynamicProperties.id}-${index}` }, customElementClone.outerHTML));
|
|
62
|
+
}
|
|
63
|
+
// Fallback to the default element
|
|
64
|
+
return (h("searchcraft-base-search-result", { key: `${dynamicProperties.id}-${index}`, "button-callback": () => console.log('button callback'), "result-callback": () => console.log('interactive element'), "keydown-callback": () => console.log('keydown'), "is-interactive": true, "heading-text": dynamicProperties[parsedSearchKeys[0]], "subheading-text": dynamicProperties[parsedSearchKeys[1]], "primary-content": dynamicProperties[parsedSearchKeys[2]], "secondary-content": dynamicProperties[parsedSearchKeys[3]], "tertiary-content": dynamicProperties[parsedSearchKeys[4]], "image-source": dynamicProperties[parsedSearchKeys[parsedSearchKeys.length - 1]], customStyles: parsedCustomStyles }));
|
|
46
65
|
}), this.query.length > 0 &&
|
|
47
|
-
((_g = (_f = (_e = this.searchResults) === null || _e === void 0 ? void 0 : _e.data) === null || _f === void 0 ? void 0 : _f.hits) === null || _g === void 0 ? void 0 : _g.length) === 0 && (h("searchcraft-error-message", { "error-message": `No search results found for "${this.query}" query` }))));
|
|
66
|
+
((_g = (_f = (_e = this.searchResults) === null || _e === void 0 ? void 0 : _e.data) === null || _f === void 0 ? void 0 : _f.hits) === null || _g === void 0 ? void 0 : _g.length) === 0 && (h("searchcraft-error-message", { "error-message": `No search results found for "${this.query}" query` })), h("slot", { name: 'result-template' })));
|
|
48
67
|
}
|
|
68
|
+
get hostElement() { return this; }
|
|
49
69
|
static get style() { return SearchcraftBaseSearchResultsStyle0; }
|
|
50
70
|
}, [1, "searchcraft-base-search-results", {
|
|
71
|
+
"searchKeys": [1, "search-keys"],
|
|
72
|
+
"customStylesForResults": [1, "custom-styles-for-results"],
|
|
51
73
|
"query": [32],
|
|
52
74
|
"searchResults": [32]
|
|
53
75
|
}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"searchcraft-base-search-results.js","mappings":"
|
|
1
|
+
{"file":"searchcraft-base-search-results.js","mappings":"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","names":["SearchcraftBaseSearchResults"],"sources":["src/components/searchcraft-base-search-results/searchcraft-base-search-results.module.scss?tag=searchcraft-base-search-results&encapsulation=shadow","src/components/searchcraft-base-search-results/searchcraft-base-search-results.tsx"],"sourcesContent":[":root {\n --font-stack: Helvetica, Arial, sans-serif;\n}\n\n.resultsContainer {\n display: flex;\n flex-direction: column;\n justify-content: center;\n margin: 100px 20px;\n\n & > p {\n align-self: center;\n }\n\n & > div {\n margin-bottom: 20px;\n img {\n height: 300px;\n width: 200px;\n }\n }\n}\n","import { Component, h, Prop, State, Element } from '@stencil/core';\nimport type { SearchcraftResponse } from '@searchcraft/core';\n\nimport { useSearchcraftStore } from '@provider/store';\nimport {\n extractDynamicProperties,\n parseCustomStyles,\n parseSearchKeys,\n} from '@utils/utils';\n\n@Component({\n tag: 'searchcraft-base-search-results',\n styleUrl: 'searchcraft-base-search-results.module.scss',\n shadow: true,\n})\nexport class SearchcraftBaseSearchResults {\n @State() query = '';\n @State() searchResults: SearchcraftResponse | null = null;\n\n /**\n * Array of keys to dynamically extract properties from each document.\n * Must be explicitly set by the parent component.\n */\n @Prop() searchKeys = '';\n\n /**\n * Custom styles to apply to search results.\n * Expected format: JSON string, e.g., '{\"borderRadius\": \"10px\", \"padding\": \"16px\"}'\n */\n @Prop() customStylesForResults: string | Record<string, string> = {};\n\n @Element() hostElement: HTMLElement; // Reference to the host element\n\n private unsubscribe: () => void;\n\n componentDidLoad() {\n // Initialize searchKeys if not provided\n if (!this.searchKeys || this.searchKeys.length === 0) {\n console.warn('No searchKeys provided; using empty keys array.');\n this.searchKeys = ''; // Ensure it's explicitly set as an empty array\n }\n\n // Subscribe to state changes\n this.unsubscribe = useSearchcraftStore.subscribe((state) => {\n this.searchResults = { ...state.searchResults };\n this.query = state.query;\n });\n\n // Fetch initial state\n const { searchResults, query } = useSearchcraftStore.getState();\n this.searchResults = searchResults;\n this.query = query;\n }\n\n disconnectedCallback() {\n if (this.unsubscribe) {\n this.unsubscribe();\n }\n }\n\n render() {\n if (!this.searchResults?.data) {\n console.warn('No search results data available');\n return <div>No results to display.</div>;\n }\n\n const parsedSearchKeys = parseSearchKeys(this.searchKeys);\n const parsedCustomStyles = parseCustomStyles(this.customStylesForResults);\n return (\n <div class='resultsContainer'>\n {this.searchResults?.data?.hits?.map((document, index) => {\n const { doc: result } = document;\n const dynamicProperties = extractDynamicProperties(\n result,\n parsedSearchKeys,\n );\n\n // Render the custom element if present, otherwise fallback to default\n const customElement = this.hostElement.querySelector(\n '[slot=\"result-template\"]',\n );\n if (customElement) {\n // Clone the custom element and pass data to it\n const customElementClone = customElement.cloneNode(\n true,\n ) as HTMLElement;\n customElementClone.removeAttribute('slot'); // Remove the slot attribute\n customElementClone.setAttribute(\n 'data-result',\n JSON.stringify(result),\n );\n return (\n <div key={`${dynamicProperties.id}-${index}`}>\n {customElementClone.outerHTML}\n </div>\n );\n }\n // Fallback to the default element\n return (\n <searchcraft-base-search-result\n key={`${dynamicProperties.id}-${index}`}\n button-callback={() => console.log('button callback')}\n result-callback={() => console.log('interactive element')}\n keydown-callback={() => console.log('keydown')}\n is-interactive={true}\n heading-text={dynamicProperties[parsedSearchKeys[0]]}\n subheading-text={dynamicProperties[parsedSearchKeys[1]]}\n primary-content={dynamicProperties[parsedSearchKeys[2]]}\n secondary-content={dynamicProperties[parsedSearchKeys[3]]}\n tertiary-content={dynamicProperties[parsedSearchKeys[4]]}\n image-source={\n dynamicProperties[parsedSearchKeys[parsedSearchKeys.length - 1]]\n }\n customStyles={parsedCustomStyles}\n />\n );\n })}\n\n {this.query.length > 0 &&\n this.searchResults?.data?.hits?.length === 0 && (\n <searchcraft-error-message\n error-message={`No search results found for \"${this.query}\" query`}\n />\n )}\n\n {/* Slot for custom element */}\n <slot name='result-template' />\n </div>\n );\n }\n}\n"],"version":3}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as SearchcraftButton$1, d as defineCustomElement$1 } from './p-
|
|
1
|
+
import { S as SearchcraftButton$1, d as defineCustomElement$1 } from './p-c3838435.js';
|
|
2
2
|
|
|
3
3
|
const SearchcraftButton = SearchcraftButton$1;
|
|
4
4
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as SearchcraftClearIconSet$1, d as defineCustomElement$1 } from './p-
|
|
1
|
+
import { S as SearchcraftClearIconSet$1, d as defineCustomElement$1 } from './p-d446eda4.js';
|
|
2
2
|
|
|
3
3
|
const SearchcraftClearIconSet = SearchcraftClearIconSet$1;
|
|
4
4
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as SearchcraftClearInputButton$1, d as defineCustomElement$1 } from './p-
|
|
1
|
+
import { S as SearchcraftClearInputButton$1, d as defineCustomElement$1 } from './p-b1ff2296.js';
|
|
2
2
|
|
|
3
3
|
const SearchcraftClearInputButton = SearchcraftClearInputButton$1;
|
|
4
4
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as SearchcraftErrorMessage$1, d as defineCustomElement$1 } from './p-
|
|
1
|
+
import { S as SearchcraftErrorMessage$1, d as defineCustomElement$1 } from './p-6f2a72d3.js';
|
|
2
2
|
|
|
3
3
|
const SearchcraftErrorMessage = SearchcraftErrorMessage$1;
|
|
4
4
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as SearchcraftInputCaption$1, d as defineCustomElement$1 } from './p-
|
|
1
|
+
import { S as SearchcraftInputCaption$1, d as defineCustomElement$1 } from './p-cb75ba7a.js';
|
|
2
2
|
|
|
3
3
|
const SearchcraftInputCaption = SearchcraftInputCaption$1;
|
|
4
4
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as SearchcraftInputIcon$1, d as defineCustomElement$1 } from './p-
|
|
1
|
+
import { S as SearchcraftInputIcon$1, d as defineCustomElement$1 } from './p-63035c6a.js';
|
|
2
2
|
|
|
3
3
|
const SearchcraftInputIcon = SearchcraftInputIcon$1;
|
|
4
4
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as SearchcraftInputLabel$1, d as defineCustomElement$1 } from './p-
|
|
1
|
+
import { S as SearchcraftInputLabel$1, d as defineCustomElement$1 } from './p-d54bca75.js';
|
|
2
2
|
|
|
3
3
|
const SearchcraftInputLabel = SearchcraftInputLabel$1;
|
|
4
4
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as SearchcraftInput$1, d as defineCustomElement$1 } from './p-
|
|
1
|
+
import { S as SearchcraftInput$1, d as defineCustomElement$1 } from './p-1bd04bac.js';
|
|
2
2
|
|
|
3
3
|
const SearchcraftInput = SearchcraftInput$1;
|
|
4
4
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as SearchcraftSearchIconSet$1, d as defineCustomElement$1 } from './p-
|
|
1
|
+
import { S as SearchcraftSearchIconSet$1, d as defineCustomElement$1 } from './p-d0edf961.js';
|
|
2
2
|
|
|
3
3
|
const SearchcraftSearchIconSet = SearchcraftSearchIconSet$1;
|
|
4
4
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as SearchcraftSpinnerDark$1, d as defineCustomElement$1 } from './p-
|
|
1
|
+
import { S as SearchcraftSpinnerDark$1, d as defineCustomElement$1 } from './p-d6616aa5.js';
|
|
2
2
|
|
|
3
3
|
const SearchcraftSpinnerDark = SearchcraftSpinnerDark$1;
|
|
4
4
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as SearchcraftSpinnerLight$1, d as defineCustomElement$1 } from './p-
|
|
1
|
+
import { S as SearchcraftSpinnerLight$1, d as defineCustomElement$1 } from './p-8d9551ce.js';
|
|
2
2
|
|
|
3
3
|
const SearchcraftSpinnerLight = SearchcraftSpinnerLight$1;
|
|
4
4
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const NAMESPACE = 'searchcraft-javascript-sdk';
|
|
2
|
-
const BUILD = /* searchcraft-javascript-sdk */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: false, propString: true, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot:
|
|
2
|
+
const BUILD = /* searchcraft-javascript-sdk */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: false, propString: true, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: false };
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
5
|
Stencil Client Platform v4.22.3 | MIT Licensed | https://stenciljs.com
|
|
@@ -717,7 +717,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
717
717
|
isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
|
|
718
718
|
}
|
|
719
719
|
{
|
|
720
|
-
{
|
|
720
|
+
if (tag === "slot" && !useNativeShadowDom) ; else {
|
|
721
721
|
updateElement(oldVNode, newVNode2, isSvgMode);
|
|
722
722
|
}
|
|
723
723
|
}
|
|
@@ -1237,6 +1237,6 @@ var Fragment = (_, children) => children;
|
|
|
1237
1237
|
// src/runtime/nonce.ts
|
|
1238
1238
|
var setNonce = (nonce) => plt.$nonce$ = nonce;
|
|
1239
1239
|
|
|
1240
|
-
export { Fragment as F, bootstrapLazy as b, createEvent as c, h, promiseResolve as p, registerInstance as r, setNonce as s };
|
|
1240
|
+
export { Fragment as F, bootstrapLazy as b, createEvent as c, getElement as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
|
|
1241
1241
|
|
|
1242
|
-
//# sourceMappingURL=index-
|
|
1242
|
+
//# sourceMappingURL=index-eace3343.js.map
|