jquery.dgtable 0.5.58 → 0.5.59
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/jquery.dgtable.cjs.js +463 -395
- package/dist/jquery.dgtable.cjs.js.map +1 -1
- package/dist/jquery.dgtable.cjs.min.js +2 -2
- package/dist/jquery.dgtable.cjs.min.js.map +1 -1
- package/dist/jquery.dgtable.es6.js +462 -390
- package/dist/jquery.dgtable.es6.js.map +1 -1
- package/dist/jquery.dgtable.es6.min.js +2 -2
- package/dist/jquery.dgtable.es6.min.js.map +1 -1
- package/dist/jquery.dgtable.umd.js +1184 -1293
- package/dist/jquery.dgtable.umd.js.map +1 -1
- package/dist/jquery.dgtable.umd.min.js +2 -2
- package/dist/jquery.dgtable.umd.min.js.map +1 -1
- package/package.json +13 -13
- package/src/index.js +2 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* jquery.dgtable 0.5.
|
|
2
|
+
* jquery.dgtable 0.5.59
|
|
3
3
|
* git://github.com/danielgindi/jquery.dgtable.git
|
|
4
4
|
*/
|
|
5
5
|
'use strict';
|
|
@@ -8,10 +8,6 @@ var jQuery = require('jquery');
|
|
|
8
8
|
var ScrollHelper = require('@danielgindi/dom-utils/lib/ScrollHelper');
|
|
9
9
|
var Css = require('@danielgindi/dom-utils/lib/Css');
|
|
10
10
|
|
|
11
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
12
|
-
|
|
13
|
-
var jQuery__default = /*#__PURE__*/_interopDefaultLegacy(jQuery);
|
|
14
|
-
|
|
15
11
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
16
12
|
|
|
17
13
|
var check = function (it) {
|
|
@@ -19,7 +15,7 @@ var check = function (it) {
|
|
|
19
15
|
};
|
|
20
16
|
|
|
21
17
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
22
|
-
var global$
|
|
18
|
+
var global$a =
|
|
23
19
|
// eslint-disable-next-line es/no-global-this -- safe
|
|
24
20
|
check(typeof globalThis == 'object' && globalThis) ||
|
|
25
21
|
check(typeof window == 'object' && window) ||
|
|
@@ -31,7 +27,7 @@ var global$o =
|
|
|
31
27
|
|
|
32
28
|
var objectGetOwnPropertyDescriptor = {};
|
|
33
29
|
|
|
34
|
-
var fails$
|
|
30
|
+
var fails$a = function (exec) {
|
|
35
31
|
try {
|
|
36
32
|
return !!exec();
|
|
37
33
|
} catch (error) {
|
|
@@ -39,17 +35,18 @@ var fails$9 = function (exec) {
|
|
|
39
35
|
}
|
|
40
36
|
};
|
|
41
37
|
|
|
42
|
-
var fails$
|
|
38
|
+
var fails$9 = fails$a;
|
|
43
39
|
|
|
44
40
|
// Detect IE8's incomplete defineProperty implementation
|
|
45
|
-
var descriptors = !fails$
|
|
41
|
+
var descriptors = !fails$9(function () {
|
|
46
42
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
47
43
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
|
48
44
|
});
|
|
49
45
|
|
|
50
|
-
var fails$
|
|
46
|
+
var fails$8 = fails$a;
|
|
51
47
|
|
|
52
|
-
var functionBindNative = !fails$
|
|
48
|
+
var functionBindNative = !fails$8(function () {
|
|
49
|
+
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
53
50
|
var test = (function () { /* empty */ }).bind();
|
|
54
51
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
55
52
|
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
|
@@ -91,52 +88,64 @@ var createPropertyDescriptor$3 = function (bitmap, value) {
|
|
|
91
88
|
var NATIVE_BIND = functionBindNative;
|
|
92
89
|
|
|
93
90
|
var FunctionPrototype$1 = Function.prototype;
|
|
94
|
-
var bind = FunctionPrototype$1.bind;
|
|
95
91
|
var call$3 = FunctionPrototype$1.call;
|
|
96
|
-
var
|
|
92
|
+
var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype$1.bind.bind(call$3, call$3);
|
|
97
93
|
|
|
98
|
-
var
|
|
99
|
-
return
|
|
100
|
-
} : function (fn) {
|
|
101
|
-
return fn && function () {
|
|
94
|
+
var functionUncurryThisRaw = function (fn) {
|
|
95
|
+
return NATIVE_BIND ? uncurryThisWithBind(fn) : function () {
|
|
102
96
|
return call$3.apply(fn, arguments);
|
|
103
97
|
};
|
|
104
98
|
};
|
|
105
99
|
|
|
106
|
-
var
|
|
100
|
+
var uncurryThisRaw$1 = functionUncurryThisRaw;
|
|
107
101
|
|
|
108
|
-
var toString$3 =
|
|
109
|
-
var stringSlice =
|
|
102
|
+
var toString$3 = uncurryThisRaw$1({}.toString);
|
|
103
|
+
var stringSlice = uncurryThisRaw$1(''.slice);
|
|
110
104
|
|
|
111
|
-
var classofRaw$
|
|
105
|
+
var classofRaw$2 = function (it) {
|
|
112
106
|
return stringSlice(toString$3(it), 8, -1);
|
|
113
107
|
};
|
|
114
108
|
|
|
115
|
-
var
|
|
116
|
-
var
|
|
117
|
-
|
|
118
|
-
var
|
|
109
|
+
var classofRaw$1 = classofRaw$2;
|
|
110
|
+
var uncurryThisRaw = functionUncurryThisRaw;
|
|
111
|
+
|
|
112
|
+
var functionUncurryThis = function (fn) {
|
|
113
|
+
// Nashorn bug:
|
|
114
|
+
// https://github.com/zloirock/core-js/issues/1128
|
|
115
|
+
// https://github.com/zloirock/core-js/issues/1130
|
|
116
|
+
if (classofRaw$1(fn) === 'Function') return uncurryThisRaw(fn);
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
var uncurryThis$7 = functionUncurryThis;
|
|
120
|
+
var fails$7 = fails$a;
|
|
121
|
+
var classof$2 = classofRaw$2;
|
|
119
122
|
|
|
120
|
-
var Object$
|
|
121
|
-
var split = uncurryThis$
|
|
123
|
+
var $Object$3 = Object;
|
|
124
|
+
var split = uncurryThis$7(''.split);
|
|
122
125
|
|
|
123
126
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
124
|
-
var indexedObject = fails$
|
|
127
|
+
var indexedObject = fails$7(function () {
|
|
125
128
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
126
129
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
127
|
-
return
|
|
130
|
+
return !$Object$3('z').propertyIsEnumerable(0);
|
|
128
131
|
}) ? function (it) {
|
|
129
|
-
return classof$2(it) == 'String' ? split(it, '') : Object$
|
|
130
|
-
} : Object$
|
|
132
|
+
return classof$2(it) == 'String' ? split(it, '') : $Object$3(it);
|
|
133
|
+
} : $Object$3;
|
|
131
134
|
|
|
132
|
-
|
|
135
|
+
// we can't use just `it == null` since of `document.all` special case
|
|
136
|
+
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
|
|
137
|
+
var isNullOrUndefined$2 = function (it) {
|
|
138
|
+
return it === null || it === undefined;
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
var isNullOrUndefined$1 = isNullOrUndefined$2;
|
|
133
142
|
|
|
134
|
-
var TypeError$
|
|
143
|
+
var $TypeError$6 = TypeError;
|
|
135
144
|
|
|
136
145
|
// `RequireObjectCoercible` abstract operation
|
|
137
146
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
138
147
|
var requireObjectCoercible$2 = function (it) {
|
|
139
|
-
if (it
|
|
148
|
+
if (isNullOrUndefined$1(it)) throw $TypeError$6("Can't call method on " + it);
|
|
140
149
|
return it;
|
|
141
150
|
};
|
|
142
151
|
|
|
@@ -148,42 +157,63 @@ var toIndexedObject$3 = function (it) {
|
|
|
148
157
|
return IndexedObject(requireObjectCoercible$1(it));
|
|
149
158
|
};
|
|
150
159
|
|
|
160
|
+
var documentAll$2 = typeof document == 'object' && document.all;
|
|
161
|
+
|
|
162
|
+
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
|
|
163
|
+
var IS_HTMLDDA = typeof documentAll$2 == 'undefined' && documentAll$2 !== undefined;
|
|
164
|
+
|
|
165
|
+
var documentAll_1 = {
|
|
166
|
+
all: documentAll$2,
|
|
167
|
+
IS_HTMLDDA: IS_HTMLDDA
|
|
168
|
+
};
|
|
169
|
+
|
|
170
|
+
var $documentAll$1 = documentAll_1;
|
|
171
|
+
|
|
172
|
+
var documentAll$1 = $documentAll$1.all;
|
|
173
|
+
|
|
151
174
|
// `IsCallable` abstract operation
|
|
152
175
|
// https://tc39.es/ecma262/#sec-iscallable
|
|
153
|
-
var isCallable$
|
|
176
|
+
var isCallable$b = $documentAll$1.IS_HTMLDDA ? function (argument) {
|
|
177
|
+
return typeof argument == 'function' || argument === documentAll$1;
|
|
178
|
+
} : function (argument) {
|
|
154
179
|
return typeof argument == 'function';
|
|
155
180
|
};
|
|
156
181
|
|
|
157
|
-
var isCallable$
|
|
182
|
+
var isCallable$a = isCallable$b;
|
|
183
|
+
var $documentAll = documentAll_1;
|
|
158
184
|
|
|
159
|
-
var
|
|
160
|
-
|
|
185
|
+
var documentAll = $documentAll.all;
|
|
186
|
+
|
|
187
|
+
var isObject$5 = $documentAll.IS_HTMLDDA ? function (it) {
|
|
188
|
+
return typeof it == 'object' ? it !== null : isCallable$a(it) || it === documentAll;
|
|
189
|
+
} : function (it) {
|
|
190
|
+
return typeof it == 'object' ? it !== null : isCallable$a(it);
|
|
161
191
|
};
|
|
162
192
|
|
|
163
|
-
var global$
|
|
164
|
-
var isCallable$
|
|
193
|
+
var global$9 = global$a;
|
|
194
|
+
var isCallable$9 = isCallable$b;
|
|
165
195
|
|
|
166
196
|
var aFunction = function (argument) {
|
|
167
|
-
return isCallable$
|
|
197
|
+
return isCallable$9(argument) ? argument : undefined;
|
|
168
198
|
};
|
|
169
199
|
|
|
170
200
|
var getBuiltIn$3 = function (namespace, method) {
|
|
171
|
-
return arguments.length < 2 ? aFunction(global$
|
|
201
|
+
return arguments.length < 2 ? aFunction(global$9[namespace]) : global$9[namespace] && global$9[namespace][method];
|
|
172
202
|
};
|
|
173
203
|
|
|
174
|
-
var uncurryThis$
|
|
204
|
+
var uncurryThis$6 = functionUncurryThis;
|
|
175
205
|
|
|
176
|
-
var objectIsPrototypeOf = uncurryThis$
|
|
206
|
+
var objectIsPrototypeOf = uncurryThis$6({}.isPrototypeOf);
|
|
177
207
|
|
|
178
208
|
var getBuiltIn$2 = getBuiltIn$3;
|
|
179
209
|
|
|
180
210
|
var engineUserAgent = getBuiltIn$2('navigator', 'userAgent') || '';
|
|
181
211
|
|
|
182
|
-
var global$
|
|
212
|
+
var global$8 = global$a;
|
|
183
213
|
var userAgent$3 = engineUserAgent;
|
|
184
214
|
|
|
185
|
-
var process = global$
|
|
186
|
-
var Deno = global$
|
|
215
|
+
var process = global$8.process;
|
|
216
|
+
var Deno = global$8.Deno;
|
|
187
217
|
var versions = process && process.versions || Deno && Deno.version;
|
|
188
218
|
var v8 = versions && versions.v8;
|
|
189
219
|
var match, version;
|
|
@@ -210,10 +240,10 @@ var engineV8Version = version;
|
|
|
210
240
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
211
241
|
|
|
212
242
|
var V8_VERSION = engineV8Version;
|
|
213
|
-
var fails$
|
|
243
|
+
var fails$6 = fails$a;
|
|
214
244
|
|
|
215
245
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
216
|
-
var
|
|
246
|
+
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$6(function () {
|
|
217
247
|
var symbol = Symbol();
|
|
218
248
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
219
249
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
@@ -224,97 +254,93 @@ var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$5(function () {
|
|
|
224
254
|
|
|
225
255
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
226
256
|
|
|
227
|
-
var NATIVE_SYMBOL$1 =
|
|
257
|
+
var NATIVE_SYMBOL$1 = symbolConstructorDetection;
|
|
228
258
|
|
|
229
259
|
var useSymbolAsUid = NATIVE_SYMBOL$1
|
|
230
260
|
&& !Symbol.sham
|
|
231
261
|
&& typeof Symbol.iterator == 'symbol';
|
|
232
262
|
|
|
233
|
-
var global$j = global$o;
|
|
234
263
|
var getBuiltIn$1 = getBuiltIn$3;
|
|
235
|
-
var isCallable$
|
|
264
|
+
var isCallable$8 = isCallable$b;
|
|
236
265
|
var isPrototypeOf = objectIsPrototypeOf;
|
|
237
266
|
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
|
238
267
|
|
|
239
|
-
var Object$
|
|
268
|
+
var $Object$2 = Object;
|
|
240
269
|
|
|
241
270
|
var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
|
|
242
271
|
return typeof it == 'symbol';
|
|
243
272
|
} : function (it) {
|
|
244
273
|
var $Symbol = getBuiltIn$1('Symbol');
|
|
245
|
-
return isCallable$
|
|
274
|
+
return isCallable$8($Symbol) && isPrototypeOf($Symbol.prototype, $Object$2(it));
|
|
246
275
|
};
|
|
247
276
|
|
|
248
|
-
var
|
|
249
|
-
|
|
250
|
-
var String$3 = global$i.String;
|
|
277
|
+
var $String$2 = String;
|
|
251
278
|
|
|
252
|
-
var tryToString$
|
|
279
|
+
var tryToString$2 = function (argument) {
|
|
253
280
|
try {
|
|
254
|
-
return String$
|
|
281
|
+
return $String$2(argument);
|
|
255
282
|
} catch (error) {
|
|
256
283
|
return 'Object';
|
|
257
284
|
}
|
|
258
285
|
};
|
|
259
286
|
|
|
260
|
-
var
|
|
261
|
-
var
|
|
262
|
-
var tryToString = tryToString$1;
|
|
287
|
+
var isCallable$7 = isCallable$b;
|
|
288
|
+
var tryToString$1 = tryToString$2;
|
|
263
289
|
|
|
264
|
-
var TypeError$
|
|
290
|
+
var $TypeError$5 = TypeError;
|
|
265
291
|
|
|
266
292
|
// `Assert: IsCallable(argument) is true`
|
|
267
293
|
var aCallable$2 = function (argument) {
|
|
268
|
-
if (isCallable$
|
|
269
|
-
throw TypeError$
|
|
294
|
+
if (isCallable$7(argument)) return argument;
|
|
295
|
+
throw $TypeError$5(tryToString$1(argument) + ' is not a function');
|
|
270
296
|
};
|
|
271
297
|
|
|
272
298
|
var aCallable$1 = aCallable$2;
|
|
299
|
+
var isNullOrUndefined = isNullOrUndefined$2;
|
|
273
300
|
|
|
274
301
|
// `GetMethod` abstract operation
|
|
275
302
|
// https://tc39.es/ecma262/#sec-getmethod
|
|
276
303
|
var getMethod$1 = function (V, P) {
|
|
277
304
|
var func = V[P];
|
|
278
|
-
return func
|
|
305
|
+
return isNullOrUndefined(func) ? undefined : aCallable$1(func);
|
|
279
306
|
};
|
|
280
307
|
|
|
281
|
-
var global$g = global$o;
|
|
282
308
|
var call$2 = functionCall;
|
|
283
|
-
var isCallable$
|
|
309
|
+
var isCallable$6 = isCallable$b;
|
|
284
310
|
var isObject$4 = isObject$5;
|
|
285
311
|
|
|
286
|
-
var TypeError$
|
|
312
|
+
var $TypeError$4 = TypeError;
|
|
287
313
|
|
|
288
314
|
// `OrdinaryToPrimitive` abstract operation
|
|
289
315
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
290
316
|
var ordinaryToPrimitive$1 = function (input, pref) {
|
|
291
317
|
var fn, val;
|
|
292
|
-
if (pref === 'string' && isCallable$
|
|
293
|
-
if (isCallable$
|
|
294
|
-
if (pref !== 'string' && isCallable$
|
|
295
|
-
throw TypeError$
|
|
318
|
+
if (pref === 'string' && isCallable$6(fn = input.toString) && !isObject$4(val = call$2(fn, input))) return val;
|
|
319
|
+
if (isCallable$6(fn = input.valueOf) && !isObject$4(val = call$2(fn, input))) return val;
|
|
320
|
+
if (pref !== 'string' && isCallable$6(fn = input.toString) && !isObject$4(val = call$2(fn, input))) return val;
|
|
321
|
+
throw $TypeError$4("Can't convert object to primitive value");
|
|
296
322
|
};
|
|
297
323
|
|
|
298
324
|
var shared$3 = {exports: {}};
|
|
299
325
|
|
|
300
|
-
var global$
|
|
326
|
+
var global$7 = global$a;
|
|
301
327
|
|
|
302
328
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
303
|
-
var defineProperty = Object.defineProperty;
|
|
329
|
+
var defineProperty$1 = Object.defineProperty;
|
|
304
330
|
|
|
305
|
-
var
|
|
331
|
+
var defineGlobalProperty$3 = function (key, value) {
|
|
306
332
|
try {
|
|
307
|
-
defineProperty(global$
|
|
333
|
+
defineProperty$1(global$7, key, { value: value, configurable: true, writable: true });
|
|
308
334
|
} catch (error) {
|
|
309
|
-
global$
|
|
335
|
+
global$7[key] = value;
|
|
310
336
|
} return value;
|
|
311
337
|
};
|
|
312
338
|
|
|
313
|
-
var global$
|
|
314
|
-
var
|
|
339
|
+
var global$6 = global$a;
|
|
340
|
+
var defineGlobalProperty$2 = defineGlobalProperty$3;
|
|
315
341
|
|
|
316
342
|
var SHARED = '__core-js_shared__';
|
|
317
|
-
var store$3 = global$
|
|
343
|
+
var store$3 = global$6[SHARED] || defineGlobalProperty$2(SHARED, {});
|
|
318
344
|
|
|
319
345
|
var sharedStore = store$3;
|
|
320
346
|
|
|
@@ -323,54 +349,54 @@ var store$2 = sharedStore;
|
|
|
323
349
|
(shared$3.exports = function (key, value) {
|
|
324
350
|
return store$2[key] || (store$2[key] = value !== undefined ? value : {});
|
|
325
351
|
})('versions', []).push({
|
|
326
|
-
version: '3.
|
|
352
|
+
version: '3.25.5',
|
|
327
353
|
mode: 'global',
|
|
328
354
|
copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
|
|
329
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.
|
|
355
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.25.5/LICENSE',
|
|
330
356
|
source: 'https://github.com/zloirock/core-js'
|
|
331
357
|
});
|
|
332
358
|
|
|
333
|
-
var global$d = global$o;
|
|
334
359
|
var requireObjectCoercible = requireObjectCoercible$2;
|
|
335
360
|
|
|
336
|
-
var Object$
|
|
361
|
+
var $Object$1 = Object;
|
|
337
362
|
|
|
338
363
|
// `ToObject` abstract operation
|
|
339
364
|
// https://tc39.es/ecma262/#sec-toobject
|
|
340
365
|
var toObject$2 = function (argument) {
|
|
341
|
-
return Object$
|
|
366
|
+
return $Object$1(requireObjectCoercible(argument));
|
|
342
367
|
};
|
|
343
368
|
|
|
344
|
-
var uncurryThis$
|
|
369
|
+
var uncurryThis$5 = functionUncurryThis;
|
|
345
370
|
var toObject$1 = toObject$2;
|
|
346
371
|
|
|
347
|
-
var hasOwnProperty$1 = uncurryThis$
|
|
372
|
+
var hasOwnProperty$1 = uncurryThis$5({}.hasOwnProperty);
|
|
348
373
|
|
|
349
374
|
// `HasOwnProperty` abstract operation
|
|
350
375
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
376
|
+
// eslint-disable-next-line es/no-object-hasown -- safe
|
|
351
377
|
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
352
378
|
return hasOwnProperty$1(toObject$1(it), key);
|
|
353
379
|
};
|
|
354
380
|
|
|
355
|
-
var uncurryThis$
|
|
381
|
+
var uncurryThis$4 = functionUncurryThis;
|
|
356
382
|
|
|
357
383
|
var id = 0;
|
|
358
384
|
var postfix = Math.random();
|
|
359
|
-
var toString$2 = uncurryThis$
|
|
385
|
+
var toString$2 = uncurryThis$4(1.0.toString);
|
|
360
386
|
|
|
361
387
|
var uid$2 = function (key) {
|
|
362
388
|
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$2(++id + postfix, 36);
|
|
363
389
|
};
|
|
364
390
|
|
|
365
|
-
var global$
|
|
391
|
+
var global$5 = global$a;
|
|
366
392
|
var shared$2 = shared$3.exports;
|
|
367
393
|
var hasOwn$6 = hasOwnProperty_1;
|
|
368
394
|
var uid$1 = uid$2;
|
|
369
|
-
var NATIVE_SYMBOL =
|
|
395
|
+
var NATIVE_SYMBOL = symbolConstructorDetection;
|
|
370
396
|
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
371
397
|
|
|
372
398
|
var WellKnownSymbolsStore = shared$2('wks');
|
|
373
|
-
var Symbol$1 = global$
|
|
399
|
+
var Symbol$1 = global$5.Symbol;
|
|
374
400
|
var symbolFor = Symbol$1 && Symbol$1['for'];
|
|
375
401
|
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
|
|
376
402
|
|
|
@@ -387,7 +413,6 @@ var wellKnownSymbol$3 = function (name) {
|
|
|
387
413
|
} return WellKnownSymbolsStore[name];
|
|
388
414
|
};
|
|
389
415
|
|
|
390
|
-
var global$b = global$o;
|
|
391
416
|
var call$1 = functionCall;
|
|
392
417
|
var isObject$3 = isObject$5;
|
|
393
418
|
var isSymbol$1 = isSymbol$2;
|
|
@@ -395,7 +420,7 @@ var getMethod = getMethod$1;
|
|
|
395
420
|
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
396
421
|
var wellKnownSymbol$2 = wellKnownSymbol$3;
|
|
397
422
|
|
|
398
|
-
var TypeError$
|
|
423
|
+
var $TypeError$3 = TypeError;
|
|
399
424
|
var TO_PRIMITIVE = wellKnownSymbol$2('toPrimitive');
|
|
400
425
|
|
|
401
426
|
// `ToPrimitive` abstract operation
|
|
@@ -408,7 +433,7 @@ var toPrimitive$1 = function (input, pref) {
|
|
|
408
433
|
if (pref === undefined) pref = 'default';
|
|
409
434
|
result = call$1(exoticToPrim, input, pref);
|
|
410
435
|
if (!isObject$3(result) || isSymbol$1(result)) return result;
|
|
411
|
-
throw TypeError$
|
|
436
|
+
throw $TypeError$3("Can't convert object to primitive value");
|
|
412
437
|
}
|
|
413
438
|
if (pref === undefined) pref = 'number';
|
|
414
439
|
return ordinaryToPrimitive(input, pref);
|
|
@@ -424,10 +449,10 @@ var toPropertyKey$3 = function (argument) {
|
|
|
424
449
|
return isSymbol(key) ? key : key + '';
|
|
425
450
|
};
|
|
426
451
|
|
|
427
|
-
var global$
|
|
452
|
+
var global$4 = global$a;
|
|
428
453
|
var isObject$2 = isObject$5;
|
|
429
454
|
|
|
430
|
-
var document$1 = global$
|
|
455
|
+
var document$1 = global$4.document;
|
|
431
456
|
// typeof document.createElement is 'object' in old IE
|
|
432
457
|
var EXISTS$1 = isObject$2(document$1) && isObject$2(document$1.createElement);
|
|
433
458
|
|
|
@@ -435,19 +460,19 @@ var documentCreateElement = function (it) {
|
|
|
435
460
|
return EXISTS$1 ? document$1.createElement(it) : {};
|
|
436
461
|
};
|
|
437
462
|
|
|
438
|
-
var DESCRIPTORS$
|
|
439
|
-
var fails$
|
|
463
|
+
var DESCRIPTORS$6 = descriptors;
|
|
464
|
+
var fails$5 = fails$a;
|
|
440
465
|
var createElement$1 = documentCreateElement;
|
|
441
466
|
|
|
442
467
|
// Thanks to IE8 for its funny defineProperty
|
|
443
|
-
var ie8DomDefine = !DESCRIPTORS$
|
|
468
|
+
var ie8DomDefine = !DESCRIPTORS$6 && !fails$5(function () {
|
|
444
469
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
445
470
|
return Object.defineProperty(createElement$1('div'), 'a', {
|
|
446
471
|
get: function () { return 7; }
|
|
447
472
|
}).a != 7;
|
|
448
473
|
});
|
|
449
474
|
|
|
450
|
-
var DESCRIPTORS$
|
|
475
|
+
var DESCRIPTORS$5 = descriptors;
|
|
451
476
|
var call = functionCall;
|
|
452
477
|
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
453
478
|
var createPropertyDescriptor$2 = createPropertyDescriptor$3;
|
|
@@ -461,7 +486,7 @@ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
|
461
486
|
|
|
462
487
|
// `Object.getOwnPropertyDescriptor` method
|
|
463
488
|
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
|
464
|
-
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$
|
|
489
|
+
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$5 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
|
|
465
490
|
O = toIndexedObject$2(O);
|
|
466
491
|
P = toPropertyKey$2(P);
|
|
467
492
|
if (IE8_DOM_DEFINE$1) try {
|
|
@@ -472,12 +497,12 @@ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$4 ? $getOwnPropertyDescriptor$1 :
|
|
|
472
497
|
|
|
473
498
|
var objectDefineProperty = {};
|
|
474
499
|
|
|
475
|
-
var DESCRIPTORS$
|
|
476
|
-
var fails$
|
|
500
|
+
var DESCRIPTORS$4 = descriptors;
|
|
501
|
+
var fails$4 = fails$a;
|
|
477
502
|
|
|
478
503
|
// V8 ~ Chrome 36-
|
|
479
504
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
480
|
-
var v8PrototypeDefineBug = DESCRIPTORS$
|
|
505
|
+
var v8PrototypeDefineBug = DESCRIPTORS$4 && fails$4(function () {
|
|
481
506
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
482
507
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
483
508
|
value: 42,
|
|
@@ -485,26 +510,24 @@ var v8PrototypeDefineBug = DESCRIPTORS$3 && fails$3(function () {
|
|
|
485
510
|
}).prototype != 42;
|
|
486
511
|
});
|
|
487
512
|
|
|
488
|
-
var global$9 = global$o;
|
|
489
513
|
var isObject$1 = isObject$5;
|
|
490
514
|
|
|
491
|
-
var String$
|
|
492
|
-
var TypeError$
|
|
515
|
+
var $String$1 = String;
|
|
516
|
+
var $TypeError$2 = TypeError;
|
|
493
517
|
|
|
494
518
|
// `Assert: Type(argument) is Object`
|
|
495
519
|
var anObject$2 = function (argument) {
|
|
496
520
|
if (isObject$1(argument)) return argument;
|
|
497
|
-
throw TypeError$
|
|
521
|
+
throw $TypeError$2($String$1(argument) + ' is not an object');
|
|
498
522
|
};
|
|
499
523
|
|
|
500
|
-
var
|
|
501
|
-
var DESCRIPTORS$2 = descriptors;
|
|
524
|
+
var DESCRIPTORS$3 = descriptors;
|
|
502
525
|
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
503
526
|
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
504
527
|
var anObject$1 = anObject$2;
|
|
505
528
|
var toPropertyKey$1 = toPropertyKey$3;
|
|
506
529
|
|
|
507
|
-
var TypeError$
|
|
530
|
+
var $TypeError$1 = TypeError;
|
|
508
531
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
509
532
|
var $defineProperty = Object.defineProperty;
|
|
510
533
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
@@ -515,7 +538,7 @@ var WRITABLE = 'writable';
|
|
|
515
538
|
|
|
516
539
|
// `Object.defineProperty` method
|
|
517
540
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
518
|
-
objectDefineProperty.f = DESCRIPTORS$
|
|
541
|
+
objectDefineProperty.f = DESCRIPTORS$3 ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {
|
|
519
542
|
anObject$1(O);
|
|
520
543
|
P = toPropertyKey$1(P);
|
|
521
544
|
anObject$1(Attributes);
|
|
@@ -537,46 +560,63 @@ objectDefineProperty.f = DESCRIPTORS$2 ? V8_PROTOTYPE_DEFINE_BUG ? function defi
|
|
|
537
560
|
if (IE8_DOM_DEFINE) try {
|
|
538
561
|
return $defineProperty(O, P, Attributes);
|
|
539
562
|
} catch (error) { /* empty */ }
|
|
540
|
-
if ('get' in Attributes || 'set' in Attributes) throw TypeError$
|
|
563
|
+
if ('get' in Attributes || 'set' in Attributes) throw $TypeError$1('Accessors not supported');
|
|
541
564
|
if ('value' in Attributes) O[P] = Attributes.value;
|
|
542
565
|
return O;
|
|
543
566
|
};
|
|
544
567
|
|
|
545
|
-
var DESCRIPTORS$
|
|
546
|
-
var definePropertyModule$
|
|
568
|
+
var DESCRIPTORS$2 = descriptors;
|
|
569
|
+
var definePropertyModule$3 = objectDefineProperty;
|
|
547
570
|
var createPropertyDescriptor$1 = createPropertyDescriptor$3;
|
|
548
571
|
|
|
549
|
-
var createNonEnumerableProperty$
|
|
550
|
-
return definePropertyModule$
|
|
572
|
+
var createNonEnumerableProperty$2 = DESCRIPTORS$2 ? function (object, key, value) {
|
|
573
|
+
return definePropertyModule$3.f(object, key, createPropertyDescriptor$1(1, value));
|
|
551
574
|
} : function (object, key, value) {
|
|
552
575
|
object[key] = value;
|
|
553
576
|
return object;
|
|
554
577
|
};
|
|
555
578
|
|
|
556
|
-
var
|
|
579
|
+
var makeBuiltIn$2 = {exports: {}};
|
|
557
580
|
|
|
558
|
-
var
|
|
559
|
-
var
|
|
581
|
+
var DESCRIPTORS$1 = descriptors;
|
|
582
|
+
var hasOwn$4 = hasOwnProperty_1;
|
|
583
|
+
|
|
584
|
+
var FunctionPrototype = Function.prototype;
|
|
585
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
586
|
+
var getDescriptor = DESCRIPTORS$1 && Object.getOwnPropertyDescriptor;
|
|
587
|
+
|
|
588
|
+
var EXISTS = hasOwn$4(FunctionPrototype, 'name');
|
|
589
|
+
// additional protection from minified / mangled / dropped function names
|
|
590
|
+
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
|
591
|
+
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$1 || (DESCRIPTORS$1 && getDescriptor(FunctionPrototype, 'name').configurable));
|
|
592
|
+
|
|
593
|
+
var functionName = {
|
|
594
|
+
EXISTS: EXISTS,
|
|
595
|
+
PROPER: PROPER,
|
|
596
|
+
CONFIGURABLE: CONFIGURABLE
|
|
597
|
+
};
|
|
598
|
+
|
|
599
|
+
var uncurryThis$3 = functionUncurryThis;
|
|
600
|
+
var isCallable$5 = isCallable$b;
|
|
560
601
|
var store$1 = sharedStore;
|
|
561
602
|
|
|
562
|
-
var functionToString = uncurryThis$
|
|
603
|
+
var functionToString = uncurryThis$3(Function.toString);
|
|
563
604
|
|
|
564
605
|
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
565
|
-
if (!isCallable$
|
|
606
|
+
if (!isCallable$5(store$1.inspectSource)) {
|
|
566
607
|
store$1.inspectSource = function (it) {
|
|
567
608
|
return functionToString(it);
|
|
568
609
|
};
|
|
569
610
|
}
|
|
570
611
|
|
|
571
|
-
var inspectSource$
|
|
612
|
+
var inspectSource$1 = store$1.inspectSource;
|
|
572
613
|
|
|
573
|
-
var global$
|
|
574
|
-
var isCallable$
|
|
575
|
-
var inspectSource$1 = inspectSource$2;
|
|
614
|
+
var global$3 = global$a;
|
|
615
|
+
var isCallable$4 = isCallable$b;
|
|
576
616
|
|
|
577
|
-
var WeakMap$1 = global$
|
|
617
|
+
var WeakMap$1 = global$3.WeakMap;
|
|
578
618
|
|
|
579
|
-
var
|
|
619
|
+
var weakMapBasicDetection = isCallable$4(WeakMap$1) && /native code/.test(String(WeakMap$1));
|
|
580
620
|
|
|
581
621
|
var shared$1 = shared$3.exports;
|
|
582
622
|
var uid = uid$2;
|
|
@@ -589,19 +629,18 @@ var sharedKey$1 = function (key) {
|
|
|
589
629
|
|
|
590
630
|
var hiddenKeys$3 = {};
|
|
591
631
|
|
|
592
|
-
var NATIVE_WEAK_MAP =
|
|
593
|
-
var global$
|
|
594
|
-
var uncurryThis$3 = functionUncurryThis;
|
|
632
|
+
var NATIVE_WEAK_MAP = weakMapBasicDetection;
|
|
633
|
+
var global$2 = global$a;
|
|
595
634
|
var isObject = isObject$5;
|
|
596
|
-
var createNonEnumerableProperty$
|
|
597
|
-
var hasOwn$
|
|
635
|
+
var createNonEnumerableProperty$1 = createNonEnumerableProperty$2;
|
|
636
|
+
var hasOwn$3 = hasOwnProperty_1;
|
|
598
637
|
var shared = sharedStore;
|
|
599
638
|
var sharedKey = sharedKey$1;
|
|
600
639
|
var hiddenKeys$2 = hiddenKeys$3;
|
|
601
640
|
|
|
602
641
|
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
603
|
-
var TypeError$1 = global$
|
|
604
|
-
var WeakMap = global$
|
|
642
|
+
var TypeError$1 = global$2.TypeError;
|
|
643
|
+
var WeakMap = global$2.WeakMap;
|
|
605
644
|
var set, get, has;
|
|
606
645
|
|
|
607
646
|
var enforce = function (it) {
|
|
@@ -619,35 +658,37 @@ var getterFor = function (TYPE) {
|
|
|
619
658
|
|
|
620
659
|
if (NATIVE_WEAK_MAP || shared.state) {
|
|
621
660
|
var store = shared.state || (shared.state = new WeakMap());
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
661
|
+
/* eslint-disable no-self-assign -- prototype methods protection */
|
|
662
|
+
store.get = store.get;
|
|
663
|
+
store.has = store.has;
|
|
664
|
+
store.set = store.set;
|
|
665
|
+
/* eslint-enable no-self-assign -- prototype methods protection */
|
|
625
666
|
set = function (it, metadata) {
|
|
626
|
-
if (
|
|
667
|
+
if (store.has(it)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
627
668
|
metadata.facade = it;
|
|
628
|
-
|
|
669
|
+
store.set(it, metadata);
|
|
629
670
|
return metadata;
|
|
630
671
|
};
|
|
631
672
|
get = function (it) {
|
|
632
|
-
return
|
|
673
|
+
return store.get(it) || {};
|
|
633
674
|
};
|
|
634
675
|
has = function (it) {
|
|
635
|
-
return
|
|
676
|
+
return store.has(it);
|
|
636
677
|
};
|
|
637
678
|
} else {
|
|
638
679
|
var STATE = sharedKey('state');
|
|
639
680
|
hiddenKeys$2[STATE] = true;
|
|
640
681
|
set = function (it, metadata) {
|
|
641
|
-
if (hasOwn$
|
|
682
|
+
if (hasOwn$3(it, STATE)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
642
683
|
metadata.facade = it;
|
|
643
|
-
createNonEnumerableProperty$
|
|
684
|
+
createNonEnumerableProperty$1(it, STATE, metadata);
|
|
644
685
|
return metadata;
|
|
645
686
|
};
|
|
646
687
|
get = function (it) {
|
|
647
|
-
return hasOwn$
|
|
688
|
+
return hasOwn$3(it, STATE) ? it[STATE] : {};
|
|
648
689
|
};
|
|
649
690
|
has = function (it) {
|
|
650
|
-
return hasOwn$
|
|
691
|
+
return hasOwn$3(it, STATE);
|
|
651
692
|
};
|
|
652
693
|
}
|
|
653
694
|
|
|
@@ -659,82 +700,105 @@ var internalState = {
|
|
|
659
700
|
getterFor: getterFor
|
|
660
701
|
};
|
|
661
702
|
|
|
662
|
-
var
|
|
663
|
-
var
|
|
664
|
-
|
|
665
|
-
var FunctionPrototype = Function.prototype;
|
|
666
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
667
|
-
var getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;
|
|
668
|
-
|
|
669
|
-
var EXISTS = hasOwn$3(FunctionPrototype, 'name');
|
|
670
|
-
// additional protection from minified / mangled / dropped function names
|
|
671
|
-
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
|
672
|
-
var CONFIGURABLE = EXISTS && (!DESCRIPTORS || (DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable));
|
|
673
|
-
|
|
674
|
-
var functionName = {
|
|
675
|
-
EXISTS: EXISTS,
|
|
676
|
-
PROPER: PROPER,
|
|
677
|
-
CONFIGURABLE: CONFIGURABLE
|
|
678
|
-
};
|
|
679
|
-
|
|
680
|
-
var global$5 = global$o;
|
|
681
|
-
var isCallable$2 = isCallable$a;
|
|
703
|
+
var fails$3 = fails$a;
|
|
704
|
+
var isCallable$3 = isCallable$b;
|
|
682
705
|
var hasOwn$2 = hasOwnProperty_1;
|
|
683
|
-
var
|
|
684
|
-
var setGlobal$1 = setGlobal$3;
|
|
685
|
-
var inspectSource = inspectSource$2;
|
|
686
|
-
var InternalStateModule = internalState;
|
|
706
|
+
var DESCRIPTORS = descriptors;
|
|
687
707
|
var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
|
|
708
|
+
var inspectSource = inspectSource$1;
|
|
709
|
+
var InternalStateModule = internalState;
|
|
688
710
|
|
|
689
|
-
var getInternalState = InternalStateModule.get;
|
|
690
711
|
var enforceInternalState = InternalStateModule.enforce;
|
|
712
|
+
var getInternalState = InternalStateModule.get;
|
|
713
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
714
|
+
var defineProperty = Object.defineProperty;
|
|
715
|
+
|
|
716
|
+
var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails$3(function () {
|
|
717
|
+
return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
718
|
+
});
|
|
719
|
+
|
|
691
720
|
var TEMPLATE = String(String).split('String');
|
|
692
721
|
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
var noTargetGet = options ? !!options.noTargetGet : false;
|
|
697
|
-
var name = options && options.name !== undefined ? options.name : key;
|
|
698
|
-
var state;
|
|
699
|
-
if (isCallable$2(value)) {
|
|
700
|
-
if (String(name).slice(0, 7) === 'Symbol(') {
|
|
701
|
-
name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
|
|
702
|
-
}
|
|
703
|
-
if (!hasOwn$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
|
|
704
|
-
createNonEnumerableProperty$1(value, 'name', name);
|
|
705
|
-
}
|
|
706
|
-
state = enforceInternalState(value);
|
|
707
|
-
if (!state.source) {
|
|
708
|
-
state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
|
|
709
|
-
}
|
|
722
|
+
var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
|
|
723
|
+
if (String(name).slice(0, 7) === 'Symbol(') {
|
|
724
|
+
name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
|
|
710
725
|
}
|
|
711
|
-
if (
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
}
|
|
720
|
-
|
|
721
|
-
|
|
726
|
+
if (options && options.getter) name = 'get ' + name;
|
|
727
|
+
if (options && options.setter) name = 'set ' + name;
|
|
728
|
+
if (!hasOwn$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
|
|
729
|
+
if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true });
|
|
730
|
+
else value.name = name;
|
|
731
|
+
}
|
|
732
|
+
if (CONFIGURABLE_LENGTH && options && hasOwn$2(options, 'arity') && value.length !== options.arity) {
|
|
733
|
+
defineProperty(value, 'length', { value: options.arity });
|
|
734
|
+
}
|
|
735
|
+
try {
|
|
736
|
+
if (options && hasOwn$2(options, 'constructor') && options.constructor) {
|
|
737
|
+
if (DESCRIPTORS) defineProperty(value, 'prototype', { writable: false });
|
|
738
|
+
// in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
|
|
739
|
+
} else if (value.prototype) value.prototype = undefined;
|
|
740
|
+
} catch (error) { /* empty */ }
|
|
741
|
+
var state = enforceInternalState(value);
|
|
742
|
+
if (!hasOwn$2(state, 'source')) {
|
|
743
|
+
state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
|
|
744
|
+
} return value;
|
|
745
|
+
};
|
|
746
|
+
|
|
722
747
|
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
748
|
+
// eslint-disable-next-line no-extend-native -- required
|
|
749
|
+
Function.prototype.toString = makeBuiltIn$1(function toString() {
|
|
750
|
+
return isCallable$3(this) && getInternalState(this).source || inspectSource(this);
|
|
751
|
+
}, 'toString');
|
|
752
|
+
|
|
753
|
+
var isCallable$2 = isCallable$b;
|
|
754
|
+
var definePropertyModule$2 = objectDefineProperty;
|
|
755
|
+
var makeBuiltIn = makeBuiltIn$2.exports;
|
|
756
|
+
var defineGlobalProperty$1 = defineGlobalProperty$3;
|
|
757
|
+
|
|
758
|
+
var defineBuiltIn$1 = function (O, key, value, options) {
|
|
759
|
+
if (!options) options = {};
|
|
760
|
+
var simple = options.enumerable;
|
|
761
|
+
var name = options.name !== undefined ? options.name : key;
|
|
762
|
+
if (isCallable$2(value)) makeBuiltIn(value, name, options);
|
|
763
|
+
if (options.global) {
|
|
764
|
+
if (simple) O[key] = value;
|
|
765
|
+
else defineGlobalProperty$1(key, value);
|
|
766
|
+
} else {
|
|
767
|
+
try {
|
|
768
|
+
if (!options.unsafe) delete O[key];
|
|
769
|
+
else if (O[key]) simple = true;
|
|
770
|
+
} catch (error) { /* empty */ }
|
|
771
|
+
if (simple) O[key] = value;
|
|
772
|
+
else definePropertyModule$2.f(O, key, {
|
|
773
|
+
value: value,
|
|
774
|
+
enumerable: false,
|
|
775
|
+
configurable: !options.nonConfigurable,
|
|
776
|
+
writable: !options.nonWritable
|
|
777
|
+
});
|
|
778
|
+
} return O;
|
|
779
|
+
};
|
|
726
780
|
|
|
727
781
|
var objectGetOwnPropertyNames = {};
|
|
728
782
|
|
|
729
783
|
var ceil = Math.ceil;
|
|
730
784
|
var floor$1 = Math.floor;
|
|
731
785
|
|
|
786
|
+
// `Math.trunc` method
|
|
787
|
+
// https://tc39.es/ecma262/#sec-math.trunc
|
|
788
|
+
// eslint-disable-next-line es/no-math-trunc -- safe
|
|
789
|
+
var mathTrunc = Math.trunc || function trunc(x) {
|
|
790
|
+
var n = +x;
|
|
791
|
+
return (n > 0 ? floor$1 : ceil)(n);
|
|
792
|
+
};
|
|
793
|
+
|
|
794
|
+
var trunc = mathTrunc;
|
|
795
|
+
|
|
732
796
|
// `ToIntegerOrInfinity` abstract operation
|
|
733
797
|
// https://tc39.es/ecma262/#sec-tointegerorinfinity
|
|
734
798
|
var toIntegerOrInfinity$2 = function (argument) {
|
|
735
799
|
var number = +argument;
|
|
736
|
-
// eslint-disable-next-line no-self-compare --
|
|
737
|
-
return number !== number || number === 0 ? 0 : (number
|
|
800
|
+
// eslint-disable-next-line no-self-compare -- NaN check
|
|
801
|
+
return number !== number || number === 0 ? 0 : trunc(number);
|
|
738
802
|
};
|
|
739
803
|
|
|
740
804
|
var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
|
|
@@ -882,8 +946,8 @@ var copyConstructorProperties$1 = function (target, source, exceptions) {
|
|
|
882
946
|
}
|
|
883
947
|
};
|
|
884
948
|
|
|
885
|
-
var fails$2 = fails$
|
|
886
|
-
var isCallable$1 = isCallable$
|
|
949
|
+
var fails$2 = fails$a;
|
|
950
|
+
var isCallable$1 = isCallable$b;
|
|
887
951
|
|
|
888
952
|
var replacement = /#|\.prototype\./;
|
|
889
953
|
|
|
@@ -905,28 +969,28 @@ var POLYFILL = isForced$1.POLYFILL = 'P';
|
|
|
905
969
|
|
|
906
970
|
var isForced_1 = isForced$1;
|
|
907
971
|
|
|
908
|
-
var global$
|
|
972
|
+
var global$1 = global$a;
|
|
909
973
|
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
910
|
-
var createNonEnumerableProperty = createNonEnumerableProperty$
|
|
911
|
-
var
|
|
912
|
-
var
|
|
974
|
+
var createNonEnumerableProperty = createNonEnumerableProperty$2;
|
|
975
|
+
var defineBuiltIn = defineBuiltIn$1;
|
|
976
|
+
var defineGlobalProperty = defineGlobalProperty$3;
|
|
913
977
|
var copyConstructorProperties = copyConstructorProperties$1;
|
|
914
978
|
var isForced = isForced_1;
|
|
915
979
|
|
|
916
980
|
/*
|
|
917
|
-
options.target
|
|
918
|
-
options.global
|
|
919
|
-
options.stat
|
|
920
|
-
options.proto
|
|
921
|
-
options.real
|
|
922
|
-
options.forced
|
|
923
|
-
options.bind
|
|
924
|
-
options.wrap
|
|
925
|
-
options.unsafe
|
|
926
|
-
options.sham
|
|
927
|
-
options.enumerable
|
|
928
|
-
options.
|
|
929
|
-
options.name
|
|
981
|
+
options.target - name of the target object
|
|
982
|
+
options.global - target is the global object
|
|
983
|
+
options.stat - export as static methods of target
|
|
984
|
+
options.proto - export as prototype methods of target
|
|
985
|
+
options.real - real prototype method for the `pure` version
|
|
986
|
+
options.forced - export even if the native feature is available
|
|
987
|
+
options.bind - bind methods to the target, required for the `pure` version
|
|
988
|
+
options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
|
|
989
|
+
options.unsafe - use the simple assignment of property instead of delete + defineProperty
|
|
990
|
+
options.sham - add a flag to not completely full polyfills
|
|
991
|
+
options.enumerable - export as enumerable property
|
|
992
|
+
options.dontCallGetSet - prevent calling a getter on target
|
|
993
|
+
options.name - the .name of the function if it does not match the key
|
|
930
994
|
*/
|
|
931
995
|
var _export = function (options, source) {
|
|
932
996
|
var TARGET = options.target;
|
|
@@ -934,15 +998,15 @@ var _export = function (options, source) {
|
|
|
934
998
|
var STATIC = options.stat;
|
|
935
999
|
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
|
936
1000
|
if (GLOBAL) {
|
|
937
|
-
target = global$
|
|
1001
|
+
target = global$1;
|
|
938
1002
|
} else if (STATIC) {
|
|
939
|
-
target = global$
|
|
1003
|
+
target = global$1[TARGET] || defineGlobalProperty(TARGET, {});
|
|
940
1004
|
} else {
|
|
941
|
-
target = (global$
|
|
1005
|
+
target = (global$1[TARGET] || {}).prototype;
|
|
942
1006
|
}
|
|
943
1007
|
if (target) for (key in source) {
|
|
944
1008
|
sourceProperty = source[key];
|
|
945
|
-
if (options.
|
|
1009
|
+
if (options.dontCallGetSet) {
|
|
946
1010
|
descriptor = getOwnPropertyDescriptor(target, key);
|
|
947
1011
|
targetProperty = descriptor && descriptor.value;
|
|
948
1012
|
} else targetProperty = target[key];
|
|
@@ -956,11 +1020,18 @@ var _export = function (options, source) {
|
|
|
956
1020
|
if (options.sham || (targetProperty && targetProperty.sham)) {
|
|
957
1021
|
createNonEnumerableProperty(sourceProperty, 'sham', true);
|
|
958
1022
|
}
|
|
959
|
-
|
|
960
|
-
redefine(target, key, sourceProperty, options);
|
|
1023
|
+
defineBuiltIn(target, key, sourceProperty, options);
|
|
961
1024
|
}
|
|
962
1025
|
};
|
|
963
1026
|
|
|
1027
|
+
var tryToString = tryToString$2;
|
|
1028
|
+
|
|
1029
|
+
var $TypeError = TypeError;
|
|
1030
|
+
|
|
1031
|
+
var deletePropertyOrThrow$1 = function (O, P) {
|
|
1032
|
+
if (!delete O[P]) throw $TypeError('Cannot delete property ' + tryToString(P) + ' of ' + tryToString(O));
|
|
1033
|
+
};
|
|
1034
|
+
|
|
964
1035
|
var wellKnownSymbol$1 = wellKnownSymbol$3;
|
|
965
1036
|
|
|
966
1037
|
var TO_STRING_TAG$1 = wellKnownSymbol$1('toStringTag');
|
|
@@ -970,14 +1041,13 @@ test$1[TO_STRING_TAG$1] = 'z';
|
|
|
970
1041
|
|
|
971
1042
|
var toStringTagSupport = String(test$1) === '[object z]';
|
|
972
1043
|
|
|
973
|
-
var global$3 = global$o;
|
|
974
1044
|
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
975
|
-
var isCallable = isCallable$
|
|
976
|
-
var classofRaw = classofRaw$
|
|
1045
|
+
var isCallable = isCallable$b;
|
|
1046
|
+
var classofRaw = classofRaw$2;
|
|
977
1047
|
var wellKnownSymbol = wellKnownSymbol$3;
|
|
978
1048
|
|
|
979
1049
|
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
|
980
|
-
var Object
|
|
1050
|
+
var $Object = Object;
|
|
981
1051
|
|
|
982
1052
|
// ES3 wrong here
|
|
983
1053
|
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
|
|
@@ -994,21 +1064,20 @@ var classof$1 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
|
|
|
994
1064
|
var O, tag, result;
|
|
995
1065
|
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
996
1066
|
// @@toStringTag case
|
|
997
|
-
: typeof (tag = tryGet(O = Object
|
|
1067
|
+
: typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
|
|
998
1068
|
// builtinTag case
|
|
999
1069
|
: CORRECT_ARGUMENTS ? classofRaw(O)
|
|
1000
1070
|
// ES3 arguments fallback
|
|
1001
1071
|
: (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;
|
|
1002
1072
|
};
|
|
1003
1073
|
|
|
1004
|
-
var global$2 = global$o;
|
|
1005
1074
|
var classof = classof$1;
|
|
1006
1075
|
|
|
1007
|
-
var String
|
|
1076
|
+
var $String = String;
|
|
1008
1077
|
|
|
1009
1078
|
var toString$1 = function (argument) {
|
|
1010
1079
|
if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
|
|
1011
|
-
return String
|
|
1080
|
+
return $String(argument);
|
|
1012
1081
|
};
|
|
1013
1082
|
|
|
1014
1083
|
var toPropertyKey = toPropertyKey$3;
|
|
@@ -1021,19 +1090,18 @@ var createProperty$1 = function (object, key, value) {
|
|
|
1021
1090
|
else object[propertyKey] = value;
|
|
1022
1091
|
};
|
|
1023
1092
|
|
|
1024
|
-
var global$1 = global$o;
|
|
1025
1093
|
var toAbsoluteIndex = toAbsoluteIndex$2;
|
|
1026
1094
|
var lengthOfArrayLike$1 = lengthOfArrayLike$3;
|
|
1027
1095
|
var createProperty = createProperty$1;
|
|
1028
1096
|
|
|
1029
|
-
var Array
|
|
1097
|
+
var $Array = Array;
|
|
1030
1098
|
var max = Math.max;
|
|
1031
1099
|
|
|
1032
1100
|
var arraySliceSimple = function (O, start, end) {
|
|
1033
1101
|
var length = lengthOfArrayLike$1(O);
|
|
1034
1102
|
var k = toAbsoluteIndex(start, length);
|
|
1035
1103
|
var fin = toAbsoluteIndex(end === undefined ? length : end, length);
|
|
1036
|
-
var result = Array
|
|
1104
|
+
var result = $Array(max(fin - k, 0));
|
|
1037
1105
|
for (var n = 0; k < fin; k++, n++) createProperty(result, n, O[k]);
|
|
1038
1106
|
result.length = n;
|
|
1039
1107
|
return result;
|
|
@@ -1084,7 +1152,7 @@ var merge = function (array, left, right, comparefn) {
|
|
|
1084
1152
|
|
|
1085
1153
|
var arraySort = mergeSort;
|
|
1086
1154
|
|
|
1087
|
-
var fails$1 = fails$
|
|
1155
|
+
var fails$1 = fails$a;
|
|
1088
1156
|
|
|
1089
1157
|
var arrayMethodIsStrict$1 = function (METHOD_NAME, argument) {
|
|
1090
1158
|
var method = [][METHOD_NAME];
|
|
@@ -1115,8 +1183,9 @@ var uncurryThis = functionUncurryThis;
|
|
|
1115
1183
|
var aCallable = aCallable$2;
|
|
1116
1184
|
var toObject = toObject$2;
|
|
1117
1185
|
var lengthOfArrayLike = lengthOfArrayLike$3;
|
|
1186
|
+
var deletePropertyOrThrow = deletePropertyOrThrow$1;
|
|
1118
1187
|
var toString = toString$1;
|
|
1119
|
-
var fails = fails$
|
|
1188
|
+
var fails = fails$a;
|
|
1120
1189
|
var internalSort = arraySort;
|
|
1121
1190
|
var arrayMethodIsStrict = arrayMethodIsStrict$1;
|
|
1122
1191
|
var FF = engineFfVersion;
|
|
@@ -1125,7 +1194,7 @@ var V8 = engineV8Version;
|
|
|
1125
1194
|
var WEBKIT = engineWebkitVersion;
|
|
1126
1195
|
|
|
1127
1196
|
var test = [];
|
|
1128
|
-
var
|
|
1197
|
+
var nativeSort$1 = uncurryThis(test.sort);
|
|
1129
1198
|
var push = uncurryThis(test.push);
|
|
1130
1199
|
|
|
1131
1200
|
// IE8-
|
|
@@ -1193,7 +1262,7 @@ $$1({ target: 'Array', proto: true, forced: FORCED }, {
|
|
|
1193
1262
|
|
|
1194
1263
|
var array = toObject(this);
|
|
1195
1264
|
|
|
1196
|
-
if (STABLE_SORT) return comparefn === undefined ?
|
|
1265
|
+
if (STABLE_SORT) return comparefn === undefined ? nativeSort$1(array) : nativeSort$1(array, comparefn);
|
|
1197
1266
|
|
|
1198
1267
|
var items = [];
|
|
1199
1268
|
var arrayLength = lengthOfArrayLike(array);
|
|
@@ -1205,11 +1274,11 @@ $$1({ target: 'Array', proto: true, forced: FORCED }, {
|
|
|
1205
1274
|
|
|
1206
1275
|
internalSort(items, getSortCompare(comparefn));
|
|
1207
1276
|
|
|
1208
|
-
itemsLength = items
|
|
1277
|
+
itemsLength = lengthOfArrayLike(items);
|
|
1209
1278
|
index = 0;
|
|
1210
1279
|
|
|
1211
1280
|
while (index < itemsLength) array[index] = items[index++];
|
|
1212
|
-
while (index < arrayLength)
|
|
1281
|
+
while (index < arrayLength) deletePropertyOrThrow(array, index++);
|
|
1213
1282
|
|
|
1214
1283
|
return array;
|
|
1215
1284
|
}
|
|
@@ -1339,13 +1408,13 @@ function getDefaultComparator(column, descending) {
|
|
|
1339
1408
|
comparePath = comparePath.split('.');
|
|
1340
1409
|
}
|
|
1341
1410
|
let pathLength = comparePath.length,
|
|
1342
|
-
|
|
1343
|
-
|
|
1411
|
+
hasPath = pathLength > 1,
|
|
1412
|
+
i;
|
|
1344
1413
|
|
|
1345
1414
|
let lessVal = descending ? 1 : -1,moreVal = descending ? -1 : 1;
|
|
1346
1415
|
return function (leftRow, rightRow) {
|
|
1347
1416
|
let leftVal = leftRow[comparePath[0]],
|
|
1348
|
-
|
|
1417
|
+
rightVal = rightRow[comparePath[0]];
|
|
1349
1418
|
if (hasPath) {
|
|
1350
1419
|
for (i = 1; i < pathLength; i++) {
|
|
1351
1420
|
leftVal = leftVal && leftVal[comparePath[i]];
|
|
@@ -1387,7 +1456,7 @@ RowCollection.prototype.sort = function (silent) {
|
|
|
1387
1456
|
nativeSort.call(this, comparator);
|
|
1388
1457
|
} else {
|
|
1389
1458
|
let len = comparators.length,
|
|
1390
|
-
|
|
1459
|
+
value;
|
|
1391
1460
|
|
|
1392
1461
|
comparator = function (leftRow, rightRow) {
|
|
1393
1462
|
for (let i = 0; i < len; i++) {
|
|
@@ -1607,8 +1676,8 @@ class SelectionHelper {
|
|
|
1607
1676
|
|
|
1608
1677
|
return {
|
|
1609
1678
|
start: start,
|
|
1610
|
-
end: start + range.toString().length
|
|
1611
|
-
|
|
1679
|
+
end: start + range.toString().length
|
|
1680
|
+
};
|
|
1612
1681
|
}
|
|
1613
1682
|
|
|
1614
1683
|
static restoreSelection(el, savedSel) {
|
|
@@ -1641,7 +1710,8 @@ class SelectionHelper {
|
|
|
1641
1710
|
let sel = window.getSelection();
|
|
1642
1711
|
sel.removeAllRanges();
|
|
1643
1712
|
sel.addRange(range);
|
|
1644
|
-
}
|
|
1713
|
+
}
|
|
1714
|
+
}
|
|
1645
1715
|
|
|
1646
1716
|
function ByColumnFilter(row, args) {
|
|
1647
1717
|
|
|
@@ -1668,7 +1738,7 @@ function ByColumnFilter(row, args) {
|
|
|
1668
1738
|
/* eslint-env browser */
|
|
1669
1739
|
|
|
1670
1740
|
const nativeIndexOf = Array.prototype.indexOf;
|
|
1671
|
-
const $ =
|
|
1741
|
+
const $ = jQuery;
|
|
1672
1742
|
|
|
1673
1743
|
let userAgent = navigator.userAgent;
|
|
1674
1744
|
let ieVersion = userAgent.indexOf('MSIE ') !== -1 ? parseFloat(userAgent.substr(userAgent.indexOf('MSIE ') + 5)) : null;
|
|
@@ -1910,13 +1980,11 @@ DGTable.prototype.initialize = function (options) {
|
|
|
1910
1980
|
|
|
1911
1981
|
let tmpSortColumns = options.sortColumn;
|
|
1912
1982
|
|
|
1913
|
-
if (tmpSortColumns &&
|
|
1983
|
+
if (tmpSortColumns && !Array.isArray(tmpSortColumns)) {
|
|
1914
1984
|
tmpSortColumns = [tmpSortColumns];
|
|
1915
1985
|
}
|
|
1916
1986
|
|
|
1917
|
-
if (tmpSortColumns
|
|
1918
|
-
typeof tmpSortColumns === 'object') {
|
|
1919
|
-
|
|
1987
|
+
if (tmpSortColumns) {
|
|
1920
1988
|
for (let i = 0, len = tmpSortColumns.length; i < len; i++) {
|
|
1921
1989
|
let sortColumn = tmpSortColumns[i];
|
|
1922
1990
|
if (typeof sortColumn === 'string') {
|
|
@@ -1928,8 +1996,8 @@ DGTable.prototype.initialize = function (options) {
|
|
|
1928
1996
|
sortColumns.push({
|
|
1929
1997
|
column: sortColumn.column,
|
|
1930
1998
|
comparePath: col.comparePath || col.dataPath,
|
|
1931
|
-
descending: sortColumn.descending
|
|
1932
|
-
|
|
1999
|
+
descending: sortColumn.descending
|
|
2000
|
+
});
|
|
1933
2001
|
}
|
|
1934
2002
|
}
|
|
1935
2003
|
}
|
|
@@ -2084,8 +2152,8 @@ DGTable.prototype.on = function (eventName, callback) {
|
|
|
2084
2152
|
|
|
2085
2153
|
events[eventName].push({
|
|
2086
2154
|
cb: callback,
|
|
2087
|
-
once: false
|
|
2088
|
-
|
|
2155
|
+
once: false
|
|
2156
|
+
});
|
|
2089
2157
|
|
|
2090
2158
|
return that;
|
|
2091
2159
|
};
|
|
@@ -2109,8 +2177,8 @@ DGTable.prototype.once = function (eventName, callback) {
|
|
|
2109
2177
|
|
|
2110
2178
|
events[eventName].push({
|
|
2111
2179
|
cb: callback,
|
|
2112
|
-
once: true
|
|
2113
|
-
|
|
2180
|
+
once: true
|
|
2181
|
+
});
|
|
2114
2182
|
|
|
2115
2183
|
return that;
|
|
2116
2184
|
};
|
|
@@ -2169,7 +2237,7 @@ DGTable.prototype.trigger = function (eventName) {
|
|
|
2169
2237
|
DGTable.prototype._parseColumnWidth = function (width, minWidth) {
|
|
2170
2238
|
|
|
2171
2239
|
let widthSize = Math.max(0, parseFloat(width)),
|
|
2172
|
-
|
|
2240
|
+
widthMode = ColumnWidthMode.AUTO; // Default
|
|
2173
2241
|
|
|
2174
2242
|
if (widthSize > 0) {
|
|
2175
2243
|
// Well, it's sure is not AUTO, as we have a value
|
|
@@ -2214,8 +2282,8 @@ DGTable.prototype._initColumnFromData = function (columnData) {
|
|
|
2214
2282
|
movable: columnData.movable === undefined ? true : columnData.movable,
|
|
2215
2283
|
visible: columnData.visible === undefined ? true : columnData.visible,
|
|
2216
2284
|
cellClasses: columnData.cellClasses === undefined ? this.o.cellClasses : columnData.cellClasses,
|
|
2217
|
-
ignoreMin: columnData.ignoreMin === undefined ? false : !!columnData.ignoreMin
|
|
2218
|
-
|
|
2285
|
+
ignoreMin: columnData.ignoreMin === undefined ? false : !!columnData.ignoreMin
|
|
2286
|
+
};
|
|
2219
2287
|
|
|
2220
2288
|
col.dataPath = columnData.dataPath === undefined ? col.name : columnData.dataPath;
|
|
2221
2289
|
col.comparePath = columnData.comparePath === undefined ? col.dataPath : columnData.comparePath;
|
|
@@ -2238,8 +2306,8 @@ DGTable.prototype._initColumnFromData = function (columnData) {
|
|
|
2238
2306
|
DGTable.prototype.close = DGTable.prototype.remove = DGTable.prototype.destroy = function () {
|
|
2239
2307
|
|
|
2240
2308
|
let that = this,
|
|
2241
|
-
|
|
2242
|
-
|
|
2309
|
+
p = that.p || {},
|
|
2310
|
+
$el = that.$el;
|
|
2243
2311
|
|
|
2244
2312
|
if (that.__removed) {
|
|
2245
2313
|
return that;
|
|
@@ -2367,7 +2435,7 @@ DGTable.prototype.render = function () {
|
|
|
2367
2435
|
}
|
|
2368
2436
|
|
|
2369
2437
|
let lastScrollTop = p.table && p.table.parentNode ? p.table.scrollTop : NaN,
|
|
2370
|
-
|
|
2438
|
+
lastScrollHorz = p.table && p.table.parentNode ? ScrollHelper.getScrollHorz(p.table) : NaN;
|
|
2371
2439
|
|
|
2372
2440
|
this._renderSkeletonBase().
|
|
2373
2441
|
_renderSkeletonBody().
|
|
@@ -2495,17 +2563,17 @@ DGTable.prototype.renderRows = function (first, last) {
|
|
|
2495
2563
|
const o = this.o,p = this.p;
|
|
2496
2564
|
|
|
2497
2565
|
let tableClassName = o.tableClassName,
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2566
|
+
rowClassName = tableClassName + '-row',
|
|
2567
|
+
altRowClassName = tableClassName + '-row-alt',
|
|
2568
|
+
cellClassName = tableClassName + '-cell',
|
|
2569
|
+
rows = p.filteredRows || p.rows,
|
|
2570
|
+
isDataFiltered = !!p.filteredRows,
|
|
2571
|
+
allowCellPreview = o.allowCellPreview,
|
|
2572
|
+
visibleColumns = p.visibleColumns,
|
|
2573
|
+
isVirtual = o.virtualTable,
|
|
2574
|
+
virtualRowHeightFirst = p.virtualRowHeightFirst,
|
|
2575
|
+
virtualRowHeight = p.virtualRowHeight,
|
|
2576
|
+
top;
|
|
2509
2577
|
|
|
2510
2578
|
let colCount = visibleColumns.length;
|
|
2511
2579
|
for (let colIndex = 0, column; colIndex < colCount; colIndex++) {
|
|
@@ -2516,7 +2584,7 @@ DGTable.prototype.renderRows = function (first, last) {
|
|
|
2516
2584
|
let bodyFragment = document.createDocumentFragment();
|
|
2517
2585
|
|
|
2518
2586
|
let isRtl = this._isTableRtl(),
|
|
2519
|
-
|
|
2587
|
+
virtualRowXAttr = isRtl ? 'right' : 'left';
|
|
2520
2588
|
|
|
2521
2589
|
const supportedTransform = CssUtil.getSupportedTransform();
|
|
2522
2590
|
|
|
@@ -2612,13 +2680,13 @@ DGTable.prototype._calculateTbodyWidth = function () {
|
|
|
2612
2680
|
const p = this.p;
|
|
2613
2681
|
|
|
2614
2682
|
let tableClassName = this.o.tableClassName,
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2683
|
+
rowClassName = tableClassName + '-row',
|
|
2684
|
+
cellClassName = tableClassName + '-cell',
|
|
2685
|
+
visibleColumns = p.visibleColumns,
|
|
2686
|
+
colCount = visibleColumns.length,
|
|
2687
|
+
cell,
|
|
2688
|
+
colIndex,
|
|
2689
|
+
column;
|
|
2622
2690
|
|
|
2623
2691
|
let $row = $('<div>').addClass(rowClassName).css('float', 'left');
|
|
2624
2692
|
let sumActualWidth = 0;
|
|
@@ -2836,8 +2904,8 @@ DGTable.prototype.filter = function (args) {
|
|
|
2836
2904
|
args = {
|
|
2837
2905
|
column: arguments[0],
|
|
2838
2906
|
keyword: arguments[1],
|
|
2839
|
-
caseSensitive: arguments[2]
|
|
2840
|
-
|
|
2907
|
+
caseSensitive: arguments[2]
|
|
2908
|
+
};
|
|
2841
2909
|
}
|
|
2842
2910
|
|
|
2843
2911
|
let hadFilter = !!p.filteredRows;
|
|
@@ -2939,7 +3007,7 @@ DGTable.prototype.moveColumn = function (src, dest, visibleOnly = true) {
|
|
|
2939
3007
|
const o = this.o,p = this.p;
|
|
2940
3008
|
|
|
2941
3009
|
let columns = p.columns,
|
|
2942
|
-
|
|
3010
|
+
col,destCol;
|
|
2943
3011
|
|
|
2944
3012
|
let columnsArray = visibleOnly ? p.visibleColumns : columns.getColumns();
|
|
2945
3013
|
|
|
@@ -2971,7 +3039,7 @@ DGTable.prototype.moveColumn = function (src, dest, visibleOnly = true) {
|
|
|
2971
3039
|
} else {
|
|
2972
3040
|
let headerCell = p.$headerRow.find('>div.' + o.tableClassName + '-header-cell');
|
|
2973
3041
|
let beforePos = srcOrder < destOrder ? destOrder + 1 : destOrder,
|
|
2974
|
-
|
|
3042
|
+
fromPos = srcOrder;
|
|
2975
3043
|
headerCell[0].parentNode.insertBefore(headerCell[fromPos], headerCell[beforePos]);
|
|
2976
3044
|
|
|
2977
3045
|
let srcWidth = p.visibleColumns[srcOrder];
|
|
@@ -3008,7 +3076,7 @@ DGTable.prototype.sort = function (column, descending, add) {
|
|
|
3008
3076
|
const o = this.o,p = this.p;
|
|
3009
3077
|
|
|
3010
3078
|
let columns = p.columns,
|
|
3011
|
-
|
|
3079
|
+
col = columns.get(column);
|
|
3012
3080
|
|
|
3013
3081
|
let currentSort = p.rows.sortColumn;
|
|
3014
3082
|
|
|
@@ -3046,8 +3114,8 @@ DGTable.prototype.sort = function (column, descending, add) {
|
|
|
3046
3114
|
currentSort.push({
|
|
3047
3115
|
column: col.name,
|
|
3048
3116
|
comparePath: col.comparePath || col.dataPath,
|
|
3049
|
-
descending: !!descending
|
|
3050
|
-
|
|
3117
|
+
descending: !!descending
|
|
3118
|
+
});
|
|
3051
3119
|
} else {
|
|
3052
3120
|
currentSort.length = 0;
|
|
3053
3121
|
}
|
|
@@ -3374,8 +3442,8 @@ DGTable.prototype.getColumnConfig = function (column) {
|
|
|
3374
3442
|
'order': col.order,
|
|
3375
3443
|
'width': this._serializeColumnWidth(col),
|
|
3376
3444
|
'visible': col.visible,
|
|
3377
|
-
'label': col.label
|
|
3378
|
-
|
|
3445
|
+
'label': col.label
|
|
3446
|
+
};
|
|
3379
3447
|
}
|
|
3380
3448
|
return null;
|
|
3381
3449
|
};
|
|
@@ -3683,14 +3751,14 @@ DGTable.prototype.tableWidthChanged = function () {
|
|
|
3683
3751
|
let tableClassName = this.o.tableClassName;
|
|
3684
3752
|
|
|
3685
3753
|
let $cell,$tableWrapper = $('<div>').addClass(this.$el).append(
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
|
|
3754
|
+
$('<div>').addClass(tableClassName + '-header').append(
|
|
3755
|
+
$('<div>').addClass(tableClassName + '-header-row').append(
|
|
3756
|
+
$cell = $('<div>').addClass(tableClassName + '-header-cell').append(
|
|
3757
|
+
$('<div>').text(text))))).
|
|
3690
3758
|
|
|
3691
3759
|
|
|
3692
3760
|
|
|
3693
|
-
|
|
3761
|
+
css({ 'position': 'absolute', top: '-9999px', 'visibility': 'hidden' });
|
|
3694
3762
|
$tableWrapper.appendTo(document.body);
|
|
3695
3763
|
|
|
3696
3764
|
let width = Css.getElementWidth($cell[0]);
|
|
@@ -3712,11 +3780,11 @@ DGTable.prototype.tableWidthChanged = function () {
|
|
|
3712
3780
|
return function (forceUpdate, renderColumns) {
|
|
3713
3781
|
|
|
3714
3782
|
let that = this,
|
|
3715
|
-
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
|
|
3719
|
-
|
|
3783
|
+
o = that.o,
|
|
3784
|
+
p = that.p,
|
|
3785
|
+
detectedWidth = this._calculateWidthAvailableForColumns(),
|
|
3786
|
+
sizeLeft = detectedWidth,
|
|
3787
|
+
relatives = 0;
|
|
3720
3788
|
|
|
3721
3789
|
if (!p.$table) return this;
|
|
3722
3790
|
|
|
@@ -3936,8 +4004,8 @@ DGTable.prototype.tableWidthChanged = function () {
|
|
|
3936
4004
|
*/
|
|
3937
4005
|
DGTable.prototype.tableHeightChanged = function () {
|
|
3938
4006
|
let that = this,
|
|
3939
|
-
|
|
3940
|
-
|
|
4007
|
+
o = that.o,
|
|
4008
|
+
p = that.p;
|
|
3941
4009
|
|
|
3942
4010
|
if (!p.$table) {
|
|
3943
4011
|
return that;
|
|
@@ -3976,7 +4044,7 @@ DGTable.prototype.tableHeightChanged = function () {
|
|
|
3976
4044
|
*/
|
|
3977
4045
|
DGTable.prototype.addRows = function (data, at, resort, render) {
|
|
3978
4046
|
let that = this,
|
|
3979
|
-
|
|
4047
|
+
p = that.p;
|
|
3980
4048
|
|
|
3981
4049
|
if (typeof at === 'boolean') {
|
|
3982
4050
|
render = resort;
|
|
@@ -4029,7 +4097,7 @@ DGTable.prototype.addRows = function (data, at, resort, render) {
|
|
|
4029
4097
|
} else if (p.$tbody) {
|
|
4030
4098
|
|
|
4031
4099
|
let firstRow = at,
|
|
4032
|
-
|
|
4100
|
+
lastRow = at + data.length - 1;
|
|
4033
4101
|
|
|
4034
4102
|
let renderedRows = that.renderRows(firstRow, lastRow);
|
|
4035
4103
|
p.tbody.insertBefore(renderedRows, childNodes[at] || null);
|
|
@@ -4063,7 +4131,7 @@ DGTable.prototype.addRows = function (data, at, resort, render) {
|
|
|
4063
4131
|
*/
|
|
4064
4132
|
DGTable.prototype.removeRows = function (physicalRowIndex, count, render) {
|
|
4065
4133
|
let that = this,
|
|
4066
|
-
|
|
4134
|
+
p = that.p;
|
|
4067
4135
|
|
|
4068
4136
|
if (typeof count !== 'number' || count <= 0) return this;
|
|
4069
4137
|
|
|
@@ -4154,7 +4222,7 @@ DGTable.prototype.removeRow = function (physicalRowIndex, render) {
|
|
|
4154
4222
|
*/
|
|
4155
4223
|
DGTable.prototype.refreshRow = function (physicalRowIndex) {
|
|
4156
4224
|
let that = this,
|
|
4157
|
-
|
|
4225
|
+
p = that.p;
|
|
4158
4226
|
|
|
4159
4227
|
if (physicalRowIndex < 0 || physicalRowIndex > p.rows.length - 1) return this;
|
|
4160
4228
|
|
|
@@ -4207,7 +4275,7 @@ DGTable.prototype.refreshRow = function (physicalRowIndex) {
|
|
|
4207
4275
|
*/
|
|
4208
4276
|
DGTable.prototype.getRowElement = function (physicalRowIndex) {
|
|
4209
4277
|
let that = this,
|
|
4210
|
-
|
|
4278
|
+
p = that.p;
|
|
4211
4279
|
|
|
4212
4280
|
if (physicalRowIndex < 0 || physicalRowIndex > p.rows.length - 1) return null;
|
|
4213
4281
|
|
|
@@ -4278,7 +4346,7 @@ DGTable.prototype.refreshAllVirtualRows = function () {
|
|
|
4278
4346
|
*/
|
|
4279
4347
|
DGTable.prototype.setRows = function (data, resort) {
|
|
4280
4348
|
let that = this,
|
|
4281
|
-
|
|
4349
|
+
p = that.p;
|
|
4282
4350
|
|
|
4283
4351
|
// this.scrollTop = this.$el.find('.table').scrollTop();
|
|
4284
4352
|
p.rows.reset(data);
|
|
@@ -4305,7 +4373,7 @@ DGTable.prototype.setRows = function (data, resort) {
|
|
|
4305
4373
|
*/
|
|
4306
4374
|
DGTable.prototype.getUrlForElementContent = function (id) {
|
|
4307
4375
|
let blob,
|
|
4308
|
-
|
|
4376
|
+
el = document.getElementById(id);
|
|
4309
4377
|
if (el) {
|
|
4310
4378
|
let data = el.textContent;
|
|
4311
4379
|
if (typeof Blob === 'function') {
|
|
@@ -4345,7 +4413,7 @@ DGTable.prototype.isWorkerSupported = function () {
|
|
|
4345
4413
|
DGTable.prototype.createWebWorker = function (url, start, resort) {
|
|
4346
4414
|
if (this.isWorkerSupported()) {
|
|
4347
4415
|
let that = this,
|
|
4348
|
-
|
|
4416
|
+
p = that.p;
|
|
4349
4417
|
|
|
4350
4418
|
let worker = new Worker(url);
|
|
4351
4419
|
let listener = function (evt) {
|
|
@@ -4377,7 +4445,7 @@ DGTable.prototype.createWebWorker = function (url, start, resort) {
|
|
|
4377
4445
|
*/
|
|
4378
4446
|
DGTable.prototype.unbindWebWorker = function (worker) {
|
|
4379
4447
|
let that = this,
|
|
4380
|
-
|
|
4448
|
+
p = that.p;
|
|
4381
4449
|
|
|
4382
4450
|
if (p.workerListeners) {
|
|
4383
4451
|
for (let j = 0; j < p.workerListeners.length; j++) {
|
|
@@ -4441,11 +4509,11 @@ DGTable.prototype._onTableScrolledHorizontally = function () {
|
|
|
4441
4509
|
DGTable.prototype._getColumnByResizePosition = function (e) {
|
|
4442
4510
|
|
|
4443
4511
|
let that = this,
|
|
4444
|
-
|
|
4445
|
-
|
|
4512
|
+
o = that.o,
|
|
4513
|
+
rtl = this._isTableRtl();
|
|
4446
4514
|
|
|
4447
4515
|
let $headerCell = $(e.target).closest('div.' + o.tableClassName + '-header-cell,div.' + o.cellPreviewClassName),
|
|
4448
|
-
|
|
4516
|
+
headerCell = $headerCell[0];
|
|
4449
4517
|
if (headerCell['__cell']) {
|
|
4450
4518
|
headerCell = headerCell['__cell'];
|
|
4451
4519
|
$headerCell = $(headerCell);
|
|
@@ -4491,8 +4559,8 @@ DGTable.prototype._onTouchStartColumnHeader = function (event) {
|
|
|
4491
4559
|
let $eventTarget = $(event.currentTarget);
|
|
4492
4560
|
|
|
4493
4561
|
let startPos = { x: startTouch.pageX, y: startTouch.pageY },
|
|
4494
|
-
|
|
4495
|
-
|
|
4562
|
+
currentPos = startPos,
|
|
4563
|
+
distanceTreshold = 9;
|
|
4496
4564
|
|
|
4497
4565
|
let tapAndHoldTimeout;
|
|
4498
4566
|
|
|
@@ -4587,9 +4655,9 @@ DGTable.prototype._onMouseDownColumnHeader = function (event) {
|
|
|
4587
4655
|
if (event.which !== 1) return this; // Only treat left-clicks
|
|
4588
4656
|
|
|
4589
4657
|
let that = this,
|
|
4590
|
-
|
|
4591
|
-
|
|
4592
|
-
|
|
4658
|
+
o = that.o,
|
|
4659
|
+
p = that.p,
|
|
4660
|
+
col = this._getColumnByResizePosition(event);
|
|
4593
4661
|
|
|
4594
4662
|
if (col) {
|
|
4595
4663
|
let column = p.columns.get(col);
|
|
@@ -4611,15 +4679,15 @@ DGTable.prototype._onMouseDownColumnHeader = function (event) {
|
|
|
4611
4679
|
'visibility': 'hidden',
|
|
4612
4680
|
'width': '2px',
|
|
4613
4681
|
'background': '#000',
|
|
4614
|
-
'opacity': 0.7
|
|
4615
|
-
|
|
4682
|
+
'opacity': 0.7
|
|
4683
|
+
}).
|
|
4616
4684
|
appendTo(this.$el);
|
|
4617
4685
|
|
|
4618
4686
|
let selectedHeaderCell = column.element,
|
|
4619
|
-
|
|
4687
|
+
commonAncestor = p.$resizer.parent();
|
|
4620
4688
|
|
|
4621
4689
|
let posCol = selectedHeaderCell.offset(),
|
|
4622
|
-
|
|
4690
|
+
posRelative = commonAncestor.offset();
|
|
4623
4691
|
if (ieVersion === 8) {
|
|
4624
4692
|
posCol = selectedHeaderCell.offset(); // IE8 bug, first time it receives zeros...
|
|
4625
4693
|
}
|
|
@@ -4644,8 +4712,8 @@ DGTable.prototype._onMouseDownColumnHeader = function (event) {
|
|
|
4644
4712
|
'visibility': 'visible',
|
|
4645
4713
|
'left': posCol.left,
|
|
4646
4714
|
'top': posCol.top,
|
|
4647
|
-
'height': Css.getElementHeight(this.$el[0])
|
|
4648
|
-
0]['columnName'] = selectedHeaderCell[0]['columnName'];
|
|
4715
|
+
'height': Css.getElementHeight(this.$el[0])
|
|
4716
|
+
})[0]['columnName'] = selectedHeaderCell[0]['columnName'];
|
|
4649
4717
|
|
|
4650
4718
|
try {p.$resizer[0].style.zIndex = '';}
|
|
4651
4719
|
catch (ignored) {/* we're ok with this */}
|
|
@@ -4663,8 +4731,8 @@ DGTable.prototype._onMouseDownColumnHeader = function (event) {
|
|
|
4663
4731
|
DGTable.prototype._onMouseMoveColumnHeader = function (event) {
|
|
4664
4732
|
|
|
4665
4733
|
let that = this,
|
|
4666
|
-
|
|
4667
|
-
|
|
4734
|
+
o = that.o,
|
|
4735
|
+
p = that.p;
|
|
4668
4736
|
|
|
4669
4737
|
if (o.resizableColumns) {
|
|
4670
4738
|
let col = this._getColumnByResizePosition(event);
|
|
@@ -4713,8 +4781,8 @@ DGTable.prototype._onClickColumnHeader = function (event) {
|
|
|
4713
4781
|
if (!this._getColumnByResizePosition(event)) {
|
|
4714
4782
|
|
|
4715
4783
|
let that = this,
|
|
4716
|
-
|
|
4717
|
-
|
|
4784
|
+
o = that.o,
|
|
4785
|
+
p = that.p;
|
|
4718
4786
|
|
|
4719
4787
|
let headerCell = $(event.target).closest('div.' + o.tableClassName + '-header-cell,div.' + o.cellPreviewClassName)[0];
|
|
4720
4788
|
if (o.sortableColumns) {
|
|
@@ -4733,8 +4801,8 @@ DGTable.prototype._onClickColumnHeader = function (event) {
|
|
|
4733
4801
|
DGTable.prototype._onStartDragColumnHeader = function (event) {
|
|
4734
4802
|
|
|
4735
4803
|
let that = this,
|
|
4736
|
-
|
|
4737
|
-
|
|
4804
|
+
o = that.o,
|
|
4805
|
+
p = that.p;
|
|
4738
4806
|
|
|
4739
4807
|
if (o.movableColumns) {
|
|
4740
4808
|
|
|
@@ -4764,13 +4832,13 @@ DGTable.prototype._onStartDragColumnHeader = function (event) {
|
|
|
4764
4832
|
DGTable.prototype._onMouseMoveResizeArea = function (event) {
|
|
4765
4833
|
|
|
4766
4834
|
let that = this,
|
|
4767
|
-
|
|
4835
|
+
p = that.p;
|
|
4768
4836
|
|
|
4769
4837
|
let column = p.columns.get(p.$resizer[0]['columnName']);
|
|
4770
4838
|
let rtl = this._isTableRtl();
|
|
4771
4839
|
|
|
4772
4840
|
let selectedHeaderCell = column.element,
|
|
4773
|
-
|
|
4841
|
+
commonAncestor = p.$resizer.parent();
|
|
4774
4842
|
let posCol = selectedHeaderCell.offset(),posRelative = commonAncestor.offset();
|
|
4775
4843
|
posRelative.left += parseFloat(commonAncestor.css('border-left-width')) || 0;
|
|
4776
4844
|
posCol.left -= posRelative.left;
|
|
@@ -4818,8 +4886,8 @@ DGTable.prototype._onMouseMoveResizeArea = function (event) {
|
|
|
4818
4886
|
DGTable.prototype._onEndDragColumnHeader = function (event) {
|
|
4819
4887
|
|
|
4820
4888
|
let that = this,
|
|
4821
|
-
|
|
4822
|
-
|
|
4889
|
+
o = that.o,
|
|
4890
|
+
p = that.p;
|
|
4823
4891
|
|
|
4824
4892
|
if (!p.$resizer) {
|
|
4825
4893
|
event.target.style.opacity = null;
|
|
@@ -4831,7 +4899,7 @@ DGTable.prototype._onEndDragColumnHeader = function (event) {
|
|
|
4831
4899
|
let rtl = this._isTableRtl();
|
|
4832
4900
|
|
|
4833
4901
|
let selectedHeaderCell = column.element,
|
|
4834
|
-
|
|
4902
|
+
commonAncestor = p.$resizer.parent();
|
|
4835
4903
|
let posCol = selectedHeaderCell.offset(),posRelative = commonAncestor.offset();
|
|
4836
4904
|
posRelative.left += parseFloat(commonAncestor.css('border-left-width')) || 0;
|
|
4837
4905
|
posCol.left -= posRelative.left;
|
|
@@ -4934,8 +5002,8 @@ DGTable.prototype._onEndDragColumnHeader = function (event) {
|
|
|
4934
5002
|
*/
|
|
4935
5003
|
DGTable.prototype._onDragEnterColumnHeader = function (event) {
|
|
4936
5004
|
let that = this,
|
|
4937
|
-
|
|
4938
|
-
|
|
5005
|
+
o = that.o,
|
|
5006
|
+
p = that.p;
|
|
4939
5007
|
|
|
4940
5008
|
if (o.movableColumns) {
|
|
4941
5009
|
let dataTransferred = event.originalEvent.dataTransfer.getData('text');
|
|
@@ -4987,16 +5055,16 @@ DGTable.prototype._onDropColumnHeader = function (event) {
|
|
|
4987
5055
|
event.preventDefault();
|
|
4988
5056
|
|
|
4989
5057
|
let that = this,
|
|
4990
|
-
|
|
4991
|
-
|
|
5058
|
+
o = that.o,
|
|
5059
|
+
p = that.p;
|
|
4992
5060
|
|
|
4993
5061
|
let dataTransferred = JSON.parse(event.originalEvent.dataTransfer.getData('text'));
|
|
4994
5062
|
let $headerCell = $(event.target).closest('div.' + o.tableClassName + '-header-cell,div.' + o.cellPreviewClassName);
|
|
4995
5063
|
if (o.movableColumns && dataTransferred.dragId === p.dragId) {
|
|
4996
5064
|
let srcColName = dataTransferred.column,
|
|
4997
|
-
|
|
4998
|
-
|
|
4999
|
-
|
|
5065
|
+
destColName = $headerCell[0]['columnName'],
|
|
5066
|
+
srcCol = p.columns.get(srcColName),
|
|
5067
|
+
destCol = p.columns.get(destColName);
|
|
5000
5068
|
if (srcCol && destCol && srcCol.movable && (destCol.movable || destCol !== p.visibleColumns[0])) {
|
|
5001
5069
|
this.moveColumn(srcColName, destColName);
|
|
5002
5070
|
}
|
|
@@ -5011,7 +5079,7 @@ DGTable.prototype._onDropColumnHeader = function (event) {
|
|
|
5011
5079
|
DGTable.prototype._clearSortArrows = function () {
|
|
5012
5080
|
|
|
5013
5081
|
let that = this,
|
|
5014
|
-
|
|
5082
|
+
p = that.p;
|
|
5015
5083
|
|
|
5016
5084
|
if (p.$table) {
|
|
5017
5085
|
let tableClassName = this.o.tableClassName;
|
|
@@ -5038,7 +5106,7 @@ DGTable.prototype._clearSortArrows = function () {
|
|
|
5038
5106
|
DGTable.prototype._showSortArrow = function (column, descending) {
|
|
5039
5107
|
|
|
5040
5108
|
let that = this,
|
|
5041
|
-
|
|
5109
|
+
p = that.p;
|
|
5042
5110
|
|
|
5043
5111
|
let col = p.columns.get(column);
|
|
5044
5112
|
if (!col) return false;
|
|
@@ -5066,7 +5134,7 @@ DGTable.prototype._showSortArrow = function (column, descending) {
|
|
|
5066
5134
|
DGTable.prototype._resizeColumnElements = function (cellIndex) {
|
|
5067
5135
|
|
|
5068
5136
|
let that = this,
|
|
5069
|
-
|
|
5137
|
+
p = that.p;
|
|
5070
5138
|
|
|
5071
5139
|
let headerCells = p.$headerRow.find('div.' + this.o.tableClassName + '-header-cell');
|
|
5072
5140
|
let col = p.columns.get(headerCells[cellIndex]['columnName']);
|
|
@@ -5092,8 +5160,8 @@ DGTable.prototype._resizeColumnElements = function (cellIndex) {
|
|
|
5092
5160
|
DGTable.prototype._destroyHeaderCells = function () {
|
|
5093
5161
|
|
|
5094
5162
|
let that = this,
|
|
5095
|
-
|
|
5096
|
-
|
|
5163
|
+
o = that.o,
|
|
5164
|
+
p = that.p;
|
|
5097
5165
|
|
|
5098
5166
|
if (p.$headerRow) {
|
|
5099
5167
|
this.trigger('headerrowdestroy', p.headerRow);
|
|
@@ -5110,8 +5178,8 @@ DGTable.prototype._destroyHeaderCells = function () {
|
|
|
5110
5178
|
*/
|
|
5111
5179
|
DGTable.prototype._renderSkeletonBase = function () {
|
|
5112
5180
|
let that = this,
|
|
5113
|
-
|
|
5114
|
-
|
|
5181
|
+
p = that.p,
|
|
5182
|
+
o = that.o;
|
|
5115
5183
|
|
|
5116
5184
|
// Clean up old elements
|
|
5117
5185
|
|
|
@@ -5135,10 +5203,10 @@ DGTable.prototype._renderSkeletonBase = function () {
|
|
|
5135
5203
|
|
|
5136
5204
|
// Create new base elements
|
|
5137
5205
|
let tableClassName = o.tableClassName,
|
|
5138
|
-
|
|
5139
|
-
|
|
5140
|
-
|
|
5141
|
-
|
|
5206
|
+
header = createElement('div'),
|
|
5207
|
+
$header = $(header),
|
|
5208
|
+
headerRow = createElement('div'),
|
|
5209
|
+
$headerRow = $(headerRow);
|
|
5142
5210
|
|
|
5143
5211
|
header.className = tableClassName + '-header';
|
|
5144
5212
|
headerRow.className = tableClassName + '-header-row';
|
|
@@ -5171,15 +5239,15 @@ DGTable.prototype._renderSkeletonBase = function () {
|
|
|
5171
5239
|
*/
|
|
5172
5240
|
DGTable.prototype._renderSkeletonHeaderCells = function () {
|
|
5173
5241
|
let that = this,
|
|
5174
|
-
|
|
5175
|
-
|
|
5242
|
+
p = that.p,
|
|
5243
|
+
o = that.o;
|
|
5176
5244
|
|
|
5177
5245
|
let allowCellPreview = o.allowCellPreview,
|
|
5178
|
-
|
|
5246
|
+
allowHeaderCellPreview = o.allowHeaderCellPreview;
|
|
5179
5247
|
|
|
5180
5248
|
let tableClassName = o.tableClassName,
|
|
5181
|
-
|
|
5182
|
-
|
|
5249
|
+
headerCellClassName = tableClassName + '-header-cell',
|
|
5250
|
+
headerRow = p.headerRow;
|
|
5183
5251
|
|
|
5184
5252
|
let ieDragDropHandler;
|
|
5185
5253
|
if (hasIeDragAndDropBug) {
|
|
@@ -5251,8 +5319,8 @@ DGTable.prototype._renderSkeletonHeaderCells = function () {
|
|
|
5251
5319
|
*/
|
|
5252
5320
|
DGTable.prototype._renderSkeletonBody = function () {
|
|
5253
5321
|
let that = this,
|
|
5254
|
-
|
|
5255
|
-
|
|
5322
|
+
p = that.p,
|
|
5323
|
+
o = that.o;
|
|
5256
5324
|
|
|
5257
5325
|
let tableClassName = o.tableClassName;
|
|
5258
5326
|
|
|
@@ -5260,8 +5328,8 @@ DGTable.prototype._renderSkeletonBody = function () {
|
|
|
5260
5328
|
if (o.virtualTable && !p.virtualRowHeight) {
|
|
5261
5329
|
let createDummyRow = function () {
|
|
5262
5330
|
let row = createElement('div'),
|
|
5263
|
-
|
|
5264
|
-
|
|
5331
|
+
cell = row.appendChild(createElement('div')),
|
|
5332
|
+
cellInner = cell.appendChild(createElement('div'));
|
|
5265
5333
|
row.className = tableClassName + '-row';
|
|
5266
5334
|
cell.className = tableClassName + '-cell';
|
|
5267
5335
|
cellInner.innerHTML = '0';
|
|
@@ -5271,11 +5339,11 @@ DGTable.prototype._renderSkeletonBody = function () {
|
|
|
5271
5339
|
};
|
|
5272
5340
|
|
|
5273
5341
|
let $dummyTbody,$dummyWrapper = $('<div>').
|
|
5274
|
-
|
|
5275
|
-
|
|
5276
|
-
|
|
5277
|
-
|
|
5278
|
-
|
|
5342
|
+
addClass(that.el.className).
|
|
5343
|
+
css({ 'z-index': -1, 'position': 'absolute', left: '0', top: '-9999px', width: '1px', overflow: 'hidden' }).
|
|
5344
|
+
append(
|
|
5345
|
+
$('<div>').addClass(tableClassName).append(
|
|
5346
|
+
$dummyTbody = $('<div>').addClass(tableClassName + '-body').css('width', 99999)));
|
|
5279
5347
|
|
|
5280
5348
|
|
|
5281
5349
|
|
|
@@ -5416,7 +5484,7 @@ DGTable.prototype._updateTableWidth = function (parentSizeMayHaveChanged) {
|
|
|
5416
5484
|
|
|
5417
5485
|
if (parentSizeMayHaveChanged) {
|
|
5418
5486
|
let lastScrollTop = p.table ? p.table.scrollTop : 0,
|
|
5419
|
-
|
|
5487
|
+
lastScrollLeft = p.table ? p.table.scrollLeft : 0;
|
|
5420
5488
|
|
|
5421
5489
|
// BUGFIX: Relayout before recording the widths
|
|
5422
5490
|
webkitRenderBugfix(this.el);
|
|
@@ -5505,9 +5573,9 @@ DGTable.prototype._cellMouseOverEvent = function (el) {
|
|
|
5505
5573
|
}
|
|
5506
5574
|
|
|
5507
5575
|
let paddingL = parseFloat($el.css('padding-left')) || 0,
|
|
5508
|
-
|
|
5509
|
-
|
|
5510
|
-
|
|
5576
|
+
paddingR = parseFloat($el.css('padding-right')) || 0,
|
|
5577
|
+
paddingT = parseFloat($el.css('padding-top')) || 0,
|
|
5578
|
+
paddingB = parseFloat($el.css('padding-bottom')) || 0;
|
|
5511
5579
|
|
|
5512
5580
|
let requiredWidth = elInner.scrollWidth + (el.clientWidth - elInner.offsetWidth);
|
|
5513
5581
|
|
|
@@ -5541,8 +5609,8 @@ DGTable.prototype._cellMouseOverEvent = function (el) {
|
|
|
5541
5609
|
'z-index': '-1',
|
|
5542
5610
|
'left': '0',
|
|
5543
5611
|
'top': '0',
|
|
5544
|
-
'cursor': $el.css('cursor')
|
|
5545
|
-
|
|
5612
|
+
'cursor': $el.css('cursor')
|
|
5613
|
+
};
|
|
5546
5614
|
|
|
5547
5615
|
if (css) {
|
|
5548
5616
|
let bgColor = $(el).css('background-color');
|
|
@@ -5561,8 +5629,8 @@ DGTable.prototype._cellMouseOverEvent = function (el) {
|
|
|
5561
5629
|
|
|
5562
5630
|
$(previewCell.firstChild).css({
|
|
5563
5631
|
'direction': $elInner.css('direction'),
|
|
5564
|
-
'white-space': $elInner.css('white-space')
|
|
5565
|
-
|
|
5632
|
+
'white-space': $elInner.css('white-space')
|
|
5633
|
+
});
|
|
5566
5634
|
|
|
5567
5635
|
if (isHeaderCell) {
|
|
5568
5636
|
// Disable these to allow our own context menu events without interruption
|
|
@@ -5572,8 +5640,8 @@ DGTable.prototype._cellMouseOverEvent = function (el) {
|
|
|
5572
5640
|
'-moz-user-select': 'none',
|
|
5573
5641
|
'-ms-user-select': 'none',
|
|
5574
5642
|
'-o-user-select': 'none',
|
|
5575
|
-
'user-select': 'none'
|
|
5576
|
-
|
|
5643
|
+
'user-select': 'none'
|
|
5644
|
+
});
|
|
5577
5645
|
}
|
|
5578
5646
|
|
|
5579
5647
|
previewCell['rowIndex'] = rowNode['rowIndex'];
|
|
@@ -5639,7 +5707,7 @@ DGTable.prototype._cellMouseOverEvent = function (el) {
|
|
|
5639
5707
|
|
|
5640
5708
|
// Constrain horizontally
|
|
5641
5709
|
let minHorz = 0,
|
|
5642
|
-
|
|
5710
|
+
maxHorz = $parent - Css.getElementWidth($previewCell[0], true, true, true);
|
|
5643
5711
|
offset[prop] = offset[prop] < minHorz ?
|
|
5644
5712
|
minHorz :
|
|
5645
5713
|
offset[prop] > maxHorz ? maxHorz : offset[prop];
|
|
@@ -5654,8 +5722,8 @@ DGTable.prototype._cellMouseOverEvent = function (el) {
|
|
|
5654
5722
|
// Apply css to preview cell
|
|
5655
5723
|
let previewCss = {
|
|
5656
5724
|
top: offset.top,
|
|
5657
|
-
'z-index': 9999
|
|
5658
|
-
|
|
5725
|
+
'z-index': 9999
|
|
5726
|
+
};
|
|
5659
5727
|
previewCss[prop] = offset[prop];
|
|
5660
5728
|
|
|
5661
5729
|
$previewCell.css(previewCss);
|
|
@@ -5748,8 +5816,8 @@ DGTable.prototype.hideCellPreview = function () {
|
|
|
5748
5816
|
const ColumnWidthMode = {
|
|
5749
5817
|
/** @const*/AUTO: 0,
|
|
5750
5818
|
/** @const*/ABSOLUTE: 1,
|
|
5751
|
-
/** @const*/RELATIVE: 2
|
|
5752
|
-
|
|
5819
|
+
/** @const*/RELATIVE: 2
|
|
5820
|
+
};
|
|
5753
5821
|
|
|
5754
5822
|
/**
|
|
5755
5823
|
* @enum {DGTable.Width|String|undefined}
|
|
@@ -5759,8 +5827,8 @@ const ColumnWidthMode = {
|
|
|
5759
5827
|
DGTable.Width = {
|
|
5760
5828
|
/** @const*/NONE: 'none',
|
|
5761
5829
|
/** @const*/AUTO: 'auto',
|
|
5762
|
-
/** @const*/SCROLL: 'scroll'
|
|
5763
|
-
|
|
5830
|
+
/** @const*/SCROLL: 'scroll'
|
|
5831
|
+
};
|
|
5764
5832
|
|
|
5765
5833
|
/**
|
|
5766
5834
|
* @expose
|