@appbaseio/reactivesearch-vue 3.0.0-rc.12 → 3.0.0-rc.14
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 +69 -82
- package/dist/@appbaseio/reactivesearch-vue.umd.js.map +1 -1
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js +5 -5
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js.map +1 -1
- package/dist/cjs/{DropDown-a91c0a02.js → DropDown-e8216602.js} +1 -1
- package/dist/cjs/{Input-c11c95f2.js → Input-3ecdb905.js} +1 -4
- package/dist/cjs/MultiDropdownList.js +2 -2
- package/dist/cjs/MultiList.js +1 -1
- package/dist/cjs/RangeInput.js +1 -1
- package/dist/cjs/SingleDropdownList.js +2 -2
- package/dist/cjs/SingleList.js +1 -1
- package/dist/cjs/index.js +3 -3
- package/dist/cjs/{install-ff7ba0d5.js → install-a446da53.js} +43 -40
- package/dist/cjs/install.js +3 -3
- package/dist/cjs/version.js +1 -1
- package/dist/es/{DropDown-cea5e6a5.js → DropDown-845623df.js} +1 -1
- package/dist/es/{Input-a464bdd0.js → Input-83dee8c5.js} +1 -4
- package/dist/es/MultiDropdownList.js +2 -2
- package/dist/es/MultiList.js +1 -1
- package/dist/es/RangeInput.js +1 -1
- package/dist/es/SingleDropdownList.js +2 -2
- package/dist/es/SingleList.js +1 -1
- package/dist/es/index.js +4 -4
- package/dist/es/{install-d47a93aa.js → install-97d87a4d.js} +43 -40
- package/dist/es/install.js +3 -3
- package/dist/es/version.js +1 -1
- package/package.json +1 -1
|
@@ -6026,7 +6026,7 @@
|
|
|
6026
6026
|
},
|
|
6027
6027
|
$ = {
|
|
6028
6028
|
YY: String(this.$y).slice(-2),
|
|
6029
|
-
YYYY: this.$y,
|
|
6029
|
+
YYYY: O.s(this.$y, 4, "0"),
|
|
6030
6030
|
M: a + 1,
|
|
6031
6031
|
MM: O.s(a + 1, 2, "0"),
|
|
6032
6032
|
MMM: h(n.monthsShort, a, f, 3),
|
|
@@ -9073,7 +9073,7 @@
|
|
|
9073
9073
|
var transformOn = function transformOn(obj) {
|
|
9074
9074
|
var result = {};
|
|
9075
9075
|
Object.keys(obj).forEach(function (evt) {
|
|
9076
|
-
result["on" + evt[0].toUpperCase() + evt.
|
|
9076
|
+
result["on" + evt[0].toUpperCase() + evt.slice(1)] = obj[evt];
|
|
9077
9077
|
});
|
|
9078
9078
|
return result;
|
|
9079
9079
|
};
|
|
@@ -9671,7 +9671,7 @@
|
|
|
9671
9671
|
}).join(" or ")) : i = "Array" === (o = d(r)) ? m(t) : "Object" === o ? y(t) : "String" === o || "Number" === o || "Boolean" === o || "Function" === o ? function (e) {
|
|
9672
9672
|
if (null == e) return "";
|
|
9673
9673
|
var t = e.constructor.toString().match(v);
|
|
9674
|
-
return t ? t[1] : "";
|
|
9674
|
+
return t ? t[1].replace(/^Async/, "") : "";
|
|
9675
9675
|
}(t) === o : t instanceof r.type;
|
|
9676
9676
|
}
|
|
9677
9677
|
if (!i) {
|
|
@@ -9741,10 +9741,10 @@
|
|
|
9741
9741
|
}
|
|
9742
9742
|
return Object.assign(o, s);
|
|
9743
9743
|
}
|
|
9744
|
-
function
|
|
9744
|
+
function A(e) {
|
|
9745
9745
|
return e.replace(/^(?!\s*$)/gm, " ");
|
|
9746
9746
|
}
|
|
9747
|
-
var
|
|
9747
|
+
var E = function E() {
|
|
9748
9748
|
return x("any", {});
|
|
9749
9749
|
},
|
|
9750
9750
|
N = function N() {
|
|
@@ -9870,7 +9870,7 @@
|
|
|
9870
9870
|
var r = P(e, t, !0);
|
|
9871
9871
|
return "string" == typeof r && n.push(r), !0 === r;
|
|
9872
9872
|
});
|
|
9873
|
-
return r || h("oneOfType - provided value does not match any of the " + n.length + " passed-in validators:\n" +
|
|
9873
|
+
return r || h("oneOfType - provided value does not match any of the " + n.length + " passed-in validators:\n" + A(n.join("\n"))), r;
|
|
9874
9874
|
}
|
|
9875
9875
|
} : {
|
|
9876
9876
|
type: u
|
|
@@ -9884,7 +9884,7 @@
|
|
|
9884
9884
|
r = t.every(function (t) {
|
|
9885
9885
|
return !0 === (n = P(e, t, !0));
|
|
9886
9886
|
});
|
|
9887
|
-
return r || h("arrayOf - value validation error:\n" +
|
|
9887
|
+
return r || h("arrayOf - value validation error:\n" + A(n)), r;
|
|
9888
9888
|
}
|
|
9889
9889
|
});
|
|
9890
9890
|
}
|
|
@@ -9901,7 +9901,7 @@
|
|
|
9901
9901
|
r = Object.keys(t).every(function (r) {
|
|
9902
9902
|
return !0 === (n = P(e, t[r], !0));
|
|
9903
9903
|
});
|
|
9904
|
-
return r || h("objectOf - value validation error:\n" +
|
|
9904
|
+
return r || h("objectOf - value validation error:\n" + A(n)), r;
|
|
9905
9905
|
}
|
|
9906
9906
|
});
|
|
9907
9907
|
}
|
|
@@ -9928,7 +9928,7 @@
|
|
|
9928
9928
|
return o.every(function (n) {
|
|
9929
9929
|
if (-1 === t.indexOf(n)) return !0 === i._vueTypes_isLoose || (h('shape - shape definition does not include a "' + n + '" property. Allowed keys: "' + t.join('", "') + '".'), !1);
|
|
9930
9930
|
var o = P(e[n], r[n], !0);
|
|
9931
|
-
return "string" == typeof o && h('shape - "' + n + '" property validation error:\n ' +
|
|
9931
|
+
return "string" == typeof o && h('shape - "' + n + '" property validation error:\n ' + A(o)), !0 === o;
|
|
9932
9932
|
});
|
|
9933
9933
|
}
|
|
9934
9934
|
});
|
|
@@ -9988,7 +9988,7 @@
|
|
|
9988
9988
|
}, n(e, null, [{
|
|
9989
9989
|
key: "any",
|
|
9990
9990
|
get: function get() {
|
|
9991
|
-
return
|
|
9991
|
+
return E();
|
|
9992
9992
|
}
|
|
9993
9993
|
}, {
|
|
9994
9994
|
key: "func",
|
|
@@ -17629,7 +17629,7 @@
|
|
|
17629
17629
|
};
|
|
17630
17630
|
|
|
17631
17631
|
/**!
|
|
17632
|
-
* hotkeys-js v3.10.
|
|
17632
|
+
* hotkeys-js v3.10.3
|
|
17633
17633
|
* A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies.
|
|
17634
17634
|
*
|
|
17635
17635
|
* Copyright (c) 2023 kenny wong <wowohoo@qq.com>
|
|
@@ -18045,7 +18045,7 @@
|
|
|
18045
18045
|
if (!(key in _handlers)) return;
|
|
18046
18046
|
for (var _i = 0; _i < _handlers[key].length; _i++) {
|
|
18047
18047
|
if (event.type === 'keydown' && _handlers[key][_i].keydown || event.type === 'keyup' && _handlers[key][_i].keyup) {
|
|
18048
|
-
if (_handlers[key][_i].key) {
|
|
18048
|
+
if (_handlers[key][_i].key && _handlers[key][_i].scope === scope) {
|
|
18049
18049
|
var record = _handlers[key][_i];
|
|
18050
18050
|
var splitKey = record.splitKey;
|
|
18051
18051
|
var keyShortcut = record.key.split(splitKey);
|
|
@@ -18054,7 +18054,7 @@
|
|
|
18054
18054
|
for (var a = 0; a < keyShortcut.length; a++) {
|
|
18055
18055
|
_downKeysCurrent.push(code(keyShortcut[a]));
|
|
18056
18056
|
}
|
|
18057
|
-
if (_downKeysCurrent.sort().join('') === _downKeys.sort().join('')) {
|
|
18057
|
+
if (_downKeysCurrent.sort().join('') === _downKeys.slice().sort().join('')) {
|
|
18058
18058
|
// 找到处理内容
|
|
18059
18059
|
eventHandler(event, record, scope, element);
|
|
18060
18060
|
}
|
|
@@ -24813,7 +24813,7 @@
|
|
|
24813
24813
|
var noSuggestions = function noSuggestions(themePreset, theme) {
|
|
24814
24814
|
return css(_templateObject7 || (_templateObject7 = _taggedTemplateLiteralLoose(["\n\tdisplay: block;\n\twidth: 100%;\n\tborder: 1px solid #ccc;\n\tborder-top: none;\n\tbackground-color: #fff;\n\tfont-size: 0.9rem;\n\tz-index: 3;\n\tposition: absolute;\n\tmargin: 0;\n\tpadding: 0;\n\tlist-style: none;\n\tmax-height: 260px;\n\toverflow-y: auto;\n\n\t&.small {\n\t\ttop: 30px;\n\t}\n\n\tli {\n\t\tdisplay: flex;\n\t\tjustify-content: space-between;\n\t\tpadding: 10px;\n\t\tuser-select: none;\n\n\t\t& > .trim {\n\t\t\tdisplay: -webkit-box;\n\t\t\tdisplay: block;\n\t\t\twidth: 100%;\n\t\t\tmax-height: 2.3rem;\n\t\t\tline-height: 1.2rem;\n\t\t\t-webkit-line-clamp: 2;\n\t\t\t-webkit-box-orient: vertical;\n\t\t\toverflow: hidden;\n\t\t\ttext-overflow: ellipsis;\n\t\t\twhite-space: nowrap;\n\t\t}\n\t}\n\n\t", "\n"])), themePreset === 'dark' && theme && dark$1(theme));
|
|
24815
24815
|
};
|
|
24816
|
-
var TextArea = styled('textarea')(_templateObject8 || (_templateObject8 = _taggedTemplateLiteralLoose(["\n\t", ";\n\t", ";\n\n\t", ";\n\t", ";\n\t&::-webkit-search-decoration,\n\t&::-webkit-search-cancel-button,\n\t&::-webkit-search-results-button,\n\t&::-webkit-search-results-decoration {\n\t\tdisplay: none;\n\t}\n\tresize: none;\n\toverflow: hidden;\n\theight: 42px;\n\tpadding-left: 0;\n\tpadding-right: 0;\n
|
|
24816
|
+
var TextArea = styled('textarea')(_templateObject8 || (_templateObject8 = _taggedTemplateLiteralLoose(["\n\t", ";\n\t", ";\n\n\t", ";\n\t", ";\n\t&::-webkit-search-decoration,\n\t&::-webkit-search-cancel-button,\n\t&::-webkit-search-results-button,\n\t&::-webkit-search-results-decoration {\n\t\tdisplay: none;\n\t}\n\tresize: none;\n\toverflow: hidden;\n\theight: 42px;\n\tpadding-left: 0;\n\tpadding-right: 0;\n"])), function (props) {
|
|
24817
24817
|
return input(props.searchBox);
|
|
24818
24818
|
}, function (_ref4) {
|
|
24819
24819
|
var themePreset = _ref4.themePreset,
|
|
@@ -24825,9 +24825,6 @@
|
|
|
24825
24825
|
return props.alert && alertBorder;
|
|
24826
24826
|
}, function (props) {
|
|
24827
24827
|
return props.isOpen && "\n\t\t\tborder-bottom-left-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t";
|
|
24828
|
-
}, function (_ref5) {
|
|
24829
|
-
var aiAnswer = _ref5.aiAnswer;
|
|
24830
|
-
return aiAnswer && "\n\t\tpadding-left: 35px;\n\t";
|
|
24831
24828
|
});
|
|
24832
24829
|
var Actions = styled('div')(_templateObject9 || (_templateObject9 = _taggedTemplateLiteralLoose(["\n\tdisplay: flex;\n"])));
|
|
24833
24830
|
|
|
@@ -26426,7 +26423,7 @@
|
|
|
26426
26423
|
return resetCSS(props);
|
|
26427
26424
|
});
|
|
26428
26425
|
var MessageInputContainer = styled('form')(_templateObject8$1 || (_templateObject8$1 = _taggedTemplateLiteralLoose(["\n\tdisplay: flex;\n\tpadding-top: 12px;\n\talign-items: stretch;\n\tmargin-top: 10px;\n\t.ai-enter-button-wrapper {\n\t\talign-self: baseline;\n\t\theight: 41px;\n\t}\n"])));
|
|
26429
|
-
var MessageInput = styled(TextArea)(_templateObject9$1 || (_templateObject9$1 = _taggedTemplateLiteralLoose(["\n\twidth: 100%;\n\tborder-radius: 5px;\n\tborder: 1px solid #ccc;\n\tbackground-color: ", ";\n\tcolor: ", ";\n\n\t::placeholder {\n\t\tcolor: ", ";\n\t}\n\n\t:-ms-input-placeholder {\n\t\tcolor: ", ";\n\t}\n\n\t::-ms-input-placeholder {\n\t\tcolor: ", ";\n\t}\n\t", "\n"])), function (props) {
|
|
26426
|
+
var MessageInput = styled(TextArea)(_templateObject9$1 || (_templateObject9$1 = _taggedTemplateLiteralLoose(["\n\twidth: 100%;\n\tborder-radius: 5px;\n\tborder: 1px solid #ccc;\n\tbackground-color: ", ";\n\tcolor: ", ";\n\n\t::placeholder {\n\t\tcolor: ", ";\n\t}\n\n\t:-ms-input-placeholder {\n\t\tcolor: ", ";\n\t}\n\n\t::-ms-input-placeholder {\n\t\tcolor: ", ";\n\t}\n\t", "\n\tpadding-left: 35px;\n"])), function (props) {
|
|
26430
26427
|
return props.themePreset === 'dark' ? props.theme.colors.borderColor : '#fff';
|
|
26431
26428
|
}, function (props) {
|
|
26432
26429
|
return props.themePreset === 'dark' ? props.theme.colors.titleColor : props.theme.colors.textColor;
|
|
@@ -26673,6 +26670,7 @@
|
|
|
26673
26670
|
selectedTags: [],
|
|
26674
26671
|
isOpen: false,
|
|
26675
26672
|
normalizedSuggestions: [],
|
|
26673
|
+
parsedSuggestions: [],
|
|
26676
26674
|
showAIScreen: false,
|
|
26677
26675
|
showAIScreenFooter: false,
|
|
26678
26676
|
showFeedbackComponent: false,
|
|
@@ -26717,34 +26715,6 @@
|
|
|
26717
26715
|
},
|
|
26718
26716
|
stats: function stats() {
|
|
26719
26717
|
return getResultStats$1(this);
|
|
26720
|
-
},
|
|
26721
|
-
parsedSuggestions: function parsedSuggestions() {
|
|
26722
|
-
var suggestionsArray = [];
|
|
26723
|
-
if (Array.isArray(this.suggestions) && this.suggestions.length) {
|
|
26724
|
-
suggestionsArray = [].concat(withClickIds(this.suggestions));
|
|
26725
|
-
}
|
|
26726
|
-
suggestionsArray = suggestionsArray.map(function (s) {
|
|
26727
|
-
if (s.sectionId) {
|
|
26728
|
-
return s;
|
|
26729
|
-
}
|
|
26730
|
-
return _extends({}, s, {
|
|
26731
|
-
sectionId: s._suggestion_type
|
|
26732
|
-
});
|
|
26733
|
-
});
|
|
26734
|
-
var sectionsAccumulated = [];
|
|
26735
|
-
var sectionisedSuggestions = suggestionsArray.reduce(function (acc, d, currentIndex) {
|
|
26736
|
-
if (sectionsAccumulated.includes(d.sectionId)) return acc;
|
|
26737
|
-
if (d.sectionId) {
|
|
26738
|
-
acc[currentIndex] = suggestionsArray.filter(function (g) {
|
|
26739
|
-
return g.sectionId === d.sectionId;
|
|
26740
|
-
});
|
|
26741
|
-
sectionsAccumulated.push(d.sectionId);
|
|
26742
|
-
} else {
|
|
26743
|
-
acc[currentIndex] = d;
|
|
26744
|
-
}
|
|
26745
|
-
return acc;
|
|
26746
|
-
}, {});
|
|
26747
|
-
return Object.values(sectionisedSuggestions);
|
|
26748
26718
|
}
|
|
26749
26719
|
},
|
|
26750
26720
|
props: {
|
|
@@ -26883,6 +26853,28 @@
|
|
|
26883
26853
|
suggestionsList = [].concat(withClickIds(this.$props.defaultSuggestions));
|
|
26884
26854
|
}
|
|
26885
26855
|
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);
|
|
26886
26878
|
this.handleTextAreaHeightChange();
|
|
26887
26879
|
},
|
|
26888
26880
|
selectedValue: function selectedValue(newVal, oldVal) {
|
|
@@ -26899,7 +26891,11 @@
|
|
|
26899
26891
|
if (this.$options.isTagsMode) {
|
|
26900
26892
|
cause = lib_7.SUGGESTION_SELECT;
|
|
26901
26893
|
}
|
|
26902
|
-
|
|
26894
|
+
if (this.$props.value === undefined) {
|
|
26895
|
+
this.setValue(newVal, newVal === '', this.$props, cause, false);
|
|
26896
|
+
} else {
|
|
26897
|
+
this.setValue(newVal || '', true, this.$props, cause);
|
|
26898
|
+
}
|
|
26903
26899
|
}
|
|
26904
26900
|
},
|
|
26905
26901
|
focusShortcuts: function focusShortcuts() {
|
|
@@ -27182,7 +27178,9 @@
|
|
|
27182
27178
|
handleVoiceResults: function handleVoiceResults(_ref) {
|
|
27183
27179
|
var results = _ref.results;
|
|
27184
27180
|
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;
|
|
27185
27182
|
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
|
|
27186
27184
|
}
|
|
27187
27185
|
},
|
|
27188
27186
|
triggerQuery: function triggerQuery(_ref2) {
|
|
@@ -27222,6 +27220,8 @@
|
|
|
27222
27220
|
clearValue: function clearValue() {
|
|
27223
27221
|
this.setValue('', false, this.$props, !this.$options.isTagsMode ? lib_7.CLEAR_VALUE : undefined, false);
|
|
27224
27222
|
this.onValueSelectedHandler('', !this.$options.isTagsMode ? lib_7.CLEAR_VALUE : undefined);
|
|
27223
|
+
this.showAIScreen = false;
|
|
27224
|
+
this.isOpen = false;
|
|
27225
27225
|
},
|
|
27226
27226
|
handleKeyDown: function handleKeyDown(event, highlightedIndex) {
|
|
27227
27227
|
if (highlightedIndex === void 0) {
|
|
@@ -27257,7 +27257,7 @@
|
|
|
27257
27257
|
}
|
|
27258
27258
|
var value = this.$props.value;
|
|
27259
27259
|
if (value === undefined) {
|
|
27260
|
-
this.setValue(inputValue,
|
|
27260
|
+
this.setValue(inputValue, inputValue === '', this.$props, undefined, false);
|
|
27261
27261
|
} else {
|
|
27262
27262
|
this.$emit('change', inputValue, function (_ref3) {
|
|
27263
27263
|
var isOpen = _ref3.isOpen;
|
|
@@ -27272,7 +27272,7 @@
|
|
|
27272
27272
|
},
|
|
27273
27273
|
handleFeaturedSuggestionClicked: function handleFeaturedSuggestionClicked(suggestion) {
|
|
27274
27274
|
try {
|
|
27275
|
-
var _this$$
|
|
27275
|
+
var _this$$refs3, _this$$refs3$this$$pr, _this$$refs3$this$$pr2;
|
|
27276
27276
|
if (suggestion.action === helper_15.NAVIGATE) {
|
|
27277
27277
|
var _JSON$parse = JSON.parse(suggestion.subAction),
|
|
27278
27278
|
_JSON$parse$target = _JSON$parse.target,
|
|
@@ -27291,7 +27291,7 @@
|
|
|
27291
27291
|
func(suggestion, this.$data.currentValue, this.$props.customEvents);
|
|
27292
27292
|
}
|
|
27293
27293
|
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);
|
|
27294
|
+
this.setValue(suggestion.value, true, this.$props, this.$options.isTagsMode.current ? lib_7.SUGGESTION_SELECT : lib_7.ENTER_PRESS, false);
|
|
27295
27295
|
this.onValueSelectedHandler(suggestion.value, lib_7.SUGGESTION_SELECT);
|
|
27296
27296
|
}
|
|
27297
27297
|
// blur is important to close the dropdown
|
|
@@ -27299,7 +27299,7 @@
|
|
|
27299
27299
|
// else Downshift probably is focusing the dropdown
|
|
27300
27300
|
// and not letting it close
|
|
27301
27301
|
// eslint-disable-next-line no-unused-expressions
|
|
27302
|
-
(_this$$
|
|
27302
|
+
(_this$$refs3 = this.$refs) == null ? void 0 : (_this$$refs3$this$$pr = _this$$refs3[this.$props.innerRef]) == null ? void 0 : (_this$$refs3$this$$pr2 = _this$$refs3$this$$pr.$el) == null ? void 0 : _this$$refs3$this$$pr2.blur();
|
|
27303
27303
|
} catch (e) {
|
|
27304
27304
|
console.error("Error: There was an error parsing the subAction for the featured suggestion with label, \"" + suggestion.label + "\"", e);
|
|
27305
27305
|
}
|
|
@@ -27586,14 +27586,14 @@
|
|
|
27586
27586
|
})]);
|
|
27587
27587
|
},
|
|
27588
27588
|
focusSearchBox: function focusSearchBox(event) {
|
|
27589
|
-
var _this$$
|
|
27589
|
+
var _this$$refs4, _this$$refs4$this$$pr, _this$$refs4$this$$pr2;
|
|
27590
27590
|
var elt = event.target || event.srcElement;
|
|
27591
27591
|
var tagName = elt.tagName;
|
|
27592
27592
|
if (elt.isContentEditable || tagName === 'INPUT' || tagName === 'SELECT' || tagName === 'TEXTAREA') {
|
|
27593
27593
|
// already in an input
|
|
27594
27594
|
return;
|
|
27595
27595
|
}
|
|
27596
|
-
(_this$$
|
|
27596
|
+
(_this$$refs4 = this.$refs) == null ? void 0 : (_this$$refs4$this$$pr = _this$$refs4[this.$props.innerRef]) == null ? void 0 : (_this$$refs4$this$$pr2 = _this$$refs4$this$$pr.$el) == null ? void 0 : _this$$refs4$this$$pr2.focus(); // eslint-disable-line
|
|
27597
27597
|
},
|
|
27598
27598
|
listenForFocusShortcuts: function listenForFocusShortcuts() {
|
|
27599
27599
|
var _this9 = this;
|
|
@@ -28026,7 +28026,7 @@
|
|
|
28026
28026
|
}), babelHelperVueTransformOn(getItemEvents({
|
|
28027
28027
|
item: sectionItem
|
|
28028
28028
|
})), {
|
|
28029
|
-
"key": index + sectionIndex,
|
|
28029
|
+
"key": sectionItem._id + "_" + index + "_" + sectionIndex,
|
|
28030
28030
|
"style": {
|
|
28031
28031
|
justifyContent: 'flex-start',
|
|
28032
28032
|
alignItems: 'center'
|
|
@@ -31562,7 +31562,7 @@
|
|
|
31562
31562
|
}), _this4.renderSearch(), _this4.hasCustomRenderer ? _this4.getComponent() : vue.createVNode(HierarchicalMenuComponent, {
|
|
31563
31563
|
"key": "initial-node",
|
|
31564
31564
|
"listArray": transformedData,
|
|
31565
|
-
"parentPath":
|
|
31565
|
+
"parentPath": true,
|
|
31566
31566
|
"isExpanded": true,
|
|
31567
31567
|
"listItemProps": {
|
|
31568
31568
|
mode: mode,
|
|
@@ -38842,6 +38842,9 @@
|
|
|
38842
38842
|
*/
|
|
38843
38843
|
var MarkerUtils = /*#__PURE__*/function () {
|
|
38844
38844
|
function MarkerUtils() {}
|
|
38845
|
+
MarkerUtils.isAdvancedMarkerAvailable = function isAdvancedMarkerAvailable(map) {
|
|
38846
|
+
return google.maps.marker && map.getMapCapabilities().isAdvancedMarkersAvailable === true;
|
|
38847
|
+
};
|
|
38845
38848
|
MarkerUtils.isAdvancedMarker = function isAdvancedMarker(marker) {
|
|
38846
38849
|
return google.maps.marker && marker instanceof google.maps.marker.AdvancedMarkerElement;
|
|
38847
38850
|
};
|
|
@@ -39046,13 +39049,13 @@
|
|
|
39046
39049
|
_this4 = _AbstractAlgorithm3.call(this, {
|
|
39047
39050
|
maxZoom: maxZoom
|
|
39048
39051
|
}) || this;
|
|
39052
|
+
_this4.state = {
|
|
39053
|
+
zoom: -1
|
|
39054
|
+
};
|
|
39049
39055
|
_this4.superCluster = new Supercluster(Object.assign({
|
|
39050
39056
|
maxZoom: _this4.maxZoom,
|
|
39051
39057
|
radius: radius
|
|
39052
39058
|
}, options));
|
|
39053
|
-
_this4.state = {
|
|
39054
|
-
zoom: null
|
|
39055
|
-
};
|
|
39056
39059
|
return _this4;
|
|
39057
39060
|
}
|
|
39058
39061
|
var _proto6 = SuperClusterAlgorithm.prototype;
|
|
@@ -39210,34 +39213,23 @@
|
|
|
39210
39213
|
position = _ref12.position;
|
|
39211
39214
|
// change color if this cluster has more markers than the mean cluster
|
|
39212
39215
|
var color = count > Math.max(10, stats.clusters.markers.mean) ? "#ff0000" : "#0000ff";
|
|
39213
|
-
// create svg
|
|
39214
|
-
var svg = "<svg fill=\"" + color + "\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 240 240\">\n
|
|
39216
|
+
// create svg literal with fill color
|
|
39217
|
+
var svg = "<svg fill=\"" + color + "\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 240 240\" width=\"50\" height=\"50\">\n<circle cx=\"120\" cy=\"120\" opacity=\".6\" r=\"70\" />\n<circle cx=\"120\" cy=\"120\" opacity=\".3\" r=\"90\" />\n<circle cx=\"120\" cy=\"120\" opacity=\".2\" r=\"110\" />\n<text x=\"50%\" y=\"50%\" style=\"fill:#fff\" text-anchor=\"middle\" font-size=\"50\" dominant-baseline=\"middle\" font-family=\"roboto,arial,sans-serif\">" + count + "</text>\n</svg>";
|
|
39215
39218
|
var title = "Cluster of " + count + " markers",
|
|
39216
39219
|
// adjust zIndex to be above other markers
|
|
39217
39220
|
zIndex = Number(google.maps.Marker.MAX_ZINDEX) + count;
|
|
39218
|
-
if (
|
|
39221
|
+
if (MarkerUtils.isAdvancedMarkerAvailable(map)) {
|
|
39219
39222
|
// create cluster SVG element
|
|
39220
39223
|
var div = document.createElement("div");
|
|
39221
39224
|
div.innerHTML = svg;
|
|
39222
39225
|
var svgEl = div.firstElementChild;
|
|
39223
|
-
svgEl.setAttribute("
|
|
39224
|
-
svgEl.setAttribute("height", "50");
|
|
39225
|
-
// create and append marker label to SVG
|
|
39226
|
-
var label = document.createElementNS("http://www.w3.org/2000/svg", "text");
|
|
39227
|
-
label.setAttribute("x", "50%");
|
|
39228
|
-
label.setAttribute("y", "50%");
|
|
39229
|
-
label.setAttribute("style", "fill: #FFF");
|
|
39230
|
-
label.setAttribute("text-anchor", "middle");
|
|
39231
|
-
label.setAttribute("font-size", "50");
|
|
39232
|
-
label.setAttribute("dominant-baseline", "middle");
|
|
39233
|
-
label.appendChild(document.createTextNode("" + count));
|
|
39234
|
-
svgEl.appendChild(label);
|
|
39226
|
+
svgEl.setAttribute("transform", "translate(0 25)");
|
|
39235
39227
|
var _clusterOptions = {
|
|
39236
39228
|
map: map,
|
|
39237
39229
|
position: position,
|
|
39238
39230
|
zIndex: zIndex,
|
|
39239
39231
|
title: title,
|
|
39240
|
-
content:
|
|
39232
|
+
content: svgEl
|
|
39241
39233
|
};
|
|
39242
39234
|
return new google.maps.marker.AdvancedMarkerElement(_clusterOptions);
|
|
39243
39235
|
}
|
|
@@ -39246,13 +39238,8 @@
|
|
|
39246
39238
|
zIndex: zIndex,
|
|
39247
39239
|
title: title,
|
|
39248
39240
|
icon: {
|
|
39249
|
-
url: "data:image/svg+xml;base64," +
|
|
39250
|
-
|
|
39251
|
-
},
|
|
39252
|
-
label: {
|
|
39253
|
-
text: String(count),
|
|
39254
|
-
color: "rgba(255,255,255,0.9)",
|
|
39255
|
-
fontSize: "12px"
|
|
39241
|
+
url: "data:image/svg+xml;base64," + btoa(svg),
|
|
39242
|
+
anchor: new google.maps.Point(25, 25)
|
|
39256
39243
|
}
|
|
39257
39244
|
};
|
|
39258
39245
|
return new google.maps.Marker(clusterOptions);
|
|
@@ -43703,7 +43690,7 @@
|
|
|
43703
43690
|
}, queryString, renderFunction);
|
|
43704
43691
|
}
|
|
43705
43692
|
|
|
43706
|
-
var version = "3.0.0-rc.
|
|
43693
|
+
var version = "3.0.0-rc.14";
|
|
43707
43694
|
|
|
43708
43695
|
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];
|
|
43709
43696
|
function install$1 (Vue) {
|