Socket
Socket
Sign inDemoInstall

@handsontable/vue3

Package Overview
Dependencies
34
Maintainers
5
Versions
553
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.0-next-0a86f7c-20221207 to 0.0.0-next-0bd37c1-20240513

10

commonjs/HotColumn.vue.d.ts

@@ -1,11 +0,3 @@

declare const HotColumn: import("vue").DefineComponent<import("./types").VueProps<import("./types").HotTableProps>, unknown, unknown, {}, {
/**
* Create the column settings based on the data provided to the `hot-column`
* component and it's child components.
*/
createColumnSettings(): void;
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<import("./types").VueProps<import("./types").HotTableProps>>>, {
[x: string]: any;
}>;
declare const HotColumn: any;
export default HotColumn;
export { HotColumn };

@@ -1,30 +0,3 @@

import { VNode } from 'vue';
import Handsontable from 'handsontable/base';
import { HotTableProps } from './types';
declare const HotTable: import("vue").DefineComponent<import("./types").VueProps<HotTableProps>, unknown, {
__hotInstance: Handsontable;
miscCache: {
currentSourceColumns: any;
};
columnSettings: HotTableProps[];
columnsCache: Map<VNode<import("vue").RendererNode, import("vue").RendererElement, {
[key: string]: any;
}>, HotTableProps>;
hotInstance: Handsontable;
}, {}, {
/**
* Initialize Handsontable.
*/
hotInit(): void;
matchHotMappersSize(): void;
/**
* Get settings for the columns provided in the `hot-column` components.
*
* @returns {HotTableProps[] | undefined}
*/
getColumnSettings(): HotTableProps[] | void;
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<import("./types").VueProps<HotTableProps>>>, {
[x: string]: any;
}>;
declare const HotTable: any;
export default HotTable;
export { HotTable };

123

commonjs/vue-handsontable.js

@@ -8,6 +8,65 @@ 'use strict';

function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
var Handsontable__default = /*#__PURE__*/_interopDefaultLegacy(Handsontable);
var Handsontable__default = /*#__PURE__*/_interopDefaultCompat(Handsontable);
function ownKeys(e, r) {
var t = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var o = Object.getOwnPropertySymbols(e);
r && (o = o.filter(function (r) {
return Object.getOwnPropertyDescriptor(e, r).enumerable;
})), t.push.apply(t, o);
}
return t;
}
function _objectSpread2(e) {
for (var r = 1; r < arguments.length; r++) {
var t = null != arguments[r] ? arguments[r] : {};
r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
_defineProperty(e, r, t[r]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
});
}
return e;
}
function _toPrimitive(t, r) {
if ("object" != typeof t || !t) return t;
var e = t[Symbol.toPrimitive];
if (void 0 !== e) {
var i = e.call(t, r || "default");
if ("object" != typeof i) return i;
throw new TypeError("@@toPrimitive must return a primitive value.");
}
return ("string" === r ? String : Number)(t);
}
function _toPropertyKey(t) {
var i = _toPrimitive(t, "string");
return "symbol" == typeof i ? i : i + "";
}
function _typeof(o) {
"@babel/helpers - typeof";
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
return typeof o;
} : function (o) {
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
}, _typeof(o);
}
function _defineProperty(obj, key, value) {
key = _toPropertyKey(key);
if (key in obj) {
Object.defineProperty(obj, key, {
value: value,
enumerable: true,
configurable: true,
writable: true
});
} else {
obj[key] = value;
}
return obj;
}
var unassignedPropSymbol = Symbol('unassigned');

