@searchcraft/javascript-sdk 0.13.2 → 0.13.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -0
- package/dist/components/defineCustomElements.js +23 -23
- package/dist/components/html.js +1 -1
- package/dist/components/index.d.ts +109 -0
- package/dist/components/index.js +28 -28
- package/dist/components/index2.js +12 -1
- package/dist/components/index2.js.map +1 -1
- package/dist/components/searchcraft-ad.js +1 -1
- package/dist/components/searchcraft-ad2.js +4 -4
- package/dist/components/searchcraft-button.js +1 -1
- package/dist/components/searchcraft-button2.js +2 -2
- package/dist/components/searchcraft-error-message.js +1 -1
- package/dist/components/searchcraft-error-message2.js +1 -1
- package/dist/components/searchcraft-facet-list.js +1 -1
- package/dist/components/searchcraft-facet-list2.js +59 -4
- package/dist/components/searchcraft-facet-list2.js.map +1 -1
- package/dist/components/searchcraft-filter-panel.js +38 -6
- package/dist/components/searchcraft-filter-panel.js.map +1 -1
- package/dist/components/searchcraft-input-form.js +1 -1
- package/dist/components/searchcraft-input-form2.js +6 -6
- package/dist/components/searchcraft-input-label.js +1 -1
- package/dist/components/searchcraft-input-label2.js +2 -2
- package/dist/components/searchcraft-loading.js +1 -1
- package/dist/components/searchcraft-loading2.js +1 -1
- package/dist/components/searchcraft-pagination.js +49 -4
- package/dist/components/searchcraft-pagination.js.map +1 -1
- package/dist/components/searchcraft-popover-button.js +3 -3
- package/dist/components/searchcraft-popover-footer.js +1 -1
- package/dist/components/searchcraft-popover-footer2.js +3 -3
- package/dist/components/searchcraft-popover-form.js +11 -11
- package/dist/components/searchcraft-popover-list-item.js +1 -1
- package/dist/components/searchcraft-popover-list-item2.js +3 -3
- package/dist/components/searchcraft-popover-list-view.js +1 -1
- package/dist/components/searchcraft-popover-list-view2.js +4 -4
- package/dist/components/searchcraft-results-info.js +4 -4
- package/dist/components/searchcraft-search-result.js +1 -1
- package/dist/components/searchcraft-search-result2.js +3 -3
- package/dist/components/searchcraft-search-results-per-page.js +3 -3
- package/dist/components/searchcraft-search-results.js +5 -5
- package/dist/components/searchcraft-select.js +1 -1
- package/dist/components/searchcraft-select2.js +1 -1
- package/dist/components/searchcraft-slider.js +1 -1
- package/dist/components/searchcraft-slider2.js +3 -3
- package/dist/components/searchcraft-summary-box.js +4 -4
- package/dist/components/searchcraft-theme.js +2 -2
- package/dist/components/searchcraft-theme.js.map +1 -1
- package/dist/components/searchcraft-toggle-button.js +1 -1
- package/dist/components/searchcraft-toggle-button2.js +3 -3
- package/dist/hydrate/index.js +168 -5
- package/dist/hydrate/index.mjs +168 -5
- package/dist/themes/hologram.css +1 -1
- package/dist/themes/hologram.css.map +1 -1
- package/dist/types/components/searchcraft-facet-list/searchcraft-facet-list.d.ts +47 -0
- package/dist/types/components/searchcraft-pagination/searchcraft-pagination.d.ts +9 -0
- package/dist/types/components.d.ts +96 -0
- package/dist/types/types/sdk-types/searchcraft-filter-panel.types.d.ts +13 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -123,6 +123,11 @@ export const filterPanelItems = [
|
|
|
123
123
|
type: 'facets',
|
|
124
124
|
fieldName: 'section',
|
|
125
125
|
label: 'Filter by Section',
|
|
126
|
+
options: {
|
|
127
|
+
showSublevel: false,
|
|
128
|
+
initialCollapseState: 'open', // 'open' or 'closed' - controls if section starts expanded or collapsed
|
|
129
|
+
viewMoreThreshold: 8, // Number of facets to show before "view more" link appears (0 = show all)
|
|
130
|
+
},
|
|
126
131
|
},
|
|
127
132
|
];
|
|
128
133
|
```
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { defineCustomElement as define_searchcraft_ad } from './searchcraft-ad.js?v=0.13.
|
|
2
|
-
import { defineCustomElement as define_searchcraft_button } from './searchcraft-button.js?v=0.13.
|
|
3
|
-
import { defineCustomElement as define_searchcraft_error_message } from './searchcraft-error-message.js?v=0.13.
|
|
4
|
-
import { defineCustomElement as define_searchcraft_facet_list } from './searchcraft-facet-list.js?v=0.13.
|
|
5
|
-
import { defineCustomElement as define_searchcraft_filter_panel } from './searchcraft-filter-panel.js?v=0.13.
|
|
6
|
-
import { defineCustomElement as define_searchcraft_input_form } from './searchcraft-input-form.js?v=0.13.
|
|
7
|
-
import { defineCustomElement as define_searchcraft_input_label } from './searchcraft-input-label.js?v=0.13.
|
|
8
|
-
import { defineCustomElement as define_searchcraft_loading } from './searchcraft-loading.js?v=0.13.
|
|
9
|
-
import { defineCustomElement as define_searchcraft_pagination } from './searchcraft-pagination.js?v=0.13.
|
|
10
|
-
import { defineCustomElement as define_searchcraft_popover_button } from './searchcraft-popover-button.js?v=0.13.
|
|
11
|
-
import { defineCustomElement as define_searchcraft_popover_footer } from './searchcraft-popover-footer.js?v=0.13.
|
|
12
|
-
import { defineCustomElement as define_searchcraft_popover_form } from './searchcraft-popover-form.js?v=0.13.
|
|
13
|
-
import { defineCustomElement as define_searchcraft_popover_list_item } from './searchcraft-popover-list-item.js?v=0.13.
|
|
14
|
-
import { defineCustomElement as define_searchcraft_popover_list_view } from './searchcraft-popover-list-view.js?v=0.13.
|
|
15
|
-
import { defineCustomElement as define_searchcraft_results_info } from './searchcraft-results-info.js?v=0.13.
|
|
16
|
-
import { defineCustomElement as define_searchcraft_search_result } from './searchcraft-search-result.js?v=0.13.
|
|
17
|
-
import { defineCustomElement as define_searchcraft_search_results_per_page } from './searchcraft-search-results-per-page.js?v=0.13.
|
|
18
|
-
import { defineCustomElement as define_searchcraft_search_results } from './searchcraft-search-results.js?v=0.13.
|
|
19
|
-
import { defineCustomElement as define_searchcraft_select } from './searchcraft-select.js?v=0.13.
|
|
20
|
-
import { defineCustomElement as define_searchcraft_slider } from './searchcraft-slider.js?v=0.13.
|
|
21
|
-
import { defineCustomElement as define_searchcraft_summary_box } from './searchcraft-summary-box.js?v=0.13.
|
|
22
|
-
import { defineCustomElement as define_searchcraft_theme } from './searchcraft-theme.js?v=0.13.
|
|
23
|
-
import { defineCustomElement as define_searchcraft_toggle_button } from './searchcraft-toggle-button.js?v=0.13.
|
|
1
|
+
import { defineCustomElement as define_searchcraft_ad } from './searchcraft-ad.js?v=0.13.3';
|
|
2
|
+
import { defineCustomElement as define_searchcraft_button } from './searchcraft-button.js?v=0.13.3';
|
|
3
|
+
import { defineCustomElement as define_searchcraft_error_message } from './searchcraft-error-message.js?v=0.13.3';
|
|
4
|
+
import { defineCustomElement as define_searchcraft_facet_list } from './searchcraft-facet-list.js?v=0.13.3';
|
|
5
|
+
import { defineCustomElement as define_searchcraft_filter_panel } from './searchcraft-filter-panel.js?v=0.13.3';
|
|
6
|
+
import { defineCustomElement as define_searchcraft_input_form } from './searchcraft-input-form.js?v=0.13.3';
|
|
7
|
+
import { defineCustomElement as define_searchcraft_input_label } from './searchcraft-input-label.js?v=0.13.3';
|
|
8
|
+
import { defineCustomElement as define_searchcraft_loading } from './searchcraft-loading.js?v=0.13.3';
|
|
9
|
+
import { defineCustomElement as define_searchcraft_pagination } from './searchcraft-pagination.js?v=0.13.3';
|
|
10
|
+
import { defineCustomElement as define_searchcraft_popover_button } from './searchcraft-popover-button.js?v=0.13.3';
|
|
11
|
+
import { defineCustomElement as define_searchcraft_popover_footer } from './searchcraft-popover-footer.js?v=0.13.3';
|
|
12
|
+
import { defineCustomElement as define_searchcraft_popover_form } from './searchcraft-popover-form.js?v=0.13.3';
|
|
13
|
+
import { defineCustomElement as define_searchcraft_popover_list_item } from './searchcraft-popover-list-item.js?v=0.13.3';
|
|
14
|
+
import { defineCustomElement as define_searchcraft_popover_list_view } from './searchcraft-popover-list-view.js?v=0.13.3';
|
|
15
|
+
import { defineCustomElement as define_searchcraft_results_info } from './searchcraft-results-info.js?v=0.13.3';
|
|
16
|
+
import { defineCustomElement as define_searchcraft_search_result } from './searchcraft-search-result.js?v=0.13.3';
|
|
17
|
+
import { defineCustomElement as define_searchcraft_search_results_per_page } from './searchcraft-search-results-per-page.js?v=0.13.3';
|
|
18
|
+
import { defineCustomElement as define_searchcraft_search_results } from './searchcraft-search-results.js?v=0.13.3';
|
|
19
|
+
import { defineCustomElement as define_searchcraft_select } from './searchcraft-select.js?v=0.13.3';
|
|
20
|
+
import { defineCustomElement as define_searchcraft_slider } from './searchcraft-slider.js?v=0.13.3';
|
|
21
|
+
import { defineCustomElement as define_searchcraft_summary_box } from './searchcraft-summary-box.js?v=0.13.3';
|
|
22
|
+
import { defineCustomElement as define_searchcraft_theme } from './searchcraft-theme.js?v=0.13.3';
|
|
23
|
+
import { defineCustomElement as define_searchcraft_toggle_button } from './searchcraft-toggle-button.js?v=0.13.3';
|
|
24
24
|
|
|
25
25
|
export const defineCustomElements = () => {
|
|
26
26
|
define_searchcraft_ad();
|
package/dist/components/html.js
CHANGED
|
@@ -184,6 +184,19 @@ export interface FacetsFilterItem extends FilterItem {
|
|
|
184
184
|
options: {
|
|
185
185
|
showSublevel: boolean;
|
|
186
186
|
exclude?: string[];
|
|
187
|
+
/**
|
|
188
|
+
* Initial collapse state of the facet section.
|
|
189
|
+
* - 'open': Section is expanded by default
|
|
190
|
+
* - 'closed': Section is collapsed by default
|
|
191
|
+
* @default 'open'
|
|
192
|
+
*/
|
|
193
|
+
initialCollapseState?: "open" | "closed";
|
|
194
|
+
/**
|
|
195
|
+
* The number of facets to show before displaying a "view more" link.
|
|
196
|
+
* Set to 0 to show all facets without a "view more" link.
|
|
197
|
+
* @default 8
|
|
198
|
+
*/
|
|
199
|
+
viewMoreThreshold?: number;
|
|
187
200
|
};
|
|
188
201
|
}
|
|
189
202
|
export interface NumericFilterItem extends FilterItem {
|
|
@@ -837,7 +850,19 @@ export namespace Components {
|
|
|
837
850
|
* It is consumed within the `searchcraft-filter-panel`.
|
|
838
851
|
* @js-example ```html
|
|
839
852
|
* <!-- index.html -->
|
|
853
|
+
* <!-- Basic usage -->
|
|
840
854
|
* <searchcraft-facet-list field-name="title" />
|
|
855
|
+
* <!-- With collapsible section (initially closed) and view more threshold -->
|
|
856
|
+
* <searchcraft-facet-list
|
|
857
|
+
* field-name="category"
|
|
858
|
+
* initial-collapse-state="closed"
|
|
859
|
+
* view-more-threshold="5"
|
|
860
|
+
* />
|
|
861
|
+
* <!-- Show all facets without "view more" link -->
|
|
862
|
+
* <searchcraft-facet-list
|
|
863
|
+
* field-name="brand"
|
|
864
|
+
* view-more-threshold="0"
|
|
865
|
+
* />
|
|
841
866
|
* ```
|
|
842
867
|
* ```js
|
|
843
868
|
* // index.js
|
|
@@ -845,6 +870,8 @@ export namespace Components {
|
|
|
845
870
|
* facetList.addEventListener('facetSelectionUpdated', () => {
|
|
846
871
|
* console.log('Facet selection updated');
|
|
847
872
|
* });
|
|
873
|
+
* // Programmatically toggle collapse state
|
|
874
|
+
* await facetList.handleCollapseToggle();
|
|
848
875
|
* ```
|
|
849
876
|
*/
|
|
850
877
|
interface SearchcraftFacetList {
|
|
@@ -857,10 +884,30 @@ export namespace Components {
|
|
|
857
884
|
* @default ''
|
|
858
885
|
*/
|
|
859
886
|
"fieldName": string;
|
|
887
|
+
/**
|
|
888
|
+
* Returns whether the facet section is currently collapsed.
|
|
889
|
+
* @returns A promise that resolves to true if collapsed, false if expanded.
|
|
890
|
+
*/
|
|
891
|
+
"getIsCollapsed": () => Promise<boolean>;
|
|
892
|
+
/**
|
|
893
|
+
* Toggles the collapsed state of the facet section.
|
|
894
|
+
* @returns A promise that resolves when the toggle is complete.
|
|
895
|
+
*/
|
|
896
|
+
"handleCollapseToggle": () => Promise<void>;
|
|
897
|
+
/**
|
|
898
|
+
* Initial collapse state of the facet section.
|
|
899
|
+
* @default 'open'
|
|
900
|
+
*/
|
|
901
|
+
"initialCollapseState"?: "open" | "closed";
|
|
860
902
|
/**
|
|
861
903
|
* The id of the Searchcraft instance that this component should use.
|
|
862
904
|
*/
|
|
863
905
|
"searchcraftId"?: string;
|
|
906
|
+
/**
|
|
907
|
+
* The number of facets to show before displaying a "view more" link. Set to 0 to show all facets without a "view more" link.
|
|
908
|
+
* @default 8
|
|
909
|
+
*/
|
|
910
|
+
"viewMoreThreshold"?: number;
|
|
864
911
|
}
|
|
865
912
|
/**
|
|
866
913
|
* This web component represents a series of filters that allows users to refine and control their search queries by applying various filter criteria.
|
|
@@ -1007,6 +1054,11 @@ export namespace Components {
|
|
|
1007
1054
|
* ```
|
|
1008
1055
|
*/
|
|
1009
1056
|
interface SearchcraftPagination {
|
|
1057
|
+
/**
|
|
1058
|
+
* Whether to scroll to the top of the search results when pagination buttons are clicked.
|
|
1059
|
+
* @default true
|
|
1060
|
+
*/
|
|
1061
|
+
"scrollToTop"?: boolean;
|
|
1010
1062
|
/**
|
|
1011
1063
|
* The id of the Searchcraft instance that this component should use.
|
|
1012
1064
|
*/
|
|
@@ -1542,7 +1594,19 @@ declare global {
|
|
|
1542
1594
|
* It is consumed within the `searchcraft-filter-panel`.
|
|
1543
1595
|
* @js-example ```html
|
|
1544
1596
|
* <!-- index.html -->
|
|
1597
|
+
* <!-- Basic usage -->
|
|
1545
1598
|
* <searchcraft-facet-list field-name="title" />
|
|
1599
|
+
* <!-- With collapsible section (initially closed) and view more threshold -->
|
|
1600
|
+
* <searchcraft-facet-list
|
|
1601
|
+
* field-name="category"
|
|
1602
|
+
* initial-collapse-state="closed"
|
|
1603
|
+
* view-more-threshold="5"
|
|
1604
|
+
* />
|
|
1605
|
+
* <!-- Show all facets without "view more" link -->
|
|
1606
|
+
* <searchcraft-facet-list
|
|
1607
|
+
* field-name="brand"
|
|
1608
|
+
* view-more-threshold="0"
|
|
1609
|
+
* />
|
|
1546
1610
|
* ```
|
|
1547
1611
|
* ```js
|
|
1548
1612
|
* // index.js
|
|
@@ -1550,6 +1614,8 @@ declare global {
|
|
|
1550
1614
|
* facetList.addEventListener('facetSelectionUpdated', () => {
|
|
1551
1615
|
* console.log('Facet selection updated');
|
|
1552
1616
|
* });
|
|
1617
|
+
* // Programmatically toggle collapse state
|
|
1618
|
+
* await facetList.handleCollapseToggle();
|
|
1553
1619
|
* ```
|
|
1554
1620
|
*/
|
|
1555
1621
|
interface HTMLSearchcraftFacetListElement extends Components.SearchcraftFacetList, HTMLStencilElement {
|
|
@@ -2133,7 +2199,19 @@ declare namespace LocalJSX {
|
|
|
2133
2199
|
* It is consumed within the `searchcraft-filter-panel`.
|
|
2134
2200
|
* @js-example ```html
|
|
2135
2201
|
* <!-- index.html -->
|
|
2202
|
+
* <!-- Basic usage -->
|
|
2136
2203
|
* <searchcraft-facet-list field-name="title" />
|
|
2204
|
+
* <!-- With collapsible section (initially closed) and view more threshold -->
|
|
2205
|
+
* <searchcraft-facet-list
|
|
2206
|
+
* field-name="category"
|
|
2207
|
+
* initial-collapse-state="closed"
|
|
2208
|
+
* view-more-threshold="5"
|
|
2209
|
+
* />
|
|
2210
|
+
* <!-- Show all facets without "view more" link -->
|
|
2211
|
+
* <searchcraft-facet-list
|
|
2212
|
+
* field-name="brand"
|
|
2213
|
+
* view-more-threshold="0"
|
|
2214
|
+
* />
|
|
2137
2215
|
* ```
|
|
2138
2216
|
* ```js
|
|
2139
2217
|
* // index.js
|
|
@@ -2141,6 +2219,8 @@ declare namespace LocalJSX {
|
|
|
2141
2219
|
* facetList.addEventListener('facetSelectionUpdated', () => {
|
|
2142
2220
|
* console.log('Facet selection updated');
|
|
2143
2221
|
* });
|
|
2222
|
+
* // Programmatically toggle collapse state
|
|
2223
|
+
* await facetList.handleCollapseToggle();
|
|
2144
2224
|
* ```
|
|
2145
2225
|
*/
|
|
2146
2226
|
interface SearchcraftFacetList {
|
|
@@ -2153,6 +2233,11 @@ declare namespace LocalJSX {
|
|
|
2153
2233
|
* @default ''
|
|
2154
2234
|
*/
|
|
2155
2235
|
"fieldName"?: string;
|
|
2236
|
+
/**
|
|
2237
|
+
* Initial collapse state of the facet section.
|
|
2238
|
+
* @default 'open'
|
|
2239
|
+
*/
|
|
2240
|
+
"initialCollapseState"?: "open" | "closed";
|
|
2156
2241
|
/**
|
|
2157
2242
|
* Emitted when the facets are updated.
|
|
2158
2243
|
*/
|
|
@@ -2163,6 +2248,11 @@ declare namespace LocalJSX {
|
|
|
2163
2248
|
* The id of the Searchcraft instance that this component should use.
|
|
2164
2249
|
*/
|
|
2165
2250
|
"searchcraftId"?: string;
|
|
2251
|
+
/**
|
|
2252
|
+
* The number of facets to show before displaying a "view more" link. Set to 0 to show all facets without a "view more" link.
|
|
2253
|
+
* @default 8
|
|
2254
|
+
*/
|
|
2255
|
+
"viewMoreThreshold"?: number;
|
|
2166
2256
|
}
|
|
2167
2257
|
/**
|
|
2168
2258
|
* This web component represents a series of filters that allows users to refine and control their search queries by applying various filter criteria.
|
|
@@ -2321,6 +2411,11 @@ declare namespace LocalJSX {
|
|
|
2321
2411
|
* ```
|
|
2322
2412
|
*/
|
|
2323
2413
|
interface SearchcraftPagination {
|
|
2414
|
+
/**
|
|
2415
|
+
* Whether to scroll to the top of the search results when pagination buttons are clicked.
|
|
2416
|
+
* @default true
|
|
2417
|
+
*/
|
|
2418
|
+
"scrollToTop"?: boolean;
|
|
2324
2419
|
/**
|
|
2325
2420
|
* The id of the Searchcraft instance that this component should use.
|
|
2326
2421
|
*/
|
|
@@ -2840,7 +2935,19 @@ declare module "@stencil/core" {
|
|
|
2840
2935
|
* It is consumed within the `searchcraft-filter-panel`.
|
|
2841
2936
|
* @js-example ```html
|
|
2842
2937
|
* <!-- index.html -->
|
|
2938
|
+
* <!-- Basic usage -->
|
|
2843
2939
|
* <searchcraft-facet-list field-name="title" />
|
|
2940
|
+
* <!-- With collapsible section (initially closed) and view more threshold -->
|
|
2941
|
+
* <searchcraft-facet-list
|
|
2942
|
+
* field-name="category"
|
|
2943
|
+
* initial-collapse-state="closed"
|
|
2944
|
+
* view-more-threshold="5"
|
|
2945
|
+
* />
|
|
2946
|
+
* <!-- Show all facets without "view more" link -->
|
|
2947
|
+
* <searchcraft-facet-list
|
|
2948
|
+
* field-name="brand"
|
|
2949
|
+
* view-more-threshold="0"
|
|
2950
|
+
* />
|
|
2844
2951
|
* ```
|
|
2845
2952
|
* ```js
|
|
2846
2953
|
* // index.js
|
|
@@ -2848,6 +2955,8 @@ declare module "@stencil/core" {
|
|
|
2848
2955
|
* facetList.addEventListener('facetSelectionUpdated', () => {
|
|
2849
2956
|
* console.log('Facet selection updated');
|
|
2850
2957
|
* });
|
|
2958
|
+
* // Programmatically toggle collapse state
|
|
2959
|
+
* await facetList.handleCollapseToggle();
|
|
2851
2960
|
* ```
|
|
2852
2961
|
*/
|
|
2853
2962
|
"searchcraft-facet-list": LocalJSX.SearchcraftFacetList & JSXBase.HTMLAttributes<HTMLSearchcraftFacetListElement>;
|
package/dist/components/index.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
export { g as getAssetPath, r as render, s as setAssetPath, a as setNonce, b as setPlatformOptions } from './index2.js?v=0.13.
|
|
2
|
-
import { n as nanoid } from './searchcraft-ad2.js?v=0.13.
|
|
3
|
-
import { D as DEFAULT_CORE_INSTANCE_ID, r as registry } from './CoreInstanceRegistry.js?v=0.13.
|
|
4
|
-
export { SearchcraftAd, defineCustomElement as defineCustomElementSearchcraftAd } from './searchcraft-ad.js?v=0.13.
|
|
5
|
-
export { SearchcraftButton, defineCustomElement as defineCustomElementSearchcraftButton } from './searchcraft-button.js?v=0.13.
|
|
6
|
-
export { SearchcraftErrorMessage, defineCustomElement as defineCustomElementSearchcraftErrorMessage } from './searchcraft-error-message.js?v=0.13.
|
|
7
|
-
export { SearchcraftFacetList, defineCustomElement as defineCustomElementSearchcraftFacetList } from './searchcraft-facet-list.js?v=0.13.
|
|
8
|
-
export { SearchcraftFilterPanel, defineCustomElement as defineCustomElementSearchcraftFilterPanel } from './searchcraft-filter-panel.js?v=0.13.
|
|
9
|
-
export { SearchcraftInputForm, defineCustomElement as defineCustomElementSearchcraftInputForm } from './searchcraft-input-form.js?v=0.13.
|
|
10
|
-
export { SearchcraftInputLabel, defineCustomElement as defineCustomElementSearchcraftInputLabel } from './searchcraft-input-label.js?v=0.13.
|
|
11
|
-
export { SearchcraftLoading, defineCustomElement as defineCustomElementSearchcraftLoading } from './searchcraft-loading.js?v=0.13.
|
|
12
|
-
export { SearchcraftPagination, defineCustomElement as defineCustomElementSearchcraftPagination } from './searchcraft-pagination.js?v=0.13.
|
|
13
|
-
export { SearchcraftPopoverButton, defineCustomElement as defineCustomElementSearchcraftPopoverButton } from './searchcraft-popover-button.js?v=0.13.
|
|
14
|
-
export { SearchcraftPopoverFooter, defineCustomElement as defineCustomElementSearchcraftPopoverFooter } from './searchcraft-popover-footer.js?v=0.13.
|
|
15
|
-
export { SearchcraftPopoverForm, defineCustomElement as defineCustomElementSearchcraftPopoverForm } from './searchcraft-popover-form.js?v=0.13.
|
|
16
|
-
export { SearchcraftPopoverListItem, defineCustomElement as defineCustomElementSearchcraftPopoverListItem } from './searchcraft-popover-list-item.js?v=0.13.
|
|
17
|
-
export { SearchcraftPopoverListView, defineCustomElement as defineCustomElementSearchcraftPopoverListView } from './searchcraft-popover-list-view.js?v=0.13.
|
|
18
|
-
export { SearchcraftResultsInfo, defineCustomElement as defineCustomElementSearchcraftResultsInfo } from './searchcraft-results-info.js?v=0.13.
|
|
19
|
-
export { SearchcraftSearchResult, defineCustomElement as defineCustomElementSearchcraftSearchResult } from './searchcraft-search-result.js?v=0.13.
|
|
20
|
-
export { SearchcraftSearchResults, defineCustomElement as defineCustomElementSearchcraftSearchResults } from './searchcraft-search-results.js?v=0.13.
|
|
21
|
-
export { SearchcraftSearchResultsPerPage, defineCustomElement as defineCustomElementSearchcraftSearchResultsPerPage } from './searchcraft-search-results-per-page.js?v=0.13.
|
|
22
|
-
export { SearchcraftSelect, defineCustomElement as defineCustomElementSearchcraftSelect } from './searchcraft-select.js?v=0.13.
|
|
23
|
-
export { SearchcraftSlider, defineCustomElement as defineCustomElementSearchcraftSlider } from './searchcraft-slider.js?v=0.13.
|
|
24
|
-
export { SearchcraftSummaryBox, defineCustomElement as defineCustomElementSearchcraftSummaryBox } from './searchcraft-summary-box.js?v=0.13.
|
|
25
|
-
export { SearchcraftTheme, defineCustomElement as defineCustomElementSearchcraftTheme } from './searchcraft-theme.js?v=0.13.
|
|
26
|
-
export { SearchcraftToggleButton, defineCustomElement as defineCustomElementSearchcraftToggleButton } from './searchcraft-toggle-button.js?v=0.13.
|
|
1
|
+
export { g as getAssetPath, r as render, s as setAssetPath, a as setNonce, b as setPlatformOptions } from './index2.js?v=0.13.3';
|
|
2
|
+
import { n as nanoid } from './searchcraft-ad2.js?v=0.13.3';
|
|
3
|
+
import { D as DEFAULT_CORE_INSTANCE_ID, r as registry } from './CoreInstanceRegistry.js?v=0.13.3';
|
|
4
|
+
export { SearchcraftAd, defineCustomElement as defineCustomElementSearchcraftAd } from './searchcraft-ad.js?v=0.13.3';
|
|
5
|
+
export { SearchcraftButton, defineCustomElement as defineCustomElementSearchcraftButton } from './searchcraft-button.js?v=0.13.3';
|
|
6
|
+
export { SearchcraftErrorMessage, defineCustomElement as defineCustomElementSearchcraftErrorMessage } from './searchcraft-error-message.js?v=0.13.3';
|
|
7
|
+
export { SearchcraftFacetList, defineCustomElement as defineCustomElementSearchcraftFacetList } from './searchcraft-facet-list.js?v=0.13.3';
|
|
8
|
+
export { SearchcraftFilterPanel, defineCustomElement as defineCustomElementSearchcraftFilterPanel } from './searchcraft-filter-panel.js?v=0.13.3';
|
|
9
|
+
export { SearchcraftInputForm, defineCustomElement as defineCustomElementSearchcraftInputForm } from './searchcraft-input-form.js?v=0.13.3';
|
|
10
|
+
export { SearchcraftInputLabel, defineCustomElement as defineCustomElementSearchcraftInputLabel } from './searchcraft-input-label.js?v=0.13.3';
|
|
11
|
+
export { SearchcraftLoading, defineCustomElement as defineCustomElementSearchcraftLoading } from './searchcraft-loading.js?v=0.13.3';
|
|
12
|
+
export { SearchcraftPagination, defineCustomElement as defineCustomElementSearchcraftPagination } from './searchcraft-pagination.js?v=0.13.3';
|
|
13
|
+
export { SearchcraftPopoverButton, defineCustomElement as defineCustomElementSearchcraftPopoverButton } from './searchcraft-popover-button.js?v=0.13.3';
|
|
14
|
+
export { SearchcraftPopoverFooter, defineCustomElement as defineCustomElementSearchcraftPopoverFooter } from './searchcraft-popover-footer.js?v=0.13.3';
|
|
15
|
+
export { SearchcraftPopoverForm, defineCustomElement as defineCustomElementSearchcraftPopoverForm } from './searchcraft-popover-form.js?v=0.13.3';
|
|
16
|
+
export { SearchcraftPopoverListItem, defineCustomElement as defineCustomElementSearchcraftPopoverListItem } from './searchcraft-popover-list-item.js?v=0.13.3';
|
|
17
|
+
export { SearchcraftPopoverListView, defineCustomElement as defineCustomElementSearchcraftPopoverListView } from './searchcraft-popover-list-view.js?v=0.13.3';
|
|
18
|
+
export { SearchcraftResultsInfo, defineCustomElement as defineCustomElementSearchcraftResultsInfo } from './searchcraft-results-info.js?v=0.13.3';
|
|
19
|
+
export { SearchcraftSearchResult, defineCustomElement as defineCustomElementSearchcraftSearchResult } from './searchcraft-search-result.js?v=0.13.3';
|
|
20
|
+
export { SearchcraftSearchResults, defineCustomElement as defineCustomElementSearchcraftSearchResults } from './searchcraft-search-results.js?v=0.13.3';
|
|
21
|
+
export { SearchcraftSearchResultsPerPage, defineCustomElement as defineCustomElementSearchcraftSearchResultsPerPage } from './searchcraft-search-results-per-page.js?v=0.13.3';
|
|
22
|
+
export { SearchcraftSelect, defineCustomElement as defineCustomElementSearchcraftSelect } from './searchcraft-select.js?v=0.13.3';
|
|
23
|
+
export { SearchcraftSlider, defineCustomElement as defineCustomElementSearchcraftSlider } from './searchcraft-slider.js?v=0.13.3';
|
|
24
|
+
export { SearchcraftSummaryBox, defineCustomElement as defineCustomElementSearchcraftSummaryBox } from './searchcraft-summary-box.js?v=0.13.3';
|
|
25
|
+
export { SearchcraftTheme, defineCustomElement as defineCustomElementSearchcraftTheme } from './searchcraft-theme.js?v=0.13.3';
|
|
26
|
+
export { SearchcraftToggleButton, defineCustomElement as defineCustomElementSearchcraftToggleButton } from './searchcraft-toggle-button.js?v=0.13.3';
|
|
27
27
|
|
|
28
28
|
var LogLevel;
|
|
29
29
|
(function (LogLevel) {
|
|
@@ -1237,7 +1237,7 @@ class SearchcraftCore {
|
|
|
1237
1237
|
}
|
|
1238
1238
|
|
|
1239
1239
|
const name = "@searchcraft/javascript-sdk";
|
|
1240
|
-
const version = "0.13.
|
|
1240
|
+
const version = "0.13.3";
|
|
1241
1241
|
|
|
1242
1242
|
/**
|
|
1243
1243
|
* @fileoverview entry point for your component library
|
|
@@ -1264,4 +1264,4 @@ export { Searchcraft, SearchcraftCore };
|
|
|
1264
1264
|
//# sourceMappingURL=index.js.map
|
|
1265
1265
|
|
|
1266
1266
|
//# sourceMappingURL=index.js.map
|
|
1267
|
-
export { defineCustomElements } from './defineCustomElements.js?v=0.13.
|
|
1267
|
+
export { defineCustomElements } from './defineCustomElements.js?v=0.13.3';
|
|
@@ -1030,7 +1030,11 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
1030
1030
|
}
|
|
1031
1031
|
}
|
|
1032
1032
|
}
|
|
1033
|
-
} else if (memberName === "key") ; else if (
|
|
1033
|
+
} else if (memberName === "key") ; else if (memberName === "ref") {
|
|
1034
|
+
if (newValue) {
|
|
1035
|
+
newValue(elm);
|
|
1036
|
+
}
|
|
1037
|
+
} else if ((!elm.__lookupSetter__(memberName)) && memberName[0] === "o" && memberName[1] === "n") {
|
|
1034
1038
|
if (memberName[2] === "-") {
|
|
1035
1039
|
memberName = memberName.slice(3);
|
|
1036
1040
|
} else if (isMemberInElement(win, ln)) {
|
|
@@ -1261,6 +1265,7 @@ var removeVnodes = (vnodes, startIdx, endIdx) => {
|
|
|
1261
1265
|
const vnode = vnodes[index];
|
|
1262
1266
|
if (vnode) {
|
|
1263
1267
|
const elm = vnode.$elm$;
|
|
1268
|
+
nullifyVNodeRefs(vnode);
|
|
1264
1269
|
if (elm) {
|
|
1265
1270
|
{
|
|
1266
1271
|
checkSlotFallbackVisibility = true;
|
|
@@ -1473,6 +1478,12 @@ var markSlotContentForRelocation = (elm) => {
|
|
|
1473
1478
|
}
|
|
1474
1479
|
}
|
|
1475
1480
|
};
|
|
1481
|
+
var nullifyVNodeRefs = (vNode) => {
|
|
1482
|
+
{
|
|
1483
|
+
vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
|
|
1484
|
+
vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
|
|
1485
|
+
}
|
|
1486
|
+
};
|
|
1476
1487
|
var insertBefore = (parent, newNode, reference) => {
|
|
1477
1488
|
{
|
|
1478
1489
|
return parent == null ? void 0 : parent.insertBefore(newNode, reference);
|