@handsontable/vue3 0.0.0-next-bbcfca6-20260708 → 0.0.0-next-98d53ca-20260709
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/vue-handsontable.js
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
* INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER ARISING FROM
|
|
26
26
|
* USE OR INABILITY TO USE THIS SOFTWARE.
|
|
27
27
|
*
|
|
28
|
-
* Version: 0.0.0-next-
|
|
28
|
+
* Version: 0.0.0-next-98d53ca-20260709 (built at Thu Jul 09 2026 08:23:49 GMT+0000 (Coordinated Universal Time))
|
|
29
29
|
*/
|
|
30
30
|
(function (global, factory) {
|
|
31
31
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue'), require('handsontable/base')) :
|
|
@@ -303,7 +303,7 @@ function simpleEqual(objectA, objectB) {
|
|
|
303
303
|
}
|
|
304
304
|
}
|
|
305
305
|
|
|
306
|
-
var version="0.0.0-next-
|
|
306
|
+
var version="0.0.0-next-98d53ca-20260709";
|
|
307
307
|
|
|
308
308
|
var HotTable = vue.defineComponent({
|
|
309
309
|
name: 'HotTable',
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
* INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER ARISING FROM
|
|
26
26
|
* USE OR INABILITY TO USE THIS SOFTWARE.
|
|
27
27
|
*
|
|
28
|
-
* Version: 0.0.0-next-
|
|
28
|
+
* Version: 0.0.0-next-98d53ca-20260709 (built at Thu Jul 09 2026 08:23:52 GMT+0000 (Coordinated Universal Time))
|
|
29
29
|
*/
|
|
30
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("vue"),require("handsontable/base")):"function"==typeof define&&define.amd?define(["exports","vue","handsontable/base"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).Handsontable=t.Handsontable||{},t.Handsontable.vue={}),t.Vue,t.Handsontable)}(this,function(t,e,n){"use strict";function o(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var r=o(n);function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);e>n;n++)o[n]=t[n];return o}function s(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e);if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,o)}return n}function c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var o,r,i,s,u=[],c=!0,a=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(u.push(o.value),u.length!==e);c=!0);}catch(t){a=!0,r=t}finally{try{if(!c&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(a)throw r}}return u}}(t,e)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}var l=Symbol("unassigned");function h(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function f(t){var e=r.default.hooks.getRegistered(),n={};for(var o in Object.assign(n,r.default.DefaultSettings),n)n[o]={default:l};for(var i=0;e.length>i;i++)n[e[i]]={default:l};return n.settings={default:l},"HotTable"===t&&(n.id={type:String,default:"hot-".concat(Math.random().toString(36).substring(5))}),n}function d(t){var e={},n=t.settings;if(n!==l)for(var o in n)h(n,o)&&n[o]!==l&&(e[o]=n[o]);for(var r in t)h(t,r)&&"settings"!==r&&t[r]!==l&&(e[r]=t[r]);return e}function m(t,e){var n=d(t),o=t.settings?t.settings:n,r=t.settings?n:null,i=(null==e?void 0:e._initOnlySettings)||[],s={};for(var u in o)!h(o,u)||void 0===o[u]||i.includes(u)||e&&"data"!==u&&p(e[u],o[u])||(s[u]=o[u]);for(var c in r)!h(r,c)||"id"===c||"settings"===c||void 0===r[c]||i.includes(c)||e&&"data"!==c&&p(e[c],r[c])||(s[c]=r[c]);return s}function p(t,e){var n=new WeakMap,o=0,r=function(t){var e=new WeakSet;return JSON.stringify(t,function(t,r){if("object"===a(r)&&null!==r){if(e.has(r))return;if(e.add(r),"undefined"!=typeof Node&&r instanceof Node){var i=n.get(r);return void 0===i&&n.set(r,i="__hot_node_".concat(o+=1,"__")),i}}return r})};if("function"==typeof t&&"function"==typeof e)return""+t==""+e;if(a(t)!==a(e))return!1;try{return r(t)===r(e)}catch(t){return!1}}var g=e.defineComponent({name:"HotTable",props:f("HotTable"),provide:function(){return{columnsCache:this.columnsCache,refreshColumns:this.refreshColumns}},watch:{$props:{handler:function(t){var e=m(t,this.hotInstance?this.hotInstance.getSettings():void 0);this.hotInstance&&void 0!==e&&(e.data&&(this.hotInstance.isColumnModificationAllowed()||!this.hotInstance.isColumnModificationAllowed()&&this.hotInstance.countSourceCols()===this.miscCache.currentSourceColumns)&&(this.matchHotMappersSize(),delete e.data),Object.keys(e).length?this.hotInstance.updateSettings(e):this.hotInstance.render(),this.miscCache.currentSourceColumns=this.hotInstance.countSourceCols())},deep:!0,immediate:!0}},data:function(){return{__hotInstance:null,miscCache:{currentSourceColumns:null},columnSettings:null,columnsCache:new Map,columnsRefreshScheduled:!1,get hotInstance(){return!this.__hotInstance||this.__hotInstance&&!this.__hotInstance.isDestroyed?this.__hotInstance:(console.warn("The Handsontable instance bound to this component was destroyed and cannot be used properly."),null)},set hotInstance(t){this.__hotInstance=t}}},methods:{hotInit:function(){var t=m(this.$props);t.columns=this.columnSettings?this.columnSettings:t.columns,this.hotInstance=e.markRaw(new r.default.Core(this.$el,t)),this.hotInstance.init(),this.miscCache.currentSourceColumns=this.hotInstance.countSourceCols()},matchHotMappersSize:function(){var t=this;if(this.hotInstance){var e,n=this.hotInstance.getSourceData(),o=[],r=[],i=this.hotInstance.rowIndexMapper.getNumberOfIndexes(),s=this.hotInstance.isColumnModificationAllowed(),u=0;if(n&&n.length!==i&&i>n.length)for(var c=n.length;i>c;c++)o.push(c);if(s)if(u=this.hotInstance.columnIndexMapper.getNumberOfIndexes(),n&&n[0]&&(null===(e=n[0])||void 0===e?void 0:e.length)!==u&&u>n[0].length)for(var a=n[0].length;u>a;a++)r.push(a);this.hotInstance.batch(function(){o.length>0?t.hotInstance.rowIndexMapper.removeIndexes(o):t.hotInstance.rowIndexMapper.insertIndexes(i-1,n.length-i),s&&0!==n.length&&(r.length>0?t.hotInstance.columnIndexMapper.removeIndexes(r):t.hotInstance.columnIndexMapper.insertIndexes(u-1,n[0].length-u))})}},getColumnSettings:function(){var t=Array.from(this.columnsCache.entries()).sort(function(t,e){var n=c(t,1)[0],o=c(e,1),r=n.$el,i=o[0].$el;if(!r||!i)return 0;var s=r.compareDocumentPosition(i);return s&Node.DOCUMENT_POSITION_FOLLOWING?-1:s&Node.DOCUMENT_POSITION_PRECEDING?1:0}).map(function(t){return c(t,2)[1]});return t.length?t:void 0},refreshColumns:function(){var t=this;this.columnsRefreshScheduled||(this.columnsRefreshScheduled=!0,this.$nextTick(function(){if(t.columnsRefreshScheduled=!1,t.hotInstance){var e=t.getColumnSettings(),n=t.columnSettings;!n&&!e||!!n&&!!e&&n.length===e.length&&n.every(function(t,n){return t===e[n]})||(t.columnSettings=e||null,t.hotInstance.updateSettings({columns:e||void 0}))}}))}},mounted:function(){this.columnSettings=this.getColumnSettings(),this.hotInit()},updated:function(){this.refreshColumns()},beforeUnmount:function(){this.hotInstance&&this.hotInstance.destroy()},version:"0.0.0-next-
|
|
30
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("vue"),require("handsontable/base")):"function"==typeof define&&define.amd?define(["exports","vue","handsontable/base"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).Handsontable=t.Handsontable||{},t.Handsontable.vue={}),t.Vue,t.Handsontable)}(this,function(t,e,n){"use strict";function o(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var r=o(n);function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);e>n;n++)o[n]=t[n];return o}function s(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e);if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,o)}return n}function c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var o,r,i,s,u=[],c=!0,a=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(u.push(o.value),u.length!==e);c=!0);}catch(t){a=!0,r=t}finally{try{if(!c&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(a)throw r}}return u}}(t,e)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}var l=Symbol("unassigned");function h(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function f(t){var e=r.default.hooks.getRegistered(),n={};for(var o in Object.assign(n,r.default.DefaultSettings),n)n[o]={default:l};for(var i=0;e.length>i;i++)n[e[i]]={default:l};return n.settings={default:l},"HotTable"===t&&(n.id={type:String,default:"hot-".concat(Math.random().toString(36).substring(5))}),n}function d(t){var e={},n=t.settings;if(n!==l)for(var o in n)h(n,o)&&n[o]!==l&&(e[o]=n[o]);for(var r in t)h(t,r)&&"settings"!==r&&t[r]!==l&&(e[r]=t[r]);return e}function m(t,e){var n=d(t),o=t.settings?t.settings:n,r=t.settings?n:null,i=(null==e?void 0:e._initOnlySettings)||[],s={};for(var u in o)!h(o,u)||void 0===o[u]||i.includes(u)||e&&"data"!==u&&p(e[u],o[u])||(s[u]=o[u]);for(var c in r)!h(r,c)||"id"===c||"settings"===c||void 0===r[c]||i.includes(c)||e&&"data"!==c&&p(e[c],r[c])||(s[c]=r[c]);return s}function p(t,e){var n=new WeakMap,o=0,r=function(t){var e=new WeakSet;return JSON.stringify(t,function(t,r){if("object"===a(r)&&null!==r){if(e.has(r))return;if(e.add(r),"undefined"!=typeof Node&&r instanceof Node){var i=n.get(r);return void 0===i&&n.set(r,i="__hot_node_".concat(o+=1,"__")),i}}return r})};if("function"==typeof t&&"function"==typeof e)return""+t==""+e;if(a(t)!==a(e))return!1;try{return r(t)===r(e)}catch(t){return!1}}var g=e.defineComponent({name:"HotTable",props:f("HotTable"),provide:function(){return{columnsCache:this.columnsCache,refreshColumns:this.refreshColumns}},watch:{$props:{handler:function(t){var e=m(t,this.hotInstance?this.hotInstance.getSettings():void 0);this.hotInstance&&void 0!==e&&(e.data&&(this.hotInstance.isColumnModificationAllowed()||!this.hotInstance.isColumnModificationAllowed()&&this.hotInstance.countSourceCols()===this.miscCache.currentSourceColumns)&&(this.matchHotMappersSize(),delete e.data),Object.keys(e).length?this.hotInstance.updateSettings(e):this.hotInstance.render(),this.miscCache.currentSourceColumns=this.hotInstance.countSourceCols())},deep:!0,immediate:!0}},data:function(){return{__hotInstance:null,miscCache:{currentSourceColumns:null},columnSettings:null,columnsCache:new Map,columnsRefreshScheduled:!1,get hotInstance(){return!this.__hotInstance||this.__hotInstance&&!this.__hotInstance.isDestroyed?this.__hotInstance:(console.warn("The Handsontable instance bound to this component was destroyed and cannot be used properly."),null)},set hotInstance(t){this.__hotInstance=t}}},methods:{hotInit:function(){var t=m(this.$props);t.columns=this.columnSettings?this.columnSettings:t.columns,this.hotInstance=e.markRaw(new r.default.Core(this.$el,t)),this.hotInstance.init(),this.miscCache.currentSourceColumns=this.hotInstance.countSourceCols()},matchHotMappersSize:function(){var t=this;if(this.hotInstance){var e,n=this.hotInstance.getSourceData(),o=[],r=[],i=this.hotInstance.rowIndexMapper.getNumberOfIndexes(),s=this.hotInstance.isColumnModificationAllowed(),u=0;if(n&&n.length!==i&&i>n.length)for(var c=n.length;i>c;c++)o.push(c);if(s)if(u=this.hotInstance.columnIndexMapper.getNumberOfIndexes(),n&&n[0]&&(null===(e=n[0])||void 0===e?void 0:e.length)!==u&&u>n[0].length)for(var a=n[0].length;u>a;a++)r.push(a);this.hotInstance.batch(function(){o.length>0?t.hotInstance.rowIndexMapper.removeIndexes(o):t.hotInstance.rowIndexMapper.insertIndexes(i-1,n.length-i),s&&0!==n.length&&(r.length>0?t.hotInstance.columnIndexMapper.removeIndexes(r):t.hotInstance.columnIndexMapper.insertIndexes(u-1,n[0].length-u))})}},getColumnSettings:function(){var t=Array.from(this.columnsCache.entries()).sort(function(t,e){var n=c(t,1)[0],o=c(e,1),r=n.$el,i=o[0].$el;if(!r||!i)return 0;var s=r.compareDocumentPosition(i);return s&Node.DOCUMENT_POSITION_FOLLOWING?-1:s&Node.DOCUMENT_POSITION_PRECEDING?1:0}).map(function(t){return c(t,2)[1]});return t.length?t:void 0},refreshColumns:function(){var t=this;this.columnsRefreshScheduled||(this.columnsRefreshScheduled=!0,this.$nextTick(function(){if(t.columnsRefreshScheduled=!1,t.hotInstance){var e=t.getColumnSettings(),n=t.columnSettings;!n&&!e||!!n&&!!e&&n.length===e.length&&n.every(function(t,n){return t===e[n]})||(t.columnSettings=e||null,t.hotInstance.updateSettings({columns:e||void 0}))}}))}},mounted:function(){this.columnSettings=this.getColumnSettings(),this.hotInit()},updated:function(){this.refreshColumns()},beforeUnmount:function(){this.hotInstance&&this.hotInstance.destroy()},version:"0.0.0-next-98d53ca-20260709"}),v=["id"];g.render=function(t,n,o,r,i,s){return e.openBlock(),e.createElementBlock("div",{id:t.id,style:{height:"100%"}},[e.createCommentVNode(" `hot-column` children render invisible comment anchors in source order.\n Handsontable appends its own DOM to this container without clearing\n pre-existing nodes, so the anchors survive; the parent reads their\n document position to order the columns. "),e.renderSlot(t.$slots,"default")],8,v)},g.__file="src/HotTable.vue";var b=e.defineComponent({name:"HotColumn",props:f("HotColumn"),inject:["columnsCache","refreshColumns"],methods:{createColumnSettings:function(){var t=d(this.$props),e=function(t){for(var e=1;arguments.length>e;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach(function(e){s(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({},t);t.renderer&&(e.renderer=t.renderer),t.editor&&(e.editor=t.editor),this.columnsCache.set(this,e)}},watch:{$props:{handler:function(){this.createColumnSettings(),this.refreshColumns()},deep:!0}},mounted:function(){this.createColumnSettings(),this.refreshColumns()},unmounted:function(){this.columnsCache.delete(this),this.refreshColumns()},render:function(){return e.createCommentVNode("hot-column")}});b.__file="src/HotColumn.vue",t.HotColumn=b,t.HotTable=g,t.default=g,Object.defineProperty(t,"__esModule",{value:!0})});
|
|
31
31
|
//# sourceMappingURL=vue-handsontable.min.js.map
|
package/es/vue-handsontable.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@handsontable/vue3",
|
|
3
|
-
"version": "0.0.0-next-
|
|
3
|
+
"version": "0.0.0-next-98d53ca-20260709",
|
|
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": "0.0.0-next-
|
|
56
|
+
"handsontable": "0.0.0-next-98d53ca-20260709",
|
|
57
57
|
"vue": "^3.2.22"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"cross-env": "^7.0.3",
|
|
82
82
|
"eslint": "^8.57.1",
|
|
83
83
|
"eslint-plugin-vue": "^8.0.3",
|
|
84
|
-
"handsontable": "0.0.0-next-
|
|
84
|
+
"handsontable": "0.0.0-next-98d53ca-20260709",
|
|
85
85
|
"jest": "^27.5.1",
|
|
86
86
|
"jest-environment-jsdom": "^27.5.1",
|
|
87
87
|
"rimraf": "^3.0.2",
|