@@ -121,7 +180,28 @@ /**

function simpleEqual(objectA, objectB) {
return JSON.stringify(objectA) === JSON.stringify(objectB);
var stringifyToJSON = function stringifyToJSON(val) {
var circularReplacer = function () {
var seen = new WeakSet();
return function (key, value) {
if (_typeof(value) === 'object' && value !== null) {
if (seen.has(value)) return;
seen.add(value);
}
return value;
};
}();
return JSON.stringify(val, circularReplacer);
};
if (typeof objectA === 'function' && typeof objectB === 'function') {
return objectA.toString() === objectB.toString();
} else if (_typeof(objectA) !== _typeof(objectB)) {
return false;
} else {
return stringifyToJSON(objectA) === stringifyToJSON(objectB);
}
}
var version="0.0.0-next-0a86f7c-20221207";
var version="0.0.0-next-0bd37c1-20240513";
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
var HotTable = vue.defineComponent({

@@ -274,37 +354,2 @@ name: 'HotTable',

function ownKeys(object, enumerableOnly) {
var keys = Object.keys(object);
if (Object.getOwnPropertySymbols) {
var symbols = Object.getOwnPropertySymbols(object);
enumerableOnly && (symbols = symbols.filter(function (sym) {
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
})), keys.push.apply(keys, symbols);
}
return keys;
}
function _objectSpread2(target) {
for (var i = 1; i < arguments.length; i++) {
var source = null != arguments[i] ? arguments[i] : {};
i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
_defineProperty(target, key, source[key]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
});
}
return target;
}
function _defineProperty(obj, key, value) {
if (key in obj) {
Object.defineProperty(obj, key, {
value: value,
enumerable: true,
configurable: true,
writable: true
});
} else {
obj[key] = value;
}
return obj;
}
var HotColumn = vue.defineComponent({

@@ -311,0 +356,0 @@ name: 'HotColumn',

@@ -1,11 +0,3 @@

declare const HotColumn: import("vue").DefineComponent<import("./types").VueProps<import("./types").HotTableProps>, unknown, unknown, {}, {
/**
* Create the column settings based on the data provided to the `hot-column`
* component and it's child components.
*/
createColumnSettings(): void;
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<import("./types").VueProps<import("./types").HotTableProps>>>, {
[x: string]: any;
}>;
declare const HotColumn: any;
export default HotColumn;
export { HotColumn };

@@ -1,30 +0,3 @@

import { VNode } from 'vue';
import Handsontable from 'handsontable/base';
import { HotTableProps } from './types';
declare const HotTable: import("vue").DefineComponent<import("./types").VueProps<HotTableProps>, unknown, {
__hotInstance: Handsontable;
miscCache: {
currentSourceColumns: any;
};
columnSettings: HotTableProps[];
columnsCache: Map<VNode<import("vue").RendererNode, import("vue").RendererElement, {
[key: string]: any;
}>, HotTableProps>;
hotInstance: Handsontable;
}, {}, {
/**
* Initialize Handsontable.
*/
hotInit(): void;
matchHotMappersSize(): void;
/**
* Get settings for the columns provided in the `hot-column` components.
*
* @returns {HotTableProps[] | undefined}
*/
getColumnSettings(): HotTableProps[] | void;
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<import("./types").VueProps<HotTableProps>>>, {
[x: string]: any;
}>;
declare const HotTable: any;
export default HotTable;
export { HotTable };

@@ -5,7 +5,7 @@ /*!

* HANDSONTABLE is a software distributed by HANDSONCODE sp. z o. o., a Polish corporation based in
* Gdynia, Poland, at Aleja Zwycięstwa 96-98, registered by the District Court in Gdansk under number
* Gdynia, Poland, at Aleja Zwyciestwa 96-98, registered by the District Court in Gdansk under number
* 538651, EU tax ID number: PL5862294002, share capital: PLN 62,800.00.
*
* This software is protected by applicable copyright laws, including international treaties, and dual-
* licensed – depending on whether your use for commercial purposes, meaning intended for or
* licensed - depending on whether your use for commercial purposes, meaning intended for or
* resulting in commercial advantage or monetary compensation, or not.

@@ -29,3 +29,3 @@ *

*
* Version: 0.0.0-next-0a86f7c-20221207 (built at Wed Dec 07 2022 09:31:19 GMT+0000 (Coordinated Universal Time))
* Version: 0.0.0-next-0bd37c1-20240513 (built at Mon May 13 2024 07:20:47 GMT+0000 (Coordinated Universal Time))
*/

@@ -38,6 +38,65 @@ (function (global, factory) {

function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
var Handsontable__default = /*#__PURE__*/_interopDefaultLegacy(Handsontable);
var Handsontable__default = /*#__PURE__*/_interopDefaultCompat(Handsontable);
function ownKeys(e, r) {
var t = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var o = Object.getOwnPropertySymbols(e);
r && (o = o.filter(function (r) {
return Object.getOwnPropertyDescriptor(e, r).enumerable;
})), t.push.apply(t, o);
}
return t;
}
function _objectSpread2(e) {
for (var r = 1; r < arguments.length; r++) {
var t = null != arguments[r] ? arguments[r] : {};
r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
_defineProperty(e, r, t[r]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
});
}
return e;
}
function _toPrimitive(t, r) {
if ("object" != typeof t || !t) return t;
var e = t[Symbol.toPrimitive];
if (void 0 !== e) {
var i = e.call(t, r || "default");
if ("object" != typeof i) return i;
throw new TypeError("@@toPrimitive must return a primitive value.");
}
return ("string" === r ? String : Number)(t);
}
function _toPropertyKey(t) {
var i = _toPrimitive(t, "string");
return "symbol" == typeof i ? i : i + "";
}
function _typeof(o) {
"@babel/helpers - typeof";
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
return typeof o;
} : function (o) {
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
}, _typeof(o);
}
function _defineProperty(obj, key, value) {
key = _toPropertyKey(key);
if (key in obj) {
Object.defineProperty(obj, key, {
value: value,
enumerable: true,
configurable: true,
writable: true
});
} else {
obj[key] = value;
}
return obj;
}
var unassignedPropSymbol = Symbol('unassigned');

