@handsontable/vue 12.1.3 → 12.2.0
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.
|
@@ -12,17 +12,14 @@ var Vue__default = /*#__PURE__*/_interopDefaultLegacy(Vue);
|
|
|
12
12
|
|
|
13
13
|
function ownKeys(object, enumerableOnly) {
|
|
14
14
|
var keys = Object.keys(object);
|
|
15
|
-
|
|
16
15
|
if (Object.getOwnPropertySymbols) {
|
|
17
16
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
18
17
|
enumerableOnly && (symbols = symbols.filter(function (sym) {
|
|
19
18
|
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
20
19
|
})), keys.push.apply(keys, symbols);
|
|
21
20
|
}
|
|
22
|
-
|
|
23
21
|
return keys;
|
|
24
22
|
}
|
|
25
|
-
|
|
26
23
|
function _objectSpread2(target) {
|
|
27
24
|
for (var i = 1; i < arguments.length; i++) {
|
|
28
25
|
var source = null != arguments[i] ? arguments[i] : {};
|
|
@@ -32,10 +29,8 @@ function _objectSpread2(target) {
|
|
|
32
29
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
33
30
|
});
|
|
34
31
|
}
|
|
35
|
-
|
|
36
32
|
return target;
|
|
37
33
|
}
|
|
38
|
-
|
|
39
34
|
function _typeof$1(obj) {
|
|
40
35
|
"@babel/helpers - typeof";
|
|
41
36
|
|
|
@@ -45,13 +40,11 @@ function _typeof$1(obj) {
|
|
|
45
40
|
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
46
41
|
}, _typeof$1(obj);
|
|
47
42
|
}
|
|
48
|
-
|
|
49
43
|
function _classCallCheck(instance, Constructor) {
|
|
50
44
|
if (!(instance instanceof Constructor)) {
|
|
51
45
|
throw new TypeError("Cannot call a class as a function");
|
|
52
46
|
}
|
|
53
47
|
}
|
|
54
|
-
|
|
55
48
|
function _defineProperties(target, props) {
|
|
56
49
|
for (var i = 0; i < props.length; i++) {
|
|
57
50
|
var descriptor = props[i];
|
|
@@ -61,7 +54,6 @@ function _defineProperties(target, props) {
|
|
|
61
54
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
62
55
|
}
|
|
63
56
|
}
|
|
64
|
-
|
|
65
57
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
66
58
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
67
59
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
@@ -70,7 +62,6 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
70
62
|
});
|
|
71
63
|
return Constructor;
|
|
72
64
|
}
|
|
73
|
-
|
|
74
65
|
function _defineProperty$1(obj, key, value) {
|
|
75
66
|
if (key in obj) {
|
|
76
67
|
Object.defineProperty(obj, key, {
|
|
@@ -82,15 +73,12 @@ function _defineProperty$1(obj, key, value) {
|
|
|
82
73
|
} else {
|
|
83
74
|
obj[key] = value;
|
|
84
75
|
}
|
|
85
|
-
|
|
86
76
|
return obj;
|
|
87
77
|
}
|
|
88
|
-
|
|
89
78
|
function _inherits(subClass, superClass) {
|
|
90
79
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
91
80
|
throw new TypeError("Super expression must either be null or a function");
|
|
92
81
|
}
|
|
93
|
-
|
|
94
82
|
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
95
83
|
constructor: {
|
|
96
84
|
value: subClass,
|
|
@@ -103,14 +91,12 @@ function _inherits(subClass, superClass) {
|
|
|
103
91
|
});
|
|
104
92
|
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
105
93
|
}
|
|
106
|
-
|
|
107
94
|
function _getPrototypeOf(o) {
|
|
108
95
|
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
109
96
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
110
97
|
};
|
|
111
98
|
return _getPrototypeOf(o);
|
|
112
99
|
}
|
|
113
|
-
|
|
114
100
|
function _setPrototypeOf(o, p) {
|
|
115
101
|
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
116
102
|
o.__proto__ = p;
|
|
@@ -118,12 +104,10 @@ function _setPrototypeOf(o, p) {
|
|
|
118
104
|
};
|
|
119
105
|
return _setPrototypeOf(o, p);
|
|
120
106
|
}
|
|
121
|
-
|
|
122
107
|
function _isNativeReflectConstruct() {
|
|
123
108
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
124
109
|
if (Reflect.construct.sham) return false;
|
|
125
110
|
if (typeof Proxy === "function") return true;
|
|
126
|
-
|
|
127
111
|
try {
|
|
128
112
|
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
129
113
|
return true;
|
|
@@ -131,40 +115,31 @@ function _isNativeReflectConstruct() {
|
|
|
131
115
|
return false;
|
|
132
116
|
}
|
|
133
117
|
}
|
|
134
|
-
|
|
135
118
|
function _assertThisInitialized(self) {
|
|
136
119
|
if (self === void 0) {
|
|
137
120
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
138
121
|
}
|
|
139
|
-
|
|
140
122
|
return self;
|
|
141
123
|
}
|
|
142
|
-
|
|
143
124
|
function _possibleConstructorReturn(self, call) {
|
|
144
125
|
if (call && (typeof call === "object" || typeof call === "function")) {
|
|
145
126
|
return call;
|
|
146
127
|
} else if (call !== void 0) {
|
|
147
128
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
148
129
|
}
|
|
149
|
-
|
|
150
130
|
return _assertThisInitialized(self);
|
|
151
131
|
}
|
|
152
|
-
|
|
153
132
|
function _createSuper(Derived) {
|
|
154
133
|
var hasNativeReflectConstruct = _isNativeReflectConstruct();
|
|
155
|
-
|
|
156
134
|
return function _createSuperInternal() {
|
|
157
135
|
var Super = _getPrototypeOf(Derived),
|
|
158
|
-
|
|
159
|
-
|
|
136
|
+
result;
|
|
160
137
|
if (hasNativeReflectConstruct) {
|
|
161
138
|
var NewTarget = _getPrototypeOf(this).constructor;
|
|
162
|
-
|
|
163
139
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
164
140
|
} else {
|
|
165
141
|
result = Super.apply(this, arguments);
|
|
166
142
|
}
|
|
167
|
-
|
|
168
143
|
return _possibleConstructorReturn(this, result);
|
|
169
144
|
};
|
|
170
145
|
}
|
|
@@ -174,13 +149,11 @@ var bulkComponentContainer = null;
|
|
|
174
149
|
/**
|
|
175
150
|
* Message for the warning thrown if the Handsontable instance has been destroyed.
|
|
176
151
|
*/
|
|
177
|
-
|
|
178
152
|
var HOT_DESTROYED_WARNING = 'The Handsontable instance bound to this component was destroyed and cannot be' + ' used properly.';
|
|
179
153
|
/**
|
|
180
154
|
* Private method to ensure the table is not calling `updateSettings` after editing cells.
|
|
181
155
|
* @private
|
|
182
156
|
*/
|
|
183
|
-
|
|
184
157
|
function preventInternalEditWatch(component) {
|
|
185
158
|
if (component.hotInstance) {
|
|
186
159
|
component.hotInstance.addHook('beforeChange', function () {
|
|
@@ -206,28 +179,23 @@ function preventInternalEditWatch(component) {
|
|
|
206
179
|
* @param {String} source Source for the factory (either 'HotTable' or 'HotColumn').
|
|
207
180
|
* @returns {Object}
|
|
208
181
|
*/
|
|
209
|
-
|
|
210
182
|
function propFactory(source) {
|
|
211
183
|
var registeredHooks = Handsontable__default["default"].hooks.getRegistered();
|
|
212
184
|
var propSchema = {};
|
|
213
185
|
Object.assign(propSchema, Handsontable__default["default"].DefaultSettings);
|
|
214
|
-
|
|
215
186
|
for (var prop in propSchema) {
|
|
216
187
|
propSchema[prop] = {
|
|
217
188
|
"default": unassignedPropSymbol
|
|
218
189
|
};
|
|
219
190
|
}
|
|
220
|
-
|
|
221
191
|
for (var i = 0; i < registeredHooks.length; i++) {
|
|
222
192
|
propSchema[registeredHooks[i]] = {
|
|
223
193
|
"default": unassignedPropSymbol
|
|
224
194
|
};
|
|
225
195
|
}
|
|
226
|
-
|
|
227
196
|
propSchema.settings = {
|
|
228
197
|
"default": unassignedPropSymbol
|
|
229
198
|
};
|
|
230
|
-
|
|
231
199
|
if (source === 'HotTable') {
|
|
232
200
|
propSchema.id = {
|
|
233
201
|
type: String,
|
|
@@ -238,7 +206,6 @@ function propFactory(source) {
|
|
|
238
206
|
"default": 3000
|
|
239
207
|
};
|
|
240
208
|
}
|
|
241
|
-
|
|
242
209
|
return propSchema;
|
|
243
210
|
}
|
|
244
211
|
/**
|
|
@@ -247,11 +214,9 @@ function propFactory(source) {
|
|
|
247
214
|
* @param {Object} props Object containing all the possible props.
|
|
248
215
|
* @returns {Object} Object containing only used props.
|
|
249
216
|
*/
|
|
250
|
-
|
|
251
217
|
function filterPassedProps(props) {
|
|
252
218
|
var filteredProps = {};
|
|
253
219
|
var columnSettingsProp = props['settings'];
|
|
254
|
-
|
|
255
220
|
if (columnSettingsProp !== unassignedPropSymbol) {
|
|
256
221
|
for (var propName in columnSettingsProp) {
|
|
257
222
|
if (columnSettingsProp.hasOwnProperty(propName) && columnSettingsProp[propName] !== unassignedPropSymbol) {
|
|
@@ -259,13 +224,11 @@ function filterPassedProps(props) {
|
|
|
259
224
|
}
|
|
260
225
|
}
|
|
261
226
|
}
|
|
262
|
-
|
|
263
227
|
for (var _propName in props) {
|
|
264
228
|
if (props.hasOwnProperty(_propName) && _propName !== 'settings' && props[_propName] !== unassignedPropSymbol) {
|
|
265
229
|
filteredProps[_propName] = props[_propName];
|
|
266
230
|
}
|
|
267
231
|
}
|
|
268
|
-
|
|
269
232
|
return filteredProps;
|
|
270
233
|
}
|
|
271
234
|
/**
|
|
@@ -275,25 +238,21 @@ function filterPassedProps(props) {
|
|
|
275
238
|
* @param {Handsontable.GridSettings} currentSettings The current Handsontable settings.
|
|
276
239
|
* @returns {Handsontable.GridSettings} An object containing the properties, ready to be used within Handsontable.
|
|
277
240
|
*/
|
|
278
|
-
|
|
279
241
|
function prepareSettings(props, currentSettings) {
|
|
280
242
|
var assignedProps = filterPassedProps(props);
|
|
281
243
|
var hotSettingsInProps = props.settings ? props.settings : assignedProps;
|
|
282
244
|
var additionalHotSettingsInProps = props.settings ? assignedProps : null;
|
|
283
245
|
var newSettings = {};
|
|
284
|
-
|
|
285
246
|
for (var key in hotSettingsInProps) {
|
|
286
247
|
if (hotSettingsInProps.hasOwnProperty(key) && hotSettingsInProps[key] !== void 0 && (currentSettings && key !== 'data' ? !simpleEqual(currentSettings[key], hotSettingsInProps[key]) : true)) {
|
|
287
248
|
newSettings[key] = hotSettingsInProps[key];
|
|
288
249
|
}
|
|
289
250
|
}
|
|
290
|
-
|
|
291
251
|
for (var _key in additionalHotSettingsInProps) {
|
|
292
252
|
if (additionalHotSettingsInProps.hasOwnProperty(_key) && _key !== 'id' && _key !== 'settings' && _key !== 'wrapperRendererCacheSize' && additionalHotSettingsInProps[_key] !== void 0 && (currentSettings && _key !== 'data' ? !simpleEqual(currentSettings[_key], additionalHotSettingsInProps[_key]) : true)) {
|
|
293
253
|
newSettings[_key] = additionalHotSettingsInProps[_key];
|
|
294
254
|
}
|
|
295
255
|
}
|
|
296
|
-
|
|
297
256
|
return newSettings;
|
|
298
257
|
}
|
|
299
258
|
/**
|
|
@@ -303,7 +262,6 @@ function prepareSettings(props, currentSettings) {
|
|
|
303
262
|
* @param {String} type Type of the child component. Either `hot-renderer` or `hot-editor`.
|
|
304
263
|
* @returns {Object|null} The VNode of the child component (or `null` when nothing's found).
|
|
305
264
|
*/
|
|
306
|
-
|
|
307
265
|
function findVNodeByType(componentSlots, type) {
|
|
308
266
|
var componentVNode = null;
|
|
309
267
|
componentSlots.every(function (slot, index) {
|
|
@@ -311,7 +269,6 @@ function findVNodeByType(componentSlots, type) {
|
|
|
311
269
|
componentVNode = slot;
|
|
312
270
|
return false;
|
|
313
271
|
}
|
|
314
|
-
|
|
315
272
|
return true;
|
|
316
273
|
});
|
|
317
274
|
return componentVNode;
|
|
@@ -322,7 +279,6 @@ function findVNodeByType(componentSlots, type) {
|
|
|
322
279
|
* @param {Array} children Array of children from a component.
|
|
323
280
|
* @returns {Array} Array of `hot-column` instances.
|
|
324
281
|
*/
|
|
325
|
-
|
|
326
282
|
function getHotColumnComponents(children) {
|
|
327
283
|
return children.filter(function (child) {
|
|
328
284
|
return child.$options.name === 'HotColumn';
|
|
@@ -336,7 +292,6 @@ function getHotColumnComponents(children) {
|
|
|
336
292
|
* @param {Object} props Props to be passed to the new instance.
|
|
337
293
|
* @param {Object} data Data to be passed to the new instance.
|
|
338
294
|
*/
|
|
339
|
-
|
|
340
295
|
function createVueComponent(vNode, parent, props, data) {
|
|
341
296
|
var ownerDocument = parent.$el ? parent.$el.ownerDocument : document;
|
|
342
297
|
var settings = {
|
|
@@ -344,13 +299,11 @@ function createVueComponent(vNode, parent, props, data) {
|
|
|
344
299
|
parent: parent,
|
|
345
300
|
data: data
|
|
346
301
|
};
|
|
347
|
-
|
|
348
302
|
if (!bulkComponentContainer) {
|
|
349
303
|
bulkComponentContainer = ownerDocument.createElement('DIV');
|
|
350
304
|
bulkComponentContainer.id = 'vueHotComponents';
|
|
351
305
|
ownerDocument.body.appendChild(bulkComponentContainer);
|
|
352
306
|
}
|
|
353
|
-
|
|
354
307
|
var componentContainer = ownerDocument.createElement('DIV');
|
|
355
308
|
bulkComponentContainer.appendChild(componentContainer);
|
|
356
309
|
return new vNode.componentOptions.Ctor(settings).$mount(componentContainer);
|
|
@@ -364,12 +317,11 @@ function createVueComponent(vNode, parent, props, data) {
|
|
|
364
317
|
* @param {object} objectB Second object to compare.
|
|
365
318
|
* @returns {boolean} `true` if they're the same, `false` otherwise.
|
|
366
319
|
*/
|
|
367
|
-
|
|
368
320
|
function simpleEqual(objectA, objectB) {
|
|
369
321
|
return JSON.stringify(objectA) === JSON.stringify(objectB);
|
|
370
322
|
}
|
|
371
323
|
|
|
372
|
-
var version="12.
|
|
324
|
+
var version="12.2.0";
|
|
373
325
|
|
|
374
326
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
375
327
|
|
|
@@ -402,52 +354,43 @@ var lru = createCommonjsModule(function (module, exports) {
|
|
|
402
354
|
})(commonjsGlobal, function (exports) {
|
|
403
355
|
var NEWER = Symbol('newer');
|
|
404
356
|
var OLDER = Symbol('older');
|
|
405
|
-
|
|
406
357
|
function LRUMap(limit, entries) {
|
|
407
358
|
if (typeof limit !== 'number') {
|
|
408
359
|
// called as (entries)
|
|
409
360
|
entries = limit;
|
|
410
361
|
limit = 0;
|
|
411
362
|
}
|
|
412
|
-
|
|
413
363
|
this.size = 0;
|
|
414
364
|
this.limit = limit;
|
|
415
365
|
this.oldest = this.newest = undefined;
|
|
416
366
|
this._keymap = new Map();
|
|
417
|
-
|
|
418
367
|
if (entries) {
|
|
419
368
|
this.assign(entries);
|
|
420
|
-
|
|
421
369
|
if (limit < 1) {
|
|
422
370
|
this.limit = this.size;
|
|
423
371
|
}
|
|
424
372
|
}
|
|
425
373
|
}
|
|
426
|
-
|
|
427
374
|
exports.LRUMap = LRUMap;
|
|
428
|
-
|
|
429
375
|
function Entry(key, value) {
|
|
430
376
|
this.key = key;
|
|
431
377
|
this.value = value;
|
|
432
378
|
this[NEWER] = undefined;
|
|
433
379
|
this[OLDER] = undefined;
|
|
434
380
|
}
|
|
435
|
-
|
|
436
381
|
LRUMap.prototype._markEntryAsUsed = function (entry) {
|
|
437
382
|
if (entry === this.newest) {
|
|
438
383
|
// Already the most recenlty used entry, so no need to update the list
|
|
439
384
|
return;
|
|
440
|
-
}
|
|
385
|
+
}
|
|
386
|
+
// HEAD--------------TAIL
|
|
441
387
|
// <.older .newer>
|
|
442
388
|
// <--- add direction --
|
|
443
389
|
// A B C <D> E
|
|
444
|
-
|
|
445
|
-
|
|
446
390
|
if (entry[NEWER]) {
|
|
447
391
|
if (entry === this.oldest) {
|
|
448
392
|
this.oldest = entry[NEWER];
|
|
449
393
|
}
|
|
450
|
-
|
|
451
394
|
entry[NEWER][OLDER] = entry[OLDER]; // C <-- E.
|
|
452
395
|
}
|
|
453
396
|
|
|
@@ -456,74 +399,54 @@ var lru = createCommonjsModule(function (module, exports) {
|
|
|
456
399
|
}
|
|
457
400
|
|
|
458
401
|
entry[NEWER] = undefined; // D --x
|
|
459
|
-
|
|
460
402
|
entry[OLDER] = this.newest; // D. --> E
|
|
461
|
-
|
|
462
403
|
if (this.newest) {
|
|
463
404
|
this.newest[NEWER] = entry; // E. <-- D
|
|
464
405
|
}
|
|
465
406
|
|
|
466
407
|
this.newest = entry;
|
|
467
408
|
};
|
|
468
|
-
|
|
469
409
|
LRUMap.prototype.assign = function (entries) {
|
|
470
410
|
var entry,
|
|
471
|
-
|
|
472
|
-
|
|
411
|
+
limit = this.limit || Number.MAX_VALUE;
|
|
473
412
|
this._keymap.clear();
|
|
474
|
-
|
|
475
413
|
var it = entries[Symbol.iterator]();
|
|
476
|
-
|
|
477
414
|
for (var itv = it.next(); !itv.done; itv = it.next()) {
|
|
478
415
|
var e = new Entry(itv.value[0], itv.value[1]);
|
|
479
|
-
|
|
480
416
|
this._keymap.set(e.key, e);
|
|
481
|
-
|
|
482
417
|
if (!entry) {
|
|
483
418
|
this.oldest = e;
|
|
484
419
|
} else {
|
|
485
420
|
entry[NEWER] = e;
|
|
486
421
|
e[OLDER] = entry;
|
|
487
422
|
}
|
|
488
|
-
|
|
489
423
|
entry = e;
|
|
490
|
-
|
|
491
424
|
if (limit-- == 0) {
|
|
492
425
|
throw new Error('overflow');
|
|
493
426
|
}
|
|
494
427
|
}
|
|
495
|
-
|
|
496
428
|
this.newest = entry;
|
|
497
429
|
this.size = this._keymap.size;
|
|
498
430
|
};
|
|
499
|
-
|
|
500
431
|
LRUMap.prototype.get = function (key) {
|
|
501
432
|
// First, find our cache entry
|
|
502
433
|
var entry = this._keymap.get(key);
|
|
503
|
-
|
|
504
434
|
if (!entry) return; // Not cached. Sorry.
|
|
505
435
|
// As <key> was found in the cache, register it as being requested recently
|
|
506
|
-
|
|
507
436
|
this._markEntryAsUsed(entry);
|
|
508
|
-
|
|
509
437
|
return entry.value;
|
|
510
438
|
};
|
|
511
|
-
|
|
512
439
|
LRUMap.prototype.set = function (key, value) {
|
|
513
440
|
var entry = this._keymap.get(key);
|
|
514
|
-
|
|
515
441
|
if (entry) {
|
|
516
442
|
// update existing
|
|
517
443
|
entry.value = value;
|
|
518
|
-
|
|
519
444
|
this._markEntryAsUsed(entry);
|
|
520
|
-
|
|
521
445
|
return this;
|
|
522
|
-
}
|
|
523
|
-
|
|
446
|
+
}
|
|
524
447
|
|
|
448
|
+
// new entry
|
|
525
449
|
this._keymap.set(key, entry = new Entry(key, value));
|
|
526
|
-
|
|
527
450
|
if (this.newest) {
|
|
528
451
|
// link previous tail to the new tail (entry)
|
|
529
452
|
this.newest[NEWER] = entry;
|
|
@@ -531,24 +454,20 @@ var lru = createCommonjsModule(function (module, exports) {
|
|
|
531
454
|
} else {
|
|
532
455
|
// we're first in -- yay
|
|
533
456
|
this.oldest = entry;
|
|
534
|
-
}
|
|
535
|
-
|
|
457
|
+
}
|
|
536
458
|
|
|
459
|
+
// add new entry to the end of the linked list -- it's now the freshest entry.
|
|
537
460
|
this.newest = entry;
|
|
538
461
|
++this.size;
|
|
539
|
-
|
|
540
462
|
if (this.size > this.limit) {
|
|
541
463
|
// we hit the limit -- remove the head
|
|
542
464
|
this.shift();
|
|
543
465
|
}
|
|
544
|
-
|
|
545
466
|
return this;
|
|
546
467
|
};
|
|
547
|
-
|
|
548
468
|
LRUMap.prototype.shift = function () {
|
|
549
469
|
// todo: handle special case when limit == 1
|
|
550
470
|
var entry = this.oldest;
|
|
551
|
-
|
|
552
471
|
if (entry) {
|
|
553
472
|
if (this.oldest[NEWER]) {
|
|
554
473
|
// advance the list
|
|
@@ -558,22 +477,19 @@ var lru = createCommonjsModule(function (module, exports) {
|
|
|
558
477
|
// the cache is exhausted
|
|
559
478
|
this.oldest = undefined;
|
|
560
479
|
this.newest = undefined;
|
|
561
|
-
}
|
|
480
|
+
}
|
|
481
|
+
// Remove last strong reference to <entry> and remove links from the purged
|
|
562
482
|
// entry being returned:
|
|
563
|
-
|
|
564
|
-
|
|
565
483
|
entry[NEWER] = entry[OLDER] = undefined;
|
|
566
|
-
|
|
567
484
|
this._keymap["delete"](entry.key);
|
|
568
|
-
|
|
569
485
|
--this.size;
|
|
570
486
|
return [entry.key, entry.value];
|
|
571
487
|
}
|
|
572
|
-
};
|
|
488
|
+
};
|
|
489
|
+
|
|
490
|
+
// ----------------------------------------------------------------------------
|
|
573
491
|
// Following code is optional and can be removed without breaking the core
|
|
574
492
|
// functionality.
|
|
575
|
-
|
|
576
|
-
|
|
577
493
|
LRUMap.prototype.has = function (key) {
|
|
578
494
|
return this._keymap.has(key);
|
|
579
495
|
};
|
|
@@ -589,36 +505,32 @@ var HotTable = {
|
|
|
589
505
|
if (!this.hotInstance || value === void 0) {
|
|
590
506
|
return;
|
|
591
507
|
}
|
|
592
|
-
|
|
593
508
|
if (value.data) {
|
|
594
509
|
if (this.hotInstance.isColumnModificationAllowed() || !this.hotInstance.isColumnModificationAllowed() && this.hotInstance.countSourceCols() === this.miscCache.currentSourceColumns) {
|
|
595
510
|
// If the dataset dimensions change, update the index mappers.
|
|
596
|
-
this.matchHotMappersSize();
|
|
597
|
-
|
|
511
|
+
this.matchHotMappersSize();
|
|
512
|
+
// Data is automatically synchronized by reference.
|
|
598
513
|
delete value.data;
|
|
599
514
|
}
|
|
600
|
-
}
|
|
601
|
-
|
|
602
|
-
|
|
515
|
+
}
|
|
516
|
+
// If there are another options changed, update the HOT settings, render the table otherwise.
|
|
603
517
|
if (Object.keys(value).length) {
|
|
604
518
|
this.hotInstance.updateSettings(value);
|
|
605
519
|
} else {
|
|
606
520
|
this.hotInstance.render();
|
|
607
521
|
}
|
|
608
|
-
|
|
609
522
|
this.miscCache.currentSourceColumns = this.hotInstance.countSourceCols();
|
|
610
523
|
}
|
|
611
524
|
},
|
|
612
525
|
data: function data() {
|
|
613
526
|
var thisComponent = this;
|
|
614
|
-
var rendererCache = new lru_1(this.wrapperRendererCacheSize);
|
|
615
|
-
|
|
527
|
+
var rendererCache = new lru_1(this.wrapperRendererCacheSize);
|
|
528
|
+
// Make the LRU cache destroy each removed component
|
|
616
529
|
rendererCache.shift = function () {
|
|
617
530
|
var entry = lru_1.prototype.shift.call(this);
|
|
618
531
|
entry[1].component.$destroy();
|
|
619
532
|
return entry;
|
|
620
533
|
};
|
|
621
|
-
|
|
622
534
|
return {
|
|
623
535
|
__internalEdit: false,
|
|
624
536
|
miscCache: {
|
|
@@ -628,7 +540,6 @@ var HotTable = {
|
|
|
628
540
|
columnSettings: null,
|
|
629
541
|
rendererCache: rendererCache,
|
|
630
542
|
editorCache: new Map(),
|
|
631
|
-
|
|
632
543
|
get hotInstance() {
|
|
633
544
|
if (!thisComponent.__hotInstance || thisComponent.__hotInstance && !thisComponent.__hotInstance.isDestroyed) {
|
|
634
545
|
// Will return the Handsontable instance or `null` if it's not yet been created.
|
|
@@ -638,11 +549,9 @@ var HotTable = {
|
|
|
638
549
|
return null;
|
|
639
550
|
}
|
|
640
551
|
},
|
|
641
|
-
|
|
642
552
|
set hotInstance(hotInstance) {
|
|
643
553
|
thisComponent.__hotInstance = hotInstance;
|
|
644
554
|
}
|
|
645
|
-
|
|
646
555
|
};
|
|
647
556
|
},
|
|
648
557
|
computed: {
|
|
@@ -659,17 +568,14 @@ var HotTable = {
|
|
|
659
568
|
var globalEditorVNode = this.getGlobalEditorVNode();
|
|
660
569
|
var newSettings = prepareSettings(this.$props);
|
|
661
570
|
newSettings.columns = this.columnSettings ? this.columnSettings : newSettings.columns;
|
|
662
|
-
|
|
663
571
|
if (globalEditorVNode) {
|
|
664
572
|
newSettings.editor = this.getEditorClass(globalEditorVNode, this);
|
|
665
573
|
globalEditorVNode.child.$destroy();
|
|
666
574
|
}
|
|
667
|
-
|
|
668
575
|
if (globalRendererVNode) {
|
|
669
576
|
newSettings.renderer = this.getRendererWrapper(globalRendererVNode, this);
|
|
670
577
|
globalRendererVNode.child.$destroy();
|
|
671
578
|
}
|
|
672
|
-
|
|
673
579
|
this.hotInstance = new Handsontable__default["default"].Core(this.$el, newSettings);
|
|
674
580
|
this.hotInstance.init();
|
|
675
581
|
preventInternalEditWatch(this);
|
|
@@ -677,18 +583,15 @@ var HotTable = {
|
|
|
677
583
|
},
|
|
678
584
|
matchHotMappersSize: function matchHotMappersSize() {
|
|
679
585
|
var _this = this;
|
|
680
|
-
|
|
681
586
|
if (!this.hotInstance) {
|
|
682
587
|
return;
|
|
683
588
|
}
|
|
684
|
-
|
|
685
589
|
var data = this.hotInstance.getSourceData();
|
|
686
590
|
var rowsToRemove = [];
|
|
687
591
|
var columnsToRemove = [];
|
|
688
592
|
var indexMapperRowCount = this.hotInstance.rowIndexMapper.getNumberOfIndexes();
|
|
689
593
|
var isColumnModificationAllowed = this.hotInstance.isColumnModificationAllowed();
|
|
690
594
|
var indexMapperColumnCount = 0;
|
|
691
|
-
|
|
692
595
|
if (data && data.length !== indexMapperRowCount) {
|
|
693
596
|
if (data.length < indexMapperRowCount) {
|
|
694
597
|
for (var r = data.length; r < indexMapperRowCount; r++) {
|
|
@@ -696,12 +599,9 @@ var HotTable = {
|
|
|
696
599
|
}
|
|
697
600
|
}
|
|
698
601
|
}
|
|
699
|
-
|
|
700
602
|
if (isColumnModificationAllowed) {
|
|
701
603
|
var _data$;
|
|
702
|
-
|
|
703
604
|
indexMapperColumnCount = this.hotInstance.columnIndexMapper.getNumberOfIndexes();
|
|
704
|
-
|
|
705
605
|
if (data && data[0] && ((_data$ = data[0]) === null || _data$ === void 0 ? void 0 : _data$.length) !== indexMapperColumnCount) {
|
|
706
606
|
if (data[0].length < indexMapperColumnCount) {
|
|
707
607
|
for (var c = data[0].length; c < indexMapperColumnCount; c++) {
|
|
@@ -710,14 +610,12 @@ var HotTable = {
|
|
|
710
610
|
}
|
|
711
611
|
}
|
|
712
612
|
}
|
|
713
|
-
|
|
714
613
|
this.hotInstance.batch(function () {
|
|
715
614
|
if (rowsToRemove.length > 0) {
|
|
716
615
|
_this.hotInstance.rowIndexMapper.removeIndexes(rowsToRemove);
|
|
717
616
|
} else {
|
|
718
617
|
_this.hotInstance.rowIndexMapper.insertIndexes(indexMapperRowCount - 1, data.length - indexMapperRowCount);
|
|
719
618
|
}
|
|
720
|
-
|
|
721
619
|
if (isColumnModificationAllowed && data.length !== 0) {
|
|
722
620
|
if (columnsToRemove.length > 0) {
|
|
723
621
|
_this.hotInstance.columnIndexMapper.removeIndexes(columnsToRemove);
|
|
@@ -735,7 +633,6 @@ var HotTable = {
|
|
|
735
633
|
var hotTableSlots = this.$slots["default"] || [];
|
|
736
634
|
return findVNodeByType(hotTableSlots, 'hot-editor');
|
|
737
635
|
},
|
|
738
|
-
|
|
739
636
|
/**
|
|
740
637
|
* Get settings for the columns provided in the `hot-column` components.
|
|
741
638
|
*/
|
|
@@ -746,17 +643,13 @@ var HotTable = {
|
|
|
746
643
|
if (elem.usesRendererComponent) {
|
|
747
644
|
usesRendererComponent = true;
|
|
748
645
|
}
|
|
749
|
-
|
|
750
646
|
return _objectSpread2({}, elem.columnSettings);
|
|
751
647
|
});
|
|
752
|
-
|
|
753
648
|
if (usesRendererComponent && this.settings && (this.settings.autoColumnSize !== false || this.settings.autoRowSize) && (this.autoColumnSize !== false || this.autoRowSize)) {
|
|
754
649
|
console.warn('Your `hot-table` configuration includes both `hot-column` and `autoRowSize`/`autoColumnSize`, which are not compatible with each other ' + 'in this version of `@handsontable/vue`. Disable `autoRowSize` and `autoColumnSize` to prevent row and column misalignment.');
|
|
755
650
|
}
|
|
756
|
-
|
|
757
651
|
return columnSettings.length ? columnSettings : void 0;
|
|
758
652
|
},
|
|
759
|
-
|
|
760
653
|
/**
|
|
761
654
|
* Create the wrapper function for the provided renderer child component.
|
|
762
655
|
*
|
|
@@ -780,7 +673,6 @@ var HotTable = {
|
|
|
780
673
|
cellProperties: cellProperties,
|
|
781
674
|
isRenderer: true
|
|
782
675
|
};
|
|
783
|
-
|
|
784
676
|
if (rendererCache && !rendererCache.has("".concat(row, "-").concat(col))) {
|
|
785
677
|
var mountedComponent = createVueComponent(vNode, containerComponent, vNode.componentOptions.propsData, rendererArgs);
|
|
786
678
|
rendererCache.set("".concat(row, "-").concat(col), {
|
|
@@ -788,27 +680,22 @@ var HotTable = {
|
|
|
788
680
|
lastUsedTD: null
|
|
789
681
|
});
|
|
790
682
|
}
|
|
791
|
-
|
|
792
683
|
var cachedEntry = rendererCache.get("".concat(row, "-").concat(col));
|
|
793
684
|
var cachedComponent = cachedEntry.component;
|
|
794
685
|
var cachedTD = cachedEntry.lastUsedTD;
|
|
795
686
|
Object.assign(cachedComponent.$data, rendererArgs);
|
|
796
|
-
|
|
797
687
|
if (!cachedComponent.$el.parentElement || cachedTD !== TD) {
|
|
798
688
|
// Clear the previous contents of a TD
|
|
799
689
|
while (TD.firstChild) {
|
|
800
690
|
TD.removeChild(TD.firstChild);
|
|
801
691
|
}
|
|
802
|
-
|
|
803
692
|
TD.appendChild(cachedComponent.$el);
|
|
804
693
|
cachedEntry.lastUsedTD = TD;
|
|
805
694
|
}
|
|
806
695
|
}
|
|
807
|
-
|
|
808
696
|
return TD;
|
|
809
697
|
};
|
|
810
698
|
},
|
|
811
|
-
|
|
812
699
|
/**
|
|
813
700
|
* Create a fresh class to be used as an editor, based on the editor component provided.
|
|
814
701
|
*
|
|
@@ -822,7 +709,6 @@ var HotTable = {
|
|
|
822
709
|
var componentCacheKey = componentKey ? "".concat(componentName, ":").concat(componentKey) : componentName;
|
|
823
710
|
var editorCache = this.editorCache;
|
|
824
711
|
var mountedComponent = null;
|
|
825
|
-
|
|
826
712
|
if (!editorCache.has(componentCacheKey)) {
|
|
827
713
|
mountedComponent = createVueComponent(vNode, containerComponent, vNode.componentOptions.propsData, {
|
|
828
714
|
isEditor: true
|
|
@@ -831,7 +717,6 @@ var HotTable = {
|
|
|
831
717
|
} else {
|
|
832
718
|
mountedComponent = editorCache.get(componentCacheKey);
|
|
833
719
|
}
|
|
834
|
-
|
|
835
720
|
return mountedComponent.$data.hotCustomEditorClass;
|
|
836
721
|
}
|
|
837
722
|
},
|
|
@@ -924,34 +809,27 @@ function normalizeComponent(template, style, script, scopeId, isFunctionalTempla
|
|
|
924
809
|
|
|
925
810
|
/* script */
|
|
926
811
|
var __vue_script__$2 = HotTable;
|
|
927
|
-
/* template */
|
|
928
812
|
|
|
813
|
+
/* template */
|
|
929
814
|
var __vue_render__ = function __vue_render__() {
|
|
930
815
|
var _vm = this;
|
|
931
|
-
|
|
932
816
|
var _h = _vm.$createElement;
|
|
933
|
-
|
|
934
817
|
var _c = _vm._self._c || _h;
|
|
935
|
-
|
|
936
818
|
return _c('div', {
|
|
937
819
|
attrs: {
|
|
938
820
|
"id": _vm.id
|
|
939
821
|
}
|
|
940
822
|
}, [_vm._t("default")], 2);
|
|
941
823
|
};
|
|
942
|
-
|
|
943
824
|
var __vue_staticRenderFns__ = [];
|
|
944
|
-
/* style */
|
|
945
825
|
|
|
826
|
+
/* style */
|
|
946
827
|
var __vue_inject_styles__$2 = undefined;
|
|
947
828
|
/* scoped */
|
|
948
|
-
|
|
949
829
|
var __vue_scope_id__$2 = undefined;
|
|
950
830
|
/* module identifier */
|
|
951
|
-
|
|
952
831
|
var __vue_module_identifier__$2 = undefined;
|
|
953
832
|
/* functional template */
|
|
954
|
-
|
|
955
833
|
var __vue_is_functional_template__$2 = false;
|
|
956
834
|
/* style inject */
|
|
957
835
|
|
|
@@ -976,19 +854,15 @@ var HotColumn = {
|
|
|
976
854
|
var rendererVNode = findVNodeByType(hotColumnSlots, 'hot-renderer');
|
|
977
855
|
var editorVNode = findVNodeByType(hotColumnSlots, 'hot-editor');
|
|
978
856
|
var assignedProps = filterPassedProps(this.$props);
|
|
979
|
-
|
|
980
857
|
if (rendererVNode && this.usesRendererComponent === void 0) {
|
|
981
858
|
this.usesRendererComponent = true;
|
|
982
859
|
}
|
|
983
|
-
|
|
984
860
|
this.columnSettings = _objectSpread2({}, assignedProps);
|
|
985
|
-
|
|
986
861
|
if (rendererVNode !== null) {
|
|
987
862
|
this.columnSettings.renderer = this.$parent.getRendererWrapper(rendererVNode, this);
|
|
988
863
|
} else if (assignedProps.renderer) {
|
|
989
864
|
this.columnSettings.renderer = assignedProps.renderer;
|
|
990
865
|
}
|
|
991
|
-
|
|
992
866
|
if (editorVNode !== null) {
|
|
993
867
|
this.columnSettings.editor = this.$parent.getEditorClass(editorVNode, this);
|
|
994
868
|
} else if (assignedProps.editor) {
|
|
@@ -1006,19 +880,16 @@ var HotColumn = {
|
|
|
1006
880
|
|
|
1007
881
|
/* script */
|
|
1008
882
|
var __vue_script__$1 = HotColumn;
|
|
883
|
+
|
|
1009
884
|
/* template */
|
|
1010
885
|
|
|
1011
886
|
/* style */
|
|
1012
|
-
|
|
1013
887
|
var __vue_inject_styles__$1 = undefined;
|
|
1014
888
|
/* scoped */
|
|
1015
|
-
|
|
1016
889
|
var __vue_scope_id__$1 = undefined;
|
|
1017
890
|
/* module identifier */
|
|
1018
|
-
|
|
1019
891
|
var __vue_module_identifier__$1 = undefined;
|
|
1020
892
|
/* functional template */
|
|
1021
|
-
|
|
1022
893
|
var __vue_is_functional_template__$1 = undefined;
|
|
1023
894
|
/* style inject */
|
|
1024
895
|
|
|
@@ -1060,10 +931,8 @@ function _typeof(obj) {
|
|
|
1060
931
|
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : _typeof$1(obj);
|
|
1061
932
|
};
|
|
1062
933
|
}
|
|
1063
|
-
|
|
1064
934
|
return _typeof(obj);
|
|
1065
935
|
}
|
|
1066
|
-
|
|
1067
936
|
function _defineProperty(obj, key, value) {
|
|
1068
937
|
if (key in obj) {
|
|
1069
938
|
Object.defineProperty(obj, key, {
|
|
@@ -1075,39 +944,32 @@ function _defineProperty(obj, key, value) {
|
|
|
1075
944
|
} else {
|
|
1076
945
|
obj[key] = value;
|
|
1077
946
|
}
|
|
1078
|
-
|
|
1079
947
|
return obj;
|
|
1080
948
|
}
|
|
1081
|
-
|
|
1082
949
|
function _toConsumableArray(arr) {
|
|
1083
950
|
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();
|
|
1084
951
|
}
|
|
1085
|
-
|
|
1086
952
|
function _arrayWithoutHoles(arr) {
|
|
1087
953
|
if (Array.isArray(arr)) {
|
|
1088
954
|
for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) {
|
|
1089
955
|
arr2[i] = arr[i];
|
|
1090
956
|
}
|
|
1091
|
-
|
|
1092
957
|
return arr2;
|
|
1093
958
|
}
|
|
1094
959
|
}
|
|
1095
|
-
|
|
1096
960
|
function _iterableToArray(iter) {
|
|
1097
961
|
if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
|
|
1098
962
|
}
|
|
1099
|
-
|
|
1100
963
|
function _nonIterableSpread() {
|
|
1101
964
|
throw new TypeError("Invalid attempt to spread non-iterable instance");
|
|
1102
|
-
}
|
|
965
|
+
}
|
|
966
|
+
|
|
967
|
+
// The rational behind the verbose Reflect-feature check below is the fact that there are polyfills
|
|
1103
968
|
// which add an implementation for Reflect.defineMetadata but not for Reflect.getOwnMetadataKeys.
|
|
1104
969
|
// Without this check consumers will encounter hard to track down runtime errors.
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
970
|
function reflectionIsSupported() {
|
|
1108
971
|
return typeof Reflect !== 'undefined' && Reflect.defineMetadata && Reflect.getOwnMetadataKeys;
|
|
1109
972
|
}
|
|
1110
|
-
|
|
1111
973
|
function copyReflectionMetadata(to, from) {
|
|
1112
974
|
forwardMetadata(to, from);
|
|
1113
975
|
Object.getOwnPropertyNames(from.prototype).forEach(function (key) {
|
|
@@ -1117,12 +979,10 @@ function copyReflectionMetadata(to, from) {
|
|
|
1117
979
|
forwardMetadata(to, from, key);
|
|
1118
980
|
});
|
|
1119
981
|
}
|
|
1120
|
-
|
|
1121
982
|
function forwardMetadata(to, from, propertyKey) {
|
|
1122
983
|
var metaKeys = propertyKey ? Reflect.getOwnMetadataKeys(from, propertyKey) : Reflect.getOwnMetadataKeys(from);
|
|
1123
984
|
metaKeys.forEach(function (metaKey) {
|
|
1124
985
|
var metadata = propertyKey ? Reflect.getOwnMetadata(metaKey, from, propertyKey) : Reflect.getOwnMetadata(metaKey, from);
|
|
1125
|
-
|
|
1126
986
|
if (propertyKey) {
|
|
1127
987
|
Reflect.defineMetadata(metaKey, metadata, to, propertyKey);
|
|
1128
988
|
} else {
|
|
@@ -1130,26 +990,21 @@ function forwardMetadata(to, from, propertyKey) {
|
|
|
1130
990
|
}
|
|
1131
991
|
});
|
|
1132
992
|
}
|
|
1133
|
-
|
|
1134
993
|
var fakeArray = {
|
|
1135
994
|
__proto__: []
|
|
1136
995
|
};
|
|
1137
996
|
var hasProto = fakeArray instanceof Array;
|
|
1138
|
-
|
|
1139
997
|
function isPrimitive(value) {
|
|
1140
998
|
var type = _typeof(value);
|
|
1141
|
-
|
|
1142
999
|
return value == null || type !== 'object' && type !== 'function';
|
|
1143
1000
|
}
|
|
1144
|
-
|
|
1145
1001
|
function collectDataFromConstructor(vm, Component) {
|
|
1146
1002
|
// override _init to prevent to init as Vue instance
|
|
1147
1003
|
var originalInit = Component.prototype._init;
|
|
1148
|
-
|
|
1149
1004
|
Component.prototype._init = function () {
|
|
1150
|
-
var _this = this;
|
|
1151
|
-
|
|
1005
|
+
var _this = this;
|
|
1152
1006
|
|
|
1007
|
+
// proxy to actual vm
|
|
1153
1008
|
var keys = Object.getOwnPropertyNames(vm); // 2.2.0 compat (props are no longer exposed as self properties)
|
|
1154
1009
|
|
|
1155
1010
|
if (vm.$options.props) {
|
|
@@ -1159,7 +1014,6 @@ function collectDataFromConstructor(vm, Component) {
|
|
|
1159
1014
|
}
|
|
1160
1015
|
}
|
|
1161
1016
|
}
|
|
1162
|
-
|
|
1163
1017
|
keys.forEach(function (key) {
|
|
1164
1018
|
Object.defineProperty(_this, key, {
|
|
1165
1019
|
get: function get() {
|
|
@@ -1173,7 +1027,6 @@ function collectDataFromConstructor(vm, Component) {
|
|
|
1173
1027
|
});
|
|
1174
1028
|
}; // should be acquired class property values
|
|
1175
1029
|
|
|
1176
|
-
|
|
1177
1030
|
var data = new Component(); // restore original _init to avoid memory leak (#209)
|
|
1178
1031
|
|
|
1179
1032
|
Component.prototype._init = originalInit; // create plain data object
|
|
@@ -1184,10 +1037,8 @@ function collectDataFromConstructor(vm, Component) {
|
|
|
1184
1037
|
plainData[key] = data[key];
|
|
1185
1038
|
}
|
|
1186
1039
|
});
|
|
1187
|
-
|
|
1188
1040
|
return plainData;
|
|
1189
1041
|
}
|
|
1190
|
-
|
|
1191
1042
|
var $internalHooks = ['data', 'beforeCreate', 'created', 'beforeMount', 'mounted', 'beforeDestroy', 'destroyed', 'beforeUpdate', 'updated', 'activated', 'deactivated', 'render', 'errorCaptured', 'serverPrefetch' // 2.6
|
|
1192
1043
|
];
|
|
1193
1044
|
|
|
@@ -1201,14 +1052,11 @@ function componentFactory(Component) {
|
|
|
1201
1052
|
return;
|
|
1202
1053
|
} // hooks
|
|
1203
1054
|
|
|
1204
|
-
|
|
1205
1055
|
if ($internalHooks.indexOf(key) > -1) {
|
|
1206
1056
|
options[key] = proto[key];
|
|
1207
1057
|
return;
|
|
1208
1058
|
}
|
|
1209
|
-
|
|
1210
1059
|
var descriptor = Object.getOwnPropertyDescriptor(proto, key);
|
|
1211
|
-
|
|
1212
1060
|
if (descriptor.value !== void 0) {
|
|
1213
1061
|
// methods
|
|
1214
1062
|
if (typeof descriptor.value === 'function') {
|
|
@@ -1236,7 +1084,6 @@ function componentFactory(Component) {
|
|
|
1236
1084
|
}); // decorate options
|
|
1237
1085
|
|
|
1238
1086
|
var decorators = Component.__decorators__;
|
|
1239
|
-
|
|
1240
1087
|
if (decorators) {
|
|
1241
1088
|
decorators.forEach(function (fn) {
|
|
1242
1089
|
return fn(options);
|
|
@@ -1244,16 +1091,13 @@ function componentFactory(Component) {
|
|
|
1244
1091
|
delete Component.__decorators__;
|
|
1245
1092
|
} // find super
|
|
1246
1093
|
|
|
1247
|
-
|
|
1248
1094
|
var superProto = Object.getPrototypeOf(Component.prototype);
|
|
1249
1095
|
var Super = superProto instanceof Vue__default["default"] ? superProto.constructor : Vue__default["default"];
|
|
1250
1096
|
var Extended = Super.extend(options);
|
|
1251
1097
|
forwardStaticMembers(Extended, Component, Super);
|
|
1252
|
-
|
|
1253
1098
|
if (reflectionIsSupported()) {
|
|
1254
1099
|
copyReflectionMetadata(Extended, Component);
|
|
1255
1100
|
}
|
|
1256
|
-
|
|
1257
1101
|
return Extended;
|
|
1258
1102
|
}
|
|
1259
1103
|
var shouldIgnore = {
|
|
@@ -1262,7 +1106,6 @@ var shouldIgnore = {
|
|
|
1262
1106
|
callee: true,
|
|
1263
1107
|
caller: true
|
|
1264
1108
|
};
|
|
1265
|
-
|
|
1266
1109
|
function forwardStaticMembers(Extended, Original, Super) {
|
|
1267
1110
|
// We have to use getOwnPropertyNames since Babel registers methods as non-enumerable
|
|
1268
1111
|
Object.getOwnPropertyNames(Original).forEach(function (key) {
|
|
@@ -1271,13 +1114,10 @@ function forwardStaticMembers(Extended, Original, Super) {
|
|
|
1271
1114
|
return;
|
|
1272
1115
|
} // Some browsers does not allow reconfigure built-in properties
|
|
1273
1116
|
|
|
1274
|
-
|
|
1275
1117
|
var extendedDescriptor = Object.getOwnPropertyDescriptor(Extended, key);
|
|
1276
|
-
|
|
1277
1118
|
if (extendedDescriptor && !extendedDescriptor.configurable) {
|
|
1278
1119
|
return;
|
|
1279
1120
|
}
|
|
1280
|
-
|
|
1281
1121
|
var descriptor = Object.getOwnPropertyDescriptor(Original, key); // If the user agent does not support `__proto__` or its family (IE <= 10),
|
|
1282
1122
|
// the sub class properties may be inherited properties from the super class in TypeScript.
|
|
1283
1123
|
// We need to exclude such properties to prevent to overwrite
|
|
@@ -1293,42 +1133,32 @@ function forwardStaticMembers(Extended, Original, Super) {
|
|
|
1293
1133
|
if (key === 'cid') {
|
|
1294
1134
|
return;
|
|
1295
1135
|
}
|
|
1296
|
-
|
|
1297
1136
|
var superDescriptor = Object.getOwnPropertyDescriptor(Super, key);
|
|
1298
|
-
|
|
1299
1137
|
if (!isPrimitive(descriptor.value) && superDescriptor && superDescriptor.value === descriptor.value) {
|
|
1300
1138
|
return;
|
|
1301
1139
|
}
|
|
1302
1140
|
} // Warn if the users manually declare reserved properties
|
|
1303
|
-
|
|
1304
1141
|
Object.defineProperty(Extended, key, descriptor);
|
|
1305
1142
|
});
|
|
1306
1143
|
}
|
|
1307
|
-
|
|
1308
1144
|
function Component(options) {
|
|
1309
1145
|
if (typeof options === 'function') {
|
|
1310
1146
|
return componentFactory(options);
|
|
1311
1147
|
}
|
|
1312
|
-
|
|
1313
1148
|
return function (Component) {
|
|
1314
1149
|
return componentFactory(Component, options);
|
|
1315
1150
|
};
|
|
1316
1151
|
}
|
|
1317
|
-
|
|
1318
1152
|
Component.registerHooks = function registerHooks(keys) {
|
|
1319
1153
|
$internalHooks.push.apply($internalHooks, _toConsumableArray(keys));
|
|
1320
1154
|
};
|
|
1321
1155
|
|
|
1322
1156
|
var BaseEditorComponent = /*#__PURE__*/function (_Vue) {
|
|
1323
1157
|
_inherits(BaseEditorComponent, _Vue);
|
|
1324
|
-
|
|
1325
1158
|
var _super = _createSuper(BaseEditorComponent);
|
|
1326
|
-
|
|
1327
1159
|
function BaseEditorComponent() {
|
|
1328
1160
|
var _this2;
|
|
1329
|
-
|
|
1330
1161
|
_classCallCheck(this, BaseEditorComponent);
|
|
1331
|
-
|
|
1332
1162
|
_this2 = _super.apply(this, arguments);
|
|
1333
1163
|
_this2.name = 'BaseEditorComponent';
|
|
1334
1164
|
_this2.instance = null;
|
|
@@ -1342,28 +1172,21 @@ var BaseEditorComponent = /*#__PURE__*/function (_Vue) {
|
|
|
1342
1172
|
_this2.hot = null;
|
|
1343
1173
|
return _this2;
|
|
1344
1174
|
}
|
|
1345
|
-
|
|
1346
1175
|
_createClass(BaseEditorComponent, [{
|
|
1347
1176
|
key: "mounted",
|
|
1348
1177
|
value: function mounted() {
|
|
1349
1178
|
var _this = this;
|
|
1350
|
-
|
|
1351
1179
|
this.$data.hotCustomEditorClass = function () {
|
|
1352
1180
|
var customEditorClass = /*#__PURE__*/function (_Handsontable$editors) {
|
|
1353
1181
|
_inherits(CustomEditor, _Handsontable$editors);
|
|
1354
|
-
|
|
1355
1182
|
var _super2 = _createSuper(CustomEditor);
|
|
1356
|
-
|
|
1357
1183
|
function CustomEditor(hotInstance) {
|
|
1358
1184
|
var _this3;
|
|
1359
|
-
|
|
1360
1185
|
_classCallCheck(this, CustomEditor);
|
|
1361
|
-
|
|
1362
1186
|
_this3 = _super2.call(this, hotInstance);
|
|
1363
1187
|
_this.$data.hotCustomEditorInstance = _assertThisInitialized(_this3);
|
|
1364
1188
|
return _this3;
|
|
1365
1189
|
}
|
|
1366
|
-
|
|
1367
1190
|
_createClass(CustomEditor, [{
|
|
1368
1191
|
key: "focus",
|
|
1369
1192
|
value: function focus() {}
|
|
@@ -1380,204 +1203,167 @@ var BaseEditorComponent = /*#__PURE__*/function (_Vue) {
|
|
|
1380
1203
|
key: "close",
|
|
1381
1204
|
value: function close() {}
|
|
1382
1205
|
}]);
|
|
1383
|
-
|
|
1384
1206
|
return CustomEditor;
|
|
1385
|
-
}(Handsontable__default["default"].editors.BaseEditor);
|
|
1386
|
-
|
|
1387
|
-
|
|
1207
|
+
}(Handsontable__default["default"].editors.BaseEditor);
|
|
1208
|
+
// Fill with the rest of the BaseEditorComponent methods
|
|
1388
1209
|
Object.getOwnPropertyNames(Handsontable__default["default"].editors.BaseEditor.prototype).forEach(function (propName) {
|
|
1389
1210
|
if (propName === 'constructor') {
|
|
1390
1211
|
return;
|
|
1391
1212
|
}
|
|
1392
|
-
|
|
1393
1213
|
customEditorClass.prototype[propName] = function () {
|
|
1394
1214
|
var _this$propName;
|
|
1395
|
-
|
|
1396
1215
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
1397
1216
|
args[_key] = arguments[_key];
|
|
1398
1217
|
}
|
|
1399
|
-
|
|
1400
1218
|
return (_this$propName = _this[propName]).call.apply(_this$propName, [this].concat(args));
|
|
1401
1219
|
};
|
|
1402
1220
|
});
|
|
1403
1221
|
return customEditorClass;
|
|
1404
1222
|
}();
|
|
1405
|
-
}
|
|
1406
|
-
|
|
1223
|
+
}
|
|
1224
|
+
// BaseEditorComponent methods:
|
|
1407
1225
|
}, {
|
|
1408
1226
|
key: "_fireCallbacks",
|
|
1409
1227
|
value: function _fireCallbacks() {
|
|
1410
1228
|
var _Handsontable$editors2;
|
|
1411
|
-
|
|
1412
1229
|
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
1413
1230
|
args[_key2] = arguments[_key2];
|
|
1414
1231
|
}
|
|
1415
|
-
|
|
1416
1232
|
(_Handsontable$editors2 = Handsontable__default["default"].editors.BaseEditor.prototype._fireCallbacks).call.apply(_Handsontable$editors2, [this.$data.hotCustomEditorInstance].concat(args));
|
|
1417
1233
|
}
|
|
1418
1234
|
}, {
|
|
1419
1235
|
key: "beginEditing",
|
|
1420
1236
|
value: function beginEditing() {
|
|
1421
1237
|
var _Handsontable$editors3;
|
|
1422
|
-
|
|
1423
1238
|
for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
|
|
1424
1239
|
args[_key3] = arguments[_key3];
|
|
1425
1240
|
}
|
|
1426
|
-
|
|
1427
1241
|
return (_Handsontable$editors3 = Handsontable__default["default"].editors.BaseEditor.prototype.beginEditing).call.apply(_Handsontable$editors3, [this.$data.hotCustomEditorInstance].concat(args));
|
|
1428
1242
|
}
|
|
1429
1243
|
}, {
|
|
1430
1244
|
key: "cancelChanges",
|
|
1431
1245
|
value: function cancelChanges() {
|
|
1432
1246
|
var _Handsontable$editors4;
|
|
1433
|
-
|
|
1434
1247
|
for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
|
|
1435
1248
|
args[_key4] = arguments[_key4];
|
|
1436
1249
|
}
|
|
1437
|
-
|
|
1438
1250
|
return (_Handsontable$editors4 = Handsontable__default["default"].editors.BaseEditor.prototype.cancelChanges).call.apply(_Handsontable$editors4, [this.$data.hotCustomEditorInstance].concat(args));
|
|
1439
1251
|
}
|
|
1440
1252
|
}, {
|
|
1441
1253
|
key: "checkEditorSection",
|
|
1442
1254
|
value: function checkEditorSection() {
|
|
1443
1255
|
var _Handsontable$editors5;
|
|
1444
|
-
|
|
1445
1256
|
for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
|
|
1446
1257
|
args[_key5] = arguments[_key5];
|
|
1447
1258
|
}
|
|
1448
|
-
|
|
1449
1259
|
return (_Handsontable$editors5 = Handsontable__default["default"].editors.BaseEditor.prototype.checkEditorSection).call.apply(_Handsontable$editors5, [this.$data.hotCustomEditorInstance].concat(args));
|
|
1450
1260
|
}
|
|
1451
1261
|
}, {
|
|
1452
1262
|
key: "close",
|
|
1453
1263
|
value: function close() {
|
|
1454
1264
|
var _Handsontable$editors6;
|
|
1455
|
-
|
|
1456
1265
|
for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
|
|
1457
1266
|
args[_key6] = arguments[_key6];
|
|
1458
1267
|
}
|
|
1459
|
-
|
|
1460
1268
|
return (_Handsontable$editors6 = Handsontable__default["default"].editors.BaseEditor.prototype.close).call.apply(_Handsontable$editors6, [this.$data.hotCustomEditorInstance].concat(args));
|
|
1461
1269
|
}
|
|
1462
1270
|
}, {
|
|
1463
1271
|
key: "discardEditor",
|
|
1464
1272
|
value: function discardEditor() {
|
|
1465
1273
|
var _Handsontable$editors7;
|
|
1466
|
-
|
|
1467
1274
|
for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
|
|
1468
1275
|
args[_key7] = arguments[_key7];
|
|
1469
1276
|
}
|
|
1470
|
-
|
|
1471
1277
|
return (_Handsontable$editors7 = Handsontable__default["default"].editors.BaseEditor.prototype.discardEditor).call.apply(_Handsontable$editors7, [this.$data.hotCustomEditorInstance].concat(args));
|
|
1472
1278
|
}
|
|
1473
1279
|
}, {
|
|
1474
1280
|
key: "enableFullEditMode",
|
|
1475
1281
|
value: function enableFullEditMode() {
|
|
1476
1282
|
var _Handsontable$editors8;
|
|
1477
|
-
|
|
1478
1283
|
for (var _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {
|
|
1479
1284
|
args[_key8] = arguments[_key8];
|
|
1480
1285
|
}
|
|
1481
|
-
|
|
1482
1286
|
return (_Handsontable$editors8 = Handsontable__default["default"].editors.BaseEditor.prototype.enableFullEditMode).call.apply(_Handsontable$editors8, [this.$data.hotCustomEditorInstance].concat(args));
|
|
1483
1287
|
}
|
|
1484
1288
|
}, {
|
|
1485
1289
|
key: "extend",
|
|
1486
1290
|
value: function extend() {
|
|
1487
1291
|
var _Handsontable$editors9;
|
|
1488
|
-
|
|
1489
1292
|
for (var _len9 = arguments.length, args = new Array(_len9), _key9 = 0; _key9 < _len9; _key9++) {
|
|
1490
1293
|
args[_key9] = arguments[_key9];
|
|
1491
1294
|
}
|
|
1492
|
-
|
|
1493
1295
|
return (_Handsontable$editors9 = Handsontable__default["default"].editors.BaseEditor.prototype.extend).call.apply(_Handsontable$editors9, [this.$data.hotCustomEditorInstance].concat(args));
|
|
1494
1296
|
}
|
|
1495
1297
|
}, {
|
|
1496
1298
|
key: "finishEditing",
|
|
1497
1299
|
value: function finishEditing() {
|
|
1498
1300
|
var _Handsontable$editors10;
|
|
1499
|
-
|
|
1500
1301
|
for (var _len10 = arguments.length, args = new Array(_len10), _key10 = 0; _key10 < _len10; _key10++) {
|
|
1501
1302
|
args[_key10] = arguments[_key10];
|
|
1502
1303
|
}
|
|
1503
|
-
|
|
1504
1304
|
return (_Handsontable$editors10 = Handsontable__default["default"].editors.BaseEditor.prototype.finishEditing).call.apply(_Handsontable$editors10, [this.$data.hotCustomEditorInstance].concat(args));
|
|
1505
1305
|
}
|
|
1506
1306
|
}, {
|
|
1507
1307
|
key: "focus",
|
|
1508
1308
|
value: function focus() {
|
|
1509
1309
|
var _Handsontable$editors11;
|
|
1510
|
-
|
|
1511
1310
|
for (var _len11 = arguments.length, args = new Array(_len11), _key11 = 0; _key11 < _len11; _key11++) {
|
|
1512
1311
|
args[_key11] = arguments[_key11];
|
|
1513
1312
|
}
|
|
1514
|
-
|
|
1515
1313
|
return (_Handsontable$editors11 = Handsontable__default["default"].editors.BaseEditor.prototype.focus).call.apply(_Handsontable$editors11, [this.$data.hotCustomEditorInstance].concat(args));
|
|
1516
1314
|
}
|
|
1517
1315
|
}, {
|
|
1518
1316
|
key: "getValue",
|
|
1519
1317
|
value: function getValue() {
|
|
1520
1318
|
var _Handsontable$editors12;
|
|
1521
|
-
|
|
1522
1319
|
for (var _len12 = arguments.length, args = new Array(_len12), _key12 = 0; _key12 < _len12; _key12++) {
|
|
1523
1320
|
args[_key12] = arguments[_key12];
|
|
1524
1321
|
}
|
|
1525
|
-
|
|
1526
1322
|
return (_Handsontable$editors12 = Handsontable__default["default"].editors.BaseEditor.prototype.getValue).call.apply(_Handsontable$editors12, [this.$data.hotCustomEditorInstance].concat(args));
|
|
1527
1323
|
}
|
|
1528
1324
|
}, {
|
|
1529
1325
|
key: "init",
|
|
1530
1326
|
value: function init() {
|
|
1531
1327
|
var _Handsontable$editors13;
|
|
1532
|
-
|
|
1533
1328
|
for (var _len13 = arguments.length, args = new Array(_len13), _key13 = 0; _key13 < _len13; _key13++) {
|
|
1534
1329
|
args[_key13] = arguments[_key13];
|
|
1535
1330
|
}
|
|
1536
|
-
|
|
1537
1331
|
return (_Handsontable$editors13 = Handsontable__default["default"].editors.BaseEditor.prototype.init).call.apply(_Handsontable$editors13, [this.$data.hotCustomEditorInstance].concat(args));
|
|
1538
1332
|
}
|
|
1539
1333
|
}, {
|
|
1540
1334
|
key: "isInFullEditMode",
|
|
1541
1335
|
value: function isInFullEditMode() {
|
|
1542
1336
|
var _Handsontable$editors14;
|
|
1543
|
-
|
|
1544
1337
|
for (var _len14 = arguments.length, args = new Array(_len14), _key14 = 0; _key14 < _len14; _key14++) {
|
|
1545
1338
|
args[_key14] = arguments[_key14];
|
|
1546
1339
|
}
|
|
1547
|
-
|
|
1548
1340
|
return (_Handsontable$editors14 = Handsontable__default["default"].editors.BaseEditor.prototype.isInFullEditMode).call.apply(_Handsontable$editors14, [this.$data.hotCustomEditorInstance].concat(args));
|
|
1549
1341
|
}
|
|
1550
1342
|
}, {
|
|
1551
1343
|
key: "isOpened",
|
|
1552
1344
|
value: function isOpened() {
|
|
1553
1345
|
var _Handsontable$editors15;
|
|
1554
|
-
|
|
1555
1346
|
for (var _len15 = arguments.length, args = new Array(_len15), _key15 = 0; _key15 < _len15; _key15++) {
|
|
1556
1347
|
args[_key15] = arguments[_key15];
|
|
1557
1348
|
}
|
|
1558
|
-
|
|
1559
1349
|
return (_Handsontable$editors15 = Handsontable__default["default"].editors.BaseEditor.prototype.isOpened).call.apply(_Handsontable$editors15, [this.$data.hotCustomEditorInstance].concat(args));
|
|
1560
1350
|
}
|
|
1561
1351
|
}, {
|
|
1562
1352
|
key: "isWaiting",
|
|
1563
1353
|
value: function isWaiting() {
|
|
1564
1354
|
var _Handsontable$editors16;
|
|
1565
|
-
|
|
1566
1355
|
for (var _len16 = arguments.length, args = new Array(_len16), _key16 = 0; _key16 < _len16; _key16++) {
|
|
1567
1356
|
args[_key16] = arguments[_key16];
|
|
1568
1357
|
}
|
|
1569
|
-
|
|
1570
1358
|
return (_Handsontable$editors16 = Handsontable__default["default"].editors.BaseEditor.prototype.isWaiting).call.apply(_Handsontable$editors16, [this.$data.hotCustomEditorInstance].concat(args));
|
|
1571
1359
|
}
|
|
1572
1360
|
}, {
|
|
1573
1361
|
key: "open",
|
|
1574
1362
|
value: function open() {
|
|
1575
1363
|
var _Handsontable$editors17;
|
|
1576
|
-
|
|
1577
1364
|
for (var _len17 = arguments.length, args = new Array(_len17), _key17 = 0; _key17 < _len17; _key17++) {
|
|
1578
1365
|
args[_key17] = arguments[_key17];
|
|
1579
1366
|
}
|
|
1580
|
-
|
|
1581
1367
|
return (_Handsontable$editors17 = Handsontable__default["default"].editors.BaseEditor.prototype.open).call.apply(_Handsontable$editors17, [this.$data.hotCustomEditorInstance].concat(args));
|
|
1582
1368
|
}
|
|
1583
1369
|
}, {
|
|
@@ -1596,124 +1382,101 @@ var BaseEditorComponent = /*#__PURE__*/function (_Vue) {
|
|
|
1596
1382
|
key: "saveValue",
|
|
1597
1383
|
value: function saveValue() {
|
|
1598
1384
|
var _Handsontable$editors18;
|
|
1599
|
-
|
|
1600
1385
|
for (var _len18 = arguments.length, args = new Array(_len18), _key18 = 0; _key18 < _len18; _key18++) {
|
|
1601
1386
|
args[_key18] = arguments[_key18];
|
|
1602
1387
|
}
|
|
1603
|
-
|
|
1604
1388
|
return (_Handsontable$editors18 = Handsontable__default["default"].editors.BaseEditor.prototype.saveValue).call.apply(_Handsontable$editors18, [this.$data.hotCustomEditorInstance].concat(args));
|
|
1605
1389
|
}
|
|
1606
1390
|
}, {
|
|
1607
1391
|
key: "setValue",
|
|
1608
1392
|
value: function setValue() {
|
|
1609
1393
|
var _Handsontable$editors19;
|
|
1610
|
-
|
|
1611
1394
|
for (var _len19 = arguments.length, args = new Array(_len19), _key19 = 0; _key19 < _len19; _key19++) {
|
|
1612
1395
|
args[_key19] = arguments[_key19];
|
|
1613
1396
|
}
|
|
1614
|
-
|
|
1615
1397
|
return (_Handsontable$editors19 = Handsontable__default["default"].editors.BaseEditor.prototype.setValue).call.apply(_Handsontable$editors19, [this.$data.hotCustomEditorInstance].concat(args));
|
|
1616
1398
|
}
|
|
1617
1399
|
}, {
|
|
1618
1400
|
key: "addHook",
|
|
1619
1401
|
value: function addHook() {
|
|
1620
1402
|
var _Handsontable$editors20;
|
|
1621
|
-
|
|
1622
1403
|
for (var _len20 = arguments.length, args = new Array(_len20), _key20 = 0; _key20 < _len20; _key20++) {
|
|
1623
1404
|
args[_key20] = arguments[_key20];
|
|
1624
1405
|
}
|
|
1625
|
-
|
|
1626
1406
|
return (_Handsontable$editors20 = Handsontable__default["default"].editors.BaseEditor.prototype.addHook).call.apply(_Handsontable$editors20, [this.$data.hotCustomEditorInstance].concat(args));
|
|
1627
1407
|
}
|
|
1628
1408
|
}, {
|
|
1629
1409
|
key: "removeHooksByKey",
|
|
1630
1410
|
value: function removeHooksByKey() {
|
|
1631
1411
|
var _Handsontable$editors21;
|
|
1632
|
-
|
|
1633
1412
|
for (var _len21 = arguments.length, args = new Array(_len21), _key21 = 0; _key21 < _len21; _key21++) {
|
|
1634
1413
|
args[_key21] = arguments[_key21];
|
|
1635
1414
|
}
|
|
1636
|
-
|
|
1637
1415
|
return (_Handsontable$editors21 = Handsontable__default["default"].editors.BaseEditor.prototype.removeHooksByKey).call.apply(_Handsontable$editors21, [this.$data.hotCustomEditorInstance].concat(args));
|
|
1638
1416
|
}
|
|
1639
1417
|
}, {
|
|
1640
1418
|
key: "clearHooks",
|
|
1641
1419
|
value: function clearHooks() {
|
|
1642
1420
|
var _Handsontable$editors22;
|
|
1643
|
-
|
|
1644
1421
|
for (var _len22 = arguments.length, args = new Array(_len22), _key22 = 0; _key22 < _len22; _key22++) {
|
|
1645
1422
|
args[_key22] = arguments[_key22];
|
|
1646
1423
|
}
|
|
1647
|
-
|
|
1648
1424
|
return (_Handsontable$editors22 = Handsontable__default["default"].editors.BaseEditor.prototype.clearHooks).call.apply(_Handsontable$editors22, [this.$data.hotCustomEditorInstance].concat(args));
|
|
1649
1425
|
}
|
|
1650
1426
|
}, {
|
|
1651
1427
|
key: "getEditedCell",
|
|
1652
1428
|
value: function getEditedCell() {
|
|
1653
1429
|
var _Handsontable$editors23;
|
|
1654
|
-
|
|
1655
1430
|
for (var _len23 = arguments.length, args = new Array(_len23), _key23 = 0; _key23 < _len23; _key23++) {
|
|
1656
1431
|
args[_key23] = arguments[_key23];
|
|
1657
1432
|
}
|
|
1658
|
-
|
|
1659
1433
|
return (_Handsontable$editors23 = Handsontable__default["default"].editors.BaseEditor.prototype.getEditedCell).call.apply(_Handsontable$editors23, [this.$data.hotCustomEditorInstance].concat(args));
|
|
1660
1434
|
}
|
|
1661
1435
|
}, {
|
|
1662
1436
|
key: "getEditedCellRect",
|
|
1663
1437
|
value: function getEditedCellRect() {
|
|
1664
1438
|
var _Handsontable$editors24;
|
|
1665
|
-
|
|
1666
1439
|
for (var _len24 = arguments.length, args = new Array(_len24), _key24 = 0; _key24 < _len24; _key24++) {
|
|
1667
1440
|
args[_key24] = arguments[_key24];
|
|
1668
1441
|
}
|
|
1669
|
-
|
|
1670
1442
|
return (_Handsontable$editors24 = Handsontable__default["default"].editors.BaseEditor.prototype.getEditedCellRect).call.apply(_Handsontable$editors24, [this.$data.hotCustomEditorInstance].concat(args));
|
|
1671
1443
|
}
|
|
1672
1444
|
}, {
|
|
1673
1445
|
key: "getEditedCellsZIndex",
|
|
1674
1446
|
value: function getEditedCellsZIndex() {
|
|
1675
1447
|
var _Handsontable$editors25;
|
|
1676
|
-
|
|
1677
1448
|
for (var _len25 = arguments.length, args = new Array(_len25), _key25 = 0; _key25 < _len25; _key25++) {
|
|
1678
1449
|
args[_key25] = arguments[_key25];
|
|
1679
1450
|
}
|
|
1680
|
-
|
|
1681
1451
|
return (_Handsontable$editors25 = Handsontable__default["default"].editors.BaseEditor.prototype.getEditedCellsZIndex).call.apply(_Handsontable$editors25, [this.$data.hotCustomEditorInstance].concat(args));
|
|
1682
1452
|
}
|
|
1683
1453
|
}, {
|
|
1684
1454
|
key: "getEditedCellsLayerClass",
|
|
1685
1455
|
value: function getEditedCellsLayerClass() {
|
|
1686
1456
|
var _Handsontable$editors26;
|
|
1687
|
-
|
|
1688
1457
|
for (var _len26 = arguments.length, args = new Array(_len26), _key26 = 0; _key26 < _len26; _key26++) {
|
|
1689
1458
|
args[_key26] = arguments[_key26];
|
|
1690
1459
|
}
|
|
1691
|
-
|
|
1692
1460
|
return (_Handsontable$editors26 = Handsontable__default["default"].editors.BaseEditor.prototype.getEditedCellsLayerClass).call.apply(_Handsontable$editors26, [this.$data.hotCustomEditorInstance].concat(args));
|
|
1693
1461
|
}
|
|
1694
1462
|
}]);
|
|
1695
|
-
|
|
1696
1463
|
return BaseEditorComponent;
|
|
1697
1464
|
}(Vue__default["default"]);
|
|
1698
|
-
|
|
1699
1465
|
BaseEditorComponent = __decorate([Component({})], BaseEditorComponent);
|
|
1700
1466
|
var script = BaseEditorComponent;
|
|
1701
1467
|
|
|
1702
1468
|
/* script */
|
|
1703
1469
|
var __vue_script__ = script;
|
|
1470
|
+
|
|
1704
1471
|
/* template */
|
|
1705
1472
|
|
|
1706
1473
|
/* style */
|
|
1707
|
-
|
|
1708
1474
|
var __vue_inject_styles__ = undefined;
|
|
1709
1475
|
/* scoped */
|
|
1710
|
-
|
|
1711
1476
|
var __vue_scope_id__ = undefined;
|
|
1712
1477
|
/* module identifier */
|
|
1713
|
-
|
|
1714
1478
|
var __vue_module_identifier__ = undefined;
|
|
1715
1479
|
/* functional template */
|
|
1716
|
-
|
|
1717
1480
|
var __vue_is_functional_template__ = undefined;
|
|
1718
1481
|
/* style inject */
|
|
1719
1482
|
|