|
|
@@ -868,6 +868,57 @@
|
|
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
|
addToUnscopables(FIND);
|
|
|
|
|
|
+ // a string of all valid unicode whitespaces
|
|
|
+ var whitespaces = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
|
|
|
+ '\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
|
|
|
+
|
|
|
+ var whitespace = '[' + whitespaces + ']';
|
|
|
+ var ltrim = RegExp('^' + whitespace + whitespace + '*');
|
|
|
+ var rtrim = RegExp(whitespace + whitespace + '*$');
|
|
|
+
|
|
|
+ // `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
|
|
|
+ var createMethod$1 = function (TYPE) {
|
|
|
+ return function ($this) {
|
|
|
+ var string = String(requireObjectCoercible($this));
|
|
|
+ if (TYPE & 1) string = string.replace(ltrim, '');
|
|
|
+ if (TYPE & 2) string = string.replace(rtrim, '');
|
|
|
+ return string;
|
|
|
+ };
|
|
|
+ };
|
|
|
+
|
|
|
+ var stringTrim = {
|
|
|
+ // `String.prototype.{ trimLeft, trimStart }` methods
|
|
|
+ // https://tc39.es/ecma262/#sec-string.prototype.trimstart
|
|
|
+ start: createMethod$1(1),
|
|
|
+ // `String.prototype.{ trimRight, trimEnd }` methods
|
|
|
+ // https://tc39.es/ecma262/#sec-string.prototype.trimend
|
|
|
+ end: createMethod$1(2),
|
|
|
+ // `String.prototype.trim` method
|
|
|
+ // https://tc39.es/ecma262/#sec-string.prototype.trim
|
|
|
+ trim: createMethod$1(3)
|
|
|
+ };
|
|
|
+
|
|
|
+ var non = '\u200B\u0085\u180E';
|
|
|
+
|
|
|
+ // check that a method works with the correct list
|
|
|
+ // of whitespaces and has a correct name
|
|
|
+ var stringTrimForced = function (METHOD_NAME) {
|
|
|
+ return fails(function () {
|
|
|
+ return !!whitespaces[METHOD_NAME]() || non[METHOD_NAME]() != non || whitespaces[METHOD_NAME].name !== METHOD_NAME;
|
|
|
+ });
|
|
|
+ };
|
|
|
+
|
|
|
+ var $trim = stringTrim.trim;
|
|
|
+
|
|
|
+
|
|
|
+ // `String.prototype.trim` method
|
|
|
+ // https://tc39.es/ecma262/#sec-string.prototype.trim
|
|
|
+ _export({ target: 'String', proto: true, forced: stringTrimForced('trim') }, {
|
|
|
+ trim: function trim() {
|
|
|
+ return $trim(this);
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
var TO_STRING_TAG$1 = wellKnownSymbol('toStringTag');
|
|
|
var test$1 = {};
|
|
|
|
|
|
@@ -944,57 +995,6 @@
|
|
|
}, { unsafe: true });
|
|
|
}
|
|
|
|
|
|
- // a string of all valid unicode whitespaces
|
|
|
- var whitespaces = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
|
|
|
- '\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
|
|
|
-
|
|
|
- var whitespace = '[' + whitespaces + ']';
|
|
|
- var ltrim = RegExp('^' + whitespace + whitespace + '*');
|
|
|
- var rtrim = RegExp(whitespace + whitespace + '*$');
|
|
|
-
|
|
|
- // `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
|
|
|
- var createMethod$1 = function (TYPE) {
|
|
|
- return function ($this) {
|
|
|
- var string = String(requireObjectCoercible($this));
|
|
|
- if (TYPE & 1) string = string.replace(ltrim, '');
|
|
|
- if (TYPE & 2) string = string.replace(rtrim, '');
|
|
|
- return string;
|
|
|
- };
|
|
|
- };
|
|
|
-
|
|
|
- var stringTrim = {
|
|
|
- // `String.prototype.{ trimLeft, trimStart }` methods
|
|
|
- // https://tc39.es/ecma262/#sec-string.prototype.trimstart
|
|
|
- start: createMethod$1(1),
|
|
|
- // `String.prototype.{ trimRight, trimEnd }` methods
|
|
|
- // https://tc39.es/ecma262/#sec-string.prototype.trimend
|
|
|
- end: createMethod$1(2),
|
|
|
- // `String.prototype.trim` method
|
|
|
- // https://tc39.es/ecma262/#sec-string.prototype.trim
|
|
|
- trim: createMethod$1(3)
|
|
|
- };
|
|
|
-
|
|
|
- var non = '\u200B\u0085\u180E';
|
|
|
-
|
|
|
- // check that a method works with the correct list
|
|
|
- // of whitespaces and has a correct name
|
|
|
- var stringTrimForced = function (METHOD_NAME) {
|
|
|
- return fails(function () {
|
|
|
- return !!whitespaces[METHOD_NAME]() || non[METHOD_NAME]() != non || whitespaces[METHOD_NAME].name !== METHOD_NAME;
|
|
|
- });
|
|
|
- };
|
|
|
-
|
|
|
- var $trim = stringTrim.trim;
|
|
|
-
|
|
|
-
|
|
|
- // `String.prototype.trim` method
|
|
|
- // https://tc39.es/ecma262/#sec-string.prototype.trim
|
|
|
- _export({ target: 'String', proto: true, forced: stringTrimForced('trim') }, {
|
|
|
- trim: function trim() {
|
|
|
- return $trim(this);
|
|
|
- }
|
|
|
- });
|
|
|
-
|
|
|
var createProperty = function (object, key, value) {
|
|
|
var propertyKey = toPrimitive(key);
|
|
|
if (propertyKey in object) objectDefineProperty.f(object, propertyKey, createPropertyDescriptor(0, value));
|
|
|
@@ -1861,7 +1861,7 @@
|
|
|
var options = getOptionsFromSelectControl(selectControl);
|
|
|
|
|
|
for (var i = 0; i < options.length; i++) {
|
|
|
- if (options[i].value === Utils.unescapeHTML(value.toString())) {
|
|
|
+ if (options[i].value === Utils.unescapeHTML(value)) {
|
|
|
// The value is not valid to add
|
|
|
return true;
|
|
|
}
|
|
|
@@ -2150,10 +2150,10 @@
|
|
|
|
|
|
$__default['default'].each(header.find('th'), function (i, th) {
|
|
|
var $th = $__default['default'](th);
|
|
|
- $th.find('.filter-control').remove();
|
|
|
|
|
|
if ($th.data('field') === column.field) {
|
|
|
- $th.find('.fht-cell').append(html.join(''));
|
|
|
+ $th.find('.filter-control').remove();
|
|
|
+ $th.find('.fht-cell').html(html.join(''));
|
|
|
return false;
|
|
|
}
|
|
|
});
|