@handsontable/vue 14.3.0-next-3fa6b18-20240410 → 14.3.0-next-9e2cf62-20240410
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.
|
@@ -336,7 +336,7 @@ function simpleEqual(objectA, objectB) {
|
|
|
336
336
|
}
|
|
337
337
|
}
|
|
338
338
|
|
|
339
|
-
var version="14.3.0-next-
|
|
339
|
+
var version="14.3.0-next-9e2cf62-20240410";
|
|
340
340
|
|
|
341
341
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
342
342
|
|
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: 14.3.0-next-
|
|
28
|
+
* Version: 14.3.0-next-9e2cf62-20240410 (built at Wed Apr 10 2024 08:18:00 GMT+0000 (Coordinated Universal Time))
|
|
29
29
|
*/
|
|
30
30
|
(function (global, factory) {
|
|
31
31
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('handsontable/base'), require('vue')) :
|
|
@@ -364,7 +364,7 @@ function simpleEqual(objectA, objectB) {
|
|
|
364
364
|
}
|
|
365
365
|
}
|
|
366
366
|
|
|
367
|
-
var version="14.3.0-next-
|
|
367
|
+
var version="14.3.0-next-9e2cf62-20240410";
|
|
368
368
|
|
|
369
369
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
370
370
|
|
|
@@ -25,9 +25,9 @@
|
|
|
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: 14.3.0-next-
|
|
28
|
+
* Version: 14.3.0-next-9e2cf62-20240410 (built at Wed Apr 10 2024 08:18:07 GMT+0000 (Coordinated Universal Time))
|
|
29
29
|
*/
|
|
30
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("handsontable/base"),require("vue")):"function"==typeof define&&define.amd?define(["exports","handsontable/base","vue"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).Handsontable=t.Handsontable||{},t.Handsontable.vue={}),t.Handsontable,t.Vue)}(this,(function(t,e,n){"use strict";function o(t,e,n){return e=h(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,r()?Reflect.construct(e,n||[],h(t).constructor):e.apply(t,n))}function r(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(r=function(){return!!t})()}function i(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 a(t){for(var e=1;arguments.length>e;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){f(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(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||"default");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+""}function c(t){return c="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},c(t)}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n=0;e.length>n;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,s(o.key),o)}}function d(t,e,n){return e&&l(t.prototype,e),n&&l(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function f(t,e,n){return(e=s(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function p(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&y(t,e)}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function y(t,e){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},y(t,e)}var v=Symbol("unassigned"),m=null;function g(t){var n=e.hooks.getRegistered(),o={};for(var r in Object.assign(o,e.DefaultSettings),o)o[r]={default:v};for(var i=0;n.length>i;i++)o[n[i]]={default:v};return o.settings={default:v},"HotTable"===t&&(o.id={type:String,default:"hot-"+Math.random().toString(36).substring(5)},o.wrapperRendererCacheSize={type:Number,default:3e3}),o}function b(t){var e={},n=t.settings;if(n!==v)for(var o in n)n.hasOwnProperty(o)&&n[o]!==v&&(e[o]=n[o]);for(var r in t)t.hasOwnProperty(r)&&"settings"!==r&&t[r]!==v&&(e[r]=t[r]);return e}function E(t,e){var n=b(t),o=t.settings?t.settings:n,r=t.settings?n:null,i={};for(var a in o)!o.hasOwnProperty(a)||void 0===o[a]||e&&"data"!==a&&O(e[a],o[a])||(i[a]=o[a]);for(var s in r)!r.hasOwnProperty(s)||"id"===s||"settings"===s||"wrapperRendererCacheSize"===s||void 0===r[s]||e&&"data"!==s&&O(e[s],r[s])||(i[s]=r[s]);return i}function C(t,e){var n=null;return t.every((function(t,o){return!t.data||!t.data.attrs||void 0===t.data.attrs[e]||(n=t,!1)})),n}function w(t,e,n,o){var r=e.$el?e.$el.ownerDocument:document,i={propsData:n,parent:e,data:o};m||((m=r.createElement("DIV")).id="vueHotComponents",r.body.appendChild(m));var a=r.createElement("DIV");return m.appendChild(a),new t.componentOptions.Ctor(i).$mount(a)}function O(t,e){var n=function(t){var e,n=(e=new WeakSet,function(t,n){if("object"===c(n)&&null!==n){if(e.has(n))return;e.add(n)}return n});return JSON.stringify(t,n)};return"function"==typeof t&&"function"==typeof e?""+t==""+e:c(t)===c(e)&&n(t)===n(e)}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var I=function(t,e){return t(e={exports:{}},e.exports),e.exports}((function(t,e){!function(t){var e=Symbol("newer"),n=Symbol("older");function o(t,e){"number"!=typeof t&&(e=t,t=0),this.size=0,this.limit=t,this.oldest=this.newest=void 0,this._keymap=new Map,e&&(this.assign(e),1>t&&(this.limit=this.size))}function r(t,o){this.key=t,this.value=o,this[e]=void 0,this[n]=void 0}t.LRUMap=o,o.prototype._markEntryAsUsed=function(t){t!==this.newest&&(t[e]&&(t===this.oldest&&(this.oldest=t[e]),t[e][n]=t[n]),t[n]&&(t[n][e]=t[e]),t[e]=void 0,t[n]=this.newest,this.newest&&(this.newest[e]=t),this.newest=t)},o.prototype.assign=function(t){var o,i=this.limit||Number.MAX_VALUE;this._keymap.clear();for(var a=t[Symbol.iterator](),s=a.next();!s.done;s=a.next()){var c=new r(s.value[0],s.value[1]);if(this._keymap.set(c.key,c),o?(o[e]=c,c[n]=o):this.oldest=c,o=c,0==i--)throw Error("overflow")}this.newest=o,this.size=this._keymap.size},o.prototype.get=function(t){var e=this._keymap.get(t);if(e)return this._markEntryAsUsed(e),e.value},o.prototype.set=function(t,o){var i=this._keymap.get(t);return i?(i.value=o,this._markEntryAsUsed(i),this):(this._keymap.set(t,i=new r(t,o)),this.newest?(this.newest[e]=i,i[n]=this.newest):this.oldest=i,this.newest=i,++this.size,this.size>this.limit&&this.shift(),this)},o.prototype.shift=function(){var t=this.oldest;if(t)return this.oldest[e]?(this.oldest=this.oldest[e],this.oldest[n]=void 0):(this.oldest=void 0,this.newest=void 0),t[e]=t[n]=void 0,this._keymap.delete(t.key),--this.size,[t.key,t.value]},o.prototype.has=function(t){return this._keymap.has(t)}}(e)})),_=I.LRUMap;function k(t,e,n,o,r,i,a,s,c,u){"boolean"!=typeof a&&(c=s,s=a,a=!1);const l="function"==typeof n?n.options:n;let d;if(t&&t.render&&(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,r&&(l.functional=!0)),o&&(l._scopeId=o),i?(d=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,c(t)),t&&t._registeredComponents&&t._registeredComponents.add(i)},l._ssrRegister=d):e&&(d=a?function(t){e.call(this,u(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),d)if(l.functional){const t=l.render;l.render=function(e,n){return d.call(n),t(e,n)}}else{const t=l.beforeCreate;l.beforeCreate=t?[].concat(t,d):[d]}return n}var S=k({render:function(){var t=this;return(t._self._c||t.$createElement)("div",{attrs:{id:t.id}},[t._t("default")],2)},staticRenderFns:[]},undefined,{name:"HotTable",props:g("HotTable"),watch:{mergedHotSettings:function(t){this.hotInstance&&void 0!==t&&(t.data&&(this.hotInstance.isColumnModificationAllowed()||!this.hotInstance.isColumnModificationAllowed()&&this.hotInstance.countSourceCols()===this.miscCache.currentSourceColumns)&&(this.matchHotMappersSize(),delete t.data),Object.keys(t).length?this.hotInstance.updateSettings(t):this.hotInstance.render(),this.miscCache.currentSourceColumns=this.hotInstance.countSourceCols())}},data:function(){var t=this,e=new _(this.wrapperRendererCacheSize);return e.shift=function(){var t=_.prototype.shift.call(this);return t[1].component.$destroy(),t},{__internalEdit:!1,miscCache:{currentSourceColumns:null},__hotInstance:null,columnSettings:null,rendererCache:e,editorCache:new Map,get hotInstance(){return!t.__hotInstance||t.__hotInstance&&!t.__hotInstance.isDestroyed?t.__hotInstance:(console.warn("The Handsontable instance bound to this component was destroyed and cannot be used properly."),null)},set hotInstance(e){t.__hotInstance=e}}},computed:{mergedHotSettings:function(){return E(this.$props,this.hotInstance?this.hotInstance.getSettings():void 0)}},methods:{hotInit:function(){var t,n=this.getGlobalRendererVNode(),o=this.getGlobalEditorVNode(),r=E(this.$props);r.columns=this.columnSettings?this.columnSettings:r.columns,o&&(r.editor=this.getEditorClass(o,this),o.child.$destroy()),n&&(r.renderer=this.getRendererWrapper(n,this),n.child.$destroy()),this.hotInstance=new e.Core(this.$el,r),this.hotInstance.init(),(t=this).hotInstance&&(t.hotInstance.addHook("beforeChange",(function(){t.__internalEdit=!0})),t.hotInstance.addHook("beforeCreateRow",(function(){t.__internalEdit=!0})),t.hotInstance.addHook("beforeCreateCol",(function(){t.__internalEdit=!0})),t.hotInstance.addHook("beforeRemoveRow",(function(){t.__internalEdit=!0})),t.hotInstance.addHook("beforeRemoveCol",(function(){t.__internalEdit=!0}))),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(),a=this.hotInstance.isColumnModificationAllowed(),s=0;if(n&&n.length!==i&&i>n.length)for(var c=n.length;i>c;c++)o.push(c);if(a)if(s=this.hotInstance.columnIndexMapper.getNumberOfIndexes(),n&&n[0]&&(null===(e=n[0])||void 0===e?void 0:e.length)!==s&&s>n[0].length)for(var u=n[0].length;s>u;u++)r.push(u);this.hotInstance.batch((function(){o.length>0?t.hotInstance.rowIndexMapper.removeIndexes(o):t.hotInstance.rowIndexMapper.insertIndexes(i-1,n.length-i),a&&0!==n.length&&(r.length>0?t.hotInstance.columnIndexMapper.removeIndexes(r):t.hotInstance.columnIndexMapper.insertIndexes(s-1,n[0].length-s))}))}},getGlobalRendererVNode:function(){return C(this.$slots.default||[],"hot-renderer")},getGlobalEditorVNode:function(){return C(this.$slots.default||[],"hot-editor")},getColumnSettings:function(){var t=this.$children.filter((function(t){return"HotColumn"===t.$options.name})),e=!1,n=t.map((function(t){return t.usesRendererComponent&&(e=!0),a({},t.columnSettings)}));return e&&this.settings&&(!1!==this.settings.autoColumnSize||this.settings.autoRowSize)&&(!1!==this.autoColumnSize||this.autoRowSize)&&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."),n.length?n:void 0},getRendererWrapper:function(t,e){var n=this;return function(o,r,i,a,s,c,u){if(r&&!r.getAttribute("ghost-table")){var l=n.rendererCache,d={hotInstance:o,TD:r,row:i,col:a,prop:s,value:c,cellProperties:u,isRenderer:!0};if(l&&!l.has("".concat(i,"-").concat(a))){var f=w(t,e,t.componentOptions.propsData,d);l.set("".concat(i,"-").concat(a),{component:f,lastUsedTD:null})}var p=l.get("".concat(i,"-").concat(a)),h=p.component,y=p.lastUsedTD;if(Object.assign(h.$data,d),!h.$el.parentElement||y!==r){for(;r.firstChild;)r.removeChild(r.firstChild);r.appendChild(h.$el),p.lastUsedTD=r}}return r}},getEditorClass:function(t,e){var n=t.key?""+t.key:null,o=t.componentOptions.Ctor.options.name,r=n?"".concat(o,":").concat(n):o,i=this.editorCache,a=null;return i.has(r)?a=i.get(r):(a=w(t,e,t.componentOptions.propsData,{isEditor:!0}),i.set(r,a)),a.$data.hotCustomEditorClass}},mounted:function(){return this.columnSettings=this.getColumnSettings(),this.hotInit()},beforeDestroy:function(){this.hotInstance&&this.hotInstance.destroy()},version:"14.3.0-next-3fa6b18-20240410"},undefined,false,undefined,!1,void 0,void 0,void 0),$=k({},undefined,{name:"HotColumn",props:g("HotColumn"),methods:{createColumnSettings:function(){var t=this.$slots.default||[],e=C(t,"hot-renderer"),n=C(t,"hot-editor"),o=b(this.$props);e&&void 0===this.usesRendererComponent&&(this.usesRendererComponent=!0),this.columnSettings=a({},o),null!==e?this.columnSettings.renderer=this.$parent.getRendererWrapper(e,this):o.renderer&&(this.columnSettings.renderer=o.renderer),null!==n?this.columnSettings.editor=this.$parent.getEditorClass(n,this):o.editor&&(this.columnSettings.editor=o.editor)}},mounted:function(){this.createColumnSettings()},render:function(){return null}},undefined,undefined,undefined,!1,void 0,void 0,void 0);function j(t){return j="function"==typeof Symbol&&"symbol"===c(Symbol.iterator)?function(t){return c(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":c(t)},j(t)}function R(t){return function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);t.length>e;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function P(t,e,n){(n?Reflect.getOwnMetadataKeys(e,n):Reflect.getOwnMetadataKeys(e)).forEach((function(o){var r=n?Reflect.getOwnMetadata(o,e,n):Reflect.getOwnMetadata(o,e);n?Reflect.defineMetadata(o,r,t,n):Reflect.defineMetadata(o,r,t)}))}var A={__proto__:[]}instanceof Array;var x=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function B(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.name=e.name||t._componentTag||t.name;var o=t.prototype;Object.getOwnPropertyNames(o).forEach((function(t){if("constructor"!==t)if(-1<x.indexOf(t))e[t]=o[t];else{var n=Object.getOwnPropertyDescriptor(o,t);void 0!==n.value?"function"==typeof n.value?(e.methods||(e.methods={}))[t]=n.value:(e.mixins||(e.mixins=[])).push({data:function(){return function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}({},t,n.value)}}):(n.get||n.set)&&((e.computed||(e.computed={}))[t]={get:n.get,set:n.set})}})),(e.mixins||(e.mixins=[])).push({data:function(){return function(t,e){var n=e.prototype._init;e.prototype._init=function(){var e=this,n=Object.getOwnPropertyNames(t);if(t.$options.props)for(var o in t.$options.props)t.hasOwnProperty(o)||n.push(o);n.forEach((function(n){Object.defineProperty(e,n,{get:function(){return t[n]},set:function(e){t[n]=e},configurable:!0})}))};var o=new e;e.prototype._init=n;var r={};return Object.keys(o).forEach((function(t){void 0!==o[t]&&(r[t]=o[t])})),r}(this,t)}});var r=t.__decorators__;r&&(r.forEach((function(t){return t(e)})),delete t.__decorators__);var i,a,s=Object.getPrototypeOf(t.prototype),c=s instanceof n?s.constructor:n,u=c.extend(e);return function(t,e,n){Object.getOwnPropertyNames(e).forEach((function(o){if(!M[o]){var r=Object.getOwnPropertyDescriptor(t,o);if(!r||r.configurable){var i,a,s=Object.getOwnPropertyDescriptor(e,o);if(!A){if("cid"===o)return;var c=Object.getOwnPropertyDescriptor(n,o);if(a=j(i=s.value),null!=i&&("object"===a||"function"===a)&&c&&c.value===s.value)return}Object.defineProperty(t,o,s)}}}))}(u,t,c),"undefined"!=typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys&&(P(i=u,a=t),Object.getOwnPropertyNames(a.prototype).forEach((function(t){P(i.prototype,a.prototype,t)})),Object.getOwnPropertyNames(a).forEach((function(t){P(i,a,t)}))),u}var M={prototype:!0,arguments:!0,callee:!0,caller:!0};function H(t){return"function"==typeof t?B(t):function(e){return B(e,t)}}H.registerHooks=function(t){x.push.apply(x,R(t))};var D=function(t){function n(){var t;return u(this,n),(t=o(this,n,arguments)).name="BaseEditorComponent",t.instance=null,t.row=null,t.col=null,t.prop=null,t.TD=null,t.originalValue=null,t.cellProperties=null,t.state=null,t.hot=null,t}return p(n,t),d(n,[{key:"mounted",value:function(){var t,n=this;this.$data.hotCustomEditorClass=(t=function(t){function e(t){var r;return u(this,e),r=o(this,e,[t]),n.$data.hotCustomEditorInstance=r,r}return p(e,t),d(e,[{key:"focus",value:function(){}},{key:"getValue",value:function(){}},{key:"setValue",value:function(){}},{key:"open",value:function(){}},{key:"close",value:function(){}}])}(e.editors.BaseEditor),Object.getOwnPropertyNames(e.editors.BaseEditor.prototype).forEach((function(e){"constructor"!==e&&(t.prototype[e]=function(){for(var t,o=arguments.length,r=Array(o),i=0;o>i;i++)r[i]=arguments[i];return(t=n[e]).call.apply(t,[this].concat(r))})})),t)}},{key:"_fireCallbacks",value:function(){for(var t,n=arguments.length,o=Array(n),r=0;n>r;r++)o[r]=arguments[r];(t=e.editors.BaseEditor.prototype._fireCallbacks).call.apply(t,[this.$data.hotCustomEditorInstance].concat(o))}},{key:"beginEditing",value:function(){for(var t,n=arguments.length,o=Array(n),r=0;n>r;r++)o[r]=arguments[r];return(t=e.editors.BaseEditor.prototype.beginEditing).call.apply(t,[this.$data.hotCustomEditorInstance].concat(o))}},{key:"cancelChanges",value:function(){for(var t,n=arguments.length,o=Array(n),r=0;n>r;r++)o[r]=arguments[r];return(t=e.editors.BaseEditor.prototype.cancelChanges).call.apply(t,[this.$data.hotCustomEditorInstance].concat(o))}},{key:"checkEditorSection",value:function(){for(var t,n=arguments.length,o=Array(n),r=0;n>r;r++)o[r]=arguments[r];return(t=e.editors.BaseEditor.prototype.checkEditorSection).call.apply(t,[this.$data.hotCustomEditorInstance].concat(o))}},{key:"close",value:function(){for(var t,n=arguments.length,o=Array(n),r=0;n>r;r++)o[r]=arguments[r];return(t=e.editors.BaseEditor.prototype.close).call.apply(t,[this.$data.hotCustomEditorInstance].concat(o))}},{key:"discardEditor",value:function(){for(var t,n=arguments.length,o=Array(n),r=0;n>r;r++)o[r]=arguments[r];return(t=e.editors.BaseEditor.prototype.discardEditor).call.apply(t,[this.$data.hotCustomEditorInstance].concat(o))}},{key:"enableFullEditMode",value:function(){for(var t,n=arguments.length,o=Array(n),r=0;n>r;r++)o[r]=arguments[r];return(t=e.editors.BaseEditor.prototype.enableFullEditMode).call.apply(t,[this.$data.hotCustomEditorInstance].concat(o))}},{key:"extend",value:function(){for(var t,n=arguments.length,o=Array(n),r=0;n>r;r++)o[r]=arguments[r];return(t=e.editors.BaseEditor.prototype.extend).call.apply(t,[this.$data.hotCustomEditorInstance].concat(o))}},{key:"finishEditing",value:function(){for(var t,n=arguments.length,o=Array(n),r=0;n>r;r++)o[r]=arguments[r];return(t=e.editors.BaseEditor.prototype.finishEditing).call.apply(t,[this.$data.hotCustomEditorInstance].concat(o))}},{key:"focus",value:function(){for(var t,n=arguments.length,o=Array(n),r=0;n>r;r++)o[r]=arguments[r];return(t=e.editors.BaseEditor.prototype.focus).call.apply(t,[this.$data.hotCustomEditorInstance].concat(o))}},{key:"getValue",value:function(){for(var t,n=arguments.length,o=Array(n),r=0;n>r;r++)o[r]=arguments[r];return(t=e.editors.BaseEditor.prototype.getValue).call.apply(t,[this.$data.hotCustomEditorInstance].concat(o))}},{key:"init",value:function(){for(var t,n=arguments.length,o=Array(n),r=0;n>r;r++)o[r]=arguments[r];return(t=e.editors.BaseEditor.prototype.init).call.apply(t,[this.$data.hotCustomEditorInstance].concat(o))}},{key:"isInFullEditMode",value:function(){for(var t,n=arguments.length,o=Array(n),r=0;n>r;r++)o[r]=arguments[r];return(t=e.editors.BaseEditor.prototype.isInFullEditMode).call.apply(t,[this.$data.hotCustomEditorInstance].concat(o))}},{key:"isOpened",value:function(){for(var t,n=arguments.length,o=Array(n),r=0;n>r;r++)o[r]=arguments[r];return(t=e.editors.BaseEditor.prototype.isOpened).call.apply(t,[this.$data.hotCustomEditorInstance].concat(o))}},{key:"isWaiting",value:function(){for(var t,n=arguments.length,o=Array(n),r=0;n>r;r++)o[r]=arguments[r];return(t=e.editors.BaseEditor.prototype.isWaiting).call.apply(t,[this.$data.hotCustomEditorInstance].concat(o))}},{key:"open",value:function(){for(var t,n=arguments.length,o=Array(n),r=0;n>r;r++)o[r]=arguments[r];return(t=e.editors.BaseEditor.prototype.open).call.apply(t,[this.$data.hotCustomEditorInstance].concat(o))}},{key:"prepare",value:function(t,n,o,r,i,a){return this.$data.hotInstance=a.instance,this.$data.row=t,this.$data.col=n,this.$data.prop=o,this.$data.TD=r,this.$data.originalValue=i,this.$data.cellProperties=a,e.editors.BaseEditor.prototype.prepare.call(this.$data.hotCustomEditorInstance,t,n,o,r,i,a)}},{key:"saveValue",value:function(){for(var t,n=arguments.length,o=Array(n),r=0;n>r;r++)o[r]=arguments[r];return(t=e.editors.BaseEditor.prototype.saveValue).call.apply(t,[this.$data.hotCustomEditorInstance].concat(o))}},{key:"setValue",value:function(){for(var t,n=arguments.length,o=Array(n),r=0;n>r;r++)o[r]=arguments[r];return(t=e.editors.BaseEditor.prototype.setValue).call.apply(t,[this.$data.hotCustomEditorInstance].concat(o))}},{key:"addHook",value:function(){for(var t,n=arguments.length,o=Array(n),r=0;n>r;r++)o[r]=arguments[r];return(t=e.editors.BaseEditor.prototype.addHook).call.apply(t,[this.$data.hotCustomEditorInstance].concat(o))}},{key:"removeHooksByKey",value:function(){for(var t,n=arguments.length,o=Array(n),r=0;n>r;r++)o[r]=arguments[r];return(t=e.editors.BaseEditor.prototype.removeHooksByKey).call.apply(t,[this.$data.hotCustomEditorInstance].concat(o))}},{key:"clearHooks",value:function(){for(var t,n=arguments.length,o=Array(n),r=0;n>r;r++)o[r]=arguments[r];return(t=e.editors.BaseEditor.prototype.clearHooks).call.apply(t,[this.$data.hotCustomEditorInstance].concat(o))}},{key:"getEditedCell",value:function(){for(var t,n=arguments.length,o=Array(n),r=0;n>r;r++)o[r]=arguments[r];return(t=e.editors.BaseEditor.prototype.getEditedCell).call.apply(t,[this.$data.hotCustomEditorInstance].concat(o))}},{key:"getEditedCellRect",value:function(){for(var t,n=arguments.length,o=Array(n),r=0;n>r;r++)o[r]=arguments[r];return(t=e.editors.BaseEditor.prototype.getEditedCellRect).call.apply(t,[this.$data.hotCustomEditorInstance].concat(o))}},{key:"getEditedCellsZIndex",value:function(){for(var t,n=arguments.length,o=Array(n),r=0;n>r;r++)o[r]=arguments[r];return(t=e.editors.BaseEditor.prototype.getEditedCellsZIndex).call.apply(t,[this.$data.hotCustomEditorInstance].concat(o))}},{key:"getEditedCellsLayerClass",value:function(){for(var t,n=arguments.length,o=Array(n),r=0;n>r;r++)o[r]=arguments[r];return(t=e.editors.BaseEditor.prototype.getEditedCellsLayerClass).call.apply(t,[this.$data.hotCustomEditorInstance].concat(o))}}])}(n);D=
|
|
30
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("handsontable/base"),require("vue")):"function"==typeof define&&define.amd?define(["exports","handsontable/base","vue"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).Handsontable=t.Handsontable||{},t.Handsontable.vue={}),t.Handsontable,t.Vue)}(this,(function(t,e,n){"use strict";function o(t,e,n){return e=h(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,r()?Reflect.construct(e,n||[],h(t).constructor):e.apply(t,n))}function r(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(r=function(){return!!t})()}function i(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 a(t){for(var e=1;arguments.length>e;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){f(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(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||"default");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+""}function c(t){return c="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},c(t)}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n=0;e.length>n;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,s(o.key),o)}}function d(t,e,n){return e&&l(t.prototype,e),n&&l(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function f(t,e,n){return(e=s(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function p(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&y(t,e)}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function y(t,e){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},y(t,e)}var v=Symbol("unassigned"),m=null;function g(t){var n=e.hooks.getRegistered(),o={};for(var r in Object.assign(o,e.DefaultSettings),o)o[r]={default:v};for(var i=0;n.length>i;i++)o[n[i]]={default:v};return o.settings={default:v},"HotTable"===t&&(o.id={type:String,default:"hot-"+Math.random().toString(36).substring(5)},o.wrapperRendererCacheSize={type:Number,default:3e3}),o}function b(t){var e={},n=t.settings;if(n!==v)for(var o in n)n.hasOwnProperty(o)&&n[o]!==v&&(e[o]=n[o]);for(var r in t)t.hasOwnProperty(r)&&"settings"!==r&&t[r]!==v&&(e[r]=t[r]);return e}function E(t,e){var n=b(t),o=t.settings?t.settings:n,r=t.settings?n:null,i={};for(var a in o)!o.hasOwnProperty(a)||void 0===o[a]||e&&"data"!==a&&O(e[a],o[a])||(i[a]=o[a]);for(var s in r)!r.hasOwnProperty(s)||"id"===s||"settings"===s||"wrapperRendererCacheSize"===s||void 0===r[s]||e&&"data"!==s&&O(e[s],r[s])||(i[s]=r[s]);return i}function C(t,e){var n=null;return t.every((function(t,o){return!t.data||!t.data.attrs||void 0===t.data.attrs[e]||(n=t,!1)})),n}function w(t,e,n,o){var r=e.$el?e.$el.ownerDocument:document,i={propsData:n,parent:e,data:o};m||((m=r.createElement("DIV")).id="vueHotComponents",r.body.appendChild(m));var a=r.createElement("DIV");return m.appendChild(a),new t.componentOptions.Ctor(i).$mount(a)}function O(t,e){var n=function(t){var e,n=(e=new WeakSet,function(t,n){if("object"===c(n)&&null!==n){if(e.has(n))return;e.add(n)}return n});return JSON.stringify(t,n)};return"function"==typeof t&&"function"==typeof e?""+t==""+e:c(t)===c(e)&&n(t)===n(e)}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var I=function(t,e){return t(e={exports:{}},e.exports),e.exports}((function(t,e){!function(t){var e=Symbol("newer"),n=Symbol("older");function o(t,e){"number"!=typeof t&&(e=t,t=0),this.size=0,this.limit=t,this.oldest=this.newest=void 0,this._keymap=new Map,e&&(this.assign(e),1>t&&(this.limit=this.size))}function r(t,o){this.key=t,this.value=o,this[e]=void 0,this[n]=void 0}t.LRUMap=o,o.prototype._markEntryAsUsed=function(t){t!==this.newest&&(t[e]&&(t===this.oldest&&(this.oldest=t[e]),t[e][n]=t[n]),t[n]&&(t[n][e]=t[e]),t[e]=void 0,t[n]=this.newest,this.newest&&(this.newest[e]=t),this.newest=t)},o.prototype.assign=function(t){var o,i=this.limit||Number.MAX_VALUE;this._keymap.clear();for(var a=t[Symbol.iterator](),s=a.next();!s.done;s=a.next()){var c=new r(s.value[0],s.value[1]);if(this._keymap.set(c.key,c),o?(o[e]=c,c[n]=o):this.oldest=c,o=c,0==i--)throw Error("overflow")}this.newest=o,this.size=this._keymap.size},o.prototype.get=function(t){var e=this._keymap.get(t);if(e)return this._markEntryAsUsed(e),e.value},o.prototype.set=function(t,o){var i=this._keymap.get(t);return i?(i.value=o,this._markEntryAsUsed(i),this):(this._keymap.set(t,i=new r(t,o)),this.newest?(this.newest[e]=i,i[n]=this.newest):this.oldest=i,this.newest=i,++this.size,this.size>this.limit&&this.shift(),this)},o.prototype.shift=function(){var t=this.oldest;if(t)return this.oldest[e]?(this.oldest=this.oldest[e],this.oldest[n]=void 0):(this.oldest=void 0,this.newest=void 0),t[e]=t[n]=void 0,this._keymap.delete(t.key),--this.size,[t.key,t.value]},o.prototype.has=function(t){return this._keymap.has(t)}}(e)})),_=I.LRUMap;function k(t,e,n,o,r,i,a,s,c,u){"boolean"!=typeof a&&(c=s,s=a,a=!1);const l="function"==typeof n?n.options:n;let d;if(t&&t.render&&(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,r&&(l.functional=!0)),o&&(l._scopeId=o),i?(d=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,c(t)),t&&t._registeredComponents&&t._registeredComponents.add(i)},l._ssrRegister=d):e&&(d=a?function(t){e.call(this,u(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),d)if(l.functional){const t=l.render;l.render=function(e,n){return d.call(n),t(e,n)}}else{const t=l.beforeCreate;l.beforeCreate=t?[].concat(t,d):[d]}return n}var S=k({render:function(){var t=this;return(t._self._c||t.$createElement)("div",{attrs:{id:t.id}},[t._t("default")],2)},staticRenderFns:[]},undefined,{name:"HotTable",props:g("HotTable"),watch:{mergedHotSettings:function(t){this.hotInstance&&void 0!==t&&(t.data&&(this.hotInstance.isColumnModificationAllowed()||!this.hotInstance.isColumnModificationAllowed()&&this.hotInstance.countSourceCols()===this.miscCache.currentSourceColumns)&&(this.matchHotMappersSize(),delete t.data),Object.keys(t).length?this.hotInstance.updateSettings(t):this.hotInstance.render(),this.miscCache.currentSourceColumns=this.hotInstance.countSourceCols())}},data:function(){var t=this,e=new _(this.wrapperRendererCacheSize);return e.shift=function(){var t=_.prototype.shift.call(this);return t[1].component.$destroy(),t},{__internalEdit:!1,miscCache:{currentSourceColumns:null},__hotInstance:null,columnSettings:null,rendererCache:e,editorCache:new Map,get hotInstance(){return!t.__hotInstance||t.__hotInstance&&!t.__hotInstance.isDestroyed?t.__hotInstance:(console.warn("The Handsontable instance bound to this component was destroyed and cannot be used properly."),null)},set hotInstance(e){t.__hotInstance=e}}},computed:{mergedHotSettings:function(){return E(this.$props,this.hotInstance?this.hotInstance.getSettings():void 0)}},methods:{hotInit:function(){var t,n=this.getGlobalRendererVNode(),o=this.getGlobalEditorVNode(),r=E(this.$props);r.columns=this.columnSettings?this.columnSettings:r.columns,o&&(r.editor=this.getEditorClass(o,this),o.child.$destroy()),n&&(r.renderer=this.getRendererWrapper(n,this),n.child.$destroy()),this.hotInstance=new e.Core(this.$el,r),this.hotInstance.init(),(t=this).hotInstance&&(t.hotInstance.addHook("beforeChange",(function(){t.__internalEdit=!0})),t.hotInstance.addHook("beforeCreateRow",(function(){t.__internalEdit=!0})),t.hotInstance.addHook("beforeCreateCol",(function(){t.__internalEdit=!0})),t.hotInstance.addHook("beforeRemoveRow",(function(){t.__internalEdit=!0})),t.hotInstance.addHook("beforeRemoveCol",(function(){t.__internalEdit=!0}))),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(),a=this.hotInstance.isColumnModificationAllowed(),s=0;if(n&&n.length!==i&&i>n.length)for(var c=n.length;i>c;c++)o.push(c);if(a)if(s=this.hotInstance.columnIndexMapper.getNumberOfIndexes(),n&&n[0]&&(null===(e=n[0])||void 0===e?void 0:e.length)!==s&&s>n[0].length)for(var u=n[0].length;s>u;u++)r.push(u);this.hotInstance.batch((function(){o.length>0?t.hotInstance.rowIndexMapper.removeIndexes(o):t.hotInstance.rowIndexMapper.insertIndexes(i-1,n.length-i),a&&0!==n.length&&(r.length>0?t.hotInstance.columnIndexMapper.removeIndexes(r):t.hotInstance.columnIndexMapper.insertIndexes(s-1,n[0].length-s))}))}},getGlobalRendererVNode:function(){return C(this.$slots.default||[],"hot-renderer")},getGlobalEditorVNode:function(){return C(this.$slots.default||[],"hot-editor")},getColumnSettings:function(){var t=this.$children.filter((function(t){return"HotColumn"===t.$options.name})),e=!1,n=t.map((function(t){return t.usesRendererComponent&&(e=!0),a({},t.columnSettings)}));return e&&this.settings&&(!1!==this.settings.autoColumnSize||this.settings.autoRowSize)&&(!1!==this.autoColumnSize||this.autoRowSize)&&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."),n.length?n:void 0},getRendererWrapper:function(t,e){var n=this;return function(o,r,i,a,s,c,u){if(r&&!r.getAttribute("ghost-table")){var l=n.rendererCache,d={hotInstance:o,TD:r,row:i,col:a,prop:s,value:c,cellProperties:u,isRenderer:!0};if(l&&!l.has("".concat(i,"-").concat(a))){var f=w(t,e,t.componentOptions.propsData,d);l.set("".concat(i,"-").concat(a),{component:f,lastUsedTD:null})}var p=l.get("".concat(i,"-").concat(a)),h=p.component,y=p.lastUsedTD;if(Object.assign(h.$data,d),!h.$el.parentElement||y!==r){for(;r.firstChild;)r.removeChild(r.firstChild);r.appendChild(h.$el),p.lastUsedTD=r}}return r}},getEditorClass:function(t,e){var n=t.key?""+t.key:null,o=t.componentOptions.Ctor.options.name,r=n?"".concat(o,":").concat(n):o,i=this.editorCache,a=null;return i.has(r)?a=i.get(r):(a=w(t,e,t.componentOptions.propsData,{isEditor:!0}),i.set(r,a)),a.$data.hotCustomEditorClass}},mounted:function(){return this.columnSettings=this.getColumnSettings(),this.hotInit()},beforeDestroy:function(){this.hotInstance&&this.hotInstance.destroy()},version:"14.3.0-next-9e2cf62-20240410"},undefined,false,undefined,!1,void 0,void 0,void 0),$=k({},undefined,{name:"HotColumn",props:g("HotColumn"),methods:{createColumnSettings:function(){var t=this.$slots.default||[],e=C(t,"hot-renderer"),n=C(t,"hot-editor"),o=b(this.$props);e&&void 0===this.usesRendererComponent&&(this.usesRendererComponent=!0),this.columnSettings=a({},o),null!==e?this.columnSettings.renderer=this.$parent.getRendererWrapper(e,this):o.renderer&&(this.columnSettings.renderer=o.renderer),null!==n?this.columnSettings.editor=this.$parent.getEditorClass(n,this):o.editor&&(this.columnSettings.editor=o.editor)}},mounted:function(){this.createColumnSettings()},render:function(){return null}},undefined,undefined,undefined,!1,void 0,void 0,void 0);function j(t){return j="function"==typeof Symbol&&"symbol"===c(Symbol.iterator)?function(t){return c(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":c(t)},j(t)}function R(t){return function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);t.length>e;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function P(t,e,n){(n?Reflect.getOwnMetadataKeys(e,n):Reflect.getOwnMetadataKeys(e)).forEach((function(o){var r=n?Reflect.getOwnMetadata(o,e,n):Reflect.getOwnMetadata(o,e);n?Reflect.defineMetadata(o,r,t,n):Reflect.defineMetadata(o,r,t)}))}var A={__proto__:[]}instanceof Array;var x=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function B(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.name=e.name||t._componentTag||t.name;var o=t.prototype;Object.getOwnPropertyNames(o).forEach((function(t){if("constructor"!==t)if(-1<x.indexOf(t))e[t]=o[t];else{var n=Object.getOwnPropertyDescriptor(o,t);void 0!==n.value?"function"==typeof n.value?(e.methods||(e.methods={}))[t]=n.value:(e.mixins||(e.mixins=[])).push({data:function(){return function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}({},t,n.value)}}):(n.get||n.set)&&((e.computed||(e.computed={}))[t]={get:n.get,set:n.set})}})),(e.mixins||(e.mixins=[])).push({data:function(){return function(t,e){var n=e.prototype._init;e.prototype._init=function(){var e=this,n=Object.getOwnPropertyNames(t);if(t.$options.props)for(var o in t.$options.props)t.hasOwnProperty(o)||n.push(o);n.forEach((function(n){Object.defineProperty(e,n,{get:function(){return t[n]},set:function(e){t[n]=e},configurable:!0})}))};var o=new e;e.prototype._init=n;var r={};return Object.keys(o).forEach((function(t){void 0!==o[t]&&(r[t]=o[t])})),r}(this,t)}});var r=t.__decorators__;r&&(r.forEach((function(t){return t(e)})),delete t.__decorators__);var i,a,s=Object.getPrototypeOf(t.prototype),c=s instanceof n?s.constructor:n,u=c.extend(e);return function(t,e,n){Object.getOwnPropertyNames(e).forEach((function(o){if(!M[o]){var r=Object.getOwnPropertyDescriptor(t,o);if(!r||r.configurable){var i,a,s=Object.getOwnPropertyDescriptor(e,o);if(!A){if("cid"===o)return;var c=Object.getOwnPropertyDescriptor(n,o);if(a=j(i=s.value),null!=i&&("object"===a||"function"===a)&&c&&c.value===s.value)return}Object.defineProperty(t,o,s)}}}))}(u,t,c),"undefined"!=typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys&&(P(i=u,a=t),Object.getOwnPropertyNames(a.prototype).forEach((function(t){P(i.prototype,a.prototype,t)})),Object.getOwnPropertyNames(a).forEach((function(t){P(i,a,t)}))),u}var M={prototype:!0,arguments:!0,callee:!0,caller:!0};function H(t){return"function"==typeof t?B(t):function(e){return B(e,t)}}H.registerHooks=function(t){x.push.apply(x,R(t))};var D=function(t){function n(){var t;return u(this,n),(t=o(this,n,arguments)).name="BaseEditorComponent",t.instance=null,t.row=null,t.col=null,t.prop=null,t.TD=null,t.originalValue=null,t.cellProperties=null,t.state=null,t.hot=null,t}return p(n,t),d(n,[{key:"mounted",value:function(){var t,n=this;this.$data.hotCustomEditorClass=(t=function(t){function e(t){var r;return u(this,e),r=o(this,e,[t]),n.$data.hotCustomEditorInstance=r,r}return p(e,t),d(e,[{key:"focus",value:function(){}},{key:"getValue",value:function(){}},{key:"setValue",value:function(){}},{key:"open",value:function(){}},{key:"close",value:function(){}}])}(e.editors.BaseEditor),Object.getOwnPropertyNames(e.editors.BaseEditor.prototype).forEach((function(e){"constructor"!==e&&(t.prototype[e]=function(){for(var t,o=arguments.length,r=Array(o),i=0;o>i;i++)r[i]=arguments[i];return(t=n[e]).call.apply(t,[this].concat(r))})})),t)}},{key:"_fireCallbacks",value:function(){for(var t,n=arguments.length,o=Array(n),r=0;n>r;r++)o[r]=arguments[r];(t=e.editors.BaseEditor.prototype._fireCallbacks).call.apply(t,[this.$data.hotCustomEditorInstance].concat(o))}},{key:"beginEditing",value:function(){for(var t,n=arguments.length,o=Array(n),r=0;n>r;r++)o[r]=arguments[r];return(t=e.editors.BaseEditor.prototype.beginEditing).call.apply(t,[this.$data.hotCustomEditorInstance].concat(o))}},{key:"cancelChanges",value:function(){for(var t,n=arguments.length,o=Array(n),r=0;n>r;r++)o[r]=arguments[r];return(t=e.editors.BaseEditor.prototype.cancelChanges).call.apply(t,[this.$data.hotCustomEditorInstance].concat(o))}},{key:"checkEditorSection",value:function(){for(var t,n=arguments.length,o=Array(n),r=0;n>r;r++)o[r]=arguments[r];return(t=e.editors.BaseEditor.prototype.checkEditorSection).call.apply(t,[this.$data.hotCustomEditorInstance].concat(o))}},{key:"close",value:function(){for(var t,n=arguments.length,o=Array(n),r=0;n>r;r++)o[r]=arguments[r];return(t=e.editors.BaseEditor.prototype.close).call.apply(t,[this.$data.hotCustomEditorInstance].concat(o))}},{key:"discardEditor",value:function(){for(var t,n=arguments.length,o=Array(n),r=0;n>r;r++)o[r]=arguments[r];return(t=e.editors.BaseEditor.prototype.discardEditor).call.apply(t,[this.$data.hotCustomEditorInstance].concat(o))}},{key:"enableFullEditMode",value:function(){for(var t,n=arguments.length,o=Array(n),r=0;n>r;r++)o[r]=arguments[r];return(t=e.editors.BaseEditor.prototype.enableFullEditMode).call.apply(t,[this.$data.hotCustomEditorInstance].concat(o))}},{key:"extend",value:function(){for(var t,n=arguments.length,o=Array(n),r=0;n>r;r++)o[r]=arguments[r];return(t=e.editors.BaseEditor.prototype.extend).call.apply(t,[this.$data.hotCustomEditorInstance].concat(o))}},{key:"finishEditing",value:function(){for(var t,n=arguments.length,o=Array(n),r=0;n>r;r++)o[r]=arguments[r];return(t=e.editors.BaseEditor.prototype.finishEditing).call.apply(t,[this.$data.hotCustomEditorInstance].concat(o))}},{key:"focus",value:function(){for(var t,n=arguments.length,o=Array(n),r=0;n>r;r++)o[r]=arguments[r];return(t=e.editors.BaseEditor.prototype.focus).call.apply(t,[this.$data.hotCustomEditorInstance].concat(o))}},{key:"getValue",value:function(){for(var t,n=arguments.length,o=Array(n),r=0;n>r;r++)o[r]=arguments[r];return(t=e.editors.BaseEditor.prototype.getValue).call.apply(t,[this.$data.hotCustomEditorInstance].concat(o))}},{key:"init",value:function(){for(var t,n=arguments.length,o=Array(n),r=0;n>r;r++)o[r]=arguments[r];return(t=e.editors.BaseEditor.prototype.init).call.apply(t,[this.$data.hotCustomEditorInstance].concat(o))}},{key:"isInFullEditMode",value:function(){for(var t,n=arguments.length,o=Array(n),r=0;n>r;r++)o[r]=arguments[r];return(t=e.editors.BaseEditor.prototype.isInFullEditMode).call.apply(t,[this.$data.hotCustomEditorInstance].concat(o))}},{key:"isOpened",value:function(){for(var t,n=arguments.length,o=Array(n),r=0;n>r;r++)o[r]=arguments[r];return(t=e.editors.BaseEditor.prototype.isOpened).call.apply(t,[this.$data.hotCustomEditorInstance].concat(o))}},{key:"isWaiting",value:function(){for(var t,n=arguments.length,o=Array(n),r=0;n>r;r++)o[r]=arguments[r];return(t=e.editors.BaseEditor.prototype.isWaiting).call.apply(t,[this.$data.hotCustomEditorInstance].concat(o))}},{key:"open",value:function(){for(var t,n=arguments.length,o=Array(n),r=0;n>r;r++)o[r]=arguments[r];return(t=e.editors.BaseEditor.prototype.open).call.apply(t,[this.$data.hotCustomEditorInstance].concat(o))}},{key:"prepare",value:function(t,n,o,r,i,a){return this.$data.hotInstance=a.instance,this.$data.row=t,this.$data.col=n,this.$data.prop=o,this.$data.TD=r,this.$data.originalValue=i,this.$data.cellProperties=a,e.editors.BaseEditor.prototype.prepare.call(this.$data.hotCustomEditorInstance,t,n,o,r,i,a)}},{key:"saveValue",value:function(){for(var t,n=arguments.length,o=Array(n),r=0;n>r;r++)o[r]=arguments[r];return(t=e.editors.BaseEditor.prototype.saveValue).call.apply(t,[this.$data.hotCustomEditorInstance].concat(o))}},{key:"setValue",value:function(){for(var t,n=arguments.length,o=Array(n),r=0;n>r;r++)o[r]=arguments[r];return(t=e.editors.BaseEditor.prototype.setValue).call.apply(t,[this.$data.hotCustomEditorInstance].concat(o))}},{key:"addHook",value:function(){for(var t,n=arguments.length,o=Array(n),r=0;n>r;r++)o[r]=arguments[r];return(t=e.editors.BaseEditor.prototype.addHook).call.apply(t,[this.$data.hotCustomEditorInstance].concat(o))}},{key:"removeHooksByKey",value:function(){for(var t,n=arguments.length,o=Array(n),r=0;n>r;r++)o[r]=arguments[r];return(t=e.editors.BaseEditor.prototype.removeHooksByKey).call.apply(t,[this.$data.hotCustomEditorInstance].concat(o))}},{key:"clearHooks",value:function(){for(var t,n=arguments.length,o=Array(n),r=0;n>r;r++)o[r]=arguments[r];return(t=e.editors.BaseEditor.prototype.clearHooks).call.apply(t,[this.$data.hotCustomEditorInstance].concat(o))}},{key:"getEditedCell",value:function(){for(var t,n=arguments.length,o=Array(n),r=0;n>r;r++)o[r]=arguments[r];return(t=e.editors.BaseEditor.prototype.getEditedCell).call.apply(t,[this.$data.hotCustomEditorInstance].concat(o))}},{key:"getEditedCellRect",value:function(){for(var t,n=arguments.length,o=Array(n),r=0;n>r;r++)o[r]=arguments[r];return(t=e.editors.BaseEditor.prototype.getEditedCellRect).call.apply(t,[this.$data.hotCustomEditorInstance].concat(o))}},{key:"getEditedCellsZIndex",value:function(){for(var t,n=arguments.length,o=Array(n),r=0;n>r;r++)o[r]=arguments[r];return(t=e.editors.BaseEditor.prototype.getEditedCellsZIndex).call.apply(t,[this.$data.hotCustomEditorInstance].concat(o))}},{key:"getEditedCellsLayerClass",value:function(){for(var t,n=arguments.length,o=Array(n),r=0;n>r;r++)o[r]=arguments[r];return(t=e.editors.BaseEditor.prototype.getEditedCellsLayerClass).call.apply(t,[this.$data.hotCustomEditorInstance].concat(o))}}])}(n);D=
|
|
31
31
|
/*! *****************************************************************************
|
|
32
32
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
33
33
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
package/es/vue-handsontable.mjs
CHANGED
|
@@ -332,7 +332,7 @@ function simpleEqual(objectA, objectB) {
|
|
|
332
332
|
}
|
|
333
333
|
}
|
|
334
334
|
|
|
335
|
-
var version="14.3.0-next-
|
|
335
|
+
var version="14.3.0-next-9e2cf62-20240410";
|
|
336
336
|
|
|
337
337
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
338
338
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@handsontable/vue",
|
|
3
|
-
"version": "14.3.0-next-
|
|
3
|
+
"version": "14.3.0-next-9e2cf62-20240410",
|
|
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": "14.3.0-next-
|
|
56
|
+
"handsontable": "14.3.0-next-9e2cf62-20240410",
|
|
57
57
|
"vue": "^2.5.0"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"babel-core": "^7.0.0-bridge.0",
|
|
69
69
|
"cross-env": "^7.0.3",
|
|
70
70
|
"css-loader": "^6.10.0",
|
|
71
|
-
"handsontable": "14.3.0-next-
|
|
71
|
+
"handsontable": "14.3.0-next-9e2cf62-20240410",
|
|
72
72
|
"jest": "^26.6.3",
|
|
73
73
|
"rimraf": "^3.0.2",
|
|
74
74
|
"rollup": "^2.0.0",
|