@appbaseio/reactivesearch-vue 3.0.0-rc.14 → 3.0.0-rc.16
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 +166 -111
- package/dist/@appbaseio/reactivesearch-vue.umd.js.map +1 -1
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js +4 -4
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js.map +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/{install-a446da53.js → install-aa32f65f.js} +40 -43
- package/dist/cjs/install.js +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/es/index.js +2 -2
- package/dist/es/{install-97d87a4d.js → install-28637a98.js} +40 -43
- package/dist/es/install.js +1 -1
- package/dist/es/version.js +1 -1
- package/package.json +2 -2
|
@@ -5797,9 +5797,9 @@
|
|
|
5797
5797
|
u = "hour",
|
|
5798
5798
|
a = "day",
|
|
5799
5799
|
o = "week",
|
|
5800
|
-
|
|
5801
|
-
|
|
5802
|
-
|
|
5800
|
+
c = "month",
|
|
5801
|
+
f = "quarter",
|
|
5802
|
+
h = "year",
|
|
5803
5803
|
d = "date",
|
|
5804
5804
|
l = "Invalid Date",
|
|
5805
5805
|
$ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,
|
|
@@ -5830,9 +5830,9 @@
|
|
|
5830
5830
|
m: function t(e, n) {
|
|
5831
5831
|
if (e.date() < n.date()) return -t(n, e);
|
|
5832
5832
|
var r = 12 * (n.year() - e.year()) + (n.month() - e.month()),
|
|
5833
|
-
i = e.clone().add(r,
|
|
5833
|
+
i = e.clone().add(r, c),
|
|
5834
5834
|
s = n - i < 0,
|
|
5835
|
-
u = e.clone().add(r + (s ? -1 : 1),
|
|
5835
|
+
u = e.clone().add(r + (s ? -1 : 1), c);
|
|
5836
5836
|
return +(-(r + (n - i) / (s ? i - u : u - i)) || 0);
|
|
5837
5837
|
},
|
|
5838
5838
|
a: function a(t) {
|
|
@@ -5840,8 +5840,8 @@
|
|
|
5840
5840
|
},
|
|
5841
5841
|
p: function p(t) {
|
|
5842
5842
|
return {
|
|
5843
|
-
M:
|
|
5844
|
-
y:
|
|
5843
|
+
M: c,
|
|
5844
|
+
y: h,
|
|
5845
5845
|
w: o,
|
|
5846
5846
|
d: a,
|
|
5847
5847
|
D: d,
|
|
@@ -5849,7 +5849,7 @@
|
|
|
5849
5849
|
m: s,
|
|
5850
5850
|
s: i,
|
|
5851
5851
|
ms: r,
|
|
5852
|
-
Q:
|
|
5852
|
+
Q: f
|
|
5853
5853
|
}[t] || String(t || "").toLowerCase().replace(/s$/, "");
|
|
5854
5854
|
},
|
|
5855
5855
|
u: function u(t) {
|
|
@@ -5860,7 +5860,7 @@
|
|
|
5860
5860
|
D = {};
|
|
5861
5861
|
D[g] = M;
|
|
5862
5862
|
var p = function p(t) {
|
|
5863
|
-
return t instanceof
|
|
5863
|
+
return t instanceof b;
|
|
5864
5864
|
},
|
|
5865
5865
|
S = function t(e, n, r) {
|
|
5866
5866
|
var i;
|
|
@@ -5879,7 +5879,7 @@
|
|
|
5879
5879
|
w = function w(t, e) {
|
|
5880
5880
|
if (p(t)) return t.clone();
|
|
5881
5881
|
var n = "object" == typeof e ? e : {};
|
|
5882
|
-
return n.date = t, n.args = arguments, new
|
|
5882
|
+
return n.date = t, n.args = arguments, new b(n);
|
|
5883
5883
|
},
|
|
5884
5884
|
O = v;
|
|
5885
5885
|
O.l = S, O.i = p, O.w = function (t, e) {
|
|
@@ -5890,7 +5890,7 @@
|
|
|
5890
5890
|
$offset: e.$offset
|
|
5891
5891
|
});
|
|
5892
5892
|
};
|
|
5893
|
-
var
|
|
5893
|
+
var b = function () {
|
|
5894
5894
|
function M(t) {
|
|
5895
5895
|
this.$L = S(t.locale, null, !0), this.parse(t);
|
|
5896
5896
|
}
|
|
@@ -5935,7 +5935,7 @@
|
|
|
5935
5935
|
}, m.startOf = function (t, e) {
|
|
5936
5936
|
var n = this,
|
|
5937
5937
|
r = !!O.u(e) || e,
|
|
5938
|
-
|
|
5938
|
+
f = O.p(t),
|
|
5939
5939
|
l = function l(t, e) {
|
|
5940
5940
|
var i = O.w(n.$u ? Date.UTC(n.$y, e, t) : new Date(n.$y, e, t), n);
|
|
5941
5941
|
return r ? i : i.endOf(a);
|
|
@@ -5947,10 +5947,10 @@
|
|
|
5947
5947
|
M = this.$M,
|
|
5948
5948
|
m = this.$D,
|
|
5949
5949
|
v = "set" + (this.$u ? "UTC" : "");
|
|
5950
|
-
switch (
|
|
5951
|
-
case
|
|
5950
|
+
switch (f) {
|
|
5951
|
+
case h:
|
|
5952
5952
|
return r ? l(1, 0) : l(31, 11);
|
|
5953
|
-
case
|
|
5953
|
+
case c:
|
|
5954
5954
|
return r ? l(1, M) : l(0, M + 1);
|
|
5955
5955
|
case o:
|
|
5956
5956
|
var g = this.$locale().weekStart || 0,
|
|
@@ -5973,10 +5973,10 @@
|
|
|
5973
5973
|
}, m.$set = function (t, e) {
|
|
5974
5974
|
var n,
|
|
5975
5975
|
o = O.p(t),
|
|
5976
|
-
|
|
5977
|
-
l = (n = {}, n[a] =
|
|
5976
|
+
f = "set" + (this.$u ? "UTC" : ""),
|
|
5977
|
+
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],
|
|
5978
5978
|
$ = o === a ? this.$D + (e - this.$W) : e;
|
|
5979
|
-
if (o ===
|
|
5979
|
+
if (o === c || o === h) {
|
|
5980
5980
|
var y = this.clone().set(d, 1);
|
|
5981
5981
|
y.$d[l]($), y.init(), this.$d = y.set(d, Math.min(this.$D, y.daysInMonth())).$d;
|
|
5982
5982
|
} else l && this.$d[l]($);
|
|
@@ -5985,17 +5985,17 @@
|
|
|
5985
5985
|
return this.clone().$set(t, e);
|
|
5986
5986
|
}, m.get = function (t) {
|
|
5987
5987
|
return this[O.p(t)]();
|
|
5988
|
-
}, m.add = function (r,
|
|
5988
|
+
}, m.add = function (r, f) {
|
|
5989
5989
|
var d,
|
|
5990
5990
|
l = this;
|
|
5991
5991
|
r = Number(r);
|
|
5992
|
-
var $ = O.p(
|
|
5992
|
+
var $ = O.p(f),
|
|
5993
5993
|
y = function y(t) {
|
|
5994
5994
|
var e = w(l);
|
|
5995
5995
|
return O.w(e.date(e.date() + Math.round(t * r)), l);
|
|
5996
5996
|
};
|
|
5997
|
-
if ($ ===
|
|
5998
|
-
if ($ ===
|
|
5997
|
+
if ($ === c) return this.set(c, this.$M + r);
|
|
5998
|
+
if ($ === h) return this.set(h, this.$y + r);
|
|
5999
5999
|
if ($ === a) return y(1);
|
|
6000
6000
|
if ($ === o) return y(7);
|
|
6001
6001
|
var M = (d = {}, d[s] = e, d[u] = n, d[i] = t, d)[$] || 1,
|
|
@@ -6013,58 +6013,116 @@
|
|
|
6013
6013
|
u = this.$m,
|
|
6014
6014
|
a = this.$M,
|
|
6015
6015
|
o = n.weekdays,
|
|
6016
|
-
|
|
6016
|
+
c = n.months,
|
|
6017
|
+
f = n.meridiem,
|
|
6017
6018
|
h = function h(t, n, i, s) {
|
|
6018
6019
|
return t && (t[n] || t(e, r)) || i[n].slice(0, s);
|
|
6019
6020
|
},
|
|
6020
|
-
|
|
6021
|
+
d = function d(t) {
|
|
6021
6022
|
return O.s(s % 12 || 12, t, "0");
|
|
6022
6023
|
},
|
|
6023
|
-
|
|
6024
|
+
$ = f || function (t, e, n) {
|
|
6024
6025
|
var r = t < 12 ? "AM" : "PM";
|
|
6025
6026
|
return n ? r.toLowerCase() : r;
|
|
6026
|
-
},
|
|
6027
|
-
$ = {
|
|
6028
|
-
YY: String(this.$y).slice(-2),
|
|
6029
|
-
YYYY: O.s(this.$y, 4, "0"),
|
|
6030
|
-
M: a + 1,
|
|
6031
|
-
MM: O.s(a + 1, 2, "0"),
|
|
6032
|
-
MMM: h(n.monthsShort, a, f, 3),
|
|
6033
|
-
MMMM: h(f, a),
|
|
6034
|
-
D: this.$D,
|
|
6035
|
-
DD: O.s(this.$D, 2, "0"),
|
|
6036
|
-
d: String(this.$W),
|
|
6037
|
-
dd: h(n.weekdaysMin, this.$W, o, 2),
|
|
6038
|
-
ddd: h(n.weekdaysShort, this.$W, o, 3),
|
|
6039
|
-
dddd: o[this.$W],
|
|
6040
|
-
H: String(s),
|
|
6041
|
-
HH: O.s(s, 2, "0"),
|
|
6042
|
-
h: c(1),
|
|
6043
|
-
hh: c(2),
|
|
6044
|
-
a: d(s, u, !0),
|
|
6045
|
-
A: d(s, u, !1),
|
|
6046
|
-
m: String(u),
|
|
6047
|
-
mm: O.s(u, 2, "0"),
|
|
6048
|
-
s: String(this.$s),
|
|
6049
|
-
ss: O.s(this.$s, 2, "0"),
|
|
6050
|
-
SSS: O.s(this.$ms, 3, "0"),
|
|
6051
|
-
Z: i
|
|
6052
6027
|
};
|
|
6053
|
-
return r.replace(y, function (t,
|
|
6054
|
-
return
|
|
6028
|
+
return r.replace(y, function (t, r) {
|
|
6029
|
+
return r || function (t) {
|
|
6030
|
+
switch (t) {
|
|
6031
|
+
case "YY":
|
|
6032
|
+
return String(e.$y).slice(-2);
|
|
6033
|
+
case "YYYY":
|
|
6034
|
+
return O.s(e.$y, 4, "0");
|
|
6035
|
+
case "M":
|
|
6036
|
+
return a + 1;
|
|
6037
|
+
case "MM":
|
|
6038
|
+
return O.s(a + 1, 2, "0");
|
|
6039
|
+
case "MMM":
|
|
6040
|
+
return h(n.monthsShort, a, c, 3);
|
|
6041
|
+
case "MMMM":
|
|
6042
|
+
return h(c, a);
|
|
6043
|
+
case "D":
|
|
6044
|
+
return e.$D;
|
|
6045
|
+
case "DD":
|
|
6046
|
+
return O.s(e.$D, 2, "0");
|
|
6047
|
+
case "d":
|
|
6048
|
+
return String(e.$W);
|
|
6049
|
+
case "dd":
|
|
6050
|
+
return h(n.weekdaysMin, e.$W, o, 2);
|
|
6051
|
+
case "ddd":
|
|
6052
|
+
return h(n.weekdaysShort, e.$W, o, 3);
|
|
6053
|
+
case "dddd":
|
|
6054
|
+
return o[e.$W];
|
|
6055
|
+
case "H":
|
|
6056
|
+
return String(s);
|
|
6057
|
+
case "HH":
|
|
6058
|
+
return O.s(s, 2, "0");
|
|
6059
|
+
case "h":
|
|
6060
|
+
return d(1);
|
|
6061
|
+
case "hh":
|
|
6062
|
+
return d(2);
|
|
6063
|
+
case "a":
|
|
6064
|
+
return $(s, u, !0);
|
|
6065
|
+
case "A":
|
|
6066
|
+
return $(s, u, !1);
|
|
6067
|
+
case "m":
|
|
6068
|
+
return String(u);
|
|
6069
|
+
case "mm":
|
|
6070
|
+
return O.s(u, 2, "0");
|
|
6071
|
+
case "s":
|
|
6072
|
+
return String(e.$s);
|
|
6073
|
+
case "ss":
|
|
6074
|
+
return O.s(e.$s, 2, "0");
|
|
6075
|
+
case "SSS":
|
|
6076
|
+
return O.s(e.$ms, 3, "0");
|
|
6077
|
+
case "Z":
|
|
6078
|
+
return i;
|
|
6079
|
+
}
|
|
6080
|
+
return null;
|
|
6081
|
+
}(t) || i.replace(":", "");
|
|
6055
6082
|
});
|
|
6056
6083
|
}, m.utcOffset = function () {
|
|
6057
6084
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
6058
6085
|
}, m.diff = function (r, d, l) {
|
|
6059
6086
|
var $,
|
|
6060
|
-
y =
|
|
6061
|
-
M =
|
|
6062
|
-
m = (
|
|
6063
|
-
v =
|
|
6064
|
-
g =
|
|
6065
|
-
|
|
6087
|
+
y = this,
|
|
6088
|
+
M = O.p(d),
|
|
6089
|
+
m = w(r),
|
|
6090
|
+
v = (m.utcOffset() - this.utcOffset()) * e,
|
|
6091
|
+
g = this - m,
|
|
6092
|
+
D = function D() {
|
|
6093
|
+
return O.m(y, m);
|
|
6094
|
+
};
|
|
6095
|
+
switch (M) {
|
|
6096
|
+
case h:
|
|
6097
|
+
$ = D() / 12;
|
|
6098
|
+
break;
|
|
6099
|
+
case c:
|
|
6100
|
+
$ = D();
|
|
6101
|
+
break;
|
|
6102
|
+
case f:
|
|
6103
|
+
$ = D() / 3;
|
|
6104
|
+
break;
|
|
6105
|
+
case o:
|
|
6106
|
+
$ = (g - v) / 6048e5;
|
|
6107
|
+
break;
|
|
6108
|
+
case a:
|
|
6109
|
+
$ = (g - v) / 864e5;
|
|
6110
|
+
break;
|
|
6111
|
+
case u:
|
|
6112
|
+
$ = g / n;
|
|
6113
|
+
break;
|
|
6114
|
+
case s:
|
|
6115
|
+
$ = g / e;
|
|
6116
|
+
break;
|
|
6117
|
+
case i:
|
|
6118
|
+
$ = g / t;
|
|
6119
|
+
break;
|
|
6120
|
+
default:
|
|
6121
|
+
$ = g;
|
|
6122
|
+
}
|
|
6123
|
+
return l ? $ : O.a($);
|
|
6066
6124
|
}, m.daysInMonth = function () {
|
|
6067
|
-
return this.endOf(
|
|
6125
|
+
return this.endOf(c).$D;
|
|
6068
6126
|
}, m.$locale = function () {
|
|
6069
6127
|
return D[this.$L];
|
|
6070
6128
|
}, m.locale = function (t, e) {
|
|
@@ -6084,13 +6142,13 @@
|
|
|
6084
6142
|
return this.$d.toUTCString();
|
|
6085
6143
|
}, M;
|
|
6086
6144
|
}(),
|
|
6087
|
-
|
|
6088
|
-
return w.prototype =
|
|
6089
|
-
|
|
6145
|
+
_ = b.prototype;
|
|
6146
|
+
return w.prototype = _, [["$ms", r], ["$s", i], ["$m", s], ["$H", u], ["$W", a], ["$M", c], ["$y", h], ["$D", d]].forEach(function (t) {
|
|
6147
|
+
_[t[1]] = function (e) {
|
|
6090
6148
|
return this.$g(e, t[0], t[1]);
|
|
6091
6149
|
};
|
|
6092
6150
|
}), w.extend = function (t, e) {
|
|
6093
|
-
return t.$i || (t(e,
|
|
6151
|
+
return t.$i || (t(e, b, w), t.$i = !0), w;
|
|
6094
6152
|
}, w.locale = S, w.isDayjs = p, w.unix = function (t) {
|
|
6095
6153
|
return w(1e3 * t);
|
|
6096
6154
|
}, w.en = D[g], w.Ls = D, w.p = {}, w;
|
|
@@ -7283,7 +7341,7 @@
|
|
|
7283
7341
|
var _getState4 = getState(),
|
|
7284
7342
|
timestamp = _getState4.timestamp,
|
|
7285
7343
|
props = _getState4.props;
|
|
7286
|
-
if (timestamp[component] === undefined || timestamp[component] < res._timestamp) {
|
|
7344
|
+
if (timestamp[component] === undefined || timestamp[component] < res._timestamp || response.AISessionId && props[component].enableAI && props[component].componentType === constants$1.componentTypes.searchBox) {
|
|
7287
7345
|
var promotedResults = response.promoted;
|
|
7288
7346
|
if (promotedResults) {
|
|
7289
7347
|
var parsedPromotedResults = promotedResults.map(function (promoted) {
|
|
@@ -17629,7 +17687,7 @@
|
|
|
17629
17687
|
};
|
|
17630
17688
|
|
|
17631
17689
|
/**!
|
|
17632
|
-
* hotkeys-js v3.10.
|
|
17690
|
+
* hotkeys-js v3.10.4
|
|
17633
17691
|
* A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies.
|
|
17634
17692
|
*
|
|
17635
17693
|
* Copyright (c) 2023 kenny wong <wowohoo@qq.com>
|
|
@@ -18054,7 +18112,7 @@
|
|
|
18054
18112
|
for (var a = 0; a < keyShortcut.length; a++) {
|
|
18055
18113
|
_downKeysCurrent.push(code(keyShortcut[a]));
|
|
18056
18114
|
}
|
|
18057
|
-
if (_downKeysCurrent.sort().join('') === _downKeys.
|
|
18115
|
+
if (_downKeysCurrent.sort().join('') === _downKeys.sort().join('')) {
|
|
18058
18116
|
// 找到处理内容
|
|
18059
18117
|
eventHandler(event, record, scope, element);
|
|
18060
18118
|
}
|
|
@@ -26670,7 +26728,6 @@
|
|
|
26670
26728
|
selectedTags: [],
|
|
26671
26729
|
isOpen: false,
|
|
26672
26730
|
normalizedSuggestions: [],
|
|
26673
|
-
parsedSuggestions: [],
|
|
26674
26731
|
showAIScreen: false,
|
|
26675
26732
|
showAIScreenFooter: false,
|
|
26676
26733
|
showFeedbackComponent: false,
|
|
@@ -26715,6 +26772,34 @@
|
|
|
26715
26772
|
},
|
|
26716
26773
|
stats: function stats() {
|
|
26717
26774
|
return getResultStats$1(this);
|
|
26775
|
+
},
|
|
26776
|
+
parsedSuggestions: function parsedSuggestions() {
|
|
26777
|
+
var suggestionsArray = [];
|
|
26778
|
+
if (Array.isArray(this.suggestions) && this.suggestions.length) {
|
|
26779
|
+
suggestionsArray = [].concat(withClickIds(this.suggestions));
|
|
26780
|
+
}
|
|
26781
|
+
suggestionsArray = suggestionsArray.map(function (s) {
|
|
26782
|
+
if (s.sectionId) {
|
|
26783
|
+
return s;
|
|
26784
|
+
}
|
|
26785
|
+
return _extends({}, s, {
|
|
26786
|
+
sectionId: s._suggestion_type
|
|
26787
|
+
});
|
|
26788
|
+
});
|
|
26789
|
+
var sectionsAccumulated = [];
|
|
26790
|
+
var sectionisedSuggestions = suggestionsArray.reduce(function (acc, d, currentIndex) {
|
|
26791
|
+
if (sectionsAccumulated.includes(d.sectionId)) return acc;
|
|
26792
|
+
if (d.sectionId) {
|
|
26793
|
+
acc[currentIndex] = suggestionsArray.filter(function (g) {
|
|
26794
|
+
return g.sectionId === d.sectionId;
|
|
26795
|
+
});
|
|
26796
|
+
sectionsAccumulated.push(d.sectionId);
|
|
26797
|
+
} else {
|
|
26798
|
+
acc[currentIndex] = d;
|
|
26799
|
+
}
|
|
26800
|
+
return acc;
|
|
26801
|
+
}, {});
|
|
26802
|
+
return Object.values(sectionisedSuggestions);
|
|
26718
26803
|
}
|
|
26719
26804
|
},
|
|
26720
26805
|
props: {
|
|
@@ -26853,28 +26938,6 @@
|
|
|
26853
26938
|
suggestionsList = [].concat(withClickIds(this.$props.defaultSuggestions));
|
|
26854
26939
|
}
|
|
26855
26940
|
this.normalizedSuggestions = suggestionsList;
|
|
26856
|
-
suggestionsList = suggestionsList.map(function (s) {
|
|
26857
|
-
if (s.sectionId) {
|
|
26858
|
-
return s;
|
|
26859
|
-
}
|
|
26860
|
-
return _extends({}, s, {
|
|
26861
|
-
sectionId: s._suggestion_type
|
|
26862
|
-
});
|
|
26863
|
-
});
|
|
26864
|
-
var sectionsAccumulated = [];
|
|
26865
|
-
var sectionisedSuggestions = suggestionsList.reduce(function (acc, d, currentIndex) {
|
|
26866
|
-
if (sectionsAccumulated.includes(d.sectionId)) return acc;
|
|
26867
|
-
if (d.sectionId) {
|
|
26868
|
-
acc[currentIndex] = suggestionsList.filter(function (g) {
|
|
26869
|
-
return g.sectionId === d.sectionId;
|
|
26870
|
-
});
|
|
26871
|
-
sectionsAccumulated.push(d.sectionId);
|
|
26872
|
-
} else {
|
|
26873
|
-
acc[currentIndex] = d;
|
|
26874
|
-
}
|
|
26875
|
-
return acc;
|
|
26876
|
-
}, {});
|
|
26877
|
-
this.parsedSuggestions = Object.values(sectionisedSuggestions);
|
|
26878
26941
|
this.handleTextAreaHeightChange();
|
|
26879
26942
|
},
|
|
26880
26943
|
selectedValue: function selectedValue(newVal, oldVal) {
|
|
@@ -26891,11 +26954,7 @@
|
|
|
26891
26954
|
if (this.$options.isTagsMode) {
|
|
26892
26955
|
cause = lib_7.SUGGESTION_SELECT;
|
|
26893
26956
|
}
|
|
26894
|
-
|
|
26895
|
-
this.setValue(newVal, newVal === '', this.$props, cause, false);
|
|
26896
|
-
} else {
|
|
26897
|
-
this.setValue(newVal || '', true, this.$props, cause);
|
|
26898
|
-
}
|
|
26957
|
+
this.setValue(newVal || '', true, this.$props, cause);
|
|
26899
26958
|
}
|
|
26900
26959
|
},
|
|
26901
26960
|
focusShortcuts: function focusShortcuts() {
|
|
@@ -27178,9 +27237,7 @@
|
|
|
27178
27237
|
handleVoiceResults: function handleVoiceResults(_ref) {
|
|
27179
27238
|
var results = _ref.results;
|
|
27180
27239
|
if (results && results[0] && results[0].isFinal && results[0][0] && results[0][0].transcript && results[0][0].transcript.trim()) {
|
|
27181
|
-
var _this$$refs2, _this$$refs2$this$$pr, _this$$refs2$this$$pr2;
|
|
27182
27240
|
this.setValue(results[0][0].transcript.trim(), true);
|
|
27183
|
-
(_this$$refs2 = this.$refs) == null ? void 0 : (_this$$refs2$this$$pr = _this$$refs2[this.$props.innerRef]) == null ? void 0 : (_this$$refs2$this$$pr2 = _this$$refs2$this$$pr.$el) == null ? void 0 : _this$$refs2$this$$pr2.focus(); // eslint-disable-line
|
|
27184
27241
|
}
|
|
27185
27242
|
},
|
|
27186
27243
|
triggerQuery: function triggerQuery(_ref2) {
|
|
@@ -27220,8 +27277,6 @@
|
|
|
27220
27277
|
clearValue: function clearValue() {
|
|
27221
27278
|
this.setValue('', false, this.$props, !this.$options.isTagsMode ? lib_7.CLEAR_VALUE : undefined, false);
|
|
27222
27279
|
this.onValueSelectedHandler('', !this.$options.isTagsMode ? lib_7.CLEAR_VALUE : undefined);
|
|
27223
|
-
this.showAIScreen = false;
|
|
27224
|
-
this.isOpen = false;
|
|
27225
27280
|
},
|
|
27226
27281
|
handleKeyDown: function handleKeyDown(event, highlightedIndex) {
|
|
27227
27282
|
if (highlightedIndex === void 0) {
|
|
@@ -27257,7 +27312,7 @@
|
|
|
27257
27312
|
}
|
|
27258
27313
|
var value = this.$props.value;
|
|
27259
27314
|
if (value === undefined) {
|
|
27260
|
-
this.setValue(inputValue,
|
|
27315
|
+
this.setValue(inputValue, false, this.$props, undefined);
|
|
27261
27316
|
} else {
|
|
27262
27317
|
this.$emit('change', inputValue, function (_ref3) {
|
|
27263
27318
|
var isOpen = _ref3.isOpen;
|
|
@@ -27272,7 +27327,7 @@
|
|
|
27272
27327
|
},
|
|
27273
27328
|
handleFeaturedSuggestionClicked: function handleFeaturedSuggestionClicked(suggestion) {
|
|
27274
27329
|
try {
|
|
27275
|
-
var _this$$
|
|
27330
|
+
var _this$$refs2;
|
|
27276
27331
|
if (suggestion.action === helper_15.NAVIGATE) {
|
|
27277
27332
|
var _JSON$parse = JSON.parse(suggestion.subAction),
|
|
27278
27333
|
_JSON$parse$target = _JSON$parse.target,
|
|
@@ -27291,7 +27346,7 @@
|
|
|
27291
27346
|
func(suggestion, this.$data.currentValue, this.$props.customEvents);
|
|
27292
27347
|
}
|
|
27293
27348
|
if (suggestion.action === helper_15.SELECT) {
|
|
27294
|
-
this.setValue(suggestion.value, true, this.$props, this.$options.isTagsMode.current ? lib_7.SUGGESTION_SELECT : lib_7.ENTER_PRESS
|
|
27349
|
+
this.setValue(suggestion.value, true, this.$props, this.$options.isTagsMode.current ? lib_7.SUGGESTION_SELECT : lib_7.ENTER_PRESS);
|
|
27295
27350
|
this.onValueSelectedHandler(suggestion.value, lib_7.SUGGESTION_SELECT);
|
|
27296
27351
|
}
|
|
27297
27352
|
// blur is important to close the dropdown
|
|
@@ -27299,7 +27354,7 @@
|
|
|
27299
27354
|
// else Downshift probably is focusing the dropdown
|
|
27300
27355
|
// and not letting it close
|
|
27301
27356
|
// eslint-disable-next-line no-unused-expressions
|
|
27302
|
-
(_this$$
|
|
27357
|
+
(_this$$refs2 = this.$refs) == null || (_this$$refs2 = _this$$refs2[this.$props.innerRef]) == null ? void 0 : _this$$refs2.blur();
|
|
27303
27358
|
} catch (e) {
|
|
27304
27359
|
console.error("Error: There was an error parsing the subAction for the featured suggestion with label, \"" + suggestion.label + "\"", e);
|
|
27305
27360
|
}
|
|
@@ -27586,14 +27641,14 @@
|
|
|
27586
27641
|
})]);
|
|
27587
27642
|
},
|
|
27588
27643
|
focusSearchBox: function focusSearchBox(event) {
|
|
27589
|
-
var _this$$
|
|
27644
|
+
var _this$$refs3;
|
|
27590
27645
|
var elt = event.target || event.srcElement;
|
|
27591
27646
|
var tagName = elt.tagName;
|
|
27592
27647
|
if (elt.isContentEditable || tagName === 'INPUT' || tagName === 'SELECT' || tagName === 'TEXTAREA') {
|
|
27593
27648
|
// already in an input
|
|
27594
27649
|
return;
|
|
27595
27650
|
}
|
|
27596
|
-
(_this$$
|
|
27651
|
+
(_this$$refs3 = this.$refs) == null || (_this$$refs3 = _this$$refs3[this.$props.innerRef]) == null || (_this$$refs3 = _this$$refs3.$el) == null ? void 0 : _this$$refs3.focus(); // eslint-disable-line
|
|
27597
27652
|
},
|
|
27598
27653
|
listenForFocusShortcuts: function listenForFocusShortcuts() {
|
|
27599
27654
|
var _this9 = this;
|
|
@@ -28026,7 +28081,7 @@
|
|
|
28026
28081
|
}), babelHelperVueTransformOn(getItemEvents({
|
|
28027
28082
|
item: sectionItem
|
|
28028
28083
|
})), {
|
|
28029
|
-
"key":
|
|
28084
|
+
"key": index + sectionIndex,
|
|
28030
28085
|
"style": {
|
|
28031
28086
|
justifyContent: 'flex-start',
|
|
28032
28087
|
alignItems: 'center'
|
|
@@ -28649,9 +28704,9 @@
|
|
|
28649
28704
|
return getComponent(data, this);
|
|
28650
28705
|
},
|
|
28651
28706
|
handleTextAreaHeightChange: function handleTextAreaHeightChange() {
|
|
28652
|
-
var _this$$refs, _this$$
|
|
28653
|
-
var textArea = (_this$$refs = this.$refs) == null
|
|
28654
|
-
var inputWrapper = (_this$$refs2 = this.$refs) == null
|
|
28707
|
+
var _this$$refs, _this$$refs2, _this$$refs3;
|
|
28708
|
+
var textArea = (_this$$refs = this.$refs) == null || (_this$$refs = _this$$refs[_inputRef]) == null ? void 0 : _this$$refs.$el;
|
|
28709
|
+
var inputWrapper = (_this$$refs2 = this.$refs) == null || (_this$$refs2 = _this$$refs2[_inputWrapperRef]) == null ? void 0 : _this$$refs2.$el;
|
|
28655
28710
|
var errorContainer = (_this$$refs3 = this.$refs) == null ? void 0 : _this$$refs3[_errorContainerRef];
|
|
28656
28711
|
if (textArea) {
|
|
28657
28712
|
textArea.style.height = '42px';
|
|
@@ -31562,7 +31617,7 @@
|
|
|
31562
31617
|
}), _this4.renderSearch(), _this4.hasCustomRenderer ? _this4.getComponent() : vue.createVNode(HierarchicalMenuComponent, {
|
|
31563
31618
|
"key": "initial-node",
|
|
31564
31619
|
"listArray": transformedData,
|
|
31565
|
-
"parentPath":
|
|
31620
|
+
"parentPath": "",
|
|
31566
31621
|
"isExpanded": true,
|
|
31567
31622
|
"listItemProps": {
|
|
31568
31623
|
mode: mode,
|
|
@@ -43690,7 +43745,7 @@
|
|
|
43690
43745
|
}, queryString, renderFunction);
|
|
43691
43746
|
}
|
|
43692
43747
|
|
|
43693
|
-
var version = "3.0.0-rc.
|
|
43748
|
+
var version = "3.0.0-rc.16";
|
|
43694
43749
|
|
|
43695
43750
|
var components = [RLConnected, ResultCard, ResultList, ReactiveBase, SBConnected, ListConnected, ListConnected$1, RangeConnected$1, RangeConnected$2, RangeConnected$3, RangeConnected, RcConnected, RcConnected$1, RcConnected$2, TBConnected, ListConnected$2, ListConnected$3, StateProviderConnected, RangeConnected$4, TreeListConnected, AIConnected];
|
|
43696
43751
|
function install$1 (Vue) {
|