@abi-software/map-side-bar 1.3.11 → 1.3.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/map-side-bar.common.js +17 -1
- package/dist/map-side-bar.common.js.map +1 -1
- package/dist/map-side-bar.umd.js +17 -1
- package/dist/map-side-bar.umd.js.map +1 -1
- package/dist/map-side-bar.umd.min.js +1 -1
- package/dist/map-side-bar.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/algolia/utils.js +5 -1
package/dist/map-side-bar.umd.js
CHANGED
|
@@ -240,6 +240,13 @@ module.exports = require("@abi-software/gallery");
|
|
|
240
240
|
|
|
241
241
|
/***/ }),
|
|
242
242
|
|
|
243
|
+
/***/ "3e88":
|
|
244
|
+
/***/ (function(module, exports) {
|
|
245
|
+
|
|
246
|
+
module.exports = require("core-js/modules/es.array.join");
|
|
247
|
+
|
|
248
|
+
/***/ }),
|
|
249
|
+
|
|
243
250
|
/***/ "429c":
|
|
244
251
|
/***/ (function(module, exports) {
|
|
245
252
|
|
|
@@ -1801,6 +1808,9 @@ function () {
|
|
|
1801
1808
|
|
|
1802
1809
|
return AlgoliaClient;
|
|
1803
1810
|
}();
|
|
1811
|
+
// EXTERNAL MODULE: external "core-js/modules/es.array.join"
|
|
1812
|
+
var es_array_join_ = __webpack_require__("3e88");
|
|
1813
|
+
|
|
1804
1814
|
// EXTERNAL MODULE: external "core-js/modules/es.array.last-index-of"
|
|
1805
1815
|
var es_array_last_index_of_ = __webpack_require__("dc05");
|
|
1806
1816
|
|
|
@@ -1813,6 +1823,9 @@ var es_array_last_index_of_ = __webpack_require__("dc05");
|
|
|
1813
1823
|
|
|
1814
1824
|
|
|
1815
1825
|
|
|
1826
|
+
|
|
1827
|
+
|
|
1828
|
+
|
|
1816
1829
|
/* eslint-disable no-alert, no-console */
|
|
1817
1830
|
// Mapping between display categories and their Algolia index property path
|
|
1818
1831
|
// Used for populating the Dataset Search Results facet menu dynamically
|
|
@@ -1872,9 +1885,12 @@ function getFilters() {
|
|
|
1872
1885
|
|
|
1873
1886
|
orFilters = "(".concat(orFilters.substring(0, orFilters.lastIndexOf(" OR ")), ")"); // remove last OR
|
|
1874
1887
|
|
|
1875
|
-
filters += "".concat(orFilters + andFilters, " AND "); // Put them together
|
|
1888
|
+
filters += "".concat(orFilters + andFilters, " AND "); // Put them together
|
|
1876
1889
|
// (Note that we add an extra AND in case there are facets at a higher level)
|
|
1890
|
+
|
|
1891
|
+
filters = filters.split('()AND ').join(''); // Handle case where there where no OR facets
|
|
1877
1892
|
});
|
|
1893
|
+
console.log('filter string: ', filters.substring(0, filters.lastIndexOf(" AND ")));
|
|
1878
1894
|
return filters.substring(0, filters.lastIndexOf(" AND "));
|
|
1879
1895
|
}
|
|
1880
1896
|
|