@handsontable/vue 14.3.0 → 14.4.0-next-0a79a1f-20240521
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 +27 -109
- package/dist/vue-handsontable.js +28 -110
- package/dist/vue-handsontable.js.map +1 -1
- package/dist/vue-handsontable.min.js +2 -17
- package/dist/vue-handsontable.min.js.map +1 -1
- package/es/vue-handsontable.mjs +27 -109
- package/package.json +11 -13
- package/types.d.ts +2 -2
package/es/vue-handsontable.mjs
CHANGED
|
@@ -72,7 +72,6 @@ function _defineProperties(target, props) {
|
|
|
72
72
|
}
|
|
73
73
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
74
74
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
75
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
76
75
|
Object.defineProperty(Constructor, "prototype", {
|
|
77
76
|
writable: false
|
|
78
77
|
});
|
|
@@ -332,33 +331,13 @@ function simpleEqual(objectA, objectB) {
|
|
|
332
331
|
}
|
|
333
332
|
}
|
|
334
333
|
|
|
335
|
-
var version="14.
|
|
334
|
+
var version="14.4.0-next-0a79a1f-20240521";
|
|
336
335
|
|
|
337
336
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
338
337
|
|
|
339
|
-
|
|
340
|
-
return module = { exports: {} }, fn(module, module.exports), module.exports;
|
|
341
|
-
}
|
|
338
|
+
var lru = {};
|
|
342
339
|
|
|
343
|
-
|
|
344
|
-
/**
|
|
345
|
-
* A doubly linked list-based Least Recently Used (LRU) cache. Will keep most
|
|
346
|
-
* recently used items while discarding least recently used items when its limit
|
|
347
|
-
* is reached.
|
|
348
|
-
*
|
|
349
|
-
* Licensed under MIT. Copyright (c) 2010 Rasmus Andersson <http://hunch.se/>
|
|
350
|
-
* See README.md for details.
|
|
351
|
-
*
|
|
352
|
-
* Illustration of the design:
|
|
353
|
-
*
|
|
354
|
-
* entry entry entry entry
|
|
355
|
-
* ______ ______ ______ ______
|
|
356
|
-
* | head |.newer => | |.newer => | |.newer => | tail |
|
|
357
|
-
* | A | | B | | C | | D |
|
|
358
|
-
* |______| <= older.|______| <= older.|______| <= older.|______|
|
|
359
|
-
*
|
|
360
|
-
* removed <-- <-- <-- <-- <-- <-- <-- <-- <-- <-- <-- added
|
|
361
|
-
*/
|
|
340
|
+
(function (exports) {
|
|
362
341
|
(function (g, f) {
|
|
363
342
|
var e = exports ;
|
|
364
343
|
f(e);
|
|
@@ -502,8 +481,7 @@ var lru = createCommonjsModule(function (module, exports) {
|
|
|
502
481
|
return this._keymap.has(key);
|
|
503
482
|
};
|
|
504
483
|
});
|
|
505
|
-
});
|
|
506
|
-
var lru_1 = lru.LRUMap;
|
|
484
|
+
})(lru);
|
|
507
485
|
|
|
508
486
|
var HotTable = {
|
|
509
487
|
name: 'HotTable',
|
|
@@ -532,10 +510,10 @@ var HotTable = {
|
|
|
532
510
|
},
|
|
533
511
|
data: function data() {
|
|
534
512
|
var thisComponent = this;
|
|
535
|
-
var rendererCache = new
|
|
513
|
+
var rendererCache = new lru.LRUMap(this.wrapperRendererCacheSize);
|
|
536
514
|
// Make the LRU cache destroy each removed component
|
|
537
515
|
rendererCache.shift = function () {
|
|
538
|
-
var entry =
|
|
516
|
+
var entry = lru.LRUMap.prototype.shift.call(this);
|
|
539
517
|
entry[1].component.$destroy();
|
|
540
518
|
return entry;
|
|
541
519
|
};
|
|
@@ -741,11 +719,6 @@ var HotTable = {
|
|
|
741
719
|
};
|
|
742
720
|
|
|
743
721
|
function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
|
|
744
|
-
if (typeof shadowMode !== 'boolean') {
|
|
745
|
-
createInjectorSSR = createInjector;
|
|
746
|
-
createInjector = shadowMode;
|
|
747
|
-
shadowMode = false;
|
|
748
|
-
}
|
|
749
722
|
// Vue.extend constructor export interop.
|
|
750
723
|
const options = typeof script === 'function' ? script.options : script;
|
|
751
724
|
// render functions
|
|
@@ -758,60 +731,6 @@ function normalizeComponent(template, style, script, scopeId, isFunctionalTempla
|
|
|
758
731
|
options.functional = true;
|
|
759
732
|
}
|
|
760
733
|
}
|
|
761
|
-
// scopedId
|
|
762
|
-
if (scopeId) {
|
|
763
|
-
options._scopeId = scopeId;
|
|
764
|
-
}
|
|
765
|
-
let hook;
|
|
766
|
-
if (moduleIdentifier) {
|
|
767
|
-
// server build
|
|
768
|
-
hook = function (context) {
|
|
769
|
-
// 2.3 injection
|
|
770
|
-
context =
|
|
771
|
-
context || // cached call
|
|
772
|
-
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
|
773
|
-
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext); // functional
|
|
774
|
-
// 2.2 with runInNewContext: true
|
|
775
|
-
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
776
|
-
context = __VUE_SSR_CONTEXT__;
|
|
777
|
-
}
|
|
778
|
-
// inject component styles
|
|
779
|
-
if (style) {
|
|
780
|
-
style.call(this, createInjectorSSR(context));
|
|
781
|
-
}
|
|
782
|
-
// register component module identifier for async chunk inference
|
|
783
|
-
if (context && context._registeredComponents) {
|
|
784
|
-
context._registeredComponents.add(moduleIdentifier);
|
|
785
|
-
}
|
|
786
|
-
};
|
|
787
|
-
// used by ssr in case component is cached and beforeCreate
|
|
788
|
-
// never gets called
|
|
789
|
-
options._ssrRegister = hook;
|
|
790
|
-
}
|
|
791
|
-
else if (style) {
|
|
792
|
-
hook = shadowMode
|
|
793
|
-
? function (context) {
|
|
794
|
-
style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot));
|
|
795
|
-
}
|
|
796
|
-
: function (context) {
|
|
797
|
-
style.call(this, createInjector(context));
|
|
798
|
-
};
|
|
799
|
-
}
|
|
800
|
-
if (hook) {
|
|
801
|
-
if (options.functional) {
|
|
802
|
-
// register for functional component in vue file
|
|
803
|
-
const originalRender = options.render;
|
|
804
|
-
options.render = function renderWithStyleInjection(h, context) {
|
|
805
|
-
hook.call(context);
|
|
806
|
-
return originalRender(h, context);
|
|
807
|
-
};
|
|
808
|
-
}
|
|
809
|
-
else {
|
|
810
|
-
// inject component registration as beforeCreate hook
|
|
811
|
-
const existing = options.beforeCreate;
|
|
812
|
-
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
|
|
813
|
-
}
|
|
814
|
-
}
|
|
815
734
|
return script;
|
|
816
735
|
}
|
|
817
736
|
|
|
@@ -835,8 +754,6 @@ var __vue_staticRenderFns__ = [];
|
|
|
835
754
|
var __vue_inject_styles__$2 = undefined;
|
|
836
755
|
/* scoped */
|
|
837
756
|
var __vue_scope_id__$2 = undefined;
|
|
838
|
-
/* module identifier */
|
|
839
|
-
var __vue_module_identifier__$2 = undefined;
|
|
840
757
|
/* functional template */
|
|
841
758
|
var __vue_is_functional_template__$2 = false;
|
|
842
759
|
/* style inject */
|
|
@@ -848,7 +765,7 @@ var __vue_is_functional_template__$2 = false;
|
|
|
848
765
|
var __vue_component__$2 = /*#__PURE__*/normalizeComponent({
|
|
849
766
|
render: __vue_render__,
|
|
850
767
|
staticRenderFns: __vue_staticRenderFns__
|
|
851
|
-
}, __vue_inject_styles__$2, __vue_script__$2, __vue_scope_id__$2, __vue_is_functional_template__$2
|
|
768
|
+
}, __vue_inject_styles__$2, __vue_script__$2, __vue_scope_id__$2, __vue_is_functional_template__$2);
|
|
852
769
|
|
|
853
770
|
var HotColumn = {
|
|
854
771
|
name: 'HotColumn',
|
|
@@ -895,8 +812,6 @@ var __vue_script__$1 = HotColumn;
|
|
|
895
812
|
var __vue_inject_styles__$1 = undefined;
|
|
896
813
|
/* scoped */
|
|
897
814
|
var __vue_scope_id__$1 = undefined;
|
|
898
|
-
/* module identifier */
|
|
899
|
-
var __vue_module_identifier__$1 = undefined;
|
|
900
815
|
/* functional template */
|
|
901
816
|
var __vue_is_functional_template__$1 = undefined;
|
|
902
817
|
/* style inject */
|
|
@@ -905,23 +820,23 @@ var __vue_is_functional_template__$1 = undefined;
|
|
|
905
820
|
|
|
906
821
|
/* style inject shadow dom */
|
|
907
822
|
|
|
908
|
-
var __vue_component__$1 = /*#__PURE__*/normalizeComponent({}, __vue_inject_styles__$1, __vue_script__$1, __vue_scope_id__$1, __vue_is_functional_template__$1
|
|
823
|
+
var __vue_component__$1 = /*#__PURE__*/normalizeComponent({}, __vue_inject_styles__$1, __vue_script__$1, __vue_scope_id__$1, __vue_is_functional_template__$1);
|
|
909
824
|
|
|
910
|
-
|
|
911
|
-
Copyright (c) Microsoft Corporation.
|
|
912
|
-
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
913
|
-
this file except in compliance with the License. You may obtain a copy of the
|
|
914
|
-
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
825
|
+
/******************************************************************************
|
|
826
|
+
Copyright (c) Microsoft Corporation.
|
|
915
827
|
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
919
|
-
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
828
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
829
|
+
purpose with or without fee is hereby granted.
|
|
920
830
|
|
|
921
|
-
|
|
922
|
-
|
|
831
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
832
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
833
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
834
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
835
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
836
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
837
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
923
838
|
***************************************************************************** */
|
|
924
|
-
/* global Reflect, Promise */
|
|
839
|
+
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
925
840
|
|
|
926
841
|
|
|
927
842
|
function __decorate(decorators, target, key, desc) {
|
|
@@ -929,7 +844,12 @@ function __decorate(decorators, target, key, desc) {
|
|
|
929
844
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
930
845
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
931
846
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
932
|
-
}
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
850
|
+
var e = new Error(message);
|
|
851
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
852
|
+
};
|
|
933
853
|
|
|
934
854
|
function _typeof(obj) {
|
|
935
855
|
if (typeof Symbol === "function" && _typeof$1(Symbol.iterator) === "symbol") {
|
|
@@ -1477,8 +1397,6 @@ var __vue_script__ = script;
|
|
|
1477
1397
|
var __vue_inject_styles__ = undefined;
|
|
1478
1398
|
/* scoped */
|
|
1479
1399
|
var __vue_scope_id__ = undefined;
|
|
1480
|
-
/* module identifier */
|
|
1481
|
-
var __vue_module_identifier__ = undefined;
|
|
1482
1400
|
/* functional template */
|
|
1483
1401
|
var __vue_is_functional_template__ = undefined;
|
|
1484
1402
|
/* style inject */
|
|
@@ -1487,6 +1405,6 @@ var __vue_is_functional_template__ = undefined;
|
|
|
1487
1405
|
|
|
1488
1406
|
/* style inject shadow dom */
|
|
1489
1407
|
|
|
1490
|
-
var __vue_component__ = /*#__PURE__*/normalizeComponent({}, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__
|
|
1408
|
+
var __vue_component__ = /*#__PURE__*/normalizeComponent({}, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__);
|
|
1491
1409
|
|
|
1492
1410
|
export { __vue_component__ as BaseEditorComponent, __vue_component__$1 as HotColumn, __vue_component__$2 as HotTable, __vue_component__$2 as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@handsontable/vue",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.4.0-next-0a79a1f-20240521",
|
|
4
4
|
"description": "Best Data Grid for Vue with Spreadsheet Look and Feel.",
|
|
5
5
|
"author": "Handsoncode <hello@handsoncode.net> (https://handsoncode.net)",
|
|
6
6
|
"homepage": "https://handsontable.com",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"url": "https://github.com/handsontable/handsontable/issues"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
|
-
"handsontable": "
|
|
56
|
+
"handsontable": "14.4.0-next-0a79a1f-20240521",
|
|
57
57
|
"vue": "^2.5.0"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
@@ -64,23 +64,21 @@
|
|
|
64
64
|
"@babel/preset-env": "^7.4.5",
|
|
65
65
|
"@babel/preset-typescript": "^7.3.3",
|
|
66
66
|
"@babel/runtime": "^7.4.5",
|
|
67
|
+
"@rollup/plugin-commonjs": "25.0.7",
|
|
68
|
+
"@rollup/plugin-node-resolve": "15.2.3",
|
|
69
|
+
"@rollup/plugin-terser": "0.4.4",
|
|
70
|
+
"@rollup/plugin-json": "^6.1.0",
|
|
71
|
+
"@rollup/plugin-replace": "^5.0.5",
|
|
72
|
+
"@rollup/plugin-babel": "6.0.4",
|
|
67
73
|
"@vue/test-utils": "^1.0.3",
|
|
68
74
|
"babel-core": "^7.0.0-bridge.0",
|
|
69
75
|
"cross-env": "^7.0.3",
|
|
70
76
|
"css-loader": "^6.10.0",
|
|
71
|
-
"handsontable": "
|
|
77
|
+
"handsontable": "14.4.0-next-0a79a1f-20240521",
|
|
72
78
|
"jest": "^26.6.3",
|
|
73
79
|
"rimraf": "^3.0.2",
|
|
74
|
-
"rollup": "^
|
|
75
|
-
"rollup-plugin-
|
|
76
|
-
"rollup-plugin-cleanup": "^3.1.1",
|
|
77
|
-
"rollup-plugin-commonjs": "^10.0.0",
|
|
78
|
-
"rollup-plugin-json": "^4.0.0",
|
|
79
|
-
"rollup-plugin-node-resolve": "^5.0.2",
|
|
80
|
-
"rollup-plugin-replace": "^2.2.0",
|
|
81
|
-
"rollup-plugin-terser": "^7.0.2",
|
|
82
|
-
"rollup-plugin-typescript": "^1.0.1",
|
|
83
|
-
"rollup-plugin-typescript2": "^0.21.1",
|
|
80
|
+
"rollup": "^4.16.1",
|
|
81
|
+
"rollup-plugin-typescript2": "^0.36.0",
|
|
84
82
|
"rollup-plugin-vue": "^5.1.9",
|
|
85
83
|
"typescript": "3.8.2",
|
|
86
84
|
"vue": "~2.6.10",
|
package/types.d.ts
CHANGED
|
@@ -53,8 +53,8 @@ declare type ClassFieldKey<T> = ({
|
|
|
53
53
|
})[keyof T];
|
|
54
54
|
declare type ClassMethods<T> = Pick<T, NotOriginalValueProp<T>>;
|
|
55
55
|
declare type ClassFields<T> = Pick<T, ClassFieldKey<T>>;
|
|
56
|
-
export interface BaseVueEditorMethods extends ClassMethods<Handsontable.
|
|
56
|
+
export interface BaseVueEditorMethods extends ClassMethods<Handsontable.editors.BaseEditor> {
|
|
57
57
|
}
|
|
58
|
-
export interface BaseVueEditorFields extends ClassFields<Handsontable.
|
|
58
|
+
export interface BaseVueEditorFields extends ClassFields<Handsontable.editors.BaseEditor> {
|
|
59
59
|
}
|
|
60
60
|
export {};
|