instantsearch.js 4.65.0 → 4.66.1
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/connectors/answers/connectAnswers.js +3 -0
- package/cjs/connectors/hits/connectHits.js +2 -0
- package/cjs/connectors/infinite-hits/connectInfiniteHits.js +1 -0
- package/cjs/lib/version.js +1 -1
- package/cjs/widgets/answers/answers.js +4 -1
- package/cjs/widgets/hits/hits.js +66 -30
- package/cjs/widgets/places/places.js +3 -1
- package/dist/instantsearch.development.d.ts +7 -25
- package/dist/instantsearch.development.js +334 -253
- package/dist/instantsearch.development.js.map +1 -1
- package/dist/instantsearch.production.d.ts +7 -25
- package/dist/instantsearch.production.min.d.ts +7 -25
- package/dist/instantsearch.production.min.js +2 -2
- package/dist/instantsearch.production.min.js.map +1 -1
- package/es/connectors/answers/connectAnswers.d.ts +3 -0
- package/es/connectors/answers/connectAnswers.js +3 -0
- package/es/connectors/hits/connectHits.js +2 -0
- package/es/connectors/infinite-hits/connectInfiniteHits.js +1 -0
- package/es/connectors/refinement-list/connectRefinementList.d.ts +2 -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 +5 -2
- 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/places/places.d.ts +2 -6
- package/es/widgets/places/places.js +4 -1
- package/package.json +12 -10
- 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.1 | © 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());
|
|
@@ -2723,6 +2726,8 @@
|
|
|
2723
2726
|
if (!escapeHTML) {
|
|
2724
2727
|
return state;
|
|
2725
2728
|
}
|
|
2729
|
+
|
|
2730
|
+
// @MAJOR: set this globally, not in the Hits widget to allow Hits to be conditionally used
|
|
2726
2731
|
return state.setQueryParameters(TAG_PLACEHOLDER);
|
|
2727
2732
|
}
|
|
2728
2733
|
};
|
|
@@ -3311,6 +3316,7 @@
|
|
|
3311
3316
|
var uiState = _ref10.uiState;
|
|
3312
3317
|
var widgetSearchParameters = searchParameters;
|
|
3313
3318
|
if (escapeHTML) {
|
|
3319
|
+
// @MAJOR: set this globally, not in the InfiniteHits widget to allow InfiniteHits to be conditionally used
|
|
3314
3320
|
widgetSearchParameters = searchParameters.setQueryParameters(TAG_PLACEHOLDER);
|
|
3315
3321
|
}
|
|
3316
3322
|
|
|
@@ -6257,6 +6263,42 @@
|
|
|
6257
6263
|
|
|
6258
6264
|
var omit$1 = _objectWithoutPropertiesLoose$1;
|
|
6259
6265
|
|
|
6266
|
+
/**
|
|
6267
|
+
* RecommendParameters is the data structure that contains all the information
|
|
6268
|
+
* usable for getting recommendations from the Algolia API. It doesn't do the
|
|
6269
|
+
* search itself, nor does it contains logic about the parameters.
|
|
6270
|
+
* It is an immutable object, therefore it has been created in a way that each
|
|
6271
|
+
* changes does not change the object itself but returns a copy with the
|
|
6272
|
+
* modification.
|
|
6273
|
+
* This object should probably not be instantiated outside of the helper. It
|
|
6274
|
+
* will be provided when needed.
|
|
6275
|
+
* @constructor
|
|
6276
|
+
* @classdesc contains all the parameters for recommendations
|
|
6277
|
+
* @param {RecommendParametersOptions} opts the options to create the object
|
|
6278
|
+
*/
|
|
6279
|
+
function RecommendParameters(opts) {
|
|
6280
|
+
opts = opts || {};
|
|
6281
|
+
this.params = opts.params || [];
|
|
6282
|
+
}
|
|
6283
|
+
|
|
6284
|
+
RecommendParameters.prototype = {
|
|
6285
|
+
constructor: RecommendParameters,
|
|
6286
|
+
|
|
6287
|
+
addParams: function (params) {
|
|
6288
|
+
return new RecommendParameters({ params: this.params.concat(params) });
|
|
6289
|
+
},
|
|
6290
|
+
|
|
6291
|
+
removeParams: function (id) {
|
|
6292
|
+
return new RecommendParameters({
|
|
6293
|
+
params: this.params.filter(function (param) {
|
|
6294
|
+
return param.$$id !== id;
|
|
6295
|
+
}),
|
|
6296
|
+
});
|
|
6297
|
+
},
|
|
6298
|
+
};
|
|
6299
|
+
|
|
6300
|
+
var RecommendParameters_1 = RecommendParameters;
|
|
6301
|
+
|
|
6260
6302
|
function sortObject(obj) {
|
|
6261
6303
|
return Object.keys(obj)
|
|
6262
6304
|
.sort()
|
|
@@ -9702,7 +9744,8 @@
|
|
|
9702
9744
|
* @return {undefined} function mutates the item
|
|
9703
9745
|
*/
|
|
9704
9746
|
function setIsRefined(item, currentRefinement, depth) {
|
|
9705
|
-
item.isRefined =
|
|
9747
|
+
item.isRefined =
|
|
9748
|
+
item.name === (currentRefinement[depth] && currentRefinement[depth].trim());
|
|
9706
9749
|
if (item.data) {
|
|
9707
9750
|
item.data.forEach(function (child) {
|
|
9708
9751
|
setIsRefined(child, currentRefinement, depth + 1);
|
|
@@ -10103,7 +10146,7 @@
|
|
|
10103
10146
|
|
|
10104
10147
|
var SearchResults_1 = SearchResults;
|
|
10105
10148
|
|
|
10106
|
-
var version = '3.
|
|
10149
|
+
var version = '3.17.0';
|
|
10107
10150
|
|
|
10108
10151
|
var escapeFacetValue$4 = escapeFacetValue_1.escapeFacetValue;
|
|
10109
10152
|
|
|
@@ -10115,6 +10158,7 @@
|
|
|
10115
10158
|
|
|
10116
10159
|
|
|
10117
10160
|
|
|
10161
|
+
|
|
10118
10162
|
/**
|
|
10119
10163
|
* Event triggered when a parameter is set or updated
|
|
10120
10164
|
* @event AlgoliaSearchHelper#event:change
|
|
@@ -10228,6 +10272,9 @@
|
|
|
10228
10272
|
var opts = options || {};
|
|
10229
10273
|
opts.index = index;
|
|
10230
10274
|
this.state = SearchParameters_1.make(opts);
|
|
10275
|
+
this.recommendState = new RecommendParameters_1({
|
|
10276
|
+
params: opts.recommendState,
|
|
10277
|
+
});
|
|
10231
10278
|
this.lastResults = null;
|
|
10232
10279
|
this._queryId = 0;
|
|
10233
10280
|
this._lastQueryIdReceived = -1;
|
|
@@ -11611,6 +11658,17 @@
|
|
|
11611
11658
|
}
|
|
11612
11659
|
};
|
|
11613
11660
|
|
|
11661
|
+
AlgoliaSearchHelper.prototype._recommendChange = function (event) {
|
|
11662
|
+
var state = event.state;
|
|
11663
|
+
|
|
11664
|
+
if (state !== this.recommendState) {
|
|
11665
|
+
this.recommendState = state;
|
|
11666
|
+
|
|
11667
|
+
// eslint-disable-next-line no-warning-comments
|
|
11668
|
+
// TODO: emit "change" event when events for Recommend are implemented
|
|
11669
|
+
}
|
|
11670
|
+
};
|
|
11671
|
+
|
|
11614
11672
|
/**
|
|
11615
11673
|
* Clears the cache of the underlying Algolia client.
|
|
11616
11674
|
* @return {AlgoliaSearchHelper} Method is chainable, it returns itself
|
|
@@ -14902,7 +14960,7 @@
|
|
|
14902
14960
|
};
|
|
14903
14961
|
}
|
|
14904
14962
|
|
|
14905
|
-
var version$1 = '4.
|
|
14963
|
+
var version$1 = '4.66.1';
|
|
14906
14964
|
|
|
14907
14965
|
var withUsage$r = createDocumentationMessageGenerator({
|
|
14908
14966
|
name: 'instantsearch'
|
|
@@ -15640,8 +15698,6 @@
|
|
|
15640
15698
|
Fragment: Fragment
|
|
15641
15699
|
});
|
|
15642
15700
|
return function Highlight(userProps) {
|
|
15643
|
-
// Not destructured in function signature, to make sure it's not exposed in
|
|
15644
|
-
// the type definition.
|
|
15645
15701
|
var parts = userProps.parts,
|
|
15646
15702
|
_userProps$highlighte = userProps.highlightedTagName,
|
|
15647
15703
|
highlightedTagName = _userProps$highlighte === void 0 ? 'mark' : _userProps$highlighte,
|
|
@@ -15674,6 +15730,46 @@
|
|
|
15674
15730
|
};
|
|
15675
15731
|
}
|
|
15676
15732
|
|
|
15733
|
+
var _excluded$a = ["classNames", "hits", "itemComponent", "sendEvent", "emptyComponent"];
|
|
15734
|
+
|
|
15735
|
+
// Should be imported from a shared package in the future
|
|
15736
|
+
|
|
15737
|
+
function createHitsComponent(_ref) {
|
|
15738
|
+
var createElement = _ref.createElement;
|
|
15739
|
+
return function Hits(userProps) {
|
|
15740
|
+
var _userProps$classNames = userProps.classNames,
|
|
15741
|
+
classNames = _userProps$classNames === void 0 ? {} : _userProps$classNames,
|
|
15742
|
+
hits = userProps.hits,
|
|
15743
|
+
ItemComponent = userProps.itemComponent,
|
|
15744
|
+
sendEvent = userProps.sendEvent,
|
|
15745
|
+
EmptyComponent = userProps.emptyComponent,
|
|
15746
|
+
props = _objectWithoutProperties$1(userProps, _excluded$a);
|
|
15747
|
+
if (hits.length === 0 && EmptyComponent) {
|
|
15748
|
+
return createElement(EmptyComponent, {
|
|
15749
|
+
className: cx('ais-Hits', classNames.root, cx('ais-Hits--empty', classNames.emptyRoot), props.className)
|
|
15750
|
+
});
|
|
15751
|
+
}
|
|
15752
|
+
return createElement("div", _extends$1({}, props, {
|
|
15753
|
+
className: cx('ais-Hits', classNames.root, hits.length === 0 && cx('ais-Hits--empty', classNames.emptyRoot), props.className)
|
|
15754
|
+
}), createElement("ol", {
|
|
15755
|
+
className: cx('ais-Hits-list', classNames.list)
|
|
15756
|
+
}, hits.map(function (hit, index) {
|
|
15757
|
+
return createElement(ItemComponent, {
|
|
15758
|
+
key: hit.objectID,
|
|
15759
|
+
hit: hit,
|
|
15760
|
+
index: index,
|
|
15761
|
+
className: cx('ais-Hits-item', classNames.item),
|
|
15762
|
+
onClick: function onClick() {
|
|
15763
|
+
sendEvent('click:internal', hit, 'Hit Clicked');
|
|
15764
|
+
},
|
|
15765
|
+
onAuxClick: function onAuxClick() {
|
|
15766
|
+
sendEvent('click:internal', hit, 'Hit Clicked');
|
|
15767
|
+
}
|
|
15768
|
+
});
|
|
15769
|
+
})));
|
|
15770
|
+
};
|
|
15771
|
+
}
|
|
15772
|
+
|
|
15677
15773
|
function prepareTemplates(
|
|
15678
15774
|
// can not use = {} here, since the template could have different constraints
|
|
15679
15775
|
defaultTemplates) {
|
|
@@ -16490,11 +16586,11 @@
|
|
|
16490
16586
|
Fragment: p
|
|
16491
16587
|
});
|
|
16492
16588
|
|
|
16493
|
-
var _excluded$
|
|
16589
|
+
var _excluded$b = ["classNames"];
|
|
16494
16590
|
function Highlight(_ref) {
|
|
16495
16591
|
var _ref$classNames = _ref.classNames,
|
|
16496
16592
|
classNames = _ref$classNames === void 0 ? {} : _ref$classNames,
|
|
16497
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
16593
|
+
props = _objectWithoutProperties(_ref, _excluded$b);
|
|
16498
16594
|
return h(InternalHighlight, _extends({
|
|
16499
16595
|
classNames: {
|
|
16500
16596
|
root: cx('ais-Highlight', classNames.root),
|
|
@@ -16505,12 +16601,12 @@
|
|
|
16505
16601
|
}, props));
|
|
16506
16602
|
}
|
|
16507
16603
|
|
|
16508
|
-
var _excluded$
|
|
16604
|
+
var _excluded$c = ["hit", "attribute", "cssClasses"];
|
|
16509
16605
|
function Highlight$1(_ref) {
|
|
16510
16606
|
var hit = _ref.hit,
|
|
16511
16607
|
attribute = _ref.attribute,
|
|
16512
16608
|
cssClasses = _ref.cssClasses,
|
|
16513
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
16609
|
+
props = _objectWithoutProperties(_ref, _excluded$c);
|
|
16514
16610
|
var property = getPropertyByPath(hit._highlightResult, attribute) || [];
|
|
16515
16611
|
var properties = toArray(property);
|
|
16516
16612
|
_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")) ;
|
|
@@ -16524,11 +16620,11 @@
|
|
|
16524
16620
|
}));
|
|
16525
16621
|
}
|
|
16526
16622
|
|
|
16527
|
-
var _excluded$
|
|
16623
|
+
var _excluded$d = ["classNames"];
|
|
16528
16624
|
function ReverseHighlight(_ref) {
|
|
16529
16625
|
var _ref$classNames = _ref.classNames,
|
|
16530
16626
|
classNames = _ref$classNames === void 0 ? {} : _ref$classNames,
|
|
16531
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
16627
|
+
props = _objectWithoutProperties(_ref, _excluded$d);
|
|
16532
16628
|
return h(InternalHighlight, _extends({
|
|
16533
16629
|
classNames: {
|
|
16534
16630
|
root: cx('ais-ReverseHighlight', classNames.root),
|
|
@@ -16539,13 +16635,13 @@
|
|
|
16539
16635
|
}, props));
|
|
16540
16636
|
}
|
|
16541
16637
|
|
|
16542
|
-
var _excluded$
|
|
16638
|
+
var _excluded$e = ["hit", "attribute", "cssClasses"],
|
|
16543
16639
|
_excluded2$2 = ["isHighlighted"];
|
|
16544
16640
|
function ReverseHighlight$1(_ref) {
|
|
16545
16641
|
var hit = _ref.hit,
|
|
16546
16642
|
attribute = _ref.attribute,
|
|
16547
16643
|
cssClasses = _ref.cssClasses,
|
|
16548
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
16644
|
+
props = _objectWithoutProperties(_ref, _excluded$e);
|
|
16549
16645
|
var property = getPropertyByPath(hit._highlightResult, attribute) || [];
|
|
16550
16646
|
var properties = toArray(property);
|
|
16551
16647
|
_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")) ;
|
|
@@ -16565,11 +16661,11 @@
|
|
|
16565
16661
|
}));
|
|
16566
16662
|
}
|
|
16567
16663
|
|
|
16568
|
-
var _excluded$
|
|
16664
|
+
var _excluded$f = ["classNames"];
|
|
16569
16665
|
function ReverseSnippet(_ref) {
|
|
16570
16666
|
var _ref$classNames = _ref.classNames,
|
|
16571
16667
|
classNames = _ref$classNames === void 0 ? {} : _ref$classNames,
|
|
16572
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
16668
|
+
props = _objectWithoutProperties(_ref, _excluded$f);
|
|
16573
16669
|
return h(InternalHighlight, _extends({
|
|
16574
16670
|
classNames: {
|
|
16575
16671
|
root: cx('ais-ReverseSnippet', classNames.root),
|
|
@@ -16580,13 +16676,13 @@
|
|
|
16580
16676
|
}, props));
|
|
16581
16677
|
}
|
|
16582
16678
|
|
|
16583
|
-
var _excluded$
|
|
16679
|
+
var _excluded$g = ["hit", "attribute", "cssClasses"],
|
|
16584
16680
|
_excluded2$3 = ["isHighlighted"];
|
|
16585
16681
|
function ReverseSnippet$1(_ref) {
|
|
16586
16682
|
var hit = _ref.hit,
|
|
16587
16683
|
attribute = _ref.attribute,
|
|
16588
16684
|
cssClasses = _ref.cssClasses,
|
|
16589
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
16685
|
+
props = _objectWithoutProperties(_ref, _excluded$g);
|
|
16590
16686
|
var property = getPropertyByPath(hit._snippetResult, attribute) || [];
|
|
16591
16687
|
var properties = toArray(property);
|
|
16592
16688
|
_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")) ;
|
|
@@ -16606,11 +16702,11 @@
|
|
|
16606
16702
|
}));
|
|
16607
16703
|
}
|
|
16608
16704
|
|
|
16609
|
-
var _excluded$
|
|
16705
|
+
var _excluded$h = ["classNames"];
|
|
16610
16706
|
function Snippet(_ref) {
|
|
16611
16707
|
var _ref$classNames = _ref.classNames,
|
|
16612
16708
|
classNames = _ref$classNames === void 0 ? {} : _ref$classNames,
|
|
16613
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
16709
|
+
props = _objectWithoutProperties(_ref, _excluded$h);
|
|
16614
16710
|
return h(InternalHighlight, _extends({
|
|
16615
16711
|
classNames: {
|
|
16616
16712
|
root: cx('ais-Snippet', classNames.root),
|
|
@@ -16621,12 +16717,12 @@
|
|
|
16621
16717
|
}, props));
|
|
16622
16718
|
}
|
|
16623
16719
|
|
|
16624
|
-
var _excluded$
|
|
16720
|
+
var _excluded$i = ["hit", "attribute", "cssClasses"];
|
|
16625
16721
|
function Snippet$1(_ref) {
|
|
16626
16722
|
var hit = _ref.hit,
|
|
16627
16723
|
attribute = _ref.attribute,
|
|
16628
16724
|
cssClasses = _ref.cssClasses,
|
|
16629
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
16725
|
+
props = _objectWithoutProperties(_ref, _excluded$i);
|
|
16630
16726
|
var property = getPropertyByPath(hit._snippetResult, attribute) || [];
|
|
16631
16727
|
var properties = toArray(property);
|
|
16632
16728
|
_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")) ;
|
|
@@ -16890,6 +16986,9 @@
|
|
|
16890
16986
|
}), containerNode);
|
|
16891
16987
|
};
|
|
16892
16988
|
};
|
|
16989
|
+
/**
|
|
16990
|
+
* @deprecated the answers service is no longer offered, and this widget will be removed in InstantSearch.js v5
|
|
16991
|
+
*/
|
|
16893
16992
|
var answersWidget = function answersWidget(widgetParams) {
|
|
16894
16993
|
var _ref3 = widgetParams || {},
|
|
16895
16994
|
container = _ref3.container,
|
|
@@ -16947,8 +17046,9 @@
|
|
|
16947
17046
|
$$widgetType: 'ais.answers'
|
|
16948
17047
|
});
|
|
16949
17048
|
};
|
|
17049
|
+
var answers = deprecate(answersWidget, 'The answers widget is deprecated and will be removed in InstantSearch.js 5.0');
|
|
16950
17050
|
|
|
16951
|
-
var _excluded$
|
|
17051
|
+
var _excluded$j = ["container", "widgets", "fallbackWidget"];
|
|
16952
17052
|
var withUsage$t = createDocumentationMessageGenerator({
|
|
16953
17053
|
name: 'dynamic-widgets'
|
|
16954
17054
|
});
|
|
@@ -16966,7 +17066,7 @@
|
|
|
16966
17066
|
containerSelector = _ref.container,
|
|
16967
17067
|
widgets = _ref.widgets,
|
|
16968
17068
|
fallbackWidget = _ref.fallbackWidget,
|
|
16969
|
-
otherWidgetParams = _objectWithoutProperties(_ref, _excluded$
|
|
17069
|
+
otherWidgetParams = _objectWithoutProperties(_ref, _excluded$j);
|
|
16970
17070
|
if (!containerSelector) {
|
|
16971
17071
|
throw new Error(withUsage$t('The `container` option is required.'));
|
|
16972
17072
|
}
|
|
@@ -17940,7 +18040,7 @@
|
|
|
17940
18040
|
}), container.querySelector(".".concat(cssClasses.tree)));
|
|
17941
18041
|
};
|
|
17942
18042
|
|
|
17943
|
-
var _excluded$
|
|
18043
|
+
var _excluded$k = ["initialZoom", "initialPosition", "templates", "cssClasses", "builtInMarker", "customHTMLMarker", "enableRefine", "enableClearMapRefinement", "enableRefineControl", "container", "googleReference"],
|
|
17944
18044
|
_excluded2$4 = ["item"],
|
|
17945
18045
|
_excluded3 = ["item"];
|
|
17946
18046
|
var withUsage$y = createDocumentationMessageGenerator({
|
|
@@ -17984,7 +18084,7 @@
|
|
|
17984
18084
|
enableRefineControl = _ref$enableRefineCont === void 0 ? true : _ref$enableRefineCont,
|
|
17985
18085
|
container = _ref.container,
|
|
17986
18086
|
googleReference = _ref.googleReference,
|
|
17987
|
-
otherWidgetParams = _objectWithoutProperties(_ref, _excluded$
|
|
18087
|
+
otherWidgetParams = _objectWithoutProperties(_ref, _excluded$k);
|
|
17988
18088
|
var defaultBuiltInMarker = {
|
|
17989
18089
|
createOptions: function createOptions() {
|
|
17990
18090
|
return {};
|
|
@@ -18321,7 +18421,7 @@
|
|
|
18321
18421
|
})), subItems);
|
|
18322
18422
|
}
|
|
18323
18423
|
|
|
18324
|
-
var _excluded$
|
|
18424
|
+
var _excluded$l = ["root"];
|
|
18325
18425
|
|
|
18326
18426
|
// CSS types
|
|
18327
18427
|
|
|
@@ -18348,7 +18448,7 @@
|
|
|
18348
18448
|
if (isHierarchicalMenuItem(facetValue) && Array.isArray(facetValue.data) && facetValue.data.length > 0) {
|
|
18349
18449
|
var _this$props$cssClasse = _this.props.cssClasses,
|
|
18350
18450
|
root = _this$props$cssClasse.root,
|
|
18351
|
-
cssClasses = _objectWithoutProperties(_this$props$cssClasse, _excluded$
|
|
18451
|
+
cssClasses = _objectWithoutProperties(_this$props$cssClasse, _excluded$l);
|
|
18352
18452
|
subItems = h(RefinementList, _extends({}, _this.props, {
|
|
18353
18453
|
// We want to keep `root` required for external usage but not for the
|
|
18354
18454
|
// sub items.
|
|
@@ -18727,60 +18827,6 @@
|
|
|
18727
18827
|
});
|
|
18728
18828
|
};
|
|
18729
18829
|
|
|
18730
|
-
function Hits(_ref) {
|
|
18731
|
-
var results = _ref.results,
|
|
18732
|
-
hits = _ref.hits,
|
|
18733
|
-
insights = _ref.insights,
|
|
18734
|
-
bindEvent = _ref.bindEvent,
|
|
18735
|
-
sendEvent = _ref.sendEvent,
|
|
18736
|
-
cssClasses = _ref.cssClasses,
|
|
18737
|
-
templateProps = _ref.templateProps;
|
|
18738
|
-
var handleInsightsClick = createInsightsEventHandler({
|
|
18739
|
-
insights: insights,
|
|
18740
|
-
sendEvent: sendEvent
|
|
18741
|
-
});
|
|
18742
|
-
if (results.hits.length === 0) {
|
|
18743
|
-
return h(Template, _extends({}, templateProps, {
|
|
18744
|
-
templateKey: "empty",
|
|
18745
|
-
rootProps: {
|
|
18746
|
-
className: cx(cssClasses.root, cssClasses.emptyRoot),
|
|
18747
|
-
onClick: handleInsightsClick
|
|
18748
|
-
},
|
|
18749
|
-
data: results
|
|
18750
|
-
}));
|
|
18751
|
-
}
|
|
18752
|
-
return h("div", {
|
|
18753
|
-
className: cssClasses.root
|
|
18754
|
-
}, h("ol", {
|
|
18755
|
-
className: cssClasses.list
|
|
18756
|
-
}, hits.map(function (hit, index) {
|
|
18757
|
-
return h(Template, _extends({}, templateProps, {
|
|
18758
|
-
templateKey: "item",
|
|
18759
|
-
rootTagName: "li",
|
|
18760
|
-
rootProps: {
|
|
18761
|
-
className: cssClasses.item,
|
|
18762
|
-
onClick: function onClick(event) {
|
|
18763
|
-
handleInsightsClick(event);
|
|
18764
|
-
sendEvent('click:internal', hit, 'Hit Clicked');
|
|
18765
|
-
},
|
|
18766
|
-
onAuxClick: function onAuxClick(event) {
|
|
18767
|
-
handleInsightsClick(event);
|
|
18768
|
-
sendEvent('click:internal', hit, 'Hit Clicked');
|
|
18769
|
-
}
|
|
18770
|
-
},
|
|
18771
|
-
key: hit.objectID,
|
|
18772
|
-
data: _objectSpread2(_objectSpread2({}, hit), {}, {
|
|
18773
|
-
get __hitIndex() {
|
|
18774
|
-
_warning(false, 'The `__hitIndex` property is deprecated. Use the absolute `__position` instead.') ;
|
|
18775
|
-
return index;
|
|
18776
|
-
}
|
|
18777
|
-
}),
|
|
18778
|
-
bindEvent: bindEvent,
|
|
18779
|
-
sendEvent: sendEvent
|
|
18780
|
-
}));
|
|
18781
|
-
})));
|
|
18782
|
-
}
|
|
18783
|
-
|
|
18784
18830
|
var defaultTemplates$5 = {
|
|
18785
18831
|
empty: function empty() {
|
|
18786
18832
|
return 'No results';
|
|
@@ -18790,10 +18836,14 @@
|
|
|
18790
18836
|
}
|
|
18791
18837
|
};
|
|
18792
18838
|
|
|
18839
|
+
var _excluded$m = ["hit", "index"];
|
|
18793
18840
|
var withUsage$A = createDocumentationMessageGenerator({
|
|
18794
18841
|
name: 'hits'
|
|
18795
18842
|
});
|
|
18796
|
-
var
|
|
18843
|
+
var Hits = createHitsComponent({
|
|
18844
|
+
createElement: h,
|
|
18845
|
+
Fragment: p
|
|
18846
|
+
});
|
|
18797
18847
|
var renderer$6 = function renderer(_ref) {
|
|
18798
18848
|
var renderState = _ref.renderState,
|
|
18799
18849
|
cssClasses = _ref.cssClasses,
|
|
@@ -18814,42 +18864,70 @@
|
|
|
18814
18864
|
});
|
|
18815
18865
|
return;
|
|
18816
18866
|
}
|
|
18867
|
+
var handleInsightsClick = createInsightsEventHandler({
|
|
18868
|
+
insights: insights,
|
|
18869
|
+
sendEvent: sendEvent
|
|
18870
|
+
});
|
|
18871
|
+
var emptyComponent = function emptyComponent(_ref3) {
|
|
18872
|
+
var rootProps = _extends({}, (_objectDestructuringEmpty(_ref3), _ref3));
|
|
18873
|
+
return h(Template, _extends({}, renderState.templateProps, {
|
|
18874
|
+
rootProps: rootProps,
|
|
18875
|
+
templateKey: "empty",
|
|
18876
|
+
data: results
|
|
18877
|
+
}));
|
|
18878
|
+
};
|
|
18879
|
+
|
|
18880
|
+
// @MAJOR: Move default hit component back to the UI library
|
|
18881
|
+
// once flavour specificities are erased
|
|
18882
|
+
var itemComponent = function itemComponent(_ref4) {
|
|
18883
|
+
var hit = _ref4.hit,
|
|
18884
|
+
index = _ref4.index,
|
|
18885
|
+
rootProps = _objectWithoutProperties(_ref4, _excluded$m);
|
|
18886
|
+
return h(Template, _extends({}, renderState.templateProps, {
|
|
18887
|
+
templateKey: "item",
|
|
18888
|
+
rootTagName: "li",
|
|
18889
|
+
rootProps: _objectSpread2(_objectSpread2({}, rootProps), {}, {
|
|
18890
|
+
onClick: function onClick(event) {
|
|
18891
|
+
handleInsightsClick(event);
|
|
18892
|
+
rootProps.onClick();
|
|
18893
|
+
},
|
|
18894
|
+
onAuxClick: function onAuxClick(event) {
|
|
18895
|
+
handleInsightsClick(event);
|
|
18896
|
+
rootProps.onAuxClick();
|
|
18897
|
+
}
|
|
18898
|
+
}),
|
|
18899
|
+
data: _objectSpread2(_objectSpread2({}, hit), {}, {
|
|
18900
|
+
get __hitIndex() {
|
|
18901
|
+
_warning(false, 'The `__hitIndex` property is deprecated. Use the absolute `__position` instead.') ;
|
|
18902
|
+
return index;
|
|
18903
|
+
}
|
|
18904
|
+
}),
|
|
18905
|
+
bindEvent: bindEvent,
|
|
18906
|
+
sendEvent: sendEvent
|
|
18907
|
+
}));
|
|
18908
|
+
};
|
|
18817
18909
|
P(h(Hits, {
|
|
18818
|
-
cssClasses: cssClasses,
|
|
18819
18910
|
hits: receivedHits,
|
|
18820
|
-
|
|
18821
|
-
templateProps: renderState.templateProps,
|
|
18822
|
-
insights: insights,
|
|
18911
|
+
itemComponent: itemComponent,
|
|
18823
18912
|
sendEvent: sendEvent,
|
|
18824
|
-
|
|
18913
|
+
classNames: cssClasses,
|
|
18914
|
+
emptyComponent: emptyComponent
|
|
18825
18915
|
}), containerNode);
|
|
18826
18916
|
};
|
|
18827
18917
|
};
|
|
18828
18918
|
var hits = function hits(widgetParams) {
|
|
18829
|
-
var
|
|
18830
|
-
container =
|
|
18831
|
-
escapeHTML =
|
|
18832
|
-
transformItems =
|
|
18833
|
-
|
|
18834
|
-
templates =
|
|
18835
|
-
|
|
18836
|
-
|
|
18919
|
+
var _ref5 = widgetParams || {},
|
|
18920
|
+
container = _ref5.container,
|
|
18921
|
+
escapeHTML = _ref5.escapeHTML,
|
|
18922
|
+
transformItems = _ref5.transformItems,
|
|
18923
|
+
_ref5$templates = _ref5.templates,
|
|
18924
|
+
templates = _ref5$templates === void 0 ? {} : _ref5$templates,
|
|
18925
|
+
_ref5$cssClasses = _ref5.cssClasses,
|
|
18926
|
+
cssClasses = _ref5$cssClasses === void 0 ? {} : _ref5$cssClasses;
|
|
18837
18927
|
if (!container) {
|
|
18838
18928
|
throw new Error(withUsage$A('The `container` option is required.'));
|
|
18839
18929
|
}
|
|
18840
18930
|
var containerNode = getContainerNode(container);
|
|
18841
|
-
var cssClasses = {
|
|
18842
|
-
root: cx(suit$b(), userCssClasses.root),
|
|
18843
|
-
emptyRoot: cx(suit$b({
|
|
18844
|
-
modifierName: 'empty'
|
|
18845
|
-
}), userCssClasses.emptyRoot),
|
|
18846
|
-
list: cx(suit$b({
|
|
18847
|
-
descendantName: 'list'
|
|
18848
|
-
}), userCssClasses.list),
|
|
18849
|
-
item: cx(suit$b({
|
|
18850
|
-
descendantName: 'item'
|
|
18851
|
-
}), userCssClasses.item)
|
|
18852
|
-
};
|
|
18853
18931
|
var specializedRenderer = renderer$6({
|
|
18854
18932
|
containerNode: containerNode,
|
|
18855
18933
|
cssClasses: cssClasses,
|
|
@@ -18892,7 +18970,7 @@
|
|
|
18892
18970
|
var withUsage$B = createDocumentationMessageGenerator({
|
|
18893
18971
|
name: 'hits-per-page'
|
|
18894
18972
|
});
|
|
18895
|
-
var suit$
|
|
18973
|
+
var suit$b = component('HitsPerPage');
|
|
18896
18974
|
var renderer$7 = function renderer(_ref) {
|
|
18897
18975
|
var containerNode = _ref.containerNode,
|
|
18898
18976
|
cssClasses = _ref.cssClasses;
|
|
@@ -18929,11 +19007,11 @@
|
|
|
18929
19007
|
}
|
|
18930
19008
|
var containerNode = getContainerNode(container);
|
|
18931
19009
|
var cssClasses = {
|
|
18932
|
-
root: cx(suit$
|
|
18933
|
-
select: cx(suit$
|
|
19010
|
+
root: cx(suit$b(), userCssClasses.root),
|
|
19011
|
+
select: cx(suit$b({
|
|
18934
19012
|
descendantName: 'select'
|
|
18935
19013
|
}), userCssClasses.select),
|
|
18936
|
-
option: cx(suit$
|
|
19014
|
+
option: cx(suit$b({
|
|
18937
19015
|
descendantName: 'option'
|
|
18938
19016
|
}), userCssClasses.option)
|
|
18939
19017
|
};
|
|
@@ -19045,7 +19123,7 @@
|
|
|
19045
19123
|
var withUsage$C = createDocumentationMessageGenerator({
|
|
19046
19124
|
name: 'infinite-hits'
|
|
19047
19125
|
});
|
|
19048
|
-
var suit$
|
|
19126
|
+
var suit$c = component('InfiniteHits');
|
|
19049
19127
|
var renderer$8 = function renderer(_ref) {
|
|
19050
19128
|
var containerNode = _ref.containerNode,
|
|
19051
19129
|
cssClasses = _ref.cssClasses,
|
|
@@ -19103,27 +19181,27 @@
|
|
|
19103
19181
|
}
|
|
19104
19182
|
var containerNode = getContainerNode(container);
|
|
19105
19183
|
var cssClasses = {
|
|
19106
|
-
root: cx(suit$
|
|
19107
|
-
emptyRoot: cx(suit$
|
|
19184
|
+
root: cx(suit$c(), userCssClasses.root),
|
|
19185
|
+
emptyRoot: cx(suit$c({
|
|
19108
19186
|
modifierName: 'empty'
|
|
19109
19187
|
}), userCssClasses.emptyRoot),
|
|
19110
|
-
item: cx(suit$
|
|
19188
|
+
item: cx(suit$c({
|
|
19111
19189
|
descendantName: 'item'
|
|
19112
19190
|
}), userCssClasses.item),
|
|
19113
|
-
list: cx(suit$
|
|
19191
|
+
list: cx(suit$c({
|
|
19114
19192
|
descendantName: 'list'
|
|
19115
19193
|
}), userCssClasses.list),
|
|
19116
|
-
loadPrevious: cx(suit$
|
|
19194
|
+
loadPrevious: cx(suit$c({
|
|
19117
19195
|
descendantName: 'loadPrevious'
|
|
19118
19196
|
}), userCssClasses.loadPrevious),
|
|
19119
|
-
disabledLoadPrevious: cx(suit$
|
|
19197
|
+
disabledLoadPrevious: cx(suit$c({
|
|
19120
19198
|
descendantName: 'loadPrevious',
|
|
19121
19199
|
modifierName: 'disabled'
|
|
19122
19200
|
}), userCssClasses.disabledLoadPrevious),
|
|
19123
|
-
loadMore: cx(suit$
|
|
19201
|
+
loadMore: cx(suit$c({
|
|
19124
19202
|
descendantName: 'loadMore'
|
|
19125
19203
|
}), userCssClasses.loadMore),
|
|
19126
|
-
disabledLoadMore: cx(suit$
|
|
19204
|
+
disabledLoadMore: cx(suit$c({
|
|
19127
19205
|
descendantName: 'loadMore',
|
|
19128
19206
|
modifierName: 'disabled'
|
|
19129
19207
|
}), userCssClasses.disabledLoadMore)
|
|
@@ -19172,7 +19250,7 @@
|
|
|
19172
19250
|
var withUsage$D = createDocumentationMessageGenerator({
|
|
19173
19251
|
name: 'menu'
|
|
19174
19252
|
});
|
|
19175
|
-
var suit$
|
|
19253
|
+
var suit$d = component('Menu');
|
|
19176
19254
|
var renderer$9 = function renderer(_ref) {
|
|
19177
19255
|
var containerNode = _ref.containerNode,
|
|
19178
19256
|
cssClasses = _ref.cssClasses,
|
|
@@ -19231,33 +19309,33 @@
|
|
|
19231
19309
|
}
|
|
19232
19310
|
var containerNode = getContainerNode(container);
|
|
19233
19311
|
var cssClasses = {
|
|
19234
|
-
root: cx(suit$
|
|
19235
|
-
noRefinementRoot: cx(suit$
|
|
19312
|
+
root: cx(suit$d(), userCssClasses.root),
|
|
19313
|
+
noRefinementRoot: cx(suit$d({
|
|
19236
19314
|
modifierName: 'noRefinement'
|
|
19237
19315
|
}), userCssClasses.noRefinementRoot),
|
|
19238
|
-
list: cx(suit$
|
|
19316
|
+
list: cx(suit$d({
|
|
19239
19317
|
descendantName: 'list'
|
|
19240
19318
|
}), userCssClasses.list),
|
|
19241
|
-
item: cx(suit$
|
|
19319
|
+
item: cx(suit$d({
|
|
19242
19320
|
descendantName: 'item'
|
|
19243
19321
|
}), userCssClasses.item),
|
|
19244
|
-
selectedItem: cx(suit$
|
|
19322
|
+
selectedItem: cx(suit$d({
|
|
19245
19323
|
descendantName: 'item',
|
|
19246
19324
|
modifierName: 'selected'
|
|
19247
19325
|
}), userCssClasses.selectedItem),
|
|
19248
|
-
link: cx(suit$
|
|
19326
|
+
link: cx(suit$d({
|
|
19249
19327
|
descendantName: 'link'
|
|
19250
19328
|
}), userCssClasses.link),
|
|
19251
|
-
label: cx(suit$
|
|
19329
|
+
label: cx(suit$d({
|
|
19252
19330
|
descendantName: 'label'
|
|
19253
19331
|
}), userCssClasses.label),
|
|
19254
|
-
count: cx(suit$
|
|
19332
|
+
count: cx(suit$d({
|
|
19255
19333
|
descendantName: 'count'
|
|
19256
19334
|
}), userCssClasses.count),
|
|
19257
|
-
showMore: cx(suit$
|
|
19335
|
+
showMore: cx(suit$d({
|
|
19258
19336
|
descendantName: 'showMore'
|
|
19259
19337
|
}), userCssClasses.showMore),
|
|
19260
|
-
disabledShowMore: cx(suit$
|
|
19338
|
+
disabledShowMore: cx(suit$d({
|
|
19261
19339
|
descendantName: 'showMore',
|
|
19262
19340
|
modifierName: 'disabled'
|
|
19263
19341
|
}), userCssClasses.disabledShowMore)
|
|
@@ -19338,7 +19416,7 @@
|
|
|
19338
19416
|
var withUsage$E = createDocumentationMessageGenerator({
|
|
19339
19417
|
name: 'menu-select'
|
|
19340
19418
|
});
|
|
19341
|
-
var suit$
|
|
19419
|
+
var suit$e = component('MenuSelect');
|
|
19342
19420
|
var renderer$a = function renderer(_ref) {
|
|
19343
19421
|
var containerNode = _ref.containerNode,
|
|
19344
19422
|
cssClasses = _ref.cssClasses,
|
|
@@ -19382,14 +19460,14 @@
|
|
|
19382
19460
|
}
|
|
19383
19461
|
var containerNode = getContainerNode(container);
|
|
19384
19462
|
var cssClasses = {
|
|
19385
|
-
root: cx(suit$
|
|
19386
|
-
noRefinementRoot: cx(suit$
|
|
19463
|
+
root: cx(suit$e(), userCssClasses.root),
|
|
19464
|
+
noRefinementRoot: cx(suit$e({
|
|
19387
19465
|
modifierName: 'noRefinement'
|
|
19388
19466
|
}), userCssClasses.noRefinementRoot),
|
|
19389
|
-
select: cx(suit$
|
|
19467
|
+
select: cx(suit$e({
|
|
19390
19468
|
descendantName: 'select'
|
|
19391
19469
|
}), userCssClasses.select),
|
|
19392
|
-
option: cx(suit$
|
|
19470
|
+
option: cx(suit$e({
|
|
19393
19471
|
descendantName: 'option'
|
|
19394
19472
|
}), userCssClasses.option)
|
|
19395
19473
|
};
|
|
@@ -19434,7 +19512,7 @@
|
|
|
19434
19512
|
var withUsage$F = createDocumentationMessageGenerator({
|
|
19435
19513
|
name: 'numeric-menu'
|
|
19436
19514
|
});
|
|
19437
|
-
var suit$
|
|
19515
|
+
var suit$f = component('NumericMenu');
|
|
19438
19516
|
var renderer$b = function renderer(_ref) {
|
|
19439
19517
|
var containerNode = _ref.containerNode,
|
|
19440
19518
|
attribute = _ref.attribute,
|
|
@@ -19479,27 +19557,27 @@
|
|
|
19479
19557
|
}
|
|
19480
19558
|
var containerNode = getContainerNode(container);
|
|
19481
19559
|
var cssClasses = {
|
|
19482
|
-
root: cx(suit$
|
|
19483
|
-
noRefinementRoot: cx(suit$
|
|
19560
|
+
root: cx(suit$f(), userCssClasses.root),
|
|
19561
|
+
noRefinementRoot: cx(suit$f({
|
|
19484
19562
|
modifierName: 'noRefinement'
|
|
19485
19563
|
}), userCssClasses.noRefinementRoot),
|
|
19486
|
-
list: cx(suit$
|
|
19564
|
+
list: cx(suit$f({
|
|
19487
19565
|
descendantName: 'list'
|
|
19488
19566
|
}), userCssClasses.list),
|
|
19489
|
-
item: cx(suit$
|
|
19567
|
+
item: cx(suit$f({
|
|
19490
19568
|
descendantName: 'item'
|
|
19491
19569
|
}), userCssClasses.item),
|
|
19492
|
-
selectedItem: cx(suit$
|
|
19570
|
+
selectedItem: cx(suit$f({
|
|
19493
19571
|
descendantName: 'item',
|
|
19494
19572
|
modifierName: 'selected'
|
|
19495
19573
|
}), userCssClasses.selectedItem),
|
|
19496
|
-
label: cx(suit$
|
|
19574
|
+
label: cx(suit$f({
|
|
19497
19575
|
descendantName: 'label'
|
|
19498
19576
|
}), userCssClasses.label),
|
|
19499
|
-
radio: cx(suit$
|
|
19577
|
+
radio: cx(suit$f({
|
|
19500
19578
|
descendantName: 'radio'
|
|
19501
19579
|
}), userCssClasses.radio),
|
|
19502
|
-
labelText: cx(suit$
|
|
19580
|
+
labelText: cx(suit$f({
|
|
19503
19581
|
descendantName: 'labelText'
|
|
19504
19582
|
}), userCssClasses.labelText)
|
|
19505
19583
|
};
|
|
@@ -19635,7 +19713,7 @@
|
|
|
19635
19713
|
}));
|
|
19636
19714
|
}
|
|
19637
19715
|
|
|
19638
|
-
var suit$
|
|
19716
|
+
var suit$g = component('Pagination');
|
|
19639
19717
|
var withUsage$G = createDocumentationMessageGenerator({
|
|
19640
19718
|
name: 'pagination'
|
|
19641
19719
|
});
|
|
@@ -19724,45 +19802,45 @@
|
|
|
19724
19802
|
var scrollTo = userScrollTo === true ? 'body' : userScrollTo;
|
|
19725
19803
|
var scrollToNode = scrollTo !== false ? getContainerNode(scrollTo) : false;
|
|
19726
19804
|
var cssClasses = {
|
|
19727
|
-
root: cx(suit$
|
|
19728
|
-
noRefinementRoot: cx(suit$
|
|
19805
|
+
root: cx(suit$g(), userCssClasses.root),
|
|
19806
|
+
noRefinementRoot: cx(suit$g({
|
|
19729
19807
|
modifierName: 'noRefinement'
|
|
19730
19808
|
}), userCssClasses.noRefinementRoot),
|
|
19731
|
-
list: cx(suit$
|
|
19809
|
+
list: cx(suit$g({
|
|
19732
19810
|
descendantName: 'list'
|
|
19733
19811
|
}), userCssClasses.list),
|
|
19734
|
-
item: cx(suit$
|
|
19812
|
+
item: cx(suit$g({
|
|
19735
19813
|
descendantName: 'item'
|
|
19736
19814
|
}), userCssClasses.item),
|
|
19737
|
-
firstPageItem: cx(suit$
|
|
19815
|
+
firstPageItem: cx(suit$g({
|
|
19738
19816
|
descendantName: 'item',
|
|
19739
19817
|
modifierName: 'firstPage'
|
|
19740
19818
|
}), userCssClasses.firstPageItem),
|
|
19741
|
-
lastPageItem: cx(suit$
|
|
19819
|
+
lastPageItem: cx(suit$g({
|
|
19742
19820
|
descendantName: 'item',
|
|
19743
19821
|
modifierName: 'lastPage'
|
|
19744
19822
|
}), userCssClasses.lastPageItem),
|
|
19745
|
-
previousPageItem: cx(suit$
|
|
19823
|
+
previousPageItem: cx(suit$g({
|
|
19746
19824
|
descendantName: 'item',
|
|
19747
19825
|
modifierName: 'previousPage'
|
|
19748
19826
|
}), userCssClasses.previousPageItem),
|
|
19749
|
-
nextPageItem: cx(suit$
|
|
19827
|
+
nextPageItem: cx(suit$g({
|
|
19750
19828
|
descendantName: 'item',
|
|
19751
19829
|
modifierName: 'nextPage'
|
|
19752
19830
|
}), userCssClasses.nextPageItem),
|
|
19753
|
-
pageItem: cx(suit$
|
|
19831
|
+
pageItem: cx(suit$g({
|
|
19754
19832
|
descendantName: 'item',
|
|
19755
19833
|
modifierName: 'page'
|
|
19756
19834
|
}), userCssClasses.pageItem),
|
|
19757
|
-
selectedItem: cx(suit$
|
|
19835
|
+
selectedItem: cx(suit$g({
|
|
19758
19836
|
descendantName: 'item',
|
|
19759
19837
|
modifierName: 'selected'
|
|
19760
19838
|
}), userCssClasses.selectedItem),
|
|
19761
|
-
disabledItem: cx(suit$
|
|
19839
|
+
disabledItem: cx(suit$g({
|
|
19762
19840
|
descendantName: 'item',
|
|
19763
19841
|
modifierName: 'disabled'
|
|
19764
19842
|
}), userCssClasses.disabledItem),
|
|
19765
|
-
link: cx(suit$
|
|
19843
|
+
link: cx(suit$g({
|
|
19766
19844
|
descendantName: 'link'
|
|
19767
19845
|
}), userCssClasses.link)
|
|
19768
19846
|
};
|
|
@@ -19856,7 +19934,7 @@
|
|
|
19856
19934
|
var withUsage$H = createDocumentationMessageGenerator({
|
|
19857
19935
|
name: 'panel'
|
|
19858
19936
|
});
|
|
19859
|
-
var suit$
|
|
19937
|
+
var suit$h = component('Panel');
|
|
19860
19938
|
var renderer$d = function renderer(_ref) {
|
|
19861
19939
|
var containerNode = _ref.containerNode,
|
|
19862
19940
|
bodyContainerNode = _ref.bodyContainerNode,
|
|
@@ -19901,29 +19979,29 @@
|
|
|
19901
19979
|
return false;
|
|
19902
19980
|
};
|
|
19903
19981
|
var cssClasses = {
|
|
19904
|
-
root: cx(suit$
|
|
19905
|
-
noRefinementRoot: cx(suit$
|
|
19982
|
+
root: cx(suit$h(), userCssClasses.root),
|
|
19983
|
+
noRefinementRoot: cx(suit$h({
|
|
19906
19984
|
modifierName: 'noRefinement'
|
|
19907
19985
|
}), userCssClasses.noRefinementRoot),
|
|
19908
|
-
collapsibleRoot: cx(suit$
|
|
19986
|
+
collapsibleRoot: cx(suit$h({
|
|
19909
19987
|
modifierName: 'collapsible'
|
|
19910
19988
|
}), userCssClasses.collapsibleRoot),
|
|
19911
|
-
collapsedRoot: cx(suit$
|
|
19989
|
+
collapsedRoot: cx(suit$h({
|
|
19912
19990
|
modifierName: 'collapsed'
|
|
19913
19991
|
}), userCssClasses.collapsedRoot),
|
|
19914
|
-
collapseButton: cx(suit$
|
|
19992
|
+
collapseButton: cx(suit$h({
|
|
19915
19993
|
descendantName: 'collapseButton'
|
|
19916
19994
|
}), userCssClasses.collapseButton),
|
|
19917
|
-
collapseIcon: cx(suit$
|
|
19995
|
+
collapseIcon: cx(suit$h({
|
|
19918
19996
|
descendantName: 'collapseIcon'
|
|
19919
19997
|
}), userCssClasses.collapseIcon),
|
|
19920
|
-
body: cx(suit$
|
|
19998
|
+
body: cx(suit$h({
|
|
19921
19999
|
descendantName: 'body'
|
|
19922
20000
|
}), userCssClasses.body),
|
|
19923
|
-
header: cx(suit$
|
|
20001
|
+
header: cx(suit$h({
|
|
19924
20002
|
descendantName: 'header'
|
|
19925
20003
|
}), userCssClasses.header),
|
|
19926
|
-
footer: cx(suit$
|
|
20004
|
+
footer: cx(suit$h({
|
|
19927
20005
|
descendantName: 'footer'
|
|
19928
20006
|
}), userCssClasses.footer)
|
|
19929
20007
|
};
|
|
@@ -20004,21 +20082,23 @@
|
|
|
20004
20082
|
};
|
|
20005
20083
|
};
|
|
20006
20084
|
|
|
20007
|
-
var _excluded$
|
|
20085
|
+
var _excluded$n = ["placesReference", "defaultPosition"],
|
|
20008
20086
|
_excluded2$5 = ["places"];
|
|
20087
|
+
|
|
20009
20088
|
/* Places.js is an optional dependency, no error should be reported if the package is missing */
|
|
20010
20089
|
/** @ts-ignore */
|
|
20011
20090
|
// using the type like this requires only one ts-ignore
|
|
20012
20091
|
/**
|
|
20013
20092
|
* This widget sets the geolocation value for the search based on the selected
|
|
20014
20093
|
* result in the Algolia Places autocomplete.
|
|
20094
|
+
* @deprecated the places service is no longer offered, and this widget will be removed in InstantSearch.js v5
|
|
20015
20095
|
*/
|
|
20016
20096
|
var placesWidget = function placesWidget(widgetParams) {
|
|
20017
20097
|
var _ref = widgetParams || {},
|
|
20018
20098
|
placesReference = _ref.placesReference,
|
|
20019
20099
|
_ref$defaultPosition = _ref.defaultPosition,
|
|
20020
20100
|
defaultPosition = _ref$defaultPosition === void 0 ? [] : _ref$defaultPosition,
|
|
20021
|
-
placesOptions = _objectWithoutProperties(_ref, _excluded$
|
|
20101
|
+
placesOptions = _objectWithoutProperties(_ref, _excluded$n);
|
|
20022
20102
|
if (typeof placesReference !== 'function') {
|
|
20023
20103
|
throw new Error('The `placesReference` option requires a valid Places.js reference.');
|
|
20024
20104
|
}
|
|
@@ -20097,6 +20177,7 @@
|
|
|
20097
20177
|
}
|
|
20098
20178
|
};
|
|
20099
20179
|
};
|
|
20180
|
+
var places = deprecate(placesWidget, 'The places widget is deprecated and will be removed in InstantSearch.js 5.0.');
|
|
20100
20181
|
|
|
20101
20182
|
var PoweredBy = function PoweredBy(_ref) {
|
|
20102
20183
|
var url = _ref.url,
|
|
@@ -20129,7 +20210,7 @@
|
|
|
20129
20210
|
}))));
|
|
20130
20211
|
};
|
|
20131
20212
|
|
|
20132
|
-
var suit$
|
|
20213
|
+
var suit$i = component('PoweredBy');
|
|
20133
20214
|
var withUsage$I = createDocumentationMessageGenerator({
|
|
20134
20215
|
name: 'powered-by'
|
|
20135
20216
|
});
|
|
@@ -20163,13 +20244,13 @@
|
|
|
20163
20244
|
}
|
|
20164
20245
|
var containerNode = getContainerNode(container);
|
|
20165
20246
|
var cssClasses = {
|
|
20166
|
-
root: cx(suit$
|
|
20247
|
+
root: cx(suit$i(), suit$i({
|
|
20167
20248
|
modifierName: theme === 'dark' ? 'dark' : 'light'
|
|
20168
20249
|
}), userCssClasses.root),
|
|
20169
|
-
link: cx(suit$
|
|
20250
|
+
link: cx(suit$i({
|
|
20170
20251
|
descendantName: 'link'
|
|
20171
20252
|
}), userCssClasses.link),
|
|
20172
|
-
logo: cx(suit$
|
|
20253
|
+
logo: cx(suit$i({
|
|
20173
20254
|
descendantName: 'logo'
|
|
20174
20255
|
}), userCssClasses.logo)
|
|
20175
20256
|
};
|
|
@@ -20225,7 +20306,7 @@
|
|
|
20225
20306
|
var withUsage$K = createDocumentationMessageGenerator({
|
|
20226
20307
|
name: 'query-rule-custom-data'
|
|
20227
20308
|
});
|
|
20228
|
-
var suit$
|
|
20309
|
+
var suit$j = component('QueryRuleCustomData');
|
|
20229
20310
|
var renderer$f = function renderer(_ref2) {
|
|
20230
20311
|
var containerNode = _ref2.containerNode,
|
|
20231
20312
|
cssClasses = _ref2.cssClasses,
|
|
@@ -20254,7 +20335,7 @@
|
|
|
20254
20335
|
throw new Error(withUsage$K('The `container` option is required.'));
|
|
20255
20336
|
}
|
|
20256
20337
|
var cssClasses = {
|
|
20257
|
-
root: cx(suit$
|
|
20338
|
+
root: cx(suit$j(), userCssClasses.root)
|
|
20258
20339
|
};
|
|
20259
20340
|
var containerNode = getContainerNode(container);
|
|
20260
20341
|
var templates = _objectSpread2(_objectSpread2({}, defaultTemplates$b), userTemplates);
|
|
@@ -20387,7 +20468,7 @@
|
|
|
20387
20468
|
var withUsage$L = createDocumentationMessageGenerator({
|
|
20388
20469
|
name: 'range-input'
|
|
20389
20470
|
});
|
|
20390
|
-
var suit$
|
|
20471
|
+
var suit$k = component('RangeInput');
|
|
20391
20472
|
var defaultTemplates$c = {
|
|
20392
20473
|
separatorText: function separatorText() {
|
|
20393
20474
|
return 'to';
|
|
@@ -20453,31 +20534,31 @@
|
|
|
20453
20534
|
}
|
|
20454
20535
|
var containerNode = getContainerNode(container);
|
|
20455
20536
|
var cssClasses = {
|
|
20456
|
-
root: cx(suit$
|
|
20457
|
-
noRefinement: cx(suit$
|
|
20537
|
+
root: cx(suit$k(), userCssClasses.root),
|
|
20538
|
+
noRefinement: cx(suit$k({
|
|
20458
20539
|
modifierName: 'noRefinement'
|
|
20459
20540
|
})),
|
|
20460
|
-
form: cx(suit$
|
|
20541
|
+
form: cx(suit$k({
|
|
20461
20542
|
descendantName: 'form'
|
|
20462
20543
|
}), userCssClasses.form),
|
|
20463
|
-
label: cx(suit$
|
|
20544
|
+
label: cx(suit$k({
|
|
20464
20545
|
descendantName: 'label'
|
|
20465
20546
|
}), userCssClasses.label),
|
|
20466
|
-
input: cx(suit$
|
|
20547
|
+
input: cx(suit$k({
|
|
20467
20548
|
descendantName: 'input'
|
|
20468
20549
|
}), userCssClasses.input),
|
|
20469
|
-
inputMin: cx(suit$
|
|
20550
|
+
inputMin: cx(suit$k({
|
|
20470
20551
|
descendantName: 'input',
|
|
20471
20552
|
modifierName: 'min'
|
|
20472
20553
|
}), userCssClasses.inputMin),
|
|
20473
|
-
inputMax: cx(suit$
|
|
20554
|
+
inputMax: cx(suit$k({
|
|
20474
20555
|
descendantName: 'input',
|
|
20475
20556
|
modifierName: 'max'
|
|
20476
20557
|
}), userCssClasses.inputMax),
|
|
20477
|
-
separator: cx(suit$
|
|
20558
|
+
separator: cx(suit$k({
|
|
20478
20559
|
descendantName: 'separator'
|
|
20479
20560
|
}), userCssClasses.separator),
|
|
20480
|
-
submit: cx(suit$
|
|
20561
|
+
submit: cx(suit$k({
|
|
20481
20562
|
descendantName: 'submit'
|
|
20482
20563
|
}), userCssClasses.submit)
|
|
20483
20564
|
};
|
|
@@ -21175,7 +21256,7 @@
|
|
|
21175
21256
|
var withUsage$M = createDocumentationMessageGenerator({
|
|
21176
21257
|
name: 'range-slider'
|
|
21177
21258
|
});
|
|
21178
|
-
var suit$
|
|
21259
|
+
var suit$l = component('RangeSlider');
|
|
21179
21260
|
var renderer$h = function renderer(_ref) {
|
|
21180
21261
|
var containerNode = _ref.containerNode,
|
|
21181
21262
|
cssClasses = _ref.cssClasses,
|
|
@@ -21245,8 +21326,8 @@
|
|
|
21245
21326
|
}
|
|
21246
21327
|
var containerNode = getContainerNode(container);
|
|
21247
21328
|
var cssClasses = {
|
|
21248
|
-
root: cx(suit$
|
|
21249
|
-
disabledRoot: cx(suit$
|
|
21329
|
+
root: cx(suit$l(), userCssClasses.root),
|
|
21330
|
+
disabledRoot: cx(suit$l({
|
|
21250
21331
|
modifierName: 'disabled'
|
|
21251
21332
|
}), userCssClasses.disabledRoot)
|
|
21252
21333
|
};
|
|
@@ -21323,7 +21404,7 @@
|
|
|
21323
21404
|
var withUsage$N = createDocumentationMessageGenerator({
|
|
21324
21405
|
name: 'rating-menu'
|
|
21325
21406
|
});
|
|
21326
|
-
var suit$
|
|
21407
|
+
var suit$m = component('RatingMenu');
|
|
21327
21408
|
var _ref3 = h("path", {
|
|
21328
21409
|
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"
|
|
21329
21410
|
});
|
|
@@ -21357,12 +21438,12 @@
|
|
|
21357
21438
|
}, h("svg", {
|
|
21358
21439
|
style: "display:none;"
|
|
21359
21440
|
}, h("symbol", {
|
|
21360
|
-
id: suit$
|
|
21441
|
+
id: suit$m({
|
|
21361
21442
|
descendantName: 'starSymbol'
|
|
21362
21443
|
}),
|
|
21363
21444
|
viewBox: "0 0 24 24"
|
|
21364
21445
|
}, _ref3), h("symbol", {
|
|
21365
|
-
id: suit$
|
|
21446
|
+
id: suit$m({
|
|
21366
21447
|
descendantName: 'starEmptySymbol'
|
|
21367
21448
|
}),
|
|
21368
21449
|
viewBox: "0 0 24 24"
|
|
@@ -21412,42 +21493,42 @@
|
|
|
21412
21493
|
}
|
|
21413
21494
|
var containerNode = getContainerNode(container);
|
|
21414
21495
|
var cssClasses = {
|
|
21415
|
-
root: cx(suit$
|
|
21416
|
-
noRefinementRoot: cx(suit$
|
|
21496
|
+
root: cx(suit$m(), userCssClasses.root),
|
|
21497
|
+
noRefinementRoot: cx(suit$m({
|
|
21417
21498
|
modifierName: 'noRefinement'
|
|
21418
21499
|
}), userCssClasses.noRefinementRoot),
|
|
21419
|
-
list: cx(suit$
|
|
21500
|
+
list: cx(suit$m({
|
|
21420
21501
|
descendantName: 'list'
|
|
21421
21502
|
}), userCssClasses.list),
|
|
21422
|
-
item: cx(suit$
|
|
21503
|
+
item: cx(suit$m({
|
|
21423
21504
|
descendantName: 'item'
|
|
21424
21505
|
}), userCssClasses.item),
|
|
21425
|
-
selectedItem: cx(suit$
|
|
21506
|
+
selectedItem: cx(suit$m({
|
|
21426
21507
|
descendantName: 'item',
|
|
21427
21508
|
modifierName: 'selected'
|
|
21428
21509
|
}), userCssClasses.selectedItem),
|
|
21429
|
-
disabledItem: cx(suit$
|
|
21510
|
+
disabledItem: cx(suit$m({
|
|
21430
21511
|
descendantName: 'item',
|
|
21431
21512
|
modifierName: 'disabled'
|
|
21432
21513
|
}), userCssClasses.disabledItem),
|
|
21433
|
-
link: cx(suit$
|
|
21514
|
+
link: cx(suit$m({
|
|
21434
21515
|
descendantName: 'link'
|
|
21435
21516
|
}), userCssClasses.link),
|
|
21436
|
-
starIcon: cx(suit$
|
|
21517
|
+
starIcon: cx(suit$m({
|
|
21437
21518
|
descendantName: 'starIcon'
|
|
21438
21519
|
}), userCssClasses.starIcon),
|
|
21439
|
-
fullStarIcon: cx(suit$
|
|
21520
|
+
fullStarIcon: cx(suit$m({
|
|
21440
21521
|
descendantName: 'starIcon',
|
|
21441
21522
|
modifierName: 'full'
|
|
21442
21523
|
}), userCssClasses.fullStarIcon),
|
|
21443
|
-
emptyStarIcon: cx(suit$
|
|
21524
|
+
emptyStarIcon: cx(suit$m({
|
|
21444
21525
|
descendantName: 'starIcon',
|
|
21445
21526
|
modifierName: 'empty'
|
|
21446
21527
|
}), userCssClasses.emptyStarIcon),
|
|
21447
|
-
label: cx(suit$
|
|
21528
|
+
label: cx(suit$m({
|
|
21448
21529
|
descendantName: 'label'
|
|
21449
21530
|
}), userCssClasses.label),
|
|
21450
|
-
count: cx(suit$
|
|
21531
|
+
count: cx(suit$m({
|
|
21451
21532
|
descendantName: 'count'
|
|
21452
21533
|
}), userCssClasses.count)
|
|
21453
21534
|
};
|
|
@@ -21571,7 +21652,7 @@
|
|
|
21571
21652
|
var withUsage$O = createDocumentationMessageGenerator({
|
|
21572
21653
|
name: 'refinement-list'
|
|
21573
21654
|
});
|
|
21574
|
-
var suit$
|
|
21655
|
+
var suit$n = component('RefinementList');
|
|
21575
21656
|
var searchBoxSuit = component('SearchBox');
|
|
21576
21657
|
var renderer$j = function renderer(_ref) {
|
|
21577
21658
|
var containerNode = _ref.containerNode,
|
|
@@ -21673,42 +21754,42 @@
|
|
|
21673
21754
|
var escapeFacetValues = searchable ? Boolean(searchableEscapeFacetValues) : false;
|
|
21674
21755
|
var containerNode = getContainerNode(container);
|
|
21675
21756
|
var cssClasses = {
|
|
21676
|
-
root: cx(suit$
|
|
21677
|
-
noRefinementRoot: cx(suit$
|
|
21757
|
+
root: cx(suit$n(), userCssClasses.root),
|
|
21758
|
+
noRefinementRoot: cx(suit$n({
|
|
21678
21759
|
modifierName: 'noRefinement'
|
|
21679
21760
|
}), userCssClasses.noRefinementRoot),
|
|
21680
|
-
list: cx(suit$
|
|
21761
|
+
list: cx(suit$n({
|
|
21681
21762
|
descendantName: 'list'
|
|
21682
21763
|
}), userCssClasses.list),
|
|
21683
|
-
item: cx(suit$
|
|
21764
|
+
item: cx(suit$n({
|
|
21684
21765
|
descendantName: 'item'
|
|
21685
21766
|
}), userCssClasses.item),
|
|
21686
|
-
selectedItem: cx(suit$
|
|
21767
|
+
selectedItem: cx(suit$n({
|
|
21687
21768
|
descendantName: 'item',
|
|
21688
21769
|
modifierName: 'selected'
|
|
21689
21770
|
}), userCssClasses.selectedItem),
|
|
21690
|
-
searchBox: cx(suit$
|
|
21771
|
+
searchBox: cx(suit$n({
|
|
21691
21772
|
descendantName: 'searchBox'
|
|
21692
21773
|
}), userCssClasses.searchBox),
|
|
21693
|
-
label: cx(suit$
|
|
21774
|
+
label: cx(suit$n({
|
|
21694
21775
|
descendantName: 'label'
|
|
21695
21776
|
}), userCssClasses.label),
|
|
21696
|
-
checkbox: cx(suit$
|
|
21777
|
+
checkbox: cx(suit$n({
|
|
21697
21778
|
descendantName: 'checkbox'
|
|
21698
21779
|
}), userCssClasses.checkbox),
|
|
21699
|
-
labelText: cx(suit$
|
|
21780
|
+
labelText: cx(suit$n({
|
|
21700
21781
|
descendantName: 'labelText'
|
|
21701
21782
|
}), userCssClasses.labelText),
|
|
21702
|
-
count: cx(suit$
|
|
21783
|
+
count: cx(suit$n({
|
|
21703
21784
|
descendantName: 'count'
|
|
21704
21785
|
}), userCssClasses.count),
|
|
21705
|
-
noResults: cx(suit$
|
|
21786
|
+
noResults: cx(suit$n({
|
|
21706
21787
|
descendantName: 'noResults'
|
|
21707
21788
|
}), userCssClasses.noResults),
|
|
21708
|
-
showMore: cx(suit$
|
|
21789
|
+
showMore: cx(suit$n({
|
|
21709
21790
|
descendantName: 'showMore'
|
|
21710
21791
|
}), userCssClasses.showMore),
|
|
21711
|
-
disabledShowMore: cx(suit$
|
|
21792
|
+
disabledShowMore: cx(suit$n({
|
|
21712
21793
|
descendantName: 'showMore',
|
|
21713
21794
|
modifierName: 'disabled'
|
|
21714
21795
|
}), userCssClasses.disabledShowMore),
|
|
@@ -21822,7 +21903,7 @@
|
|
|
21822
21903
|
var withUsage$P = createDocumentationMessageGenerator({
|
|
21823
21904
|
name: 'relevant-sort'
|
|
21824
21905
|
});
|
|
21825
|
-
var suit$
|
|
21906
|
+
var suit$o = component('RelevantSort');
|
|
21826
21907
|
var renderer$k = function renderer(_ref) {
|
|
21827
21908
|
var containerNode = _ref.containerNode,
|
|
21828
21909
|
cssClasses = _ref.cssClasses,
|
|
@@ -21851,11 +21932,11 @@
|
|
|
21851
21932
|
}
|
|
21852
21933
|
var containerNode = getContainerNode(container);
|
|
21853
21934
|
var cssClasses = {
|
|
21854
|
-
root: cx(suit$
|
|
21855
|
-
text: cx(suit$
|
|
21935
|
+
root: cx(suit$o(), userCssClasses.root),
|
|
21936
|
+
text: cx(suit$o({
|
|
21856
21937
|
descendantName: 'text'
|
|
21857
21938
|
}), userCssClasses.text),
|
|
21858
|
-
button: cx(suit$
|
|
21939
|
+
button: cx(suit$o({
|
|
21859
21940
|
descendantName: 'button'
|
|
21860
21941
|
}), userCssClasses.button)
|
|
21861
21942
|
};
|
|
@@ -21877,7 +21958,7 @@
|
|
|
21877
21958
|
var withUsage$Q = createDocumentationMessageGenerator({
|
|
21878
21959
|
name: 'search-box'
|
|
21879
21960
|
});
|
|
21880
|
-
var suit$
|
|
21961
|
+
var suit$p = component('SearchBox');
|
|
21881
21962
|
var renderer$l = function renderer(_ref) {
|
|
21882
21963
|
var containerNode = _ref.containerNode,
|
|
21883
21964
|
cssClasses = _ref.cssClasses,
|
|
@@ -21946,29 +22027,29 @@
|
|
|
21946
22027
|
}
|
|
21947
22028
|
var containerNode = getContainerNode(container);
|
|
21948
22029
|
var cssClasses = {
|
|
21949
|
-
root: cx(suit$
|
|
21950
|
-
form: cx(suit$
|
|
22030
|
+
root: cx(suit$p(), userCssClasses.root),
|
|
22031
|
+
form: cx(suit$p({
|
|
21951
22032
|
descendantName: 'form'
|
|
21952
22033
|
}), userCssClasses.form),
|
|
21953
|
-
input: cx(suit$
|
|
22034
|
+
input: cx(suit$p({
|
|
21954
22035
|
descendantName: 'input'
|
|
21955
22036
|
}), userCssClasses.input),
|
|
21956
|
-
submit: cx(suit$
|
|
22037
|
+
submit: cx(suit$p({
|
|
21957
22038
|
descendantName: 'submit'
|
|
21958
22039
|
}), userCssClasses.submit),
|
|
21959
|
-
submitIcon: cx(suit$
|
|
22040
|
+
submitIcon: cx(suit$p({
|
|
21960
22041
|
descendantName: 'submitIcon'
|
|
21961
22042
|
}), userCssClasses.submitIcon),
|
|
21962
|
-
reset: cx(suit$
|
|
22043
|
+
reset: cx(suit$p({
|
|
21963
22044
|
descendantName: 'reset'
|
|
21964
22045
|
}), userCssClasses.reset),
|
|
21965
|
-
resetIcon: cx(suit$
|
|
22046
|
+
resetIcon: cx(suit$p({
|
|
21966
22047
|
descendantName: 'resetIcon'
|
|
21967
22048
|
}), userCssClasses.resetIcon),
|
|
21968
|
-
loadingIndicator: cx(suit$
|
|
22049
|
+
loadingIndicator: cx(suit$p({
|
|
21969
22050
|
descendantName: 'loadingIndicator'
|
|
21970
22051
|
}), userCssClasses.loadingIndicator),
|
|
21971
|
-
loadingIcon: cx(suit$
|
|
22052
|
+
loadingIcon: cx(suit$p({
|
|
21972
22053
|
descendantName: 'loadingIcon'
|
|
21973
22054
|
}), userCssClasses.loadingIcon)
|
|
21974
22055
|
};
|
|
@@ -21998,7 +22079,7 @@
|
|
|
21998
22079
|
var withUsage$R = createDocumentationMessageGenerator({
|
|
21999
22080
|
name: 'sort-by'
|
|
22000
22081
|
});
|
|
22001
|
-
var suit$
|
|
22082
|
+
var suit$q = component('SortBy');
|
|
22002
22083
|
var renderer$m = function renderer(_ref) {
|
|
22003
22084
|
var containerNode = _ref.containerNode,
|
|
22004
22085
|
cssClasses = _ref.cssClasses;
|
|
@@ -22037,11 +22118,11 @@
|
|
|
22037
22118
|
}
|
|
22038
22119
|
var containerNode = getContainerNode(container);
|
|
22039
22120
|
var cssClasses = {
|
|
22040
|
-
root: cx(suit$
|
|
22041
|
-
select: cx(suit$
|
|
22121
|
+
root: cx(suit$q(), userCssClasses.root),
|
|
22122
|
+
select: cx(suit$q({
|
|
22042
22123
|
descendantName: 'select'
|
|
22043
22124
|
}), userCssClasses.select),
|
|
22044
|
-
option: cx(suit$
|
|
22125
|
+
option: cx(suit$q({
|
|
22045
22126
|
descendantName: 'option'
|
|
22046
22127
|
}), userCssClasses.option)
|
|
22047
22128
|
};
|
|
@@ -22061,13 +22142,13 @@
|
|
|
22061
22142
|
});
|
|
22062
22143
|
};
|
|
22063
22144
|
|
|
22064
|
-
var _excluded$
|
|
22145
|
+
var _excluded$o = ["nbHits", "nbSortedHits", "cssClasses", "templateProps"];
|
|
22065
22146
|
var Stats = function Stats(_ref) {
|
|
22066
22147
|
var nbHits = _ref.nbHits,
|
|
22067
22148
|
nbSortedHits = _ref.nbSortedHits,
|
|
22068
22149
|
cssClasses = _ref.cssClasses,
|
|
22069
22150
|
templateProps = _ref.templateProps,
|
|
22070
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
22151
|
+
rest = _objectWithoutProperties(_ref, _excluded$o);
|
|
22071
22152
|
return h("div", {
|
|
22072
22153
|
className: cx(cssClasses.root)
|
|
22073
22154
|
}, h(Template, _extends({}, templateProps, {
|
|
@@ -22093,7 +22174,7 @@
|
|
|
22093
22174
|
var withUsage$S = createDocumentationMessageGenerator({
|
|
22094
22175
|
name: 'stats'
|
|
22095
22176
|
});
|
|
22096
|
-
var suit$
|
|
22177
|
+
var suit$r = component('Stats');
|
|
22097
22178
|
var defaultTemplates$g = {
|
|
22098
22179
|
text: function text(props) {
|
|
22099
22180
|
return "".concat(props.areHitsSorted ? getSortedResultsSentence(props) : getResultsSentence(props), " found in ").concat(props.processingTimeMS, "ms");
|
|
@@ -22189,8 +22270,8 @@
|
|
|
22189
22270
|
}
|
|
22190
22271
|
var containerNode = getContainerNode(container);
|
|
22191
22272
|
var cssClasses = {
|
|
22192
|
-
root: cx(suit$
|
|
22193
|
-
text: cx(suit$
|
|
22273
|
+
root: cx(suit$r(), userCssClasses.root),
|
|
22274
|
+
text: cx(suit$r({
|
|
22194
22275
|
descendantName: 'text'
|
|
22195
22276
|
}), userCssClasses.text)
|
|
22196
22277
|
};
|
|
@@ -22246,7 +22327,7 @@
|
|
|
22246
22327
|
var withUsage$T = createDocumentationMessageGenerator({
|
|
22247
22328
|
name: 'toggle-refinement'
|
|
22248
22329
|
});
|
|
22249
|
-
var suit$
|
|
22330
|
+
var suit$s = component('ToggleRefinement');
|
|
22250
22331
|
var renderer$o = function renderer(_ref) {
|
|
22251
22332
|
var containerNode = _ref.containerNode,
|
|
22252
22333
|
cssClasses = _ref.cssClasses,
|
|
@@ -22300,14 +22381,14 @@
|
|
|
22300
22381
|
}
|
|
22301
22382
|
var containerNode = getContainerNode(container);
|
|
22302
22383
|
var cssClasses = {
|
|
22303
|
-
root: cx(suit$
|
|
22304
|
-
label: cx(suit$
|
|
22384
|
+
root: cx(suit$s(), userCssClasses.root),
|
|
22385
|
+
label: cx(suit$s({
|
|
22305
22386
|
descendantName: 'label'
|
|
22306
22387
|
}), userCssClasses.label),
|
|
22307
|
-
checkbox: cx(suit$
|
|
22388
|
+
checkbox: cx(suit$s({
|
|
22308
22389
|
descendantName: 'checkbox'
|
|
22309
22390
|
}), userCssClasses.checkbox),
|
|
22310
|
-
labelText: cx(suit$
|
|
22391
|
+
labelText: cx(suit$s({
|
|
22311
22392
|
descendantName: 'labelText'
|
|
22312
22393
|
}), userCssClasses.labelText)
|
|
22313
22394
|
};
|
|
@@ -22466,7 +22547,7 @@
|
|
|
22466
22547
|
var withUsage$U = createDocumentationMessageGenerator({
|
|
22467
22548
|
name: 'voice-search'
|
|
22468
22549
|
});
|
|
22469
|
-
var suit$
|
|
22550
|
+
var suit$t = component('VoiceSearch');
|
|
22470
22551
|
var renderer$p = function renderer(_ref) {
|
|
22471
22552
|
var containerNode = _ref.containerNode,
|
|
22472
22553
|
cssClasses = _ref.cssClasses,
|
|
@@ -22503,11 +22584,11 @@
|
|
|
22503
22584
|
}
|
|
22504
22585
|
var containerNode = getContainerNode(container);
|
|
22505
22586
|
var cssClasses = {
|
|
22506
|
-
root: cx(suit$
|
|
22507
|
-
button: cx(suit$
|
|
22587
|
+
root: cx(suit$t(), userCssClasses.root),
|
|
22588
|
+
button: cx(suit$t({
|
|
22508
22589
|
descendantName: 'button'
|
|
22509
22590
|
}), userCssClasses.button),
|
|
22510
|
-
status: cx(suit$
|
|
22591
|
+
status: cx(suit$t({
|
|
22511
22592
|
descendantName: 'status'
|
|
22512
22593
|
}), userCssClasses.status)
|
|
22513
22594
|
};
|
|
@@ -22534,7 +22615,7 @@
|
|
|
22534
22615
|
};
|
|
22535
22616
|
|
|
22536
22617
|
/** @deprecated answers is no longer supported */
|
|
22537
|
-
var EXPERIMENTAL_answers = deprecate(
|
|
22618
|
+
var EXPERIMENTAL_answers = deprecate(answers, 'answers is no longer supported');
|
|
22538
22619
|
|
|
22539
22620
|
/** @deprecated use dynamicWidgets */
|
|
22540
22621
|
var EXPERIMENTAL_dynamicWidgets = deprecate(dynamicWidgets, 'use dynamicWidgets');
|
|
@@ -22561,7 +22642,7 @@
|
|
|
22561
22642
|
numericMenu: numericMenu,
|
|
22562
22643
|
pagination: pagination,
|
|
22563
22644
|
panel: panel,
|
|
22564
|
-
places:
|
|
22645
|
+
places: places,
|
|
22565
22646
|
poweredBy: poweredBy,
|
|
22566
22647
|
queryRuleContext: queryRuleContext,
|
|
22567
22648
|
queryRuleCustomData: queryRuleCustomData,
|