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