@@ -151,7 +210,28 @@ /**

function simpleEqual(objectA, objectB) {
return JSON.stringify(objectA) === JSON.stringify(objectB);
var stringifyToJSON = function stringifyToJSON(val) {
var circularReplacer = function () {
var seen = new WeakSet();
return function (key, value) {
if (_typeof(value) === 'object' && value !== null) {
if (seen.has(value)) return;
seen.add(value);
}
return value;
};
}();
return JSON.stringify(val, circularReplacer);
};
if (typeof objectA === 'function' && typeof objectB === 'function') {
return objectA.toString() === objectB.toString();
} else if (_typeof(objectA) !== _typeof(objectB)) {
return false;
} else {
return stringifyToJSON(objectA) === stringifyToJSON(objectB);
}
}
var version="0.0.0-next-0a86f7c-20221207";
var version="0.0.0-next-0bd37c1-20240513";
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
var HotTable = vue.defineComponent({

@@ -304,37 +384,2 @@ name: 'HotTable',

function ownKeys(object, enumerableOnly) {
var keys = Object.keys(object);
if (Object.getOwnPropertySymbols) {
var symbols = Object.getOwnPropertySymbols(object);
enumerableOnly && (symbols = symbols.filter(function (sym) {
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
})), keys.push.apply(keys, symbols);
}
return keys;
}
function _objectSpread2(target) {
for (var i = 1; i < arguments.length; i++) {
var source = null != arguments[i] ? arguments[i] : {};
i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
_defineProperty(target, key, source[key]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
});
}
return target;
}
function _defineProperty(obj, key, value) {
if (key in obj) {
Object.defineProperty(obj, key, {
value: value,
enumerable: true,
configurable: true,
writable: true
});
} else {
obj[key] = value;
}
return obj;
}
var HotColumn = vue.defineComponent({

@@ -341,0 +386,0 @@ name: 'HotColumn',

@@ -5,7 +5,7 @@ /*!

* HANDSONTABLE is a software distributed by HANDSONCODE sp. z o. o., a Polish corporation based in
* Gdynia, Poland, at Aleja Zwycięstwa 96-98, registered by the District Court in Gdansk under number
* Gdynia, Poland, at Aleja Zwyciestwa 96-98, registered by the District Court in Gdansk under number
* 538651, EU tax ID number: PL5862294002, share capital: PLN 62,800.00.
*
* This software is protected by applicable copyright laws, including international treaties, and dual-
* licensed – depending on whether your use for commercial purposes, meaning intended for or
* licensed - depending on whether your use for commercial purposes, meaning intended for or
* resulting in commercial advantage or monetary compensation, or not.

@@ -29,5 +29,5 @@ *

*
* Version: 0.0.0-next-0a86f7c-20221207 (built at Wed Dec 07 2022 09:31:25 GMT+0000 (Coordinated Universal Time))
* Version: 0.0.0-next-0bd37c1-20240513 (built at Mon May 13 2024 07:20:51 GMT+0000 (Coordinated Universal Time))
*/
!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 s=o(n),r=Symbol("unassigned");function i(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function a(t){var e=s.default.hooks.getRegistered(),n={};for(var o in Object.assign(n,s.default.DefaultSettings),n)n[o]={default:r};for(var i=0;e.length>i;i++)n[e[i]]={default:r};return n.settings={default:r},"HotTable"===t&&(n.id={type:String,default:"hot-".concat(Math.random().toString(36).substring(5))}),n}function c(t){var e={},n=t.settings;if(n!==r)for(var o in n)i(n,o)&&n[o]!==r&&(e[o]=n[o]);for(var s in t)i(t,s)&&"settings"!==s&&t[s]!==r&&(e[s]=t[s]);return e}function u(t,e){var n=c(t),o=t.settings?t.settings:n,s=t.settings?n:null,r={};for(var a in o)!i(o,a)||void 0===o[a]||e&&"data"!==a&&l(e[a],o[a])||(r[a]=o[a]);for(var u in s)!i(s,u)||"id"===u||"settings"===u||void 0===s[u]||e&&"data"!==u&&l(e[u],s[u])||(r[u]=s[u]);return r}function l(t,e){return JSON.stringify(t)===JSON.stringify(e)}var h=e.defineComponent({name:"HotTable",props:a("HotTable"),provide:function(){return{columnsCache:this.columnsCache}},watch:{$props:{handler:function(t){var e=u(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,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=u(this.$props);t.columns=this.columnSettings?this.columnSettings:t.columns,this.hotInstance=e.markRaw(new s.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=[],s=[],r=this.hotInstance.rowIndexMapper.getNumberOfIndexes(),i=this.hotInstance.isColumnModificationAllowed(),a=0;if(n&&n.length!==r&&r>n.length)for(var c=n.length;r>c;c++)o.push(c);if(i)if(a=this.hotInstance.columnIndexMapper.getNumberOfIndexes(),n&&n[0]&&(null===(e=n[0])||void 0===e?void 0:e.length)!==a&&a>n[0].length)for(var u=n[0].length;a>u;u++)s.push(u);this.hotInstance.batch((function(){o.length>0?t.hotInstance.rowIndexMapper.removeIndexes(o):t.hotInstance.rowIndexMapper.insertIndexes(r-1,n.length-r),i&&0!==n.length&&(s.length>0?t.hotInstance.columnIndexMapper.removeIndexes(s):t.hotInstance.columnIndexMapper.insertIndexes(a-1,n[0].length-a))}))}},getColumnSettings:function(){var t=Array.from(this.columnsCache.values());return t.length?t:void 0}},mounted:function(){this.columnSettings=this.getColumnSettings(),this.hotInit()},beforeUnmount:function(){this.hotInstance&&this.hotInstance.destroy()},version:"0.0.0-next-0a86f7c-20221207"}),d=["id"];function f(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 p(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}h.render=function(t,n,o,s,r,i){return e.openBlock(),e.createElementBlock("div",{id:t.id},[e.renderSlot(t.$slots,"default")],8,d)},h.__file="src/HotTable.vue";var m=e.defineComponent({name:"HotColumn",props:a("HotColumn"),inject:["columnsCache"],methods:{createColumnSettings:function(){var t=c(this.$props),e=function(t){for(var e=1;arguments.length>e;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){p(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(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)}},mounted:function(){this.createColumnSettings()},unmounted:function(){this.columnsCache.delete(this)},render:function(){return null}});m.__file="src/HotColumn.vue",t.HotColumn=m,t.HotTable=h,t.default=h,Object.defineProperty(t,"__esModule",{value:!0})}));
!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){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 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 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)}function c(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}var u=Symbol("unassigned");function l(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function h(t){var e=r.default.hooks.getRegistered(),n={};for(var o in Object.assign(n,r.default.DefaultSettings),n)n[o]={default:u};for(var i=0;e.length>i;i++)n[e[i]]={default:u};return n.settings={default:u},"HotTable"===t&&(n.id={type:String,default:"hot-".concat(Math.random().toString(36).substring(5))}),n}function f(t){var e={},n=t.settings;if(n!==u)for(var o in n)l(n,o)&&n[o]!==u&&(e[o]=n[o]);for(var r in t)l(t,r)&&"settings"!==r&&t[r]!==u&&(e[r]=t[r]);return e}function d(t,e){var n=f(t),o=t.settings?t.settings:n,r=t.settings?n:null,i={};for(var s in o)!l(o,s)||void 0===o[s]||e&&"data"!==s&&p(e[s],o[s])||(i[s]=o[s]);for(var a in r)!l(r,a)||"id"===a||"settings"===a||void 0===r[a]||e&&"data"!==a&&p(e[a],r[a])||(i[a]=r[a]);return i}function p(t,e){var n=function(t){var e,n=(e=new WeakSet,function(t,n){if("object"===a(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:a(t)===a(e)&&n(t)===n(e)}var m=e.defineComponent({name:"HotTable",props:h("HotTable"),provide:function(){return{columnsCache:this.columnsCache}},watch:{$props:{handler:function(t){var e=d(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,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=d(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(),a=0;if(n&&n.length!==i&&i>n.length)for(var c=n.length;i>c;c++)o.push(c);if(s)if(a=this.hotInstance.columnIndexMapper.getNumberOfIndexes(),n&&n[0]&&(null===(e=n[0])||void 0===e?void 0:e.length)!==a&&a>n[0].length)for(var u=n[0].length;a>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),s&&0!==n.length&&(r.length>0?t.hotInstance.columnIndexMapper.removeIndexes(r):t.hotInstance.columnIndexMapper.insertIndexes(a-1,n[0].length-a))}))}},getColumnSettings:function(){var t=Array.from(this.columnsCache.values());return t.length?t:void 0}},mounted:function(){this.columnSettings=this.getColumnSettings(),this.hotInit()},beforeUnmount:function(){this.hotInstance&&this.hotInstance.destroy()},version:"0.0.0-next-0bd37c1-20240513"}),b=["id"];m.render=function(t,n,o,r,i,s){return e.openBlock(),e.createElementBlock("div",{id:t.id},[e.renderSlot(t.$slots,"default")],8,b)},m.__file="src/HotTable.vue";var g=e.defineComponent({name:"HotColumn",props:h("HotColumn"),inject:["columnsCache"],methods:{createColumnSettings:function(){var t=f(this.$props),e=function(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){c(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}({},t);t.renderer&&(e.renderer=t.renderer),t.editor&&(e.editor=t.editor),this.columnsCache.set(this,e)}},mounted:function(){this.createColumnSettings()},unmounted:function(){this.columnsCache.delete(this)},render:function(){return null}});g.__file="src/HotColumn.vue",t.HotColumn=g,t.HotTable=m,t.default=m,Object.defineProperty(t,"__esModule",{value:!0})}));
//# sourceMappingURL=vue-handsontable.min.js.map

@@ -1,11 +0,3 @@

declare const HotColumn: import("vue").DefineComponent<import("./types").VueProps<import("./types").HotTableProps>, unknown, unknown, {}, {
/**
* Create the column settings based on the data provided to the `hot-column`
* component and it's child components.
*/
createColumnSettings(): void;
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<import("./types").VueProps<import("./types").HotTableProps>>>, {
[x: string]: any;
}>;
declare const HotColumn: any;
export default HotColumn;
export { HotColumn };

@@ -1,30 +0,3 @@

import { VNode } from 'vue';
import Handsontable from 'handsontable/base';
import { HotTableProps } from './types';
declare const HotTable: import("vue").DefineComponent<import("./types").VueProps<HotTableProps>, unknown, {
__hotInstance: Handsontable;
miscCache: {
currentSourceColumns: any;
};
columnSettings: HotTableProps[];
columnsCache: Map<VNode<import("vue").RendererNode, import("vue").RendererElement, {
[key: string]: any;
}>, HotTableProps>;
hotInstance: Handsontable;
}, {}, {
/**
* Initialize Handsontable.
*/
hotInit(): void;
matchHotMappersSize(): void;
/**
* Get settings for the columns provided in the `hot-column` components.
*
* @returns {HotTableProps[] | undefined}
*/
getColumnSettings(): HotTableProps[] | void;
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<import("./types").VueProps<HotTableProps>>>, {
[x: string]: any;
}>;
declare const HotTable: any;
export default HotTable;
export { HotTable };
Copyright (c) HANDSONCODE sp. z o. o.
HANDSONTABLE is a software distributed by HANDSONCODE sp. z o. o., a Polish corporation based in
Gdynia, Poland, at Aleja Zwycięstwa 96-98, registered by the District Court in Gdansk under number
Gdynia, Poland, at Aleja Zwyciestwa 96-98, registered by the District Court in Gdansk under number
538651, EU tax ID number: PL5862294002, share capital: PLN 62,800.00.
This software is protected by applicable copyright laws, including international treaties, and dual-
licensed – depending on whether your use for commercial purposes, meaning intended for or
licensed - depending on whether your use for commercial purposes, meaning intended for or
resulting in commercial advantage or monetary compensation, or not.

@@ -10,0 +10,0 @@

{
"name": "@handsontable/vue3",
"version": "0.0.0-next-0a86f7c-20221207",
"version": "0.0.0-next-0bd37c1-20240513",
"description": "Best Data Grid for Vue with Spreadsheet Look and Feel.",

@@ -9,3 +9,3 @@ "author": "Handsoncode <hello@handsoncode.net> (https://handsoncode.net)",

"main": "./commonjs/vue-handsontable.js",
"module": "./es/vue-handsontable.js",
"module": "./es/vue-handsontable.mjs",
"jsdelivr": "./dist/vue-handsontable.min.js",

@@ -18,2 +18,3 @@ "unpkg": "./dist/vue-handsontable.min.js",

".": {
"types": "./index.d.ts",
"import": "./es/vue-handsontable.mjs",

@@ -57,4 +58,4 @@ "require": "./commonjs/vue-handsontable.js"

"peerDependencies": {
"handsontable": "0.0.0-next-0a86f7c-20221207",
"vue": "next"
"handsontable": "0.0.0-next-0bd37c1-20240513",
"vue": "^3.2.22"
},

@@ -69,2 +70,8 @@ "devDependencies": {

"@babel/runtime": "^7.11.0",
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-replace": "^5.0.5",
"@rollup/plugin-babel": "^6.0.4",
"@typescript-eslint/eslint-plugin": "^5.4.0",

@@ -76,16 +83,9 @@ "@typescript-eslint/parser": "^5.4.0",

"babel-core": "^7.0.0-bridge.0",
"cross-env": "^7.0.0",
"del-cli": "^4.0.1",
"cross-env": "^7.0.3",
"eslint-plugin-vue": "^8.0.3",
"handsontable": "0.0.0-next-0a86f7c-20221207",
"handsontable": "0.0.0-next-0bd37c1-20240513",
"jest": "^26.6.3",
"rollup": "^2.0.0",
"rollup-plugin-babel": "^4.3.2",
"rollup-plugin-cleanup": "^3.1.1",
"rollup-plugin-commonjs": "^10.0.0",
"rollup-plugin-json": "^4.0.0",
"rollup-plugin-node-resolve": "^5.0.2",
"rollup-plugin-replace": "^2.2.0",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "^0.21.1",
"rimraf": "^3.0.2",
"rollup": "^4.16.1",
"rollup-plugin-typescript2": "^0.36.0",
"rollup-plugin-vue": "^6.0.0",

@@ -101,11 +101,11 @@ "ts-jest": "^26.5.6",

"build": "npm run clean && npm run build:commonjs && npm run build:es && npm run build:umd && npm run build:min",
"build:commonjs": "cross-env NODE_ENV=cjs rollup -c",
"build:umd": "cross-env NODE_ENV=umd rollup -c",
"build:es": "cross-env NODE_ENV=es rollup -c",
"build:min": "cross-env NODE_ENV=min rollup -c",
"build:esDts": "cross-env NODE_ENV=esDts rollup -c && del-cli ./buildTemp/",
"build:commonjs": "cross-env NODE_ENV=cjs rollup -c --bundleConfigAsCjs",
"build:umd": "cross-env NODE_ENV=umd rollup -c --bundleConfigAsCjs",
"build:es": "cross-env NODE_ENV=es rollup -c --bundleConfigAsCjs",
"build:min": "cross-env NODE_ENV=min rollup -c --bundleConfigAsCjs",
"build:esDts": "cross-env NODE_ENV=esDts rollup -c && rimraf ./buildTemp/",
"watch:commonjs": "cross-env NODE_ENV=cjs rollup -c --watch",
"watch:es": "cross-env NODE_ENV=es rollup -c --watch",
"watch:umd": "cross-env NODE_ENV=umd rollup -c --watch",
"clean": "del-cli ./es/ && del-cli ./commonjs/ && del-cli ./dist/ && del-cli ./*.d.ts",
"clean": "rimraf ./es/ && rimraf ./commonjs/ && rimraf ./dist/ && rimraf ./*.d.ts",
"publish-package": "npm publish",

@@ -112,0 +112,0 @@ "test": "jest"

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc