@handsontable/vue 9.0.1 → 11.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/BaseEditorComponent.vue.d.ts +2 -2
- package/LICENSE.txt +19 -22
- package/commonjs/vue-handsontable.js +98 -71
- package/dist/vue-handsontable.js +121 -97
- package/dist/vue-handsontable.js.map +1 -1
- package/dist/vue-handsontable.min.js +22 -25
- package/dist/vue-handsontable.min.js.map +1 -1
- package/es/vue-handsontable.js +66 -40
- package/handsontable-non-commercial-license.pdf +0 -0
- package/helpers.d.ts +5 -1
- package/package.json +3 -3
- package/types.d.ts +4 -3
- package/handsontable-general-terms.pdf +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Vue from 'vue';
|
|
2
|
-
import Handsontable from 'handsontable';
|
|
3
|
-
declare class BaseEditorComponent extends Vue implements Handsontable.
|
|
2
|
+
import Handsontable from 'handsontable/base';
|
|
3
|
+
declare class BaseEditorComponent extends Vue implements Handsontable.editors.BaseEditor {
|
|
4
4
|
name: string;
|
|
5
5
|
instance: any;
|
|
6
6
|
row: any;
|
package/LICENSE.txt
CHANGED
|
@@ -1,28 +1,25 @@
|
|
|
1
1
|
Copyright (c) HANDSONCODE sp. z o. o.
|
|
2
2
|
|
|
3
|
-
HANDSONTABLE is a software distributed by HANDSONCODE sp. z o. o.,
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
EU tax ID number: PL5862294002, share capital: PLN 62,800.00.
|
|
3
|
+
HANDSONTABLE is a software distributed by HANDSONCODE sp. z o. o., a Polish corporation based in
|
|
4
|
+
Gdynia, Poland, at Aleja Zwycięstwa 96-98, registered by the District Court in Gdansk under number
|
|
5
|
+
538651, EU tax ID number: PL5862294002, share capital: PLN 62,800.00.
|
|
7
6
|
|
|
8
|
-
This software is protected by applicable copyright laws, including
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
or monetary compensation (commercial purposes), or not.
|
|
7
|
+
This software is protected by applicable copyright laws, including international treaties, and dual-
|
|
8
|
+
licensed – depending on whether your use for commercial purposes, meaning intended for or
|
|
9
|
+
resulting in commercial advantage or monetary compensation, or not.
|
|
12
10
|
|
|
13
|
-
If your use
|
|
14
|
-
|
|
15
|
-
in the "handsontable-non-commercial-license.pdf" file
|
|
16
|
-
in the main directory of this software repository.
|
|
11
|
+
If your use is strictly personal or solely for evaluation purposes, meaning for the purposes of testing
|
|
12
|
+
the suitability, performance, and usefulness of this software outside the production environment,
|
|
13
|
+
you agree to be bound by the terms included in the "handsontable-non-commercial-license.pdf" file.
|
|
17
14
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
in the "handsontable-general-terms.pdf" file, available in the main
|
|
21
|
-
directory of this software repository.
|
|
15
|
+
Your use of this software for commercial purposes is subject to the terms included in an applicable
|
|
16
|
+
license agreement.
|
|
22
17
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
18
|
+
In any case, you must not make any such use of this software as to develop software which may be
|
|
19
|
+
considered competitive with this software.
|
|
20
|
+
|
|
21
|
+
UNLESS EXPRESSLY AGREED OTHERWISE, HANDSONCODE PROVIDES THIS SOFTWARE ON AN "AS IS"
|
|
22
|
+
BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, AND IN NO EVENT AND UNDER NO
|
|
23
|
+
LEGAL THEORY, SHALL HANDSONCODE BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY DIRECT,
|
|
24
|
+
INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER ARISING FROM
|
|
25
|
+
USE OR INABILITY TO USE THIS SOFTWARE.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var Handsontable = require('handsontable');
|
|
5
|
+
var Handsontable = require('handsontable/base');
|
|
6
6
|
var Vue = require('vue');
|
|
7
7
|
|
|
8
8
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -156,6 +156,8 @@ function _assertThisInitialized(self) {
|
|
|
156
156
|
function _possibleConstructorReturn(self, call) {
|
|
157
157
|
if (call && (typeof call === "object" || typeof call === "function")) {
|
|
158
158
|
return call;
|
|
159
|
+
} else if (call !== void 0) {
|
|
160
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
|
159
161
|
}
|
|
160
162
|
|
|
161
163
|
return _assertThisInitialized(self);
|
|
@@ -182,27 +184,34 @@ function _createSuper(Derived) {
|
|
|
182
184
|
|
|
183
185
|
var unassignedPropSymbol = Symbol('unassigned');
|
|
184
186
|
var bulkComponentContainer = null;
|
|
187
|
+
/**
|
|
188
|
+
* Message for the warning thrown if the Handsontable instance has been destroyed.
|
|
189
|
+
*/
|
|
190
|
+
|
|
191
|
+
var HOT_DESTROYED_WARNING = 'The Handsontable instance bound to this component was destroyed and cannot be' + ' used properly.';
|
|
185
192
|
/**
|
|
186
193
|
* Private method to ensure the table is not calling `updateSettings` after editing cells.
|
|
187
194
|
* @private
|
|
188
195
|
*/
|
|
189
196
|
|
|
190
197
|
function preventInternalEditWatch(component) {
|
|
191
|
-
component.hotInstance
|
|
192
|
-
component.
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
component.
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
component.
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
component.
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
component.
|
|
205
|
-
|
|
198
|
+
if (component.hotInstance) {
|
|
199
|
+
component.hotInstance.addHook('beforeChange', function () {
|
|
200
|
+
component.__internalEdit = true;
|
|
201
|
+
});
|
|
202
|
+
component.hotInstance.addHook('beforeCreateRow', function () {
|
|
203
|
+
component.__internalEdit = true;
|
|
204
|
+
});
|
|
205
|
+
component.hotInstance.addHook('beforeCreateCol', function () {
|
|
206
|
+
component.__internalEdit = true;
|
|
207
|
+
});
|
|
208
|
+
component.hotInstance.addHook('beforeRemoveRow', function () {
|
|
209
|
+
component.__internalEdit = true;
|
|
210
|
+
});
|
|
211
|
+
component.hotInstance.addHook('beforeRemoveCol', function () {
|
|
212
|
+
component.__internalEdit = true;
|
|
213
|
+
});
|
|
214
|
+
}
|
|
206
215
|
}
|
|
207
216
|
/**
|
|
208
217
|
* Generate an object containing all the available Handsontable properties and plugin hooks.
|
|
@@ -212,9 +221,9 @@ function preventInternalEditWatch(component) {
|
|
|
212
221
|
*/
|
|
213
222
|
|
|
214
223
|
function propFactory(source) {
|
|
215
|
-
var registeredHooks = Handsontable__default[
|
|
224
|
+
var registeredHooks = Handsontable__default["default"].hooks.getRegistered();
|
|
216
225
|
var propSchema = {};
|
|
217
|
-
Object.assign(propSchema, Handsontable__default[
|
|
226
|
+
Object.assign(propSchema, Handsontable__default["default"].DefaultSettings);
|
|
218
227
|
|
|
219
228
|
for (var prop in propSchema) {
|
|
220
229
|
propSchema[prop] = {
|
|
@@ -373,7 +382,7 @@ function simpleEqual(objectA, objectB) {
|
|
|
373
382
|
return JSON.stringify(objectA) === JSON.stringify(objectB);
|
|
374
383
|
}
|
|
375
384
|
|
|
376
|
-
var version="
|
|
385
|
+
var version="11.0.1";
|
|
377
386
|
|
|
378
387
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
379
388
|
|
|
@@ -590,10 +599,14 @@ var HotTable = {
|
|
|
590
599
|
props: propFactory('HotTable'),
|
|
591
600
|
watch: {
|
|
592
601
|
mergedHotSettings: function mergedHotSettings(value) {
|
|
602
|
+
if (!this.hotInstance || value === void 0) {
|
|
603
|
+
return;
|
|
604
|
+
}
|
|
605
|
+
|
|
593
606
|
if (value.data) {
|
|
594
607
|
if (this.hotInstance.isColumnModificationAllowed() || !this.hotInstance.isColumnModificationAllowed() && this.hotInstance.countSourceCols() === this.miscCache.currentSourceColumns) {
|
|
595
608
|
// If the dataset dimensions change, update the index mappers.
|
|
596
|
-
this.matchHotMappersSize(
|
|
609
|
+
this.matchHotMappersSize(); // Data is automatically synchronized by reference.
|
|
597
610
|
|
|
598
611
|
delete value.data;
|
|
599
612
|
}
|
|
@@ -610,6 +623,7 @@ var HotTable = {
|
|
|
610
623
|
}
|
|
611
624
|
},
|
|
612
625
|
data: function data() {
|
|
626
|
+
var thisComponent = this;
|
|
613
627
|
var rendererCache = new lru_1(this.wrapperRendererCacheSize); // Make the LRU cache destroy each removed component
|
|
614
628
|
|
|
615
629
|
rendererCache.shift = function () {
|
|
@@ -621,14 +635,27 @@ var HotTable = {
|
|
|
621
635
|
return {
|
|
622
636
|
__internalEdit: false,
|
|
623
637
|
miscCache: {
|
|
624
|
-
// TODO: A workaround for #7548; data.length !== rowIndexMapper.getNumberOfIndexes() for NestedRows plugin.
|
|
625
|
-
dataLength: 0,
|
|
626
638
|
currentSourceColumns: null
|
|
627
639
|
},
|
|
628
|
-
|
|
640
|
+
__hotInstance: null,
|
|
629
641
|
columnSettings: null,
|
|
630
642
|
rendererCache: rendererCache,
|
|
631
|
-
editorCache: new Map()
|
|
643
|
+
editorCache: new Map(),
|
|
644
|
+
|
|
645
|
+
get hotInstance() {
|
|
646
|
+
if (!thisComponent.__hotInstance || thisComponent.__hotInstance && !thisComponent.__hotInstance.isDestroyed) {
|
|
647
|
+
// Will return the Handsontable instance or `null` if it's not yet been created.
|
|
648
|
+
return thisComponent.__hotInstance;
|
|
649
|
+
} else {
|
|
650
|
+
console.warn(HOT_DESTROYED_WARNING);
|
|
651
|
+
return null;
|
|
652
|
+
}
|
|
653
|
+
},
|
|
654
|
+
|
|
655
|
+
set hotInstance(hotInstance) {
|
|
656
|
+
thisComponent.__hotInstance = hotInstance;
|
|
657
|
+
}
|
|
658
|
+
|
|
632
659
|
};
|
|
633
660
|
},
|
|
634
661
|
computed: {
|
|
@@ -641,8 +668,6 @@ var HotTable = {
|
|
|
641
668
|
* Initialize Handsontable.
|
|
642
669
|
*/
|
|
643
670
|
hotInit: function hotInit() {
|
|
644
|
-
var _newSettings$data$len, _newSettings$data;
|
|
645
|
-
|
|
646
671
|
var globalRendererVNode = this.getGlobalRendererVNode();
|
|
647
672
|
var globalEditorVNode = this.getGlobalEditorVNode();
|
|
648
673
|
var newSettings = prepareSettings(this.$props);
|
|
@@ -658,24 +683,28 @@ var HotTable = {
|
|
|
658
683
|
globalRendererVNode.child.$destroy();
|
|
659
684
|
}
|
|
660
685
|
|
|
661
|
-
this.hotInstance = new Handsontable__default[
|
|
686
|
+
this.hotInstance = new Handsontable__default["default"].Core(this.$el, newSettings);
|
|
662
687
|
this.hotInstance.init();
|
|
663
688
|
preventInternalEditWatch(this);
|
|
664
|
-
this.miscCache.dataLength = (_newSettings$data$len = newSettings === null || newSettings === void 0 ? void 0 : (_newSettings$data = newSettings.data) === null || _newSettings$data === void 0 ? void 0 : _newSettings$data.length) !== null && _newSettings$data$len !== void 0 ? _newSettings$data$len : 0;
|
|
665
689
|
this.miscCache.currentSourceColumns = this.hotInstance.countSourceCols();
|
|
666
690
|
},
|
|
667
|
-
matchHotMappersSize: function matchHotMappersSize(
|
|
691
|
+
matchHotMappersSize: function matchHotMappersSize() {
|
|
668
692
|
var _this = this;
|
|
669
693
|
|
|
694
|
+
if (!this.hotInstance) {
|
|
695
|
+
return;
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
var data = this.hotInstance.getSourceData();
|
|
670
699
|
var rowsToRemove = [];
|
|
671
700
|
var columnsToRemove = [];
|
|
672
|
-
var
|
|
701
|
+
var indexMapperRowCount = this.hotInstance.rowIndexMapper.getNumberOfIndexes();
|
|
673
702
|
var isColumnModificationAllowed = this.hotInstance.isColumnModificationAllowed();
|
|
674
703
|
var indexMapperColumnCount = 0;
|
|
675
704
|
|
|
676
|
-
if (data && data.length !==
|
|
677
|
-
if (data.length <
|
|
678
|
-
for (var r = data.length; r <
|
|
705
|
+
if (data && data.length !== indexMapperRowCount) {
|
|
706
|
+
if (data.length < indexMapperRowCount) {
|
|
707
|
+
for (var r = data.length; r < indexMapperRowCount; r++) {
|
|
679
708
|
rowsToRemove.push(r);
|
|
680
709
|
}
|
|
681
710
|
}
|
|
@@ -697,13 +726,9 @@ var HotTable = {
|
|
|
697
726
|
|
|
698
727
|
this.hotInstance.batch(function () {
|
|
699
728
|
if (rowsToRemove.length > 0) {
|
|
700
|
-
_this.miscCache.dataLength -= rowsToRemove.length;
|
|
701
|
-
|
|
702
729
|
_this.hotInstance.rowIndexMapper.removeIndexes(rowsToRemove);
|
|
703
730
|
} else {
|
|
704
|
-
_this.
|
|
705
|
-
|
|
706
|
-
_this.hotInstance.rowIndexMapper.insertIndexes(oldDataLength - 1, data.length - oldDataLength);
|
|
731
|
+
_this.hotInstance.rowIndexMapper.insertIndexes(indexMapperRowCount - 1, data.length - indexMapperRowCount);
|
|
707
732
|
}
|
|
708
733
|
|
|
709
734
|
if (isColumnModificationAllowed && data.length !== 0) {
|
|
@@ -828,7 +853,9 @@ var HotTable = {
|
|
|
828
853
|
return this.hotInit();
|
|
829
854
|
},
|
|
830
855
|
beforeDestroy: function beforeDestroy() {
|
|
831
|
-
this.hotInstance
|
|
856
|
+
if (this.hotInstance) {
|
|
857
|
+
this.hotInstance.destroy();
|
|
858
|
+
}
|
|
832
859
|
},
|
|
833
860
|
version: version
|
|
834
861
|
};
|
|
@@ -1232,7 +1259,7 @@ function componentFactory(Component) {
|
|
|
1232
1259
|
|
|
1233
1260
|
|
|
1234
1261
|
var superProto = Object.getPrototypeOf(Component.prototype);
|
|
1235
|
-
var Super = superProto instanceof Vue__default[
|
|
1262
|
+
var Super = superProto instanceof Vue__default["default"] ? superProto.constructor : Vue__default["default"];
|
|
1236
1263
|
var Extended = Super.extend(options);
|
|
1237
1264
|
forwardStaticMembers(Extended, Component, Super);
|
|
1238
1265
|
|
|
@@ -1340,12 +1367,12 @@ var BaseEditorComponent = /*#__PURE__*/function (_Vue) {
|
|
|
1340
1367
|
|
|
1341
1368
|
var _super2 = _createSuper(CustomEditor);
|
|
1342
1369
|
|
|
1343
|
-
function CustomEditor(hotInstance
|
|
1370
|
+
function CustomEditor(hotInstance) {
|
|
1344
1371
|
var _this3;
|
|
1345
1372
|
|
|
1346
1373
|
_classCallCheck(this, CustomEditor);
|
|
1347
1374
|
|
|
1348
|
-
_this3 = _super2.call(this, hotInstance
|
|
1375
|
+
_this3 = _super2.call(this, hotInstance);
|
|
1349
1376
|
_this.$data.hotCustomEditorInstance = _assertThisInitialized(_this3);
|
|
1350
1377
|
return _this3;
|
|
1351
1378
|
}
|
|
@@ -1368,10 +1395,10 @@ var BaseEditorComponent = /*#__PURE__*/function (_Vue) {
|
|
|
1368
1395
|
}]);
|
|
1369
1396
|
|
|
1370
1397
|
return CustomEditor;
|
|
1371
|
-
}(Handsontable__default[
|
|
1398
|
+
}(Handsontable__default["default"].editors.BaseEditor); // Fill with the rest of the BaseEditorComponent methods
|
|
1372
1399
|
|
|
1373
1400
|
|
|
1374
|
-
Object.getOwnPropertyNames(Handsontable__default[
|
|
1401
|
+
Object.getOwnPropertyNames(Handsontable__default["default"].editors.BaseEditor.prototype).forEach(function (propName) {
|
|
1375
1402
|
if (propName === 'constructor') {
|
|
1376
1403
|
return;
|
|
1377
1404
|
}
|
|
@@ -1399,7 +1426,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_Vue) {
|
|
|
1399
1426
|
args[_key2] = arguments[_key2];
|
|
1400
1427
|
}
|
|
1401
1428
|
|
|
1402
|
-
(_Handsontable$editors2 = Handsontable__default[
|
|
1429
|
+
(_Handsontable$editors2 = Handsontable__default["default"].editors.BaseEditor.prototype._fireCallbacks).call.apply(_Handsontable$editors2, [this.$data.hotCustomEditorInstance].concat(args));
|
|
1403
1430
|
}
|
|
1404
1431
|
}, {
|
|
1405
1432
|
key: "beginEditing",
|
|
@@ -1410,7 +1437,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_Vue) {
|
|
|
1410
1437
|
args[_key3] = arguments[_key3];
|
|
1411
1438
|
}
|
|
1412
1439
|
|
|
1413
|
-
return (_Handsontable$editors3 = Handsontable__default[
|
|
1440
|
+
return (_Handsontable$editors3 = Handsontable__default["default"].editors.BaseEditor.prototype.beginEditing).call.apply(_Handsontable$editors3, [this.$data.hotCustomEditorInstance].concat(args));
|
|
1414
1441
|
}
|
|
1415
1442
|
}, {
|
|
1416
1443
|
key: "cancelChanges",
|
|
@@ -1421,7 +1448,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_Vue) {
|
|
|
1421
1448
|
args[_key4] = arguments[_key4];
|
|
1422
1449
|
}
|
|
1423
1450
|
|
|
1424
|
-
return (_Handsontable$editors4 = Handsontable__default[
|
|
1451
|
+
return (_Handsontable$editors4 = Handsontable__default["default"].editors.BaseEditor.prototype.cancelChanges).call.apply(_Handsontable$editors4, [this.$data.hotCustomEditorInstance].concat(args));
|
|
1425
1452
|
}
|
|
1426
1453
|
}, {
|
|
1427
1454
|
key: "checkEditorSection",
|
|
@@ -1432,7 +1459,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_Vue) {
|
|
|
1432
1459
|
args[_key5] = arguments[_key5];
|
|
1433
1460
|
}
|
|
1434
1461
|
|
|
1435
|
-
return (_Handsontable$editors5 = Handsontable__default[
|
|
1462
|
+
return (_Handsontable$editors5 = Handsontable__default["default"].editors.BaseEditor.prototype.checkEditorSection).call.apply(_Handsontable$editors5, [this.$data.hotCustomEditorInstance].concat(args));
|
|
1436
1463
|
}
|
|
1437
1464
|
}, {
|
|
1438
1465
|
key: "close",
|
|
@@ -1443,7 +1470,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_Vue) {
|
|
|
1443
1470
|
args[_key6] = arguments[_key6];
|
|
1444
1471
|
}
|
|
1445
1472
|
|
|
1446
|
-
return (_Handsontable$editors6 = Handsontable__default[
|
|
1473
|
+
return (_Handsontable$editors6 = Handsontable__default["default"].editors.BaseEditor.prototype.close).call.apply(_Handsontable$editors6, [this.$data.hotCustomEditorInstance].concat(args));
|
|
1447
1474
|
}
|
|
1448
1475
|
}, {
|
|
1449
1476
|
key: "discardEditor",
|
|
@@ -1454,7 +1481,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_Vue) {
|
|
|
1454
1481
|
args[_key7] = arguments[_key7];
|
|
1455
1482
|
}
|
|
1456
1483
|
|
|
1457
|
-
return (_Handsontable$editors7 = Handsontable__default[
|
|
1484
|
+
return (_Handsontable$editors7 = Handsontable__default["default"].editors.BaseEditor.prototype.discardEditor).call.apply(_Handsontable$editors7, [this.$data.hotCustomEditorInstance].concat(args));
|
|
1458
1485
|
}
|
|
1459
1486
|
}, {
|
|
1460
1487
|
key: "enableFullEditMode",
|
|
@@ -1465,7 +1492,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_Vue) {
|
|
|
1465
1492
|
args[_key8] = arguments[_key8];
|
|
1466
1493
|
}
|
|
1467
1494
|
|
|
1468
|
-
return (_Handsontable$editors8 = Handsontable__default[
|
|
1495
|
+
return (_Handsontable$editors8 = Handsontable__default["default"].editors.BaseEditor.prototype.enableFullEditMode).call.apply(_Handsontable$editors8, [this.$data.hotCustomEditorInstance].concat(args));
|
|
1469
1496
|
}
|
|
1470
1497
|
}, {
|
|
1471
1498
|
key: "extend",
|
|
@@ -1476,7 +1503,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_Vue) {
|
|
|
1476
1503
|
args[_key9] = arguments[_key9];
|
|
1477
1504
|
}
|
|
1478
1505
|
|
|
1479
|
-
return (_Handsontable$editors9 = Handsontable__default[
|
|
1506
|
+
return (_Handsontable$editors9 = Handsontable__default["default"].editors.BaseEditor.prototype.extend).call.apply(_Handsontable$editors9, [this.$data.hotCustomEditorInstance].concat(args));
|
|
1480
1507
|
}
|
|
1481
1508
|
}, {
|
|
1482
1509
|
key: "finishEditing",
|
|
@@ -1487,7 +1514,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_Vue) {
|
|
|
1487
1514
|
args[_key10] = arguments[_key10];
|
|
1488
1515
|
}
|
|
1489
1516
|
|
|
1490
|
-
return (_Handsontable$editors10 = Handsontable__default[
|
|
1517
|
+
return (_Handsontable$editors10 = Handsontable__default["default"].editors.BaseEditor.prototype.finishEditing).call.apply(_Handsontable$editors10, [this.$data.hotCustomEditorInstance].concat(args));
|
|
1491
1518
|
}
|
|
1492
1519
|
}, {
|
|
1493
1520
|
key: "focus",
|
|
@@ -1498,7 +1525,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_Vue) {
|
|
|
1498
1525
|
args[_key11] = arguments[_key11];
|
|
1499
1526
|
}
|
|
1500
1527
|
|
|
1501
|
-
return (_Handsontable$editors11 = Handsontable__default[
|
|
1528
|
+
return (_Handsontable$editors11 = Handsontable__default["default"].editors.BaseEditor.prototype.focus).call.apply(_Handsontable$editors11, [this.$data.hotCustomEditorInstance].concat(args));
|
|
1502
1529
|
}
|
|
1503
1530
|
}, {
|
|
1504
1531
|
key: "getValue",
|
|
@@ -1509,7 +1536,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_Vue) {
|
|
|
1509
1536
|
args[_key12] = arguments[_key12];
|
|
1510
1537
|
}
|
|
1511
1538
|
|
|
1512
|
-
return (_Handsontable$editors12 = Handsontable__default[
|
|
1539
|
+
return (_Handsontable$editors12 = Handsontable__default["default"].editors.BaseEditor.prototype.getValue).call.apply(_Handsontable$editors12, [this.$data.hotCustomEditorInstance].concat(args));
|
|
1513
1540
|
}
|
|
1514
1541
|
}, {
|
|
1515
1542
|
key: "init",
|
|
@@ -1520,7 +1547,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_Vue) {
|
|
|
1520
1547
|
args[_key13] = arguments[_key13];
|
|
1521
1548
|
}
|
|
1522
1549
|
|
|
1523
|
-
return (_Handsontable$editors13 = Handsontable__default[
|
|
1550
|
+
return (_Handsontable$editors13 = Handsontable__default["default"].editors.BaseEditor.prototype.init).call.apply(_Handsontable$editors13, [this.$data.hotCustomEditorInstance].concat(args));
|
|
1524
1551
|
}
|
|
1525
1552
|
}, {
|
|
1526
1553
|
key: "isInFullEditMode",
|
|
@@ -1531,7 +1558,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_Vue) {
|
|
|
1531
1558
|
args[_key14] = arguments[_key14];
|
|
1532
1559
|
}
|
|
1533
1560
|
|
|
1534
|
-
return (_Handsontable$editors14 = Handsontable__default[
|
|
1561
|
+
return (_Handsontable$editors14 = Handsontable__default["default"].editors.BaseEditor.prototype.isInFullEditMode).call.apply(_Handsontable$editors14, [this.$data.hotCustomEditorInstance].concat(args));
|
|
1535
1562
|
}
|
|
1536
1563
|
}, {
|
|
1537
1564
|
key: "isOpened",
|
|
@@ -1542,7 +1569,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_Vue) {
|
|
|
1542
1569
|
args[_key15] = arguments[_key15];
|
|
1543
1570
|
}
|
|
1544
1571
|
|
|
1545
|
-
return (_Handsontable$editors15 = Handsontable__default[
|
|
1572
|
+
return (_Handsontable$editors15 = Handsontable__default["default"].editors.BaseEditor.prototype.isOpened).call.apply(_Handsontable$editors15, [this.$data.hotCustomEditorInstance].concat(args));
|
|
1546
1573
|
}
|
|
1547
1574
|
}, {
|
|
1548
1575
|
key: "isWaiting",
|
|
@@ -1553,7 +1580,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_Vue) {
|
|
|
1553
1580
|
args[_key16] = arguments[_key16];
|
|
1554
1581
|
}
|
|
1555
1582
|
|
|
1556
|
-
return (_Handsontable$editors16 = Handsontable__default[
|
|
1583
|
+
return (_Handsontable$editors16 = Handsontable__default["default"].editors.BaseEditor.prototype.isWaiting).call.apply(_Handsontable$editors16, [this.$data.hotCustomEditorInstance].concat(args));
|
|
1557
1584
|
}
|
|
1558
1585
|
}, {
|
|
1559
1586
|
key: "open",
|
|
@@ -1564,7 +1591,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_Vue) {
|
|
|
1564
1591
|
args[_key17] = arguments[_key17];
|
|
1565
1592
|
}
|
|
1566
1593
|
|
|
1567
|
-
return (_Handsontable$editors17 = Handsontable__default[
|
|
1594
|
+
return (_Handsontable$editors17 = Handsontable__default["default"].editors.BaseEditor.prototype.open).call.apply(_Handsontable$editors17, [this.$data.hotCustomEditorInstance].concat(args));
|
|
1568
1595
|
}
|
|
1569
1596
|
}, {
|
|
1570
1597
|
key: "prepare",
|
|
@@ -1576,7 +1603,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_Vue) {
|
|
|
1576
1603
|
this.$data.TD = TD;
|
|
1577
1604
|
this.$data.originalValue = originalValue;
|
|
1578
1605
|
this.$data.cellProperties = cellProperties;
|
|
1579
|
-
return Handsontable__default[
|
|
1606
|
+
return Handsontable__default["default"].editors.BaseEditor.prototype.prepare.call(this.$data.hotCustomEditorInstance, row, col, prop, TD, originalValue, cellProperties);
|
|
1580
1607
|
}
|
|
1581
1608
|
}, {
|
|
1582
1609
|
key: "saveValue",
|
|
@@ -1587,7 +1614,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_Vue) {
|
|
|
1587
1614
|
args[_key18] = arguments[_key18];
|
|
1588
1615
|
}
|
|
1589
1616
|
|
|
1590
|
-
return (_Handsontable$editors18 = Handsontable__default[
|
|
1617
|
+
return (_Handsontable$editors18 = Handsontable__default["default"].editors.BaseEditor.prototype.saveValue).call.apply(_Handsontable$editors18, [this.$data.hotCustomEditorInstance].concat(args));
|
|
1591
1618
|
}
|
|
1592
1619
|
}, {
|
|
1593
1620
|
key: "setValue",
|
|
@@ -1598,7 +1625,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_Vue) {
|
|
|
1598
1625
|
args[_key19] = arguments[_key19];
|
|
1599
1626
|
}
|
|
1600
1627
|
|
|
1601
|
-
return (_Handsontable$editors19 = Handsontable__default[
|
|
1628
|
+
return (_Handsontable$editors19 = Handsontable__default["default"].editors.BaseEditor.prototype.setValue).call.apply(_Handsontable$editors19, [this.$data.hotCustomEditorInstance].concat(args));
|
|
1602
1629
|
}
|
|
1603
1630
|
}, {
|
|
1604
1631
|
key: "addHook",
|
|
@@ -1609,7 +1636,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_Vue) {
|
|
|
1609
1636
|
args[_key20] = arguments[_key20];
|
|
1610
1637
|
}
|
|
1611
1638
|
|
|
1612
|
-
return (_Handsontable$editors20 = Handsontable__default[
|
|
1639
|
+
return (_Handsontable$editors20 = Handsontable__default["default"].editors.BaseEditor.prototype.addHook).call.apply(_Handsontable$editors20, [this.$data.hotCustomEditorInstance].concat(args));
|
|
1613
1640
|
}
|
|
1614
1641
|
}, {
|
|
1615
1642
|
key: "removeHooksByKey",
|
|
@@ -1620,7 +1647,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_Vue) {
|
|
|
1620
1647
|
args[_key21] = arguments[_key21];
|
|
1621
1648
|
}
|
|
1622
1649
|
|
|
1623
|
-
return (_Handsontable$editors21 = Handsontable__default[
|
|
1650
|
+
return (_Handsontable$editors21 = Handsontable__default["default"].editors.BaseEditor.prototype.removeHooksByKey).call.apply(_Handsontable$editors21, [this.$data.hotCustomEditorInstance].concat(args));
|
|
1624
1651
|
}
|
|
1625
1652
|
}, {
|
|
1626
1653
|
key: "clearHooks",
|
|
@@ -1631,7 +1658,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_Vue) {
|
|
|
1631
1658
|
args[_key22] = arguments[_key22];
|
|
1632
1659
|
}
|
|
1633
1660
|
|
|
1634
|
-
return (_Handsontable$editors22 = Handsontable__default[
|
|
1661
|
+
return (_Handsontable$editors22 = Handsontable__default["default"].editors.BaseEditor.prototype.clearHooks).call.apply(_Handsontable$editors22, [this.$data.hotCustomEditorInstance].concat(args));
|
|
1635
1662
|
}
|
|
1636
1663
|
}, {
|
|
1637
1664
|
key: "getEditedCell",
|
|
@@ -1642,7 +1669,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_Vue) {
|
|
|
1642
1669
|
args[_key23] = arguments[_key23];
|
|
1643
1670
|
}
|
|
1644
1671
|
|
|
1645
|
-
return (_Handsontable$editors23 = Handsontable__default[
|
|
1672
|
+
return (_Handsontable$editors23 = Handsontable__default["default"].editors.BaseEditor.prototype.getEditedCell).call.apply(_Handsontable$editors23, [this.$data.hotCustomEditorInstance].concat(args));
|
|
1646
1673
|
}
|
|
1647
1674
|
}, {
|
|
1648
1675
|
key: "getEditedCellsZIndex",
|
|
@@ -1653,7 +1680,7 @@ var BaseEditorComponent = /*#__PURE__*/function (_Vue) {
|
|
|
1653
1680
|
args[_key24] = arguments[_key24];
|
|
1654
1681
|
}
|
|
1655
1682
|
|
|
1656
|
-
return (_Handsontable$editors24 = Handsontable__default[
|
|
1683
|
+
return (_Handsontable$editors24 = Handsontable__default["default"].editors.BaseEditor.prototype.getEditedCellsZIndex).call.apply(_Handsontable$editors24, [this.$data.hotCustomEditorInstance].concat(args));
|
|
1657
1684
|
}
|
|
1658
1685
|
}, {
|
|
1659
1686
|
key: "getEditedCellsLayerClass",
|
|
@@ -1664,12 +1691,12 @@ var BaseEditorComponent = /*#__PURE__*/function (_Vue) {
|
|
|
1664
1691
|
args[_key25] = arguments[_key25];
|
|
1665
1692
|
}
|
|
1666
1693
|
|
|
1667
|
-
return (_Handsontable$editors25 = Handsontable__default[
|
|
1694
|
+
return (_Handsontable$editors25 = Handsontable__default["default"].editors.BaseEditor.prototype.getEditedCellsLayerClass).call.apply(_Handsontable$editors25, [this.$data.hotCustomEditorInstance].concat(args));
|
|
1668
1695
|
}
|
|
1669
1696
|
}]);
|
|
1670
1697
|
|
|
1671
1698
|
return BaseEditorComponent;
|
|
1672
|
-
}(Vue__default[
|
|
1699
|
+
}(Vue__default["default"]);
|
|
1673
1700
|
|
|
1674
1701
|
BaseEditorComponent = __decorate([Component({})], BaseEditorComponent);
|
|
1675
1702
|
var script = BaseEditorComponent;
|
|
@@ -1701,4 +1728,4 @@ var __vue_component__ = /*#__PURE__*/normalizeComponent({}, __vue_inject_styles_
|
|
|
1701
1728
|
exports.BaseEditorComponent = __vue_component__;
|
|
1702
1729
|
exports.HotColumn = __vue_component__$1;
|
|
1703
1730
|
exports.HotTable = __vue_component__$2;
|
|
1704
|
-
exports
|
|
1731
|
+
exports["default"] = __vue_component__$2;
|