@appbaseio/reactivesearch-vue 3.0.0-alpha.0 → 3.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -9
- package/dist/@appbaseio/reactivesearch-vue.umd.js +605 -774
- package/dist/@appbaseio/reactivesearch-vue.umd.js.map +1 -1
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js +5 -10
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js.map +1 -1
- package/dist/cjs/{ComponentWrapper-75f88599.js → ComponentWrapper-611cf7f9.js} +2 -2
- package/dist/cjs/{DropDown-6cf84c47.js → DropDown-dc184468.js} +4 -2
- package/dist/cjs/DynamicRangeSlider.js +5 -4
- package/dist/cjs/{Input-4b434436.js → Input-088dfcb4.js} +1 -1
- package/dist/cjs/MultiDropdownList.js +4 -4
- package/dist/cjs/MultiList.js +4 -4
- package/dist/cjs/MultiRange.js +2 -2
- package/dist/cjs/{PreferencesConsumer-eb265924.js → PreferencesConsumer-22d1b49f.js} +1 -3
- package/dist/cjs/RangeInput.js +4 -4
- package/dist/cjs/RangeSlider.js +3 -3
- package/dist/cjs/ReactiveBase.js +4 -3
- package/dist/cjs/{ReactiveComponent-eb8db4c1.js → ReactiveComponent-a6108189.js} +18 -23
- package/dist/cjs/ReactiveComponent.js +6 -6
- package/dist/cjs/ReactiveGoogleMap.js +8 -7
- package/dist/cjs/ReactiveList.js +3 -3
- package/dist/cjs/SingleDropdownList.js +4 -4
- package/dist/cjs/SingleList.js +4 -4
- package/dist/cjs/SingleRange.js +2 -2
- package/dist/cjs/ToggleButton.js +2 -2
- package/dist/cjs/index.js +6 -6
- package/dist/cjs/install.js +6 -6
- package/dist/cjs/{ssr-6907ada3.js → ssr-6c8a72e1.js} +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/es/{ComponentWrapper-5166c76a.js → ComponentWrapper-3dfe6931.js} +2 -2
- package/dist/es/{DropDown-8764360c.js → DropDown-029ffd42.js} +4 -2
- package/dist/es/DynamicRangeSlider.js +5 -4
- package/dist/es/{Input-4a8ef1f3.js → Input-ad474a55.js} +1 -1
- package/dist/es/MultiDropdownList.js +4 -4
- package/dist/es/MultiList.js +4 -4
- package/dist/es/MultiRange.js +2 -2
- package/dist/es/{PreferencesConsumer-c276709c.js → PreferencesConsumer-24e88f3b.js} +1 -3
- package/dist/es/RangeInput.js +4 -4
- package/dist/es/RangeSlider.js +3 -3
- package/dist/es/ReactiveBase.js +4 -3
- package/dist/es/{ReactiveComponent-f9fa5780.js → ReactiveComponent-0a97eb1e.js} +18 -23
- package/dist/es/ReactiveComponent.js +6 -6
- package/dist/es/ReactiveGoogleMap.js +8 -7
- package/dist/es/ReactiveList.js +3 -3
- package/dist/es/SingleDropdownList.js +4 -4
- package/dist/es/SingleList.js +4 -4
- package/dist/es/SingleRange.js +2 -2
- package/dist/es/ToggleButton.js +2 -2
- package/dist/es/index.js +6 -6
- package/dist/es/install.js +6 -6
- package/dist/es/{ssr-af398f0c.js → ssr-584c278d.js} +1 -1
- package/dist/es/version.js +1 -1
- package/package.json +2 -2
|
@@ -3060,13 +3060,13 @@
|
|
|
3060
3060
|
value: true
|
|
3061
3061
|
});
|
|
3062
3062
|
var dateFormats = {
|
|
3063
|
-
date: '
|
|
3064
|
-
basic_date: '
|
|
3065
|
-
basic_date_time:
|
|
3066
|
-
basic_date_time_no_millis:
|
|
3067
|
-
date_time_no_millis:
|
|
3068
|
-
basic_time: 'HHmmss.
|
|
3069
|
-
basic_time_no_millis: '
|
|
3063
|
+
date: 'YYYY-MM-DD',
|
|
3064
|
+
basic_date: 'YYYYMMDD',
|
|
3065
|
+
basic_date_time: 'YYYYMMDD[T]HHmmss.SSSZ',
|
|
3066
|
+
basic_date_time_no_millis: 'YYYYMMDD[T]HHmmssZ',
|
|
3067
|
+
date_time_no_millis: 'YYYY-MM-DD[T]HH:mm:ssZ',
|
|
3068
|
+
basic_time: 'HHmmss.SSSZ',
|
|
3069
|
+
basic_time_no_millis: 'HHmmssZ',
|
|
3070
3070
|
epoch_millis: 'epoch_millis',
|
|
3071
3071
|
epoch_second: 'epoch_second'
|
|
3072
3072
|
};
|
|
@@ -4596,6 +4596,7 @@
|
|
|
4596
4596
|
exports.checkValueChange = checkValueChange;
|
|
4597
4597
|
exports.getAggsOrder = getAggsOrder;
|
|
4598
4598
|
exports.formatDate = formatDate;
|
|
4599
|
+
exports.unwrapToNativeDate = unwrapToNativeDate;
|
|
4599
4600
|
exports.getResultStats = getResultStats;
|
|
4600
4601
|
exports.extractFieldsFromSource = extractFieldsFromSource;
|
|
4601
4602
|
exports.normalizeDataField = normalizeDataField;
|
|
@@ -4926,18 +4927,24 @@
|
|
|
4926
4927
|
}
|
|
4927
4928
|
switch (props.queryFormat) {
|
|
4928
4929
|
case 'epoch_millis':
|
|
4929
|
-
return date.
|
|
4930
|
+
return date.valueOf();
|
|
4930
4931
|
case 'epoch_second':
|
|
4931
|
-
return Math.floor(date.
|
|
4932
|
+
return Math.floor(date.valueOf() / 1000);
|
|
4932
4933
|
default:
|
|
4933
4934
|
{
|
|
4934
4935
|
if (_dateFormats2["default"][props.queryFormat]) {
|
|
4935
|
-
return date.
|
|
4936
|
+
return date.format(_dateFormats2["default"][props.queryFormat]);
|
|
4936
4937
|
}
|
|
4937
|
-
return date.
|
|
4938
|
+
return date.valueOf();
|
|
4938
4939
|
}
|
|
4939
4940
|
}
|
|
4940
4941
|
}
|
|
4942
|
+
function unwrapToNativeDate(wrappedDateInstance) {
|
|
4943
|
+
if (wrappedDateInstance) {
|
|
4944
|
+
return new Date(wrappedDateInstance.valueOf());
|
|
4945
|
+
}
|
|
4946
|
+
return wrappedDateInstance;
|
|
4947
|
+
}
|
|
4941
4948
|
var getOptionsFromQuery = function getOptionsFromQuery() {
|
|
4942
4949
|
var customQuery = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
4943
4950
|
if (customQuery) {
|
|
@@ -5553,708 +5560,326 @@
|
|
|
5553
5560
|
var helper_39 = helper.checkValueChange;
|
|
5554
5561
|
var helper_40 = helper.getAggsOrder;
|
|
5555
5562
|
var helper_41 = helper.formatDate;
|
|
5556
|
-
var helper_42 = helper.
|
|
5557
|
-
var helper_43 = helper.
|
|
5558
|
-
var helper_44 = helper.
|
|
5559
|
-
var helper_45 = helper.
|
|
5560
|
-
var helper_46 = helper.
|
|
5561
|
-
var helper_47 = helper.
|
|
5562
|
-
|
|
5563
|
-
|
|
5564
|
-
|
|
5565
|
-
|
|
5566
|
-
|
|
5567
|
-
|
|
5568
|
-
|
|
5569
|
-
|
|
5570
|
-
|
|
5571
|
-
|
|
5572
|
-
|
|
5573
|
-
|
|
5574
|
-
|
|
5575
|
-
|
|
5576
|
-
|
|
5577
|
-
|
|
5578
|
-
|
|
5579
|
-
|
|
5580
|
-
|
|
5581
|
-
|
|
5582
|
-
|
|
5583
|
-
|
|
5584
|
-
|
|
5585
|
-
|
|
5586
|
-
|
|
5587
|
-
|
|
5588
|
-
|
|
5589
|
-
|
|
5590
|
-
|
|
5591
|
-
|
|
5592
|
-
|
|
5593
|
-
var DAY = 7;
|
|
5594
|
-
/** @const */
|
|
5595
|
-
var YEAR = 8;
|
|
5596
|
-
/** @const */
|
|
5597
|
-
var DAY_MS = 86400000;
|
|
5598
|
-
var ISO_FORMAT_STRING = "yyyy-MM-dd'T'HH:mm:ss(.fff)";
|
|
5599
|
-
var ISO_FORMAT_STRING_TZ = ISO_FORMAT_STRING + "zzz";
|
|
5600
|
-
var methodSubjects = ['FullYear',
|
|
5601
|
-
// 0
|
|
5602
|
-
'Month',
|
|
5603
|
-
// 1
|
|
5604
|
-
'Date',
|
|
5605
|
-
// 2
|
|
5606
|
-
'Hours',
|
|
5607
|
-
// 3
|
|
5608
|
-
'Minutes',
|
|
5609
|
-
// 4
|
|
5610
|
-
'Seconds',
|
|
5611
|
-
// 5
|
|
5612
|
-
'Milliseconds',
|
|
5613
|
-
// 6
|
|
5614
|
-
'Day',
|
|
5615
|
-
// 7
|
|
5616
|
-
'Year' // 8
|
|
5617
|
-
];
|
|
5618
|
-
|
|
5619
|
-
var subjectPlurals = ['Years',
|
|
5620
|
-
// 0
|
|
5621
|
-
'Months',
|
|
5622
|
-
// 1
|
|
5623
|
-
'Days' // 2
|
|
5624
|
-
];
|
|
5625
|
-
|
|
5626
|
-
var unitsWithin = [12,
|
|
5627
|
-
// months in year
|
|
5628
|
-
31,
|
|
5629
|
-
// days in month (sort of)
|
|
5630
|
-
24,
|
|
5631
|
-
// hours in day
|
|
5632
|
-
60,
|
|
5633
|
-
// minutes in hour
|
|
5634
|
-
60,
|
|
5635
|
-
// seconds in minute
|
|
5636
|
-
1000,
|
|
5637
|
-
// milliseconds in second
|
|
5638
|
-
1 //
|
|
5639
|
-
];
|
|
5640
|
-
|
|
5641
|
-
var formatStringRE = new RegExp("(([a-zA-Z])\\2*)|" +
|
|
5642
|
-
// 1, 2
|
|
5643
|
-
"(\\(" + "(('.*?'|\\(.*?\\)|.)*?)" + "\\))|" +
|
|
5644
|
-
// 3, 4, 5 (allows for 1 level of inner quotes or parens)
|
|
5645
|
-
"('(.*?)')" // 6, 7
|
|
5646
|
-
);
|
|
5647
|
-
|
|
5648
|
-
var UTC = Date.UTC;
|
|
5649
|
-
var toUTCString = Date.prototype.toUTCString;
|
|
5650
|
-
var proto = XDate.prototype;
|
|
5651
|
-
|
|
5652
|
-
// This makes an XDate look pretty in Firebug and Web Inspector.
|
|
5653
|
-
// It makes an XDate seem array-like, and displays [ <internal-date>.toString() ]
|
|
5654
|
-
proto.length = 1;
|
|
5655
|
-
proto.splice = Array.prototype.splice;
|
|
5656
|
-
|
|
5657
|
-
/* Constructor
|
|
5658
|
-
---------------------------------------------------------------------------------*/
|
|
5659
|
-
|
|
5660
|
-
// TODO: in future, I'd change signature for the constructor regarding the `true` utc-mode param. ~ashaw
|
|
5661
|
-
// I'd move the boolean to be the *first* argument. Still optional. Seems cleaner.
|
|
5662
|
-
// I'd remove it from the `xdate`, `nativeDate`, and `milliseconds` constructors.
|
|
5663
|
-
// (because you can simply call .setUTCMode(true) after)
|
|
5664
|
-
// And I'd only leave it for the y/m/d/h/m/s/m and `dateString` constructors
|
|
5665
|
-
// (because those are the only constructors that need it for DST-gap data-loss reasons)
|
|
5666
|
-
// Should do this for 1.0
|
|
5667
|
-
|
|
5668
|
-
function XDate() {
|
|
5669
|
-
return init(this instanceof XDate ? this : new XDate(), arguments);
|
|
5670
|
-
}
|
|
5671
|
-
function init(xdate, args) {
|
|
5672
|
-
var len = args.length;
|
|
5673
|
-
var utcMode;
|
|
5674
|
-
if (isBoolean(args[len - 1])) {
|
|
5675
|
-
utcMode = args[--len];
|
|
5676
|
-
args = slice(args, 0, len);
|
|
5677
|
-
}
|
|
5678
|
-
if (!len) {
|
|
5679
|
-
xdate[0] = new Date();
|
|
5680
|
-
} else if (len == 1) {
|
|
5681
|
-
var arg = args[0];
|
|
5682
|
-
if (arg instanceof Date) {
|
|
5683
|
-
xdate[0] = new Date(arg.getTime());
|
|
5684
|
-
} else if (isNumber(arg)) {
|
|
5685
|
-
xdate[0] = new Date(arg);
|
|
5686
|
-
} else if (arg instanceof XDate) {
|
|
5687
|
-
xdate[0] = _clone(arg);
|
|
5688
|
-
} else if (isString(arg)) {
|
|
5689
|
-
xdate[0] = new Date(0);
|
|
5690
|
-
xdate = parse(arg, utcMode || false, xdate);
|
|
5691
|
-
}
|
|
5692
|
-
} else {
|
|
5693
|
-
xdate[0] = new Date(UTC.apply(Date, args));
|
|
5694
|
-
if (!utcMode) {
|
|
5695
|
-
xdate[0] = coerceToLocal(xdate[0]);
|
|
5563
|
+
var helper_42 = helper.unwrapToNativeDate;
|
|
5564
|
+
var helper_43 = helper.getResultStats;
|
|
5565
|
+
var helper_44 = helper.extractFieldsFromSource;
|
|
5566
|
+
var helper_45 = helper.normalizeDataField;
|
|
5567
|
+
var helper_46 = helper.handleOnSuggestions;
|
|
5568
|
+
var helper_47 = helper.isValidDateRangeQueryFormat;
|
|
5569
|
+
var helper_48 = helper.setDeep;
|
|
5570
|
+
|
|
5571
|
+
var dayjs_min = createCommonjsModule(function (module, exports) {
|
|
5572
|
+
!function (t, e) {
|
|
5573
|
+
module.exports = e() ;
|
|
5574
|
+
}(commonjsGlobal, function () {
|
|
5575
|
+
|
|
5576
|
+
var t = 1e3,
|
|
5577
|
+
e = 6e4,
|
|
5578
|
+
n = 36e5,
|
|
5579
|
+
r = "millisecond",
|
|
5580
|
+
i = "second",
|
|
5581
|
+
s = "minute",
|
|
5582
|
+
u = "hour",
|
|
5583
|
+
a = "day",
|
|
5584
|
+
o = "week",
|
|
5585
|
+
f = "month",
|
|
5586
|
+
h = "quarter",
|
|
5587
|
+
c = "year",
|
|
5588
|
+
d = "date",
|
|
5589
|
+
l = "Invalid Date",
|
|
5590
|
+
$ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,
|
|
5591
|
+
y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,
|
|
5592
|
+
M = {
|
|
5593
|
+
name: "en",
|
|
5594
|
+
weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
|
|
5595
|
+
months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"),
|
|
5596
|
+
ordinal: function ordinal(t) {
|
|
5597
|
+
var e = ["th", "st", "nd", "rd"],
|
|
5598
|
+
n = t % 100;
|
|
5599
|
+
return "[" + t + (e[(n - 20) % 10] || e[n] || e[0]) + "]";
|
|
5696
5600
|
}
|
|
5697
|
-
}
|
|
5698
|
-
|
|
5699
|
-
|
|
5700
|
-
|
|
5701
|
-
|
|
5702
|
-
|
|
5703
|
-
|
|
5704
|
-
|
|
5705
|
-
|
|
5706
|
-
|
|
5707
|
-
|
|
5708
|
-
|
|
5709
|
-
|
|
5710
|
-
|
|
5711
|
-
|
|
5712
|
-
|
|
5713
|
-
|
|
5714
|
-
|
|
5715
|
-
|
|
5716
|
-
|
|
5717
|
-
|
|
5718
|
-
|
|
5719
|
-
|
|
5720
|
-
|
|
5721
|
-
|
|
5722
|
-
|
|
5723
|
-
|
|
5724
|
-
|
|
5725
|
-
|
|
5726
|
-
|
|
5727
|
-
|
|
5728
|
-
|
|
5729
|
-
|
|
5730
|
-
|
|
5731
|
-
|
|
5732
|
-
|
|
5733
|
-
|
|
5734
|
-
|
|
5735
|
-
|
|
5736
|
-
|
|
5737
|
-
|
|
5738
|
-
return this[0].getTimezoneOffset();
|
|
5739
|
-
}
|
|
5740
|
-
};
|
|
5741
|
-
|
|
5742
|
-
/* get / set / add / diff Methods (except for week-related)
|
|
5743
|
-
---------------------------------------------------------------------------------*/
|
|
5744
|
-
|
|
5745
|
-
each(methodSubjects, function (subject, fieldIndex) {
|
|
5746
|
-
proto['get' + subject] = function () {
|
|
5747
|
-
return _getField(this[0], getUTCMode(this), fieldIndex);
|
|
5748
|
-
};
|
|
5749
|
-
if (fieldIndex != YEAR) {
|
|
5750
|
-
// because there is no getUTCYear
|
|
5751
|
-
|
|
5752
|
-
proto['getUTC' + subject] = function () {
|
|
5753
|
-
return _getField(this[0], true, fieldIndex);
|
|
5754
|
-
};
|
|
5755
|
-
}
|
|
5756
|
-
if (fieldIndex != DAY) {
|
|
5757
|
-
// because there is no setDay or setUTCDay
|
|
5758
|
-
// and the add* and diff* methods use DATE instead
|
|
5759
|
-
|
|
5760
|
-
proto['set' + subject] = function (value) {
|
|
5761
|
-
_set(this, fieldIndex, value, arguments, getUTCMode(this));
|
|
5762
|
-
return this; // for chaining
|
|
5763
|
-
};
|
|
5764
|
-
|
|
5765
|
-
if (fieldIndex != YEAR) {
|
|
5766
|
-
// because there is no setUTCYear
|
|
5767
|
-
// and the add* and diff* methods use FULLYEAR instead
|
|
5768
|
-
|
|
5769
|
-
proto['setUTC' + subject] = function (value) {
|
|
5770
|
-
_set(this, fieldIndex, value, arguments, true);
|
|
5771
|
-
return this; // for chaining
|
|
5772
|
-
};
|
|
5773
|
-
|
|
5774
|
-
proto['add' + (subjectPlurals[fieldIndex] || subject)] = function (delta, preventOverflow) {
|
|
5775
|
-
_add(this, fieldIndex, delta, preventOverflow);
|
|
5776
|
-
return this; // for chaining
|
|
5777
|
-
};
|
|
5778
|
-
|
|
5779
|
-
proto['diff' + (subjectPlurals[fieldIndex] || subject)] = function (otherDate) {
|
|
5780
|
-
return _diff(this, otherDate, fieldIndex);
|
|
5781
|
-
};
|
|
5601
|
+
},
|
|
5602
|
+
m = function m(t, e, n) {
|
|
5603
|
+
var r = String(t);
|
|
5604
|
+
return !r || r.length >= e ? t : "" + Array(e + 1 - r.length).join(n) + t;
|
|
5605
|
+
},
|
|
5606
|
+
v = {
|
|
5607
|
+
s: m,
|
|
5608
|
+
z: function z(t) {
|
|
5609
|
+
var e = -t.utcOffset(),
|
|
5610
|
+
n = Math.abs(e),
|
|
5611
|
+
r = Math.floor(n / 60),
|
|
5612
|
+
i = n % 60;
|
|
5613
|
+
return (e <= 0 ? "+" : "-") + m(r, 2, "0") + ":" + m(i, 2, "0");
|
|
5614
|
+
},
|
|
5615
|
+
m: function t(e, n) {
|
|
5616
|
+
if (e.date() < n.date()) return -t(n, e);
|
|
5617
|
+
var r = 12 * (n.year() - e.year()) + (n.month() - e.month()),
|
|
5618
|
+
i = e.clone().add(r, f),
|
|
5619
|
+
s = n - i < 0,
|
|
5620
|
+
u = e.clone().add(r + (s ? -1 : 1), f);
|
|
5621
|
+
return +(-(r + (n - i) / (s ? i - u : u - i)) || 0);
|
|
5622
|
+
},
|
|
5623
|
+
a: function a(t) {
|
|
5624
|
+
return t < 0 ? Math.ceil(t) || 0 : Math.floor(t);
|
|
5625
|
+
},
|
|
5626
|
+
p: function p(t) {
|
|
5627
|
+
return {
|
|
5628
|
+
M: f,
|
|
5629
|
+
y: c,
|
|
5630
|
+
w: o,
|
|
5631
|
+
d: a,
|
|
5632
|
+
D: d,
|
|
5633
|
+
h: u,
|
|
5634
|
+
m: s,
|
|
5635
|
+
s: i,
|
|
5636
|
+
ms: r,
|
|
5637
|
+
Q: h
|
|
5638
|
+
}[t] || String(t || "").toLowerCase().replace(/s$/, "");
|
|
5639
|
+
},
|
|
5640
|
+
u: function u(t) {
|
|
5641
|
+
return void 0 === t;
|
|
5782
5642
|
}
|
|
5783
|
-
}
|
|
5784
|
-
|
|
5785
|
-
|
|
5786
|
-
|
|
5787
|
-
|
|
5788
|
-
|
|
5789
|
-
|
|
5790
|
-
|
|
5791
|
-
|
|
5792
|
-
|
|
5793
|
-
|
|
5794
|
-
|
|
5795
|
-
|
|
5796
|
-
|
|
5797
|
-
|
|
5798
|
-
}
|
|
5799
|
-
setField(fieldIndex, args);
|
|
5800
|
-
if (preventOverflow && getField(MONTH) != expectedMonth) {
|
|
5801
|
-
setField(MONTH, [getField(MONTH) - 1]);
|
|
5802
|
-
setField(DATE, [getDaysInMonth(getField(FULLYEAR), getField(MONTH))]);
|
|
5803
|
-
}
|
|
5804
|
-
}
|
|
5805
|
-
function _add(xdate, fieldIndex, delta, preventOverflow) {
|
|
5806
|
-
delta = Number(delta);
|
|
5807
|
-
var intDelta = Math.floor(delta);
|
|
5808
|
-
xdate['set' + methodSubjects[fieldIndex]](xdate['get' + methodSubjects[fieldIndex]]() + intDelta, preventOverflow || false);
|
|
5809
|
-
if (intDelta != delta && fieldIndex < MILLISECONDS) {
|
|
5810
|
-
_add(xdate, fieldIndex + 1, (delta - intDelta) * unitsWithin[fieldIndex], preventOverflow);
|
|
5811
|
-
}
|
|
5812
|
-
}
|
|
5813
|
-
function _diff(xdate1, xdate2, fieldIndex) {
|
|
5814
|
-
// fieldIndex=FULLYEAR is for years, fieldIndex=DATE is for days
|
|
5815
|
-
xdate1 = xdate1.clone().setUTCMode(true, true);
|
|
5816
|
-
xdate2 = XDate(xdate2).setUTCMode(true, true);
|
|
5817
|
-
var v = 0;
|
|
5818
|
-
if (fieldIndex == FULLYEAR || fieldIndex == MONTH) {
|
|
5819
|
-
for (var i = MILLISECONDS; i >= fieldIndex; i--) {
|
|
5820
|
-
v /= unitsWithin[i];
|
|
5821
|
-
v += _getField(xdate2, false, i) - _getField(xdate1, false, i);
|
|
5822
|
-
}
|
|
5823
|
-
if (fieldIndex == MONTH) {
|
|
5824
|
-
v += (xdate2.getFullYear() - xdate1.getFullYear()) * 12;
|
|
5825
|
-
}
|
|
5826
|
-
} else if (fieldIndex == DATE) {
|
|
5827
|
-
var clear1 = xdate1.toDate().setUTCHours(0, 0, 0, 0); // returns an ms value
|
|
5828
|
-
var clear2 = xdate2.toDate().setUTCHours(0, 0, 0, 0); // returns an ms value
|
|
5829
|
-
v = Math.round((clear2 - clear1) / DAY_MS) + (xdate2 - clear2 - (xdate1 - clear1)) / DAY_MS;
|
|
5830
|
-
} else {
|
|
5831
|
-
v = (xdate2 - xdate1) / [3600000,
|
|
5832
|
-
// milliseconds in hour
|
|
5833
|
-
60000,
|
|
5834
|
-
// milliseconds in minute
|
|
5835
|
-
1000,
|
|
5836
|
-
// milliseconds in second
|
|
5837
|
-
1 //
|
|
5838
|
-
][fieldIndex - 3];
|
|
5839
|
-
}
|
|
5840
|
-
return v;
|
|
5841
|
-
}
|
|
5842
|
-
|
|
5843
|
-
/* Week Methods
|
|
5844
|
-
---------------------------------------------------------------------------------*/
|
|
5845
|
-
|
|
5846
|
-
proto.getWeek = function () {
|
|
5847
|
-
return _getWeek(curry(_getField, this, false));
|
|
5848
|
-
};
|
|
5849
|
-
proto.getUTCWeek = function () {
|
|
5850
|
-
return _getWeek(curry(_getField, this, true));
|
|
5851
|
-
};
|
|
5852
|
-
proto.setWeek = function (n, year) {
|
|
5853
|
-
_setWeek(this, n, year, false);
|
|
5854
|
-
return this; // for chaining
|
|
5855
|
-
};
|
|
5856
|
-
|
|
5857
|
-
proto.setUTCWeek = function (n, year) {
|
|
5858
|
-
_setWeek(this, n, year, true);
|
|
5859
|
-
return this; // for chaining
|
|
5860
|
-
};
|
|
5861
|
-
|
|
5862
|
-
proto.addWeeks = function (delta) {
|
|
5863
|
-
return this.addDays(Number(delta) * 7);
|
|
5864
|
-
};
|
|
5865
|
-
proto.diffWeeks = function (otherDate) {
|
|
5866
|
-
return _diff(this, otherDate, DATE) / 7;
|
|
5867
|
-
};
|
|
5868
|
-
function _getWeek(getField) {
|
|
5869
|
-
return getWeek(getField(FULLYEAR), getField(MONTH), getField(DATE));
|
|
5870
|
-
}
|
|
5871
|
-
function getWeek(year, month, date) {
|
|
5872
|
-
var d = new Date(UTC(year, month, date));
|
|
5873
|
-
var week1 = getWeek1(getWeekYear(year, month, date));
|
|
5874
|
-
return Math.floor(Math.round((d - week1) / DAY_MS) / 7) + 1;
|
|
5875
|
-
}
|
|
5876
|
-
function getWeekYear(year, month, date) {
|
|
5877
|
-
// get the year that the date's week # belongs to
|
|
5878
|
-
var d = new Date(UTC(year, month, date));
|
|
5879
|
-
if (d < getWeek1(year)) {
|
|
5880
|
-
return year - 1;
|
|
5881
|
-
} else if (d >= getWeek1(year + 1)) {
|
|
5882
|
-
return year + 1;
|
|
5883
|
-
}
|
|
5884
|
-
return year;
|
|
5885
|
-
}
|
|
5886
|
-
function getWeek1(year) {
|
|
5887
|
-
// returns Date of first week of year, in UTC
|
|
5888
|
-
var d = new Date(UTC(year, 0, 4));
|
|
5889
|
-
d.setUTCDate(d.getUTCDate() - (d.getUTCDay() + 6) % 7); // make it Monday of the week
|
|
5890
|
-
return d;
|
|
5891
|
-
}
|
|
5892
|
-
function _setWeek(xdate, n, year, useUTC) {
|
|
5893
|
-
var getField = curry(_getField, xdate, useUTC);
|
|
5894
|
-
var setField = curry(_setField, xdate, useUTC);
|
|
5895
|
-
if (year === undefined$1) {
|
|
5896
|
-
year = getWeekYear(getField(FULLYEAR), getField(MONTH), getField(DATE));
|
|
5897
|
-
}
|
|
5898
|
-
var week1 = getWeek1(year);
|
|
5899
|
-
if (!useUTC) {
|
|
5900
|
-
week1 = coerceToLocal(week1);
|
|
5901
|
-
}
|
|
5902
|
-
xdate.setTime(week1.getTime());
|
|
5903
|
-
setField(DATE, [getField(DATE) + (n - 1) * 7]); // would have used xdate.addUTCWeeks :(
|
|
5904
|
-
// n-1 because n is 1-based
|
|
5905
|
-
}
|
|
5906
|
-
|
|
5907
|
-
/* Parsing
|
|
5908
|
-
---------------------------------------------------------------------------------*/
|
|
5909
|
-
|
|
5910
|
-
XDate.parsers = [parseISO];
|
|
5911
|
-
XDate.parse = function (str) {
|
|
5912
|
-
return +XDate('' + str);
|
|
5913
|
-
};
|
|
5914
|
-
function parse(str, utcMode, xdate) {
|
|
5915
|
-
var parsers = XDate.parsers;
|
|
5916
|
-
var i = 0;
|
|
5917
|
-
var res;
|
|
5918
|
-
for (; i < parsers.length; i++) {
|
|
5919
|
-
res = parsers[i](str, utcMode, xdate);
|
|
5920
|
-
if (res) {
|
|
5921
|
-
return res;
|
|
5922
|
-
}
|
|
5923
|
-
}
|
|
5924
|
-
xdate[0] = new Date(str);
|
|
5925
|
-
return xdate;
|
|
5926
|
-
}
|
|
5927
|
-
function parseISO(str, utcMode, xdate) {
|
|
5928
|
-
var m = str.match(/^(\d{4})(-(\d{2})(-(\d{2})([T ](\d{2}):(\d{2})(:(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/);
|
|
5929
|
-
if (m) {
|
|
5930
|
-
var d = new Date(UTC(m[1], m[3] ? m[3] - 1 : 0, m[5] || 1, m[7] || 0, m[8] || 0, m[10] || 0, m[12] ? Number('0.' + m[12]) * 1000 : 0));
|
|
5931
|
-
if (m[13]) {
|
|
5932
|
-
// has gmt offset or Z
|
|
5933
|
-
if (m[14]) {
|
|
5934
|
-
// has gmt offset
|
|
5935
|
-
d.setUTCMinutes(d.getUTCMinutes() + (m[15] == '-' ? 1 : -1) * (Number(m[16]) * 60 + (m[18] ? Number(m[18]) : 0)));
|
|
5936
|
-
}
|
|
5643
|
+
},
|
|
5644
|
+
g = "en",
|
|
5645
|
+
D = {};
|
|
5646
|
+
D[g] = M;
|
|
5647
|
+
var p = function p(t) {
|
|
5648
|
+
return t instanceof _;
|
|
5649
|
+
},
|
|
5650
|
+
S = function t(e, n, r) {
|
|
5651
|
+
var i;
|
|
5652
|
+
if (!e) return g;
|
|
5653
|
+
if ("string" == typeof e) {
|
|
5654
|
+
var s = e.toLowerCase();
|
|
5655
|
+
D[s] && (i = s), n && (D[s] = n, i = s);
|
|
5656
|
+
var u = e.split("-");
|
|
5657
|
+
if (!i && u.length > 1) return t(u[0]);
|
|
5937
5658
|
} else {
|
|
5938
|
-
|
|
5939
|
-
|
|
5940
|
-
d = coerceToLocal(d);
|
|
5941
|
-
}
|
|
5659
|
+
var a = e.name;
|
|
5660
|
+
D[a] = e, i = a;
|
|
5942
5661
|
}
|
|
5943
|
-
return
|
|
5944
|
-
}
|
|
5945
|
-
|
|
5946
|
-
|
|
5947
|
-
|
|
5948
|
-
|
|
5949
|
-
|
|
5950
|
-
|
|
5951
|
-
|
|
5952
|
-
|
|
5953
|
-
|
|
5954
|
-
|
|
5955
|
-
|
|
5956
|
-
|
|
5957
|
-
|
|
5958
|
-
if (formatString === undefined$1 || !valid(this)) {
|
|
5959
|
-
return this[0].toUTCString();
|
|
5960
|
-
} else {
|
|
5961
|
-
return format(this, formatString, settings, uniqueness, true);
|
|
5962
|
-
}
|
|
5963
|
-
};
|
|
5964
|
-
proto.toISOString = function () {
|
|
5965
|
-
return this.toUTCString(ISO_FORMAT_STRING_TZ);
|
|
5966
|
-
};
|
|
5967
|
-
XDate.defaultLocale = '';
|
|
5968
|
-
XDate.locales = {
|
|
5969
|
-
'': {
|
|
5970
|
-
monthNames: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
|
|
5971
|
-
monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
|
|
5972
|
-
dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
|
|
5973
|
-
dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
|
|
5974
|
-
amDesignator: 'AM',
|
|
5975
|
-
pmDesignator: 'PM'
|
|
5976
|
-
}
|
|
5977
|
-
};
|
|
5978
|
-
XDate.formatters = {
|
|
5979
|
-
i: ISO_FORMAT_STRING,
|
|
5980
|
-
u: ISO_FORMAT_STRING_TZ
|
|
5662
|
+
return !r && i && (g = i), i || !r && g;
|
|
5663
|
+
},
|
|
5664
|
+
w = function w(t, e) {
|
|
5665
|
+
if (p(t)) return t.clone();
|
|
5666
|
+
var n = "object" == typeof e ? e : {};
|
|
5667
|
+
return n.date = t, n.args = arguments, new _(n);
|
|
5668
|
+
},
|
|
5669
|
+
O = v;
|
|
5670
|
+
O.l = S, O.i = p, O.w = function (t, e) {
|
|
5671
|
+
return w(t, {
|
|
5672
|
+
locale: e.$L,
|
|
5673
|
+
utc: e.$u,
|
|
5674
|
+
x: e.$x,
|
|
5675
|
+
$offset: e.$offset
|
|
5676
|
+
});
|
|
5981
5677
|
};
|
|
5982
|
-
|
|
5983
|
-
|
|
5984
|
-
|
|
5985
|
-
|
|
5986
|
-
|
|
5987
|
-
|
|
5988
|
-
|
|
5989
|
-
|
|
5990
|
-
|
|
5991
|
-
|
|
5992
|
-
|
|
5993
|
-
|
|
5994
|
-
|
|
5995
|
-
|
|
5996
|
-
|
|
5997
|
-
|
|
5998
|
-
|
|
5999
|
-
|
|
6000
|
-
|
|
6001
|
-
|
|
6002
|
-
|
|
6003
|
-
|
|
6004
|
-
|
|
6005
|
-
|
|
6006
|
-
|
|
6007
|
-
|
|
6008
|
-
|
|
6009
|
-
|
|
6010
|
-
|
|
6011
|
-
|
|
6012
|
-
|
|
6013
|
-
|
|
6014
|
-
|
|
6015
|
-
|
|
5678
|
+
var _ = function () {
|
|
5679
|
+
function M(t) {
|
|
5680
|
+
this.$L = S(t.locale, null, !0), this.parse(t);
|
|
5681
|
+
}
|
|
5682
|
+
var m = M.prototype;
|
|
5683
|
+
return m.parse = function (t) {
|
|
5684
|
+
this.$d = function (t) {
|
|
5685
|
+
var e = t.date,
|
|
5686
|
+
n = t.utc;
|
|
5687
|
+
if (null === e) return new Date(NaN);
|
|
5688
|
+
if (O.u(e)) return new Date();
|
|
5689
|
+
if (e instanceof Date) return new Date(e);
|
|
5690
|
+
if ("string" == typeof e && !/Z$/i.test(e)) {
|
|
5691
|
+
var r = e.match($);
|
|
5692
|
+
if (r) {
|
|
5693
|
+
var i = r[2] - 1 || 0,
|
|
5694
|
+
s = (r[7] || "0").substring(0, 3);
|
|
5695
|
+
return n ? new Date(Date.UTC(r[1], i, r[3] || 1, r[4] || 0, r[5] || 0, r[6] || 0, s)) : new Date(r[1], i, r[3] || 1, r[4] || 0, r[5] || 0, r[6] || 0, s);
|
|
5696
|
+
}
|
|
5697
|
+
}
|
|
5698
|
+
return new Date(e);
|
|
5699
|
+
}(t), this.$x = t.x || {}, this.init();
|
|
5700
|
+
}, m.init = function () {
|
|
5701
|
+
var t = this.$d;
|
|
5702
|
+
this.$y = t.getFullYear(), this.$M = t.getMonth(), this.$D = t.getDate(), this.$W = t.getDay(), this.$H = t.getHours(), this.$m = t.getMinutes(), this.$s = t.getSeconds(), this.$ms = t.getMilliseconds();
|
|
5703
|
+
}, m.$utils = function () {
|
|
5704
|
+
return O;
|
|
5705
|
+
}, m.isValid = function () {
|
|
5706
|
+
return !(this.$d.toString() === l);
|
|
5707
|
+
}, m.isSame = function (t, e) {
|
|
5708
|
+
var n = w(t);
|
|
5709
|
+
return this.startOf(e) <= n && n <= this.endOf(e);
|
|
5710
|
+
}, m.isAfter = function (t, e) {
|
|
5711
|
+
return w(t) < this.startOf(e);
|
|
5712
|
+
}, m.isBefore = function (t, e) {
|
|
5713
|
+
return this.endOf(e) < w(t);
|
|
5714
|
+
}, m.$g = function (t, e, n) {
|
|
5715
|
+
return O.u(t) ? this[e] : this.set(n, t);
|
|
5716
|
+
}, m.unix = function () {
|
|
5717
|
+
return Math.floor(this.valueOf() / 1e3);
|
|
5718
|
+
}, m.valueOf = function () {
|
|
5719
|
+
return this.$d.getTime();
|
|
5720
|
+
}, m.startOf = function (t, e) {
|
|
5721
|
+
var n = this,
|
|
5722
|
+
r = !!O.u(e) || e,
|
|
5723
|
+
h = O.p(t),
|
|
5724
|
+
l = function l(t, e) {
|
|
5725
|
+
var i = O.w(n.$u ? Date.UTC(n.$y, e, t) : new Date(n.$y, e, t), n);
|
|
5726
|
+
return r ? i : i.endOf(a);
|
|
5727
|
+
},
|
|
5728
|
+
$ = function $(t, e) {
|
|
5729
|
+
return O.w(n.toDate()[t].apply(n.toDate("s"), (r ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e)), n);
|
|
5730
|
+
},
|
|
5731
|
+
y = this.$W,
|
|
5732
|
+
M = this.$M,
|
|
5733
|
+
m = this.$D,
|
|
5734
|
+
v = "set" + (this.$u ? "UTC" : "");
|
|
5735
|
+
switch (h) {
|
|
5736
|
+
case c:
|
|
5737
|
+
return r ? l(1, 0) : l(31, 11);
|
|
5738
|
+
case f:
|
|
5739
|
+
return r ? l(1, M) : l(0, M + 1);
|
|
5740
|
+
case o:
|
|
5741
|
+
var g = this.$locale().weekStart || 0,
|
|
5742
|
+
D = (y < g ? y + 7 : y) - g;
|
|
5743
|
+
return l(r ? m - D : m + (6 - D), M);
|
|
5744
|
+
case a:
|
|
5745
|
+
case d:
|
|
5746
|
+
return $(v + "Hours", 0);
|
|
5747
|
+
case u:
|
|
5748
|
+
return $(v + "Minutes", 1);
|
|
5749
|
+
case s:
|
|
5750
|
+
return $(v + "Seconds", 2);
|
|
5751
|
+
case i:
|
|
5752
|
+
return $(v + "Milliseconds", 3);
|
|
5753
|
+
default:
|
|
5754
|
+
return this.clone();
|
|
6016
5755
|
}
|
|
6017
|
-
}
|
|
6018
|
-
|
|
6019
|
-
|
|
6020
|
-
|
|
6021
|
-
|
|
6022
|
-
|
|
6023
|
-
|
|
6024
|
-
|
|
6025
|
-
|
|
6026
|
-
|
|
6027
|
-
|
|
6028
|
-
|
|
6029
|
-
|
|
6030
|
-
|
|
6031
|
-
|
|
6032
|
-
|
|
6033
|
-
|
|
6034
|
-
|
|
6035
|
-
|
|
6036
|
-
|
|
6037
|
-
|
|
6038
|
-
|
|
6039
|
-
|
|
6040
|
-
|
|
6041
|
-
|
|
6042
|
-
|
|
6043
|
-
|
|
6044
|
-
|
|
6045
|
-
|
|
6046
|
-
|
|
6047
|
-
|
|
6048
|
-
|
|
6049
|
-
|
|
6050
|
-
|
|
6051
|
-
return
|
|
6052
|
-
|
|
6053
|
-
|
|
6054
|
-
|
|
6055
|
-
|
|
6056
|
-
|
|
6057
|
-
|
|
6058
|
-
|
|
6059
|
-
|
|
6060
|
-
|
|
6061
|
-
|
|
6062
|
-
|
|
6063
|
-
|
|
6064
|
-
|
|
6065
|
-
|
|
6066
|
-
|
|
6067
|
-
|
|
6068
|
-
|
|
6069
|
-
|
|
6070
|
-
|
|
6071
|
-
|
|
6072
|
-
|
|
6073
|
-
|
|
6074
|
-
|
|
6075
|
-
|
|
6076
|
-
|
|
6077
|
-
|
|
6078
|
-
|
|
6079
|
-
|
|
6080
|
-
|
|
6081
|
-
|
|
6082
|
-
|
|
6083
|
-
|
|
6084
|
-
|
|
6085
|
-
|
|
6086
|
-
|
|
6087
|
-
|
|
6088
|
-
|
|
6089
|
-
|
|
6090
|
-
|
|
6091
|
-
|
|
6092
|
-
|
|
6093
|
-
|
|
6094
|
-
|
|
6095
|
-
|
|
6096
|
-
|
|
6097
|
-
|
|
6098
|
-
|
|
6099
|
-
return
|
|
6100
|
-
|
|
6101
|
-
|
|
6102
|
-
|
|
6103
|
-
return
|
|
6104
|
-
|
|
6105
|
-
var
|
|
6106
|
-
|
|
6107
|
-
|
|
6108
|
-
|
|
6109
|
-
|
|
6110
|
-
|
|
6111
|
-
|
|
6112
|
-
|
|
6113
|
-
|
|
6114
|
-
|
|
6115
|
-
|
|
6116
|
-
|
|
6117
|
-
|
|
6118
|
-
|
|
6119
|
-
|
|
6120
|
-
|
|
6121
|
-
|
|
6122
|
-
|
|
6123
|
-
|
|
6124
|
-
|
|
6125
|
-
|
|
6126
|
-
|
|
6127
|
-
|
|
6128
|
-
|
|
6129
|
-
|
|
6130
|
-
|
|
6131
|
-
|
|
6132
|
-
|
|
6133
|
-
|
|
6134
|
-
|
|
6135
|
-
|
|
6136
|
-
|
|
6137
|
-
proto.setTime = function (t) {
|
|
6138
|
-
this[0].setTime(t);
|
|
6139
|
-
return this; // for chaining
|
|
6140
|
-
};
|
|
6141
|
-
|
|
6142
|
-
proto.valid = methodize(valid);
|
|
6143
|
-
function valid(xdate) {
|
|
6144
|
-
return !isNaN(xdate[0].getTime());
|
|
6145
|
-
}
|
|
6146
|
-
proto.clone = function () {
|
|
6147
|
-
return new XDate(this);
|
|
6148
|
-
};
|
|
6149
|
-
proto.clearTime = function () {
|
|
6150
|
-
return this.setHours(0, 0, 0, 0); // will return an XDate for chaining
|
|
6151
|
-
};
|
|
6152
|
-
|
|
6153
|
-
proto.toDate = function () {
|
|
6154
|
-
return new Date(this[0].getTime());
|
|
6155
|
-
};
|
|
6156
|
-
|
|
6157
|
-
/* Misc Class Methods
|
|
6158
|
-
---------------------------------------------------------------------------------*/
|
|
6159
|
-
|
|
6160
|
-
XDate.now = function () {
|
|
6161
|
-
return new Date().getTime();
|
|
6162
|
-
};
|
|
6163
|
-
XDate.today = function () {
|
|
6164
|
-
return new XDate().clearTime();
|
|
6165
|
-
};
|
|
6166
|
-
XDate.UTC = UTC;
|
|
6167
|
-
XDate.getDaysInMonth = getDaysInMonth;
|
|
6168
|
-
|
|
6169
|
-
/* Internal Utilities
|
|
6170
|
-
---------------------------------------------------------------------------------*/
|
|
6171
|
-
|
|
6172
|
-
function _clone(xdate) {
|
|
6173
|
-
// returns the internal Date object that should be used
|
|
6174
|
-
var d = new Date(xdate[0].getTime());
|
|
6175
|
-
if (getUTCMode(xdate)) {
|
|
6176
|
-
d.toString = toUTCString;
|
|
6177
|
-
}
|
|
6178
|
-
return d;
|
|
6179
|
-
}
|
|
6180
|
-
function _getField(d, useUTC, fieldIndex) {
|
|
6181
|
-
return d['get' + (useUTC ? 'UTC' : '') + methodSubjects[fieldIndex]]();
|
|
6182
|
-
}
|
|
6183
|
-
function _setField(d, useUTC, fieldIndex, args) {
|
|
6184
|
-
d['set' + (useUTC ? 'UTC' : '') + methodSubjects[fieldIndex]].apply(d, args);
|
|
6185
|
-
}
|
|
6186
|
-
|
|
6187
|
-
/* Date Math Utilities
|
|
6188
|
-
---------------------------------------------------------------------------------*/
|
|
6189
|
-
|
|
6190
|
-
function coerceToUTC(date) {
|
|
6191
|
-
return new Date(UTC(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds()));
|
|
6192
|
-
}
|
|
6193
|
-
function coerceToLocal(date) {
|
|
6194
|
-
return new Date(date.getUTCFullYear(), date.getUTCMonth(), date.getUTCDate(), date.getUTCHours(), date.getUTCMinutes(), date.getUTCSeconds(), date.getUTCMilliseconds());
|
|
6195
|
-
}
|
|
6196
|
-
function getDaysInMonth(year, month) {
|
|
6197
|
-
return 32 - new Date(UTC(year, month, 32)).getUTCDate();
|
|
6198
|
-
}
|
|
6199
|
-
|
|
6200
|
-
/* General Utilities
|
|
6201
|
-
---------------------------------------------------------------------------------*/
|
|
6202
|
-
|
|
6203
|
-
function methodize(f) {
|
|
6204
|
-
return function () {
|
|
6205
|
-
return f.apply(undefined$1, [this].concat(slice(arguments)));
|
|
6206
|
-
};
|
|
6207
|
-
}
|
|
6208
|
-
function curry(f) {
|
|
6209
|
-
var firstArgs = slice(arguments, 1);
|
|
6210
|
-
return function () {
|
|
6211
|
-
return f.apply(undefined$1, firstArgs.concat(slice(arguments)));
|
|
5756
|
+
}, m.endOf = function (t) {
|
|
5757
|
+
return this.startOf(t, !1);
|
|
5758
|
+
}, m.$set = function (t, e) {
|
|
5759
|
+
var n,
|
|
5760
|
+
o = O.p(t),
|
|
5761
|
+
h = "set" + (this.$u ? "UTC" : ""),
|
|
5762
|
+
l = (n = {}, n[a] = h + "Date", n[d] = h + "Date", n[f] = h + "Month", n[c] = h + "FullYear", n[u] = h + "Hours", n[s] = h + "Minutes", n[i] = h + "Seconds", n[r] = h + "Milliseconds", n)[o],
|
|
5763
|
+
$ = o === a ? this.$D + (e - this.$W) : e;
|
|
5764
|
+
if (o === f || o === c) {
|
|
5765
|
+
var y = this.clone().set(d, 1);
|
|
5766
|
+
y.$d[l]($), y.init(), this.$d = y.set(d, Math.min(this.$D, y.daysInMonth())).$d;
|
|
5767
|
+
} else l && this.$d[l]($);
|
|
5768
|
+
return this.init(), this;
|
|
5769
|
+
}, m.set = function (t, e) {
|
|
5770
|
+
return this.clone().$set(t, e);
|
|
5771
|
+
}, m.get = function (t) {
|
|
5772
|
+
return this[O.p(t)]();
|
|
5773
|
+
}, m.add = function (r, h) {
|
|
5774
|
+
var d,
|
|
5775
|
+
l = this;
|
|
5776
|
+
r = Number(r);
|
|
5777
|
+
var $ = O.p(h),
|
|
5778
|
+
y = function y(t) {
|
|
5779
|
+
var e = w(l);
|
|
5780
|
+
return O.w(e.date(e.date() + Math.round(t * r)), l);
|
|
5781
|
+
};
|
|
5782
|
+
if ($ === f) return this.set(f, this.$M + r);
|
|
5783
|
+
if ($ === c) return this.set(c, this.$y + r);
|
|
5784
|
+
if ($ === a) return y(1);
|
|
5785
|
+
if ($ === o) return y(7);
|
|
5786
|
+
var M = (d = {}, d[s] = e, d[u] = n, d[i] = t, d)[$] || 1,
|
|
5787
|
+
m = this.$d.getTime() + r * M;
|
|
5788
|
+
return O.w(m, this);
|
|
5789
|
+
}, m.subtract = function (t, e) {
|
|
5790
|
+
return this.add(-1 * t, e);
|
|
5791
|
+
}, m.format = function (t) {
|
|
5792
|
+
var e = this,
|
|
5793
|
+
n = this.$locale();
|
|
5794
|
+
if (!this.isValid()) return n.invalidDate || l;
|
|
5795
|
+
var r = t || "YYYY-MM-DDTHH:mm:ssZ",
|
|
5796
|
+
i = O.z(this),
|
|
5797
|
+
s = this.$H,
|
|
5798
|
+
u = this.$m,
|
|
5799
|
+
a = this.$M,
|
|
5800
|
+
o = n.weekdays,
|
|
5801
|
+
f = n.months,
|
|
5802
|
+
h = function h(t, n, i, s) {
|
|
5803
|
+
return t && (t[n] || t(e, r)) || i[n].slice(0, s);
|
|
5804
|
+
},
|
|
5805
|
+
c = function c(t) {
|
|
5806
|
+
return O.s(s % 12 || 12, t, "0");
|
|
5807
|
+
},
|
|
5808
|
+
d = n.meridiem || function (t, e, n) {
|
|
5809
|
+
var r = t < 12 ? "AM" : "PM";
|
|
5810
|
+
return n ? r.toLowerCase() : r;
|
|
5811
|
+
},
|
|
5812
|
+
$ = {
|
|
5813
|
+
YY: String(this.$y).slice(-2),
|
|
5814
|
+
YYYY: this.$y,
|
|
5815
|
+
M: a + 1,
|
|
5816
|
+
MM: O.s(a + 1, 2, "0"),
|
|
5817
|
+
MMM: h(n.monthsShort, a, f, 3),
|
|
5818
|
+
MMMM: h(f, a),
|
|
5819
|
+
D: this.$D,
|
|
5820
|
+
DD: O.s(this.$D, 2, "0"),
|
|
5821
|
+
d: String(this.$W),
|
|
5822
|
+
dd: h(n.weekdaysMin, this.$W, o, 2),
|
|
5823
|
+
ddd: h(n.weekdaysShort, this.$W, o, 3),
|
|
5824
|
+
dddd: o[this.$W],
|
|
5825
|
+
H: String(s),
|
|
5826
|
+
HH: O.s(s, 2, "0"),
|
|
5827
|
+
h: c(1),
|
|
5828
|
+
hh: c(2),
|
|
5829
|
+
a: d(s, u, !0),
|
|
5830
|
+
A: d(s, u, !1),
|
|
5831
|
+
m: String(u),
|
|
5832
|
+
mm: O.s(u, 2, "0"),
|
|
5833
|
+
s: String(this.$s),
|
|
5834
|
+
ss: O.s(this.$s, 2, "0"),
|
|
5835
|
+
SSS: O.s(this.$ms, 3, "0"),
|
|
5836
|
+
Z: i
|
|
5837
|
+
};
|
|
5838
|
+
return r.replace(y, function (t, e) {
|
|
5839
|
+
return e || $[t] || i.replace(":", "");
|
|
5840
|
+
});
|
|
5841
|
+
}, m.utcOffset = function () {
|
|
5842
|
+
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
5843
|
+
}, m.diff = function (r, d, l) {
|
|
5844
|
+
var $,
|
|
5845
|
+
y = O.p(d),
|
|
5846
|
+
M = w(r),
|
|
5847
|
+
m = (M.utcOffset() - this.utcOffset()) * e,
|
|
5848
|
+
v = this - M,
|
|
5849
|
+
g = O.m(this, M);
|
|
5850
|
+
return g = ($ = {}, $[c] = g / 12, $[f] = g, $[h] = g / 3, $[o] = (v - m) / 6048e5, $[a] = (v - m) / 864e5, $[u] = v / n, $[s] = v / e, $[i] = v / t, $)[y] || v, l ? g : O.a(g);
|
|
5851
|
+
}, m.daysInMonth = function () {
|
|
5852
|
+
return this.endOf(f).$D;
|
|
5853
|
+
}, m.$locale = function () {
|
|
5854
|
+
return D[this.$L];
|
|
5855
|
+
}, m.locale = function (t, e) {
|
|
5856
|
+
if (!t) return this.$L;
|
|
5857
|
+
var n = this.clone(),
|
|
5858
|
+
r = S(t, e, !0);
|
|
5859
|
+
return r && (n.$L = r), n;
|
|
5860
|
+
}, m.clone = function () {
|
|
5861
|
+
return O.w(this.$d, this);
|
|
5862
|
+
}, m.toDate = function () {
|
|
5863
|
+
return new Date(this.valueOf());
|
|
5864
|
+
}, m.toJSON = function () {
|
|
5865
|
+
return this.isValid() ? this.toISOString() : null;
|
|
5866
|
+
}, m.toISOString = function () {
|
|
5867
|
+
return this.$d.toISOString();
|
|
5868
|
+
}, m.toString = function () {
|
|
5869
|
+
return this.$d.toUTCString();
|
|
5870
|
+
}, M;
|
|
5871
|
+
}(),
|
|
5872
|
+
T = _.prototype;
|
|
5873
|
+
return w.prototype = T, [["$ms", r], ["$s", i], ["$m", s], ["$H", u], ["$W", a], ["$M", f], ["$y", c], ["$D", d]].forEach(function (t) {
|
|
5874
|
+
T[t[1]] = function (e) {
|
|
5875
|
+
return this.$g(e, t[0], t[1]);
|
|
6212
5876
|
};
|
|
6213
|
-
}
|
|
6214
|
-
|
|
6215
|
-
|
|
6216
|
-
|
|
6217
|
-
|
|
6218
|
-
|
|
6219
|
-
function each(a, f) {
|
|
6220
|
-
for (var i = 0; i < a.length; i++) {
|
|
6221
|
-
f(a[i], i);
|
|
6222
|
-
}
|
|
6223
|
-
}
|
|
6224
|
-
function isString(arg) {
|
|
6225
|
-
return typeof arg == 'string';
|
|
6226
|
-
}
|
|
6227
|
-
function isNumber(arg) {
|
|
6228
|
-
return typeof arg == 'number';
|
|
6229
|
-
}
|
|
6230
|
-
function isBoolean(arg) {
|
|
6231
|
-
return typeof arg == 'boolean';
|
|
6232
|
-
}
|
|
6233
|
-
function isFunction(arg) {
|
|
6234
|
-
return typeof arg == 'function';
|
|
6235
|
-
}
|
|
6236
|
-
function zeroPad(n, len) {
|
|
6237
|
-
len = len || 2;
|
|
6238
|
-
n += '';
|
|
6239
|
-
while (n.length < len) {
|
|
6240
|
-
n = '0' + n;
|
|
6241
|
-
}
|
|
6242
|
-
return n;
|
|
6243
|
-
}
|
|
6244
|
-
|
|
6245
|
-
// Export for Node.js
|
|
6246
|
-
if ( module.exports) {
|
|
6247
|
-
module.exports = XDate;
|
|
6248
|
-
}
|
|
6249
|
-
|
|
6250
|
-
// AMD
|
|
6251
|
-
if (typeof undefined$1 === 'function' && undefined$1.amd) {
|
|
6252
|
-
undefined$1([], function () {
|
|
6253
|
-
return XDate;
|
|
6254
|
-
});
|
|
6255
|
-
}
|
|
6256
|
-
return XDate;
|
|
6257
|
-
}(Date, Math, Array);
|
|
5877
|
+
}), w.extend = function (t, e) {
|
|
5878
|
+
return t.$i || (t(e, _, w), t.$i = !0), w;
|
|
5879
|
+
}, w.locale = S, w.isDayjs = p, w.unix = function (t) {
|
|
5880
|
+
return w(1e3 * t);
|
|
5881
|
+
}, w.en = D[g], w.Ls = D, w.p = {}, w;
|
|
5882
|
+
});
|
|
6258
5883
|
});
|
|
6259
5884
|
|
|
6260
5885
|
var transform = createCommonjsModule(function (module, exports) {
|
|
@@ -6275,7 +5900,7 @@
|
|
|
6275
5900
|
};
|
|
6276
5901
|
var _componentToTypeMap;
|
|
6277
5902
|
exports.flatReactProp = flatReactProp;
|
|
6278
|
-
var
|
|
5903
|
+
var _dayjs2 = _interopRequireDefault(dayjs_min);
|
|
6279
5904
|
var _dateFormats2 = _interopRequireDefault(dateFormats_1);
|
|
6280
5905
|
function _interopRequireDefault(obj) {
|
|
6281
5906
|
return obj && obj.__esModule ? obj : {
|
|
@@ -6503,8 +6128,8 @@
|
|
|
6503
6128
|
if (value) {
|
|
6504
6129
|
if ((0, helper.isValidDateRangeQueryFormat)(componentProps.queryFormat)) {
|
|
6505
6130
|
value = {
|
|
6506
|
-
start: (0, helper.formatDate)(
|
|
6507
|
-
end: (0, helper.formatDate)(
|
|
6131
|
+
start: (0, helper.formatDate)((0, _dayjs2["default"])(new Date(value.start)), componentProps),
|
|
6132
|
+
end: (0, helper.formatDate)((0, _dayjs2["default"])(new Date(value.end)), componentProps)
|
|
6508
6133
|
};
|
|
6509
6134
|
} else {
|
|
6510
6135
|
value = {
|
|
@@ -6533,8 +6158,8 @@
|
|
|
6533
6158
|
if (rangeValue) {
|
|
6534
6159
|
if ((0, helper.isValidDateRangeQueryFormat)(componentProps.queryFormat)) {
|
|
6535
6160
|
range = {
|
|
6536
|
-
start: (0, helper.formatDate)(
|
|
6537
|
-
end: (0, helper.formatDate)(
|
|
6161
|
+
start: (0, helper.formatDate)((0, _dayjs2["default"])(rangeValue.start), componentProps),
|
|
6162
|
+
end: (0, helper.formatDate)((0, _dayjs2["default"])(rangeValue.end), componentProps)
|
|
6538
6163
|
};
|
|
6539
6164
|
} else {
|
|
6540
6165
|
range = {
|
|
@@ -6549,20 +6174,20 @@
|
|
|
6549
6174
|
if ((0, helper.isValidDateRangeQueryFormat)(componentProps.queryFormat)) {
|
|
6550
6175
|
if (typeof value === 'string') {
|
|
6551
6176
|
value = {
|
|
6552
|
-
start: (0, helper.formatDate)(
|
|
6553
|
-
end: (0, helper.formatDate)(
|
|
6177
|
+
start: (0, helper.formatDate)((0, _dayjs2["default"])(value).subtract(24, 'hour'), componentProps),
|
|
6178
|
+
end: (0, helper.formatDate)((0, _dayjs2["default"])(value), componentProps)
|
|
6554
6179
|
};
|
|
6555
6180
|
} else if (Array.isArray(value)) {
|
|
6556
6181
|
value = value.map(function (val) {
|
|
6557
6182
|
return {
|
|
6558
|
-
start: (0, helper.formatDate)(
|
|
6559
|
-
end: (0, helper.formatDate)(
|
|
6183
|
+
start: (0, helper.formatDate)((0, _dayjs2["default"])(val).subtract(24, 'hour'), componentProps),
|
|
6184
|
+
end: (0, helper.formatDate)((0, _dayjs2["default"])(val), componentProps)
|
|
6560
6185
|
};
|
|
6561
6186
|
});
|
|
6562
6187
|
} else {
|
|
6563
6188
|
value = {
|
|
6564
|
-
start: (0, helper.formatDate)(
|
|
6565
|
-
end: (0, helper.formatDate)(
|
|
6189
|
+
start: (0, helper.formatDate)((0, _dayjs2["default"])(value.start).subtract(24, 'hour'), componentProps),
|
|
6190
|
+
end: (0, helper.formatDate)((0, _dayjs2["default"])(value.end), componentProps)
|
|
6566
6191
|
};
|
|
6567
6192
|
}
|
|
6568
6193
|
}
|
|
@@ -6844,10 +6469,10 @@
|
|
|
6844
6469
|
if (queryFormat) {
|
|
6845
6470
|
if (Array.isArray(value)) {
|
|
6846
6471
|
transformedValue = value.map(function (item) {
|
|
6847
|
-
return (0, helper.formatDate)(
|
|
6472
|
+
return (0, helper.formatDate)((0, _dayjs2["default"])(item), componentProps);
|
|
6848
6473
|
});
|
|
6849
6474
|
} else if (typeof value === 'object') {
|
|
6850
|
-
transformedValue = [(0, helper.formatDate)(
|
|
6475
|
+
transformedValue = [(0, helper.formatDate)((0, _dayjs2["default"])(value.start), componentProps), (0, helper.formatDate)((0, _dayjs2["default"])(value.end), componentProps)];
|
|
6851
6476
|
}
|
|
6852
6477
|
} else if (Array.isArray(value)) {
|
|
6853
6478
|
transformedValue = [].concat(_toConsumableArray(value));
|
|
@@ -6868,21 +6493,21 @@
|
|
|
6868
6493
|
case constants$1.componentTypes.datePicker:
|
|
6869
6494
|
transformedValue = '';
|
|
6870
6495
|
if (typeof value !== 'object') {
|
|
6871
|
-
transformedValue =
|
|
6496
|
+
transformedValue = (0, _dayjs2["default"])(value).format('YYYY-MM-DD');
|
|
6872
6497
|
} else if (value.end) {
|
|
6873
|
-
transformedValue =
|
|
6498
|
+
transformedValue = (0, _dayjs2["default"])(value.end).format('YYYY-MM-DD');
|
|
6874
6499
|
} else if (value.start) {
|
|
6875
|
-
transformedValue =
|
|
6500
|
+
transformedValue = (0, _dayjs2["default"])(value.start).add(24, 'hour').format('YYYY-MM-DD');
|
|
6876
6501
|
}
|
|
6877
6502
|
break;
|
|
6878
6503
|
case constants$1.componentTypes.dateRange:
|
|
6879
6504
|
transformedValue = [];
|
|
6880
6505
|
if (Array.isArray(value)) {
|
|
6881
6506
|
transformedValue = value.map(function (t) {
|
|
6882
|
-
return
|
|
6507
|
+
return (0, _dayjs2["default"])(t).format('YYYY-MM-DD');
|
|
6883
6508
|
});
|
|
6884
6509
|
} else if (typeof value === 'object') {
|
|
6885
|
-
transformedValue = [
|
|
6510
|
+
transformedValue = [(0, _dayjs2["default"])(value.start).format('YYYY-MM-DD'), (0, _dayjs2["default"])(value.end).format('YYYY-MM-DD')];
|
|
6886
6511
|
}
|
|
6887
6512
|
break;
|
|
6888
6513
|
case constants$1.componentTypes.categorySearch:
|
|
@@ -7855,10 +7480,8 @@
|
|
|
7855
7480
|
settings.enableQueryRules = (0, utils.isPropertyDefined)(config.analyticsConfig.enableQueryRules) ? config.analyticsConfig.enableQueryRules : undefined;
|
|
7856
7481
|
settings.customEvents = (0, utils.isPropertyDefined)(config.analyticsConfig.customEvents) ? config.analyticsConfig.customEvents : undefined;
|
|
7857
7482
|
settings.emptyQuery = (0, utils.isPropertyDefined)(config.analyticsConfig.emptyQuery) ? config.analyticsConfig.emptyQuery : undefined;
|
|
7858
|
-
|
|
7859
|
-
|
|
7860
|
-
settings.enableSearchRelevancy = config.analyticsConfig.enableSearchRelevancy;
|
|
7861
|
-
}
|
|
7483
|
+
var searchRelevancy = config.analyticsConfig.enableSearchRelevancy;
|
|
7484
|
+
settings.enableSearchRelevancy = (0, utils.isPropertyDefined)(searchRelevancy) ? searchRelevancy : undefined;
|
|
7862
7485
|
settings.suggestionAnalytics = (0, utils.isPropertyDefined)(config.analyticsConfig.suggestionAnalytics) ? config.analyticsConfig.suggestionAnalytics : undefined;
|
|
7863
7486
|
settings.useCache = (0, utils.isPropertyDefined)(config.analyticsConfig.useCache) ? config.analyticsConfig.useCache : undefined;
|
|
7864
7487
|
settings.queryParams = (0, utils.isPropertyDefined)(config.analyticsConfig.queryParams) ? config.analyticsConfig.queryParams : undefined;
|
|
@@ -7909,7 +7532,7 @@
|
|
|
7909
7532
|
dependencyTree = _getState3.dependencyTree,
|
|
7910
7533
|
queryList = _getState3.queryList,
|
|
7911
7534
|
queryOptions = _getState3.queryOptions;
|
|
7912
|
-
var lockTime = config.initialQueriesSyncTime;
|
|
7535
|
+
var lockTime = config.initialQueriesSyncTime || 50;
|
|
7913
7536
|
var initialTimestamp = config.initialTimestamp;
|
|
7914
7537
|
var queryId = requestId || new Date().getTime();
|
|
7915
7538
|
if (config.queryLockConfig instanceof Object) {
|
|
@@ -8253,10 +7876,10 @@
|
|
|
8253
7876
|
timestamp: timestamp
|
|
8254
7877
|
};
|
|
8255
7878
|
}
|
|
8256
|
-
function addComponent(component) {
|
|
7879
|
+
function addComponent(component, timestamp) {
|
|
8257
7880
|
return function (dispatch) {
|
|
8258
7881
|
dispatch(addComponentToList(component));
|
|
8259
|
-
dispatch(addComponentTimestamp(component,
|
|
7882
|
+
dispatch(addComponentTimestamp(component, timestamp));
|
|
8260
7883
|
};
|
|
8261
7884
|
}
|
|
8262
7885
|
function removeComponent(component) {
|
|
@@ -13152,7 +12775,7 @@
|
|
|
13152
12775
|
// or component is not present in store
|
|
13153
12776
|
if (this.destroyOnUnmount || components.indexOf(this.componentProps.componentId) === -1) {
|
|
13154
12777
|
// Register component
|
|
13155
|
-
this.addComponent(this.componentId);
|
|
12778
|
+
this.addComponent(this.componentId, this.$timestamp);
|
|
13156
12779
|
var onQueryChange = function onQueryChange() {
|
|
13157
12780
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
13158
12781
|
args[_key] = arguments[_key];
|
|
@@ -13174,7 +12797,7 @@
|
|
|
13174
12797
|
}
|
|
13175
12798
|
// Register internal component
|
|
13176
12799
|
if (this.internalComponent && (this.destroyOnUnmount || components.indexOf(this.internalComponent) === -1)) {
|
|
13177
|
-
this.addComponent(this.internalComponent);
|
|
12800
|
+
this.addComponent(this.internalComponent, this.$timestamp);
|
|
13178
12801
|
this.setComponentProps(this.internalComponent, this.componentProps, options.componentType);
|
|
13179
12802
|
}
|
|
13180
12803
|
},
|
|
@@ -13323,9 +12946,7 @@
|
|
|
13323
12946
|
}
|
|
13324
12947
|
}
|
|
13325
12948
|
});
|
|
13326
|
-
return vue.h(component,
|
|
13327
|
-
attrs: componentProps
|
|
13328
|
-
}, this.$slots);
|
|
12949
|
+
return vue.h(component, componentProps, this.$slots);
|
|
13329
12950
|
}
|
|
13330
12951
|
};
|
|
13331
12952
|
};
|
|
@@ -13601,7 +13222,7 @@
|
|
|
13601
13222
|
}
|
|
13602
13223
|
},
|
|
13603
13224
|
render: function render() {
|
|
13604
|
-
return this.$slots["default"];
|
|
13225
|
+
return this.$slots["default"]();
|
|
13605
13226
|
}
|
|
13606
13227
|
};
|
|
13607
13228
|
var mapDispatchToProps$1 = {
|
|
@@ -16859,7 +16480,8 @@
|
|
|
16859
16480
|
},
|
|
16860
16481
|
render: function render() {
|
|
16861
16482
|
var _this = this;
|
|
16862
|
-
var
|
|
16483
|
+
var _slot;
|
|
16484
|
+
var children = this.$slots["default"];
|
|
16863
16485
|
var _this$$props2 = this.$props,
|
|
16864
16486
|
style = _this$$props2.style,
|
|
16865
16487
|
className = _this$$props2.className;
|
|
@@ -16875,9 +16497,9 @@
|
|
|
16875
16497
|
"className": className,
|
|
16876
16498
|
"getSearchParams": _this.getSearchParams,
|
|
16877
16499
|
"setSearchParams": _this.setSearchParams
|
|
16878
|
-
}, _isSlot$4(children) ?
|
|
16500
|
+
}, _isSlot$4(_slot = children()) ? _slot : {
|
|
16879
16501
|
"default": function _default() {
|
|
16880
|
-
return [
|
|
16502
|
+
return [_slot];
|
|
16881
16503
|
}
|
|
16882
16504
|
})];
|
|
16883
16505
|
}
|
|
@@ -17517,7 +17139,7 @@
|
|
|
17517
17139
|
return props.alert && alertBorder;
|
|
17518
17140
|
});
|
|
17519
17141
|
var suggestions$1 = function suggestions(themePreset, theme) {
|
|
17520
|
-
return css(_templateObject2$4 || (_templateObject2$4 = _taggedTemplateLiteralLoose(["\n\tdisplay: block;\n\twidth: 100%;\n\tborder: 1px solid #ccc;\n\tborder-top: none;\n\tbackground-color: #fff;\n\tfont-size: 0.9rem;\n\tz-index: 3;\n\tposition: absolute;\n\tmargin: 0;\n\tpadding: 0;\n\tlist-style: none;\n\tmax-height: min(100vh, 402px);\n\toverflow-y: auto;\n\n\t&.small {\n\t\ttop: 30px;\n\t}\n\n\tli {\n\t\tdisplay: flex;\n\t\tjustify-content: space-between;\n\t\tcursor: pointer;\n\t\tpadding: 10px;\n\t\tuser-select: none;\n\n\t\t& > .trim {\n\t\t\tdisplay: -webkit-box;\n\t\t\tdisplay:
|
|
17142
|
+
return css(_templateObject2$4 || (_templateObject2$4 = _taggedTemplateLiteralLoose(["\n\tdisplay: block;\n\twidth: 100%;\n\tborder: 1px solid #ccc;\n\tborder-top: none;\n\tbackground-color: #fff;\n\tfont-size: 0.9rem;\n\tz-index: 3;\n\tposition: absolute;\n\tmargin: 0;\n\tpadding: 0;\n\tlist-style: none;\n\tmax-height: min(100vh, 402px);\n\toverflow-y: auto;\n\n\t&.small {\n\t\ttop: 30px;\n\t}\n\n\tli {\n\t\tdisplay: flex;\n\t\tjustify-content: space-between;\n\t\tcursor: pointer;\n\t\tpadding: 10px;\n\t\tuser-select: none;\n\n\t\t& > .trim {\n\t\t\tdisplay: -webkit-box;\n\t\t\tdisplay: flex;\n\t\t\twidth: 100%;\n\t\t\tmax-height: 2.3rem;\n\t\t\tline-height: 1.2rem;\n\t\t\t-webkit-line-clamp: 2;\n\t\t\t-webkit-box-orient: vertical;\n\t\t\toverflow: hidden;\n\t\t\ttext-overflow: ellipsis;\n\t\t\twhite-space: nowrap;\n\t\t}\n\n\t\t&:hover,\n\t\t&:focus {\n\t\t\tbackground-color: #eee;\n\t\t}\n\t}\n\n\t", ";\n"])), themePreset === 'dark' && theme && dark$1(theme));
|
|
17521
17143
|
};
|
|
17522
17144
|
var suggestionsContainer = css(_templateObject3$3 || (_templateObject3$3 = _taggedTemplateLiteralLoose(["\n\tposition: relative;\n\t.cancel-icon {\n\t\tcursor: pointer;\n\t}\n"])));
|
|
17523
17145
|
var noSuggestions = function noSuggestions(themePreset, theme) {
|
|
@@ -17575,7 +17197,9 @@
|
|
|
17575
17197
|
|
|
17576
17198
|
var Downshift = {
|
|
17577
17199
|
// eslint-disable-next-line
|
|
17578
|
-
props: ['isOpen', 'inputValue', 'selectedItem', 'highlightedIndex', 'handleChange',
|
|
17200
|
+
props: ['isOpen', 'inputValue', 'selectedItem', 'highlightedIndex', 'handleChange',
|
|
17201
|
+
// 'itemToString',
|
|
17202
|
+
'handleMouseup'],
|
|
17579
17203
|
data: function data() {
|
|
17580
17204
|
return {
|
|
17581
17205
|
isMouseDown: false,
|
|
@@ -19126,7 +18750,6 @@
|
|
|
19126
18750
|
showFilter: Q.bool.def(true),
|
|
19127
18751
|
showIcon: Q.bool.def(true),
|
|
19128
18752
|
title: types.title,
|
|
19129
|
-
theme: types.style,
|
|
19130
18753
|
URLParams: Q.bool.def(false),
|
|
19131
18754
|
strictSelection: Q.bool.def(false),
|
|
19132
18755
|
nestedField: types.string,
|
|
@@ -19621,9 +19244,7 @@
|
|
|
19621
19244
|
if (finalSuggestionsList === void 0) {
|
|
19622
19245
|
finalSuggestionsList = [];
|
|
19623
19246
|
}
|
|
19624
|
-
var
|
|
19625
|
-
theme = _this$$props2.theme,
|
|
19626
|
-
innerClass = _this$$props2.innerClass;
|
|
19247
|
+
var innerClass = this.$props.innerClass;
|
|
19627
19248
|
var renderNoSuggestion = this.$slots.renderNoSuggestion || this.$props.renderNoSuggestion;
|
|
19628
19249
|
var renderError = this.$slots.renderError || this.$props.renderError;
|
|
19629
19250
|
var _this$$data = this.$data,
|
|
@@ -19633,7 +19254,7 @@
|
|
|
19633
19254
|
return vue.createVNode(SuggestionWrapper, {
|
|
19634
19255
|
"innerClass": innerClass,
|
|
19635
19256
|
"themePreset": this.themePreset,
|
|
19636
|
-
"theme": theme,
|
|
19257
|
+
"theme": this.theme,
|
|
19637
19258
|
"innerClassName": "noSuggestion"
|
|
19638
19259
|
}, {
|
|
19639
19260
|
"default": function _default() {
|
|
@@ -19680,9 +19301,9 @@
|
|
|
19680
19301
|
},
|
|
19681
19302
|
renderEnterButtonElement: function renderEnterButtonElement() {
|
|
19682
19303
|
var _this5 = this;
|
|
19683
|
-
var _this$$
|
|
19684
|
-
enterButton = _this$$
|
|
19685
|
-
innerClass = _this$$
|
|
19304
|
+
var _this$$props2 = this.$props,
|
|
19305
|
+
enterButton = _this$$props2.enterButton,
|
|
19306
|
+
innerClass = _this$$props2.innerClass;
|
|
19686
19307
|
var renderEnterButton = this.$slots.renderEnterButton;
|
|
19687
19308
|
if (enterButton) {
|
|
19688
19309
|
var getEnterButtonMarkup = function getEnterButtonMarkup() {
|
|
@@ -19708,13 +19329,13 @@
|
|
|
19708
19329
|
renderIcons: function renderIcons() {
|
|
19709
19330
|
var _this6 = this;
|
|
19710
19331
|
var _slot3, _slot4, _slot5;
|
|
19711
|
-
var _this$$
|
|
19712
|
-
iconPosition = _this$$
|
|
19713
|
-
showClear = _this$$
|
|
19714
|
-
innerClass = _this$$
|
|
19715
|
-
getMicInstance = _this$$
|
|
19716
|
-
showVoiceSearch = _this$$
|
|
19717
|
-
showIcon = _this$$
|
|
19332
|
+
var _this$$props3 = this.$props,
|
|
19333
|
+
iconPosition = _this$$props3.iconPosition,
|
|
19334
|
+
showClear = _this$$props3.showClear,
|
|
19335
|
+
innerClass = _this$$props3.innerClass,
|
|
19336
|
+
getMicInstance = _this$$props3.getMicInstance,
|
|
19337
|
+
showVoiceSearch = _this$$props3.showVoiceSearch,
|
|
19338
|
+
showIcon = _this$$props3.showIcon;
|
|
19718
19339
|
var renderMic = this.$slots.renderMic || this.$props.renderMic;
|
|
19719
19340
|
var currentValue = this.$data.currentValue;
|
|
19720
19341
|
return vue.createVNode("div", null, [vue.createVNode(IconGroup, {
|
|
@@ -19885,9 +19506,7 @@
|
|
|
19885
19506
|
},
|
|
19886
19507
|
render: function render() {
|
|
19887
19508
|
var _this11 = this;
|
|
19888
|
-
var
|
|
19889
|
-
theme = _this$$props5.theme,
|
|
19890
|
-
expandSuggestionsContainer = _this$$props5.expandSuggestionsContainer;
|
|
19509
|
+
var expandSuggestionsContainer = this.$props.expandSuggestionsContainer;
|
|
19891
19510
|
var _this$$slots = this.$slots,
|
|
19892
19511
|
recentSearchesIcon = _this$$slots.recentSearchesIcon,
|
|
19893
19512
|
popularSearchesIcon = _this$$slots.popularSearchesIcon;
|
|
@@ -19934,7 +19553,7 @@
|
|
|
19934
19553
|
getItemEvents: getItemEvents,
|
|
19935
19554
|
highlightedIndex: highlightedIndex
|
|
19936
19555
|
}), _this11.renderErrorComponent(), !_this11.hasCustomRenderer && isOpen && hasSuggestions ? vue.createVNode("ul", {
|
|
19937
|
-
"class": suggestions$1(_this11.themePreset, theme) + " " + getClassName$3(_this11.$props.innerClass, 'list')
|
|
19556
|
+
"class": suggestions$1(_this11.themePreset, _this11.theme) + " " + getClassName$3(_this11.$props.innerClass, 'list')
|
|
19938
19557
|
}, [_this11.normalizedSuggestions.map(function (item, index) {
|
|
19939
19558
|
return renderItem ? vue.createVNode("li", vue.mergeProps(getItemProps({
|
|
19940
19559
|
item: item
|
|
@@ -20333,7 +19952,7 @@
|
|
|
20333
19952
|
return isFunction(renderErrorCalc) ? renderErrorCalc(this.error) : renderErrorCalc;
|
|
20334
19953
|
}
|
|
20335
19954
|
if (!this.hasCustomRenderer && this.modifiedOptions.length === 0 && !this.isLoading) {
|
|
20336
|
-
if (this.
|
|
19955
|
+
if (this.renderNoResults) {
|
|
20337
19956
|
this.renderNoResult();
|
|
20338
19957
|
} else {
|
|
20339
19958
|
return null;
|
|
@@ -20745,7 +20364,7 @@
|
|
|
20745
20364
|
return isFunction(renderErrorCalc) ? renderErrorCalc(this.error) : renderErrorCalc;
|
|
20746
20365
|
}
|
|
20747
20366
|
if (!this.hasCustomRenderer && this.modifiedOptions.length === 0 && !this.isLoading) {
|
|
20748
|
-
if (this.
|
|
20367
|
+
if (this.renderNoResults) {
|
|
20749
20368
|
this.renderNoResult();
|
|
20750
20369
|
} else {
|
|
20751
20370
|
return null;
|
|
@@ -22504,6 +22123,216 @@
|
|
|
22504
22123
|
var _templateObject$o;
|
|
22505
22124
|
var Slider = styled('div')(_templateObject$o || (_templateObject$o = _taggedTemplateLiteralLoose(["\n\tmargin-top: 30px;\n\tpadding: 10px;\n\n\t/* component style */\n\t.vue-slider-disabled {\n\t\topacity: 0.5;\n\t\tcursor: not-allowed;\n\t}\n\n\t/* rail style */\n\t.vue-slider-rail {\n\t\tbackground-color: #ccc;\n\t\tborder-radius: 15px;\n\t\theight: 4px;\n\t}\n\n\t/* process style */\n\t.vue-slider-process {\n\t\tbackground-color: #0b6aff;\n\t\tborder-radius: 15px;\n\t}\n\n\t/* mark style */\n\t.vue-slider-mark {\n\t\tz-index: 4;\n\t}\n\n\t.vue-slider-mark:first-child .vue-slider-mark-step,\n\t.vue-slider-mark:last-child .vue-slider-mark-step {\n\t\tdisplay: none;\n\t}\n\n\t.vue-slider-mark-step {\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tborder-radius: 50%;\n\t\tbackground-color: rgba(0, 0, 0, 0.16);\n\t}\n\n\t.vue-slider-mark-label {\n\t\tfont-size: 14px;\n\t\twhite-space: nowrap;\n\t}\n\n\t/* dot style */\n\t.vue-slider-dot {\n\t\tz-index: 2;\n\t}\n\n\t.vue-slider-dot-handle {\n\t\tcursor: pointer;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tborder-radius: 50%;\n\t\tbackground-color: #fff;\n\t\tbox-sizing: border-box;\n\t\tborder: 1px solid #9a9a9a;\n\t\tz-index: 2;\n\t\tbox-shadow: 0.5px 0.5px 2px 1px rgb(0 0 0 / 32%);\n\t}\n\n\t.vue-slider-dot-handle-disabled {\n\t\tcursor: not-allowed;\n\t\tbackground-color: #ccc;\n\t}\n\n\t.vue-slider-dot-tooltip-inner {\n\t\tfont-size: 14px;\n\t\twhite-space: nowrap;\n\t\tpadding: 2px 5px;\n\t\tmin-width: 20px;\n\t\ttext-align: center;\n\t\tcolor: #fff;\n\t\tborder-radius: 5px;\n\t\tborder: 1px solid #3498db;\n\t\tbackground-color: #3498db;\n\t\tbox-sizing: content-box;\n\t}\n\n\t.vue-slider-dot-tooltip-inner::after {\n\t\tcontent: '';\n\t\tposition: absolute;\n\t}\n\n\t.vue-slider-dot-tooltip-inner-top::after {\n\t\ttop: 100%;\n\t\tleft: 50%;\n\t\ttransform: translate(-50%, 0);\n\t\theight: 0;\n\t\twidth: 0;\n\t\tborder-color: transparent;\n\t\tborder-style: solid;\n\t\tborder-width: 5px;\n\t\tborder-top-color: inherit;\n\t}\n\n\t.vue-slider-dot-tooltip-inner-bottom::after {\n\t\tbottom: 100%;\n\t\tleft: 50%;\n\t\ttransform: translate(-50%, 0);\n\t\theight: 0;\n\t\twidth: 0;\n\t\tborder-color: transparent;\n\t\tborder-style: solid;\n\t\tborder-width: 5px;\n\t\tborder-bottom-color: inherit;\n\t}\n\n\t.vue-slider-dot-tooltip-inner-left::after {\n\t\tleft: 100%;\n\t\ttop: 50%;\n\t\ttransform: translate(0, -50%);\n\t\theight: 0;\n\t\twidth: 0;\n\t\tborder-color: transparent;\n\t\tborder-style: solid;\n\t\tborder-width: 5px;\n\t\tborder-left-color: inherit;\n\t}\n\n\t.vue-slider-dot-tooltip-inner-right::after {\n\t\tright: 100%;\n\t\ttop: 50%;\n\t\ttransform: translate(0, -50%);\n\t\theight: 0;\n\t\twidth: 0;\n\t\tborder-color: transparent;\n\t\tborder-style: solid;\n\t\tborder-width: 5px;\n\t\tborder-right-color: inherit;\n\t}\n\n\t.vue-slider-dot-tooltip-wrapper {\n\t\topacity: 0;\n\t\ttransition: all 0.3s;\n\t}\n\t.vue-slider-dot-tooltip-wrapper-show {\n\t\topacity: 1;\n\t}\n\n\t.label-container {\n\t\tmargin: 10px 0;\n\t\twidth: 100%;\n\t}\n\n\t.range-label-right {\n\t\tfloat: right;\n\t}\n"])));
|
|
22506
22125
|
|
|
22126
|
+
// shim for using process in browser
|
|
22127
|
+
// based off https://github.com/defunctzombie/node-process/blob/master/browser.js
|
|
22128
|
+
|
|
22129
|
+
function defaultSetTimout() {
|
|
22130
|
+
throw new Error('setTimeout has not been defined');
|
|
22131
|
+
}
|
|
22132
|
+
function defaultClearTimeout() {
|
|
22133
|
+
throw new Error('clearTimeout has not been defined');
|
|
22134
|
+
}
|
|
22135
|
+
var cachedSetTimeout = defaultSetTimout;
|
|
22136
|
+
var cachedClearTimeout = defaultClearTimeout;
|
|
22137
|
+
if (typeof global$1.setTimeout === 'function') {
|
|
22138
|
+
cachedSetTimeout = setTimeout;
|
|
22139
|
+
}
|
|
22140
|
+
if (typeof global$1.clearTimeout === 'function') {
|
|
22141
|
+
cachedClearTimeout = clearTimeout;
|
|
22142
|
+
}
|
|
22143
|
+
function runTimeout(fun) {
|
|
22144
|
+
if (cachedSetTimeout === setTimeout) {
|
|
22145
|
+
//normal enviroments in sane situations
|
|
22146
|
+
return setTimeout(fun, 0);
|
|
22147
|
+
}
|
|
22148
|
+
// if setTimeout wasn't available but was latter defined
|
|
22149
|
+
if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
|
|
22150
|
+
cachedSetTimeout = setTimeout;
|
|
22151
|
+
return setTimeout(fun, 0);
|
|
22152
|
+
}
|
|
22153
|
+
try {
|
|
22154
|
+
// when when somebody has screwed with setTimeout but no I.E. maddness
|
|
22155
|
+
return cachedSetTimeout(fun, 0);
|
|
22156
|
+
} catch (e) {
|
|
22157
|
+
try {
|
|
22158
|
+
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
|
|
22159
|
+
return cachedSetTimeout.call(null, fun, 0);
|
|
22160
|
+
} catch (e) {
|
|
22161
|
+
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
|
|
22162
|
+
return cachedSetTimeout.call(this, fun, 0);
|
|
22163
|
+
}
|
|
22164
|
+
}
|
|
22165
|
+
}
|
|
22166
|
+
function runClearTimeout(marker) {
|
|
22167
|
+
if (cachedClearTimeout === clearTimeout) {
|
|
22168
|
+
//normal enviroments in sane situations
|
|
22169
|
+
return clearTimeout(marker);
|
|
22170
|
+
}
|
|
22171
|
+
// if clearTimeout wasn't available but was latter defined
|
|
22172
|
+
if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
|
|
22173
|
+
cachedClearTimeout = clearTimeout;
|
|
22174
|
+
return clearTimeout(marker);
|
|
22175
|
+
}
|
|
22176
|
+
try {
|
|
22177
|
+
// when when somebody has screwed with setTimeout but no I.E. maddness
|
|
22178
|
+
return cachedClearTimeout(marker);
|
|
22179
|
+
} catch (e) {
|
|
22180
|
+
try {
|
|
22181
|
+
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
|
|
22182
|
+
return cachedClearTimeout.call(null, marker);
|
|
22183
|
+
} catch (e) {
|
|
22184
|
+
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
|
|
22185
|
+
// Some versions of I.E. have different rules for clearTimeout vs setTimeout
|
|
22186
|
+
return cachedClearTimeout.call(this, marker);
|
|
22187
|
+
}
|
|
22188
|
+
}
|
|
22189
|
+
}
|
|
22190
|
+
var queue = [];
|
|
22191
|
+
var draining = false;
|
|
22192
|
+
var currentQueue;
|
|
22193
|
+
var queueIndex = -1;
|
|
22194
|
+
function cleanUpNextTick() {
|
|
22195
|
+
if (!draining || !currentQueue) {
|
|
22196
|
+
return;
|
|
22197
|
+
}
|
|
22198
|
+
draining = false;
|
|
22199
|
+
if (currentQueue.length) {
|
|
22200
|
+
queue = currentQueue.concat(queue);
|
|
22201
|
+
} else {
|
|
22202
|
+
queueIndex = -1;
|
|
22203
|
+
}
|
|
22204
|
+
if (queue.length) {
|
|
22205
|
+
drainQueue();
|
|
22206
|
+
}
|
|
22207
|
+
}
|
|
22208
|
+
function drainQueue() {
|
|
22209
|
+
if (draining) {
|
|
22210
|
+
return;
|
|
22211
|
+
}
|
|
22212
|
+
var timeout = runTimeout(cleanUpNextTick);
|
|
22213
|
+
draining = true;
|
|
22214
|
+
var len = queue.length;
|
|
22215
|
+
while (len) {
|
|
22216
|
+
currentQueue = queue;
|
|
22217
|
+
queue = [];
|
|
22218
|
+
while (++queueIndex < len) {
|
|
22219
|
+
if (currentQueue) {
|
|
22220
|
+
currentQueue[queueIndex].run();
|
|
22221
|
+
}
|
|
22222
|
+
}
|
|
22223
|
+
queueIndex = -1;
|
|
22224
|
+
len = queue.length;
|
|
22225
|
+
}
|
|
22226
|
+
currentQueue = null;
|
|
22227
|
+
draining = false;
|
|
22228
|
+
runClearTimeout(timeout);
|
|
22229
|
+
}
|
|
22230
|
+
function nextTick(fun) {
|
|
22231
|
+
var args = new Array(arguments.length - 1);
|
|
22232
|
+
if (arguments.length > 1) {
|
|
22233
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
22234
|
+
args[i - 1] = arguments[i];
|
|
22235
|
+
}
|
|
22236
|
+
}
|
|
22237
|
+
queue.push(new Item(fun, args));
|
|
22238
|
+
if (queue.length === 1 && !draining) {
|
|
22239
|
+
runTimeout(drainQueue);
|
|
22240
|
+
}
|
|
22241
|
+
}
|
|
22242
|
+
// v8 likes predictible objects
|
|
22243
|
+
function Item(fun, array) {
|
|
22244
|
+
this.fun = fun;
|
|
22245
|
+
this.array = array;
|
|
22246
|
+
}
|
|
22247
|
+
Item.prototype.run = function () {
|
|
22248
|
+
this.fun.apply(null, this.array);
|
|
22249
|
+
};
|
|
22250
|
+
var title = 'browser';
|
|
22251
|
+
var platform = 'browser';
|
|
22252
|
+
var browser = true;
|
|
22253
|
+
var env = {};
|
|
22254
|
+
var argv = [];
|
|
22255
|
+
var version = ''; // empty string to avoid regexp issues
|
|
22256
|
+
var versions = {};
|
|
22257
|
+
var release = {};
|
|
22258
|
+
var config = {};
|
|
22259
|
+
function noop() {}
|
|
22260
|
+
var on = noop;
|
|
22261
|
+
var addListener = noop;
|
|
22262
|
+
var once = noop;
|
|
22263
|
+
var off = noop;
|
|
22264
|
+
var removeListener = noop;
|
|
22265
|
+
var removeAllListeners = noop;
|
|
22266
|
+
var emit = noop;
|
|
22267
|
+
function binding(name) {
|
|
22268
|
+
throw new Error('process.binding is not supported');
|
|
22269
|
+
}
|
|
22270
|
+
function cwd() {
|
|
22271
|
+
return '/';
|
|
22272
|
+
}
|
|
22273
|
+
function chdir(dir) {
|
|
22274
|
+
throw new Error('process.chdir is not supported');
|
|
22275
|
+
}
|
|
22276
|
+
function umask() {
|
|
22277
|
+
return 0;
|
|
22278
|
+
}
|
|
22279
|
+
|
|
22280
|
+
// from https://github.com/kumavis/browser-process-hrtime/blob/master/index.js
|
|
22281
|
+
var performance = global$1.performance || {};
|
|
22282
|
+
var performanceNow = performance.now || performance.mozNow || performance.msNow || performance.oNow || performance.webkitNow || function () {
|
|
22283
|
+
return new Date().getTime();
|
|
22284
|
+
};
|
|
22285
|
+
|
|
22286
|
+
// generate timestamp or delta
|
|
22287
|
+
// see http://nodejs.org/api/process.html#process_process_hrtime
|
|
22288
|
+
function hrtime(previousTimestamp) {
|
|
22289
|
+
var clocktime = performanceNow.call(performance) * 1e-3;
|
|
22290
|
+
var seconds = Math.floor(clocktime);
|
|
22291
|
+
var nanoseconds = Math.floor(clocktime % 1 * 1e9);
|
|
22292
|
+
if (previousTimestamp) {
|
|
22293
|
+
seconds = seconds - previousTimestamp[0];
|
|
22294
|
+
nanoseconds = nanoseconds - previousTimestamp[1];
|
|
22295
|
+
if (nanoseconds < 0) {
|
|
22296
|
+
seconds--;
|
|
22297
|
+
nanoseconds += 1e9;
|
|
22298
|
+
}
|
|
22299
|
+
}
|
|
22300
|
+
return [seconds, nanoseconds];
|
|
22301
|
+
}
|
|
22302
|
+
var startTime = new Date();
|
|
22303
|
+
function uptime() {
|
|
22304
|
+
var currentTime = new Date();
|
|
22305
|
+
var dif = currentTime - startTime;
|
|
22306
|
+
return dif / 1000;
|
|
22307
|
+
}
|
|
22308
|
+
var process = {
|
|
22309
|
+
nextTick: nextTick,
|
|
22310
|
+
title: title,
|
|
22311
|
+
browser: browser,
|
|
22312
|
+
env: env,
|
|
22313
|
+
argv: argv,
|
|
22314
|
+
version: version,
|
|
22315
|
+
versions: versions,
|
|
22316
|
+
on: on,
|
|
22317
|
+
addListener: addListener,
|
|
22318
|
+
once: once,
|
|
22319
|
+
off: off,
|
|
22320
|
+
removeListener: removeListener,
|
|
22321
|
+
removeAllListeners: removeAllListeners,
|
|
22322
|
+
emit: emit,
|
|
22323
|
+
binding: binding,
|
|
22324
|
+
cwd: cwd,
|
|
22325
|
+
chdir: chdir,
|
|
22326
|
+
umask: umask,
|
|
22327
|
+
hrtime: hrtime,
|
|
22328
|
+
platform: platform,
|
|
22329
|
+
release: release,
|
|
22330
|
+
config: config,
|
|
22331
|
+
uptime: uptime
|
|
22332
|
+
};
|
|
22333
|
+
|
|
22334
|
+
var browser$1 = true;
|
|
22335
|
+
|
|
22507
22336
|
/**
|
|
22508
22337
|
* Caution: Please do not change this file without having a discussion with the Team.
|
|
22509
22338
|
* Any change may break the umd build, we're directly replacing the line no: 14
|
|
@@ -22522,7 +22351,7 @@
|
|
|
22522
22351
|
var components = {
|
|
22523
22352
|
NoSSR: NoSSR
|
|
22524
22353
|
};
|
|
22525
|
-
{
|
|
22354
|
+
if (process && browser$1) {
|
|
22526
22355
|
try {
|
|
22527
22356
|
// in older versions of nuxt, it's process.BROWSER_BUILD
|
|
22528
22357
|
// eslint-disable-next-line
|
|
@@ -22592,6 +22421,7 @@
|
|
|
22592
22421
|
},
|
|
22593
22422
|
created: function created() {
|
|
22594
22423
|
var _this = this;
|
|
22424
|
+
this.$timestamp = new Date().getTime();
|
|
22595
22425
|
var onQueryChange = function onQueryChange() {
|
|
22596
22426
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
22597
22427
|
args[_key] = arguments[_key];
|
|
@@ -22618,8 +22448,8 @@
|
|
|
22618
22448
|
}
|
|
22619
22449
|
var value = this.$props.value;
|
|
22620
22450
|
if (this.destroyOnUnmount || components.indexOf(this.componentId) === -1) {
|
|
22621
|
-
this.addComponent(this.componentId);
|
|
22622
|
-
this.addComponent(this.internalRangeComponent);
|
|
22451
|
+
this.addComponent(this.componentId, this.$timestamp);
|
|
22452
|
+
this.addComponent(this.internalRangeComponent, this.$timestamp);
|
|
22623
22453
|
if (Array.isArray(this.selectedValue)) {
|
|
22624
22454
|
this.handleChange(this.selectedValue);
|
|
22625
22455
|
} else if (this.selectedValue) {
|
|
@@ -28447,7 +28277,8 @@
|
|
|
28447
28277
|
geo_bounding_box: (_geo_bounding_box = {}, _geo_bounding_box[this.dataField] = boundingBoxCoordinates, _geo_bounding_box)
|
|
28448
28278
|
};
|
|
28449
28279
|
if (this.$defaultQuery) {
|
|
28450
|
-
var
|
|
28280
|
+
var _ref2 = this.$defaultQuery || {},
|
|
28281
|
+
query = _ref2.query;
|
|
28451
28282
|
if (query) {
|
|
28452
28283
|
// adds defaultQuery's query to geo-query
|
|
28453
28284
|
// to generate a map query
|
|
@@ -28582,14 +28413,14 @@
|
|
|
28582
28413
|
var options = getQueryOptions$5(this.$props);
|
|
28583
28414
|
options.from = this.$data.from;
|
|
28584
28415
|
if (this.$props.sortBy) {
|
|
28585
|
-
var
|
|
28586
|
-
options.sort = [(
|
|
28416
|
+
var _ref3;
|
|
28417
|
+
options.sort = [(_ref3 = {}, _ref3[this.$props.dataField] = {
|
|
28587
28418
|
order: this.$props.sortBy
|
|
28588
|
-
},
|
|
28419
|
+
}, _ref3)];
|
|
28589
28420
|
}
|
|
28590
28421
|
this.$defaultQuery = null;
|
|
28591
28422
|
if (this.$props.defaultQuery) {
|
|
28592
|
-
this.$defaultQuery = this.$props.defaultQuery();
|
|
28423
|
+
this.$defaultQuery = this.$props.defaultQuery() || {};
|
|
28593
28424
|
options = _extends({}, options, getOptionsFromQuery$4(this.$defaultQuery));
|
|
28594
28425
|
|
|
28595
28426
|
// Override sort query with defaultQuery's sort if defined
|
|
@@ -30524,7 +30355,7 @@
|
|
|
30524
30355
|
});
|
|
30525
30356
|
}
|
|
30526
30357
|
|
|
30527
|
-
var version = "3.0.0-alpha.
|
|
30358
|
+
var version$1 = "3.0.0-alpha.1";
|
|
30528
30359
|
|
|
30529
30360
|
var components = [RLConnected, ResultCard, ResultList, ReactiveBase, SBConnected, ListConnected, ListConnected$1, RangeConnected$1, RangeConnected$2, RangeConnected$3, RangeConnected, RcConnected, RcConnected$1, TBConnected, ListConnected$2, ListConnected$3, StateProviderConnected, RangeConnected$4];
|
|
30530
30361
|
function install$1 (Vue) {
|
|
@@ -30539,7 +30370,7 @@
|
|
|
30539
30370
|
install$1(window.Vue);
|
|
30540
30371
|
}
|
|
30541
30372
|
var index$1 = {
|
|
30542
|
-
version: version,
|
|
30373
|
+
version: version$1,
|
|
30543
30374
|
install: install$1
|
|
30544
30375
|
};
|
|
30545
30376
|
|
|
@@ -30566,7 +30397,7 @@
|
|
|
30566
30397
|
exports.default = index$1;
|
|
30567
30398
|
exports.initReactivesearch = initReactivesearch;
|
|
30568
30399
|
exports.install = install$1;
|
|
30569
|
-
exports.version = version;
|
|
30400
|
+
exports.version = version$1;
|
|
30570
30401
|
|
|
30571
30402
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
30572
30403
|
|