@appbaseio/reactivesearch-vue 3.1.0-alpha → 3.1.0-alpha.2
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 +461 -781
- package/dist/@appbaseio/reactivesearch-vue.umd.js.map +1 -1
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js +3 -3
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js.map +1 -1
- package/dist/cjs/DynamicRangeSlider.js +3 -2
- package/dist/cjs/RangeInput.js +3 -2
- package/dist/cjs/RangeSlider.js +3 -2
- package/dist/cjs/index.js +4 -3
- package/dist/cjs/{install-22854c15.js → install-26ae88c8.js} +144 -228
- package/dist/cjs/install.js +4 -3
- package/dist/cjs/version.js +1 -1
- package/dist/components/search/SearchBox.d.ts +0 -4
- package/dist/es/DynamicRangeSlider.js +3 -2
- package/dist/es/RangeInput.js +3 -2
- package/dist/es/RangeSlider.js +3 -2
- package/dist/es/index.js +5 -4
- package/dist/es/{install-7615abec.js → install-924d0354.js} +144 -228
- package/dist/es/install.js +4 -3
- package/dist/es/version.js +1 -1
- package/dist/types.ts +0 -12
- package/package.json +92 -91
|
@@ -1191,7 +1191,7 @@
|
|
|
1191
1191
|
geo: 'geo',
|
|
1192
1192
|
suggestion: 'suggestion'
|
|
1193
1193
|
};
|
|
1194
|
-
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', 'FAQSuggestionsConfig', '
|
|
1194
|
+
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', 'FAQSuggestionsConfig', 'enablePredictiveSuggestions', 'applyStopwords', 'customStopwords', 'enableIndexSuggestions', 'enableFeaturedSuggestions', 'enableFAQSuggestions', 'searchboxId', 'endpoint', 'enableEndpointSuggestions', 'enableAI', 'AIConfig'];
|
|
1195
1195
|
var CLEAR_ALL = exports.CLEAR_ALL = {
|
|
1196
1196
|
NEVER: 'never',
|
|
1197
1197
|
ALWAYS: 'always',
|
|
@@ -6330,9 +6330,7 @@
|
|
|
6330
6330
|
applyStopwords: props.applyStopwords,
|
|
6331
6331
|
customStopwords: props.customStopwords,
|
|
6332
6332
|
enablePredictiveSuggestions: props.enablePredictiveSuggestions,
|
|
6333
|
-
indexSuggestionsConfig: props.indexSuggestionsConfig
|
|
6334
|
-
enableDocumentSuggestions: props.enableDocumentSuggestions,
|
|
6335
|
-
documentSuggestionsConfig: props.enableDocumentSuggestions ? props.documentSuggestionsConfig : undefined
|
|
6333
|
+
indexSuggestionsConfig: props.indexSuggestionsConfig
|
|
6336
6334
|
}, featuredSuggestionsProps, faqSuggestionsProps, {
|
|
6337
6335
|
enableIndexSuggestions: props.enableIndexSuggestions
|
|
6338
6336
|
}, props.searchboxId ? {
|
|
@@ -25827,30 +25825,7 @@
|
|
|
25827
25825
|
name: 'SuggestionItem',
|
|
25828
25826
|
props: {
|
|
25829
25827
|
currentValue: types.string,
|
|
25830
|
-
suggestion: types.any
|
|
25831
|
-
innerHTML: types.string.isRequired
|
|
25832
|
-
},
|
|
25833
|
-
data: function data() {
|
|
25834
|
-
return {
|
|
25835
|
-
isOverflowing: false
|
|
25836
|
-
};
|
|
25837
|
-
},
|
|
25838
|
-
methods: {
|
|
25839
|
-
updateOverflowing: function updateOverflowing() {
|
|
25840
|
-
if (this.$refs.container && this.$refs.content) {
|
|
25841
|
-
var _this$$refs = this.$refs,
|
|
25842
|
-
container = _this$$refs.container,
|
|
25843
|
-
content = _this$$refs.content;
|
|
25844
|
-
var containerWidth = container.offsetWidth;
|
|
25845
|
-
var contentWidth = content.scrollWidth;
|
|
25846
|
-
this.isOverflowing = contentWidth > containerWidth;
|
|
25847
|
-
} else {
|
|
25848
|
-
this.isOverflowing = false;
|
|
25849
|
-
}
|
|
25850
|
-
}
|
|
25851
|
-
},
|
|
25852
|
-
mounted: function mounted() {
|
|
25853
|
-
this.updateOverflowing();
|
|
25828
|
+
suggestion: types.any
|
|
25854
25829
|
},
|
|
25855
25830
|
render: function render() {
|
|
25856
25831
|
var _this = this;
|
|
@@ -25866,11 +25841,7 @@
|
|
|
25866
25841
|
if (label) {
|
|
25867
25842
|
// label has highest precedence
|
|
25868
25843
|
return typeof label === 'string' ? vue.createVNode("div", {
|
|
25869
|
-
"
|
|
25870
|
-
"class": "trim",
|
|
25871
|
-
"title": this.isOverflowing ? label : ''
|
|
25872
|
-
}, [vue.createVNode("div", {
|
|
25873
|
-
"ref": "content"
|
|
25844
|
+
"class": "trim"
|
|
25874
25845
|
}, [(_category ? false : isPredictiveSuggestion
|
|
25875
25846
|
// eslint-disable-next-line
|
|
25876
25847
|
|| !!_suggestion_type) ? vue.createVNode(PredictiveSuggestion, {
|
|
@@ -25880,7 +25851,7 @@
|
|
|
25880
25851
|
"textToHighlight": label,
|
|
25881
25852
|
"autoEscape": true,
|
|
25882
25853
|
"highlightStyle": highlightStyle
|
|
25883
|
-
}, null)])
|
|
25854
|
+
}, null)]) : label;
|
|
25884
25855
|
}
|
|
25885
25856
|
if (title || image || description) {
|
|
25886
25857
|
return vue.createVNode(Flex, {
|
|
@@ -26844,42 +26815,6 @@
|
|
|
26844
26815
|
}
|
|
26845
26816
|
});
|
|
26846
26817
|
|
|
26847
|
-
// eslint-disable-next-line import/prefer-default-export
|
|
26848
|
-
var innerText = function innerText(jsx) {
|
|
26849
|
-
// Empty
|
|
26850
|
-
if (jsx === null || typeof jsx === 'boolean' || typeof jsx === 'undefined') {
|
|
26851
|
-
return '';
|
|
26852
|
-
}
|
|
26853
|
-
|
|
26854
|
-
// Numeric children.
|
|
26855
|
-
if (typeof jsx === 'number') {
|
|
26856
|
-
return jsx.toString();
|
|
26857
|
-
}
|
|
26858
|
-
|
|
26859
|
-
// String literals.
|
|
26860
|
-
if (typeof jsx === 'string') {
|
|
26861
|
-
return jsx;
|
|
26862
|
-
}
|
|
26863
|
-
|
|
26864
|
-
// Array of JSX.
|
|
26865
|
-
if (Array.isArray(jsx)) {
|
|
26866
|
-
// eslint-disable-next-line no-use-before-define
|
|
26867
|
-
return jsx.reduce(reduceJsxToString, '');
|
|
26868
|
-
}
|
|
26869
|
-
|
|
26870
|
-
// Children prop.
|
|
26871
|
-
if (Object.prototype.hasOwnProperty.call(jsx, 'children')) {
|
|
26872
|
-
return innerText(jsx.children);
|
|
26873
|
-
}
|
|
26874
|
-
|
|
26875
|
-
// Default
|
|
26876
|
-
return '';
|
|
26877
|
-
};
|
|
26878
|
-
innerText["default"] = innerText;
|
|
26879
|
-
function reduceJsxToString(previous, current) {
|
|
26880
|
-
return previous + innerText(current);
|
|
26881
|
-
}
|
|
26882
|
-
|
|
26883
26818
|
var _excluded$1 = ["_source"];
|
|
26884
26819
|
function _isSlot$5(s) {
|
|
26885
26820
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !vue.isVNode(s);
|
|
@@ -26972,7 +26907,6 @@
|
|
|
26972
26907
|
return this.faqAnswer || this.AIResponse && this.AIResponse.response && this.AIResponse.response.answer && this.AIResponse.response.answer.text;
|
|
26973
26908
|
},
|
|
26974
26909
|
parsedSuggestions: function parsedSuggestions() {
|
|
26975
|
-
var _this = this;
|
|
26976
26910
|
var suggestionsArray = [];
|
|
26977
26911
|
if (Array.isArray(this.suggestions) && this.suggestions.length) {
|
|
26978
26912
|
suggestionsArray = [].concat(withClickIds(this.suggestions));
|
|
@@ -26991,20 +26925,6 @@
|
|
|
26991
26925
|
return _extends({}, s, {
|
|
26992
26926
|
sectionId: s._suggestion_type
|
|
26993
26927
|
});
|
|
26994
|
-
}).map(function (suggestion) {
|
|
26995
|
-
if (suggestion._suggestion_type === 'document') {
|
|
26996
|
-
// Document suggestions don't have a meaningful label and value
|
|
26997
|
-
var newSuggestion = _extends({}, suggestion);
|
|
26998
|
-
newSuggestion.label = 'For recent document suggestion, please implement a renderItem method to display label.';
|
|
26999
|
-
var renderItem = _this.$slots.renderItem || _this.$props.renderItem;
|
|
27000
|
-
if (typeof renderItem === 'function') {
|
|
27001
|
-
var jsxEl = renderItem(newSuggestion);
|
|
27002
|
-
var innerValue = innerText(jsxEl);
|
|
27003
|
-
newSuggestion.value = lib$2(innerValue);
|
|
27004
|
-
}
|
|
27005
|
-
return newSuggestion;
|
|
27006
|
-
}
|
|
27007
|
-
return suggestion;
|
|
27008
26928
|
});
|
|
27009
26929
|
var sectionsAccumulated = [];
|
|
27010
26930
|
var sectionisedSuggestions = suggestionsArray.reduce(function (acc, d, currentIndex) {
|
|
@@ -27053,12 +26973,6 @@
|
|
|
27053
26973
|
enablePopularSuggestions: Q.bool.def(false),
|
|
27054
26974
|
enableRecentSuggestions: Q.bool.def(false),
|
|
27055
26975
|
enableFAQSuggestions: Q.bool.def(false),
|
|
27056
|
-
enableDocumentSuggestions: Q.bool.def(false),
|
|
27057
|
-
documentSuggestionsConfig: Q.shape({
|
|
27058
|
-
size: Q.number,
|
|
27059
|
-
from: Q.number,
|
|
27060
|
-
maxChars: Q.number
|
|
27061
|
-
}),
|
|
27062
26976
|
FAQSuggestionsConfig: Q.shape({
|
|
27063
26977
|
sectionLabel: Q.string,
|
|
27064
26978
|
size: Q.number
|
|
@@ -27238,9 +27152,9 @@
|
|
|
27238
27152
|
}
|
|
27239
27153
|
},
|
|
27240
27154
|
isAITyping: function isAITyping(newVal, oldVal) {
|
|
27241
|
-
var
|
|
27155
|
+
var _this = this;
|
|
27242
27156
|
var scrollAIContainer = function scrollAIContainer() {
|
|
27243
|
-
var dropdownEle =
|
|
27157
|
+
var dropdownEle = _this.$refs[_dropdownULRef];
|
|
27244
27158
|
if (dropdownEle) {
|
|
27245
27159
|
dropdownEle.scrollTo({
|
|
27246
27160
|
top: dropdownEle.scrollHeight,
|
|
@@ -27349,7 +27263,7 @@
|
|
|
27349
27263
|
}
|
|
27350
27264
|
},
|
|
27351
27265
|
setValue: function setValue(value, isDefaultValue, props, cause, toggleIsOpen, categoryValue, shouldExecuteQuery) {
|
|
27352
|
-
var
|
|
27266
|
+
var _this2 = this;
|
|
27353
27267
|
if (isDefaultValue === void 0) {
|
|
27354
27268
|
isDefaultValue = false;
|
|
27355
27269
|
}
|
|
@@ -27366,65 +27280,65 @@
|
|
|
27366
27280
|
shouldExecuteQuery = true;
|
|
27367
27281
|
}
|
|
27368
27282
|
var performUpdate = function performUpdate() {
|
|
27369
|
-
if (
|
|
27283
|
+
if (_this2.$options.isTagsMode && isEqual$4(value, _this2.selectedTags)) {
|
|
27370
27284
|
return;
|
|
27371
27285
|
}
|
|
27372
|
-
if (
|
|
27373
|
-
if (Array.isArray(
|
|
27286
|
+
if (_this2.$options.isTagsMode && cause === lib_7.SUGGESTION_SELECT) {
|
|
27287
|
+
if (Array.isArray(_this2.selectedTags) && _this2.selectedTags.length) {
|
|
27374
27288
|
// check if value already present in selectedTags
|
|
27375
|
-
if (typeof value === 'string' &&
|
|
27376
|
-
|
|
27289
|
+
if (typeof value === 'string' && _this2.selectedTags.includes(value)) {
|
|
27290
|
+
_this2.isOpen = false;
|
|
27377
27291
|
return;
|
|
27378
27292
|
}
|
|
27379
|
-
|
|
27293
|
+
_this2.selectedTags = [].concat(_this2.selectedTags);
|
|
27380
27294
|
if (typeof value === 'string' && !!value) {
|
|
27381
|
-
|
|
27382
|
-
} else if (Array.isArray(value) && !isEqual$4(
|
|
27383
|
-
|
|
27295
|
+
_this2.selectedTags.push(value);
|
|
27296
|
+
} else if (Array.isArray(value) && !isEqual$4(_this2.selectedTags, value)) {
|
|
27297
|
+
_this2.selectedTags = value;
|
|
27384
27298
|
}
|
|
27385
27299
|
} else if (value) {
|
|
27386
|
-
|
|
27300
|
+
_this2.selectedTags = typeof value !== 'string' ? value : [].concat(value);
|
|
27387
27301
|
}
|
|
27388
|
-
|
|
27302
|
+
_this2.currentValue = '';
|
|
27389
27303
|
} else {
|
|
27390
|
-
|
|
27304
|
+
_this2.currentValue = decodeHtml(value);
|
|
27391
27305
|
}
|
|
27392
27306
|
var queryHandlerValue = value;
|
|
27393
|
-
if (
|
|
27394
|
-
queryHandlerValue = Array.isArray(
|
|
27307
|
+
if (_this2.$options.isTagsMode && cause === lib_7.SUGGESTION_SELECT) {
|
|
27308
|
+
queryHandlerValue = Array.isArray(_this2.selectedTags) && _this2.selectedTags.length ? _this2.selectedTags : undefined;
|
|
27395
27309
|
}
|
|
27396
|
-
if ((
|
|
27310
|
+
if ((_this2.faqAnswer || _this2.faqQuestion) && value === '') {
|
|
27397
27311
|
// Empty the previous state
|
|
27398
|
-
|
|
27399
|
-
|
|
27400
|
-
|
|
27312
|
+
_this2.faqAnswer = '';
|
|
27313
|
+
_this2.faqQuestion = '';
|
|
27314
|
+
_this2.showAIScreen = false;
|
|
27401
27315
|
}
|
|
27402
27316
|
if (isDefaultValue) {
|
|
27403
|
-
if (
|
|
27317
|
+
if (_this2.$props.autosuggest) {
|
|
27404
27318
|
if (toggleIsOpen) {
|
|
27405
|
-
|
|
27319
|
+
_this2.isOpen = false;
|
|
27406
27320
|
}
|
|
27407
|
-
if (typeof
|
|
27321
|
+
if (typeof _this2.currentValue === 'string') _this2.triggerDefaultQuery(_this2.currentValue, props.enableAI && _this2.currentTriggerMode === constants_9$1.QUESTION && _this2.currentValue.endsWith('?') ? {
|
|
27408
27322
|
enableAI: true
|
|
27409
27323
|
} : {}, shouldExecuteQuery);
|
|
27410
27324
|
} // in case of strict selection only SUGGESTION_SELECT should be able
|
|
27411
27325
|
// to set the query otherwise the value should reset
|
|
27412
27326
|
if (props.strictSelection) {
|
|
27413
|
-
if (cause === lib_7.SUGGESTION_SELECT || (
|
|
27414
|
-
|
|
27327
|
+
if (cause === lib_7.SUGGESTION_SELECT || (_this2.$options.isTagsMode ? _this2.selectedTags.length === 0 : value === '')) {
|
|
27328
|
+
_this2.triggerCustomQuery(queryHandlerValue, _this2.$options.isTagsMode ? undefined : categoryValue, shouldExecuteQuery);
|
|
27415
27329
|
} else {
|
|
27416
|
-
|
|
27330
|
+
_this2.setValue('', true);
|
|
27417
27331
|
}
|
|
27418
27332
|
} else if (props.value === undefined || cause === lib_7.SUGGESTION_SELECT || cause === lib_7.CLEAR_VALUE) {
|
|
27419
|
-
|
|
27420
|
-
|
|
27333
|
+
_this2.showAIScreen = false;
|
|
27334
|
+
_this2.triggerCustomQuery(queryHandlerValue, _this2.$options.isTagsMode ? undefined : categoryValue, shouldExecuteQuery);
|
|
27421
27335
|
}
|
|
27422
27336
|
} else {
|
|
27423
27337
|
// debounce for handling text while typing
|
|
27424
|
-
|
|
27338
|
+
_this2.handleTextChange(value, cause);
|
|
27425
27339
|
}
|
|
27426
|
-
|
|
27427
|
-
|
|
27340
|
+
_this2.$emit('valueChange', value);
|
|
27341
|
+
_this2.$emit('value-change', value);
|
|
27428
27342
|
};
|
|
27429
27343
|
checkValueChange(props.componentId, value, props.beforeValueChange, performUpdate);
|
|
27430
27344
|
},
|
|
@@ -27573,7 +27487,7 @@
|
|
|
27573
27487
|
this.$emit('key-down', event, this.triggerQuery);
|
|
27574
27488
|
},
|
|
27575
27489
|
onInputChange: function onInputChange(e) {
|
|
27576
|
-
var
|
|
27490
|
+
var _this3 = this;
|
|
27577
27491
|
var inputValue = e.target.value;
|
|
27578
27492
|
if (!this.$data.isOpen && this.$props.autosuggest) {
|
|
27579
27493
|
this.isOpen = true;
|
|
@@ -27587,7 +27501,7 @@
|
|
|
27587
27501
|
} else {
|
|
27588
27502
|
this.$emit('change', inputValue, function (_ref3) {
|
|
27589
27503
|
var isOpen = _ref3.isOpen;
|
|
27590
|
-
return
|
|
27504
|
+
return _this3.triggerQuery({
|
|
27591
27505
|
defaultQuery: true,
|
|
27592
27506
|
customQuery: true,
|
|
27593
27507
|
value: inputValue,
|
|
@@ -27631,7 +27545,7 @@
|
|
|
27631
27545
|
}
|
|
27632
27546
|
},
|
|
27633
27547
|
onSuggestionSelected: function onSuggestionSelected(suggestion) {
|
|
27634
|
-
var
|
|
27548
|
+
var _this4 = this;
|
|
27635
27549
|
var value = this.$props.value;
|
|
27636
27550
|
// The state of the suggestion is open by the time it reaches here. i.e. isOpen = true
|
|
27637
27551
|
// handle when FAQ suggestion is clicked
|
|
@@ -27680,10 +27594,10 @@
|
|
|
27680
27594
|
this.setValue(emitValue, true, this.$props, lib_7.SUGGESTION_SELECT, false, suggestion._category);
|
|
27681
27595
|
this.$emit('change', emitValue, function (_ref4) {
|
|
27682
27596
|
var isOpen = _ref4.isOpen;
|
|
27683
|
-
return
|
|
27597
|
+
return _this4.triggerQuery(_extends({
|
|
27684
27598
|
isOpen: isOpen,
|
|
27685
27599
|
value: emitValue
|
|
27686
|
-
}, !
|
|
27600
|
+
}, !_this4.$options.isTagsMode && {
|
|
27687
27601
|
categoryValue: suggestion._category
|
|
27688
27602
|
}));
|
|
27689
27603
|
});
|
|
@@ -27723,7 +27637,7 @@
|
|
|
27723
27637
|
return null;
|
|
27724
27638
|
},
|
|
27725
27639
|
renderErrorComponent: function renderErrorComponent(isAIError) {
|
|
27726
|
-
var
|
|
27640
|
+
var _this5 = this;
|
|
27727
27641
|
if (isAIError === void 0) {
|
|
27728
27642
|
isAIError = false;
|
|
27729
27643
|
}
|
|
@@ -27750,7 +27664,7 @@
|
|
|
27750
27664
|
"themePreset": this.themePreset
|
|
27751
27665
|
}, {
|
|
27752
27666
|
"default": function _default() {
|
|
27753
|
-
return [isFunction(renderError) ? renderError(
|
|
27667
|
+
return [isFunction(renderError) ? renderError(_this5.error) : renderError];
|
|
27754
27668
|
}
|
|
27755
27669
|
});
|
|
27756
27670
|
}
|
|
@@ -27830,7 +27744,7 @@
|
|
|
27830
27744
|
});
|
|
27831
27745
|
},
|
|
27832
27746
|
renderEnterButtonElement: function renderEnterButtonElement() {
|
|
27833
|
-
var
|
|
27747
|
+
var _this6 = this;
|
|
27834
27748
|
var _this$$props2 = this.$props,
|
|
27835
27749
|
enterButton = _this$$props2.enterButton,
|
|
27836
27750
|
innerClass = _this$$props2.innerClass;
|
|
@@ -27838,12 +27752,12 @@
|
|
|
27838
27752
|
if (enterButton) {
|
|
27839
27753
|
var getEnterButtonMarkup = function getEnterButtonMarkup() {
|
|
27840
27754
|
if (renderEnterButton) {
|
|
27841
|
-
return renderEnterButton(
|
|
27755
|
+
return renderEnterButton(_this6.enterButtonOnClick);
|
|
27842
27756
|
}
|
|
27843
27757
|
return vue.createVNode(Button, {
|
|
27844
27758
|
"class": "enter-btn " + getClassName$3(innerClass, 'enter-button'),
|
|
27845
27759
|
"primary": true,
|
|
27846
|
-
"onClick":
|
|
27760
|
+
"onClick": _this6.enterButtonOnClick
|
|
27847
27761
|
}, {
|
|
27848
27762
|
"default": function _default() {
|
|
27849
27763
|
return [vue.createTextVNode("Search")];
|
|
@@ -27869,7 +27783,7 @@
|
|
|
27869
27783
|
return '/';
|
|
27870
27784
|
},
|
|
27871
27785
|
renderLeftIcons: function renderLeftIcons() {
|
|
27872
|
-
var
|
|
27786
|
+
var _this7 = this;
|
|
27873
27787
|
var _slot3;
|
|
27874
27788
|
var _this$$props3 = this.$props,
|
|
27875
27789
|
iconPosition = _this$$props3.iconPosition,
|
|
@@ -27879,8 +27793,8 @@
|
|
|
27879
27793
|
}, {
|
|
27880
27794
|
"default": function _default() {
|
|
27881
27795
|
return [iconPosition === 'left' && showIcon && vue.createVNode(IconWrapper, {
|
|
27882
|
-
"onClick":
|
|
27883
|
-
}, _isSlot$5(_slot3 =
|
|
27796
|
+
"onClick": _this7.handleSearchIconClick
|
|
27797
|
+
}, _isSlot$5(_slot3 = _this7.renderIcon()) ? _slot3 : {
|
|
27884
27798
|
"default": function _default() {
|
|
27885
27799
|
return [_slot3];
|
|
27886
27800
|
}
|
|
@@ -27889,7 +27803,7 @@
|
|
|
27889
27803
|
})]);
|
|
27890
27804
|
},
|
|
27891
27805
|
renderRightIcons: function renderRightIcons() {
|
|
27892
|
-
var
|
|
27806
|
+
var _this8 = this;
|
|
27893
27807
|
var _slot4, _slot5, _slot6;
|
|
27894
27808
|
var _this$$props4 = this.$props,
|
|
27895
27809
|
iconPosition = _this$$props4.iconPosition,
|
|
@@ -27906,29 +27820,29 @@
|
|
|
27906
27820
|
}, {
|
|
27907
27821
|
"default": function _default() {
|
|
27908
27822
|
return [currentValue && showClear && vue.createVNode(IconWrapper, {
|
|
27909
|
-
"onClick":
|
|
27823
|
+
"onClick": _this8.clearValue,
|
|
27910
27824
|
"showIcon": showIcon,
|
|
27911
27825
|
"isClearIcon": true
|
|
27912
|
-
}, _isSlot$5(_slot4 =
|
|
27826
|
+
}, _isSlot$5(_slot4 = _this8.renderCancelIcon()) ? _slot4 : {
|
|
27913
27827
|
"default": function _default() {
|
|
27914
27828
|
return [_slot4];
|
|
27915
27829
|
}
|
|
27916
27830
|
}), showFocusShortcutsIcon && vue.createVNode(ButtonIconWrapper, {
|
|
27917
27831
|
"onClick": function onClick(e) {
|
|
27918
|
-
return
|
|
27832
|
+
return _this8.focusSearchBox(e);
|
|
27919
27833
|
}
|
|
27920
|
-
}, _isSlot$5(_slot5 =
|
|
27834
|
+
}, _isSlot$5(_slot5 = _this8.renderShortcut()) ? _slot5 : {
|
|
27921
27835
|
"default": function _default() {
|
|
27922
27836
|
return [_slot5];
|
|
27923
27837
|
}
|
|
27924
27838
|
}), showVoiceSearch && vue.createVNode(Mic, {
|
|
27925
27839
|
"getInstance": getMicInstance,
|
|
27926
27840
|
"render": renderMic,
|
|
27927
|
-
"handleResult":
|
|
27841
|
+
"handleResult": _this8.handleVoiceResults,
|
|
27928
27842
|
"className": getClassName$3(innerClass, 'mic') || null
|
|
27929
27843
|
}, null), iconPosition === 'right' && showIcon && vue.createVNode(IconWrapper, {
|
|
27930
|
-
"onClick":
|
|
27931
|
-
}, _isSlot$5(_slot6 =
|
|
27844
|
+
"onClick": _this8.handleSearchIconClick
|
|
27845
|
+
}, _isSlot$5(_slot6 = _this8.renderIcon()) ? _slot6 : {
|
|
27932
27846
|
"default": function _default() {
|
|
27933
27847
|
return [_slot6];
|
|
27934
27848
|
}
|
|
@@ -27947,7 +27861,7 @@
|
|
|
27947
27861
|
(_this$$refs4 = this.$refs) == null || (_this$$refs4 = _this$$refs4[this.$props.innerRef]) == null || (_this$$refs4 = _this$$refs4.$el) == null ? void 0 : _this$$refs4.focus(); // eslint-disable-line
|
|
27948
27862
|
},
|
|
27949
27863
|
listenForFocusShortcuts: function listenForFocusShortcuts() {
|
|
27950
|
-
var
|
|
27864
|
+
var _this9 = this;
|
|
27951
27865
|
var _this$$props$focusSho = this.$props.focusShortcuts,
|
|
27952
27866
|
focusShortcuts = _this$$props$focusSho === void 0 ? ['/'] : _this$$props$focusSho;
|
|
27953
27867
|
if (isEmpty(focusShortcuts)) {
|
|
@@ -27962,7 +27876,7 @@
|
|
|
27962
27876
|
function (event, handler) {
|
|
27963
27877
|
// Prevent the default refresh event under WINDOWS system
|
|
27964
27878
|
event.preventDefault();
|
|
27965
|
-
|
|
27879
|
+
_this9.focusSearchBox(event);
|
|
27966
27880
|
});
|
|
27967
27881
|
|
|
27968
27882
|
// if one of modifier keys are used, they are handled below
|
|
@@ -27972,7 +27886,7 @@
|
|
|
27972
27886
|
for (var index = 0; index < modifierKeys.length; index += 1) {
|
|
27973
27887
|
var element = modifierKeys[index];
|
|
27974
27888
|
if (hotkeys[element]) {
|
|
27975
|
-
|
|
27889
|
+
_this9.focusSearchBox(event);
|
|
27976
27890
|
break;
|
|
27977
27891
|
}
|
|
27978
27892
|
}
|
|
@@ -27985,10 +27899,10 @@
|
|
|
27985
27899
|
this.triggerDefaultQuery(value);
|
|
27986
27900
|
},
|
|
27987
27901
|
renderActionIcon: function renderActionIcon(suggestion) {
|
|
27988
|
-
var
|
|
27902
|
+
var _this10 = this;
|
|
27989
27903
|
var handleAutoFillClick = function handleAutoFillClick(e) {
|
|
27990
27904
|
e.stopPropagation();
|
|
27991
|
-
|
|
27905
|
+
_this10.onAutofillClick(suggestion);
|
|
27992
27906
|
};
|
|
27993
27907
|
if (suggestion._suggestion_type === helper_16.Featured) {
|
|
27994
27908
|
if (suggestion.action === helper_15.FUNCTION) {
|
|
@@ -28011,7 +27925,7 @@
|
|
|
28011
27925
|
return null;
|
|
28012
27926
|
},
|
|
28013
27927
|
renderTag: function renderTag(item) {
|
|
28014
|
-
var
|
|
27928
|
+
var _this11 = this;
|
|
28015
27929
|
var innerClass = this.$props.innerClass;
|
|
28016
27930
|
return vue.createVNode(TagItem, {
|
|
28017
27931
|
"class": getClassName$3(innerClass, 'selected-tag') || ''
|
|
@@ -28022,7 +27936,7 @@
|
|
|
28022
27936
|
"aria-label": "delete-tag",
|
|
28023
27937
|
"class": "close-icon",
|
|
28024
27938
|
"onClick": function onClick() {
|
|
28025
|
-
return
|
|
27939
|
+
return _this11.clearTag(item);
|
|
28026
27940
|
}
|
|
28027
27941
|
}, [vue.createVNode(CancelSvg, null, null)])];
|
|
28028
27942
|
}
|
|
@@ -28045,7 +27959,7 @@
|
|
|
28045
27959
|
}
|
|
28046
27960
|
},
|
|
28047
27961
|
renderTags: function renderTags() {
|
|
28048
|
-
var
|
|
27962
|
+
var _this12 = this;
|
|
28049
27963
|
if (!Array.isArray(this.selectedTags)) {
|
|
28050
27964
|
return null;
|
|
28051
27965
|
}
|
|
@@ -28059,16 +27973,16 @@
|
|
|
28059
27973
|
}) : vue.createVNode(TagsContainer, null, {
|
|
28060
27974
|
"default": function _default() {
|
|
28061
27975
|
return [tagsList.map(function (item) {
|
|
28062
|
-
return
|
|
27976
|
+
return _this12.renderTag(item);
|
|
28063
27977
|
}), shouldRenderClearAllTag && vue.createVNode(TagItem, {
|
|
28064
|
-
"class": getClassName$3(
|
|
27978
|
+
"class": getClassName$3(_this12.$props.innerClass, 'selected-tag') || ''
|
|
28065
27979
|
}, {
|
|
28066
27980
|
"default": function _default() {
|
|
28067
27981
|
return [vue.createVNode("span", null, [vue.createTextVNode("Clear All")]), vue.createVNode("span", {
|
|
28068
27982
|
"role": "img",
|
|
28069
27983
|
"aria-label": "delete-tag",
|
|
28070
27984
|
"class": "close-icon",
|
|
28071
|
-
"onClick":
|
|
27985
|
+
"onClick": _this12.clearAllTags
|
|
28072
27986
|
}, [vue.createVNode(CancelSvg, null, null)])];
|
|
28073
27987
|
}
|
|
28074
27988
|
})];
|
|
@@ -28116,7 +28030,7 @@
|
|
|
28116
28030
|
},
|
|
28117
28031
|
renderAIScreenFooter: function renderAIScreenFooter() {
|
|
28118
28032
|
var _slot8;
|
|
28119
|
-
var
|
|
28033
|
+
var _this13 = this;
|
|
28120
28034
|
var _this$$props$AIUIConf2 = this.$props.AIUIConfig,
|
|
28121
28035
|
AIUIConfig = _this$$props$AIUIConf2 === void 0 ? {} : _this$$props$AIUIConf2;
|
|
28122
28036
|
var _ref6 = AIUIConfig || {},
|
|
@@ -28125,11 +28039,11 @@
|
|
|
28125
28039
|
_ref6$onSourceClick = _ref6.onSourceClick,
|
|
28126
28040
|
onSourceClick = _ref6$onSourceClick === void 0 ? function () {} : _ref6$onSourceClick;
|
|
28127
28041
|
var renderSourceDocumentLabel = function renderSourceDocumentLabel(sourceObj) {
|
|
28128
|
-
if (
|
|
28129
|
-
return
|
|
28042
|
+
if (_this13.$props.AIUIConfig && _this13.$props.AIUIConfig.renderSourceDocument) {
|
|
28043
|
+
return _this13.$props.AIUIConfig.renderSourceDocument(sourceObj);
|
|
28130
28044
|
}
|
|
28131
|
-
if (
|
|
28132
|
-
return
|
|
28045
|
+
if (_this13.$slots.renderSourceDocument) {
|
|
28046
|
+
return _this13.$slots.renderSourceDocument(sourceObj);
|
|
28133
28047
|
}
|
|
28134
28048
|
return sourceObj._id;
|
|
28135
28049
|
};
|
|
@@ -28137,10 +28051,10 @@
|
|
|
28137
28051
|
"themePreset": this.$props.themePreset
|
|
28138
28052
|
}, {
|
|
28139
28053
|
"default": function _default() {
|
|
28140
|
-
return [vue.createTextVNode("Summary generated using the following sources:"), ' ', vue.createVNode(SourceTags, null, _isSlot$5(_slot8 =
|
|
28054
|
+
return [vue.createTextVNode("Summary generated using the following sources:"), ' ', vue.createVNode(SourceTags, null, _isSlot$5(_slot8 = _this13.getAISourceObjects().map(function (el) {
|
|
28141
28055
|
var _slot7;
|
|
28142
28056
|
return vue.createVNode(Button, {
|
|
28143
|
-
"class": "--ai-source-tag " + (getClassName$3(
|
|
28057
|
+
"class": "--ai-source-tag " + (getClassName$3(_this13.$props.innerClass, 'ai-source-tag') || ''),
|
|
28144
28058
|
"info": true,
|
|
28145
28059
|
"onClick": function onClick() {
|
|
28146
28060
|
return onSourceClick && onSourceClick(el);
|
|
@@ -28159,7 +28073,7 @@
|
|
|
28159
28073
|
}) : null;
|
|
28160
28074
|
},
|
|
28161
28075
|
renderAIScreen: function renderAIScreen() {
|
|
28162
|
-
var
|
|
28076
|
+
var _this14 = this;
|
|
28163
28077
|
var customAIRenderer = this.$props.renderAIAnswer || this.$slots.renderAIAnswer;
|
|
28164
28078
|
if (customAIRenderer) {
|
|
28165
28079
|
return customAIRenderer({
|
|
@@ -28183,11 +28097,11 @@
|
|
|
28183
28097
|
"hideUI": this.isAIResponseLoading || this.isLoading || !this.sessionIdFromStore,
|
|
28184
28098
|
"key": this.sessionIdFromStore,
|
|
28185
28099
|
"onFeedbackSubmit": function onFeedbackSubmit(useful, reason) {
|
|
28186
|
-
|
|
28100
|
+
_this14.feedbackState = {
|
|
28187
28101
|
isRecorded: true,
|
|
28188
28102
|
feedbackType: useful ? 'positive' : 'negative'
|
|
28189
28103
|
};
|
|
28190
|
-
|
|
28104
|
+
_this14.recordAISessionUsefulness(_this14.sessionIdFromStore, {
|
|
28191
28105
|
useful: useful,
|
|
28192
28106
|
reason: reason
|
|
28193
28107
|
});
|
|
@@ -28222,7 +28136,7 @@
|
|
|
28222
28136
|
});
|
|
28223
28137
|
},
|
|
28224
28138
|
renderAskButtonElement: function renderAskButtonElement() {
|
|
28225
|
-
var
|
|
28139
|
+
var _this15 = this;
|
|
28226
28140
|
var _this$$props5 = this.$props,
|
|
28227
28141
|
AIUIConfig = _this$$props5.AIUIConfig,
|
|
28228
28142
|
innerClass = _this$$props5.innerClass;
|
|
@@ -28232,12 +28146,12 @@
|
|
|
28232
28146
|
if (askButton) {
|
|
28233
28147
|
var getEnterButtonMarkup = function getEnterButtonMarkup() {
|
|
28234
28148
|
if (renderAskButton) {
|
|
28235
|
-
return renderAskButton(
|
|
28149
|
+
return renderAskButton(_this15.askButtonOnClick);
|
|
28236
28150
|
}
|
|
28237
28151
|
return vue.createVNode(Button, {
|
|
28238
28152
|
"class": "enter-btn " + getClassName$3(innerClass, 'ask-button'),
|
|
28239
28153
|
"info": true,
|
|
28240
|
-
"onClick":
|
|
28154
|
+
"onClick": _this15.askButtonOnClick
|
|
28241
28155
|
}, {
|
|
28242
28156
|
"default": function _default() {
|
|
28243
28157
|
return [vue.createTextVNode("Ask")];
|
|
@@ -28252,7 +28166,7 @@
|
|
|
28252
28166
|
}
|
|
28253
28167
|
},
|
|
28254
28168
|
render: function render() {
|
|
28255
|
-
var
|
|
28169
|
+
var _this16 = this;
|
|
28256
28170
|
var expandSuggestionsContainer = this.$props.expandSuggestionsContainer;
|
|
28257
28171
|
var _this$$slots = this.$slots,
|
|
28258
28172
|
recentSearchesIcon = _this$$slots.recentSearchesIcon,
|
|
@@ -28263,17 +28177,17 @@
|
|
|
28263
28177
|
"class": this.$props.className
|
|
28264
28178
|
}, {
|
|
28265
28179
|
"default": function _default() {
|
|
28266
|
-
return [
|
|
28267
|
-
"class": getClassName$3(
|
|
28180
|
+
return [_this16.$props.title && vue.createVNode(Title, {
|
|
28181
|
+
"class": getClassName$3(_this16.$props.innerClass, 'title') || ''
|
|
28268
28182
|
}, {
|
|
28269
28183
|
"default": function _default() {
|
|
28270
|
-
return [
|
|
28184
|
+
return [_this16.$props.title];
|
|
28271
28185
|
}
|
|
28272
|
-
}),
|
|
28273
|
-
"id":
|
|
28274
|
-
"handleChange":
|
|
28275
|
-
"handleMouseup":
|
|
28276
|
-
"isOpen":
|
|
28186
|
+
}), _this16.$props.autosuggest ? vue.createVNode(Downshift, {
|
|
28187
|
+
"id": _this16.$props.componentId + "-downshift",
|
|
28188
|
+
"handleChange": _this16.onSuggestionSelected,
|
|
28189
|
+
"handleMouseup": _this16.handleStateChange,
|
|
28190
|
+
"isOpen": _this16.$data.isOpen
|
|
28277
28191
|
}, {
|
|
28278
28192
|
"default": function _default(_ref8) {
|
|
28279
28193
|
var getInputEvents = _ref8.getInputEvents,
|
|
@@ -28329,21 +28243,21 @@
|
|
|
28329
28243
|
}
|
|
28330
28244
|
};
|
|
28331
28245
|
var indexOffset = 0;
|
|
28332
|
-
return vue.createVNode("div", null, [
|
|
28246
|
+
return vue.createVNode("div", null, [_this16.hasCustomRenderer && _this16.getComponent({
|
|
28333
28247
|
isOpen: isOpen,
|
|
28334
28248
|
getItemProps: getItemProps,
|
|
28335
28249
|
getItemEvents: getItemEvents,
|
|
28336
28250
|
highlightedIndex: highlightedIndex
|
|
28337
|
-
}),
|
|
28338
|
-
"class": suggestions$1(
|
|
28251
|
+
}), _this16.renderErrorComponent(), !_this16.hasCustomRenderer && isOpen && hasSuggestions ? vue.createVNode("ul", {
|
|
28252
|
+
"class": suggestions$1(_this16.themePreset, _this16.theme) + " " + getClassName$3(_this16.$props.innerClass, 'list') + " " + searchboxSuggestions(_this16.themePreset, _this16.theme) + "\n\t\t\t\t\t\t\t\t\t\t\t\t\t",
|
|
28339
28253
|
"ref": _dropdownULRef
|
|
28340
|
-
}, [
|
|
28341
|
-
"themePreset":
|
|
28254
|
+
}, [_this16.showAIScreen && vue.createVNode(SearchBoxAISection, {
|
|
28255
|
+
"themePreset": _this16.$props.themePreset
|
|
28342
28256
|
}, {
|
|
28343
28257
|
"default": function _default() {
|
|
28344
|
-
return [
|
|
28258
|
+
return [_this16.renderAIScreen(), ' ', _this16.renderErrorComponent(true)];
|
|
28345
28259
|
}
|
|
28346
|
-
}), !
|
|
28260
|
+
}), !_this16.showAIScreen && _this16.parsedSuggestions.map(function (item, itemIndex) {
|
|
28347
28261
|
var index = indexOffset + itemIndex;
|
|
28348
28262
|
if (Array.isArray(item)) {
|
|
28349
28263
|
var sectionHtml = lib$2(item[0].sectionLabel);
|
|
@@ -28352,7 +28266,7 @@
|
|
|
28352
28266
|
"key": "section-" + itemIndex,
|
|
28353
28267
|
"class": "section-container"
|
|
28354
28268
|
}, [sectionHtml ? vue.createVNode("div", {
|
|
28355
|
-
"class": "section-header " + getClassName$3(
|
|
28269
|
+
"class": "section-header " + getClassName$3(_this16.$props.innerClass, 'section-label'),
|
|
28356
28270
|
"key": "" + item[0].sectionId,
|
|
28357
28271
|
"innerHTML": sectionHtml
|
|
28358
28272
|
}, null) : null, vue.createVNode("ul", {
|
|
@@ -28372,7 +28286,7 @@
|
|
|
28372
28286
|
justifyContent: 'flex-start',
|
|
28373
28287
|
alignItems: 'center'
|
|
28374
28288
|
},
|
|
28375
|
-
"class": "" + (highlightedIndex === index + sectionIndex ? "active-li-item " + getClassName$3(
|
|
28289
|
+
"class": "" + (highlightedIndex === index + sectionIndex ? "active-li-item " + getClassName$3(_this16.$props.innerClass, 'active-suggestion-item') : "li-item " + getClassName$3(_this16.$props.innerClass, 'suggestion-item'))
|
|
28376
28290
|
}), [renderItem(sectionItem)]);
|
|
28377
28291
|
}
|
|
28378
28292
|
if (sectionItem._suggestion_type === '_internal_a_i_trigger') {
|
|
@@ -28386,9 +28300,9 @@
|
|
|
28386
28300
|
justifyContent: 'flex-start',
|
|
28387
28301
|
alignItems: 'center'
|
|
28388
28302
|
},
|
|
28389
|
-
"class": "" + (highlightedIndex === index + sectionIndex ? "active-li-item " + getClassName$3(
|
|
28303
|
+
"class": "" + (highlightedIndex === index + sectionIndex ? "active-li-item " + getClassName$3(_this16.$props.innerClass, 'active-suggestion-item') : "li-item " + getClassName$3(_this16.$props.innerClass, 'suggestion-item'))
|
|
28390
28304
|
}), [vue.createVNode(SuggestionItem, {
|
|
28391
|
-
"currentValue":
|
|
28305
|
+
"currentValue": _this16.currentValue,
|
|
28392
28306
|
"suggestion": sectionItem
|
|
28393
28307
|
}, null)]);
|
|
28394
28308
|
}
|
|
@@ -28402,7 +28316,7 @@
|
|
|
28402
28316
|
justifyContent: 'flex-start',
|
|
28403
28317
|
alignItems: 'center'
|
|
28404
28318
|
},
|
|
28405
|
-
"class": "" + (highlightedIndex === index + sectionIndex ? "active-li-item " + getClassName$3(
|
|
28319
|
+
"class": "" + (highlightedIndex === index + sectionIndex ? "active-li-item " + getClassName$3(_this16.$props.innerClass, 'active-suggestion-item') : "li-item " + getClassName$3(_this16.$props.innerClass, 'suggestion-item'))
|
|
28406
28320
|
}), [vue.createVNode("div", {
|
|
28407
28321
|
"style": {
|
|
28408
28322
|
padding: '0 10px 0 0',
|
|
@@ -28410,74 +28324,74 @@
|
|
|
28410
28324
|
}
|
|
28411
28325
|
}, [vue.createVNode(CustomSvg, {
|
|
28412
28326
|
"key": sectionItem._suggestion_type + "-" + sectionIndex,
|
|
28413
|
-
"className": getClassName$3(
|
|
28327
|
+
"className": getClassName$3(_this16.$props.innerClass, sectionItem._suggestion_type + "-search-icon") || null,
|
|
28414
28328
|
"icon": getIcon(sectionItem._suggestion_type, sectionItem, suggestionsHaveIcon),
|
|
28415
28329
|
"type": sectionItem._suggestion_type + "-search-icon"
|
|
28416
28330
|
}, null)]), vue.createVNode(SuggestionItem, {
|
|
28417
|
-
"currentValue":
|
|
28331
|
+
"currentValue": _this16.currentValue,
|
|
28418
28332
|
"suggestion": sectionItem
|
|
28419
|
-
}, null),
|
|
28333
|
+
}, null), _this16.renderActionIcon(sectionItem)]);
|
|
28420
28334
|
})])]);
|
|
28421
28335
|
}
|
|
28422
28336
|
return vue.createVNode("div", null, [vue.createTextVNode("No suggestions")]);
|
|
28423
|
-
}), !
|
|
28337
|
+
}), !_this16.showAIScreen && _this16.parsedSuggestions.length && _this16.$props.showSuggestionsFooter ? _this16.suggestionsFooter() : null]) : _this16.renderNoSuggestions(_this16.normalizedSuggestions)]);
|
|
28424
28338
|
};
|
|
28425
28339
|
return vue.createVNode("div", {
|
|
28426
28340
|
"class": suggestionsContainer
|
|
28427
28341
|
}, [vue.createVNode(InputGroup, {
|
|
28428
28342
|
"searchBox": true,
|
|
28429
28343
|
"ref": _inputGroupRef,
|
|
28430
|
-
"isOpen":
|
|
28344
|
+
"isOpen": _this16.$data.isOpen
|
|
28431
28345
|
}, {
|
|
28432
28346
|
"default": function _default() {
|
|
28433
28347
|
return [vue.createVNode(Actions, null, {
|
|
28434
28348
|
"default": function _default() {
|
|
28435
|
-
return [
|
|
28349
|
+
return [_this16.renderInputAddonBefore(), _this16.renderLeftIcons()];
|
|
28436
28350
|
}
|
|
28437
28351
|
}), vue.createVNode(InputWrapper, null, {
|
|
28438
28352
|
"default": function _default() {
|
|
28439
28353
|
return [vue.createVNode(TextArea, vue.mergeProps(babelHelperVueTransformOn(getInputEvents({
|
|
28440
|
-
onInput:
|
|
28354
|
+
onInput: _this16.onInputChange,
|
|
28441
28355
|
onBlur: function onBlur(e) {
|
|
28442
|
-
|
|
28356
|
+
_this16.$emit('blur', e, _this16.triggerQuery);
|
|
28443
28357
|
},
|
|
28444
|
-
onFocus:
|
|
28358
|
+
onFocus: _this16.handleFocus,
|
|
28445
28359
|
onKeyPress: function onKeyPress(e) {
|
|
28446
|
-
|
|
28447
|
-
|
|
28360
|
+
_this16.$emit('keyPress', e, _this16.triggerQuery);
|
|
28361
|
+
_this16.$emit('key-press', e, _this16.triggerQuery);
|
|
28448
28362
|
},
|
|
28449
28363
|
onKeyDown: function onKeyDown(e) {
|
|
28450
|
-
return
|
|
28364
|
+
return _this16.handleKeyDown(e, highlightedIndex);
|
|
28451
28365
|
},
|
|
28452
28366
|
onKeyUp: function onKeyUp(e) {
|
|
28453
|
-
|
|
28454
|
-
|
|
28367
|
+
_this16.$emit('keyUp', e, _this16.triggerQuery);
|
|
28368
|
+
_this16.$emit('key-up', e, _this16.triggerQuery);
|
|
28455
28369
|
},
|
|
28456
28370
|
onClick: function onClick() {
|
|
28457
28371
|
setHighlightedIndex(null);
|
|
28458
28372
|
}
|
|
28459
28373
|
})), {
|
|
28460
28374
|
"searchBox": true,
|
|
28461
|
-
"isOpen":
|
|
28462
|
-
"id":
|
|
28463
|
-
"ref":
|
|
28464
|
-
"class": getClassName$3(
|
|
28465
|
-
"placeholder":
|
|
28466
|
-
"autoFocus":
|
|
28375
|
+
"isOpen": _this16.$data.isOpen,
|
|
28376
|
+
"id": _this16.$props.componentId + "-input",
|
|
28377
|
+
"ref": _this16.$props.innerRef,
|
|
28378
|
+
"class": getClassName$3(_this16.$props.innerClass, 'input'),
|
|
28379
|
+
"placeholder": _this16.$props.placeholder,
|
|
28380
|
+
"autoFocus": _this16.$props.autoFocus
|
|
28467
28381
|
}, getInputProps({
|
|
28468
|
-
value:
|
|
28382
|
+
value: _this16.$data.currentValue === null ? '' : _this16.$data.currentValue
|
|
28469
28383
|
}), {
|
|
28470
|
-
"themePreset":
|
|
28384
|
+
"themePreset": _this16.themePreset,
|
|
28471
28385
|
"autocomplete": "off"
|
|
28472
28386
|
}), null), !expandSuggestionsContainer && renderSuggestionsDropdown()];
|
|
28473
28387
|
}
|
|
28474
28388
|
}), vue.createVNode(Actions, null, {
|
|
28475
28389
|
"default": function _default() {
|
|
28476
|
-
return [
|
|
28390
|
+
return [_this16.renderRightIcons(), _this16.renderInputAddonAfter(), _this16.renderAskButtonElement(), _this16.renderEnterButtonElement()];
|
|
28477
28391
|
}
|
|
28478
28392
|
})];
|
|
28479
28393
|
}
|
|
28480
|
-
}), expandSuggestionsContainer && renderSuggestionsDropdown(),
|
|
28394
|
+
}), expandSuggestionsContainer && renderSuggestionsDropdown(), _this16.renderTags()]);
|
|
28481
28395
|
}
|
|
28482
28396
|
}) : vue.createVNode("div", {
|
|
28483
28397
|
"class": suggestionsContainer
|
|
@@ -28488,43 +28402,43 @@
|
|
|
28488
28402
|
"default": function _default() {
|
|
28489
28403
|
return [vue.createVNode(Actions, null, {
|
|
28490
28404
|
"default": function _default() {
|
|
28491
|
-
return [
|
|
28405
|
+
return [_this16.renderInputAddonBefore(), _this16.renderLeftIcons()];
|
|
28492
28406
|
}
|
|
28493
28407
|
}), vue.createVNode(InputWrapper, null, {
|
|
28494
28408
|
"default": function _default() {
|
|
28495
28409
|
return [vue.createVNode(TextArea, vue.mergeProps(babelHelperVueTransformOn({
|
|
28496
28410
|
blur: function blur(e) {
|
|
28497
|
-
|
|
28411
|
+
_this16.$emit('blur', e, _this16.triggerQuery);
|
|
28498
28412
|
},
|
|
28499
28413
|
keypress: function keypress(e) {
|
|
28500
|
-
|
|
28501
|
-
|
|
28414
|
+
_this16.$emit('keyPress', e, _this16.triggerQuery);
|
|
28415
|
+
_this16.$emit('key-press', e, _this16.triggerQuery);
|
|
28502
28416
|
},
|
|
28503
|
-
input:
|
|
28417
|
+
input: _this16.onInputChange,
|
|
28504
28418
|
focus: function focus(e) {
|
|
28505
|
-
|
|
28419
|
+
_this16.$emit('focus', e, _this16.triggerQuery);
|
|
28506
28420
|
},
|
|
28507
|
-
keydown:
|
|
28421
|
+
keydown: _this16.handleKeyDown,
|
|
28508
28422
|
keyup: function keyup(e) {
|
|
28509
|
-
|
|
28510
|
-
|
|
28423
|
+
_this16.$emit('keyUp', e, _this16.triggerQuery);
|
|
28424
|
+
_this16.$emit('key-up', e, _this16.triggerQuery);
|
|
28511
28425
|
}
|
|
28512
28426
|
}), {
|
|
28513
28427
|
"searchBox": true,
|
|
28514
|
-
"class": getClassName$3(
|
|
28515
|
-
"placeholder":
|
|
28516
|
-
"autofocus":
|
|
28517
|
-
"value":
|
|
28518
|
-
"iconPosition":
|
|
28519
|
-
"showIcon":
|
|
28520
|
-
"showClear":
|
|
28521
|
-
"ref":
|
|
28522
|
-
"themePreset":
|
|
28428
|
+
"class": getClassName$3(_this16.$props.innerClass, 'input') || '',
|
|
28429
|
+
"placeholder": _this16.$props.placeholder,
|
|
28430
|
+
"autofocus": _this16.$props.autoFocus,
|
|
28431
|
+
"value": _this16.$data.currentValue ? _this16.$data.currentValue : '',
|
|
28432
|
+
"iconPosition": _this16.$props.iconPosition,
|
|
28433
|
+
"showIcon": _this16.$props.showIcon,
|
|
28434
|
+
"showClear": _this16.$props.showClear,
|
|
28435
|
+
"ref": _this16.$props.innerRef,
|
|
28436
|
+
"themePreset": _this16.themePreset
|
|
28523
28437
|
}), null)];
|
|
28524
28438
|
}
|
|
28525
28439
|
}), vue.createVNode(Actions, null, {
|
|
28526
28440
|
"default": function _default() {
|
|
28527
|
-
return [
|
|
28441
|
+
return [_this16.renderRightIcons(), _this16.renderInputAddonAfter(), _this16.renderEnterButtonElement()];
|
|
28528
28442
|
}
|
|
28529
28443
|
})];
|
|
28530
28444
|
}
|
|
@@ -33902,9 +33816,9 @@
|
|
|
33902
33816
|
return function () {
|
|
33903
33817
|
var e = {
|
|
33904
33818
|
388: function _(t, e) {
|
|
33905
|
-
var
|
|
33819
|
+
var n, r, i;
|
|
33906
33820
|
(function (o, a) {
|
|
33907
|
-
|
|
33821
|
+
r = [], n = a, i = "function" === typeof n ? n.apply(e, r) : n, void 0 === i || (t.exports = i);
|
|
33908
33822
|
})("undefined" !== typeof self && self, function () {
|
|
33909
33823
|
function t() {
|
|
33910
33824
|
var e = Object.getOwnPropertyDescriptor(document, "currentScript");
|
|
@@ -33913,8 +33827,8 @@
|
|
|
33913
33827
|
try {
|
|
33914
33828
|
throw new Error();
|
|
33915
33829
|
} catch (f) {
|
|
33916
|
-
var
|
|
33917
|
-
|
|
33830
|
+
var n,
|
|
33831
|
+
r,
|
|
33918
33832
|
i,
|
|
33919
33833
|
o = /.*at [^(]*\((.*):(.+):(.+)\)$/gi,
|
|
33920
33834
|
a = /@([^@]*):(\d+):(\d+)\s*$/gi,
|
|
@@ -33923,7 +33837,7 @@
|
|
|
33923
33837
|
u = s && s[2] || !1,
|
|
33924
33838
|
c = document.location.href.replace(document.location.hash, ""),
|
|
33925
33839
|
d = document.getElementsByTagName("script");
|
|
33926
|
-
l === c && (
|
|
33840
|
+
l === c && (n = document.documentElement.outerHTML, r = new RegExp("(?:[^\\n]+?\\n){0," + (u - 2) + "}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*", "i"), i = n.replace(r, "$1").trim());
|
|
33927
33841
|
for (var h = 0; h < d.length; h++) {
|
|
33928
33842
|
if ("interactive" === d[h].readyState) return d[h];
|
|
33929
33843
|
if (d[h].src === l) return d[h];
|
|
@@ -33935,310 +33849,77 @@
|
|
|
33935
33849
|
return t;
|
|
33936
33850
|
});
|
|
33937
33851
|
},
|
|
33938
|
-
905: function _(t, e, r) {
|
|
33939
|
-
|
|
33940
|
-
r.r(e);
|
|
33941
|
-
var n = r(117),
|
|
33942
|
-
i = r.n(n),
|
|
33943
|
-
o = r(488),
|
|
33944
|
-
a = r.n(o),
|
|
33945
|
-
s = a()(i());
|
|
33946
|
-
s.push([t.id, ".vue-slider-dot{position:absolute;-webkit-transition:all 0s;transition:all 0s;z-index:5}.vue-slider-dot:focus{outline:none}.vue-slider-dot-tooltip{position:absolute;visibility:hidden}.vue-slider-dot-hover:hover .vue-slider-dot-tooltip,.vue-slider-dot-tooltip-show{visibility:visible}.vue-slider-dot-tooltip-top{top:-10px;left:50%;-webkit-transform:translate(-50%,-100%);transform:translate(-50%,-100%)}.vue-slider-dot-tooltip-bottom{bottom:-10px;left:50%;-webkit-transform:translate(-50%,100%);transform:translate(-50%,100%)}.vue-slider-dot-tooltip-left{left:-10px;top:50%;-webkit-transform:translate(-100%,-50%);transform:translate(-100%,-50%)}.vue-slider-dot-tooltip-right{right:-10px;top:50%;-webkit-transform:translate(100%,-50%);transform:translate(100%,-50%)}", ""]), e["default"] = s;
|
|
33947
|
-
},
|
|
33948
|
-
121: function _(t, e, r) {
|
|
33949
|
-
|
|
33950
|
-
r.r(e);
|
|
33951
|
-
var n = r(117),
|
|
33952
|
-
i = r.n(n),
|
|
33953
|
-
o = r(488),
|
|
33954
|
-
a = r.n(o),
|
|
33955
|
-
s = a()(i());
|
|
33956
|
-
s.push([t.id, ".vue-slider-marks{position:relative;width:100%;height:100%}.vue-slider-mark{position:absolute;z-index:1}.vue-slider-ltr .vue-slider-mark,.vue-slider-rtl .vue-slider-mark{width:0;height:100%;top:50%}.vue-slider-ltr .vue-slider-mark-step,.vue-slider-rtl .vue-slider-mark-step{top:0}.vue-slider-ltr .vue-slider-mark-label,.vue-slider-rtl .vue-slider-mark-label{top:100%;margin-top:10px}.vue-slider-ltr .vue-slider-mark{-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.vue-slider-ltr .vue-slider-mark-step{left:0}.vue-slider-ltr .vue-slider-mark-label{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.vue-slider-rtl .vue-slider-mark{-webkit-transform:translate(50%,-50%);transform:translate(50%,-50%)}.vue-slider-rtl .vue-slider-mark-step{right:0}.vue-slider-rtl .vue-slider-mark-label{right:50%;-webkit-transform:translateX(50%);transform:translateX(50%)}.vue-slider-btt .vue-slider-mark,.vue-slider-ttb .vue-slider-mark{width:100%;height:0;left:50%}.vue-slider-btt .vue-slider-mark-step,.vue-slider-ttb .vue-slider-mark-step{left:0}.vue-slider-btt .vue-slider-mark-label,.vue-slider-ttb .vue-slider-mark-label{left:100%;margin-left:10px}.vue-slider-btt .vue-slider-mark{-webkit-transform:translate(-50%,50%);transform:translate(-50%,50%)}.vue-slider-btt .vue-slider-mark-step{top:0}.vue-slider-btt .vue-slider-mark-label{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.vue-slider-ttb .vue-slider-mark{-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.vue-slider-ttb .vue-slider-mark-step{bottom:0}.vue-slider-ttb .vue-slider-mark-label{bottom:50%;-webkit-transform:translateY(50%);transform:translateY(50%)}.vue-slider-mark-label,.vue-slider-mark-step{position:absolute}", ""]), e["default"] = s;
|
|
33957
|
-
},
|
|
33958
|
-
207: function _(t, e, r) {
|
|
33959
|
-
|
|
33960
|
-
r.r(e);
|
|
33961
|
-
var n = r(117),
|
|
33962
|
-
i = r.n(n),
|
|
33963
|
-
o = r(488),
|
|
33964
|
-
a = r.n(o),
|
|
33965
|
-
s = a()(i());
|
|
33966
|
-
s.push([t.id, ".vue-slider{position:relative;-webkit-box-sizing:content-box;box-sizing:content-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.vue-slider-rail{position:relative;width:100%;height:100%;-webkit-transition-property:width,height,left,right,top,bottom;transition-property:width,height,left,right,top,bottom}.vue-slider-process{position:absolute;z-index:1}", ""]), e["default"] = s;
|
|
33967
|
-
},
|
|
33968
|
-
488: function _(t) {
|
|
33969
|
-
|
|
33970
|
-
t.exports = function (t) {
|
|
33971
|
-
var e = [];
|
|
33972
|
-
return e.toString = function () {
|
|
33973
|
-
return this.map(function (e) {
|
|
33974
|
-
var r = "",
|
|
33975
|
-
n = "undefined" !== typeof e[5];
|
|
33976
|
-
return e[4] && (r += "@supports (".concat(e[4], ") {")), e[2] && (r += "@media ".concat(e[2], " {")), n && (r += "@layer".concat(e[5].length > 0 ? " ".concat(e[5]) : "", " {")), r += t(e), n && (r += "}"), e[2] && (r += "}"), e[4] && (r += "}"), r;
|
|
33977
|
-
}).join("");
|
|
33978
|
-
}, e.i = function (t, r, n, i, o) {
|
|
33979
|
-
"string" === typeof t && (t = [[null, t, void 0]]);
|
|
33980
|
-
var a = {};
|
|
33981
|
-
if (n) for (var s = 0; s < this.length; s++) {
|
|
33982
|
-
var l = this[s][0];
|
|
33983
|
-
null != l && (a[l] = !0);
|
|
33984
|
-
}
|
|
33985
|
-
for (var u = 0; u < t.length; u++) {
|
|
33986
|
-
var c = [].concat(t[u]);
|
|
33987
|
-
n && a[c[0]] || ("undefined" !== typeof o && ("undefined" === typeof c[5] || (c[1] = "@layer".concat(c[5].length > 0 ? " ".concat(c[5]) : "", " {").concat(c[1], "}")), c[5] = o), r && (c[2] ? (c[1] = "@media ".concat(c[2], " {").concat(c[1], "}"), c[2] = r) : c[2] = r), i && (c[4] ? (c[1] = "@supports (".concat(c[4], ") {").concat(c[1], "}"), c[4] = i) : c[4] = "".concat(i)), e.push(c));
|
|
33988
|
-
}
|
|
33989
|
-
}, e;
|
|
33990
|
-
};
|
|
33991
|
-
},
|
|
33992
|
-
117: function _(t) {
|
|
33993
|
-
|
|
33994
|
-
t.exports = function (t) {
|
|
33995
|
-
return t[1];
|
|
33996
|
-
};
|
|
33997
|
-
},
|
|
33998
33852
|
831: function _(t, e) {
|
|
33999
33853
|
|
|
34000
33854
|
e.Z = function (t, e) {
|
|
34001
|
-
var
|
|
33855
|
+
var n = t.__vccOpts || t;
|
|
34002
33856
|
for (var _iterator = _createForOfIteratorHelperLoose(e), _step; !(_step = _iterator()).done;) {
|
|
34003
33857
|
var _step$value = _step.value,
|
|
34004
|
-
|
|
33858
|
+
_r = _step$value[0],
|
|
34005
33859
|
_i = _step$value[1];
|
|
34006
|
-
|
|
33860
|
+
n[_r] = _i;
|
|
34007
33861
|
}
|
|
34008
|
-
return
|
|
33862
|
+
return n;
|
|
34009
33863
|
};
|
|
34010
33864
|
},
|
|
34011
|
-
466: function _(t, e, r) {
|
|
34012
|
-
var n = r(905);
|
|
34013
|
-
n.__esModule && (n = n["default"]), "string" === typeof n && (n = [[t.id, n, ""]]), n.locals && (t.exports = n.locals);
|
|
34014
|
-
var i = r(959).Z;
|
|
34015
|
-
i("50bc1720", n, !0, {
|
|
34016
|
-
sourceMap: !1,
|
|
34017
|
-
shadowMode: !1
|
|
34018
|
-
});
|
|
34019
|
-
},
|
|
34020
|
-
18: function _(t, e, r) {
|
|
34021
|
-
var n = r(121);
|
|
34022
|
-
n.__esModule && (n = n["default"]), "string" === typeof n && (n = [[t.id, n, ""]]), n.locals && (t.exports = n.locals);
|
|
34023
|
-
var i = r(959).Z;
|
|
34024
|
-
i("10aa5f36", n, !0, {
|
|
34025
|
-
sourceMap: !1,
|
|
34026
|
-
shadowMode: !1
|
|
34027
|
-
});
|
|
34028
|
-
},
|
|
34029
|
-
631: function _(t, e, r) {
|
|
34030
|
-
var n = r(207);
|
|
34031
|
-
n.__esModule && (n = n["default"]), "string" === typeof n && (n = [[t.id, n, ""]]), n.locals && (t.exports = n.locals);
|
|
34032
|
-
var i = r(959).Z;
|
|
34033
|
-
i("1772934e", n, !0, {
|
|
34034
|
-
sourceMap: !1,
|
|
34035
|
-
shadowMode: !1
|
|
34036
|
-
});
|
|
34037
|
-
},
|
|
34038
|
-
959: function _(t, e, r) {
|
|
34039
|
-
|
|
34040
|
-
function n(t, e) {
|
|
34041
|
-
for (var r = [], n = {}, i = 0; i < e.length; i++) {
|
|
34042
|
-
var o = e[i],
|
|
34043
|
-
a = o[0],
|
|
34044
|
-
s = o[1],
|
|
34045
|
-
l = o[2],
|
|
34046
|
-
u = o[3],
|
|
34047
|
-
c = {
|
|
34048
|
-
id: t + ":" + i,
|
|
34049
|
-
css: s,
|
|
34050
|
-
media: l,
|
|
34051
|
-
sourceMap: u
|
|
34052
|
-
};
|
|
34053
|
-
n[a] ? n[a].parts.push(c) : r.push(n[a] = {
|
|
34054
|
-
id: a,
|
|
34055
|
-
parts: [c]
|
|
34056
|
-
});
|
|
34057
|
-
}
|
|
34058
|
-
return r;
|
|
34059
|
-
}
|
|
34060
|
-
r.d(e, {
|
|
34061
|
-
Z: function Z() {
|
|
34062
|
-
return p;
|
|
34063
|
-
}
|
|
34064
|
-
});
|
|
34065
|
-
var i = "undefined" !== typeof document;
|
|
34066
|
-
if ("undefined" !== typeof DEBUG && DEBUG && !i) throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");
|
|
34067
|
-
var o = {},
|
|
34068
|
-
a = i && (document.head || document.getElementsByTagName("head")[0]),
|
|
34069
|
-
s = null,
|
|
34070
|
-
l = 0,
|
|
34071
|
-
u = !1,
|
|
34072
|
-
c = function c() {},
|
|
34073
|
-
d = null,
|
|
34074
|
-
h = "data-vue-ssr-id",
|
|
34075
|
-
f = "undefined" !== typeof navigator && /msie [6-9]\b/.test(navigator.userAgent.toLowerCase());
|
|
34076
|
-
function p(t, e, r, i) {
|
|
34077
|
-
u = r, d = i || {};
|
|
34078
|
-
var a = n(t, e);
|
|
34079
|
-
return m(a), function (e) {
|
|
34080
|
-
for (var r = [], i = 0; i < a.length; i++) {
|
|
34081
|
-
var s = a[i],
|
|
34082
|
-
l = o[s.id];
|
|
34083
|
-
l.refs--, r.push(l);
|
|
34084
|
-
}
|
|
34085
|
-
e ? (a = n(t, e), m(a)) : a = [];
|
|
34086
|
-
for (i = 0; i < r.length; i++) {
|
|
34087
|
-
l = r[i];
|
|
34088
|
-
if (0 === l.refs) {
|
|
34089
|
-
for (var u = 0; u < l.parts.length; u++) l.parts[u]();
|
|
34090
|
-
delete o[l.id];
|
|
34091
|
-
}
|
|
34092
|
-
}
|
|
34093
|
-
};
|
|
34094
|
-
}
|
|
34095
|
-
function m(t) {
|
|
34096
|
-
for (var e = 0; e < t.length; e++) {
|
|
34097
|
-
var r = t[e],
|
|
34098
|
-
n = o[r.id];
|
|
34099
|
-
if (n) {
|
|
34100
|
-
n.refs++;
|
|
34101
|
-
for (var i = 0; i < n.parts.length; i++) n.parts[i](r.parts[i]);
|
|
34102
|
-
for (; i < r.parts.length; i++) n.parts.push(y(r.parts[i]));
|
|
34103
|
-
n.parts.length > r.parts.length && (n.parts.length = r.parts.length);
|
|
34104
|
-
} else {
|
|
34105
|
-
var a = [];
|
|
34106
|
-
for (i = 0; i < r.parts.length; i++) a.push(y(r.parts[i]));
|
|
34107
|
-
o[r.id] = {
|
|
34108
|
-
id: r.id,
|
|
34109
|
-
refs: 1,
|
|
34110
|
-
parts: a
|
|
34111
|
-
};
|
|
34112
|
-
}
|
|
34113
|
-
}
|
|
34114
|
-
}
|
|
34115
|
-
function v() {
|
|
34116
|
-
var t = document.createElement("style");
|
|
34117
|
-
return t.type = "text/css", a.appendChild(t), t;
|
|
34118
|
-
}
|
|
34119
|
-
function y(t) {
|
|
34120
|
-
var e,
|
|
34121
|
-
r,
|
|
34122
|
-
n = document.querySelector("style[" + h + '~="' + t.id + '"]');
|
|
34123
|
-
if (n) {
|
|
34124
|
-
if (u) return c;
|
|
34125
|
-
n.parentNode.removeChild(n);
|
|
34126
|
-
}
|
|
34127
|
-
if (f) {
|
|
34128
|
-
var i = l++;
|
|
34129
|
-
n = s || (s = v()), e = g.bind(null, n, i, !1), r = g.bind(null, n, i, !0);
|
|
34130
|
-
} else n = v(), e = k.bind(null, n), r = function r() {
|
|
34131
|
-
n.parentNode.removeChild(n);
|
|
34132
|
-
};
|
|
34133
|
-
return e(t), function (n) {
|
|
34134
|
-
if (n) {
|
|
34135
|
-
if (n.css === t.css && n.media === t.media && n.sourceMap === t.sourceMap) return;
|
|
34136
|
-
e(t = n);
|
|
34137
|
-
} else r();
|
|
34138
|
-
};
|
|
34139
|
-
}
|
|
34140
|
-
var b = function () {
|
|
34141
|
-
var t = [];
|
|
34142
|
-
return function (e, r) {
|
|
34143
|
-
return t[e] = r, t.filter(Boolean).join("\n");
|
|
34144
|
-
};
|
|
34145
|
-
}();
|
|
34146
|
-
function g(t, e, r, n) {
|
|
34147
|
-
var i = r ? "" : n.css;
|
|
34148
|
-
if (t.styleSheet) t.styleSheet.cssText = b(e, i);else {
|
|
34149
|
-
var o = document.createTextNode(i),
|
|
34150
|
-
a = t.childNodes;
|
|
34151
|
-
a[e] && t.removeChild(a[e]), a.length ? t.insertBefore(o, a[e]) : t.appendChild(o);
|
|
34152
|
-
}
|
|
34153
|
-
}
|
|
34154
|
-
function k(t, e) {
|
|
34155
|
-
var r = e.css,
|
|
34156
|
-
n = e.media,
|
|
34157
|
-
i = e.sourceMap;
|
|
34158
|
-
if (n && t.setAttribute("media", n), d.ssrId && t.setAttribute(h, e.id), i && (r += "\n/*# sourceURL=" + i.sources[0] + " */", r += "\n/*# sourceMappingURL=data:application/json;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(i)))) + " */"), t.styleSheet) t.styleSheet.cssText = r;else {
|
|
34159
|
-
while (t.firstChild) t.removeChild(t.firstChild);
|
|
34160
|
-
t.appendChild(document.createTextNode(r));
|
|
34161
|
-
}
|
|
34162
|
-
}
|
|
34163
|
-
},
|
|
34164
33865
|
927: function _(e) {
|
|
34165
33866
|
|
|
34166
33867
|
e.exports = t;
|
|
34167
33868
|
}
|
|
34168
33869
|
},
|
|
34169
|
-
|
|
34170
|
-
function
|
|
34171
|
-
var i =
|
|
33870
|
+
n = {};
|
|
33871
|
+
function r(t) {
|
|
33872
|
+
var i = n[t];
|
|
34172
33873
|
if (void 0 !== i) return i.exports;
|
|
34173
|
-
var o =
|
|
34174
|
-
id: t,
|
|
33874
|
+
var o = n[t] = {
|
|
34175
33875
|
exports: {}
|
|
34176
33876
|
};
|
|
34177
|
-
return e[t].call(o.exports, o, o.exports,
|
|
33877
|
+
return e[t].call(o.exports, o, o.exports, r), o.exports;
|
|
34178
33878
|
}
|
|
34179
33879
|
!function () {
|
|
34180
|
-
|
|
34181
|
-
var e
|
|
34182
|
-
return t["default"];
|
|
34183
|
-
} : function () {
|
|
34184
|
-
return t;
|
|
34185
|
-
};
|
|
34186
|
-
return n.d(e, {
|
|
34187
|
-
a: e
|
|
34188
|
-
}), e;
|
|
34189
|
-
};
|
|
34190
|
-
}(), function () {
|
|
34191
|
-
n.d = function (t, e) {
|
|
34192
|
-
for (var r in e) n.o(e, r) && !n.o(t, r) && Object.defineProperty(t, r, {
|
|
33880
|
+
r.d = function (t, e) {
|
|
33881
|
+
for (var n in e) r.o(e, n) && !r.o(t, n) && Object.defineProperty(t, n, {
|
|
34193
33882
|
enumerable: !0,
|
|
34194
|
-
get: e[
|
|
33883
|
+
get: e[n]
|
|
34195
33884
|
});
|
|
34196
33885
|
};
|
|
34197
33886
|
}(), function () {
|
|
34198
|
-
|
|
33887
|
+
r.o = function (t, e) {
|
|
34199
33888
|
return Object.prototype.hasOwnProperty.call(t, e);
|
|
34200
33889
|
};
|
|
34201
33890
|
}(), function () {
|
|
34202
|
-
|
|
34203
|
-
"undefined" !== typeof Symbol && Symbol.toStringTag && Object.defineProperty(t, Symbol.toStringTag, {
|
|
34204
|
-
value: "Module"
|
|
34205
|
-
}), Object.defineProperty(t, "__esModule", {
|
|
34206
|
-
value: !0
|
|
34207
|
-
});
|
|
34208
|
-
};
|
|
34209
|
-
}(), function () {
|
|
34210
|
-
n.p = "";
|
|
33891
|
+
r.p = "";
|
|
34211
33892
|
}();
|
|
34212
33893
|
var i = {};
|
|
34213
33894
|
return function () {
|
|
34214
33895
|
|
|
34215
|
-
if (
|
|
33896
|
+
if (r.d(i, {
|
|
34216
33897
|
"default": function _default() {
|
|
34217
33898
|
return St;
|
|
34218
33899
|
}
|
|
34219
33900
|
}), "undefined" !== typeof window) {
|
|
34220
33901
|
var t = window.document.currentScript,
|
|
34221
|
-
e =
|
|
33902
|
+
e = r(388);
|
|
34222
33903
|
t = e(), "currentScript" in document || Object.defineProperty(document, "currentScript", {
|
|
34223
33904
|
get: e
|
|
34224
33905
|
});
|
|
34225
|
-
var
|
|
34226
|
-
|
|
33906
|
+
var n = t && t.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);
|
|
33907
|
+
n && (r.p = n[1]);
|
|
34227
33908
|
}
|
|
34228
|
-
var o =
|
|
34229
|
-
function a(t, e,
|
|
33909
|
+
var o = r(927);
|
|
33910
|
+
function a(t, e, n) {
|
|
34230
33911
|
return e in t ? Object.defineProperty(t, e, {
|
|
34231
|
-
value:
|
|
33912
|
+
value: n,
|
|
34232
33913
|
enumerable: !0,
|
|
34233
33914
|
configurable: !0,
|
|
34234
33915
|
writable: !0
|
|
34235
|
-
}) : t[e] =
|
|
33916
|
+
}) : t[e] = n, t;
|
|
34236
33917
|
}
|
|
34237
33918
|
var s = {
|
|
34238
33919
|
key: 0,
|
|
34239
33920
|
"class": "vue-slider-marks"
|
|
34240
33921
|
};
|
|
34241
|
-
function l(t, e,
|
|
33922
|
+
function l(t, e, n, r, i, l) {
|
|
34242
33923
|
var u = (0, o.resolveComponent)("vue-slider-mark"),
|
|
34243
33924
|
c = (0, o.resolveComponent)("vue-slider-dot");
|
|
34244
33925
|
return (0, o.openBlock)(), (0, o.createElementBlock)("div", (0, o.mergeProps)({
|
|
@@ -34257,22 +33938,22 @@
|
|
|
34257
33938
|
}, t.$attrs), [(0, o.createElementVNode)("div", {
|
|
34258
33939
|
"class": "vue-slider-rail",
|
|
34259
33940
|
style: (0, o.normalizeStyle)(t.railStyle)
|
|
34260
|
-
}, [((0, o.openBlock)(!0), (0, o.createElementBlock)(o.Fragment, null, (0, o.renderList)(t.processArray, function (e,
|
|
33941
|
+
}, [((0, o.openBlock)(!0), (0, o.createElementBlock)(o.Fragment, null, (0, o.renderList)(t.processArray, function (e, n) {
|
|
34261
33942
|
return (0, o.renderSlot)(t.$slots, "process", (0, o.normalizeProps)((0, o.guardReactiveProps)(e)), function () {
|
|
34262
33943
|
return [((0, o.openBlock)(), (0, o.createElementBlock)("div", {
|
|
34263
33944
|
"class": "vue-slider-process",
|
|
34264
|
-
key: "process-".concat(
|
|
33945
|
+
key: "process-".concat(n),
|
|
34265
33946
|
style: (0, o.normalizeStyle)(e.style)
|
|
34266
33947
|
}, null, 4))];
|
|
34267
33948
|
});
|
|
34268
|
-
}), 256)), t.sliderMarks && t.control ? ((0, o.openBlock)(), (0, o.createElementBlock)("div", s, [((0, o.openBlock)(!0), (0, o.createElementBlock)(o.Fragment, null, (0, o.renderList)(t.control.markList, function (
|
|
34269
|
-
return (0, o.renderSlot)(t.$slots, "mark", (0, o.normalizeProps)((0, o.guardReactiveProps)(
|
|
33949
|
+
}), 256)), t.sliderMarks && t.control ? ((0, o.openBlock)(), (0, o.createElementBlock)("div", s, [((0, o.openBlock)(!0), (0, o.createElementBlock)(o.Fragment, null, (0, o.renderList)(t.control.markList, function (n, r) {
|
|
33950
|
+
return (0, o.renderSlot)(t.$slots, "mark", (0, o.normalizeProps)((0, o.guardReactiveProps)(n)), function () {
|
|
34270
33951
|
var i;
|
|
34271
33952
|
return [((0, o.openBlock)(), (0, o.createBlock)(u, {
|
|
34272
|
-
key: "mark-".concat(
|
|
34273
|
-
mark:
|
|
33953
|
+
key: "mark-".concat(r),
|
|
33954
|
+
mark: n,
|
|
34274
33955
|
hideLabel: t.hideLabel,
|
|
34275
|
-
style: (0, o.normalizeStyle)((i = {}, a(i, t.isHorizontal ? "height" : "width", "100%"), a(i, t.isHorizontal ? "width" : "height", t.tailSize), a(i, t.mainDirection, "".concat(
|
|
33956
|
+
style: (0, o.normalizeStyle)((i = {}, a(i, t.isHorizontal ? "height" : "width", "100%"), a(i, t.isHorizontal ? "width" : "height", t.tailSize), a(i, t.mainDirection, "".concat(n.pos, "%")), i)),
|
|
34276
33957
|
stepStyle: t.stepStyle,
|
|
34277
33958
|
stepActiveStyle: t.stepActiveStyle,
|
|
34278
33959
|
labelStyle: t.labelStyle,
|
|
@@ -34282,50 +33963,50 @@
|
|
|
34282
33963
|
})
|
|
34283
33964
|
}, {
|
|
34284
33965
|
step: (0, o.withCtx)(function () {
|
|
34285
|
-
return [(0, o.renderSlot)(t.$slots, "step", (0, o.normalizeProps)((0, o.guardReactiveProps)(
|
|
33966
|
+
return [(0, o.renderSlot)(t.$slots, "step", (0, o.normalizeProps)((0, o.guardReactiveProps)(n)))];
|
|
34286
33967
|
}),
|
|
34287
33968
|
label: (0, o.withCtx)(function () {
|
|
34288
|
-
return [(0, o.renderSlot)(t.$slots, "label", (0, o.normalizeProps)((0, o.guardReactiveProps)(
|
|
33969
|
+
return [(0, o.renderSlot)(t.$slots, "label", (0, o.normalizeProps)((0, o.guardReactiveProps)(n)))];
|
|
34289
33970
|
}),
|
|
34290
33971
|
_: 2
|
|
34291
33972
|
}, 1032, ["mark", "hideLabel", "style", "stepStyle", "stepActiveStyle", "labelStyle", "labelActiveStyle"]))];
|
|
34292
33973
|
});
|
|
34293
|
-
}), 256))])) : (0, o.createCommentVNode)("", !0), ((0, o.openBlock)(!0), (0, o.createElementBlock)(o.Fragment, null, (0, o.renderList)(t.dots, function (
|
|
33974
|
+
}), 256))])) : (0, o.createCommentVNode)("", !0), ((0, o.openBlock)(!0), (0, o.createElementBlock)(o.Fragment, null, (0, o.renderList)(t.dots, function (n, r) {
|
|
34294
33975
|
var i;
|
|
34295
33976
|
return (0, o.openBlock)(), (0, o.createBlock)(c, (0, o.mergeProps)({
|
|
34296
33977
|
ref_for: !0,
|
|
34297
|
-
ref: "dot-".concat(
|
|
34298
|
-
key: "dot-".concat(
|
|
34299
|
-
value:
|
|
34300
|
-
disabled:
|
|
34301
|
-
focus:
|
|
34302
|
-
"dot-style": [
|
|
34303
|
-
tooltip:
|
|
34304
|
-
"tooltip-style": [t.tooltipStyle,
|
|
34305
|
-
"tooltip-formatter": Array.isArray(t.sliderTooltipFormatter) ? t.sliderTooltipFormatter[
|
|
34306
|
-
"tooltip-placement": t.tooltipDirections[
|
|
34307
|
-
style: [t.dotBaseStyle, (i = {}, a(i, t.mainDirection, "".concat(
|
|
33978
|
+
ref: "dot-".concat(r),
|
|
33979
|
+
key: "dot-".concat(r),
|
|
33980
|
+
value: n.value,
|
|
33981
|
+
disabled: n.disabled,
|
|
33982
|
+
focus: n.focus,
|
|
33983
|
+
"dot-style": [n.style, n.disabled ? n.disabledStyle : null, n.focus ? n.focusStyle : null],
|
|
33984
|
+
tooltip: n.tooltip || t.tooltip,
|
|
33985
|
+
"tooltip-style": [t.tooltipStyle, n.tooltipStyle, n.disabled ? n.tooltipDisabledStyle : null, n.focus ? n.tooltipFocusStyle : null],
|
|
33986
|
+
"tooltip-formatter": Array.isArray(t.sliderTooltipFormatter) ? t.sliderTooltipFormatter[r] : t.sliderTooltipFormatter,
|
|
33987
|
+
"tooltip-placement": t.tooltipDirections[r],
|
|
33988
|
+
style: [t.dotBaseStyle, (i = {}, a(i, t.mainDirection, "".concat(n.pos, "%")), a(i, "transition", "".concat(t.mainDirection, " ").concat(t.animateTime, "s")), i)],
|
|
34308
33989
|
onDragStart: function onDragStart() {
|
|
34309
|
-
return t.dragStart(
|
|
33990
|
+
return t.dragStart(r);
|
|
34310
33991
|
},
|
|
34311
33992
|
role: "slider",
|
|
34312
|
-
"aria-valuenow":
|
|
33993
|
+
"aria-valuenow": n.value,
|
|
34313
33994
|
"aria-valuemin": t.min,
|
|
34314
33995
|
"aria-valuemax": t.max,
|
|
34315
33996
|
"aria-orientation": t.isHorizontal ? "horizontal" : "vertical",
|
|
34316
33997
|
tabindex: "0",
|
|
34317
33998
|
onFocus: function onFocus() {
|
|
34318
|
-
return t.focus(
|
|
33999
|
+
return t.focus(n, r);
|
|
34319
34000
|
},
|
|
34320
34001
|
onBlur: e[1] || (e[1] = function () {
|
|
34321
34002
|
return t.blur();
|
|
34322
34003
|
})
|
|
34323
34004
|
}, t.dotAttrs), {
|
|
34324
34005
|
dot: (0, o.withCtx)(function () {
|
|
34325
|
-
return [(0, o.renderSlot)(t.$slots, "dot", (0, o.normalizeProps)((0, o.guardReactiveProps)(
|
|
34006
|
+
return [(0, o.renderSlot)(t.$slots, "dot", (0, o.normalizeProps)((0, o.guardReactiveProps)(n)))];
|
|
34326
34007
|
}),
|
|
34327
34008
|
tooltip: (0, o.withCtx)(function () {
|
|
34328
|
-
return [(0, o.renderSlot)(t.$slots, "tooltip", (0, o.normalizeProps)((0, o.guardReactiveProps)(
|
|
34009
|
+
return [(0, o.renderSlot)(t.$slots, "tooltip", (0, o.normalizeProps)((0, o.guardReactiveProps)(n)))];
|
|
34329
34010
|
}),
|
|
34330
34011
|
_: 2
|
|
34331
34012
|
}, 1040, ["value", "disabled", "focus", "dot-style", "tooltip", "tooltip-style", "tooltip-formatter", "tooltip-placement", "style", "onDragStart", "aria-valuenow", "aria-valuemin", "aria-valuemax", "aria-orientation", "onFocus"]);
|
|
@@ -34337,7 +34018,7 @@
|
|
|
34337
34018
|
c = {
|
|
34338
34019
|
"class": "vue-slider-dot-tooltip-text"
|
|
34339
34020
|
};
|
|
34340
|
-
function d(t, e,
|
|
34021
|
+
function d(t, e, n, r, i, a) {
|
|
34341
34022
|
var s;
|
|
34342
34023
|
return (0, o.openBlock)(), (0, o.createElementBlock)("div", {
|
|
34343
34024
|
ref: "dot",
|
|
@@ -34364,7 +34045,6 @@
|
|
|
34364
34045
|
}, [(0, o.createElementVNode)("span", c, (0, o.toDisplayString)(t.tooltipValue), 1)], 6)];
|
|
34365
34046
|
})], 2)) : (0, o.createCommentVNode)("", !0)], 42, u);
|
|
34366
34047
|
}
|
|
34367
|
-
n(466);
|
|
34368
34048
|
var h = (0, o.defineComponent)({
|
|
34369
34049
|
name: "VueSliderDot",
|
|
34370
34050
|
emits: ["drag-start"],
|
|
@@ -34451,10 +34131,10 @@
|
|
|
34451
34131
|
}
|
|
34452
34132
|
}
|
|
34453
34133
|
}),
|
|
34454
|
-
f =
|
|
34134
|
+
f = r(831);
|
|
34455
34135
|
var p = (0, f.Z)(h, [["render", d]]);
|
|
34456
34136
|
var m = p;
|
|
34457
|
-
function
|
|
34137
|
+
function y(t, e, n, r, i, a) {
|
|
34458
34138
|
return (0, o.openBlock)(), (0, o.createElementBlock)("div", {
|
|
34459
34139
|
"class": (0, o.normalizeClass)(t.marksClasses)
|
|
34460
34140
|
}, [(0, o.renderSlot)(t.$slots, "step", {}, function () {
|
|
@@ -34474,8 +34154,7 @@
|
|
|
34474
34154
|
}, (0, o.toDisplayString)(t.mark.label), 7)];
|
|
34475
34155
|
})], 2);
|
|
34476
34156
|
}
|
|
34477
|
-
|
|
34478
|
-
var y = (0, o.defineComponent)({
|
|
34157
|
+
var v = (0, o.defineComponent)({
|
|
34479
34158
|
name: "VueSliderMark",
|
|
34480
34159
|
emits: ["press-label"],
|
|
34481
34160
|
props: {
|
|
@@ -34534,24 +34213,24 @@
|
|
|
34534
34213
|
}
|
|
34535
34214
|
}
|
|
34536
34215
|
});
|
|
34537
|
-
var
|
|
34538
|
-
var
|
|
34539
|
-
k =
|
|
34216
|
+
var g = (0, f.Z)(v, [["render", y]]);
|
|
34217
|
+
var b,
|
|
34218
|
+
k = g,
|
|
34540
34219
|
S = function S(t) {
|
|
34541
34220
|
return "number" === typeof t ? "".concat(t, "px") : t;
|
|
34542
34221
|
},
|
|
34543
34222
|
x = function x(t) {
|
|
34544
34223
|
var e = document.documentElement,
|
|
34545
|
-
|
|
34546
|
-
|
|
34224
|
+
n = document.body,
|
|
34225
|
+
r = t.getBoundingClientRect(),
|
|
34547
34226
|
i = {
|
|
34548
|
-
y:
|
|
34549
|
-
x:
|
|
34227
|
+
y: r.top + (window.pageYOffset || e.scrollTop) - (e.clientTop || n.clientTop || 0),
|
|
34228
|
+
x: r.left + (window.pageXOffset || e.scrollLeft) - (e.clientLeft || n.clientLeft || 0)
|
|
34550
34229
|
};
|
|
34551
34230
|
return i;
|
|
34552
34231
|
},
|
|
34553
|
-
P = function P(t, e,
|
|
34554
|
-
var
|
|
34232
|
+
P = function P(t, e, n) {
|
|
34233
|
+
var r = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : 1,
|
|
34555
34234
|
i = "targetTouches" in t ? t.targetTouches[0] : t,
|
|
34556
34235
|
o = x(e),
|
|
34557
34236
|
a = {
|
|
@@ -34559,49 +34238,49 @@
|
|
|
34559
34238
|
y: i.pageY - o.y
|
|
34560
34239
|
};
|
|
34561
34240
|
return {
|
|
34562
|
-
x:
|
|
34563
|
-
y:
|
|
34241
|
+
x: n ? e.offsetWidth * r - a.x : a.x,
|
|
34242
|
+
y: n ? e.offsetHeight * r - a.y : a.y
|
|
34564
34243
|
};
|
|
34565
34244
|
};
|
|
34566
34245
|
(function (t) {
|
|
34567
34246
|
t[t["PAGE_UP"] = 33] = "PAGE_UP", t[t["PAGE_DOWN"] = 34] = "PAGE_DOWN", t[t["END"] = 35] = "END", t[t["HOME"] = 36] = "HOME", t[t["LEFT"] = 37] = "LEFT", t[t["UP"] = 38] = "UP", t[t["RIGHT"] = 39] = "RIGHT", t[t["DOWN"] = 40] = "DOWN";
|
|
34568
|
-
})(
|
|
34569
|
-
var
|
|
34247
|
+
})(b || (b = {}));
|
|
34248
|
+
var O = function O(t, e) {
|
|
34570
34249
|
if (e.hook) {
|
|
34571
|
-
var
|
|
34572
|
-
if ("function" === typeof
|
|
34573
|
-
if (!
|
|
34250
|
+
var n = e.hook(t);
|
|
34251
|
+
if ("function" === typeof n) return n;
|
|
34252
|
+
if (!n) return null;
|
|
34574
34253
|
}
|
|
34575
34254
|
switch (t.keyCode) {
|
|
34576
|
-
case
|
|
34255
|
+
case b.UP:
|
|
34577
34256
|
return function (t) {
|
|
34578
34257
|
return "ttb" === e.direction ? t - 1 : t + 1;
|
|
34579
34258
|
};
|
|
34580
|
-
case
|
|
34259
|
+
case b.RIGHT:
|
|
34581
34260
|
return function (t) {
|
|
34582
34261
|
return "rtl" === e.direction ? t - 1 : t + 1;
|
|
34583
34262
|
};
|
|
34584
|
-
case
|
|
34263
|
+
case b.DOWN:
|
|
34585
34264
|
return function (t) {
|
|
34586
34265
|
return "ttb" === e.direction ? t + 1 : t - 1;
|
|
34587
34266
|
};
|
|
34588
|
-
case
|
|
34267
|
+
case b.LEFT:
|
|
34589
34268
|
return function (t) {
|
|
34590
34269
|
return "rtl" === e.direction ? t + 1 : t - 1;
|
|
34591
34270
|
};
|
|
34592
|
-
case
|
|
34271
|
+
case b.END:
|
|
34593
34272
|
return function () {
|
|
34594
34273
|
return e.max;
|
|
34595
34274
|
};
|
|
34596
|
-
case
|
|
34275
|
+
case b.HOME:
|
|
34597
34276
|
return function () {
|
|
34598
34277
|
return e.min;
|
|
34599
34278
|
};
|
|
34600
|
-
case
|
|
34279
|
+
case b.PAGE_UP:
|
|
34601
34280
|
return function (t) {
|
|
34602
34281
|
return t + 10;
|
|
34603
34282
|
};
|
|
34604
|
-
case
|
|
34283
|
+
case b.PAGE_DOWN:
|
|
34605
34284
|
return function (t) {
|
|
34606
34285
|
return t - 10;
|
|
34607
34286
|
};
|
|
@@ -34609,56 +34288,56 @@
|
|
|
34609
34288
|
return null;
|
|
34610
34289
|
}
|
|
34611
34290
|
};
|
|
34612
|
-
function
|
|
34291
|
+
function D(t, e) {
|
|
34613
34292
|
if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function");
|
|
34614
34293
|
}
|
|
34615
|
-
function
|
|
34616
|
-
for (var
|
|
34617
|
-
var
|
|
34618
|
-
|
|
34294
|
+
function E(t, e) {
|
|
34295
|
+
for (var n = 0; n < e.length; n++) {
|
|
34296
|
+
var r = e[n];
|
|
34297
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r);
|
|
34619
34298
|
}
|
|
34620
34299
|
}
|
|
34621
|
-
function
|
|
34622
|
-
return e &&
|
|
34300
|
+
function R(t, e, n) {
|
|
34301
|
+
return e && E(t.prototype, e), n && E(t, n), Object.defineProperty(t, "prototype", {
|
|
34623
34302
|
writable: !1
|
|
34624
34303
|
}), t;
|
|
34625
34304
|
}
|
|
34626
|
-
function
|
|
34305
|
+
function A(t, e, n) {
|
|
34627
34306
|
return e in t ? Object.defineProperty(t, e, {
|
|
34628
|
-
value:
|
|
34307
|
+
value: n,
|
|
34629
34308
|
enumerable: !0,
|
|
34630
34309
|
configurable: !0,
|
|
34631
34310
|
writable: !0
|
|
34632
|
-
}) : t[e] =
|
|
34311
|
+
}) : t[e] = n, t;
|
|
34633
34312
|
}
|
|
34634
|
-
var
|
|
34313
|
+
var w,
|
|
34635
34314
|
V,
|
|
34636
34315
|
j = function () {
|
|
34637
34316
|
function t(e) {
|
|
34638
|
-
|
|
34317
|
+
D(this, t), A(this, "num", void 0), this.num = e;
|
|
34639
34318
|
}
|
|
34640
|
-
return
|
|
34319
|
+
return R(t, [{
|
|
34641
34320
|
key: "decimal",
|
|
34642
34321
|
value: function value(t, e) {
|
|
34643
|
-
var
|
|
34644
|
-
|
|
34322
|
+
var n = this.num,
|
|
34323
|
+
r = this.getDecimalLen(n),
|
|
34645
34324
|
i = this.getDecimalLen(t),
|
|
34646
34325
|
o = 0;
|
|
34647
34326
|
switch (e) {
|
|
34648
34327
|
case "+":
|
|
34649
|
-
o = this.getExponent(
|
|
34328
|
+
o = this.getExponent(r, i), this.num = (this.safeRoundUp(n, o) + this.safeRoundUp(t, o)) / o;
|
|
34650
34329
|
break;
|
|
34651
34330
|
case "-":
|
|
34652
|
-
o = this.getExponent(
|
|
34331
|
+
o = this.getExponent(r, i), this.num = (this.safeRoundUp(n, o) - this.safeRoundUp(t, o)) / o;
|
|
34653
34332
|
break;
|
|
34654
34333
|
case "*":
|
|
34655
|
-
this.num = this.safeRoundUp(this.safeRoundUp(
|
|
34334
|
+
this.num = this.safeRoundUp(this.safeRoundUp(n, this.getExponent(r)), this.safeRoundUp(t, this.getExponent(i))) / this.getExponent(r + i);
|
|
34656
34335
|
break;
|
|
34657
34336
|
case "/":
|
|
34658
|
-
o = this.getExponent(
|
|
34337
|
+
o = this.getExponent(r, i), this.num = this.safeRoundUp(n, o) / this.safeRoundUp(t, o);
|
|
34659
34338
|
break;
|
|
34660
34339
|
case "%":
|
|
34661
|
-
o = this.getExponent(
|
|
34340
|
+
o = this.getExponent(r, i), this.num = this.safeRoundUp(n, o) % this.safeRoundUp(t, o) / o;
|
|
34662
34341
|
break;
|
|
34663
34342
|
}
|
|
34664
34343
|
return this;
|
|
@@ -34711,27 +34390,27 @@
|
|
|
34711
34390
|
}
|
|
34712
34391
|
}]), t;
|
|
34713
34392
|
}();
|
|
34714
|
-
function
|
|
34715
|
-
return
|
|
34393
|
+
function B(t, e) {
|
|
34394
|
+
return I(t) || L(t, e) || H(t, e) || C();
|
|
34716
34395
|
}
|
|
34717
|
-
function
|
|
34396
|
+
function C() {
|
|
34718
34397
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
34719
34398
|
}
|
|
34720
|
-
function
|
|
34721
|
-
var
|
|
34722
|
-
if (null !=
|
|
34723
|
-
var
|
|
34399
|
+
function L(t, e) {
|
|
34400
|
+
var n = null == t ? null : "undefined" !== typeof Symbol && t[Symbol.iterator] || t["@@iterator"];
|
|
34401
|
+
if (null != n) {
|
|
34402
|
+
var r,
|
|
34724
34403
|
i,
|
|
34725
34404
|
o = [],
|
|
34726
34405
|
a = !0,
|
|
34727
34406
|
s = !1;
|
|
34728
34407
|
try {
|
|
34729
|
-
for (
|
|
34408
|
+
for (n = n.call(t); !(a = (r = n.next()).done); a = !0) if (o.push(r.value), e && o.length === e) break;
|
|
34730
34409
|
} catch (l) {
|
|
34731
34410
|
s = !0, i = l;
|
|
34732
34411
|
} finally {
|
|
34733
34412
|
try {
|
|
34734
|
-
a || null ==
|
|
34413
|
+
a || null == n["return"] || n["return"]();
|
|
34735
34414
|
} finally {
|
|
34736
34415
|
if (s) throw i;
|
|
34737
34416
|
}
|
|
@@ -34739,31 +34418,31 @@
|
|
|
34739
34418
|
return o;
|
|
34740
34419
|
}
|
|
34741
34420
|
}
|
|
34742
|
-
function
|
|
34421
|
+
function I(t) {
|
|
34743
34422
|
if (Array.isArray(t)) return t;
|
|
34744
34423
|
}
|
|
34745
|
-
function
|
|
34746
|
-
var
|
|
34424
|
+
function z(t, e) {
|
|
34425
|
+
var n = Object.keys(t);
|
|
34747
34426
|
if (Object.getOwnPropertySymbols) {
|
|
34748
|
-
var
|
|
34749
|
-
e && (
|
|
34427
|
+
var r = Object.getOwnPropertySymbols(t);
|
|
34428
|
+
e && (r = r.filter(function (e) {
|
|
34750
34429
|
return Object.getOwnPropertyDescriptor(t, e).enumerable;
|
|
34751
|
-
})),
|
|
34430
|
+
})), n.push.apply(n, r);
|
|
34752
34431
|
}
|
|
34753
|
-
return
|
|
34432
|
+
return n;
|
|
34754
34433
|
}
|
|
34755
|
-
function
|
|
34434
|
+
function N(t) {
|
|
34756
34435
|
for (var e = 1; e < arguments.length; e++) {
|
|
34757
|
-
var
|
|
34758
|
-
e % 2 ?
|
|
34759
|
-
|
|
34760
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(
|
|
34761
|
-
Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(
|
|
34436
|
+
var n = null != arguments[e] ? arguments[e] : {};
|
|
34437
|
+
e % 2 ? z(Object(n), !0).forEach(function (e) {
|
|
34438
|
+
q(t, e, n[e]);
|
|
34439
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : z(Object(n)).forEach(function (e) {
|
|
34440
|
+
Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(n, e));
|
|
34762
34441
|
});
|
|
34763
34442
|
}
|
|
34764
34443
|
return t;
|
|
34765
34444
|
}
|
|
34766
|
-
function
|
|
34445
|
+
function M(t) {
|
|
34767
34446
|
return $(t) || F(t) || H(t) || T();
|
|
34768
34447
|
}
|
|
34769
34448
|
function T() {
|
|
@@ -34772,8 +34451,8 @@
|
|
|
34772
34451
|
function H(t, e) {
|
|
34773
34452
|
if (t) {
|
|
34774
34453
|
if ("string" === typeof t) return U(t, e);
|
|
34775
|
-
var
|
|
34776
|
-
return "Object" ===
|
|
34454
|
+
var n = Object.prototype.toString.call(t).slice(8, -1);
|
|
34455
|
+
return "Object" === n && t.constructor && (n = t.constructor.name), "Map" === n || "Set" === n ? Array.from(t) : "Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? U(t, e) : void 0;
|
|
34777
34456
|
}
|
|
34778
34457
|
}
|
|
34779
34458
|
function F(t) {
|
|
@@ -34784,43 +34463,43 @@
|
|
|
34784
34463
|
}
|
|
34785
34464
|
function U(t, e) {
|
|
34786
34465
|
(null == e || e > t.length) && (e = t.length);
|
|
34787
|
-
for (var
|
|
34788
|
-
return
|
|
34466
|
+
for (var n = 0, r = new Array(e); n < e; n++) r[n] = t[n];
|
|
34467
|
+
return r;
|
|
34789
34468
|
}
|
|
34790
|
-
function
|
|
34469
|
+
function W(t, e) {
|
|
34791
34470
|
if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function");
|
|
34792
34471
|
}
|
|
34793
|
-
function
|
|
34794
|
-
for (var
|
|
34795
|
-
var
|
|
34796
|
-
|
|
34472
|
+
function _(t, e) {
|
|
34473
|
+
for (var n = 0; n < e.length; n++) {
|
|
34474
|
+
var r = e[n];
|
|
34475
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r);
|
|
34797
34476
|
}
|
|
34798
34477
|
}
|
|
34799
|
-
function G(t, e,
|
|
34800
|
-
return e &&
|
|
34478
|
+
function G(t, e, n) {
|
|
34479
|
+
return e && _(t.prototype, e), n && _(t, n), Object.defineProperty(t, "prototype", {
|
|
34801
34480
|
writable: !1
|
|
34802
34481
|
}), t;
|
|
34803
34482
|
}
|
|
34804
|
-
function
|
|
34483
|
+
function q(t, e, n) {
|
|
34805
34484
|
return e in t ? Object.defineProperty(t, e, {
|
|
34806
|
-
value:
|
|
34485
|
+
value: n,
|
|
34807
34486
|
enumerable: !0,
|
|
34808
34487
|
configurable: !0,
|
|
34809
34488
|
writable: !0
|
|
34810
|
-
}) : t[e] =
|
|
34489
|
+
}) : t[e] = n, t;
|
|
34811
34490
|
}
|
|
34812
34491
|
(function (t) {
|
|
34813
34492
|
t[t["VALUE"] = 1] = "VALUE", t[t["INTERVAL"] = 2] = "INTERVAL", t[t["MIN"] = 3] = "MIN", t[t["MAX"] = 4] = "MAX", t[t["ORDER"] = 5] = "ORDER";
|
|
34814
34493
|
})(V || (V = {}));
|
|
34815
|
-
var
|
|
34816
|
-
|
|
34494
|
+
var X = (w = {}, q(w, V.VALUE, 'The type of the "value" is illegal'), q(w, V.INTERVAL, 'The prop "interval" is invalid, "(max - min)" must be divisible by "interval"'), q(w, V.MIN, 'The "value" must be greater than or equal to the "min".'), q(w, V.MAX, 'The "value" must be less than or equal to the "max".'), q(w, V.ORDER, 'When "order" is false, the parameters "minRange", "maxRange", "fixed", "enabled" are invalid.'), w),
|
|
34495
|
+
K = function () {
|
|
34817
34496
|
function t(e) {
|
|
34818
|
-
|
|
34497
|
+
W(this, t), q(this, "dotsPos", []), q(this, "dotsValue", []), q(this, "data", void 0), q(this, "enableCross", void 0), q(this, "fixed", void 0), q(this, "max", void 0), q(this, "min", void 0), q(this, "interval", void 0), q(this, "minRange", void 0), q(this, "maxRange", void 0), q(this, "order", void 0), q(this, "marks", void 0), q(this, "included", void 0), q(this, "process", void 0), q(this, "adsorb", void 0), q(this, "dotOptions", void 0), q(this, "onError", void 0), q(this, "cacheRangeDir", {}), this.data = e.data, this.max = e.max, this.min = e.min, this.interval = e.interval, this.order = e.order, this.marks = e.marks, this.included = e.included, this.process = e.process, this.adsorb = e.adsorb, this.dotOptions = e.dotOptions, this.onError = e.onError, this.order ? (this.minRange = e.minRange || 0, this.maxRange = e.maxRange || 0, this.enableCross = e.enableCross, this.fixed = e.fixed) : ((e.minRange || e.maxRange || !e.enableCross || e.fixed) && this.emitError(V.ORDER), this.minRange = 0, this.maxRange = 0, this.enableCross = !0, this.fixed = !1), this.setValue(e.value);
|
|
34819
34498
|
}
|
|
34820
34499
|
return G(t, [{
|
|
34821
34500
|
key: "setValue",
|
|
34822
34501
|
value: function value(t) {
|
|
34823
|
-
this.setDotsValue(Array.isArray(t) ?
|
|
34502
|
+
this.setDotsValue(Array.isArray(t) ? M(t) : [t], !0);
|
|
34824
34503
|
}
|
|
34825
34504
|
}, {
|
|
34826
34505
|
key: "setDotsValue",
|
|
@@ -34831,10 +34510,10 @@
|
|
|
34831
34510
|
key: "setDotsPos",
|
|
34832
34511
|
value: function value(t) {
|
|
34833
34512
|
var e = this,
|
|
34834
|
-
|
|
34513
|
+
n = this.order ? M(t).sort(function (t, e) {
|
|
34835
34514
|
return t - e;
|
|
34836
34515
|
}) : t;
|
|
34837
|
-
this.dotsPos =
|
|
34516
|
+
this.dotsPos = n, this.setDotsValue(n.map(function (t) {
|
|
34838
34517
|
return e.getValueByPos(t);
|
|
34839
34518
|
}), this.adsorb);
|
|
34840
34519
|
}
|
|
@@ -34843,10 +34522,10 @@
|
|
|
34843
34522
|
value: function value(t) {
|
|
34844
34523
|
var e = this.parsePos(t);
|
|
34845
34524
|
if (this.included) {
|
|
34846
|
-
var
|
|
34847
|
-
this.markList.forEach(function (
|
|
34848
|
-
var i = Math.abs(
|
|
34849
|
-
i <
|
|
34525
|
+
var n = 100;
|
|
34526
|
+
this.markList.forEach(function (r) {
|
|
34527
|
+
var i = Math.abs(r.pos - t);
|
|
34528
|
+
i < n && (n = i, e = r.value);
|
|
34850
34529
|
});
|
|
34851
34530
|
}
|
|
34852
34531
|
return e;
|
|
@@ -34864,23 +34543,23 @@
|
|
|
34864
34543
|
get: function get() {
|
|
34865
34544
|
var t = this;
|
|
34866
34545
|
if (!this.marks) return [];
|
|
34867
|
-
var e = function e(_e,
|
|
34868
|
-
var
|
|
34869
|
-
return
|
|
34870
|
-
pos:
|
|
34546
|
+
var e = function e(_e, n) {
|
|
34547
|
+
var r = t.parseValue(_e);
|
|
34548
|
+
return N({
|
|
34549
|
+
pos: r,
|
|
34871
34550
|
value: _e,
|
|
34872
34551
|
label: _e,
|
|
34873
|
-
active: t.isActiveByPos(
|
|
34874
|
-
},
|
|
34552
|
+
active: t.isActiveByPos(r)
|
|
34553
|
+
}, n);
|
|
34875
34554
|
};
|
|
34876
34555
|
return !0 === this.marks ? this.getValues().map(function (t) {
|
|
34877
34556
|
return e(t);
|
|
34878
34557
|
}) : "[object Object]" === Object.prototype.toString.call(this.marks) ? Object.keys(this.marks).sort(function (t, e) {
|
|
34879
34558
|
return +t - +e;
|
|
34880
|
-
}).map(function (
|
|
34881
|
-
var
|
|
34882
|
-
return e(
|
|
34883
|
-
label:
|
|
34559
|
+
}).map(function (n) {
|
|
34560
|
+
var r = t.marks[n];
|
|
34561
|
+
return e(n, "string" !== typeof r ? r : {
|
|
34562
|
+
label: r
|
|
34884
34563
|
});
|
|
34885
34564
|
}) : Array.isArray(this.marks) ? this.marks.map(function (t) {
|
|
34886
34565
|
return e(t);
|
|
@@ -34893,9 +34572,9 @@
|
|
|
34893
34572
|
var e = t.result;
|
|
34894
34573
|
return !!e;
|
|
34895
34574
|
}).map(function (t) {
|
|
34896
|
-
var
|
|
34897
|
-
|
|
34898
|
-
return e(
|
|
34575
|
+
var n = t.value,
|
|
34576
|
+
r = t.result;
|
|
34577
|
+
return e(n, r);
|
|
34899
34578
|
}) : [];
|
|
34900
34579
|
}
|
|
34901
34580
|
}, {
|
|
@@ -34904,7 +34583,7 @@
|
|
|
34904
34583
|
var e = this.dotsPos.map(function (e) {
|
|
34905
34584
|
return Math.abs(e - t);
|
|
34906
34585
|
});
|
|
34907
|
-
return e.indexOf(Math.min.apply(Math,
|
|
34586
|
+
return e.indexOf(Math.min.apply(Math, M(e)));
|
|
34908
34587
|
}
|
|
34909
34588
|
}, {
|
|
34910
34589
|
key: "getIndexByValue",
|
|
@@ -34920,24 +34599,24 @@
|
|
|
34920
34599
|
key: "setDotPos",
|
|
34921
34600
|
value: function value(t, e) {
|
|
34922
34601
|
t = this.getValidPos(t, e).pos;
|
|
34923
|
-
var
|
|
34924
|
-
if (
|
|
34925
|
-
var
|
|
34926
|
-
this.fixed ?
|
|
34927
|
-
return t + (
|
|
34602
|
+
var n = t - this.dotsPos[e];
|
|
34603
|
+
if (n) {
|
|
34604
|
+
var r = new Array(this.dotsPos.length);
|
|
34605
|
+
this.fixed ? r = this.getFixedChangePosArr(n, e) : this.minRange || this.maxRange ? r = this.getLimitRangeChangePosArr(t, n, e) : r[e] = n, this.setDotsPos(this.dotsPos.map(function (t, e) {
|
|
34606
|
+
return t + (r[e] || 0);
|
|
34928
34607
|
}));
|
|
34929
34608
|
}
|
|
34930
34609
|
}
|
|
34931
34610
|
}, {
|
|
34932
34611
|
key: "getFixedChangePosArr",
|
|
34933
34612
|
value: function value(t, e) {
|
|
34934
|
-
var
|
|
34935
|
-
return this.dotsPos.forEach(function (
|
|
34613
|
+
var n = this;
|
|
34614
|
+
return this.dotsPos.forEach(function (r, i) {
|
|
34936
34615
|
if (i !== e) {
|
|
34937
|
-
var o =
|
|
34616
|
+
var o = n.getValidPos(r + t, i),
|
|
34938
34617
|
a = o.pos,
|
|
34939
34618
|
s = o.inRange;
|
|
34940
|
-
s || (t = Math.min(Math.abs(a -
|
|
34619
|
+
s || (t = Math.min(Math.abs(a - r), Math.abs(t)) * (t < 0 ? -1 : 1));
|
|
34941
34620
|
}
|
|
34942
34621
|
}), this.dotsPos.map(function (e) {
|
|
34943
34622
|
return t;
|
|
@@ -34945,10 +34624,10 @@
|
|
|
34945
34624
|
}
|
|
34946
34625
|
}, {
|
|
34947
34626
|
key: "getLimitRangeChangePosArr",
|
|
34948
|
-
value: function value(t, e,
|
|
34949
|
-
var
|
|
34627
|
+
value: function value(t, e, n) {
|
|
34628
|
+
var r = this,
|
|
34950
34629
|
i = [{
|
|
34951
|
-
index:
|
|
34630
|
+
index: n,
|
|
34952
34631
|
changePos: e
|
|
34953
34632
|
}],
|
|
34954
34633
|
o = e;
|
|
@@ -34959,25 +34638,25 @@
|
|
|
34959
34638
|
c = 0;
|
|
34960
34639
|
c = l ? u ? 1 : -1 : u ? -1 : 1;
|
|
34961
34640
|
var d = function d(t, e) {
|
|
34962
|
-
var
|
|
34963
|
-
return l ?
|
|
34641
|
+
var n = Math.abs(t - e);
|
|
34642
|
+
return l ? n < r.minRangeDir : n > r.maxRangeDir;
|
|
34964
34643
|
},
|
|
34965
|
-
h =
|
|
34966
|
-
f =
|
|
34644
|
+
h = n + c,
|
|
34645
|
+
f = r.dotsPos[h],
|
|
34967
34646
|
p = t;
|
|
34968
|
-
while (
|
|
34969
|
-
var m =
|
|
34970
|
-
|
|
34647
|
+
while (r.isPos(f) && d(f, p)) {
|
|
34648
|
+
var m = r.getValidPos(f + o, h),
|
|
34649
|
+
y = m.pos;
|
|
34971
34650
|
i.push({
|
|
34972
34651
|
index: h,
|
|
34973
|
-
changePos:
|
|
34974
|
-
}), h += c, p =
|
|
34652
|
+
changePos: y - f
|
|
34653
|
+
}), h += c, p = y, f = r.dotsPos[h];
|
|
34975
34654
|
}
|
|
34976
34655
|
}), this.dotsPos.map(function (t, e) {
|
|
34977
|
-
var
|
|
34656
|
+
var n = i.filter(function (t) {
|
|
34978
34657
|
return t.index === e;
|
|
34979
34658
|
});
|
|
34980
|
-
return
|
|
34659
|
+
return n.length ? n[0].changePos : 0;
|
|
34981
34660
|
});
|
|
34982
34661
|
}
|
|
34983
34662
|
}, {
|
|
@@ -34988,11 +34667,11 @@
|
|
|
34988
34667
|
}, {
|
|
34989
34668
|
key: "getValidPos",
|
|
34990
34669
|
value: function value(t, e) {
|
|
34991
|
-
var
|
|
34992
|
-
|
|
34993
|
-
return t <
|
|
34670
|
+
var n = this.valuePosRange[e],
|
|
34671
|
+
r = !0;
|
|
34672
|
+
return t < n[0] ? (t = n[0], r = !1) : t > n[1] && (t = n[1], r = !1), {
|
|
34994
34673
|
pos: t,
|
|
34995
|
-
inRange:
|
|
34674
|
+
inRange: r
|
|
34996
34675
|
};
|
|
34997
34676
|
}
|
|
34998
34677
|
}, {
|
|
@@ -35017,10 +34696,10 @@
|
|
|
35017
34696
|
key: "isActiveByPos",
|
|
35018
34697
|
value: function value(t) {
|
|
35019
34698
|
return this.processArray.some(function (e) {
|
|
35020
|
-
var
|
|
35021
|
-
|
|
35022
|
-
i =
|
|
35023
|
-
return t >=
|
|
34699
|
+
var n = B(e, 2),
|
|
34700
|
+
r = n[0],
|
|
34701
|
+
i = n[1];
|
|
34702
|
+
return t >= r && t <= i;
|
|
35024
34703
|
});
|
|
35025
34704
|
}
|
|
35026
34705
|
}, {
|
|
@@ -35038,7 +34717,7 @@
|
|
|
35038
34717
|
}, {
|
|
35039
34718
|
key: "emitError",
|
|
35040
34719
|
value: function value(t) {
|
|
35041
|
-
this.onError && this.onError(t,
|
|
34720
|
+
this.onError && this.onError(t, X[t]);
|
|
35042
34721
|
}
|
|
35043
34722
|
}, {
|
|
35044
34723
|
key: "processArray",
|
|
@@ -35046,7 +34725,7 @@
|
|
|
35046
34725
|
if (this.process) {
|
|
35047
34726
|
if ("function" === typeof this.process) return this.process(this.dotsPos);
|
|
35048
34727
|
if (1 === this.dotsPos.length) return [[0, this.dotsPos[0]]];
|
|
35049
|
-
if (this.dotsPos.length > 1) return [[Math.min.apply(Math,
|
|
34728
|
+
if (this.dotsPos.length > 1) return [[Math.min.apply(Math, M(this.dotsPos)), Math.max.apply(Math, M(this.dotsPos))]];
|
|
35050
34729
|
}
|
|
35051
34730
|
return [];
|
|
35052
34731
|
}
|
|
@@ -35073,20 +34752,20 @@
|
|
|
35073
34752
|
}
|
|
35074
34753
|
}, {
|
|
35075
34754
|
key: "getDotRange",
|
|
35076
|
-
value: function value(t, e,
|
|
35077
|
-
if (!this.dotOptions) return
|
|
35078
|
-
var
|
|
35079
|
-
return
|
|
34755
|
+
value: function value(t, e, n) {
|
|
34756
|
+
if (!this.dotOptions) return n;
|
|
34757
|
+
var r = Array.isArray(this.dotOptions) ? this.dotOptions[t] : this.dotOptions;
|
|
34758
|
+
return r && void 0 !== r[e] ? this.parseValue(r[e]) : n;
|
|
35080
34759
|
}
|
|
35081
34760
|
}, {
|
|
35082
34761
|
key: "valuePosRange",
|
|
35083
34762
|
get: function get() {
|
|
35084
34763
|
var t = this,
|
|
35085
34764
|
e = this.dotsPos,
|
|
35086
|
-
|
|
35087
|
-
return e.forEach(function (
|
|
35088
|
-
|
|
35089
|
-
}),
|
|
34765
|
+
n = [];
|
|
34766
|
+
return e.forEach(function (r, i) {
|
|
34767
|
+
n.push([Math.max(t.minRange ? t.minRangeDir * i : 0, t.enableCross ? 0 : e[i - 1] || 0, t.getDotRange(i, "min", 0)), Math.min(t.minRange ? 100 - t.minRangeDir * (e.length - 1 - i) : 100, t.enableCross ? 100 : e[i + 1] || 100, t.getDotRange(i, "max", 100))]);
|
|
34768
|
+
}), n;
|
|
35090
34769
|
}
|
|
35091
34770
|
}, {
|
|
35092
34771
|
key: "dotsIndex",
|
|
@@ -35098,31 +34777,31 @@
|
|
|
35098
34777
|
}
|
|
35099
34778
|
}]), t;
|
|
35100
34779
|
}();
|
|
35101
|
-
function
|
|
34780
|
+
function Z(t, e) {
|
|
35102
34781
|
if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function");
|
|
35103
34782
|
}
|
|
35104
|
-
function
|
|
35105
|
-
for (var
|
|
35106
|
-
var
|
|
35107
|
-
|
|
34783
|
+
function Y(t, e) {
|
|
34784
|
+
for (var n = 0; n < e.length; n++) {
|
|
34785
|
+
var r = e[n];
|
|
34786
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r);
|
|
35108
34787
|
}
|
|
35109
34788
|
}
|
|
35110
|
-
function J(t, e,
|
|
35111
|
-
return e &&
|
|
34789
|
+
function J(t, e, n) {
|
|
34790
|
+
return e && Y(t.prototype, e), n && Y(t, n), Object.defineProperty(t, "prototype", {
|
|
35112
34791
|
writable: !1
|
|
35113
34792
|
}), t;
|
|
35114
34793
|
}
|
|
35115
|
-
function Q(t, e,
|
|
34794
|
+
function Q(t, e, n) {
|
|
35116
34795
|
return e in t ? Object.defineProperty(t, e, {
|
|
35117
|
-
value:
|
|
34796
|
+
value: n,
|
|
35118
34797
|
enumerable: !0,
|
|
35119
34798
|
configurable: !0,
|
|
35120
34799
|
writable: !0
|
|
35121
|
-
}) : t[e] =
|
|
34800
|
+
}) : t[e] = n, t;
|
|
35122
34801
|
}
|
|
35123
34802
|
var tt = function () {
|
|
35124
34803
|
function t(e) {
|
|
35125
|
-
|
|
34804
|
+
Z(this, t), Q(this, "map", void 0), Q(this, "states", 0), this.map = e;
|
|
35126
34805
|
}
|
|
35127
34806
|
return J(t, [{
|
|
35128
34807
|
key: "add",
|
|
@@ -35146,14 +34825,13 @@
|
|
|
35146
34825
|
}
|
|
35147
34826
|
}]), t;
|
|
35148
34827
|
}();
|
|
35149
|
-
n(631);
|
|
35150
34828
|
function et(t) {
|
|
35151
|
-
return it(t) ||
|
|
34829
|
+
return it(t) || rt(t) || dt(t) || nt();
|
|
35152
34830
|
}
|
|
35153
|
-
function
|
|
34831
|
+
function nt() {
|
|
35154
34832
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
35155
34833
|
}
|
|
35156
|
-
function
|
|
34834
|
+
function rt(t) {
|
|
35157
34835
|
if ("undefined" !== typeof Symbol && null != t[Symbol.iterator] || null != t["@@iterator"]) return Array.from(t);
|
|
35158
34836
|
}
|
|
35159
34837
|
function it(t) {
|
|
@@ -35167,33 +34845,33 @@
|
|
|
35167
34845
|
}, ot(t);
|
|
35168
34846
|
}
|
|
35169
34847
|
function at(t, e) {
|
|
35170
|
-
var
|
|
34848
|
+
var n = Object.keys(t);
|
|
35171
34849
|
if (Object.getOwnPropertySymbols) {
|
|
35172
|
-
var
|
|
35173
|
-
e && (
|
|
34850
|
+
var r = Object.getOwnPropertySymbols(t);
|
|
34851
|
+
e && (r = r.filter(function (e) {
|
|
35174
34852
|
return Object.getOwnPropertyDescriptor(t, e).enumerable;
|
|
35175
|
-
})),
|
|
34853
|
+
})), n.push.apply(n, r);
|
|
35176
34854
|
}
|
|
35177
|
-
return
|
|
34855
|
+
return n;
|
|
35178
34856
|
}
|
|
35179
34857
|
function st(t) {
|
|
35180
34858
|
for (var e = 1; e < arguments.length; e++) {
|
|
35181
|
-
var
|
|
35182
|
-
e % 2 ? at(Object(
|
|
35183
|
-
lt(t, e,
|
|
35184
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(
|
|
35185
|
-
Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(
|
|
34859
|
+
var n = null != arguments[e] ? arguments[e] : {};
|
|
34860
|
+
e % 2 ? at(Object(n), !0).forEach(function (e) {
|
|
34861
|
+
lt(t, e, n[e]);
|
|
34862
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : at(Object(n)).forEach(function (e) {
|
|
34863
|
+
Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(n, e));
|
|
35186
34864
|
});
|
|
35187
34865
|
}
|
|
35188
34866
|
return t;
|
|
35189
34867
|
}
|
|
35190
|
-
function lt(t, e,
|
|
34868
|
+
function lt(t, e, n) {
|
|
35191
34869
|
return e in t ? Object.defineProperty(t, e, {
|
|
35192
|
-
value:
|
|
34870
|
+
value: n,
|
|
35193
34871
|
enumerable: !0,
|
|
35194
34872
|
configurable: !0,
|
|
35195
34873
|
writable: !0
|
|
35196
|
-
}) : t[e] =
|
|
34874
|
+
}) : t[e] = n, t;
|
|
35197
34875
|
}
|
|
35198
34876
|
function ut(t, e) {
|
|
35199
34877
|
return pt(t) || ft(t, e) || dt(t, e) || ct();
|
|
@@ -35204,30 +34882,30 @@
|
|
|
35204
34882
|
function dt(t, e) {
|
|
35205
34883
|
if (t) {
|
|
35206
34884
|
if ("string" === typeof t) return ht(t, e);
|
|
35207
|
-
var
|
|
35208
|
-
return "Object" ===
|
|
34885
|
+
var n = Object.prototype.toString.call(t).slice(8, -1);
|
|
34886
|
+
return "Object" === n && t.constructor && (n = t.constructor.name), "Map" === n || "Set" === n ? Array.from(t) : "Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? ht(t, e) : void 0;
|
|
35209
34887
|
}
|
|
35210
34888
|
}
|
|
35211
34889
|
function ht(t, e) {
|
|
35212
34890
|
(null == e || e > t.length) && (e = t.length);
|
|
35213
|
-
for (var
|
|
35214
|
-
return
|
|
34891
|
+
for (var n = 0, r = new Array(e); n < e; n++) r[n] = t[n];
|
|
34892
|
+
return r;
|
|
35215
34893
|
}
|
|
35216
34894
|
function ft(t, e) {
|
|
35217
|
-
var
|
|
35218
|
-
if (null !=
|
|
35219
|
-
var
|
|
34895
|
+
var n = null == t ? null : "undefined" !== typeof Symbol && t[Symbol.iterator] || t["@@iterator"];
|
|
34896
|
+
if (null != n) {
|
|
34897
|
+
var r,
|
|
35220
34898
|
i,
|
|
35221
34899
|
o = [],
|
|
35222
34900
|
a = !0,
|
|
35223
34901
|
s = !1;
|
|
35224
34902
|
try {
|
|
35225
|
-
for (
|
|
34903
|
+
for (n = n.call(t); !(a = (r = n.next()).done); a = !0) if (o.push(r.value), e && o.length === e) break;
|
|
35226
34904
|
} catch (l) {
|
|
35227
34905
|
s = !0, i = l;
|
|
35228
34906
|
} finally {
|
|
35229
34907
|
try {
|
|
35230
|
-
a || null ==
|
|
34908
|
+
a || null == n["return"] || n["return"]();
|
|
35231
34909
|
} finally {
|
|
35232
34910
|
if (s) throw i;
|
|
35233
34911
|
}
|
|
@@ -35243,8 +34921,8 @@
|
|
|
35243
34921
|
Drag: 2,
|
|
35244
34922
|
Focus: 4
|
|
35245
34923
|
},
|
|
35246
|
-
|
|
35247
|
-
|
|
34924
|
+
yt = 4,
|
|
34925
|
+
vt = (0, o.defineComponent)({
|
|
35248
34926
|
name: "VueSlider",
|
|
35249
34927
|
components: {
|
|
35250
34928
|
VueSliderDot: m,
|
|
@@ -35434,7 +35112,7 @@
|
|
|
35434
35112
|
return "rtl" === this.direction || "btt" === this.direction;
|
|
35435
35113
|
},
|
|
35436
35114
|
tailSize: function tailSize() {
|
|
35437
|
-
return S((this.isHorizontal ? this.height : this.width) ||
|
|
35115
|
+
return S((this.isHorizontal ? this.height : this.width) || yt);
|
|
35438
35116
|
},
|
|
35439
35117
|
containerClasses: function containerClasses() {
|
|
35440
35118
|
return ["vue-slider", ["vue-slider-".concat(this.direction)], {
|
|
@@ -35444,20 +35122,20 @@
|
|
|
35444
35122
|
containerStyles: function containerStyles() {
|
|
35445
35123
|
var t = Array.isArray(this.dotSize) ? this.dotSize : [this.dotSize, this.dotSize],
|
|
35446
35124
|
e = ut(t, 2),
|
|
35447
|
-
|
|
35448
|
-
|
|
35449
|
-
i = this.width ? S(this.width) : this.isHorizontal ? "auto" : S(
|
|
35450
|
-
o = this.height ? S(this.height) : this.isHorizontal ? S(
|
|
35125
|
+
n = e[0],
|
|
35126
|
+
r = e[1],
|
|
35127
|
+
i = this.width ? S(this.width) : this.isHorizontal ? "auto" : S(yt),
|
|
35128
|
+
o = this.height ? S(this.height) : this.isHorizontal ? S(yt) : "auto";
|
|
35451
35129
|
return {
|
|
35452
|
-
padding: this.contained ? "".concat(
|
|
35130
|
+
padding: this.contained ? "".concat(r / 2, "px ").concat(n / 2, "px") : this.isHorizontal ? "".concat(r / 2, "px 0") : "0 ".concat(n / 2, "px"),
|
|
35453
35131
|
width: i,
|
|
35454
35132
|
height: o
|
|
35455
35133
|
};
|
|
35456
35134
|
},
|
|
35457
35135
|
processArray: function processArray() {
|
|
35458
35136
|
var t = this;
|
|
35459
|
-
return this.control.processArray.map(function (e,
|
|
35460
|
-
var
|
|
35137
|
+
return this.control.processArray.map(function (e, n) {
|
|
35138
|
+
var r,
|
|
35461
35139
|
i = ut(e, 3),
|
|
35462
35140
|
o = i[0],
|
|
35463
35141
|
a = i[1],
|
|
@@ -35470,17 +35148,17 @@
|
|
|
35470
35148
|
return {
|
|
35471
35149
|
start: o,
|
|
35472
35150
|
end: a,
|
|
35473
|
-
index:
|
|
35474
|
-
style: st(st((
|
|
35151
|
+
index: n,
|
|
35152
|
+
style: st(st((r = {}, lt(r, t.isHorizontal ? "height" : "width", "100%"), lt(r, t.isHorizontal ? "top" : "left", 0), lt(r, t.mainDirection, "".concat(o, "%")), lt(r, u, "".concat(a - o, "%")), lt(r, "transitionProperty", "".concat(u, ",").concat(t.mainDirection)), lt(r, "transitionDuration", "".concat(t.animateTime, "s")), r), t.processStyle), s)
|
|
35475
35153
|
};
|
|
35476
35154
|
});
|
|
35477
35155
|
},
|
|
35478
35156
|
dotBaseStyle: function dotBaseStyle() {
|
|
35479
35157
|
var t,
|
|
35480
35158
|
e = Array.isArray(this.dotSize) ? this.dotSize : [this.dotSize, this.dotSize],
|
|
35481
|
-
|
|
35482
|
-
|
|
35483
|
-
i =
|
|
35159
|
+
n = ut(e, 2),
|
|
35160
|
+
r = n[0],
|
|
35161
|
+
i = n[1];
|
|
35484
35162
|
return t = this.isHorizontal ? lt({
|
|
35485
35163
|
transform: "translate(".concat(this.isReverse ? "50%" : "-50%", ", -50%)"),
|
|
35486
35164
|
WebkitTransform: "translate(".concat(this.isReverse ? "50%" : "-50%", ", -50%)"),
|
|
@@ -35490,7 +35168,7 @@
|
|
|
35490
35168
|
WebkitTransform: "translate(-50%, ".concat(this.isReverse ? "50%" : "-50%", ")"),
|
|
35491
35169
|
left: "50%"
|
|
35492
35170
|
}, "btt" === this.direction ? "bottom" : "top", "0"), st({
|
|
35493
|
-
width: "".concat(
|
|
35171
|
+
width: "".concat(r, "px"),
|
|
35494
35172
|
height: "".concat(i, "px")
|
|
35495
35173
|
}, t);
|
|
35496
35174
|
},
|
|
@@ -35516,15 +35194,15 @@
|
|
|
35516
35194
|
},
|
|
35517
35195
|
dots: function dots() {
|
|
35518
35196
|
var t = this;
|
|
35519
|
-
return this.control.dotsPos.map(function (e,
|
|
35197
|
+
return this.control.dotsPos.map(function (e, n) {
|
|
35520
35198
|
return st({
|
|
35521
35199
|
pos: e,
|
|
35522
|
-
index:
|
|
35523
|
-
value: t.control.dotsValue[
|
|
35524
|
-
focus: t.states.has(mt.Focus) && t.focusDotIndex ===
|
|
35200
|
+
index: n,
|
|
35201
|
+
value: t.control.dotsValue[n],
|
|
35202
|
+
focus: t.states.has(mt.Focus) && t.focusDotIndex === n,
|
|
35525
35203
|
disabled: t.disabled,
|
|
35526
35204
|
style: t.dotStyle
|
|
35527
|
-
}, (Array.isArray(t.dotOptions) ? t.dotOptions[
|
|
35205
|
+
}, (Array.isArray(t.dotOptions) ? t.dotOptions[n] : t.dotOptions) || {});
|
|
35528
35206
|
});
|
|
35529
35207
|
},
|
|
35530
35208
|
animateTime: function animateTime() {
|
|
@@ -35542,22 +35220,22 @@
|
|
|
35542
35220
|
sliderMarks: function sliderMarks() {
|
|
35543
35221
|
var t = this;
|
|
35544
35222
|
return this.marks ? this.marks : this.isObjectArrayData(this.data) ? function (e) {
|
|
35545
|
-
var
|
|
35223
|
+
var n = {
|
|
35546
35224
|
label: e
|
|
35547
35225
|
};
|
|
35548
|
-
return t.data.some(function (
|
|
35549
|
-
return
|
|
35550
|
-
}),
|
|
35226
|
+
return t.data.some(function (r) {
|
|
35227
|
+
return r[t.dataValue] === e && (n.label = r[t.dataLabel], !0);
|
|
35228
|
+
}), n;
|
|
35551
35229
|
} : this.isObjectData(this.data) ? this.data : void 0;
|
|
35552
35230
|
},
|
|
35553
35231
|
sliderTooltipFormatter: function sliderTooltipFormatter() {
|
|
35554
35232
|
var t = this;
|
|
35555
35233
|
if (this.tooltipFormatter) return this.tooltipFormatter;
|
|
35556
35234
|
if (this.isObjectArrayData(this.data)) return function (e) {
|
|
35557
|
-
var
|
|
35558
|
-
return t.data.some(function (
|
|
35559
|
-
return
|
|
35560
|
-
}),
|
|
35235
|
+
var n = "" + e;
|
|
35236
|
+
return t.data.some(function (r) {
|
|
35237
|
+
return r[t.dataValue] === e && (n = r[t.dataLabel], !0);
|
|
35238
|
+
}), n;
|
|
35561
35239
|
};
|
|
35562
35240
|
if (this.isObjectData(this.data)) {
|
|
35563
35241
|
var e = this.data;
|
|
@@ -35568,8 +35246,8 @@
|
|
|
35568
35246
|
},
|
|
35569
35247
|
isNotSync: function isNotSync() {
|
|
35570
35248
|
var t = this.control.dotsValue;
|
|
35571
|
-
return Array.isArray(this.modelValue) ? this.modelValue.length !== t.length || this.modelValue.some(function (e,
|
|
35572
|
-
return e !== t[
|
|
35249
|
+
return Array.isArray(this.modelValue) ? this.modelValue.length !== t.length || this.modelValue.some(function (e, n) {
|
|
35250
|
+
return e !== t[n];
|
|
35573
35251
|
}) : this.modelValue !== t[0];
|
|
35574
35252
|
},
|
|
35575
35253
|
dragRange: function dragRange() {
|
|
@@ -35605,7 +35283,7 @@
|
|
|
35605
35283
|
},
|
|
35606
35284
|
initControl: function initControl() {
|
|
35607
35285
|
var t = this;
|
|
35608
|
-
this.control = new
|
|
35286
|
+
this.control = new K({
|
|
35609
35287
|
value: this.modelValue,
|
|
35610
35288
|
data: this.sliderData,
|
|
35611
35289
|
enableCross: this.enableCross,
|
|
@@ -35623,9 +35301,9 @@
|
|
|
35623
35301
|
dotOptions: this.dotOptions,
|
|
35624
35302
|
onError: this.emitError
|
|
35625
35303
|
}), ["data", "enableCross", "fixed", "max", "min", "interval", "minRange", "maxRange", "order", "marks", "process", "adsorb", "included", "dotOptions"].forEach(function (e) {
|
|
35626
|
-
t.$watch(e, function (
|
|
35627
|
-
if ("data" === e && Array.isArray(t.control.data) && Array.isArray(
|
|
35628
|
-
return e === t.control.data[
|
|
35304
|
+
t.$watch(e, function (n) {
|
|
35305
|
+
if ("data" === e && Array.isArray(t.control.data) && Array.isArray(n) && t.control.data.length === n.length && n.every(function (e, n) {
|
|
35306
|
+
return e === t.control.data[n];
|
|
35629
35307
|
})) return !1;
|
|
35630
35308
|
switch (e) {
|
|
35631
35309
|
case "data":
|
|
@@ -35637,7 +35315,7 @@
|
|
|
35637
35315
|
t.control.marks = t.sliderMarks;
|
|
35638
35316
|
break;
|
|
35639
35317
|
default:
|
|
35640
|
-
t.control[e] =
|
|
35318
|
+
t.control[e] = n;
|
|
35641
35319
|
}
|
|
35642
35320
|
["data", "max", "min", "interval"].indexOf(e) > -1 && t.control.syncDotsPos();
|
|
35643
35321
|
});
|
|
@@ -35651,8 +35329,8 @@
|
|
|
35651
35329
|
}
|
|
35652
35330
|
},
|
|
35653
35331
|
isDiff: function isDiff(t, e) {
|
|
35654
|
-
return t.length !== e.length || t.some(function (t,
|
|
35655
|
-
return t !== e[
|
|
35332
|
+
return t.length !== e.length || t.some(function (t, n) {
|
|
35333
|
+
return t !== e[n];
|
|
35656
35334
|
});
|
|
35657
35335
|
},
|
|
35658
35336
|
emitError: function emitError(t, e) {
|
|
@@ -35662,9 +35340,9 @@
|
|
|
35662
35340
|
if (this.dragOnClick) {
|
|
35663
35341
|
this.setScale();
|
|
35664
35342
|
var e = this.getPosByEvent(t),
|
|
35665
|
-
|
|
35666
|
-
if (this.dots[
|
|
35667
|
-
this.dragStart(
|
|
35343
|
+
n = this.control.getRecentDot(e);
|
|
35344
|
+
if (this.dots[n].disabled) return;
|
|
35345
|
+
this.dragStart(n), this.control.setDotPos(e, this.focusDotIndex), this.lazy || this.syncValueByPos();
|
|
35668
35346
|
}
|
|
35669
35347
|
},
|
|
35670
35348
|
dragStart: function dragStart(t) {
|
|
@@ -35675,16 +35353,16 @@
|
|
|
35675
35353
|
t.preventDefault();
|
|
35676
35354
|
var e = this.getPosByEvent(t);
|
|
35677
35355
|
this.isCrossDot(e), this.control.setDotPos(e, this.focusDotIndex), this.lazy || this.syncValueByPos();
|
|
35678
|
-
var
|
|
35679
|
-
this.$emit("dragging", 1 ===
|
|
35356
|
+
var n = this.control.dotsValue;
|
|
35357
|
+
this.$emit("dragging", 1 === n.length ? n[0] : et(n), this.focusDotIndex);
|
|
35680
35358
|
},
|
|
35681
35359
|
isCrossDot: function isCrossDot(t) {
|
|
35682
35360
|
if (this.canSort) {
|
|
35683
35361
|
var e = this.focusDotIndex,
|
|
35684
|
-
|
|
35685
|
-
if (
|
|
35686
|
-
var
|
|
35687
|
-
|
|
35362
|
+
n = t;
|
|
35363
|
+
if (n > this.dragRange[1] ? (n = this.dragRange[1], this.focusDotIndex++) : n < this.dragRange[0] && (n = this.dragRange[0], this.focusDotIndex--), e !== this.focusDotIndex) {
|
|
35364
|
+
var r = this.$refs["dot-".concat(this.focusDotIndex)];
|
|
35365
|
+
r && r.$el && r.$el.focus(), this.control.setDotPos(n, e);
|
|
35688
35366
|
}
|
|
35689
35367
|
}
|
|
35690
35368
|
},
|
|
@@ -35727,44 +35405,44 @@
|
|
|
35727
35405
|
},
|
|
35728
35406
|
setIndex: function setIndex(t) {
|
|
35729
35407
|
var e = this,
|
|
35730
|
-
|
|
35408
|
+
n = Array.isArray(t) ? t.map(function (t) {
|
|
35731
35409
|
return e.control.getValueByIndex(t);
|
|
35732
35410
|
}) : this.control.getValueByIndex(t);
|
|
35733
|
-
this.setValue(
|
|
35411
|
+
this.setValue(n);
|
|
35734
35412
|
},
|
|
35735
35413
|
setValueByPos: function setValueByPos(t) {
|
|
35736
35414
|
var e = this,
|
|
35737
|
-
|
|
35738
|
-
if (this.disabled || this.dots[
|
|
35739
|
-
this.focusDotIndex =
|
|
35415
|
+
n = this.control.getRecentDot(t);
|
|
35416
|
+
if (this.disabled || this.dots[n].disabled) return !1;
|
|
35417
|
+
this.focusDotIndex = n, this.control.setDotPos(t, n), this.syncValueByPos(), this.useKeyboard && this.states.add(mt.Focus), setTimeout(function () {
|
|
35740
35418
|
e.included && e.isNotSync ? e.control.setValue(e.modelValue) : e.control.syncDotsPos();
|
|
35741
35419
|
});
|
|
35742
35420
|
},
|
|
35743
35421
|
keydownHandle: function keydownHandle(t) {
|
|
35744
35422
|
var e = this;
|
|
35745
35423
|
if (!this.useKeyboard || !this.states.has(mt.Focus)) return !1;
|
|
35746
|
-
var
|
|
35747
|
-
|
|
35424
|
+
var n = this.included && this.marks,
|
|
35425
|
+
r = O(t, {
|
|
35748
35426
|
direction: this.direction,
|
|
35749
|
-
max:
|
|
35427
|
+
max: n ? this.control.markList.length - 1 : this.control.total,
|
|
35750
35428
|
min: 0,
|
|
35751
35429
|
hook: this.keydownHook
|
|
35752
35430
|
});
|
|
35753
|
-
if (
|
|
35431
|
+
if (r) {
|
|
35754
35432
|
t.preventDefault();
|
|
35755
35433
|
var i = -1,
|
|
35756
35434
|
o = 0;
|
|
35757
|
-
|
|
35758
|
-
return t.value === e.control.dotsValue[e.focusDotIndex] && (i = n
|
|
35759
|
-
}), i < 0 ? i = 0 : i > this.control.markList.length - 1 && (i = this.control.markList.length - 1), o = this.control.markList[i].pos) : (i =
|
|
35435
|
+
n ? (this.control.markList.some(function (t, n) {
|
|
35436
|
+
return t.value === e.control.dotsValue[e.focusDotIndex] && (i = r(n), !0);
|
|
35437
|
+
}), i < 0 ? i = 0 : i > this.control.markList.length - 1 && (i = this.control.markList.length - 1), o = this.control.markList[i].pos) : (i = r(this.control.getIndexByValue(this.control.dotsValue[this.focusDotIndex])), o = this.control.parseValue(this.control.getValueByIndex(i))), this.isCrossDot(o), this.control.setDotPos(o, this.focusDotIndex), this.syncValueByPos();
|
|
35760
35438
|
}
|
|
35761
35439
|
},
|
|
35762
35440
|
getPosByEvent: function getPosByEvent(t) {
|
|
35763
35441
|
return P(t, this.$el, this.isReverse, this.zoom)[this.isHorizontal ? "x" : "y"] / this.scale;
|
|
35764
35442
|
},
|
|
35765
|
-
renderSlot: function renderSlot(t, e,
|
|
35766
|
-
var
|
|
35767
|
-
return
|
|
35443
|
+
renderSlot: function renderSlot(t, e, n) {
|
|
35444
|
+
var r = this.$slots[t];
|
|
35445
|
+
return r ? r(e) : n;
|
|
35768
35446
|
}
|
|
35769
35447
|
},
|
|
35770
35448
|
created: function created() {
|
|
@@ -35777,20 +35455,22 @@
|
|
|
35777
35455
|
this.unbindEvent();
|
|
35778
35456
|
}
|
|
35779
35457
|
});
|
|
35780
|
-
var
|
|
35781
|
-
var
|
|
35782
|
-
|
|
35783
|
-
var kt =
|
|
35458
|
+
var gt = (0, f.Z)(vt, [["render", l]]);
|
|
35459
|
+
var bt = gt;
|
|
35460
|
+
bt.VueSliderMark = k, bt.VueSliderDot = m;
|
|
35461
|
+
var kt = bt,
|
|
35784
35462
|
St = kt;
|
|
35785
35463
|
}(), i = i["default"], i;
|
|
35786
35464
|
}();
|
|
35787
35465
|
});
|
|
35788
35466
|
});
|
|
35789
|
-
var VueSlider = unwrapExports(vueSliderComponent_umd_min);
|
|
35790
35467
|
|
|
35791
|
-
var css_248z = "
|
|
35468
|
+
var css_248z = ".vue-slider-dot{position:absolute;-webkit-transition:all 0s;transition:all 0s;z-index:5}.vue-slider-dot:focus{outline:none}.vue-slider-dot-tooltip{position:absolute;visibility:hidden}.vue-slider-dot-hover:hover .vue-slider-dot-tooltip{visibility:visible}.vue-slider-dot-tooltip-show{visibility:visible}.vue-slider-dot-tooltip-top{top:-10px;left:50%;-webkit-transform:translate(-50%, -100%);transform:translate(-50%, -100%)}.vue-slider-dot-tooltip-bottom{bottom:-10px;left:50%;-webkit-transform:translate(-50%, 100%);transform:translate(-50%, 100%)}.vue-slider-dot-tooltip-left{left:-10px;top:50%;-webkit-transform:translate(-100%, -50%);transform:translate(-100%, -50%)}.vue-slider-dot-tooltip-right{right:-10px;top:50%;-webkit-transform:translate(100%, -50%);transform:translate(100%, -50%)}\n.vue-slider-marks{position:relative;width:100%;height:100%}.vue-slider-mark{position:absolute;z-index:1}.vue-slider-ltr .vue-slider-mark,.vue-slider-rtl .vue-slider-mark{width:0;height:100%;top:50%}.vue-slider-ltr .vue-slider-mark-step,.vue-slider-rtl .vue-slider-mark-step{top:0}.vue-slider-ltr .vue-slider-mark-label,.vue-slider-rtl .vue-slider-mark-label{top:100%;margin-top:10px}.vue-slider-ltr .vue-slider-mark{-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}.vue-slider-ltr .vue-slider-mark-step{left:0}.vue-slider-ltr .vue-slider-mark-label{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.vue-slider-rtl .vue-slider-mark{-webkit-transform:translate(50%, -50%);transform:translate(50%, -50%)}.vue-slider-rtl .vue-slider-mark-step{right:0}.vue-slider-rtl .vue-slider-mark-label{right:50%;-webkit-transform:translateX(50%);transform:translateX(50%)}.vue-slider-ttb .vue-slider-mark,.vue-slider-btt .vue-slider-mark{width:100%;height:0;left:50%}.vue-slider-ttb .vue-slider-mark-step,.vue-slider-btt .vue-slider-mark-step{left:0}.vue-slider-ttb .vue-slider-mark-label,.vue-slider-btt .vue-slider-mark-label{left:100%;margin-left:10px}.vue-slider-btt .vue-slider-mark{-webkit-transform:translate(-50%, 50%);transform:translate(-50%, 50%)}.vue-slider-btt .vue-slider-mark-step{top:0}.vue-slider-btt .vue-slider-mark-label{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.vue-slider-ttb .vue-slider-mark{-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}.vue-slider-ttb .vue-slider-mark-step{bottom:0}.vue-slider-ttb .vue-slider-mark-label{bottom:50%;-webkit-transform:translateY(50%);transform:translateY(50%)}.vue-slider-mark-step,.vue-slider-mark-label{position:absolute}\n.vue-slider{position:relative;-webkit-box-sizing:content-box;box-sizing:content-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.vue-slider-rail{position:relative;width:100%;height:100%;-webkit-transition-property:width,height,left,right,top,bottom;transition-property:width,height,left,right,top,bottom}.vue-slider-process{position:absolute;z-index:1}\n";
|
|
35792
35469
|
styleInject(css_248z);
|
|
35793
35470
|
|
|
35471
|
+
var css_248z$1 = "/* component style */\n.vue-slider-disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n/* rail style */\n.vue-slider-rail {\n background-color: #ccc;\n border-radius: 15px;\n}\n\n/* process style */\n.vue-slider-process {\n background-color: #3498db;\n border-radius: 15px;\n}\n\n/* mark style */\n.vue-slider-mark {\n z-index: 4;\n}\n.vue-slider-mark:first-child .vue-slider-mark-step, .vue-slider-mark:last-child .vue-slider-mark-step {\n display: none;\n}\n.vue-slider-mark-step {\n width: 100%;\n height: 100%;\n border-radius: 50%;\n background-color: rgba(0, 0, 0, 0.16);\n}\n.vue-slider-mark-label {\n font-size: 14px;\n white-space: nowrap;\n}\n/* dot style */\n.vue-slider-dot-handle {\n cursor: pointer;\n width: 100%;\n height: 100%;\n border-radius: 50%;\n background-color: #fff;\n box-sizing: border-box;\n box-shadow: 0.5px 0.5px 2px 1px rgba(0, 0, 0, 0.32);\n}\n.vue-slider-dot-handle-focus {\n box-shadow: 0px 0px 1px 2px rgba(52, 152, 219, 0.36);\n}\n\n.vue-slider-dot-handle-disabled {\n cursor: not-allowed;\n background-color: #ccc;\n}\n\n.vue-slider-dot-tooltip-inner {\n font-size: 14px;\n white-space: nowrap;\n padding: 2px 5px;\n min-width: 20px;\n text-align: center;\n color: #fff;\n border-radius: 5px;\n border-color: #3498db;\n background-color: #3498db;\n box-sizing: content-box;\n}\n.vue-slider-dot-tooltip-inner::after {\n content: \"\";\n position: absolute;\n}\n.vue-slider-dot-tooltip-inner-top::after {\n top: 100%;\n left: 50%;\n transform: translate(-50%, 0);\n height: 0;\n width: 0;\n border-color: transparent;\n border-style: solid;\n border-width: 5px;\n border-top-color: inherit;\n}\n.vue-slider-dot-tooltip-inner-bottom::after {\n bottom: 100%;\n left: 50%;\n transform: translate(-50%, 0);\n height: 0;\n width: 0;\n border-color: transparent;\n border-style: solid;\n border-width: 5px;\n border-bottom-color: inherit;\n}\n.vue-slider-dot-tooltip-inner-left::after {\n left: 100%;\n top: 50%;\n transform: translate(0, -50%);\n height: 0;\n width: 0;\n border-color: transparent;\n border-style: solid;\n border-width: 5px;\n border-left-color: inherit;\n}\n.vue-slider-dot-tooltip-inner-right::after {\n right: 100%;\n top: 50%;\n transform: translate(0, -50%);\n height: 0;\n width: 0;\n border-color: transparent;\n border-style: solid;\n border-width: 5px;\n border-right-color: inherit;\n}\n\n.vue-slider-dot-tooltip-wrapper {\n opacity: 0;\n transition: all 0.3s;\n}\n.vue-slider-dot-tooltip-wrapper-show {\n opacity: 1;\n}\n";
|
|
35472
|
+
styleInject(css_248z$1);
|
|
35473
|
+
|
|
35794
35474
|
// client only component
|
|
35795
35475
|
// render the placeholder slot on SSR
|
|
35796
35476
|
// you can manually control exactly when to show the component by the isShow prop
|
|
@@ -36160,7 +35840,7 @@
|
|
|
36160
35840
|
"class": getClassName$a(_this4.$props.innerClass, 'slider')
|
|
36161
35841
|
}, {
|
|
36162
35842
|
"default": function _default() {
|
|
36163
|
-
return [vue.createVNode(
|
|
35843
|
+
return [vue.createVNode(vueSliderComponent_umd_min, vue.mergeProps({
|
|
36164
35844
|
"ref": "slider",
|
|
36165
35845
|
"modelValue": [Math.floor(Math.max(start, _this4.currentValue[0])), Math.ceil(Math.min(end, _this4.currentValue[1]))],
|
|
36166
35846
|
"min": Math.floor(Math.min(start, _this4.currentValue[0])),
|
|
@@ -36877,7 +36557,7 @@
|
|
|
36877
36557
|
"class": getClassName$d(_this2.$props.innerClass, 'slider')
|
|
36878
36558
|
}, {
|
|
36879
36559
|
"default": function _default() {
|
|
36880
|
-
return [vue.createVNode(
|
|
36560
|
+
return [vue.createVNode(vueSliderComponent_umd_min, vue.mergeProps({
|
|
36881
36561
|
"ref": "slider",
|
|
36882
36562
|
"modelValue": _this2.currentValue,
|
|
36883
36563
|
"min": _this2.$props.range.start,
|
|
@@ -40507,8 +40187,8 @@
|
|
|
40507
40187
|
}, null, 4 /* STYLE */), vue.createElementVNode("div", _hoisted_1$1, [vue.renderSlot(_ctx.$slots, "default")]), vue.renderSlot(_ctx.$slots, "visible")], 2 /* CLASS */);
|
|
40508
40188
|
}
|
|
40509
40189
|
|
|
40510
|
-
var css_248z$
|
|
40511
|
-
styleInject(css_248z$
|
|
40190
|
+
var css_248z$2 = "\n.vue-map {\n width: 100%;\n height: 100%;\n min-height: 2rem;\n}\n";
|
|
40191
|
+
styleInject(css_248z$2);
|
|
40512
40192
|
|
|
40513
40193
|
script$3.render = render$3;
|
|
40514
40194
|
script$3.__file = "node_modules/vue-google-maps-community-fork/src/components/map.vue";
|
|
@@ -44314,7 +43994,7 @@
|
|
|
44314
43994
|
}, queryString, renderFunction);
|
|
44315
43995
|
}
|
|
44316
43996
|
|
|
44317
|
-
var version = "3.1.0-alpha";
|
|
43997
|
+
var version = "3.1.0-alpha.2";
|
|
44318
43998
|
|
|
44319
43999
|
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];
|
|
44320
44000
|
function install$1 (Vue) {
|