@appbaseio/reactivesearch-vue 1.35.0 → 1.35.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/dist/@appbaseio/reactivesearch-vue.umd.js +409 -371
- package/dist/@appbaseio/reactivesearch-vue.umd.js.map +1 -1
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js +6 -6
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js.map +1 -1
- package/dist/cjs/DataSearch.js +2 -2
- package/dist/cjs/ReactiveComponent.js +14 -4
- package/dist/cjs/{ReactiveComponentPrivate-6f03f300.js → ReactiveComponentPrivate-58fb2a97.js} +2 -2
- package/dist/cjs/ReactiveComponentPrivate.js +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/install.js +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/es/DataSearch.js +2 -2
- package/dist/es/ReactiveComponent.js +14 -4
- package/dist/es/{ReactiveComponentPrivate-4467524a.js → ReactiveComponentPrivate-ce4fdbbd.js} +2 -2
- package/dist/es/ReactiveComponentPrivate.js +1 -1
- package/dist/es/index.js +1 -1
- package/dist/es/install.js +1 -1
- package/dist/es/version.js +1 -1
- package/package.json +87 -87
|
@@ -16,7 +16,34 @@
|
|
|
16
16
|
return module = { exports: {} }, fn(module, module.exports), module.exports;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
+
function _typeof(obj) {
|
|
20
|
+
"@babel/helpers - typeof";
|
|
21
|
+
|
|
22
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
23
|
+
return typeof obj;
|
|
24
|
+
} : function (obj) {
|
|
25
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
26
|
+
}, _typeof(obj);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
function _toPrimitive(input, hint) {
|
|
30
|
+
if (_typeof(input) !== "object" || input === null) return input;
|
|
31
|
+
var prim = input[Symbol.toPrimitive];
|
|
32
|
+
if (prim !== undefined) {
|
|
33
|
+
var res = prim.call(input, hint || "default");
|
|
34
|
+
if (_typeof(res) !== "object") return res;
|
|
35
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
36
|
+
}
|
|
37
|
+
return (hint === "string" ? String : Number)(input);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
function _toPropertyKey(arg) {
|
|
41
|
+
var key = _toPrimitive(arg, "string");
|
|
42
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
|
43
|
+
}
|
|
44
|
+
|
|
19
45
|
function _defineProperty(obj, key, value) {
|
|
46
|
+
key = _toPropertyKey(key);
|
|
20
47
|
if (key in obj) {
|
|
21
48
|
Object.defineProperty(obj, key, {
|
|
22
49
|
value: value,
|
|
@@ -664,16 +691,6 @@
|
|
|
664
691
|
};
|
|
665
692
|
}
|
|
666
693
|
|
|
667
|
-
/*
|
|
668
|
-
* This is a dummy function to check if the function name has been altered by minification.
|
|
669
|
-
* If the function has been minified and NODE_ENV !== 'production', warn the user.
|
|
670
|
-
*/
|
|
671
|
-
|
|
672
|
-
function isCrushed() {}
|
|
673
|
-
if ( typeof isCrushed.name === 'string' && isCrushed.name !== 'isCrushed') {
|
|
674
|
-
warning('You are currently using minified code outside of NODE_ENV === "production". ' + 'This means that you are running a slower development build of Redux. ' + 'You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify ' + 'or setting mode to production in webpack (https://webpack.js.org/concepts/mode/) ' + 'to ensure you have the correct code for your production build.');
|
|
675
|
-
}
|
|
676
|
-
|
|
677
694
|
var redux = /*#__PURE__*/Object.freeze({
|
|
678
695
|
__proto__: null,
|
|
679
696
|
__DO_NOT_USE__ActionTypes: ActionTypes,
|
|
@@ -1163,7 +1180,7 @@
|
|
|
1163
1180
|
geo: 'geo',
|
|
1164
1181
|
suggestion: 'suggestion'
|
|
1165
1182
|
};
|
|
1166
|
-
var validProps = exports.validProps = ['type', 'componentType', 'aggregationField', 'aggregationSize', 'distinctField', 'distinctFieldConfig', 'index', 'aggregations', 'dataField', 'includeFields', 'excludeFields', 'size', 'from', 'sortBy', 'sortOptions', 'pagination', 'autoFocus', 'autosuggest', 'debounce', 'defaultValue', 'defaultSuggestions', 'fieldWeights', 'filterLabel', 'fuzziness', 'highlight', 'highlightConfig', 'highlightField', 'nestedField', 'placeholder', 'queryFormat', 'searchOperators', 'enableSynonyms', 'enableQuerySuggestions', 'queryString', 'categoryField', 'strictSelection', 'selectAllLabel', 'showCheckbox', 'showFilter', 'showSearch', 'showCount', 'showLoadMore', 'loadMoreLabel', 'showMissing', 'missingLabel', 'data', 'showRadio', 'multiSelect', 'includeNullValues', 'interval', 'showHistogram', 'snap', 'stepValue', 'range', 'showSlider', 'parseDate', 'calendarInterval', 'unit', 'enablePopularSuggestions', 'enableRecentSuggestions', 'popularSuggestionsConfig', 'recentSuggestionsConfig', 'indexSuggestionsConfig', 'featuredSuggestionsConfig', 'enablePredictiveSuggestions', 'applyStopwords', 'customStopwords', 'enableIndexSuggestions', 'enableFeaturedSuggestions', 'searchboxId', 'endpoint', 'enableEndpointSuggestions'];
|
|
1183
|
+
var validProps = exports.validProps = ['type', 'componentType', 'aggregationField', 'aggregationSize', 'distinctField', 'distinctFieldConfig', 'index', 'aggregations', 'compoundClause', 'dataField', 'includeFields', 'excludeFields', 'size', 'from', 'sortBy', 'sortOptions', 'pagination', 'autoFocus', 'autosuggest', 'debounce', 'defaultValue', 'defaultSuggestions', 'fieldWeights', 'filterLabel', 'fuzziness', 'highlight', 'highlightConfig', 'highlightField', 'nestedField', 'placeholder', 'queryFormat', 'searchOperators', 'enableSynonyms', 'enableQuerySuggestions', 'queryString', 'categoryField', 'strictSelection', 'selectAllLabel', 'showCheckbox', 'showFilter', 'showSearch', 'showCount', 'showLoadMore', 'loadMoreLabel', 'showMissing', 'missingLabel', 'data', 'showRadio', 'multiSelect', 'includeNullValues', 'interval', 'showHistogram', 'snap', 'stepValue', 'range', 'showSlider', 'parseDate', 'calendarInterval', 'unit', 'enablePopularSuggestions', 'enableRecentSuggestions', 'popularSuggestionsConfig', 'recentSuggestionsConfig', 'indexSuggestionsConfig', 'featuredSuggestionsConfig', 'enablePredictiveSuggestions', 'applyStopwords', 'customStopwords', 'enableIndexSuggestions', 'enableFeaturedSuggestions', 'searchboxId', 'endpoint', 'enableEndpointSuggestions'];
|
|
1167
1184
|
var CLEAR_ALL = exports.CLEAR_ALL = {
|
|
1168
1185
|
NEVER: 'never',
|
|
1169
1186
|
ALWAYS: 'always',
|
|
@@ -5561,9 +5578,9 @@
|
|
|
5561
5578
|
u = "hour",
|
|
5562
5579
|
a = "day",
|
|
5563
5580
|
o = "week",
|
|
5564
|
-
|
|
5565
|
-
|
|
5566
|
-
|
|
5581
|
+
c = "month",
|
|
5582
|
+
f = "quarter",
|
|
5583
|
+
h = "year",
|
|
5567
5584
|
d = "date",
|
|
5568
5585
|
l = "Invalid Date",
|
|
5569
5586
|
$ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,
|
|
@@ -5594,9 +5611,9 @@
|
|
|
5594
5611
|
m: function t(e, n) {
|
|
5595
5612
|
if (e.date() < n.date()) return -t(n, e);
|
|
5596
5613
|
var r = 12 * (n.year() - e.year()) + (n.month() - e.month()),
|
|
5597
|
-
i = e.clone().add(r,
|
|
5614
|
+
i = e.clone().add(r, c),
|
|
5598
5615
|
s = n - i < 0,
|
|
5599
|
-
u = e.clone().add(r + (s ? -1 : 1),
|
|
5616
|
+
u = e.clone().add(r + (s ? -1 : 1), c);
|
|
5600
5617
|
return +(-(r + (n - i) / (s ? i - u : u - i)) || 0);
|
|
5601
5618
|
},
|
|
5602
5619
|
a: function a(t) {
|
|
@@ -5604,8 +5621,8 @@
|
|
|
5604
5621
|
},
|
|
5605
5622
|
p: function p(t) {
|
|
5606
5623
|
return {
|
|
5607
|
-
M:
|
|
5608
|
-
y:
|
|
5624
|
+
M: c,
|
|
5625
|
+
y: h,
|
|
5609
5626
|
w: o,
|
|
5610
5627
|
d: a,
|
|
5611
5628
|
D: d,
|
|
@@ -5613,7 +5630,7 @@
|
|
|
5613
5630
|
m: s,
|
|
5614
5631
|
s: i,
|
|
5615
5632
|
ms: r,
|
|
5616
|
-
Q:
|
|
5633
|
+
Q: f
|
|
5617
5634
|
}[t] || String(t || "").toLowerCase().replace(/s$/, "");
|
|
5618
5635
|
},
|
|
5619
5636
|
u: function u(t) {
|
|
@@ -5624,7 +5641,7 @@
|
|
|
5624
5641
|
D = {};
|
|
5625
5642
|
D[g] = M;
|
|
5626
5643
|
var p = function p(t) {
|
|
5627
|
-
return t instanceof
|
|
5644
|
+
return t instanceof b;
|
|
5628
5645
|
},
|
|
5629
5646
|
S = function t(e, n, r) {
|
|
5630
5647
|
var i;
|
|
@@ -5643,7 +5660,7 @@
|
|
|
5643
5660
|
w = function w(t, e) {
|
|
5644
5661
|
if (p(t)) return t.clone();
|
|
5645
5662
|
var n = "object" == typeof e ? e : {};
|
|
5646
|
-
return n.date = t, n.args = arguments, new
|
|
5663
|
+
return n.date = t, n.args = arguments, new b(n);
|
|
5647
5664
|
},
|
|
5648
5665
|
O = v;
|
|
5649
5666
|
O.l = S, O.i = p, O.w = function (t, e) {
|
|
@@ -5654,7 +5671,7 @@
|
|
|
5654
5671
|
$offset: e.$offset
|
|
5655
5672
|
});
|
|
5656
5673
|
};
|
|
5657
|
-
var
|
|
5674
|
+
var b = function () {
|
|
5658
5675
|
function M(t) {
|
|
5659
5676
|
this.$L = S(t.locale, null, !0), this.parse(t);
|
|
5660
5677
|
}
|
|
@@ -5699,7 +5716,7 @@
|
|
|
5699
5716
|
}, m.startOf = function (t, e) {
|
|
5700
5717
|
var n = this,
|
|
5701
5718
|
r = !!O.u(e) || e,
|
|
5702
|
-
|
|
5719
|
+
f = O.p(t),
|
|
5703
5720
|
l = function l(t, e) {
|
|
5704
5721
|
var i = O.w(n.$u ? Date.UTC(n.$y, e, t) : new Date(n.$y, e, t), n);
|
|
5705
5722
|
return r ? i : i.endOf(a);
|
|
@@ -5711,10 +5728,10 @@
|
|
|
5711
5728
|
M = this.$M,
|
|
5712
5729
|
m = this.$D,
|
|
5713
5730
|
v = "set" + (this.$u ? "UTC" : "");
|
|
5714
|
-
switch (
|
|
5715
|
-
case
|
|
5731
|
+
switch (f) {
|
|
5732
|
+
case h:
|
|
5716
5733
|
return r ? l(1, 0) : l(31, 11);
|
|
5717
|
-
case
|
|
5734
|
+
case c:
|
|
5718
5735
|
return r ? l(1, M) : l(0, M + 1);
|
|
5719
5736
|
case o:
|
|
5720
5737
|
var g = this.$locale().weekStart || 0,
|
|
@@ -5737,10 +5754,10 @@
|
|
|
5737
5754
|
}, m.$set = function (t, e) {
|
|
5738
5755
|
var n,
|
|
5739
5756
|
o = O.p(t),
|
|
5740
|
-
|
|
5741
|
-
l = (n = {}, n[a] =
|
|
5757
|
+
f = "set" + (this.$u ? "UTC" : ""),
|
|
5758
|
+
l = (n = {}, n[a] = f + "Date", n[d] = f + "Date", n[c] = f + "Month", n[h] = f + "FullYear", n[u] = f + "Hours", n[s] = f + "Minutes", n[i] = f + "Seconds", n[r] = f + "Milliseconds", n)[o],
|
|
5742
5759
|
$ = o === a ? this.$D + (e - this.$W) : e;
|
|
5743
|
-
if (o ===
|
|
5760
|
+
if (o === c || o === h) {
|
|
5744
5761
|
var y = this.clone().set(d, 1);
|
|
5745
5762
|
y.$d[l]($), y.init(), this.$d = y.set(d, Math.min(this.$D, y.daysInMonth())).$d;
|
|
5746
5763
|
} else l && this.$d[l]($);
|
|
@@ -5749,17 +5766,17 @@
|
|
|
5749
5766
|
return this.clone().$set(t, e);
|
|
5750
5767
|
}, m.get = function (t) {
|
|
5751
5768
|
return this[O.p(t)]();
|
|
5752
|
-
}, m.add = function (r,
|
|
5769
|
+
}, m.add = function (r, f) {
|
|
5753
5770
|
var d,
|
|
5754
5771
|
l = this;
|
|
5755
5772
|
r = Number(r);
|
|
5756
|
-
var $ = O.p(
|
|
5773
|
+
var $ = O.p(f),
|
|
5757
5774
|
y = function y(t) {
|
|
5758
5775
|
var e = w(l);
|
|
5759
5776
|
return O.w(e.date(e.date() + Math.round(t * r)), l);
|
|
5760
5777
|
};
|
|
5761
|
-
if ($ ===
|
|
5762
|
-
if ($ ===
|
|
5778
|
+
if ($ === c) return this.set(c, this.$M + r);
|
|
5779
|
+
if ($ === h) return this.set(h, this.$y + r);
|
|
5763
5780
|
if ($ === a) return y(1);
|
|
5764
5781
|
if ($ === o) return y(7);
|
|
5765
5782
|
var M = (d = {}, d[s] = e, d[u] = n, d[i] = t, d)[$] || 1,
|
|
@@ -5777,58 +5794,116 @@
|
|
|
5777
5794
|
u = this.$m,
|
|
5778
5795
|
a = this.$M,
|
|
5779
5796
|
o = n.weekdays,
|
|
5780
|
-
|
|
5797
|
+
c = n.months,
|
|
5798
|
+
f = n.meridiem,
|
|
5781
5799
|
h = function h(t, n, i, s) {
|
|
5782
5800
|
return t && (t[n] || t(e, r)) || i[n].slice(0, s);
|
|
5783
5801
|
},
|
|
5784
|
-
|
|
5802
|
+
d = function d(t) {
|
|
5785
5803
|
return O.s(s % 12 || 12, t, "0");
|
|
5786
5804
|
},
|
|
5787
|
-
|
|
5805
|
+
$ = f || function (t, e, n) {
|
|
5788
5806
|
var r = t < 12 ? "AM" : "PM";
|
|
5789
5807
|
return n ? r.toLowerCase() : r;
|
|
5790
|
-
},
|
|
5791
|
-
$ = {
|
|
5792
|
-
YY: String(this.$y).slice(-2),
|
|
5793
|
-
YYYY: this.$y,
|
|
5794
|
-
M: a + 1,
|
|
5795
|
-
MM: O.s(a + 1, 2, "0"),
|
|
5796
|
-
MMM: h(n.monthsShort, a, f, 3),
|
|
5797
|
-
MMMM: h(f, a),
|
|
5798
|
-
D: this.$D,
|
|
5799
|
-
DD: O.s(this.$D, 2, "0"),
|
|
5800
|
-
d: String(this.$W),
|
|
5801
|
-
dd: h(n.weekdaysMin, this.$W, o, 2),
|
|
5802
|
-
ddd: h(n.weekdaysShort, this.$W, o, 3),
|
|
5803
|
-
dddd: o[this.$W],
|
|
5804
|
-
H: String(s),
|
|
5805
|
-
HH: O.s(s, 2, "0"),
|
|
5806
|
-
h: c(1),
|
|
5807
|
-
hh: c(2),
|
|
5808
|
-
a: d(s, u, !0),
|
|
5809
|
-
A: d(s, u, !1),
|
|
5810
|
-
m: String(u),
|
|
5811
|
-
mm: O.s(u, 2, "0"),
|
|
5812
|
-
s: String(this.$s),
|
|
5813
|
-
ss: O.s(this.$s, 2, "0"),
|
|
5814
|
-
SSS: O.s(this.$ms, 3, "0"),
|
|
5815
|
-
Z: i
|
|
5816
5808
|
};
|
|
5817
|
-
return r.replace(y, function (t,
|
|
5818
|
-
return
|
|
5809
|
+
return r.replace(y, function (t, r) {
|
|
5810
|
+
return r || function (t) {
|
|
5811
|
+
switch (t) {
|
|
5812
|
+
case "YY":
|
|
5813
|
+
return String(e.$y).slice(-2);
|
|
5814
|
+
case "YYYY":
|
|
5815
|
+
return O.s(e.$y, 4, "0");
|
|
5816
|
+
case "M":
|
|
5817
|
+
return a + 1;
|
|
5818
|
+
case "MM":
|
|
5819
|
+
return O.s(a + 1, 2, "0");
|
|
5820
|
+
case "MMM":
|
|
5821
|
+
return h(n.monthsShort, a, c, 3);
|
|
5822
|
+
case "MMMM":
|
|
5823
|
+
return h(c, a);
|
|
5824
|
+
case "D":
|
|
5825
|
+
return e.$D;
|
|
5826
|
+
case "DD":
|
|
5827
|
+
return O.s(e.$D, 2, "0");
|
|
5828
|
+
case "d":
|
|
5829
|
+
return String(e.$W);
|
|
5830
|
+
case "dd":
|
|
5831
|
+
return h(n.weekdaysMin, e.$W, o, 2);
|
|
5832
|
+
case "ddd":
|
|
5833
|
+
return h(n.weekdaysShort, e.$W, o, 3);
|
|
5834
|
+
case "dddd":
|
|
5835
|
+
return o[e.$W];
|
|
5836
|
+
case "H":
|
|
5837
|
+
return String(s);
|
|
5838
|
+
case "HH":
|
|
5839
|
+
return O.s(s, 2, "0");
|
|
5840
|
+
case "h":
|
|
5841
|
+
return d(1);
|
|
5842
|
+
case "hh":
|
|
5843
|
+
return d(2);
|
|
5844
|
+
case "a":
|
|
5845
|
+
return $(s, u, !0);
|
|
5846
|
+
case "A":
|
|
5847
|
+
return $(s, u, !1);
|
|
5848
|
+
case "m":
|
|
5849
|
+
return String(u);
|
|
5850
|
+
case "mm":
|
|
5851
|
+
return O.s(u, 2, "0");
|
|
5852
|
+
case "s":
|
|
5853
|
+
return String(e.$s);
|
|
5854
|
+
case "ss":
|
|
5855
|
+
return O.s(e.$s, 2, "0");
|
|
5856
|
+
case "SSS":
|
|
5857
|
+
return O.s(e.$ms, 3, "0");
|
|
5858
|
+
case "Z":
|
|
5859
|
+
return i;
|
|
5860
|
+
}
|
|
5861
|
+
return null;
|
|
5862
|
+
}(t) || i.replace(":", "");
|
|
5819
5863
|
});
|
|
5820
5864
|
}, m.utcOffset = function () {
|
|
5821
5865
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
5822
5866
|
}, m.diff = function (r, d, l) {
|
|
5823
5867
|
var $,
|
|
5824
|
-
y =
|
|
5825
|
-
M =
|
|
5826
|
-
m = (
|
|
5827
|
-
v =
|
|
5828
|
-
g =
|
|
5829
|
-
|
|
5868
|
+
y = this,
|
|
5869
|
+
M = O.p(d),
|
|
5870
|
+
m = w(r),
|
|
5871
|
+
v = (m.utcOffset() - this.utcOffset()) * e,
|
|
5872
|
+
g = this - m,
|
|
5873
|
+
D = function D() {
|
|
5874
|
+
return O.m(y, m);
|
|
5875
|
+
};
|
|
5876
|
+
switch (M) {
|
|
5877
|
+
case h:
|
|
5878
|
+
$ = D() / 12;
|
|
5879
|
+
break;
|
|
5880
|
+
case c:
|
|
5881
|
+
$ = D();
|
|
5882
|
+
break;
|
|
5883
|
+
case f:
|
|
5884
|
+
$ = D() / 3;
|
|
5885
|
+
break;
|
|
5886
|
+
case o:
|
|
5887
|
+
$ = (g - v) / 6048e5;
|
|
5888
|
+
break;
|
|
5889
|
+
case a:
|
|
5890
|
+
$ = (g - v) / 864e5;
|
|
5891
|
+
break;
|
|
5892
|
+
case u:
|
|
5893
|
+
$ = g / n;
|
|
5894
|
+
break;
|
|
5895
|
+
case s:
|
|
5896
|
+
$ = g / e;
|
|
5897
|
+
break;
|
|
5898
|
+
case i:
|
|
5899
|
+
$ = g / t;
|
|
5900
|
+
break;
|
|
5901
|
+
default:
|
|
5902
|
+
$ = g;
|
|
5903
|
+
}
|
|
5904
|
+
return l ? $ : O.a($);
|
|
5830
5905
|
}, m.daysInMonth = function () {
|
|
5831
|
-
return this.endOf(
|
|
5906
|
+
return this.endOf(c).$D;
|
|
5832
5907
|
}, m.$locale = function () {
|
|
5833
5908
|
return D[this.$L];
|
|
5834
5909
|
}, m.locale = function (t, e) {
|
|
@@ -5848,13 +5923,13 @@
|
|
|
5848
5923
|
return this.$d.toUTCString();
|
|
5849
5924
|
}, M;
|
|
5850
5925
|
}(),
|
|
5851
|
-
|
|
5852
|
-
return w.prototype =
|
|
5853
|
-
|
|
5926
|
+
_ = b.prototype;
|
|
5927
|
+
return w.prototype = _, [["$ms", r], ["$s", i], ["$m", s], ["$H", u], ["$W", a], ["$M", c], ["$y", h], ["$D", d]].forEach(function (t) {
|
|
5928
|
+
_[t[1]] = function (e) {
|
|
5854
5929
|
return this.$g(e, t[0], t[1]);
|
|
5855
5930
|
};
|
|
5856
5931
|
}), w.extend = function (t, e) {
|
|
5857
|
-
return t.$i || (t(e,
|
|
5932
|
+
return t.$i || (t(e, b, w), t.$i = !0), w;
|
|
5858
5933
|
}, w.locale = S, w.isDayjs = p, w.unix = function (t) {
|
|
5859
5934
|
return w(1e3 * t);
|
|
5860
5935
|
}, w.en = D[g], w.Ls = D, w.p = {}, w;
|
|
@@ -5959,9 +6034,14 @@
|
|
|
5959
6034
|
return null;
|
|
5960
6035
|
}
|
|
5961
6036
|
var endpoint = void 0;
|
|
6037
|
+
var compoundClause = props.compoundClause;
|
|
5962
6038
|
if (props.endpoint instanceof Object) {
|
|
5963
6039
|
endpoint = props.endpoint;
|
|
5964
6040
|
}
|
|
6041
|
+
if (compoundClause && !['filter', 'must'].includes(compoundClause)) {
|
|
6042
|
+
console.error("Reactivesearch Error: Invalid prop supplied - compoundClause. Prop can be one of ['filter', 'must']");
|
|
6043
|
+
compoundClause = undefined;
|
|
6044
|
+
}
|
|
5965
6045
|
return _extends({
|
|
5966
6046
|
id: componentId,
|
|
5967
6047
|
type: queryType,
|
|
@@ -6000,7 +6080,8 @@
|
|
|
6000
6080
|
queryString: props.queryString,
|
|
6001
6081
|
distinctField: props.distinctField,
|
|
6002
6082
|
distinctFieldConfig: props.distinctFieldConfig,
|
|
6003
|
-
index: props.index
|
|
6083
|
+
index: props.index,
|
|
6084
|
+
compoundClause: compoundClause
|
|
6004
6085
|
}, queryType === constants$1.queryTypes.suggestion ? _extends({
|
|
6005
6086
|
enablePopularSuggestions: props.enablePopularSuggestions,
|
|
6006
6087
|
enableEndpointSuggestions: props.enableEndpointSuggestions,
|
|
@@ -6932,6 +7013,17 @@
|
|
|
6932
7013
|
var componentId = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
6933
7014
|
return componentId + '__suggestions';
|
|
6934
7015
|
};
|
|
7016
|
+
function errorToObject(error) {
|
|
7017
|
+
if (!(error instanceof Error)) {
|
|
7018
|
+
return error;
|
|
7019
|
+
}
|
|
7020
|
+
var errorObject = {};
|
|
7021
|
+
var errorProperties = Object.getOwnPropertyNames(error);
|
|
7022
|
+
errorProperties.forEach(function (property) {
|
|
7023
|
+
errorObject[property] = error[property];
|
|
7024
|
+
});
|
|
7025
|
+
return errorObject;
|
|
7026
|
+
}
|
|
6935
7027
|
var handleError = exports.handleError = function handleError() {
|
|
6936
7028
|
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
6937
7029
|
_ref$orderOfQueries = _ref.orderOfQueries,
|
|
@@ -6940,19 +7032,20 @@
|
|
|
6940
7032
|
error = _ref$error === undefined ? null : _ref$error;
|
|
6941
7033
|
var getState = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function () {};
|
|
6942
7034
|
var dispatch = arguments[2];
|
|
7035
|
+
var processedError = errorToObject(error);
|
|
6943
7036
|
var _getState2 = getState(),
|
|
6944
7037
|
queryListener = _getState2.queryListener;
|
|
6945
7038
|
try {
|
|
6946
|
-
console.error(JSON.stringify(
|
|
7039
|
+
console.error(JSON.stringify(processedError));
|
|
6947
7040
|
} catch (e) {
|
|
6948
|
-
console.error(
|
|
7041
|
+
console.error(processedError);
|
|
6949
7042
|
}
|
|
6950
7043
|
orderOfQueries.forEach(function (component) {
|
|
6951
7044
|
if (isComponentActive(getState, component)) {
|
|
6952
7045
|
if (queryListener[component] && queryListener[component].onError) {
|
|
6953
|
-
queryListener[component].onError(
|
|
7046
|
+
queryListener[component].onError(processedError);
|
|
6954
7047
|
}
|
|
6955
|
-
dispatch((0, misc.setError)(component,
|
|
7048
|
+
dispatch((0, misc.setError)(component, processedError));
|
|
6956
7049
|
dispatch((0, misc.setLoading)(component, false));
|
|
6957
7050
|
}
|
|
6958
7051
|
});
|
|
@@ -9529,7 +9622,7 @@
|
|
|
9529
9622
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
9530
9623
|
descriptor.configurable = true;
|
|
9531
9624
|
if ("value" in descriptor) descriptor.writable = true;
|
|
9532
|
-
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
9625
|
+
Object.defineProperty(target, _toPropertyKey$1(descriptor.key), descriptor);
|
|
9533
9626
|
}
|
|
9534
9627
|
}
|
|
9535
9628
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
@@ -9616,7 +9709,7 @@
|
|
|
9616
9709
|
}
|
|
9617
9710
|
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
9618
9711
|
}
|
|
9619
|
-
function _toPrimitive(input, hint) {
|
|
9712
|
+
function _toPrimitive$1(input, hint) {
|
|
9620
9713
|
if (typeof input !== "object" || input === null) return input;
|
|
9621
9714
|
var prim = input[Symbol.toPrimitive];
|
|
9622
9715
|
if (prim !== undefined) {
|
|
@@ -9626,8 +9719,8 @@
|
|
|
9626
9719
|
}
|
|
9627
9720
|
return (hint === "string" ? String : Number)(input);
|
|
9628
9721
|
}
|
|
9629
|
-
function _toPropertyKey(arg) {
|
|
9630
|
-
var key = _toPrimitive(arg, "string");
|
|
9722
|
+
function _toPropertyKey$1(arg) {
|
|
9723
|
+
var key = _toPrimitive$1(arg, "string");
|
|
9631
9724
|
return typeof key === "symbol" ? key : String(key);
|
|
9632
9725
|
}
|
|
9633
9726
|
|
|
@@ -11342,23 +11435,23 @@
|
|
|
11342
11435
|
/* eslint-disable */
|
|
11343
11436
|
var STYLES_KEY = '__emotion_styles';
|
|
11344
11437
|
|
|
11345
|
-
function _typeof(obj) {
|
|
11438
|
+
function _typeof$1(obj) {
|
|
11346
11439
|
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
11347
|
-
_typeof = function _typeof(obj) {
|
|
11440
|
+
_typeof$1 = function _typeof(obj) {
|
|
11348
11441
|
return typeof obj;
|
|
11349
11442
|
};
|
|
11350
11443
|
} else {
|
|
11351
|
-
_typeof = function _typeof(obj) {
|
|
11444
|
+
_typeof$1 = function _typeof(obj) {
|
|
11352
11445
|
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
11353
11446
|
};
|
|
11354
11447
|
}
|
|
11355
|
-
return _typeof(obj);
|
|
11448
|
+
return _typeof$1(obj);
|
|
11356
11449
|
}
|
|
11357
11450
|
function stringifyClass(klass) {
|
|
11358
11451
|
if (Array.isArray(klass)) {
|
|
11359
11452
|
return klass.join(' ');
|
|
11360
11453
|
}
|
|
11361
|
-
if (_typeof(klass) === 'object') {
|
|
11454
|
+
if (_typeof$1(klass) === 'object') {
|
|
11362
11455
|
return Object.keys(klass).filter(function (key) {
|
|
11363
11456
|
return Boolean(klass[key]);
|
|
11364
11457
|
}).join(' ');
|
|
@@ -13112,11 +13205,7 @@
|
|
|
13112
13205
|
|
|
13113
13206
|
function _extends$2() {
|
|
13114
13207
|
return _extends$2 = Object.assign ? Object.assign.bind() : function (a) {
|
|
13115
|
-
for (var b, c = 1; c < arguments.length; c++)
|
|
13116
|
-
for (var d in b = arguments[c], b) {
|
|
13117
|
-
Object.prototype.hasOwnProperty.call(b, d) && (a[d] = b[d]);
|
|
13118
|
-
}
|
|
13119
|
-
}
|
|
13208
|
+
for (var b, c = 1; c < arguments.length; c++) for (var d in b = arguments[c], b) Object.prototype.hasOwnProperty.call(b, d) && (a[d] = b[d]);
|
|
13120
13209
|
return a;
|
|
13121
13210
|
}, _extends$2.apply(this, arguments);
|
|
13122
13211
|
}
|
|
@@ -13125,23 +13214,17 @@
|
|
|
13125
13214
|
functionalMerge = ["on", "nativeOn"],
|
|
13126
13215
|
mergeJsxProps = function mergeJsxProps(a) {
|
|
13127
13216
|
return a.reduce(function (c, a) {
|
|
13128
|
-
for (var b in a) {
|
|
13129
|
-
|
|
13130
|
-
|
|
13131
|
-
|
|
13132
|
-
|
|
13133
|
-
|
|
13134
|
-
|
|
13135
|
-
|
|
13136
|
-
|
|
13137
|
-
|
|
13138
|
-
|
|
13139
|
-
} else c[b][f] = a[b][f];
|
|
13140
|
-
}
|
|
13141
|
-
} else if ("hook" === b) for (var i in a[b]) {
|
|
13142
|
-
c[b][i] = c[b][i] ? mergeFn(c[b][i], a[b][i]) : a[b][i];
|
|
13143
|
-
} else c[b] = a[b];
|
|
13144
|
-
}
|
|
13217
|
+
for (var b in a) if (!c[b]) c[b] = a[b];else if (-1 !== normalMerge.indexOf(b)) c[b] = _extends$2({}, c[b], a[b]);else if (-1 !== toArrayMerge.indexOf(b)) {
|
|
13218
|
+
var d = c[b] instanceof Array ? c[b] : [c[b]],
|
|
13219
|
+
e = a[b] instanceof Array ? a[b] : [a[b]];
|
|
13220
|
+
c[b] = [].concat(d, e);
|
|
13221
|
+
} else if (-1 !== functionalMerge.indexOf(b)) {
|
|
13222
|
+
for (var f in a[b]) if (c[b][f]) {
|
|
13223
|
+
var g = c[b][f] instanceof Array ? c[b][f] : [c[b][f]],
|
|
13224
|
+
h = a[b][f] instanceof Array ? a[b][f] : [a[b][f]];
|
|
13225
|
+
c[b][f] = [].concat(g, h);
|
|
13226
|
+
} else c[b][f] = a[b][f];
|
|
13227
|
+
} else if ("hook" === b) for (var i in a[b]) c[b][i] = c[b][i] ? mergeFn(c[b][i], a[b][i]) : a[b][i];else c[b] = a[b];
|
|
13145
13228
|
return c;
|
|
13146
13229
|
}, {});
|
|
13147
13230
|
},
|
|
@@ -14289,7 +14372,7 @@
|
|
|
14289
14372
|
var querystring_3 = querystring.encode;
|
|
14290
14373
|
var querystring_4 = querystring.stringify;
|
|
14291
14374
|
|
|
14292
|
-
var _typeof$
|
|
14375
|
+
var _typeof$2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
|
|
14293
14376
|
return typeof obj;
|
|
14294
14377
|
} : function (obj) {
|
|
14295
14378
|
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
@@ -14349,7 +14432,7 @@
|
|
|
14349
14432
|
var matchedType = types.find(function (type) {
|
|
14350
14433
|
return (
|
|
14351
14434
|
// eslint-disable-next-line
|
|
14352
|
-
_typeof$
|
|
14435
|
+
_typeof$2(object[key]) === type
|
|
14353
14436
|
);
|
|
14354
14437
|
});
|
|
14355
14438
|
if (!matchedType || object[key] === emptyFor[matchedType]) {
|
|
@@ -14433,13 +14516,13 @@
|
|
|
14433
14516
|
};
|
|
14434
14517
|
var checkDataType = function checkDataType(temp) {
|
|
14435
14518
|
// eslint-disable-next-line
|
|
14436
|
-
if ((typeof temp === 'undefined' ? 'undefined' : _typeof$
|
|
14519
|
+
if ((typeof temp === 'undefined' ? 'undefined' : _typeof$2(temp)) === dataTypes.OBJECT) {
|
|
14437
14520
|
if (Array.isArray(temp)) {
|
|
14438
14521
|
return dataTypes.ARRAY;
|
|
14439
14522
|
}
|
|
14440
14523
|
return dataTypes.OBJECT;
|
|
14441
14524
|
}
|
|
14442
|
-
return typeof temp === 'undefined' ? 'undefined' : _typeof$
|
|
14525
|
+
return typeof temp === 'undefined' ? 'undefined' : _typeof$2(temp);
|
|
14443
14526
|
};
|
|
14444
14527
|
function validateSchema() {
|
|
14445
14528
|
var passedProperties = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
@@ -14699,16 +14782,21 @@
|
|
|
14699
14782
|
var transformedRequest = Object.assign({}, ts);
|
|
14700
14783
|
var url = transformedRequest.url;
|
|
14701
14784
|
delete transformedRequest.url;
|
|
14785
|
+
var controller = new AbortController();
|
|
14786
|
+
var signal = controller.signal;
|
|
14702
14787
|
var fetchPromise = fetch$1(url || finalURL, Object.assign({}, transformedRequest, {
|
|
14703
14788
|
// apply timestamp header for RS API
|
|
14704
14789
|
headers: isRSAPI && !isMongoRequest ? Object.assign({}, transformedRequest.headers, {
|
|
14705
14790
|
'x-timestamp': new Date().getTime()
|
|
14706
|
-
}) : transformedRequest.headers
|
|
14791
|
+
}) : transformedRequest.headers,
|
|
14792
|
+
signal: signal // Attach the abort signal to the fetch request
|
|
14707
14793
|
}));
|
|
14794
|
+
|
|
14708
14795
|
var timeoutPromise = new Promise(function (_, rejectTP) {
|
|
14709
14796
|
if (httpRequestTimeout > 0) {
|
|
14710
14797
|
setTimeout(function () {
|
|
14711
14798
|
rejectTP(new Error('Request timeout'));
|
|
14799
|
+
controller.abort();
|
|
14712
14800
|
}, httpRequestTimeout);
|
|
14713
14801
|
}
|
|
14714
14802
|
});
|
|
@@ -15412,6 +15500,22 @@
|
|
|
15412
15500
|
|
|
15413
15501
|
metrics.getQueryID = function () {
|
|
15414
15502
|
return metrics.queryID;
|
|
15503
|
+
}; // Save session's usefulness
|
|
15504
|
+
|
|
15505
|
+
metrics.saveSessionUsefulness = function (aiSessionId, usefulnessConfig, callback) {
|
|
15506
|
+
if (typeof aiSessionId !== 'string' || aiSessionId === '') {
|
|
15507
|
+
throw new Error('appbase-analytics: AISessionId is required');
|
|
15508
|
+
}
|
|
15509
|
+
if (typeof usefulnessConfig.useful !== 'boolean') {
|
|
15510
|
+
throw new Error('appbase-analytics: useful property is required and must be a boolean');
|
|
15511
|
+
}
|
|
15512
|
+
var requestBody = {
|
|
15513
|
+
useful: usefulnessConfig.useful,
|
|
15514
|
+
reason: usefulnessConfig.reason,
|
|
15515
|
+
user_id: usefulnessConfig.userID,
|
|
15516
|
+
meta: usefulnessConfig.meta
|
|
15517
|
+
};
|
|
15518
|
+
metrics._request('PUT', "_ai/" + aiSessionId + "/analytics", requestBody, null, callback);
|
|
15415
15519
|
};
|
|
15416
15520
|
return metrics;
|
|
15417
15521
|
}
|
|
@@ -16282,16 +16386,17 @@
|
|
|
16282
16386
|
};
|
|
16283
16387
|
|
|
16284
16388
|
/**!
|
|
16285
|
-
* hotkeys-js v3.
|
|
16389
|
+
* hotkeys-js v3.11.2
|
|
16286
16390
|
* A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies.
|
|
16287
16391
|
*
|
|
16288
|
-
* Copyright (c)
|
|
16289
|
-
*
|
|
16392
|
+
* Copyright (c) 2023 kenny wong <wowohoo@qq.com>
|
|
16393
|
+
* https://jaywcjlove.github.io/hotkeys-js
|
|
16290
16394
|
* Licensed under the MIT license
|
|
16291
16395
|
*/
|
|
16292
16396
|
|
|
16293
|
-
var isff = typeof navigator !== 'undefined' ? navigator.userAgent.toLowerCase().indexOf('firefox') > 0 : false;
|
|
16397
|
+
var isff = typeof navigator !== 'undefined' ? navigator.userAgent.toLowerCase().indexOf('firefox') > 0 : false;
|
|
16294
16398
|
|
|
16399
|
+
// 绑定事件
|
|
16295
16400
|
function addEvent(object, event, method, useCapture) {
|
|
16296
16401
|
if (object.addEventListener) {
|
|
16297
16402
|
object.addEventListener(event, method, useCapture);
|
|
@@ -16300,32 +16405,32 @@
|
|
|
16300
16405
|
method(window.event);
|
|
16301
16406
|
});
|
|
16302
16407
|
}
|
|
16303
|
-
}
|
|
16408
|
+
}
|
|
16304
16409
|
|
|
16410
|
+
// 修饰键转换成对应的键码
|
|
16305
16411
|
function getMods(modifier, key) {
|
|
16306
16412
|
var mods = key.slice(0, key.length - 1);
|
|
16307
|
-
for (var i = 0; i < mods.length; i++)
|
|
16308
|
-
mods[i] = modifier[mods[i].toLowerCase()];
|
|
16309
|
-
}
|
|
16413
|
+
for (var i = 0; i < mods.length; i++) mods[i] = modifier[mods[i].toLowerCase()];
|
|
16310
16414
|
return mods;
|
|
16311
|
-
}
|
|
16415
|
+
}
|
|
16312
16416
|
|
|
16417
|
+
// 处理传的key字符串转换成数组
|
|
16313
16418
|
function getKeys(key) {
|
|
16314
16419
|
if (typeof key !== 'string') key = '';
|
|
16315
16420
|
key = key.replace(/\s/g, ''); // 匹配任何空白字符,包括空格、制表符、换页符等等
|
|
16316
|
-
|
|
16317
16421
|
var keys = key.split(','); // 同时设置多个快捷键,以','分割
|
|
16422
|
+
var index = keys.lastIndexOf('');
|
|
16318
16423
|
|
|
16319
|
-
|
|
16320
|
-
|
|
16424
|
+
// 快捷键可能包含',',需特殊处理
|
|
16321
16425
|
for (; index >= 0;) {
|
|
16322
16426
|
keys[index - 1] += ',';
|
|
16323
16427
|
keys.splice(index, 1);
|
|
16324
16428
|
index = keys.lastIndexOf('');
|
|
16325
16429
|
}
|
|
16326
16430
|
return keys;
|
|
16327
|
-
}
|
|
16431
|
+
}
|
|
16328
16432
|
|
|
16433
|
+
// 比较修饰键的数组
|
|
16329
16434
|
function compareArray(a1, a2) {
|
|
16330
16435
|
var arr1 = a1.length >= a2.length ? a1 : a2;
|
|
16331
16436
|
var arr2 = a1.length >= a2.length ? a2 : a1;
|
|
@@ -16335,6 +16440,8 @@
|
|
|
16335
16440
|
}
|
|
16336
16441
|
return isIndex;
|
|
16337
16442
|
}
|
|
16443
|
+
|
|
16444
|
+
// Special Keys
|
|
16338
16445
|
var _keyMap = {
|
|
16339
16446
|
backspace: 8,
|
|
16340
16447
|
'⌫': 8,
|
|
@@ -16387,8 +16494,9 @@
|
|
|
16387
16494
|
'[': 219,
|
|
16388
16495
|
']': 221,
|
|
16389
16496
|
'\\': 220
|
|
16390
|
-
};
|
|
16497
|
+
};
|
|
16391
16498
|
|
|
16499
|
+
// Modifier Keys
|
|
16392
16500
|
var _modifier = {
|
|
16393
16501
|
// shiftKey
|
|
16394
16502
|
'⇧': 16,
|
|
@@ -16422,20 +16530,18 @@
|
|
|
16422
16530
|
17: false,
|
|
16423
16531
|
91: false
|
|
16424
16532
|
};
|
|
16425
|
-
var _handlers = {};
|
|
16533
|
+
var _handlers = {};
|
|
16426
16534
|
|
|
16535
|
+
// F1~F12 special key
|
|
16427
16536
|
for (var k = 1; k < 20; k++) {
|
|
16428
16537
|
_keyMap["f".concat(k)] = 111 + k;
|
|
16429
16538
|
}
|
|
16430
16539
|
var _downKeys = []; // 记录摁下的绑定键
|
|
16431
|
-
|
|
16432
16540
|
var winListendFocus = false; // window是否已经监听了focus事件
|
|
16433
|
-
|
|
16434
16541
|
var _scope = 'all'; // 默认热键范围
|
|
16435
|
-
|
|
16436
16542
|
var elementHasBindEvent = []; // 已绑定事件的节点记录
|
|
16437
|
-
// 返回键码
|
|
16438
16543
|
|
|
16544
|
+
// 返回键码
|
|
16439
16545
|
var code = function code(x) {
|
|
16440
16546
|
return _keyMap[x.toLowerCase()] || _modifier[x.toLowerCase()] || x.toUpperCase().charCodeAt(0);
|
|
16441
16547
|
};
|
|
@@ -16448,16 +16554,17 @@
|
|
|
16448
16554
|
return Object.keys(_modifier).find(function (k) {
|
|
16449
16555
|
return _modifier[k] === x;
|
|
16450
16556
|
});
|
|
16451
|
-
};
|
|
16557
|
+
};
|
|
16452
16558
|
|
|
16559
|
+
// 设置获取当前范围(默认为'所有')
|
|
16453
16560
|
function setScope(scope) {
|
|
16454
16561
|
_scope = scope || 'all';
|
|
16455
|
-
}
|
|
16456
|
-
|
|
16562
|
+
}
|
|
16563
|
+
// 获取当前范围
|
|
16457
16564
|
function getScope() {
|
|
16458
16565
|
return _scope || 'all';
|
|
16459
|
-
}
|
|
16460
|
-
|
|
16566
|
+
}
|
|
16567
|
+
// 获取摁下绑定键的键值
|
|
16461
16568
|
function getPressedKeyCodes() {
|
|
16462
16569
|
return _downKeys.slice(0);
|
|
16463
16570
|
}
|
|
@@ -16465,32 +16572,36 @@
|
|
|
16465
16572
|
return _downKeys.map(function (c) {
|
|
16466
16573
|
return getKey(c) || getModifier(c) || String.fromCharCode(c);
|
|
16467
16574
|
});
|
|
16468
|
-
}
|
|
16469
|
-
// hotkey is effective only when filter return true
|
|
16575
|
+
}
|
|
16470
16576
|
|
|
16577
|
+
// 表单控件控件判断 返回 Boolean
|
|
16578
|
+
// hotkey is effective only when filter return true
|
|
16471
16579
|
function filter(event) {
|
|
16472
16580
|
var target = event.target || event.srcElement;
|
|
16473
16581
|
var tagName = target.tagName;
|
|
16474
|
-
var flag = true;
|
|
16475
|
-
|
|
16582
|
+
var flag = true;
|
|
16583
|
+
// ignore: isContentEditable === 'true', <input> and <textarea> when readOnly state is false, <select>
|
|
16476
16584
|
if (target.isContentEditable || (tagName === 'INPUT' || tagName === 'TEXTAREA' || tagName === 'SELECT') && !target.readOnly) {
|
|
16477
16585
|
flag = false;
|
|
16478
16586
|
}
|
|
16479
16587
|
return flag;
|
|
16480
|
-
}
|
|
16588
|
+
}
|
|
16481
16589
|
|
|
16590
|
+
// 判断摁下的键是否为某个键,返回true或者false
|
|
16482
16591
|
function isPressed(keyCode) {
|
|
16483
16592
|
if (typeof keyCode === 'string') {
|
|
16484
16593
|
keyCode = code(keyCode); // 转换成键码
|
|
16485
16594
|
}
|
|
16486
16595
|
|
|
16487
16596
|
return _downKeys.indexOf(keyCode) !== -1;
|
|
16488
|
-
}
|
|
16597
|
+
}
|
|
16489
16598
|
|
|
16599
|
+
// 循环删除handlers中的所有 scope(范围)
|
|
16490
16600
|
function deleteScope(scope, newScope) {
|
|
16491
16601
|
var handlers;
|
|
16492
|
-
var i;
|
|
16602
|
+
var i;
|
|
16493
16603
|
|
|
16604
|
+
// 没有指定scope,获取scope
|
|
16494
16605
|
if (!scope) scope = getScope();
|
|
16495
16606
|
for (var key in _handlers) {
|
|
16496
16607
|
if (Object.prototype.hasOwnProperty.call(_handlers, key)) {
|
|
@@ -16499,30 +16610,33 @@
|
|
|
16499
16610
|
if (handlers[i].scope === scope) handlers.splice(i, 1);else i++;
|
|
16500
16611
|
}
|
|
16501
16612
|
}
|
|
16502
|
-
}
|
|
16613
|
+
}
|
|
16503
16614
|
|
|
16615
|
+
// 如果scope被删除,将scope重置为all
|
|
16504
16616
|
if (getScope() === scope) setScope(newScope || 'all');
|
|
16505
|
-
}
|
|
16617
|
+
}
|
|
16506
16618
|
|
|
16619
|
+
// 清除修饰键
|
|
16507
16620
|
function clearModifier(event) {
|
|
16508
16621
|
var key = event.keyCode || event.which || event.charCode;
|
|
16509
|
-
var i = _downKeys.indexOf(key);
|
|
16622
|
+
var i = _downKeys.indexOf(key);
|
|
16510
16623
|
|
|
16624
|
+
// 从列表中清除按压过的键
|
|
16511
16625
|
if (i >= 0) {
|
|
16512
16626
|
_downKeys.splice(i, 1);
|
|
16513
|
-
}
|
|
16514
|
-
|
|
16627
|
+
}
|
|
16628
|
+
// 特殊处理 cmmand 键,在 cmmand 组合快捷键 keyup 只执行一次的问题
|
|
16515
16629
|
if (event.key && event.key.toLowerCase() === 'meta') {
|
|
16516
16630
|
_downKeys.splice(0, _downKeys.length);
|
|
16517
|
-
}
|
|
16631
|
+
}
|
|
16518
16632
|
|
|
16633
|
+
// 修饰键 shiftKey altKey ctrlKey (command||metaKey) 清除
|
|
16519
16634
|
if (key === 93 || key === 224) key = 91;
|
|
16520
16635
|
if (key in _mods) {
|
|
16521
|
-
_mods[key] = false;
|
|
16636
|
+
_mods[key] = false;
|
|
16522
16637
|
|
|
16523
|
-
|
|
16524
|
-
|
|
16525
|
-
}
|
|
16638
|
+
// 将修饰键重置为false
|
|
16639
|
+
for (var k in _modifier) if (_modifier[k] === key) hotkeys[k] = false;
|
|
16526
16640
|
}
|
|
16527
16641
|
}
|
|
16528
16642
|
function unbind(keysInfo) {
|
|
@@ -16543,7 +16657,6 @@
|
|
|
16543
16657
|
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
16544
16658
|
args[_key - 1] = arguments[_key];
|
|
16545
16659
|
}
|
|
16546
|
-
|
|
16547
16660
|
// support old method
|
|
16548
16661
|
// eslint-disable-line
|
|
16549
16662
|
var scope = args[0],
|
|
@@ -16559,8 +16672,9 @@
|
|
|
16559
16672
|
splitKey: '+'
|
|
16560
16673
|
});
|
|
16561
16674
|
}
|
|
16562
|
-
}
|
|
16675
|
+
}
|
|
16563
16676
|
|
|
16677
|
+
// 解除绑定某个范围的快捷键
|
|
16564
16678
|
var eachUnbind = function eachUnbind(_ref) {
|
|
16565
16679
|
var key = _ref.key,
|
|
16566
16680
|
scope = _ref.scope,
|
|
@@ -16573,8 +16687,8 @@
|
|
|
16573
16687
|
var len = unbindKeys.length;
|
|
16574
16688
|
var lastKey = unbindKeys[len - 1];
|
|
16575
16689
|
var keyCode = lastKey === '*' ? '*' : code(lastKey);
|
|
16576
|
-
if (!_handlers[keyCode]) return;
|
|
16577
|
-
|
|
16690
|
+
if (!_handlers[keyCode]) return;
|
|
16691
|
+
// 判断是否传入范围,没有就获取范围
|
|
16578
16692
|
if (!scope) scope = getScope();
|
|
16579
16693
|
var mods = len > 1 ? getMods(_modifier, unbindKeys) : [];
|
|
16580
16694
|
_handlers[keyCode] = _handlers[keyCode].filter(function (record) {
|
|
@@ -16583,14 +16697,16 @@
|
|
|
16583
16697
|
return !(isMatchingMethod && record.scope === scope && compareArray(record.mods, mods));
|
|
16584
16698
|
});
|
|
16585
16699
|
});
|
|
16586
|
-
};
|
|
16700
|
+
};
|
|
16587
16701
|
|
|
16702
|
+
// 对监听对应快捷键的回调函数进行处理
|
|
16588
16703
|
function eventHandler(event, handler, scope, element) {
|
|
16589
16704
|
if (handler.element !== element) {
|
|
16590
16705
|
return;
|
|
16591
16706
|
}
|
|
16592
|
-
var modifiersMatch;
|
|
16707
|
+
var modifiersMatch;
|
|
16593
16708
|
|
|
16709
|
+
// 看它是否在当前范围
|
|
16594
16710
|
if (handler.scope === scope || handler.scope === 'all') {
|
|
16595
16711
|
// 检查是否匹配修饰符(如果有返回true)
|
|
16596
16712
|
modifiersMatch = handler.mods.length > 0;
|
|
@@ -16600,9 +16716,12 @@
|
|
|
16600
16716
|
modifiersMatch = false;
|
|
16601
16717
|
}
|
|
16602
16718
|
}
|
|
16603
|
-
}
|
|
16719
|
+
}
|
|
16604
16720
|
|
|
16721
|
+
// 调用处理程序,如果是修饰键不做处理
|
|
16605
16722
|
if (handler.mods.length === 0 && !_mods[16] && !_mods[18] && !_mods[17] && !_mods[91] || modifiersMatch || handler.shortcut === '*') {
|
|
16723
|
+
handler.keys = [];
|
|
16724
|
+
handler.keys = handler.keys.concat(_downKeys);
|
|
16606
16725
|
if (handler.method(event, handler) === false) {
|
|
16607
16726
|
if (event.preventDefault) event.preventDefault();else event.returnValue = false;
|
|
16608
16727
|
if (event.stopPropagation) event.stopPropagation();
|
|
@@ -16610,29 +16729,31 @@
|
|
|
16610
16729
|
}
|
|
16611
16730
|
}
|
|
16612
16731
|
}
|
|
16613
|
-
}
|
|
16732
|
+
}
|
|
16614
16733
|
|
|
16734
|
+
// 处理keydown事件
|
|
16615
16735
|
function dispatch(event, element) {
|
|
16616
16736
|
var asterisk = _handlers['*'];
|
|
16617
|
-
var key = event.keyCode || event.which || event.charCode;
|
|
16737
|
+
var key = event.keyCode || event.which || event.charCode;
|
|
16618
16738
|
|
|
16619
|
-
|
|
16620
|
-
|
|
16739
|
+
// 表单控件过滤 默认表单控件不触发快捷键
|
|
16740
|
+
if (!hotkeys.filter.call(this, event)) return;
|
|
16621
16741
|
|
|
16742
|
+
// Gecko(Firefox)的command键值224,在Webkit(Chrome)中保持一致
|
|
16743
|
+
// Webkit左右 command 键值不一样
|
|
16622
16744
|
if (key === 93 || key === 224) key = 91;
|
|
16745
|
+
|
|
16623
16746
|
/**
|
|
16624
16747
|
* Collect bound keys
|
|
16625
16748
|
* If an Input Method Editor is processing key input and the event is keydown, return 229.
|
|
16626
16749
|
* https://stackoverflow.com/questions/25043934/is-it-ok-to-ignore-keydown-events-with-keycode-229
|
|
16627
16750
|
* http://lists.w3.org/Archives/Public/www-dom/2010JulSep/att-0182/keyCode-spec.html
|
|
16628
16751
|
*/
|
|
16629
|
-
|
|
16630
16752
|
if (_downKeys.indexOf(key) === -1 && key !== 229) _downKeys.push(key);
|
|
16631
16753
|
/**
|
|
16632
16754
|
* Jest test cases are required.
|
|
16633
16755
|
* ===============================
|
|
16634
16756
|
*/
|
|
16635
|
-
|
|
16636
16757
|
['ctrlKey', 'altKey', 'shiftKey', 'metaKey'].forEach(function (keyName) {
|
|
16637
16758
|
var keyNum = modifierMap[keyName];
|
|
16638
16759
|
if (event[keyName] && _downKeys.indexOf(keyNum) === -1) {
|
|
@@ -16654,14 +16775,16 @@
|
|
|
16654
16775
|
*/
|
|
16655
16776
|
|
|
16656
16777
|
if (key in _mods) {
|
|
16657
|
-
_mods[key] = true;
|
|
16778
|
+
_mods[key] = true;
|
|
16658
16779
|
|
|
16780
|
+
// 将特殊字符的key注册到 hotkeys 上
|
|
16659
16781
|
for (var k in _modifier) {
|
|
16660
16782
|
if (_modifier[k] === key) hotkeys[k] = true;
|
|
16661
16783
|
}
|
|
16662
16784
|
if (!asterisk) return;
|
|
16663
|
-
}
|
|
16785
|
+
}
|
|
16664
16786
|
|
|
16787
|
+
// 将 modifierMap 里面的修饰键绑定到 event 中
|
|
16665
16788
|
for (var e in _mods) {
|
|
16666
16789
|
if (Object.prototype.hasOwnProperty.call(_mods, e)) {
|
|
16667
16790
|
_mods[e] = event[modifierMap[e]];
|
|
@@ -16673,7 +16796,6 @@
|
|
|
16673
16796
|
* An example of this is ctrl+alt+m on a Swedish keyboard which is used to type μ.
|
|
16674
16797
|
* Browser support: https://caniuse.com/#feat=keyboardevent-getmodifierstate
|
|
16675
16798
|
*/
|
|
16676
|
-
|
|
16677
16799
|
if (event.getModifierState && !(event.altKey && !event.ctrlKey) && event.getModifierState('AltGraph')) {
|
|
16678
16800
|
if (_downKeys.indexOf(17) === -1) {
|
|
16679
16801
|
_downKeys.push(17);
|
|
@@ -16683,18 +16805,19 @@
|
|
|
16683
16805
|
}
|
|
16684
16806
|
_mods[17] = true;
|
|
16685
16807
|
_mods[18] = true;
|
|
16686
|
-
}
|
|
16687
|
-
|
|
16688
|
-
var scope = getScope(); // 对任何快捷键都需要做的处理
|
|
16808
|
+
}
|
|
16689
16809
|
|
|
16810
|
+
// 获取范围 默认为 `all`
|
|
16811
|
+
var scope = getScope();
|
|
16812
|
+
// 对任何快捷键都需要做的处理
|
|
16690
16813
|
if (asterisk) {
|
|
16691
16814
|
for (var i = 0; i < asterisk.length; i++) {
|
|
16692
16815
|
if (asterisk[i].scope === scope && (event.type === 'keydown' && asterisk[i].keydown || event.type === 'keyup' && asterisk[i].keyup)) {
|
|
16693
16816
|
eventHandler(event, asterisk[i], scope, element);
|
|
16694
16817
|
}
|
|
16695
16818
|
}
|
|
16696
|
-
}
|
|
16697
|
-
|
|
16819
|
+
}
|
|
16820
|
+
// key 不在 _handlers 中返回
|
|
16698
16821
|
if (!(key in _handlers)) return;
|
|
16699
16822
|
for (var _i = 0; _i < _handlers[key].length; _i++) {
|
|
16700
16823
|
if (event.type === 'keydown' && _handlers[key][_i].keydown || event.type === 'keyup' && _handlers[key][_i].keyup) {
|
|
@@ -16703,7 +16826,6 @@
|
|
|
16703
16826
|
var splitKey = record.splitKey;
|
|
16704
16827
|
var keyShortcut = record.key.split(splitKey);
|
|
16705
16828
|
var _downKeysCurrent = []; // 记录当前按键键值
|
|
16706
|
-
|
|
16707
16829
|
for (var a = 0; a < keyShortcut.length; a++) {
|
|
16708
16830
|
_downKeysCurrent.push(code(keyShortcut[a]));
|
|
16709
16831
|
}
|
|
@@ -16714,56 +16836,52 @@
|
|
|
16714
16836
|
}
|
|
16715
16837
|
}
|
|
16716
16838
|
}
|
|
16717
|
-
}
|
|
16839
|
+
}
|
|
16718
16840
|
|
|
16841
|
+
// 判断 element 是否已经绑定事件
|
|
16719
16842
|
function isElementBind(element) {
|
|
16720
16843
|
return elementHasBindEvent.indexOf(element) > -1;
|
|
16721
16844
|
}
|
|
16722
16845
|
function hotkeys(key, option, method) {
|
|
16723
16846
|
_downKeys = [];
|
|
16724
16847
|
var keys = getKeys(key); // 需要处理的快捷键列表
|
|
16725
|
-
|
|
16726
16848
|
var mods = [];
|
|
16727
16849
|
var scope = 'all'; // scope默认为all,所有范围都有效
|
|
16728
|
-
|
|
16729
16850
|
var element = document; // 快捷键事件绑定节点
|
|
16730
|
-
|
|
16731
16851
|
var i = 0;
|
|
16732
16852
|
var keyup = false;
|
|
16733
16853
|
var keydown = true;
|
|
16734
16854
|
var splitKey = '+';
|
|
16735
|
-
var capture = false;
|
|
16855
|
+
var capture = false;
|
|
16736
16856
|
|
|
16857
|
+
// 对为设定范围的判断
|
|
16737
16858
|
if (method === undefined && typeof option === 'function') {
|
|
16738
16859
|
method = option;
|
|
16739
16860
|
}
|
|
16740
16861
|
if (Object.prototype.toString.call(option) === '[object Object]') {
|
|
16741
16862
|
if (option.scope) scope = option.scope; // eslint-disable-line
|
|
16742
|
-
|
|
16743
16863
|
if (option.element) element = option.element; // eslint-disable-line
|
|
16744
|
-
|
|
16745
16864
|
if (option.keyup) keyup = option.keyup; // eslint-disable-line
|
|
16746
|
-
|
|
16747
16865
|
if (option.keydown !== undefined) keydown = option.keydown; // eslint-disable-line
|
|
16748
|
-
|
|
16749
16866
|
if (option.capture !== undefined) capture = option.capture; // eslint-disable-line
|
|
16750
|
-
|
|
16751
16867
|
if (typeof option.splitKey === 'string') splitKey = option.splitKey; // eslint-disable-line
|
|
16752
16868
|
}
|
|
16753
16869
|
|
|
16754
|
-
if (typeof option === 'string') scope = option;
|
|
16870
|
+
if (typeof option === 'string') scope = option;
|
|
16755
16871
|
|
|
16872
|
+
// 对于每个快捷键进行处理
|
|
16756
16873
|
for (; i < keys.length; i++) {
|
|
16757
16874
|
key = keys[i].split(splitKey); // 按键列表
|
|
16875
|
+
mods = [];
|
|
16758
16876
|
|
|
16759
|
-
|
|
16760
|
-
|
|
16761
|
-
if (key.length > 1) mods = getMods(_modifier, key); // 将非修饰键转化为键码
|
|
16877
|
+
// 如果是组合快捷键取得组合快捷键
|
|
16878
|
+
if (key.length > 1) mods = getMods(_modifier, key);
|
|
16762
16879
|
|
|
16880
|
+
// 将非修饰键转化为键码
|
|
16763
16881
|
key = key[key.length - 1];
|
|
16764
16882
|
key = key === '*' ? '*' : code(key); // *表示匹配所有快捷键
|
|
16765
|
-
// 判断key是否在_handlers中,不在就赋一个空数组
|
|
16766
16883
|
|
|
16884
|
+
// 判断key是否在_handlers中,不在就赋一个空数组
|
|
16767
16885
|
if (!(key in _handlers)) _handlers[key] = [];
|
|
16768
16886
|
_handlers[key].push({
|
|
16769
16887
|
keyup: keyup,
|
|
@@ -16776,8 +16894,8 @@
|
|
|
16776
16894
|
splitKey: splitKey,
|
|
16777
16895
|
element: element
|
|
16778
16896
|
});
|
|
16779
|
-
}
|
|
16780
|
-
|
|
16897
|
+
}
|
|
16898
|
+
// 在全局document上设置快捷键
|
|
16781
16899
|
if (typeof element !== 'undefined' && !isElementBind(element) && window) {
|
|
16782
16900
|
elementHasBindEvent.push(element);
|
|
16783
16901
|
addEvent(element, 'keydown', function (e) {
|
|
@@ -16938,83 +17056,7 @@
|
|
|
16938
17056
|
return theme.colors.borderColor || '#000';
|
|
16939
17057
|
});
|
|
16940
17058
|
|
|
16941
|
-
function t(t) {
|
|
16942
|
-
return "object" == typeof t && null != t && 1 === t.nodeType;
|
|
16943
|
-
}
|
|
16944
|
-
function e(t, e) {
|
|
16945
|
-
return (!e || "hidden" !== t) && "visible" !== t && "clip" !== t;
|
|
16946
|
-
}
|
|
16947
|
-
function n(t, n) {
|
|
16948
|
-
if (t.clientHeight < t.scrollHeight || t.clientWidth < t.scrollWidth) {
|
|
16949
|
-
var r = getComputedStyle(t, null);
|
|
16950
|
-
return e(r.overflowY, n) || e(r.overflowX, n) || function (t) {
|
|
16951
|
-
var e = function (t) {
|
|
16952
|
-
if (!t.ownerDocument || !t.ownerDocument.defaultView) return null;
|
|
16953
|
-
try {
|
|
16954
|
-
return t.ownerDocument.defaultView.frameElement;
|
|
16955
|
-
} catch (t) {
|
|
16956
|
-
return null;
|
|
16957
|
-
}
|
|
16958
|
-
}(t);
|
|
16959
|
-
return !!e && (e.clientHeight < t.scrollHeight || e.clientWidth < t.scrollWidth);
|
|
16960
|
-
}(t);
|
|
16961
|
-
}
|
|
16962
|
-
return !1;
|
|
16963
|
-
}
|
|
16964
|
-
function r(t, e, n, r, i, o, l, d) {
|
|
16965
|
-
return o < t && l > e || o > t && l < e ? 0 : o <= t && d <= n || l >= e && d >= n ? o - t - r : l > e && d < n || o < t && d > n ? l - e + i : 0;
|
|
16966
|
-
}
|
|
16967
|
-
function computeScrollIntoView (e, i) {
|
|
16968
|
-
var o = window,
|
|
16969
|
-
l = i.scrollMode,
|
|
16970
|
-
d = i.block,
|
|
16971
|
-
u = i.inline,
|
|
16972
|
-
h = i.boundary,
|
|
16973
|
-
a = i.skipOverflowHiddenElements,
|
|
16974
|
-
c = "function" == typeof h ? h : function (t) {
|
|
16975
|
-
return t !== h;
|
|
16976
|
-
};
|
|
16977
|
-
if (!t(e)) throw new TypeError("Invalid target");
|
|
16978
|
-
for (var f = document.scrollingElement || document.documentElement, s = [], p = e; t(p) && c(p);) {
|
|
16979
|
-
if ((p = p.parentElement) === f) {
|
|
16980
|
-
s.push(p);
|
|
16981
|
-
break;
|
|
16982
|
-
}
|
|
16983
|
-
null != p && p === document.body && n(p) && !n(document.documentElement) || null != p && n(p, a) && s.push(p);
|
|
16984
|
-
}
|
|
16985
|
-
for (var m = o.visualViewport ? o.visualViewport.width : innerWidth, g = o.visualViewport ? o.visualViewport.height : innerHeight, w = window.scrollX || pageXOffset, v = window.scrollY || pageYOffset, W = e.getBoundingClientRect(), b = W.height, H = W.width, y = W.top, E = W.right, M = W.bottom, V = W.left, x = "start" === d || "nearest" === d ? y : "end" === d ? M : y + b / 2, I = "center" === u ? V + H / 2 : "end" === u ? E : V, C = [], T = 0; T < s.length; T++) {
|
|
16986
|
-
var k = s[T],
|
|
16987
|
-
B = k.getBoundingClientRect(),
|
|
16988
|
-
D = B.height,
|
|
16989
|
-
O = B.width,
|
|
16990
|
-
R = B.top,
|
|
16991
|
-
X = B.right,
|
|
16992
|
-
Y = B.bottom,
|
|
16993
|
-
L = B.left;
|
|
16994
|
-
if ("if-needed" === l && y >= 0 && V >= 0 && M <= g && E <= m && y >= R && M <= Y && V >= L && E <= X) return C;
|
|
16995
|
-
var S = getComputedStyle(k),
|
|
16996
|
-
j = parseInt(S.borderLeftWidth, 10),
|
|
16997
|
-
q = parseInt(S.borderTopWidth, 10),
|
|
16998
|
-
z = parseInt(S.borderRightWidth, 10),
|
|
16999
|
-
A = parseInt(S.borderBottomWidth, 10),
|
|
17000
|
-
F = 0,
|
|
17001
|
-
G = 0,
|
|
17002
|
-
J = "offsetWidth" in k ? k.offsetWidth - k.clientWidth - j - z : 0,
|
|
17003
|
-
K = "offsetHeight" in k ? k.offsetHeight - k.clientHeight - q - A : 0;
|
|
17004
|
-
if (f === k) F = "start" === d ? x : "end" === d ? x - g : "nearest" === d ? r(v, v + g, g, q, A, v + x, v + x + b, b) : x - g / 2, G = "start" === u ? I : "center" === u ? I - m / 2 : "end" === u ? I - m : r(w, w + m, m, j, z, w + I, w + I + H, H), F = Math.max(0, F + v), G = Math.max(0, G + w);else {
|
|
17005
|
-
F = "start" === d ? x - R - q : "end" === d ? x - Y + A + K : "nearest" === d ? r(R, Y, D, q, A + K, x, x + b, b) : x - (R + D / 2) + K / 2, G = "start" === u ? I - L - j : "center" === u ? I - (L + O / 2) + J / 2 : "end" === u ? I - X + z + J : r(L, X, O, j, z + J, I, I + H, H);
|
|
17006
|
-
var N = k.scrollLeft,
|
|
17007
|
-
P = k.scrollTop;
|
|
17008
|
-
x += P - (F = Math.max(0, Math.min(P + F, k.scrollHeight - D + K))), I += N - (G = Math.max(0, Math.min(N + G, k.scrollWidth - O + J)));
|
|
17009
|
-
}
|
|
17010
|
-
C.push({
|
|
17011
|
-
el: k,
|
|
17012
|
-
top: F,
|
|
17013
|
-
left: G
|
|
17014
|
-
});
|
|
17015
|
-
}
|
|
17016
|
-
return C;
|
|
17017
|
-
}
|
|
17059
|
+
function t(t){return "object"==typeof t&&null!=t&&1===t.nodeType}function e(t,e){return (!e||"hidden"!==t)&&"visible"!==t&&"clip"!==t}function n(t,n){if(t.clientHeight<t.scrollHeight||t.clientWidth<t.scrollWidth){var r=getComputedStyle(t,null);return e(r.overflowY,n)||e(r.overflowX,n)||function(t){var e=function(t){if(!t.ownerDocument||!t.ownerDocument.defaultView)return null;try{return t.ownerDocument.defaultView.frameElement}catch(t){return null}}(t);return !!e&&(e.clientHeight<t.scrollHeight||e.clientWidth<t.scrollWidth)}(t)}return !1}function r(t,e,n,r,i,o,l,d){return o<t&&l>e||o>t&&l<e?0:o<=t&&d<=n||l>=e&&d>=n?o-t-r:l>e&&d<n||o<t&&d>n?l-e+i:0}var i=function(e,i){var o=window,l=i.scrollMode,d=i.block,f=i.inline,h=i.boundary,u=i.skipOverflowHiddenElements,s="function"==typeof h?h:function(t){return t!==h};if(!t(e))throw new TypeError("Invalid target");for(var a,c,g=document.scrollingElement||document.documentElement,p=[],m=e;t(m)&&s(m);){if((m=null==(c=(a=m).parentElement)?a.getRootNode().host||null:c)===g){p.push(m);break}null!=m&&m===document.body&&n(m)&&!n(document.documentElement)||null!=m&&n(m,u)&&p.push(m);}for(var w=o.visualViewport?o.visualViewport.width:innerWidth,v=o.visualViewport?o.visualViewport.height:innerHeight,W=window.scrollX||pageXOffset,H=window.scrollY||pageYOffset,b=e.getBoundingClientRect(),y=b.height,E=b.width,M=b.top,V=b.right,x=b.bottom,I=b.left,C="start"===d||"nearest"===d?M:"end"===d?x:M+y/2,R="center"===f?I+E/2:"end"===f?V:I,T=[],k=0;k<p.length;k++){var B=p[k],D=B.getBoundingClientRect(),O=D.height,X=D.width,Y=D.top,L=D.right,S=D.bottom,j=D.left;if("if-needed"===l&&M>=0&&I>=0&&x<=v&&V<=w&&M>=Y&&x<=S&&I>=j&&V<=L)return T;var N=getComputedStyle(B),q=parseInt(N.borderLeftWidth,10),z=parseInt(N.borderTopWidth,10),A=parseInt(N.borderRightWidth,10),F=parseInt(N.borderBottomWidth,10),G=0,J=0,K="offsetWidth"in B?B.offsetWidth-B.clientWidth-q-A:0,P="offsetHeight"in B?B.offsetHeight-B.clientHeight-z-F:0,Q="offsetWidth"in B?0===B.offsetWidth?0:X/B.offsetWidth:0,U="offsetHeight"in B?0===B.offsetHeight?0:O/B.offsetHeight:0;if(g===B)G="start"===d?C:"end"===d?C-v:"nearest"===d?r(H,H+v,v,z,F,H+C,H+C+y,y):C-v/2,J="start"===f?R:"center"===f?R-w/2:"end"===f?R-w:r(W,W+w,w,q,A,W+R,W+R+E,E),G=Math.max(0,G+H),J=Math.max(0,J+W);else {G="start"===d?C-Y-z:"end"===d?C-S+F+P:"nearest"===d?r(Y,S,O,z,F+P,C,C+y,y):C-(Y+O/2)+P/2,J="start"===f?R-j-q:"center"===f?R-(j+X/2)+K/2:"end"===f?R-L+A+K:r(j,L,X,q,A+K,R,R+E,E);var Z=B.scrollLeft,$=B.scrollTop;C+=$-(G=Math.max(0,Math.min($+G/U,B.scrollHeight-O/U+P))),R+=Z-(J=Math.max(0,Math.min(Z+J/Q,B.scrollWidth-X/Q+K)));}T.push({el:B,top:G,left:J});}return T};
|
|
17018
17060
|
|
|
17019
17061
|
/**
|
|
17020
17062
|
* Scroll node into view if necessary
|
|
@@ -17026,7 +17068,7 @@
|
|
|
17026
17068
|
if (node === null) {
|
|
17027
17069
|
return;
|
|
17028
17070
|
}
|
|
17029
|
-
var actions =
|
|
17071
|
+
var actions = i(node, {
|
|
17030
17072
|
boundary: rootNode,
|
|
17031
17073
|
block: 'nearest',
|
|
17032
17074
|
scrollMode: 'if-needed'
|
|
@@ -19495,14 +19537,14 @@
|
|
|
19495
19537
|
}, [this.renderIcon()])])]);
|
|
19496
19538
|
},
|
|
19497
19539
|
focusSearchBox: function focusSearchBox(event) {
|
|
19498
|
-
var _this$$refs
|
|
19540
|
+
var _this$$refs;
|
|
19499
19541
|
var elt = event.target || event.srcElement;
|
|
19500
19542
|
var tagName = elt.tagName;
|
|
19501
19543
|
if (elt.isContentEditable || tagName === 'INPUT' || tagName === 'SELECT' || tagName === 'TEXTAREA') {
|
|
19502
19544
|
// already in an input
|
|
19503
19545
|
return;
|
|
19504
19546
|
}
|
|
19505
|
-
(_this$$refs = this.$refs) == null
|
|
19547
|
+
(_this$$refs = this.$refs) == null || (_this$$refs = _this$$refs[this.$props.innerRef]) == null ? void 0 : _this$$refs.focus(); // eslint-disable-line
|
|
19506
19548
|
},
|
|
19507
19549
|
listenForFocusShortcuts: function listenForFocusShortcuts() {
|
|
19508
19550
|
var _this5 = this;
|
|
@@ -20727,14 +20769,14 @@
|
|
|
20727
20769
|
}, [this.renderIcon()])])]);
|
|
20728
20770
|
},
|
|
20729
20771
|
focusSearchBox: function focusSearchBox(event) {
|
|
20730
|
-
var _this$$refs
|
|
20772
|
+
var _this$$refs;
|
|
20731
20773
|
var elt = event.target || event.srcElement;
|
|
20732
20774
|
var tagName = elt.tagName;
|
|
20733
20775
|
if (elt.isContentEditable || tagName === 'INPUT' || tagName === 'SELECT' || tagName === 'TEXTAREA') {
|
|
20734
20776
|
// already in an input
|
|
20735
20777
|
return;
|
|
20736
20778
|
}
|
|
20737
|
-
(_this$$refs = this.$refs) == null
|
|
20779
|
+
(_this$$refs = this.$refs) == null || (_this$$refs = _this$$refs[this.$props.innerRef]) == null ? void 0 : _this$$refs.focus(); // eslint-disable-line
|
|
20738
20780
|
},
|
|
20739
20781
|
listenForFocusShortcuts: function listenForFocusShortcuts() {
|
|
20740
20782
|
var _this5 = this;
|
|
@@ -21951,14 +21993,14 @@
|
|
|
21951
21993
|
if (selectAllLabel && selectAllLabel in currentValue) {
|
|
21952
21994
|
var _currentValue = currentValue,
|
|
21953
21995
|
del = _currentValue[selectAllLabel],
|
|
21954
|
-
obj = _objectWithoutPropertiesLoose(_currentValue, [selectAllLabel].map(_toPropertyKey));
|
|
21996
|
+
obj = _objectWithoutPropertiesLoose(_currentValue, [selectAllLabel].map(_toPropertyKey$1));
|
|
21955
21997
|
currentValue = _extends({}, obj);
|
|
21956
21998
|
}
|
|
21957
21999
|
} else {
|
|
21958
22000
|
if (currentValue[value]) {
|
|
21959
22001
|
var _currentValue2 = currentValue,
|
|
21960
22002
|
_del = _currentValue2[value],
|
|
21961
|
-
rest = _objectWithoutPropertiesLoose(_currentValue2, [value].map(_toPropertyKey));
|
|
22003
|
+
rest = _objectWithoutPropertiesLoose(_currentValue2, [value].map(_toPropertyKey$1));
|
|
21962
22004
|
currentValue = _extends({}, rest);
|
|
21963
22005
|
} else if (Array.isArray(value)) {
|
|
21964
22006
|
value.forEach(function (val) {
|
|
@@ -21970,7 +22012,7 @@
|
|
|
21970
22012
|
if (selectAllLabel && selectAllLabel in currentValue) {
|
|
21971
22013
|
var _currentValue3 = currentValue,
|
|
21972
22014
|
_del2 = _currentValue3[selectAllLabel],
|
|
21973
|
-
_obj = _objectWithoutPropertiesLoose(_currentValue3, [selectAllLabel].map(_toPropertyKey));
|
|
22015
|
+
_obj = _objectWithoutPropertiesLoose(_currentValue3, [selectAllLabel].map(_toPropertyKey$1));
|
|
21974
22016
|
currentValue = _extends({}, _obj);
|
|
21975
22017
|
}
|
|
21976
22018
|
finalValues = Object.keys(currentValue);
|
|
@@ -23212,14 +23254,14 @@
|
|
|
23212
23254
|
if (selectAllLabel && selectAllLabel in currentValue) {
|
|
23213
23255
|
var _currentValue = currentValue,
|
|
23214
23256
|
del = _currentValue[selectAllLabel],
|
|
23215
|
-
obj = _objectWithoutPropertiesLoose(_currentValue, [selectAllLabel].map(_toPropertyKey));
|
|
23257
|
+
obj = _objectWithoutPropertiesLoose(_currentValue, [selectAllLabel].map(_toPropertyKey$1));
|
|
23216
23258
|
currentValue = _extends({}, obj);
|
|
23217
23259
|
}
|
|
23218
23260
|
} else {
|
|
23219
23261
|
if (currentValue[value]) {
|
|
23220
23262
|
var _currentValue2 = currentValue,
|
|
23221
23263
|
_del = _currentValue2[value],
|
|
23222
|
-
rest = _objectWithoutPropertiesLoose(_currentValue2, [value].map(_toPropertyKey));
|
|
23264
|
+
rest = _objectWithoutPropertiesLoose(_currentValue2, [value].map(_toPropertyKey$1));
|
|
23223
23265
|
currentValue = _extends({}, rest);
|
|
23224
23266
|
} else {
|
|
23225
23267
|
currentValue[value] = true;
|
|
@@ -23227,7 +23269,7 @@
|
|
|
23227
23269
|
if (selectAllLabel && selectAllLabel in currentValue) {
|
|
23228
23270
|
var _currentValue3 = currentValue,
|
|
23229
23271
|
_del2 = _currentValue3[selectAllLabel],
|
|
23230
|
-
_obj = _objectWithoutPropertiesLoose(_currentValue3, [selectAllLabel].map(_toPropertyKey));
|
|
23272
|
+
_obj = _objectWithoutPropertiesLoose(_currentValue3, [selectAllLabel].map(_toPropertyKey$1));
|
|
23231
23273
|
currentValue = _extends({}, _obj);
|
|
23232
23274
|
}
|
|
23233
23275
|
finalValues = Object.keys(currentValue);
|
|
@@ -23782,6 +23824,11 @@
|
|
|
23782
23824
|
index: VueTypes.string,
|
|
23783
23825
|
endpoint: types.endpointConfig
|
|
23784
23826
|
},
|
|
23827
|
+
data: function data() {
|
|
23828
|
+
return {
|
|
23829
|
+
currentValue: this.selectedValue
|
|
23830
|
+
};
|
|
23831
|
+
},
|
|
23785
23832
|
created: function created() {
|
|
23786
23833
|
var _this = this;
|
|
23787
23834
|
var props = this.$props;
|
|
@@ -23870,6 +23917,12 @@
|
|
|
23870
23917
|
}
|
|
23871
23918
|
},
|
|
23872
23919
|
watch: {
|
|
23920
|
+
selectedValue: function selectedValue(newVal, oldVal) {
|
|
23921
|
+
if (!isEqual$b(newVal, oldVal)) {
|
|
23922
|
+
this.$emit('data', this.getData());
|
|
23923
|
+
this.currentValue = newVal;
|
|
23924
|
+
}
|
|
23925
|
+
},
|
|
23873
23926
|
hits: function hits(newVal, oldVal) {
|
|
23874
23927
|
if (!isEqual$b(newVal, oldVal)) {
|
|
23875
23928
|
this.$emit('data', this.getData());
|
|
@@ -23950,14 +24003,13 @@
|
|
|
23950
24003
|
try {
|
|
23951
24004
|
var dom = this.$scopedSlots["default"];
|
|
23952
24005
|
var error = this.error,
|
|
23953
|
-
isLoading = this.isLoading
|
|
23954
|
-
selectedValue = this.selectedValue;
|
|
24006
|
+
isLoading = this.isLoading;
|
|
23955
24007
|
var propsToBePassed = _extends({
|
|
23956
24008
|
error: error,
|
|
23957
24009
|
loading: isLoading
|
|
23958
24010
|
}, this.getData(), {
|
|
23959
|
-
|
|
23960
|
-
|
|
24011
|
+
setQuery: this.setQuery,
|
|
24012
|
+
value: this.currentValue
|
|
23961
24013
|
});
|
|
23962
24014
|
return h("div", [dom(propsToBePassed)]);
|
|
23963
24015
|
} catch (e) {
|
|
@@ -24842,7 +24894,7 @@
|
|
|
24842
24894
|
});
|
|
24843
24895
|
var _selectedValues = selectedValues,
|
|
24844
24896
|
del = _selectedValues[item],
|
|
24845
|
-
selected = _objectWithoutPropertiesLoose(_selectedValues, [item].map(_toPropertyKey));
|
|
24897
|
+
selected = _objectWithoutPropertiesLoose(_selectedValues, [item].map(_toPropertyKey$1));
|
|
24846
24898
|
selectedValues = selected;
|
|
24847
24899
|
} else {
|
|
24848
24900
|
var _extends2;
|
|
@@ -26291,14 +26343,14 @@
|
|
|
26291
26343
|
}
|
|
26292
26344
|
return target;
|
|
26293
26345
|
}
|
|
26294
|
-
function _typeof$
|
|
26346
|
+
function _typeof$3(obj) {
|
|
26295
26347
|
"@babel/helpers - typeof";
|
|
26296
26348
|
|
|
26297
|
-
return _typeof$
|
|
26349
|
+
return _typeof$3 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
26298
26350
|
return typeof obj;
|
|
26299
26351
|
} : function (obj) {
|
|
26300
26352
|
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
26301
|
-
}, _typeof$
|
|
26353
|
+
}, _typeof$3(obj);
|
|
26302
26354
|
}
|
|
26303
26355
|
function _defineProperty$2(obj, key, value) {
|
|
26304
26356
|
if (key in obj) {
|
|
@@ -27181,62 +27233,60 @@
|
|
|
27181
27233
|
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
27182
27234
|
var scopedInput, autocompleteOptions;
|
|
27183
27235
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
27184
|
-
while (1) {
|
|
27185
|
-
|
|
27186
|
-
|
|
27187
|
-
|
|
27188
|
-
|
|
27189
|
-
|
|
27190
|
-
|
|
27191
|
-
|
|
27192
|
-
|
|
27193
|
-
|
|
27194
|
-
|
|
27195
|
-
|
|
27196
|
-
|
|
27197
|
-
|
|
27198
|
-
|
|
27199
|
-
|
|
27200
|
-
|
|
27201
|
-
|
|
27202
|
-
|
|
27203
|
-
|
|
27204
|
-
|
|
27205
|
-
|
|
27206
|
-
|
|
27207
|
-
|
|
27208
|
-
|
|
27209
|
-
|
|
27210
|
-
|
|
27211
|
-
|
|
27212
|
-
|
|
27213
|
-
|
|
27214
|
-
|
|
27215
|
-
|
|
27216
|
-
|
|
27217
|
-
|
|
27218
|
-
|
|
27219
|
-
|
|
27220
|
-
|
|
27221
|
-
|
|
27222
|
-
|
|
27223
|
-
}
|
|
27236
|
+
while (1) switch (_context.prev = _context.next) {
|
|
27237
|
+
case 0:
|
|
27238
|
+
_context.next = 2;
|
|
27239
|
+
return _this.$gmapApiPromiseLazy();
|
|
27240
|
+
case 2:
|
|
27241
|
+
scopedInput = null;
|
|
27242
|
+
if (!_this.$scopedSlots["default"]) {
|
|
27243
|
+
_context.next = 9;
|
|
27244
|
+
break;
|
|
27245
|
+
}
|
|
27246
|
+
if (Object.keys(_this.$scopedSlots["default"]()[0].context.$refs).length) {
|
|
27247
|
+
_context.next = 6;
|
|
27248
|
+
break;
|
|
27249
|
+
}
|
|
27250
|
+
throw new Error('If you use the slot input you must add a ref to the element that you will use as the input, and if you use a vue component, eg: v-text-field, etc, you need to set the childRefName indicating what is the ref name of the html input elemnt behind your component.');
|
|
27251
|
+
case 6:
|
|
27252
|
+
scopedInput = _this.$scopedSlots["default"]()[0].context.$refs[_this.slotRefName];
|
|
27253
|
+
if (scopedInput && scopedInput.$refs) {
|
|
27254
|
+
scopedInput = scopedInput.$refs[_this.childRefName];
|
|
27255
|
+
}
|
|
27256
|
+
if (scopedInput) {
|
|
27257
|
+
_this.$refs.input = scopedInput;
|
|
27258
|
+
}
|
|
27259
|
+
case 9:
|
|
27260
|
+
if (_this.selectFirstOnEnter) {
|
|
27261
|
+
downArrowSimulator(_this.$refs.input);
|
|
27262
|
+
}
|
|
27263
|
+
if (!(typeof google.maps.places.Autocomplete !== 'function')) {
|
|
27264
|
+
_context.next = 12;
|
|
27265
|
+
break;
|
|
27266
|
+
}
|
|
27267
|
+
throw new Error("google.maps.places.Autocomplete is undefined. Did you add 'places' to libraries when loading Google Maps?");
|
|
27268
|
+
case 12:
|
|
27269
|
+
autocompleteOptions = _extends({}, getPropsValues(_this, autocompleteMappedProps), _this.options);
|
|
27270
|
+
_this.$autocomplete = new google.maps.places.Autocomplete(_this.$refs.input, autocompleteOptions);
|
|
27271
|
+
bindProps(_this, _this.$autocomplete, autocompleteMappedProps);
|
|
27272
|
+
if (_this.setFieldsTo) {
|
|
27273
|
+
_this.$autocomplete.setFields(_this.setFieldsTo);
|
|
27274
|
+
}
|
|
27224
27275
|
|
|
27225
|
-
|
|
27226
|
-
|
|
27227
|
-
|
|
27228
|
-
|
|
27229
|
-
|
|
27230
|
-
|
|
27231
|
-
|
|
27232
|
-
|
|
27233
|
-
|
|
27234
|
-
|
|
27235
|
-
|
|
27236
|
-
|
|
27237
|
-
|
|
27238
|
-
|
|
27239
|
-
}
|
|
27276
|
+
// Not using `bindEvents` because we also want
|
|
27277
|
+
// to return the result of `getPlace()`
|
|
27278
|
+
_this.$autocomplete.addListener('place_changed', function () {
|
|
27279
|
+
/**
|
|
27280
|
+
* Place change event
|
|
27281
|
+
* @event place_changed
|
|
27282
|
+
* @property {object} place `this.$autocomplete.getPlace()`
|
|
27283
|
+
* @see [Get place information](https://developers.google.com/maps/documentation/javascript/places-autocomplete#get-place-information)
|
|
27284
|
+
*/
|
|
27285
|
+
_this.$emit('place_changed', _this.$autocomplete.getPlace());
|
|
27286
|
+
});
|
|
27287
|
+
case 17:
|
|
27288
|
+
case "end":
|
|
27289
|
+
return _context.stop();
|
|
27240
27290
|
}
|
|
27241
27291
|
}, _callee);
|
|
27242
27292
|
}))();
|
|
@@ -27650,12 +27700,8 @@
|
|
|
27650
27700
|
swapItem(ids, coords, i, j);
|
|
27651
27701
|
i++;
|
|
27652
27702
|
j--;
|
|
27653
|
-
while (coords[2 * i + inc] < t)
|
|
27654
|
-
|
|
27655
|
-
}
|
|
27656
|
-
while (coords[2 * j + inc] > t) {
|
|
27657
|
-
j--;
|
|
27658
|
-
}
|
|
27703
|
+
while (coords[2 * i + inc] < t) i++;
|
|
27704
|
+
while (coords[2 * j + inc] > t) j--;
|
|
27659
27705
|
}
|
|
27660
27706
|
if (coords[2 * left + inc] === t) swapItem(ids, coords, left, j);else {
|
|
27661
27707
|
j++;
|
|
@@ -28161,9 +28207,7 @@
|
|
|
28161
28207
|
return 360 * Math.atan(Math.exp(y2)) / Math.PI - 90;
|
|
28162
28208
|
}
|
|
28163
28209
|
function extend(dest, src) {
|
|
28164
|
-
for (var id in src)
|
|
28165
|
-
dest[id] = src[id];
|
|
28166
|
-
}
|
|
28210
|
+
for (var id in src) dest[id] = src[id];
|
|
28167
28211
|
return dest;
|
|
28168
28212
|
}
|
|
28169
28213
|
function getX(p) {
|
|
@@ -28181,9 +28225,7 @@
|
|
|
28181
28225
|
if (Array.isArray(a)) {
|
|
28182
28226
|
length = a.length;
|
|
28183
28227
|
if (length != b.length) return false;
|
|
28184
|
-
for (i = length; i-- !== 0;)
|
|
28185
|
-
if (!equal(a[i], b[i])) return false;
|
|
28186
|
-
}
|
|
28228
|
+
for (i = length; i-- !== 0;) if (!equal(a[i], b[i])) return false;
|
|
28187
28229
|
return true;
|
|
28188
28230
|
}
|
|
28189
28231
|
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
|
|
@@ -28192,9 +28234,7 @@
|
|
|
28192
28234
|
keys = Object.keys(a);
|
|
28193
28235
|
length = keys.length;
|
|
28194
28236
|
if (length !== Object.keys(b).length) return false;
|
|
28195
|
-
for (i = length; i-- !== 0;)
|
|
28196
|
-
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
28197
|
-
}
|
|
28237
|
+
for (i = length; i-- !== 0;) if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
28198
28238
|
for (i = length; i-- !== 0;) {
|
|
28199
28239
|
var key = keys[i];
|
|
28200
28240
|
if (!equal(a[key], b[key])) return false;
|
|
@@ -28222,9 +28262,7 @@
|
|
|
28222
28262
|
|
|
28223
28263
|
function __rest(s, e) {
|
|
28224
28264
|
var t = {};
|
|
28225
|
-
for (var p in s)
|
|
28226
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
28227
|
-
}
|
|
28265
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
28228
28266
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
28229
28267
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
28230
28268
|
}
|
|
@@ -31550,7 +31588,7 @@
|
|
|
31550
31588
|
* such as Google for business
|
|
31551
31589
|
* https://developers.google.com/maps/documentation/javascript/get-api-key#premium-auth
|
|
31552
31590
|
*/
|
|
31553
|
-
if (_typeof$
|
|
31591
|
+
if (_typeof$3(options) !== 'object') {
|
|
31554
31592
|
throw new Error('options should be an object');
|
|
31555
31593
|
} // Do nothing if run from server-side
|
|
31556
31594
|
|
|
@@ -31785,8 +31823,8 @@
|
|
|
31785
31823
|
|
|
31786
31824
|
var BASE32_CODES = "0123456789bcdefghjkmnpqrstuvwxyz";
|
|
31787
31825
|
var BASE32_CODES_DICT = {};
|
|
31788
|
-
for (var i = 0; i < BASE32_CODES.length; i++) {
|
|
31789
|
-
BASE32_CODES_DICT[BASE32_CODES.charAt(i)] = i;
|
|
31826
|
+
for (var i$1 = 0; i$1 < BASE32_CODES.length; i$1++) {
|
|
31827
|
+
BASE32_CODES_DICT[BASE32_CODES.charAt(i$1)] = i$1;
|
|
31790
31828
|
}
|
|
31791
31829
|
var ENCODE_AUTO = 'auto';
|
|
31792
31830
|
var MIN_LAT = -90;
|
|
@@ -33433,7 +33471,7 @@
|
|
|
33433
33471
|
var id = marker.metaData && marker.metaData._id;
|
|
33434
33472
|
var _this$openMarkers = this.openMarkers,
|
|
33435
33473
|
del = _this$openMarkers[id],
|
|
33436
|
-
activeMarkers = _objectWithoutPropertiesLoose(_this$openMarkers, [id].map(_toPropertyKey));
|
|
33474
|
+
activeMarkers = _objectWithoutPropertiesLoose(_this$openMarkers, [id].map(_toPropertyKey$1));
|
|
33437
33475
|
var newOpenMarkers = autoClosePopover ? {} : activeMarkers;
|
|
33438
33476
|
this.setOpenMarkers(newOpenMarkers);
|
|
33439
33477
|
handlePreserveCenter(true);
|
|
@@ -33941,7 +33979,7 @@
|
|
|
33941
33979
|
openMarkers = _this$$props2.openMarkers;
|
|
33942
33980
|
var id = marker._id;
|
|
33943
33981
|
var del = openMarkers[id],
|
|
33944
|
-
activeMarkers = _objectWithoutPropertiesLoose(openMarkers, [id].map(_toPropertyKey));
|
|
33982
|
+
activeMarkers = _objectWithoutPropertiesLoose(openMarkers, [id].map(_toPropertyKey$1));
|
|
33945
33983
|
var newOpenMarkers = autoClosePopover ? {} : activeMarkers;
|
|
33946
33984
|
handleOpenMarkers(newOpenMarkers);
|
|
33947
33985
|
handlePreserveCenter(true);
|
|
@@ -34880,7 +34918,7 @@
|
|
|
34880
34918
|
});
|
|
34881
34919
|
}
|
|
34882
34920
|
|
|
34883
|
-
var version = "1.35.
|
|
34921
|
+
var version = "1.35.1";
|
|
34884
34922
|
|
|
34885
34923
|
var components$1 = [RLConnected, ResultCard, ResultList, ReactiveBase, DSConnected, SBConnected, ListConnected, ListConnected$1, RangeConnected$1, RangeConnected$2, RangeConnected$3, RangeConnected, RcConnected, RcConnected$1, RcConnected$2, TBConnected, ListConnected$2, ListConnected$3, StateProviderConnected, RangeConnected$4];
|
|
34886
34924
|
function install (Vue) {
|