instantsearch.js 4.64.3 → 4.66.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/cjs/components/Answers/Answers.js +2 -2
- package/cjs/components/Breadcrumb/Breadcrumb.js +4 -4
- package/cjs/components/ClearRefinements/ClearRefinements.js +2 -2
- package/cjs/components/CurrentRefinements/CurrentRefinements.js +2 -2
- package/cjs/components/GeoSearchControls/GeoSearchControls.js +3 -3
- package/cjs/components/Highlight/Highlight.js +5 -5
- package/cjs/components/InfiniteHits/InfiniteHits.js +4 -4
- package/cjs/components/InternalHighlight/InternalHighlight.js +2 -2
- package/cjs/components/MenuSelect/MenuSelect.js +2 -2
- package/cjs/components/Pagination/Pagination.js +3 -3
- package/cjs/components/Panel/Panel.js +2 -2
- package/cjs/components/RangeInput/RangeInput.js +4 -4
- package/cjs/components/RefinementList/RefinementList.js +4 -4
- package/cjs/components/ReverseHighlight/ReverseHighlight.js +5 -5
- package/cjs/components/ReverseSnippet/ReverseSnippet.js +5 -5
- package/cjs/components/Selector/Selector.js +3 -3
- package/cjs/components/Slider/Pit.js +2 -2
- package/cjs/components/Slider/Slider.js +3 -3
- package/cjs/components/Snippet/Snippet.js +5 -5
- package/cjs/components/Stats/Stats.js +2 -2
- package/cjs/components/Template/Template.js +64 -7
- package/cjs/connectors/answers/connectAnswers.js +3 -0
- package/cjs/lib/version.js +1 -1
- package/cjs/widgets/answers/answers.js +11 -8
- package/cjs/widgets/breadcrumb/breadcrumb.js +8 -8
- package/cjs/widgets/clear-refinements/clear-refinements.js +4 -4
- package/cjs/widgets/current-refinements/current-refinements.js +9 -9
- package/cjs/widgets/geo-search/geo-search.js +11 -11
- package/cjs/widgets/hierarchical-menu/defaultTemplates.js +4 -4
- package/cjs/widgets/hierarchical-menu/hierarchical-menu.js +14 -14
- package/cjs/widgets/hits/hits.js +67 -31
- package/cjs/widgets/hits-per-page/hits-per-page.js +4 -4
- package/cjs/widgets/infinite-hits/infinite-hits.js +9 -9
- package/cjs/widgets/menu/defaultTemplates.js +4 -4
- package/cjs/widgets/menu/menu.js +11 -11
- package/cjs/widgets/menu-select/menu-select.js +5 -5
- package/cjs/widgets/numeric-menu/numeric-menu.js +9 -9
- package/cjs/widgets/pagination/pagination.js +13 -13
- package/cjs/widgets/panel/panel.js +10 -10
- package/cjs/widgets/places/places.js +3 -1
- package/cjs/widgets/powered-by/powered-by.js +4 -4
- package/cjs/widgets/query-rule-custom-data/query-rule-custom-data.js +2 -2
- package/cjs/widgets/range-input/range-input.js +10 -10
- package/cjs/widgets/range-slider/range-slider.js +3 -3
- package/cjs/widgets/rating-menu/defaultTemplates.js +6 -6
- package/cjs/widgets/rating-menu/rating-menu.js +13 -13
- package/cjs/widgets/refinement-list/defaultTemplates.js +5 -5
- package/cjs/widgets/refinement-list/refinement-list.js +23 -23
- package/cjs/widgets/relevant-sort/relevant-sort.js +4 -4
- package/cjs/widgets/search-box/search-box.js +10 -10
- package/cjs/widgets/sort-by/sort-by.js +4 -4
- package/cjs/widgets/stats/stats.js +3 -3
- package/cjs/widgets/toggle-refinement/toggle-refinement.js +5 -5
- package/cjs/widgets/voice-search/voice-search.js +4 -4
- package/dist/instantsearch.development.d.ts +11 -27
- package/dist/instantsearch.development.js +463 -390
- package/dist/instantsearch.development.js.map +1 -1
- package/dist/instantsearch.production.d.ts +11 -27
- package/dist/instantsearch.production.min.d.ts +11 -27
- package/dist/instantsearch.production.min.js +2 -2
- package/dist/instantsearch.production.min.js.map +1 -1
- package/es/components/Answers/Answers.js +1 -1
- package/es/components/Breadcrumb/Breadcrumb.js +1 -1
- package/es/components/ClearRefinements/ClearRefinements.js +1 -1
- package/es/components/CurrentRefinements/CurrentRefinements.js +1 -1
- package/es/components/GeoSearchControls/GeoSearchControls.js +1 -1
- package/es/components/Highlight/Highlight.d.ts +1 -1
- package/es/components/Highlight/Highlight.js +1 -1
- package/es/components/InfiniteHits/InfiniteHits.js +1 -1
- package/es/components/InternalHighlight/InternalHighlight.d.ts +1 -1
- package/es/components/InternalHighlight/InternalHighlight.js +1 -1
- package/es/components/MenuSelect/MenuSelect.js +1 -1
- package/es/components/Pagination/Pagination.js +1 -1
- package/es/components/Panel/Panel.js +1 -1
- package/es/components/RangeInput/RangeInput.js +1 -1
- package/es/components/RefinementList/RefinementList.js +1 -1
- package/es/components/ReverseHighlight/ReverseHighlight.d.ts +1 -1
- package/es/components/ReverseHighlight/ReverseHighlight.js +1 -1
- package/es/components/ReverseSnippet/ReverseSnippet.d.ts +1 -1
- package/es/components/ReverseSnippet/ReverseSnippet.js +1 -1
- package/es/components/Selector/Selector.js +1 -1
- package/es/components/Slider/Pit.js +1 -1
- package/es/components/Slider/Slider.js +1 -1
- package/es/components/Snippet/Snippet.d.ts +1 -1
- package/es/components/Snippet/Snippet.js +1 -1
- package/es/components/Stats/Stats.js +1 -1
- package/es/components/Template/Template.d.ts +1 -1
- package/es/components/Template/Template.js +65 -8
- package/es/connectors/answers/connectAnswers.d.ts +3 -0
- package/es/connectors/answers/connectAnswers.js +3 -0
- package/es/connectors/autocomplete/connectAutocomplete.d.ts +4 -0
- package/es/lib/version.d.ts +1 -1
- package/es/lib/version.js +1 -1
- package/es/widgets/answers/answers.d.ts +2 -2
- package/es/widgets/answers/answers.js +6 -3
- package/es/widgets/breadcrumb/breadcrumb.js +1 -1
- package/es/widgets/clear-refinements/clear-refinements.js +1 -1
- package/es/widgets/current-refinements/current-refinements.js +1 -1
- package/es/widgets/geo-search/geo-search.js +1 -1
- package/es/widgets/hierarchical-menu/defaultTemplates.js +1 -1
- package/es/widgets/hierarchical-menu/hierarchical-menu.js +1 -1
- package/es/widgets/hits/defaultTemplates.d.ts +2 -2
- package/es/widgets/hits/hits.d.ts +2 -18
- package/es/widgets/hits/hits.js +67 -31
- package/es/widgets/hits-per-page/hits-per-page.js +1 -1
- package/es/widgets/infinite-hits/infinite-hits.js +1 -1
- package/es/widgets/menu/defaultTemplates.js +1 -1
- package/es/widgets/menu/menu.js +1 -1
- package/es/widgets/menu-select/menu-select.js +1 -1
- package/es/widgets/numeric-menu/numeric-menu.js +1 -1
- package/es/widgets/pagination/pagination.js +1 -1
- package/es/widgets/panel/panel.js +1 -1
- package/es/widgets/places/places.d.ts +2 -6
- package/es/widgets/places/places.js +4 -1
- package/es/widgets/powered-by/powered-by.js +1 -1
- package/es/widgets/query-rule-custom-data/query-rule-custom-data.js +1 -1
- package/es/widgets/range-input/range-input.js +1 -1
- package/es/widgets/range-slider/range-slider.js +1 -1
- package/es/widgets/rating-menu/defaultTemplates.js +1 -1
- package/es/widgets/rating-menu/rating-menu.js +1 -1
- package/es/widgets/refinement-list/defaultTemplates.js +1 -1
- package/es/widgets/refinement-list/refinement-list.js +1 -1
- package/es/widgets/relevant-sort/relevant-sort.js +1 -1
- package/es/widgets/search-box/search-box.js +1 -1
- package/es/widgets/sort-by/sort-by.js +1 -1
- package/es/widgets/stats/stats.js +1 -1
- package/es/widgets/toggle-refinement/toggle-refinement.js +1 -1
- package/es/widgets/voice-search/voice-search.js +1 -1
- package/package.json +12 -11
- package/cjs/components/Hits/Hits.js +0 -72
- package/es/components/Hits/Hits.d.ts +0 -19
- package/es/components/Hits/Hits.js +0 -65
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! InstantSearch.js 4.
|
|
1
|
+
/*! InstantSearch.js 4.66.0 | © Algolia, Inc. and contributors; MIT License | https://github.com/algolia/instantsearch */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(factory) :
|
|
@@ -1825,6 +1825,9 @@
|
|
|
1825
1825
|
name: 'answers',
|
|
1826
1826
|
connector: true
|
|
1827
1827
|
});
|
|
1828
|
+
/**
|
|
1829
|
+
* @deprecated the answers service is no longer offered, and this widget will be removed in InstantSearch.js v5
|
|
1830
|
+
*/
|
|
1828
1831
|
var connectAnswers = function connectAnswers(renderFn) {
|
|
1829
1832
|
var unmountFn = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : noop;
|
|
1830
1833
|
checkRendering(renderFn, withUsage());
|
|
@@ -9702,7 +9705,8 @@
|
|
|
9702
9705
|
* @return {undefined} function mutates the item
|
|
9703
9706
|
*/
|
|
9704
9707
|
function setIsRefined(item, currentRefinement, depth) {
|
|
9705
|
-
item.isRefined =
|
|
9708
|
+
item.isRefined =
|
|
9709
|
+
item.name === (currentRefinement[depth] && currentRefinement[depth].trim());
|
|
9706
9710
|
if (item.data) {
|
|
9707
9711
|
item.data.forEach(function (child) {
|
|
9708
9712
|
setIsRefined(child, currentRefinement, depth + 1);
|
|
@@ -10103,7 +10107,7 @@
|
|
|
10103
10107
|
|
|
10104
10108
|
var SearchResults_1 = SearchResults;
|
|
10105
10109
|
|
|
10106
|
-
var version = '3.16.
|
|
10110
|
+
var version = '3.16.3';
|
|
10107
10111
|
|
|
10108
10112
|
var escapeFacetValue$4 = escapeFacetValue_1.escapeFacetValue;
|
|
10109
10113
|
|
|
@@ -14902,7 +14906,7 @@
|
|
|
14902
14906
|
};
|
|
14903
14907
|
}
|
|
14904
14908
|
|
|
14905
|
-
var version$1 = '4.
|
|
14909
|
+
var version$1 = '4.66.0';
|
|
14906
14910
|
|
|
14907
14911
|
var withUsage$r = createDocumentationMessageGenerator({
|
|
14908
14912
|
name: 'instantsearch'
|
|
@@ -15538,20 +15542,180 @@
|
|
|
15538
15542
|
createMetadataMiddleware: createMetadataMiddleware
|
|
15539
15543
|
});
|
|
15540
15544
|
|
|
15541
|
-
function
|
|
15542
|
-
|
|
15543
|
-
|
|
15545
|
+
function unwrapExports (x) {
|
|
15546
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
15547
|
+
}
|
|
15548
|
+
|
|
15549
|
+
function createCommonjsModule(fn, module) {
|
|
15550
|
+
return module = { exports: {} }, fn(module, module.exports), module.exports;
|
|
15551
|
+
}
|
|
15552
|
+
|
|
15553
|
+
var _extends_1 = createCommonjsModule(function (module) {
|
|
15554
|
+
function _extends() {
|
|
15555
|
+
module.exports = _extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
15556
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
15557
|
+
var source = arguments[i];
|
|
15558
|
+
for (var key in source) {
|
|
15559
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
15560
|
+
target[key] = source[key];
|
|
15561
|
+
}
|
|
15562
|
+
}
|
|
15563
|
+
}
|
|
15564
|
+
return target;
|
|
15565
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
15566
|
+
return _extends.apply(this, arguments);
|
|
15567
|
+
}
|
|
15568
|
+
module.exports = _extends, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
15569
|
+
});
|
|
15570
|
+
|
|
15571
|
+
var _extends$1 = unwrapExports(_extends_1);
|
|
15572
|
+
|
|
15573
|
+
var objectWithoutPropertiesLoose = createCommonjsModule(function (module) {
|
|
15574
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
15575
|
+
if (source == null) return {};
|
|
15576
|
+
var target = {};
|
|
15577
|
+
var sourceKeys = Object.keys(source);
|
|
15578
|
+
var key, i;
|
|
15579
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
15580
|
+
key = sourceKeys[i];
|
|
15581
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
15582
|
+
target[key] = source[key];
|
|
15583
|
+
}
|
|
15584
|
+
return target;
|
|
15585
|
+
}
|
|
15586
|
+
module.exports = _objectWithoutPropertiesLoose, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
15587
|
+
});
|
|
15588
|
+
|
|
15589
|
+
unwrapExports(objectWithoutPropertiesLoose);
|
|
15590
|
+
|
|
15591
|
+
var objectWithoutProperties = createCommonjsModule(function (module) {
|
|
15592
|
+
function _objectWithoutProperties(source, excluded) {
|
|
15593
|
+
if (source == null) return {};
|
|
15594
|
+
var target = objectWithoutPropertiesLoose(source, excluded);
|
|
15595
|
+
var key, i;
|
|
15596
|
+
if (Object.getOwnPropertySymbols) {
|
|
15597
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
15598
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
15599
|
+
key = sourceSymbolKeys[i];
|
|
15600
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
15601
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
15602
|
+
target[key] = source[key];
|
|
15603
|
+
}
|
|
15544
15604
|
}
|
|
15605
|
+
return target;
|
|
15606
|
+
}
|
|
15607
|
+
module.exports = _objectWithoutProperties, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
15608
|
+
});
|
|
15545
15609
|
|
|
15546
|
-
|
|
15610
|
+
var _objectWithoutProperties$1 = unwrapExports(objectWithoutProperties);
|
|
15611
|
+
|
|
15612
|
+
function cx() {
|
|
15613
|
+
for (var _len = arguments.length, classNames = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
15614
|
+
classNames[_key] = arguments[_key];
|
|
15615
|
+
}
|
|
15616
|
+
return classNames.reduce(function (acc, className) {
|
|
15547
15617
|
if (Array.isArray(className)) {
|
|
15548
15618
|
return acc.concat(className);
|
|
15549
15619
|
}
|
|
15550
|
-
|
|
15551
15620
|
return acc.concat([className]);
|
|
15552
15621
|
}, []).filter(Boolean).join(' ');
|
|
15553
15622
|
}
|
|
15554
15623
|
|
|
15624
|
+
var _excluded$9 = ["parts", "highlightedTagName", "nonHighlightedTagName", "separator", "className", "classNames"];
|
|
15625
|
+
function createHighlightPartComponent(_ref) {
|
|
15626
|
+
var createElement = _ref.createElement;
|
|
15627
|
+
return function HighlightPart(_ref2) {
|
|
15628
|
+
var classNames = _ref2.classNames,
|
|
15629
|
+
children = _ref2.children,
|
|
15630
|
+
highlightedTagName = _ref2.highlightedTagName,
|
|
15631
|
+
isHighlighted = _ref2.isHighlighted,
|
|
15632
|
+
nonHighlightedTagName = _ref2.nonHighlightedTagName;
|
|
15633
|
+
var TagName = isHighlighted ? highlightedTagName : nonHighlightedTagName;
|
|
15634
|
+
return createElement(TagName, {
|
|
15635
|
+
className: isHighlighted ? classNames.highlighted : classNames.nonHighlighted
|
|
15636
|
+
}, children);
|
|
15637
|
+
};
|
|
15638
|
+
}
|
|
15639
|
+
function createHighlightComponent(_ref3) {
|
|
15640
|
+
var createElement = _ref3.createElement,
|
|
15641
|
+
Fragment = _ref3.Fragment;
|
|
15642
|
+
var HighlightPart = createHighlightPartComponent({
|
|
15643
|
+
createElement: createElement,
|
|
15644
|
+
Fragment: Fragment
|
|
15645
|
+
});
|
|
15646
|
+
return function Highlight(userProps) {
|
|
15647
|
+
var parts = userProps.parts,
|
|
15648
|
+
_userProps$highlighte = userProps.highlightedTagName,
|
|
15649
|
+
highlightedTagName = _userProps$highlighte === void 0 ? 'mark' : _userProps$highlighte,
|
|
15650
|
+
_userProps$nonHighlig = userProps.nonHighlightedTagName,
|
|
15651
|
+
nonHighlightedTagName = _userProps$nonHighlig === void 0 ? 'span' : _userProps$nonHighlig,
|
|
15652
|
+
_userProps$separator = userProps.separator,
|
|
15653
|
+
separator = _userProps$separator === void 0 ? ', ' : _userProps$separator,
|
|
15654
|
+
className = userProps.className,
|
|
15655
|
+
_userProps$classNames = userProps.classNames,
|
|
15656
|
+
classNames = _userProps$classNames === void 0 ? {} : _userProps$classNames,
|
|
15657
|
+
props = _objectWithoutProperties$1(userProps, _excluded$9);
|
|
15658
|
+
return createElement("span", _extends$1({}, props, {
|
|
15659
|
+
className: cx(classNames.root, className)
|
|
15660
|
+
}), parts.map(function (part, partIndex) {
|
|
15661
|
+
var isLastPart = partIndex === parts.length - 1;
|
|
15662
|
+
return createElement(Fragment, {
|
|
15663
|
+
key: partIndex
|
|
15664
|
+
}, part.map(function (subPart, subPartIndex) {
|
|
15665
|
+
return createElement(HighlightPart, {
|
|
15666
|
+
key: subPartIndex,
|
|
15667
|
+
classNames: classNames,
|
|
15668
|
+
highlightedTagName: highlightedTagName,
|
|
15669
|
+
nonHighlightedTagName: nonHighlightedTagName,
|
|
15670
|
+
isHighlighted: subPart.isHighlighted
|
|
15671
|
+
}, subPart.value);
|
|
15672
|
+
}), !isLastPart && createElement("span", {
|
|
15673
|
+
className: classNames.separator
|
|
15674
|
+
}, separator));
|
|
15675
|
+
}));
|
|
15676
|
+
};
|
|
15677
|
+
}
|
|
15678
|
+
|
|
15679
|
+
var _excluded$a = ["classNames", "hits", "itemComponent", "sendEvent", "emptyComponent"];
|
|
15680
|
+
|
|
15681
|
+
// Should be imported from a shared package in the future
|
|
15682
|
+
|
|
15683
|
+
function createHitsComponent(_ref) {
|
|
15684
|
+
var createElement = _ref.createElement;
|
|
15685
|
+
return function Hits(userProps) {
|
|
15686
|
+
var _userProps$classNames = userProps.classNames,
|
|
15687
|
+
classNames = _userProps$classNames === void 0 ? {} : _userProps$classNames,
|
|
15688
|
+
hits = userProps.hits,
|
|
15689
|
+
ItemComponent = userProps.itemComponent,
|
|
15690
|
+
sendEvent = userProps.sendEvent,
|
|
15691
|
+
EmptyComponent = userProps.emptyComponent,
|
|
15692
|
+
props = _objectWithoutProperties$1(userProps, _excluded$a);
|
|
15693
|
+
if (hits.length === 0 && EmptyComponent) {
|
|
15694
|
+
return createElement(EmptyComponent, {
|
|
15695
|
+
className: cx('ais-Hits', classNames.root, cx('ais-Hits--empty', classNames.emptyRoot), props.className)
|
|
15696
|
+
});
|
|
15697
|
+
}
|
|
15698
|
+
return createElement("div", _extends$1({}, props, {
|
|
15699
|
+
className: cx('ais-Hits', classNames.root, hits.length === 0 && cx('ais-Hits--empty', classNames.emptyRoot), props.className)
|
|
15700
|
+
}), createElement("ol", {
|
|
15701
|
+
className: cx('ais-Hits-list', classNames.list)
|
|
15702
|
+
}, hits.map(function (hit, index) {
|
|
15703
|
+
return createElement(ItemComponent, {
|
|
15704
|
+
key: hit.objectID,
|
|
15705
|
+
hit: hit,
|
|
15706
|
+
index: index,
|
|
15707
|
+
className: cx('ais-Hits-item', classNames.item),
|
|
15708
|
+
onClick: function onClick() {
|
|
15709
|
+
sendEvent('click:internal', hit, 'Hit Clicked');
|
|
15710
|
+
},
|
|
15711
|
+
onAuxClick: function onAuxClick() {
|
|
15712
|
+
sendEvent('click:internal', hit, 'Hit Clicked');
|
|
15713
|
+
}
|
|
15714
|
+
});
|
|
15715
|
+
})));
|
|
15716
|
+
};
|
|
15717
|
+
}
|
|
15718
|
+
|
|
15555
15719
|
function prepareTemplates(
|
|
15556
15720
|
// can not use = {} here, since the template could have different constraints
|
|
15557
15721
|
defaultTemplates) {
|
|
@@ -15585,14 +15749,6 @@
|
|
|
15585
15749
|
}, preparedTemplates);
|
|
15586
15750
|
}
|
|
15587
15751
|
|
|
15588
|
-
function unwrapExports (x) {
|
|
15589
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
15590
|
-
}
|
|
15591
|
-
|
|
15592
|
-
function createCommonjsModule(fn, module) {
|
|
15593
|
-
return module = { exports: {} }, fn(module, module.exports), module.exports;
|
|
15594
|
-
}
|
|
15595
|
-
|
|
15596
15752
|
var compiler = createCommonjsModule(function (module, exports) {
|
|
15597
15753
|
/*
|
|
15598
15754
|
* Copyright 2011 Twitter, Inc.
|
|
@@ -16371,135 +16527,16 @@
|
|
|
16371
16527
|
|
|
16372
16528
|
var m$1=e$1.bind(h);
|
|
16373
16529
|
|
|
16374
|
-
var _extends_1 = createCommonjsModule(function (module) {
|
|
16375
|
-
function _extends() {
|
|
16376
|
-
module.exports = _extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
16377
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
16378
|
-
var source = arguments[i];
|
|
16379
|
-
for (var key in source) {
|
|
16380
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
16381
|
-
target[key] = source[key];
|
|
16382
|
-
}
|
|
16383
|
-
}
|
|
16384
|
-
}
|
|
16385
|
-
return target;
|
|
16386
|
-
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
16387
|
-
return _extends.apply(this, arguments);
|
|
16388
|
-
}
|
|
16389
|
-
module.exports = _extends, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
16390
|
-
});
|
|
16391
|
-
|
|
16392
|
-
var _extends$1 = unwrapExports(_extends_1);
|
|
16393
|
-
|
|
16394
|
-
var objectWithoutPropertiesLoose = createCommonjsModule(function (module) {
|
|
16395
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
16396
|
-
if (source == null) return {};
|
|
16397
|
-
var target = {};
|
|
16398
|
-
var sourceKeys = Object.keys(source);
|
|
16399
|
-
var key, i;
|
|
16400
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
16401
|
-
key = sourceKeys[i];
|
|
16402
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
16403
|
-
target[key] = source[key];
|
|
16404
|
-
}
|
|
16405
|
-
return target;
|
|
16406
|
-
}
|
|
16407
|
-
module.exports = _objectWithoutPropertiesLoose, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
16408
|
-
});
|
|
16409
|
-
|
|
16410
|
-
unwrapExports(objectWithoutPropertiesLoose);
|
|
16411
|
-
|
|
16412
|
-
var objectWithoutProperties = createCommonjsModule(function (module) {
|
|
16413
|
-
function _objectWithoutProperties(source, excluded) {
|
|
16414
|
-
if (source == null) return {};
|
|
16415
|
-
var target = objectWithoutPropertiesLoose(source, excluded);
|
|
16416
|
-
var key, i;
|
|
16417
|
-
if (Object.getOwnPropertySymbols) {
|
|
16418
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
16419
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
16420
|
-
key = sourceSymbolKeys[i];
|
|
16421
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
16422
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
16423
|
-
target[key] = source[key];
|
|
16424
|
-
}
|
|
16425
|
-
}
|
|
16426
|
-
return target;
|
|
16427
|
-
}
|
|
16428
|
-
module.exports = _objectWithoutProperties, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
16429
|
-
});
|
|
16430
|
-
|
|
16431
|
-
var _objectWithoutProperties$1 = unwrapExports(objectWithoutProperties);
|
|
16432
|
-
|
|
16433
|
-
var _excluded$9 = ["parts", "highlightedTagName", "nonHighlightedTagName", "separator", "className", "classNames"];
|
|
16434
|
-
|
|
16435
|
-
function createHighlightPartComponent(_ref) {
|
|
16436
|
-
var createElement = _ref.createElement;
|
|
16437
|
-
return function HighlightPart(_ref2) {
|
|
16438
|
-
var classNames = _ref2.classNames,
|
|
16439
|
-
children = _ref2.children,
|
|
16440
|
-
highlightedTagName = _ref2.highlightedTagName,
|
|
16441
|
-
isHighlighted = _ref2.isHighlighted,
|
|
16442
|
-
nonHighlightedTagName = _ref2.nonHighlightedTagName;
|
|
16443
|
-
var TagName = isHighlighted ? highlightedTagName : nonHighlightedTagName;
|
|
16444
|
-
return createElement(TagName, {
|
|
16445
|
-
className: isHighlighted ? classNames.highlighted : classNames.nonHighlighted
|
|
16446
|
-
}, children);
|
|
16447
|
-
};
|
|
16448
|
-
}
|
|
16449
|
-
|
|
16450
|
-
function createHighlightComponent(_ref3) {
|
|
16451
|
-
var createElement = _ref3.createElement,
|
|
16452
|
-
Fragment = _ref3.Fragment;
|
|
16453
|
-
var HighlightPart = createHighlightPartComponent({
|
|
16454
|
-
createElement: createElement,
|
|
16455
|
-
Fragment: Fragment
|
|
16456
|
-
});
|
|
16457
|
-
return function Highlight(userProps) {
|
|
16458
|
-
// Not destructured in function signature, to make sure it's not exposed in
|
|
16459
|
-
// the type definition.
|
|
16460
|
-
var parts = userProps.parts,
|
|
16461
|
-
_userProps$highlighte = userProps.highlightedTagName,
|
|
16462
|
-
highlightedTagName = _userProps$highlighte === void 0 ? 'mark' : _userProps$highlighte,
|
|
16463
|
-
_userProps$nonHighlig = userProps.nonHighlightedTagName,
|
|
16464
|
-
nonHighlightedTagName = _userProps$nonHighlig === void 0 ? 'span' : _userProps$nonHighlig,
|
|
16465
|
-
_userProps$separator = userProps.separator,
|
|
16466
|
-
separator = _userProps$separator === void 0 ? ', ' : _userProps$separator,
|
|
16467
|
-
className = userProps.className,
|
|
16468
|
-
_userProps$classNames = userProps.classNames,
|
|
16469
|
-
classNames = _userProps$classNames === void 0 ? {} : _userProps$classNames,
|
|
16470
|
-
props = _objectWithoutProperties$1(userProps, _excluded$9);
|
|
16471
|
-
|
|
16472
|
-
return createElement("span", _extends$1({}, props, {
|
|
16473
|
-
className: cx(classNames.root, className)
|
|
16474
|
-
}), parts.map(function (part, partIndex) {
|
|
16475
|
-
var isLastPart = partIndex === parts.length - 1;
|
|
16476
|
-
return createElement(Fragment, {
|
|
16477
|
-
key: partIndex
|
|
16478
|
-
}, part.map(function (subPart, subPartIndex) {
|
|
16479
|
-
return createElement(HighlightPart, {
|
|
16480
|
-
key: subPartIndex,
|
|
16481
|
-
classNames: classNames,
|
|
16482
|
-
highlightedTagName: highlightedTagName,
|
|
16483
|
-
nonHighlightedTagName: nonHighlightedTagName,
|
|
16484
|
-
isHighlighted: subPart.isHighlighted
|
|
16485
|
-
}, subPart.value);
|
|
16486
|
-
}), !isLastPart && createElement("span", {
|
|
16487
|
-
className: classNames.separator
|
|
16488
|
-
}, separator));
|
|
16489
|
-
}));
|
|
16490
|
-
};
|
|
16491
|
-
}
|
|
16492
|
-
|
|
16493
16530
|
var InternalHighlight = createHighlightComponent({
|
|
16494
16531
|
createElement: h,
|
|
16495
16532
|
Fragment: p
|
|
16496
16533
|
});
|
|
16497
16534
|
|
|
16498
|
-
var _excluded$
|
|
16535
|
+
var _excluded$b = ["classNames"];
|
|
16499
16536
|
function Highlight(_ref) {
|
|
16500
16537
|
var _ref$classNames = _ref.classNames,
|
|
16501
16538
|
classNames = _ref$classNames === void 0 ? {} : _ref$classNames,
|
|
16502
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
16539
|
+
props = _objectWithoutProperties(_ref, _excluded$b);
|
|
16503
16540
|
return h(InternalHighlight, _extends({
|
|
16504
16541
|
classNames: {
|
|
16505
16542
|
root: cx('ais-Highlight', classNames.root),
|
|
@@ -16510,12 +16547,12 @@
|
|
|
16510
16547
|
}, props));
|
|
16511
16548
|
}
|
|
16512
16549
|
|
|
16513
|
-
var _excluded$
|
|
16550
|
+
var _excluded$c = ["hit", "attribute", "cssClasses"];
|
|
16514
16551
|
function Highlight$1(_ref) {
|
|
16515
16552
|
var hit = _ref.hit,
|
|
16516
16553
|
attribute = _ref.attribute,
|
|
16517
16554
|
cssClasses = _ref.cssClasses,
|
|
16518
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
16555
|
+
props = _objectWithoutProperties(_ref, _excluded$c);
|
|
16519
16556
|
var property = getPropertyByPath(hit._highlightResult, attribute) || [];
|
|
16520
16557
|
var properties = toArray(property);
|
|
16521
16558
|
_warning(Boolean(properties.length), "Could not enable highlight for \"".concat(attribute.toString(), "\", will display an empty string.\nPlease check whether this attribute exists and is either searchable or specified in `attributesToHighlight`.\n\nSee: https://alg.li/highlighting\n")) ;
|
|
@@ -16529,11 +16566,11 @@
|
|
|
16529
16566
|
}));
|
|
16530
16567
|
}
|
|
16531
16568
|
|
|
16532
|
-
var _excluded$
|
|
16569
|
+
var _excluded$d = ["classNames"];
|
|
16533
16570
|
function ReverseHighlight(_ref) {
|
|
16534
16571
|
var _ref$classNames = _ref.classNames,
|
|
16535
16572
|
classNames = _ref$classNames === void 0 ? {} : _ref$classNames,
|
|
16536
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
16573
|
+
props = _objectWithoutProperties(_ref, _excluded$d);
|
|
16537
16574
|
return h(InternalHighlight, _extends({
|
|
16538
16575
|
classNames: {
|
|
16539
16576
|
root: cx('ais-ReverseHighlight', classNames.root),
|
|
@@ -16544,13 +16581,13 @@
|
|
|
16544
16581
|
}, props));
|
|
16545
16582
|
}
|
|
16546
16583
|
|
|
16547
|
-
var _excluded$
|
|
16584
|
+
var _excluded$e = ["hit", "attribute", "cssClasses"],
|
|
16548
16585
|
_excluded2$2 = ["isHighlighted"];
|
|
16549
16586
|
function ReverseHighlight$1(_ref) {
|
|
16550
16587
|
var hit = _ref.hit,
|
|
16551
16588
|
attribute = _ref.attribute,
|
|
16552
16589
|
cssClasses = _ref.cssClasses,
|
|
16553
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
16590
|
+
props = _objectWithoutProperties(_ref, _excluded$e);
|
|
16554
16591
|
var property = getPropertyByPath(hit._highlightResult, attribute) || [];
|
|
16555
16592
|
var properties = toArray(property);
|
|
16556
16593
|
_warning(Boolean(properties.length), "Could not enable highlight for \"".concat(attribute.toString(), "\", will display an empty string.\nPlease check whether this attribute exists and is either searchable or specified in `attributesToHighlight`.\n\nSee: https://alg.li/highlighting\n")) ;
|
|
@@ -16570,11 +16607,11 @@
|
|
|
16570
16607
|
}));
|
|
16571
16608
|
}
|
|
16572
16609
|
|
|
16573
|
-
var _excluded$
|
|
16610
|
+
var _excluded$f = ["classNames"];
|
|
16574
16611
|
function ReverseSnippet(_ref) {
|
|
16575
16612
|
var _ref$classNames = _ref.classNames,
|
|
16576
16613
|
classNames = _ref$classNames === void 0 ? {} : _ref$classNames,
|
|
16577
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
16614
|
+
props = _objectWithoutProperties(_ref, _excluded$f);
|
|
16578
16615
|
return h(InternalHighlight, _extends({
|
|
16579
16616
|
classNames: {
|
|
16580
16617
|
root: cx('ais-ReverseSnippet', classNames.root),
|
|
@@ -16585,13 +16622,13 @@
|
|
|
16585
16622
|
}, props));
|
|
16586
16623
|
}
|
|
16587
16624
|
|
|
16588
|
-
var _excluded$
|
|
16625
|
+
var _excluded$g = ["hit", "attribute", "cssClasses"],
|
|
16589
16626
|
_excluded2$3 = ["isHighlighted"];
|
|
16590
16627
|
function ReverseSnippet$1(_ref) {
|
|
16591
16628
|
var hit = _ref.hit,
|
|
16592
16629
|
attribute = _ref.attribute,
|
|
16593
16630
|
cssClasses = _ref.cssClasses,
|
|
16594
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
16631
|
+
props = _objectWithoutProperties(_ref, _excluded$g);
|
|
16595
16632
|
var property = getPropertyByPath(hit._snippetResult, attribute) || [];
|
|
16596
16633
|
var properties = toArray(property);
|
|
16597
16634
|
_warning(Boolean(properties.length), "Could not enable snippet for \"".concat(attribute.toString(), "\", will display an empty string.\nPlease check whether this attribute exists and is specified in `attributesToSnippet`.\n\nSee: https://alg.li/highlighting\n")) ;
|
|
@@ -16611,11 +16648,11 @@
|
|
|
16611
16648
|
}));
|
|
16612
16649
|
}
|
|
16613
16650
|
|
|
16614
|
-
var _excluded$
|
|
16651
|
+
var _excluded$h = ["classNames"];
|
|
16615
16652
|
function Snippet(_ref) {
|
|
16616
16653
|
var _ref$classNames = _ref.classNames,
|
|
16617
16654
|
classNames = _ref$classNames === void 0 ? {} : _ref$classNames,
|
|
16618
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
16655
|
+
props = _objectWithoutProperties(_ref, _excluded$h);
|
|
16619
16656
|
return h(InternalHighlight, _extends({
|
|
16620
16657
|
classNames: {
|
|
16621
16658
|
root: cx('ais-Snippet', classNames.root),
|
|
@@ -16626,12 +16663,12 @@
|
|
|
16626
16663
|
}, props));
|
|
16627
16664
|
}
|
|
16628
16665
|
|
|
16629
|
-
var _excluded$
|
|
16666
|
+
var _excluded$i = ["hit", "attribute", "cssClasses"];
|
|
16630
16667
|
function Snippet$1(_ref) {
|
|
16631
16668
|
var hit = _ref.hit,
|
|
16632
16669
|
attribute = _ref.attribute,
|
|
16633
16670
|
cssClasses = _ref.cssClasses,
|
|
16634
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
16671
|
+
props = _objectWithoutProperties(_ref, _excluded$i);
|
|
16635
16672
|
var property = getPropertyByPath(hit._snippetResult, attribute) || [];
|
|
16636
16673
|
var properties = toArray(property);
|
|
16637
16674
|
_warning(Boolean(properties.length), "Could not enable snippet for \"".concat(attribute.toString(), "\", will display an empty string.\nPlease check whether this attribute exists and is specified in `attributesToSnippet`.\n\nSee: https://alg.li/highlighting\n")) ;
|
|
@@ -16701,6 +16738,49 @@
|
|
|
16701
16738
|
}).trim();
|
|
16702
16739
|
}
|
|
16703
16740
|
|
|
16741
|
+
var RawHtml = /*#__PURE__*/function (_Component) {
|
|
16742
|
+
_inherits(RawHtml, _Component);
|
|
16743
|
+
var _super = _createSuper(RawHtml);
|
|
16744
|
+
function RawHtml() {
|
|
16745
|
+
var _this;
|
|
16746
|
+
_classCallCheck(this, RawHtml);
|
|
16747
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
16748
|
+
args[_key] = arguments[_key];
|
|
16749
|
+
}
|
|
16750
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
16751
|
+
_defineProperty(_assertThisInitialized(_this), "ref", y());
|
|
16752
|
+
_defineProperty(_assertThisInitialized(_this), "nodes", []);
|
|
16753
|
+
return _this;
|
|
16754
|
+
}
|
|
16755
|
+
_createClass(RawHtml, [{
|
|
16756
|
+
key: "componentDidMount",
|
|
16757
|
+
value: function componentDidMount() {
|
|
16758
|
+
var fragment = new DocumentFragment();
|
|
16759
|
+
var root = document.createElement('div');
|
|
16760
|
+
root.innerHTML = this.props.content;
|
|
16761
|
+
this.nodes = _toConsumableArray(root.children);
|
|
16762
|
+
this.nodes.forEach(function (node) {
|
|
16763
|
+
return fragment.appendChild(node);
|
|
16764
|
+
});
|
|
16765
|
+
this.ref.current.replaceWith(fragment);
|
|
16766
|
+
}
|
|
16767
|
+
}, {
|
|
16768
|
+
key: "componentWillUnmount",
|
|
16769
|
+
value: function componentWillUnmount() {
|
|
16770
|
+
this.nodes.forEach(function (node) {
|
|
16771
|
+
return node.outerHTML = '';
|
|
16772
|
+
});
|
|
16773
|
+
}
|
|
16774
|
+
}, {
|
|
16775
|
+
key: "render",
|
|
16776
|
+
value: function render() {
|
|
16777
|
+
return h("div", {
|
|
16778
|
+
ref: this.ref
|
|
16779
|
+
});
|
|
16780
|
+
}
|
|
16781
|
+
}]);
|
|
16782
|
+
return RawHtml;
|
|
16783
|
+
}(d);
|
|
16704
16784
|
var defaultProps = {
|
|
16705
16785
|
data: {},
|
|
16706
16786
|
rootTagName: 'div',
|
|
@@ -16709,12 +16789,12 @@
|
|
|
16709
16789
|
templatesConfig: {}
|
|
16710
16790
|
};
|
|
16711
16791
|
// @TODO: Template should be a generic and receive TData to pass to Templates (to avoid TTemplateData to be set as `any`)
|
|
16712
|
-
var Template = /*#__PURE__*/function (
|
|
16713
|
-
_inherits(Template,
|
|
16714
|
-
var
|
|
16792
|
+
var Template = /*#__PURE__*/function (_Component2) {
|
|
16793
|
+
_inherits(Template, _Component2);
|
|
16794
|
+
var _super2 = _createSuper(Template);
|
|
16715
16795
|
function Template() {
|
|
16716
16796
|
_classCallCheck(this, Template);
|
|
16717
|
-
return
|
|
16797
|
+
return _super2.apply(this, arguments);
|
|
16718
16798
|
}
|
|
16719
16799
|
_createClass(Template, [{
|
|
16720
16800
|
key: "shouldComponentUpdate",
|
|
@@ -16724,14 +16804,14 @@
|
|
|
16724
16804
|
}, {
|
|
16725
16805
|
key: "render",
|
|
16726
16806
|
value: function render() {
|
|
16727
|
-
var
|
|
16807
|
+
var _this2 = this;
|
|
16728
16808
|
{
|
|
16729
16809
|
var nonFunctionTemplates = Object.keys(this.props.templates).filter(function (key) {
|
|
16730
|
-
return typeof
|
|
16810
|
+
return typeof _this2.props.templates[key] !== 'function';
|
|
16731
16811
|
});
|
|
16732
16812
|
_warning(nonFunctionTemplates.length === 0, "Hogan.js and string-based templates are deprecated and will not be supported in InstantSearch.js 5.x.\n\nYou can replace them with function-form templates and use either the provided `html` function or JSX templates.\n\nString-based templates: ".concat(nonFunctionTemplates.join(', '), ".\n\nSee: https://www.algolia.com/doc/guides/building-search-ui/upgrade-guides/js/#upgrade-templates")) ;
|
|
16733
16813
|
}
|
|
16734
|
-
var RootTagName = this.props.rootTagName;
|
|
16814
|
+
var RootTagName = this.props.rootTagName === 'fragment' ? p : this.props.rootTagName;
|
|
16735
16815
|
var useCustomCompileOptions = this.props.useCustomCompileOptions[this.props.templateKey];
|
|
16736
16816
|
var compileOptions = useCustomCompileOptions ? this.props.templatesConfig.compileOptions : {};
|
|
16737
16817
|
var content = renderTemplate({
|
|
@@ -16751,6 +16831,14 @@
|
|
|
16751
16831
|
if (_typeof(content) === 'object') {
|
|
16752
16832
|
return h(RootTagName, this.props.rootProps, content);
|
|
16753
16833
|
}
|
|
16834
|
+
|
|
16835
|
+
// This is to handle Hogan templates with Fragment as rootTagName
|
|
16836
|
+
if (RootTagName === p) {
|
|
16837
|
+
return h(RawHtml, {
|
|
16838
|
+
content: content,
|
|
16839
|
+
key: content
|
|
16840
|
+
});
|
|
16841
|
+
}
|
|
16754
16842
|
return h(RootTagName, _extends({}, this.props.rootProps, {
|
|
16755
16843
|
dangerouslySetInnerHTML: {
|
|
16756
16844
|
__html: content
|
|
@@ -16844,6 +16932,9 @@
|
|
|
16844
16932
|
}), containerNode);
|
|
16845
16933
|
};
|
|
16846
16934
|
};
|
|
16935
|
+
/**
|
|
16936
|
+
* @deprecated the answers service is no longer offered, and this widget will be removed in InstantSearch.js v5
|
|
16937
|
+
*/
|
|
16847
16938
|
var answersWidget = function answersWidget(widgetParams) {
|
|
16848
16939
|
var _ref3 = widgetParams || {},
|
|
16849
16940
|
container = _ref3.container,
|
|
@@ -16901,8 +16992,9 @@
|
|
|
16901
16992
|
$$widgetType: 'ais.answers'
|
|
16902
16993
|
});
|
|
16903
16994
|
};
|
|
16995
|
+
var answers = deprecate(answersWidget, 'The answers widget is deprecated and will be removed in InstantSearch.js 5.0');
|
|
16904
16996
|
|
|
16905
|
-
var _excluded$
|
|
16997
|
+
var _excluded$j = ["container", "widgets", "fallbackWidget"];
|
|
16906
16998
|
var withUsage$t = createDocumentationMessageGenerator({
|
|
16907
16999
|
name: 'dynamic-widgets'
|
|
16908
17000
|
});
|
|
@@ -16920,7 +17012,7 @@
|
|
|
16920
17012
|
containerSelector = _ref.container,
|
|
16921
17013
|
widgets = _ref.widgets,
|
|
16922
17014
|
fallbackWidget = _ref.fallbackWidget,
|
|
16923
|
-
otherWidgetParams = _objectWithoutProperties(_ref, _excluded$
|
|
17015
|
+
otherWidgetParams = _objectWithoutProperties(_ref, _excluded$j);
|
|
16924
17016
|
if (!containerSelector) {
|
|
16925
17017
|
throw new Error(withUsage$t('The `container` option is required.'));
|
|
16926
17018
|
}
|
|
@@ -17894,7 +17986,7 @@
|
|
|
17894
17986
|
}), container.querySelector(".".concat(cssClasses.tree)));
|
|
17895
17987
|
};
|
|
17896
17988
|
|
|
17897
|
-
var _excluded$
|
|
17989
|
+
var _excluded$k = ["initialZoom", "initialPosition", "templates", "cssClasses", "builtInMarker", "customHTMLMarker", "enableRefine", "enableClearMapRefinement", "enableRefineControl", "container", "googleReference"],
|
|
17898
17990
|
_excluded2$4 = ["item"],
|
|
17899
17991
|
_excluded3 = ["item"];
|
|
17900
17992
|
var withUsage$y = createDocumentationMessageGenerator({
|
|
@@ -17938,7 +18030,7 @@
|
|
|
17938
18030
|
enableRefineControl = _ref$enableRefineCont === void 0 ? true : _ref$enableRefineCont,
|
|
17939
18031
|
container = _ref.container,
|
|
17940
18032
|
googleReference = _ref.googleReference,
|
|
17941
|
-
otherWidgetParams = _objectWithoutProperties(_ref, _excluded$
|
|
18033
|
+
otherWidgetParams = _objectWithoutProperties(_ref, _excluded$k);
|
|
17942
18034
|
var defaultBuiltInMarker = {
|
|
17943
18035
|
createOptions: function createOptions() {
|
|
17944
18036
|
return {};
|
|
@@ -18275,7 +18367,7 @@
|
|
|
18275
18367
|
})), subItems);
|
|
18276
18368
|
}
|
|
18277
18369
|
|
|
18278
|
-
var _excluded$
|
|
18370
|
+
var _excluded$l = ["root"];
|
|
18279
18371
|
|
|
18280
18372
|
// CSS types
|
|
18281
18373
|
|
|
@@ -18302,7 +18394,7 @@
|
|
|
18302
18394
|
if (isHierarchicalMenuItem(facetValue) && Array.isArray(facetValue.data) && facetValue.data.length > 0) {
|
|
18303
18395
|
var _this$props$cssClasse = _this.props.cssClasses,
|
|
18304
18396
|
root = _this$props$cssClasse.root,
|
|
18305
|
-
cssClasses = _objectWithoutProperties(_this$props$cssClasse, _excluded$
|
|
18397
|
+
cssClasses = _objectWithoutProperties(_this$props$cssClasse, _excluded$l);
|
|
18306
18398
|
subItems = h(RefinementList, _extends({}, _this.props, {
|
|
18307
18399
|
// We want to keep `root` required for external usage but not for the
|
|
18308
18400
|
// sub items.
|
|
@@ -18681,60 +18773,6 @@
|
|
|
18681
18773
|
});
|
|
18682
18774
|
};
|
|
18683
18775
|
|
|
18684
|
-
function Hits(_ref) {
|
|
18685
|
-
var results = _ref.results,
|
|
18686
|
-
hits = _ref.hits,
|
|
18687
|
-
insights = _ref.insights,
|
|
18688
|
-
bindEvent = _ref.bindEvent,
|
|
18689
|
-
sendEvent = _ref.sendEvent,
|
|
18690
|
-
cssClasses = _ref.cssClasses,
|
|
18691
|
-
templateProps = _ref.templateProps;
|
|
18692
|
-
var handleInsightsClick = createInsightsEventHandler({
|
|
18693
|
-
insights: insights,
|
|
18694
|
-
sendEvent: sendEvent
|
|
18695
|
-
});
|
|
18696
|
-
if (results.hits.length === 0) {
|
|
18697
|
-
return h(Template, _extends({}, templateProps, {
|
|
18698
|
-
templateKey: "empty",
|
|
18699
|
-
rootProps: {
|
|
18700
|
-
className: cx(cssClasses.root, cssClasses.emptyRoot),
|
|
18701
|
-
onClick: handleInsightsClick
|
|
18702
|
-
},
|
|
18703
|
-
data: results
|
|
18704
|
-
}));
|
|
18705
|
-
}
|
|
18706
|
-
return h("div", {
|
|
18707
|
-
className: cssClasses.root
|
|
18708
|
-
}, h("ol", {
|
|
18709
|
-
className: cssClasses.list
|
|
18710
|
-
}, hits.map(function (hit, index) {
|
|
18711
|
-
return h(Template, _extends({}, templateProps, {
|
|
18712
|
-
templateKey: "item",
|
|
18713
|
-
rootTagName: "li",
|
|
18714
|
-
rootProps: {
|
|
18715
|
-
className: cssClasses.item,
|
|
18716
|
-
onClick: function onClick(event) {
|
|
18717
|
-
handleInsightsClick(event);
|
|
18718
|
-
sendEvent('click:internal', hit, 'Hit Clicked');
|
|
18719
|
-
},
|
|
18720
|
-
onAuxClick: function onAuxClick(event) {
|
|
18721
|
-
handleInsightsClick(event);
|
|
18722
|
-
sendEvent('click:internal', hit, 'Hit Clicked');
|
|
18723
|
-
}
|
|
18724
|
-
},
|
|
18725
|
-
key: hit.objectID,
|
|
18726
|
-
data: _objectSpread2(_objectSpread2({}, hit), {}, {
|
|
18727
|
-
get __hitIndex() {
|
|
18728
|
-
_warning(false, 'The `__hitIndex` property is deprecated. Use the absolute `__position` instead.') ;
|
|
18729
|
-
return index;
|
|
18730
|
-
}
|
|
18731
|
-
}),
|
|
18732
|
-
bindEvent: bindEvent,
|
|
18733
|
-
sendEvent: sendEvent
|
|
18734
|
-
}));
|
|
18735
|
-
})));
|
|
18736
|
-
}
|
|
18737
|
-
|
|
18738
18776
|
var defaultTemplates$5 = {
|
|
18739
18777
|
empty: function empty() {
|
|
18740
18778
|
return 'No results';
|
|
@@ -18744,10 +18782,14 @@
|
|
|
18744
18782
|
}
|
|
18745
18783
|
};
|
|
18746
18784
|
|
|
18785
|
+
var _excluded$m = ["hit", "index"];
|
|
18747
18786
|
var withUsage$A = createDocumentationMessageGenerator({
|
|
18748
18787
|
name: 'hits'
|
|
18749
18788
|
});
|
|
18750
|
-
var
|
|
18789
|
+
var Hits = createHitsComponent({
|
|
18790
|
+
createElement: h,
|
|
18791
|
+
Fragment: p
|
|
18792
|
+
});
|
|
18751
18793
|
var renderer$6 = function renderer(_ref) {
|
|
18752
18794
|
var renderState = _ref.renderState,
|
|
18753
18795
|
cssClasses = _ref.cssClasses,
|
|
@@ -18768,42 +18810,70 @@
|
|
|
18768
18810
|
});
|
|
18769
18811
|
return;
|
|
18770
18812
|
}
|
|
18813
|
+
var handleInsightsClick = createInsightsEventHandler({
|
|
18814
|
+
insights: insights,
|
|
18815
|
+
sendEvent: sendEvent
|
|
18816
|
+
});
|
|
18817
|
+
var emptyComponent = function emptyComponent(_ref3) {
|
|
18818
|
+
var rootProps = _extends({}, (_objectDestructuringEmpty(_ref3), _ref3));
|
|
18819
|
+
return h(Template, _extends({}, renderState.templateProps, {
|
|
18820
|
+
rootProps: rootProps,
|
|
18821
|
+
templateKey: "empty",
|
|
18822
|
+
data: results
|
|
18823
|
+
}));
|
|
18824
|
+
};
|
|
18825
|
+
|
|
18826
|
+
// @MAJOR: Move default hit component back to the UI library
|
|
18827
|
+
// once flavour specificities are erased
|
|
18828
|
+
var itemComponent = function itemComponent(_ref4) {
|
|
18829
|
+
var hit = _ref4.hit,
|
|
18830
|
+
index = _ref4.index,
|
|
18831
|
+
rootProps = _objectWithoutProperties(_ref4, _excluded$m);
|
|
18832
|
+
return h(Template, _extends({}, renderState.templateProps, {
|
|
18833
|
+
templateKey: "item",
|
|
18834
|
+
rootTagName: "li",
|
|
18835
|
+
rootProps: _objectSpread2(_objectSpread2({}, rootProps), {}, {
|
|
18836
|
+
onClick: function onClick(event) {
|
|
18837
|
+
handleInsightsClick(event);
|
|
18838
|
+
rootProps.onClick();
|
|
18839
|
+
},
|
|
18840
|
+
onAuxClick: function onAuxClick(event) {
|
|
18841
|
+
handleInsightsClick(event);
|
|
18842
|
+
rootProps.onAuxClick();
|
|
18843
|
+
}
|
|
18844
|
+
}),
|
|
18845
|
+
data: _objectSpread2(_objectSpread2({}, hit), {}, {
|
|
18846
|
+
get __hitIndex() {
|
|
18847
|
+
_warning(false, 'The `__hitIndex` property is deprecated. Use the absolute `__position` instead.') ;
|
|
18848
|
+
return index;
|
|
18849
|
+
}
|
|
18850
|
+
}),
|
|
18851
|
+
bindEvent: bindEvent,
|
|
18852
|
+
sendEvent: sendEvent
|
|
18853
|
+
}));
|
|
18854
|
+
};
|
|
18771
18855
|
P(h(Hits, {
|
|
18772
|
-
cssClasses: cssClasses,
|
|
18773
18856
|
hits: receivedHits,
|
|
18774
|
-
|
|
18775
|
-
templateProps: renderState.templateProps,
|
|
18776
|
-
insights: insights,
|
|
18857
|
+
itemComponent: itemComponent,
|
|
18777
18858
|
sendEvent: sendEvent,
|
|
18778
|
-
|
|
18859
|
+
classNames: cssClasses,
|
|
18860
|
+
emptyComponent: emptyComponent
|
|
18779
18861
|
}), containerNode);
|
|
18780
18862
|
};
|
|
18781
18863
|
};
|
|
18782
18864
|
var hits = function hits(widgetParams) {
|
|
18783
|
-
var
|
|
18784
|
-
container =
|
|
18785
|
-
escapeHTML =
|
|
18786
|
-
transformItems =
|
|
18787
|
-
|
|
18788
|
-
templates =
|
|
18789
|
-
|
|
18790
|
-
|
|
18865
|
+
var _ref5 = widgetParams || {},
|
|
18866
|
+
container = _ref5.container,
|
|
18867
|
+
escapeHTML = _ref5.escapeHTML,
|
|
18868
|
+
transformItems = _ref5.transformItems,
|
|
18869
|
+
_ref5$templates = _ref5.templates,
|
|
18870
|
+
templates = _ref5$templates === void 0 ? {} : _ref5$templates,
|
|
18871
|
+
_ref5$cssClasses = _ref5.cssClasses,
|
|
18872
|
+
cssClasses = _ref5$cssClasses === void 0 ? {} : _ref5$cssClasses;
|
|
18791
18873
|
if (!container) {
|
|
18792
18874
|
throw new Error(withUsage$A('The `container` option is required.'));
|
|
18793
18875
|
}
|
|
18794
18876
|
var containerNode = getContainerNode(container);
|
|
18795
|
-
var cssClasses = {
|
|
18796
|
-
root: cx(suit$b(), userCssClasses.root),
|
|
18797
|
-
emptyRoot: cx(suit$b({
|
|
18798
|
-
modifierName: 'empty'
|
|
18799
|
-
}), userCssClasses.emptyRoot),
|
|
18800
|
-
list: cx(suit$b({
|
|
18801
|
-
descendantName: 'list'
|
|
18802
|
-
}), userCssClasses.list),
|
|
18803
|
-
item: cx(suit$b({
|
|
18804
|
-
descendantName: 'item'
|
|
18805
|
-
}), userCssClasses.item)
|
|
18806
|
-
};
|
|
18807
18877
|
var specializedRenderer = renderer$6({
|
|
18808
18878
|
containerNode: containerNode,
|
|
18809
18879
|
cssClasses: cssClasses,
|
|
@@ -18846,7 +18916,7 @@
|
|
|
18846
18916
|
var withUsage$B = createDocumentationMessageGenerator({
|
|
18847
18917
|
name: 'hits-per-page'
|
|
18848
18918
|
});
|
|
18849
|
-
var suit$
|
|
18919
|
+
var suit$b = component('HitsPerPage');
|
|
18850
18920
|
var renderer$7 = function renderer(_ref) {
|
|
18851
18921
|
var containerNode = _ref.containerNode,
|
|
18852
18922
|
cssClasses = _ref.cssClasses;
|
|
@@ -18883,11 +18953,11 @@
|
|
|
18883
18953
|
}
|
|
18884
18954
|
var containerNode = getContainerNode(container);
|
|
18885
18955
|
var cssClasses = {
|
|
18886
|
-
root: cx(suit$
|
|
18887
|
-
select: cx(suit$
|
|
18956
|
+
root: cx(suit$b(), userCssClasses.root),
|
|
18957
|
+
select: cx(suit$b({
|
|
18888
18958
|
descendantName: 'select'
|
|
18889
18959
|
}), userCssClasses.select),
|
|
18890
|
-
option: cx(suit$
|
|
18960
|
+
option: cx(suit$b({
|
|
18891
18961
|
descendantName: 'option'
|
|
18892
18962
|
}), userCssClasses.option)
|
|
18893
18963
|
};
|
|
@@ -18999,7 +19069,7 @@
|
|
|
18999
19069
|
var withUsage$C = createDocumentationMessageGenerator({
|
|
19000
19070
|
name: 'infinite-hits'
|
|
19001
19071
|
});
|
|
19002
|
-
var suit$
|
|
19072
|
+
var suit$c = component('InfiniteHits');
|
|
19003
19073
|
var renderer$8 = function renderer(_ref) {
|
|
19004
19074
|
var containerNode = _ref.containerNode,
|
|
19005
19075
|
cssClasses = _ref.cssClasses,
|
|
@@ -19057,27 +19127,27 @@
|
|
|
19057
19127
|
}
|
|
19058
19128
|
var containerNode = getContainerNode(container);
|
|
19059
19129
|
var cssClasses = {
|
|
19060
|
-
root: cx(suit$
|
|
19061
|
-
emptyRoot: cx(suit$
|
|
19130
|
+
root: cx(suit$c(), userCssClasses.root),
|
|
19131
|
+
emptyRoot: cx(suit$c({
|
|
19062
19132
|
modifierName: 'empty'
|
|
19063
19133
|
}), userCssClasses.emptyRoot),
|
|
19064
|
-
item: cx(suit$
|
|
19134
|
+
item: cx(suit$c({
|
|
19065
19135
|
descendantName: 'item'
|
|
19066
19136
|
}), userCssClasses.item),
|
|
19067
|
-
list: cx(suit$
|
|
19137
|
+
list: cx(suit$c({
|
|
19068
19138
|
descendantName: 'list'
|
|
19069
19139
|
}), userCssClasses.list),
|
|
19070
|
-
loadPrevious: cx(suit$
|
|
19140
|
+
loadPrevious: cx(suit$c({
|
|
19071
19141
|
descendantName: 'loadPrevious'
|
|
19072
19142
|
}), userCssClasses.loadPrevious),
|
|
19073
|
-
disabledLoadPrevious: cx(suit$
|
|
19143
|
+
disabledLoadPrevious: cx(suit$c({
|
|
19074
19144
|
descendantName: 'loadPrevious',
|
|
19075
19145
|
modifierName: 'disabled'
|
|
19076
19146
|
}), userCssClasses.disabledLoadPrevious),
|
|
19077
|
-
loadMore: cx(suit$
|
|
19147
|
+
loadMore: cx(suit$c({
|
|
19078
19148
|
descendantName: 'loadMore'
|
|
19079
19149
|
}), userCssClasses.loadMore),
|
|
19080
|
-
disabledLoadMore: cx(suit$
|
|
19150
|
+
disabledLoadMore: cx(suit$c({
|
|
19081
19151
|
descendantName: 'loadMore',
|
|
19082
19152
|
modifierName: 'disabled'
|
|
19083
19153
|
}), userCssClasses.disabledLoadMore)
|
|
@@ -19126,7 +19196,7 @@
|
|
|
19126
19196
|
var withUsage$D = createDocumentationMessageGenerator({
|
|
19127
19197
|
name: 'menu'
|
|
19128
19198
|
});
|
|
19129
|
-
var suit$
|
|
19199
|
+
var suit$d = component('Menu');
|
|
19130
19200
|
var renderer$9 = function renderer(_ref) {
|
|
19131
19201
|
var containerNode = _ref.containerNode,
|
|
19132
19202
|
cssClasses = _ref.cssClasses,
|
|
@@ -19185,33 +19255,33 @@
|
|
|
19185
19255
|
}
|
|
19186
19256
|
var containerNode = getContainerNode(container);
|
|
19187
19257
|
var cssClasses = {
|
|
19188
|
-
root: cx(suit$
|
|
19189
|
-
noRefinementRoot: cx(suit$
|
|
19258
|
+
root: cx(suit$d(), userCssClasses.root),
|
|
19259
|
+
noRefinementRoot: cx(suit$d({
|
|
19190
19260
|
modifierName: 'noRefinement'
|
|
19191
19261
|
}), userCssClasses.noRefinementRoot),
|
|
19192
|
-
list: cx(suit$
|
|
19262
|
+
list: cx(suit$d({
|
|
19193
19263
|
descendantName: 'list'
|
|
19194
19264
|
}), userCssClasses.list),
|
|
19195
|
-
item: cx(suit$
|
|
19265
|
+
item: cx(suit$d({
|
|
19196
19266
|
descendantName: 'item'
|
|
19197
19267
|
}), userCssClasses.item),
|
|
19198
|
-
selectedItem: cx(suit$
|
|
19268
|
+
selectedItem: cx(suit$d({
|
|
19199
19269
|
descendantName: 'item',
|
|
19200
19270
|
modifierName: 'selected'
|
|
19201
19271
|
}), userCssClasses.selectedItem),
|
|
19202
|
-
link: cx(suit$
|
|
19272
|
+
link: cx(suit$d({
|
|
19203
19273
|
descendantName: 'link'
|
|
19204
19274
|
}), userCssClasses.link),
|
|
19205
|
-
label: cx(suit$
|
|
19275
|
+
label: cx(suit$d({
|
|
19206
19276
|
descendantName: 'label'
|
|
19207
19277
|
}), userCssClasses.label),
|
|
19208
|
-
count: cx(suit$
|
|
19278
|
+
count: cx(suit$d({
|
|
19209
19279
|
descendantName: 'count'
|
|
19210
19280
|
}), userCssClasses.count),
|
|
19211
|
-
showMore: cx(suit$
|
|
19281
|
+
showMore: cx(suit$d({
|
|
19212
19282
|
descendantName: 'showMore'
|
|
19213
19283
|
}), userCssClasses.showMore),
|
|
19214
|
-
disabledShowMore: cx(suit$
|
|
19284
|
+
disabledShowMore: cx(suit$d({
|
|
19215
19285
|
descendantName: 'showMore',
|
|
19216
19286
|
modifierName: 'disabled'
|
|
19217
19287
|
}), userCssClasses.disabledShowMore)
|
|
@@ -19292,7 +19362,7 @@
|
|
|
19292
19362
|
var withUsage$E = createDocumentationMessageGenerator({
|
|
19293
19363
|
name: 'menu-select'
|
|
19294
19364
|
});
|
|
19295
|
-
var suit$
|
|
19365
|
+
var suit$e = component('MenuSelect');
|
|
19296
19366
|
var renderer$a = function renderer(_ref) {
|
|
19297
19367
|
var containerNode = _ref.containerNode,
|
|
19298
19368
|
cssClasses = _ref.cssClasses,
|
|
@@ -19336,14 +19406,14 @@
|
|
|
19336
19406
|
}
|
|
19337
19407
|
var containerNode = getContainerNode(container);
|
|
19338
19408
|
var cssClasses = {
|
|
19339
|
-
root: cx(suit$
|
|
19340
|
-
noRefinementRoot: cx(suit$
|
|
19409
|
+
root: cx(suit$e(), userCssClasses.root),
|
|
19410
|
+
noRefinementRoot: cx(suit$e({
|
|
19341
19411
|
modifierName: 'noRefinement'
|
|
19342
19412
|
}), userCssClasses.noRefinementRoot),
|
|
19343
|
-
select: cx(suit$
|
|
19413
|
+
select: cx(suit$e({
|
|
19344
19414
|
descendantName: 'select'
|
|
19345
19415
|
}), userCssClasses.select),
|
|
19346
|
-
option: cx(suit$
|
|
19416
|
+
option: cx(suit$e({
|
|
19347
19417
|
descendantName: 'option'
|
|
19348
19418
|
}), userCssClasses.option)
|
|
19349
19419
|
};
|
|
@@ -19388,7 +19458,7 @@
|
|
|
19388
19458
|
var withUsage$F = createDocumentationMessageGenerator({
|
|
19389
19459
|
name: 'numeric-menu'
|
|
19390
19460
|
});
|
|
19391
|
-
var suit$
|
|
19461
|
+
var suit$f = component('NumericMenu');
|
|
19392
19462
|
var renderer$b = function renderer(_ref) {
|
|
19393
19463
|
var containerNode = _ref.containerNode,
|
|
19394
19464
|
attribute = _ref.attribute,
|
|
@@ -19433,27 +19503,27 @@
|
|
|
19433
19503
|
}
|
|
19434
19504
|
var containerNode = getContainerNode(container);
|
|
19435
19505
|
var cssClasses = {
|
|
19436
|
-
root: cx(suit$
|
|
19437
|
-
noRefinementRoot: cx(suit$
|
|
19506
|
+
root: cx(suit$f(), userCssClasses.root),
|
|
19507
|
+
noRefinementRoot: cx(suit$f({
|
|
19438
19508
|
modifierName: 'noRefinement'
|
|
19439
19509
|
}), userCssClasses.noRefinementRoot),
|
|
19440
|
-
list: cx(suit$
|
|
19510
|
+
list: cx(suit$f({
|
|
19441
19511
|
descendantName: 'list'
|
|
19442
19512
|
}), userCssClasses.list),
|
|
19443
|
-
item: cx(suit$
|
|
19513
|
+
item: cx(suit$f({
|
|
19444
19514
|
descendantName: 'item'
|
|
19445
19515
|
}), userCssClasses.item),
|
|
19446
|
-
selectedItem: cx(suit$
|
|
19516
|
+
selectedItem: cx(suit$f({
|
|
19447
19517
|
descendantName: 'item',
|
|
19448
19518
|
modifierName: 'selected'
|
|
19449
19519
|
}), userCssClasses.selectedItem),
|
|
19450
|
-
label: cx(suit$
|
|
19520
|
+
label: cx(suit$f({
|
|
19451
19521
|
descendantName: 'label'
|
|
19452
19522
|
}), userCssClasses.label),
|
|
19453
|
-
radio: cx(suit$
|
|
19523
|
+
radio: cx(suit$f({
|
|
19454
19524
|
descendantName: 'radio'
|
|
19455
19525
|
}), userCssClasses.radio),
|
|
19456
|
-
labelText: cx(suit$
|
|
19526
|
+
labelText: cx(suit$f({
|
|
19457
19527
|
descendantName: 'labelText'
|
|
19458
19528
|
}), userCssClasses.labelText)
|
|
19459
19529
|
};
|
|
@@ -19589,7 +19659,7 @@
|
|
|
19589
19659
|
}));
|
|
19590
19660
|
}
|
|
19591
19661
|
|
|
19592
|
-
var suit$
|
|
19662
|
+
var suit$g = component('Pagination');
|
|
19593
19663
|
var withUsage$G = createDocumentationMessageGenerator({
|
|
19594
19664
|
name: 'pagination'
|
|
19595
19665
|
});
|
|
@@ -19678,45 +19748,45 @@
|
|
|
19678
19748
|
var scrollTo = userScrollTo === true ? 'body' : userScrollTo;
|
|
19679
19749
|
var scrollToNode = scrollTo !== false ? getContainerNode(scrollTo) : false;
|
|
19680
19750
|
var cssClasses = {
|
|
19681
|
-
root: cx(suit$
|
|
19682
|
-
noRefinementRoot: cx(suit$
|
|
19751
|
+
root: cx(suit$g(), userCssClasses.root),
|
|
19752
|
+
noRefinementRoot: cx(suit$g({
|
|
19683
19753
|
modifierName: 'noRefinement'
|
|
19684
19754
|
}), userCssClasses.noRefinementRoot),
|
|
19685
|
-
list: cx(suit$
|
|
19755
|
+
list: cx(suit$g({
|
|
19686
19756
|
descendantName: 'list'
|
|
19687
19757
|
}), userCssClasses.list),
|
|
19688
|
-
item: cx(suit$
|
|
19758
|
+
item: cx(suit$g({
|
|
19689
19759
|
descendantName: 'item'
|
|
19690
19760
|
}), userCssClasses.item),
|
|
19691
|
-
firstPageItem: cx(suit$
|
|
19761
|
+
firstPageItem: cx(suit$g({
|
|
19692
19762
|
descendantName: 'item',
|
|
19693
19763
|
modifierName: 'firstPage'
|
|
19694
19764
|
}), userCssClasses.firstPageItem),
|
|
19695
|
-
lastPageItem: cx(suit$
|
|
19765
|
+
lastPageItem: cx(suit$g({
|
|
19696
19766
|
descendantName: 'item',
|
|
19697
19767
|
modifierName: 'lastPage'
|
|
19698
19768
|
}), userCssClasses.lastPageItem),
|
|
19699
|
-
previousPageItem: cx(suit$
|
|
19769
|
+
previousPageItem: cx(suit$g({
|
|
19700
19770
|
descendantName: 'item',
|
|
19701
19771
|
modifierName: 'previousPage'
|
|
19702
19772
|
}), userCssClasses.previousPageItem),
|
|
19703
|
-
nextPageItem: cx(suit$
|
|
19773
|
+
nextPageItem: cx(suit$g({
|
|
19704
19774
|
descendantName: 'item',
|
|
19705
19775
|
modifierName: 'nextPage'
|
|
19706
19776
|
}), userCssClasses.nextPageItem),
|
|
19707
|
-
pageItem: cx(suit$
|
|
19777
|
+
pageItem: cx(suit$g({
|
|
19708
19778
|
descendantName: 'item',
|
|
19709
19779
|
modifierName: 'page'
|
|
19710
19780
|
}), userCssClasses.pageItem),
|
|
19711
|
-
selectedItem: cx(suit$
|
|
19781
|
+
selectedItem: cx(suit$g({
|
|
19712
19782
|
descendantName: 'item',
|
|
19713
19783
|
modifierName: 'selected'
|
|
19714
19784
|
}), userCssClasses.selectedItem),
|
|
19715
|
-
disabledItem: cx(suit$
|
|
19785
|
+
disabledItem: cx(suit$g({
|
|
19716
19786
|
descendantName: 'item',
|
|
19717
19787
|
modifierName: 'disabled'
|
|
19718
19788
|
}), userCssClasses.disabledItem),
|
|
19719
|
-
link: cx(suit$
|
|
19789
|
+
link: cx(suit$g({
|
|
19720
19790
|
descendantName: 'link'
|
|
19721
19791
|
}), userCssClasses.link)
|
|
19722
19792
|
};
|
|
@@ -19810,7 +19880,7 @@
|
|
|
19810
19880
|
var withUsage$H = createDocumentationMessageGenerator({
|
|
19811
19881
|
name: 'panel'
|
|
19812
19882
|
});
|
|
19813
|
-
var suit$
|
|
19883
|
+
var suit$h = component('Panel');
|
|
19814
19884
|
var renderer$d = function renderer(_ref) {
|
|
19815
19885
|
var containerNode = _ref.containerNode,
|
|
19816
19886
|
bodyContainerNode = _ref.bodyContainerNode,
|
|
@@ -19855,29 +19925,29 @@
|
|
|
19855
19925
|
return false;
|
|
19856
19926
|
};
|
|
19857
19927
|
var cssClasses = {
|
|
19858
|
-
root: cx(suit$
|
|
19859
|
-
noRefinementRoot: cx(suit$
|
|
19928
|
+
root: cx(suit$h(), userCssClasses.root),
|
|
19929
|
+
noRefinementRoot: cx(suit$h({
|
|
19860
19930
|
modifierName: 'noRefinement'
|
|
19861
19931
|
}), userCssClasses.noRefinementRoot),
|
|
19862
|
-
collapsibleRoot: cx(suit$
|
|
19932
|
+
collapsibleRoot: cx(suit$h({
|
|
19863
19933
|
modifierName: 'collapsible'
|
|
19864
19934
|
}), userCssClasses.collapsibleRoot),
|
|
19865
|
-
collapsedRoot: cx(suit$
|
|
19935
|
+
collapsedRoot: cx(suit$h({
|
|
19866
19936
|
modifierName: 'collapsed'
|
|
19867
19937
|
}), userCssClasses.collapsedRoot),
|
|
19868
|
-
collapseButton: cx(suit$
|
|
19938
|
+
collapseButton: cx(suit$h({
|
|
19869
19939
|
descendantName: 'collapseButton'
|
|
19870
19940
|
}), userCssClasses.collapseButton),
|
|
19871
|
-
collapseIcon: cx(suit$
|
|
19941
|
+
collapseIcon: cx(suit$h({
|
|
19872
19942
|
descendantName: 'collapseIcon'
|
|
19873
19943
|
}), userCssClasses.collapseIcon),
|
|
19874
|
-
body: cx(suit$
|
|
19944
|
+
body: cx(suit$h({
|
|
19875
19945
|
descendantName: 'body'
|
|
19876
19946
|
}), userCssClasses.body),
|
|
19877
|
-
header: cx(suit$
|
|
19947
|
+
header: cx(suit$h({
|
|
19878
19948
|
descendantName: 'header'
|
|
19879
19949
|
}), userCssClasses.header),
|
|
19880
|
-
footer: cx(suit$
|
|
19950
|
+
footer: cx(suit$h({
|
|
19881
19951
|
descendantName: 'footer'
|
|
19882
19952
|
}), userCssClasses.footer)
|
|
19883
19953
|
};
|
|
@@ -19958,21 +20028,23 @@
|
|
|
19958
20028
|
};
|
|
19959
20029
|
};
|
|
19960
20030
|
|
|
19961
|
-
var _excluded$
|
|
20031
|
+
var _excluded$n = ["placesReference", "defaultPosition"],
|
|
19962
20032
|
_excluded2$5 = ["places"];
|
|
20033
|
+
|
|
19963
20034
|
/* Places.js is an optional dependency, no error should be reported if the package is missing */
|
|
19964
20035
|
/** @ts-ignore */
|
|
19965
20036
|
// using the type like this requires only one ts-ignore
|
|
19966
20037
|
/**
|
|
19967
20038
|
* This widget sets the geolocation value for the search based on the selected
|
|
19968
20039
|
* result in the Algolia Places autocomplete.
|
|
20040
|
+
* @deprecated the places service is no longer offered, and this widget will be removed in InstantSearch.js v5
|
|
19969
20041
|
*/
|
|
19970
20042
|
var placesWidget = function placesWidget(widgetParams) {
|
|
19971
20043
|
var _ref = widgetParams || {},
|
|
19972
20044
|
placesReference = _ref.placesReference,
|
|
19973
20045
|
_ref$defaultPosition = _ref.defaultPosition,
|
|
19974
20046
|
defaultPosition = _ref$defaultPosition === void 0 ? [] : _ref$defaultPosition,
|
|
19975
|
-
placesOptions = _objectWithoutProperties(_ref, _excluded$
|
|
20047
|
+
placesOptions = _objectWithoutProperties(_ref, _excluded$n);
|
|
19976
20048
|
if (typeof placesReference !== 'function') {
|
|
19977
20049
|
throw new Error('The `placesReference` option requires a valid Places.js reference.');
|
|
19978
20050
|
}
|
|
@@ -20051,6 +20123,7 @@
|
|
|
20051
20123
|
}
|
|
20052
20124
|
};
|
|
20053
20125
|
};
|
|
20126
|
+
var places = deprecate(placesWidget, 'The places widget is deprecated and will be removed in InstantSearch.js 5.0.');
|
|
20054
20127
|
|
|
20055
20128
|
var PoweredBy = function PoweredBy(_ref) {
|
|
20056
20129
|
var url = _ref.url,
|
|
@@ -20083,7 +20156,7 @@
|
|
|
20083
20156
|
}))));
|
|
20084
20157
|
};
|
|
20085
20158
|
|
|
20086
|
-
var suit$
|
|
20159
|
+
var suit$i = component('PoweredBy');
|
|
20087
20160
|
var withUsage$I = createDocumentationMessageGenerator({
|
|
20088
20161
|
name: 'powered-by'
|
|
20089
20162
|
});
|
|
@@ -20117,13 +20190,13 @@
|
|
|
20117
20190
|
}
|
|
20118
20191
|
var containerNode = getContainerNode(container);
|
|
20119
20192
|
var cssClasses = {
|
|
20120
|
-
root: cx(suit$
|
|
20193
|
+
root: cx(suit$i(), suit$i({
|
|
20121
20194
|
modifierName: theme === 'dark' ? 'dark' : 'light'
|
|
20122
20195
|
}), userCssClasses.root),
|
|
20123
|
-
link: cx(suit$
|
|
20196
|
+
link: cx(suit$i({
|
|
20124
20197
|
descendantName: 'link'
|
|
20125
20198
|
}), userCssClasses.link),
|
|
20126
|
-
logo: cx(suit$
|
|
20199
|
+
logo: cx(suit$i({
|
|
20127
20200
|
descendantName: 'logo'
|
|
20128
20201
|
}), userCssClasses.logo)
|
|
20129
20202
|
};
|
|
@@ -20179,7 +20252,7 @@
|
|
|
20179
20252
|
var withUsage$K = createDocumentationMessageGenerator({
|
|
20180
20253
|
name: 'query-rule-custom-data'
|
|
20181
20254
|
});
|
|
20182
|
-
var suit$
|
|
20255
|
+
var suit$j = component('QueryRuleCustomData');
|
|
20183
20256
|
var renderer$f = function renderer(_ref2) {
|
|
20184
20257
|
var containerNode = _ref2.containerNode,
|
|
20185
20258
|
cssClasses = _ref2.cssClasses,
|
|
@@ -20208,7 +20281,7 @@
|
|
|
20208
20281
|
throw new Error(withUsage$K('The `container` option is required.'));
|
|
20209
20282
|
}
|
|
20210
20283
|
var cssClasses = {
|
|
20211
|
-
root: cx(suit$
|
|
20284
|
+
root: cx(suit$j(), userCssClasses.root)
|
|
20212
20285
|
};
|
|
20213
20286
|
var containerNode = getContainerNode(container);
|
|
20214
20287
|
var templates = _objectSpread2(_objectSpread2({}, defaultTemplates$b), userTemplates);
|
|
@@ -20341,7 +20414,7 @@
|
|
|
20341
20414
|
var withUsage$L = createDocumentationMessageGenerator({
|
|
20342
20415
|
name: 'range-input'
|
|
20343
20416
|
});
|
|
20344
|
-
var suit$
|
|
20417
|
+
var suit$k = component('RangeInput');
|
|
20345
20418
|
var defaultTemplates$c = {
|
|
20346
20419
|
separatorText: function separatorText() {
|
|
20347
20420
|
return 'to';
|
|
@@ -20407,31 +20480,31 @@
|
|
|
20407
20480
|
}
|
|
20408
20481
|
var containerNode = getContainerNode(container);
|
|
20409
20482
|
var cssClasses = {
|
|
20410
|
-
root: cx(suit$
|
|
20411
|
-
noRefinement: cx(suit$
|
|
20483
|
+
root: cx(suit$k(), userCssClasses.root),
|
|
20484
|
+
noRefinement: cx(suit$k({
|
|
20412
20485
|
modifierName: 'noRefinement'
|
|
20413
20486
|
})),
|
|
20414
|
-
form: cx(suit$
|
|
20487
|
+
form: cx(suit$k({
|
|
20415
20488
|
descendantName: 'form'
|
|
20416
20489
|
}), userCssClasses.form),
|
|
20417
|
-
label: cx(suit$
|
|
20490
|
+
label: cx(suit$k({
|
|
20418
20491
|
descendantName: 'label'
|
|
20419
20492
|
}), userCssClasses.label),
|
|
20420
|
-
input: cx(suit$
|
|
20493
|
+
input: cx(suit$k({
|
|
20421
20494
|
descendantName: 'input'
|
|
20422
20495
|
}), userCssClasses.input),
|
|
20423
|
-
inputMin: cx(suit$
|
|
20496
|
+
inputMin: cx(suit$k({
|
|
20424
20497
|
descendantName: 'input',
|
|
20425
20498
|
modifierName: 'min'
|
|
20426
20499
|
}), userCssClasses.inputMin),
|
|
20427
|
-
inputMax: cx(suit$
|
|
20500
|
+
inputMax: cx(suit$k({
|
|
20428
20501
|
descendantName: 'input',
|
|
20429
20502
|
modifierName: 'max'
|
|
20430
20503
|
}), userCssClasses.inputMax),
|
|
20431
|
-
separator: cx(suit$
|
|
20504
|
+
separator: cx(suit$k({
|
|
20432
20505
|
descendantName: 'separator'
|
|
20433
20506
|
}), userCssClasses.separator),
|
|
20434
|
-
submit: cx(suit$
|
|
20507
|
+
submit: cx(suit$k({
|
|
20435
20508
|
descendantName: 'submit'
|
|
20436
20509
|
}), userCssClasses.submit)
|
|
20437
20510
|
};
|
|
@@ -21129,7 +21202,7 @@
|
|
|
21129
21202
|
var withUsage$M = createDocumentationMessageGenerator({
|
|
21130
21203
|
name: 'range-slider'
|
|
21131
21204
|
});
|
|
21132
|
-
var suit$
|
|
21205
|
+
var suit$l = component('RangeSlider');
|
|
21133
21206
|
var renderer$h = function renderer(_ref) {
|
|
21134
21207
|
var containerNode = _ref.containerNode,
|
|
21135
21208
|
cssClasses = _ref.cssClasses,
|
|
@@ -21199,8 +21272,8 @@
|
|
|
21199
21272
|
}
|
|
21200
21273
|
var containerNode = getContainerNode(container);
|
|
21201
21274
|
var cssClasses = {
|
|
21202
|
-
root: cx(suit$
|
|
21203
|
-
disabledRoot: cx(suit$
|
|
21275
|
+
root: cx(suit$l(), userCssClasses.root),
|
|
21276
|
+
disabledRoot: cx(suit$l({
|
|
21204
21277
|
modifierName: 'disabled'
|
|
21205
21278
|
}), userCssClasses.disabledRoot)
|
|
21206
21279
|
};
|
|
@@ -21277,7 +21350,7 @@
|
|
|
21277
21350
|
var withUsage$N = createDocumentationMessageGenerator({
|
|
21278
21351
|
name: 'rating-menu'
|
|
21279
21352
|
});
|
|
21280
|
-
var suit$
|
|
21353
|
+
var suit$m = component('RatingMenu');
|
|
21281
21354
|
var _ref3 = h("path", {
|
|
21282
21355
|
d: "M12 .288l2.833 8.718h9.167l-7.417 5.389 2.833 8.718-7.416-5.388-7.417 5.388 2.833-8.718-7.416-5.389h9.167z"
|
|
21283
21356
|
});
|
|
@@ -21311,12 +21384,12 @@
|
|
|
21311
21384
|
}, h("svg", {
|
|
21312
21385
|
style: "display:none;"
|
|
21313
21386
|
}, h("symbol", {
|
|
21314
|
-
id: suit$
|
|
21387
|
+
id: suit$m({
|
|
21315
21388
|
descendantName: 'starSymbol'
|
|
21316
21389
|
}),
|
|
21317
21390
|
viewBox: "0 0 24 24"
|
|
21318
21391
|
}, _ref3), h("symbol", {
|
|
21319
|
-
id: suit$
|
|
21392
|
+
id: suit$m({
|
|
21320
21393
|
descendantName: 'starEmptySymbol'
|
|
21321
21394
|
}),
|
|
21322
21395
|
viewBox: "0 0 24 24"
|
|
@@ -21366,42 +21439,42 @@
|
|
|
21366
21439
|
}
|
|
21367
21440
|
var containerNode = getContainerNode(container);
|
|
21368
21441
|
var cssClasses = {
|
|
21369
|
-
root: cx(suit$
|
|
21370
|
-
noRefinementRoot: cx(suit$
|
|
21442
|
+
root: cx(suit$m(), userCssClasses.root),
|
|
21443
|
+
noRefinementRoot: cx(suit$m({
|
|
21371
21444
|
modifierName: 'noRefinement'
|
|
21372
21445
|
}), userCssClasses.noRefinementRoot),
|
|
21373
|
-
list: cx(suit$
|
|
21446
|
+
list: cx(suit$m({
|
|
21374
21447
|
descendantName: 'list'
|
|
21375
21448
|
}), userCssClasses.list),
|
|
21376
|
-
item: cx(suit$
|
|
21449
|
+
item: cx(suit$m({
|
|
21377
21450
|
descendantName: 'item'
|
|
21378
21451
|
}), userCssClasses.item),
|
|
21379
|
-
selectedItem: cx(suit$
|
|
21452
|
+
selectedItem: cx(suit$m({
|
|
21380
21453
|
descendantName: 'item',
|
|
21381
21454
|
modifierName: 'selected'
|
|
21382
21455
|
}), userCssClasses.selectedItem),
|
|
21383
|
-
disabledItem: cx(suit$
|
|
21456
|
+
disabledItem: cx(suit$m({
|
|
21384
21457
|
descendantName: 'item',
|
|
21385
21458
|
modifierName: 'disabled'
|
|
21386
21459
|
}), userCssClasses.disabledItem),
|
|
21387
|
-
link: cx(suit$
|
|
21460
|
+
link: cx(suit$m({
|
|
21388
21461
|
descendantName: 'link'
|
|
21389
21462
|
}), userCssClasses.link),
|
|
21390
|
-
starIcon: cx(suit$
|
|
21463
|
+
starIcon: cx(suit$m({
|
|
21391
21464
|
descendantName: 'starIcon'
|
|
21392
21465
|
}), userCssClasses.starIcon),
|
|
21393
|
-
fullStarIcon: cx(suit$
|
|
21466
|
+
fullStarIcon: cx(suit$m({
|
|
21394
21467
|
descendantName: 'starIcon',
|
|
21395
21468
|
modifierName: 'full'
|
|
21396
21469
|
}), userCssClasses.fullStarIcon),
|
|
21397
|
-
emptyStarIcon: cx(suit$
|
|
21470
|
+
emptyStarIcon: cx(suit$m({
|
|
21398
21471
|
descendantName: 'starIcon',
|
|
21399
21472
|
modifierName: 'empty'
|
|
21400
21473
|
}), userCssClasses.emptyStarIcon),
|
|
21401
|
-
label: cx(suit$
|
|
21474
|
+
label: cx(suit$m({
|
|
21402
21475
|
descendantName: 'label'
|
|
21403
21476
|
}), userCssClasses.label),
|
|
21404
|
-
count: cx(suit$
|
|
21477
|
+
count: cx(suit$m({
|
|
21405
21478
|
descendantName: 'count'
|
|
21406
21479
|
}), userCssClasses.count)
|
|
21407
21480
|
};
|
|
@@ -21525,7 +21598,7 @@
|
|
|
21525
21598
|
var withUsage$O = createDocumentationMessageGenerator({
|
|
21526
21599
|
name: 'refinement-list'
|
|
21527
21600
|
});
|
|
21528
|
-
var suit$
|
|
21601
|
+
var suit$n = component('RefinementList');
|
|
21529
21602
|
var searchBoxSuit = component('SearchBox');
|
|
21530
21603
|
var renderer$j = function renderer(_ref) {
|
|
21531
21604
|
var containerNode = _ref.containerNode,
|
|
@@ -21627,42 +21700,42 @@
|
|
|
21627
21700
|
var escapeFacetValues = searchable ? Boolean(searchableEscapeFacetValues) : false;
|
|
21628
21701
|
var containerNode = getContainerNode(container);
|
|
21629
21702
|
var cssClasses = {
|
|
21630
|
-
root: cx(suit$
|
|
21631
|
-
noRefinementRoot: cx(suit$
|
|
21703
|
+
root: cx(suit$n(), userCssClasses.root),
|
|
21704
|
+
noRefinementRoot: cx(suit$n({
|
|
21632
21705
|
modifierName: 'noRefinement'
|
|
21633
21706
|
}), userCssClasses.noRefinementRoot),
|
|
21634
|
-
list: cx(suit$
|
|
21707
|
+
list: cx(suit$n({
|
|
21635
21708
|
descendantName: 'list'
|
|
21636
21709
|
}), userCssClasses.list),
|
|
21637
|
-
item: cx(suit$
|
|
21710
|
+
item: cx(suit$n({
|
|
21638
21711
|
descendantName: 'item'
|
|
21639
21712
|
}), userCssClasses.item),
|
|
21640
|
-
selectedItem: cx(suit$
|
|
21713
|
+
selectedItem: cx(suit$n({
|
|
21641
21714
|
descendantName: 'item',
|
|
21642
21715
|
modifierName: 'selected'
|
|
21643
21716
|
}), userCssClasses.selectedItem),
|
|
21644
|
-
searchBox: cx(suit$
|
|
21717
|
+
searchBox: cx(suit$n({
|
|
21645
21718
|
descendantName: 'searchBox'
|
|
21646
21719
|
}), userCssClasses.searchBox),
|
|
21647
|
-
label: cx(suit$
|
|
21720
|
+
label: cx(suit$n({
|
|
21648
21721
|
descendantName: 'label'
|
|
21649
21722
|
}), userCssClasses.label),
|
|
21650
|
-
checkbox: cx(suit$
|
|
21723
|
+
checkbox: cx(suit$n({
|
|
21651
21724
|
descendantName: 'checkbox'
|
|
21652
21725
|
}), userCssClasses.checkbox),
|
|
21653
|
-
labelText: cx(suit$
|
|
21726
|
+
labelText: cx(suit$n({
|
|
21654
21727
|
descendantName: 'labelText'
|
|
21655
21728
|
}), userCssClasses.labelText),
|
|
21656
|
-
count: cx(suit$
|
|
21729
|
+
count: cx(suit$n({
|
|
21657
21730
|
descendantName: 'count'
|
|
21658
21731
|
}), userCssClasses.count),
|
|
21659
|
-
noResults: cx(suit$
|
|
21732
|
+
noResults: cx(suit$n({
|
|
21660
21733
|
descendantName: 'noResults'
|
|
21661
21734
|
}), userCssClasses.noResults),
|
|
21662
|
-
showMore: cx(suit$
|
|
21735
|
+
showMore: cx(suit$n({
|
|
21663
21736
|
descendantName: 'showMore'
|
|
21664
21737
|
}), userCssClasses.showMore),
|
|
21665
|
-
disabledShowMore: cx(suit$
|
|
21738
|
+
disabledShowMore: cx(suit$n({
|
|
21666
21739
|
descendantName: 'showMore',
|
|
21667
21740
|
modifierName: 'disabled'
|
|
21668
21741
|
}), userCssClasses.disabledShowMore),
|
|
@@ -21776,7 +21849,7 @@
|
|
|
21776
21849
|
var withUsage$P = createDocumentationMessageGenerator({
|
|
21777
21850
|
name: 'relevant-sort'
|
|
21778
21851
|
});
|
|
21779
|
-
var suit$
|
|
21852
|
+
var suit$o = component('RelevantSort');
|
|
21780
21853
|
var renderer$k = function renderer(_ref) {
|
|
21781
21854
|
var containerNode = _ref.containerNode,
|
|
21782
21855
|
cssClasses = _ref.cssClasses,
|
|
@@ -21805,11 +21878,11 @@
|
|
|
21805
21878
|
}
|
|
21806
21879
|
var containerNode = getContainerNode(container);
|
|
21807
21880
|
var cssClasses = {
|
|
21808
|
-
root: cx(suit$
|
|
21809
|
-
text: cx(suit$
|
|
21881
|
+
root: cx(suit$o(), userCssClasses.root),
|
|
21882
|
+
text: cx(suit$o({
|
|
21810
21883
|
descendantName: 'text'
|
|
21811
21884
|
}), userCssClasses.text),
|
|
21812
|
-
button: cx(suit$
|
|
21885
|
+
button: cx(suit$o({
|
|
21813
21886
|
descendantName: 'button'
|
|
21814
21887
|
}), userCssClasses.button)
|
|
21815
21888
|
};
|
|
@@ -21831,7 +21904,7 @@
|
|
|
21831
21904
|
var withUsage$Q = createDocumentationMessageGenerator({
|
|
21832
21905
|
name: 'search-box'
|
|
21833
21906
|
});
|
|
21834
|
-
var suit$
|
|
21907
|
+
var suit$p = component('SearchBox');
|
|
21835
21908
|
var renderer$l = function renderer(_ref) {
|
|
21836
21909
|
var containerNode = _ref.containerNode,
|
|
21837
21910
|
cssClasses = _ref.cssClasses,
|
|
@@ -21900,29 +21973,29 @@
|
|
|
21900
21973
|
}
|
|
21901
21974
|
var containerNode = getContainerNode(container);
|
|
21902
21975
|
var cssClasses = {
|
|
21903
|
-
root: cx(suit$
|
|
21904
|
-
form: cx(suit$
|
|
21976
|
+
root: cx(suit$p(), userCssClasses.root),
|
|
21977
|
+
form: cx(suit$p({
|
|
21905
21978
|
descendantName: 'form'
|
|
21906
21979
|
}), userCssClasses.form),
|
|
21907
|
-
input: cx(suit$
|
|
21980
|
+
input: cx(suit$p({
|
|
21908
21981
|
descendantName: 'input'
|
|
21909
21982
|
}), userCssClasses.input),
|
|
21910
|
-
submit: cx(suit$
|
|
21983
|
+
submit: cx(suit$p({
|
|
21911
21984
|
descendantName: 'submit'
|
|
21912
21985
|
}), userCssClasses.submit),
|
|
21913
|
-
submitIcon: cx(suit$
|
|
21986
|
+
submitIcon: cx(suit$p({
|
|
21914
21987
|
descendantName: 'submitIcon'
|
|
21915
21988
|
}), userCssClasses.submitIcon),
|
|
21916
|
-
reset: cx(suit$
|
|
21989
|
+
reset: cx(suit$p({
|
|
21917
21990
|
descendantName: 'reset'
|
|
21918
21991
|
}), userCssClasses.reset),
|
|
21919
|
-
resetIcon: cx(suit$
|
|
21992
|
+
resetIcon: cx(suit$p({
|
|
21920
21993
|
descendantName: 'resetIcon'
|
|
21921
21994
|
}), userCssClasses.resetIcon),
|
|
21922
|
-
loadingIndicator: cx(suit$
|
|
21995
|
+
loadingIndicator: cx(suit$p({
|
|
21923
21996
|
descendantName: 'loadingIndicator'
|
|
21924
21997
|
}), userCssClasses.loadingIndicator),
|
|
21925
|
-
loadingIcon: cx(suit$
|
|
21998
|
+
loadingIcon: cx(suit$p({
|
|
21926
21999
|
descendantName: 'loadingIcon'
|
|
21927
22000
|
}), userCssClasses.loadingIcon)
|
|
21928
22001
|
};
|
|
@@ -21952,7 +22025,7 @@
|
|
|
21952
22025
|
var withUsage$R = createDocumentationMessageGenerator({
|
|
21953
22026
|
name: 'sort-by'
|
|
21954
22027
|
});
|
|
21955
|
-
var suit$
|
|
22028
|
+
var suit$q = component('SortBy');
|
|
21956
22029
|
var renderer$m = function renderer(_ref) {
|
|
21957
22030
|
var containerNode = _ref.containerNode,
|
|
21958
22031
|
cssClasses = _ref.cssClasses;
|
|
@@ -21991,11 +22064,11 @@
|
|
|
21991
22064
|
}
|
|
21992
22065
|
var containerNode = getContainerNode(container);
|
|
21993
22066
|
var cssClasses = {
|
|
21994
|
-
root: cx(suit$
|
|
21995
|
-
select: cx(suit$
|
|
22067
|
+
root: cx(suit$q(), userCssClasses.root),
|
|
22068
|
+
select: cx(suit$q({
|
|
21996
22069
|
descendantName: 'select'
|
|
21997
22070
|
}), userCssClasses.select),
|
|
21998
|
-
option: cx(suit$
|
|
22071
|
+
option: cx(suit$q({
|
|
21999
22072
|
descendantName: 'option'
|
|
22000
22073
|
}), userCssClasses.option)
|
|
22001
22074
|
};
|
|
@@ -22015,13 +22088,13 @@
|
|
|
22015
22088
|
});
|
|
22016
22089
|
};
|
|
22017
22090
|
|
|
22018
|
-
var _excluded$
|
|
22091
|
+
var _excluded$o = ["nbHits", "nbSortedHits", "cssClasses", "templateProps"];
|
|
22019
22092
|
var Stats = function Stats(_ref) {
|
|
22020
22093
|
var nbHits = _ref.nbHits,
|
|
22021
22094
|
nbSortedHits = _ref.nbSortedHits,
|
|
22022
22095
|
cssClasses = _ref.cssClasses,
|
|
22023
22096
|
templateProps = _ref.templateProps,
|
|
22024
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
22097
|
+
rest = _objectWithoutProperties(_ref, _excluded$o);
|
|
22025
22098
|
return h("div", {
|
|
22026
22099
|
className: cx(cssClasses.root)
|
|
22027
22100
|
}, h(Template, _extends({}, templateProps, {
|
|
@@ -22047,7 +22120,7 @@
|
|
|
22047
22120
|
var withUsage$S = createDocumentationMessageGenerator({
|
|
22048
22121
|
name: 'stats'
|
|
22049
22122
|
});
|
|
22050
|
-
var suit$
|
|
22123
|
+
var suit$r = component('Stats');
|
|
22051
22124
|
var defaultTemplates$g = {
|
|
22052
22125
|
text: function text(props) {
|
|
22053
22126
|
return "".concat(props.areHitsSorted ? getSortedResultsSentence(props) : getResultsSentence(props), " found in ").concat(props.processingTimeMS, "ms");
|
|
@@ -22143,8 +22216,8 @@
|
|
|
22143
22216
|
}
|
|
22144
22217
|
var containerNode = getContainerNode(container);
|
|
22145
22218
|
var cssClasses = {
|
|
22146
|
-
root: cx(suit$
|
|
22147
|
-
text: cx(suit$
|
|
22219
|
+
root: cx(suit$r(), userCssClasses.root),
|
|
22220
|
+
text: cx(suit$r({
|
|
22148
22221
|
descendantName: 'text'
|
|
22149
22222
|
}), userCssClasses.text)
|
|
22150
22223
|
};
|
|
@@ -22200,7 +22273,7 @@
|
|
|
22200
22273
|
var withUsage$T = createDocumentationMessageGenerator({
|
|
22201
22274
|
name: 'toggle-refinement'
|
|
22202
22275
|
});
|
|
22203
|
-
var suit$
|
|
22276
|
+
var suit$s = component('ToggleRefinement');
|
|
22204
22277
|
var renderer$o = function renderer(_ref) {
|
|
22205
22278
|
var containerNode = _ref.containerNode,
|
|
22206
22279
|
cssClasses = _ref.cssClasses,
|
|
@@ -22254,14 +22327,14 @@
|
|
|
22254
22327
|
}
|
|
22255
22328
|
var containerNode = getContainerNode(container);
|
|
22256
22329
|
var cssClasses = {
|
|
22257
|
-
root: cx(suit$
|
|
22258
|
-
label: cx(suit$
|
|
22330
|
+
root: cx(suit$s(), userCssClasses.root),
|
|
22331
|
+
label: cx(suit$s({
|
|
22259
22332
|
descendantName: 'label'
|
|
22260
22333
|
}), userCssClasses.label),
|
|
22261
|
-
checkbox: cx(suit$
|
|
22334
|
+
checkbox: cx(suit$s({
|
|
22262
22335
|
descendantName: 'checkbox'
|
|
22263
22336
|
}), userCssClasses.checkbox),
|
|
22264
|
-
labelText: cx(suit$
|
|
22337
|
+
labelText: cx(suit$s({
|
|
22265
22338
|
descendantName: 'labelText'
|
|
22266
22339
|
}), userCssClasses.labelText)
|
|
22267
22340
|
};
|
|
@@ -22420,7 +22493,7 @@
|
|
|
22420
22493
|
var withUsage$U = createDocumentationMessageGenerator({
|
|
22421
22494
|
name: 'voice-search'
|
|
22422
22495
|
});
|
|
22423
|
-
var suit$
|
|
22496
|
+
var suit$t = component('VoiceSearch');
|
|
22424
22497
|
var renderer$p = function renderer(_ref) {
|
|
22425
22498
|
var containerNode = _ref.containerNode,
|
|
22426
22499
|
cssClasses = _ref.cssClasses,
|
|
@@ -22457,11 +22530,11 @@
|
|
|
22457
22530
|
}
|
|
22458
22531
|
var containerNode = getContainerNode(container);
|
|
22459
22532
|
var cssClasses = {
|
|
22460
|
-
root: cx(suit$
|
|
22461
|
-
button: cx(suit$
|
|
22533
|
+
root: cx(suit$t(), userCssClasses.root),
|
|
22534
|
+
button: cx(suit$t({
|
|
22462
22535
|
descendantName: 'button'
|
|
22463
22536
|
}), userCssClasses.button),
|
|
22464
|
-
status: cx(suit$
|
|
22537
|
+
status: cx(suit$t({
|
|
22465
22538
|
descendantName: 'status'
|
|
22466
22539
|
}), userCssClasses.status)
|
|
22467
22540
|
};
|
|
@@ -22488,7 +22561,7 @@
|
|
|
22488
22561
|
};
|
|
22489
22562
|
|
|
22490
22563
|
/** @deprecated answers is no longer supported */
|
|
22491
|
-
var EXPERIMENTAL_answers = deprecate(
|
|
22564
|
+
var EXPERIMENTAL_answers = deprecate(answers, 'answers is no longer supported');
|
|
22492
22565
|
|
|
22493
22566
|
/** @deprecated use dynamicWidgets */
|
|
22494
22567
|
var EXPERIMENTAL_dynamicWidgets = deprecate(dynamicWidgets, 'use dynamicWidgets');
|
|
@@ -22515,7 +22588,7 @@
|
|
|
22515
22588
|
numericMenu: numericMenu,
|
|
22516
22589
|
pagination: pagination,
|
|
22517
22590
|
panel: panel,
|
|
22518
|
-
places:
|
|
22591
|
+
places: places,
|
|
22519
22592
|
poweredBy: poweredBy,
|
|
22520
22593
|
queryRuleContext: queryRuleContext,
|
|
22521
22594
|
queryRuleCustomData: queryRuleCustomData,
|