Socket
Socket
Sign inDemoInstall

@handsontable/vue3

Package Overview
Dependencies
34
Maintainers
5
Versions
536
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 14.2.0 to 14.3.0-next-13fe676-20240409

47

commonjs/vue-handsontable.js

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

function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var Handsontable__default = /*#__PURE__*/_interopDefaultLegacy(Handsontable);
function ownKeys(e, r) {

@@ -46,3 +42,3 @@ var t = Object.keys(e);

var i = _toPrimitive(t, "string");
return "symbol" == typeof i ? i : String(i);
return "symbol" == typeof i ? i : i + "";
}

@@ -95,5 +91,5 @@ function _typeof(o) {

function propFactory(source) {
var registeredHooks = Handsontable__default["default"].hooks.getRegistered();
var registeredHooks = Handsontable.hooks.getRegistered();
var propSchema = {};
Object.assign(propSchema, Handsontable__default["default"].DefaultSettings);
Object.assign(propSchema, Handsontable.DefaultSettings);
// eslint-disable-next-line no-restricted-syntax, guard-for-in

@@ -182,16 +178,25 @@ for (var prop in propSchema) {

function simpleEqual(objectA, objectB) {
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(objectA, circularReplacer) === JSON.stringify(objectB, circularReplacer);
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="14.2.0";
var version="14.3.0-next-13fe676-20240409";

@@ -265,3 +270,3 @@ var HotTable = vue.defineComponent({

newSettings.columns = this.columnSettings ? this.columnSettings : newSettings.columns;
this.hotInstance = vue.markRaw(new Handsontable__default["default"].Core(this.$el, newSettings));
this.hotInstance = vue.markRaw(new Handsontable.Core(this.$el, newSettings));
this.hotInstance.init();

@@ -382,2 +387,2 @@ this.miscCache.currentSourceColumns = this.hotInstance.countSourceCols();

exports.HotTable = HotTable;
exports["default"] = HotTable;
exports.default = HotTable;

@@ -28,3 +28,3 @@ /*!

*
* Version: 14.2.0 (built at Wed Mar 06 2024 09:52:16 GMT+0100 (Central European Standard Time))
* Version: 14.3.0-next-13fe676-20240409 (built at Tue Apr 09 2024 11:35:45 GMT+0000 (Coordinated Universal Time))
*/

@@ -37,6 +37,2 @@ (function (global, factory) {

function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var Handsontable__default = /*#__PURE__*/_interopDefaultLegacy(Handsontable);
function ownKeys(e, r) {

@@ -75,3 +71,3 @@ var t = Object.keys(e);

var i = _toPrimitive(t, "string");
return "symbol" == typeof i ? i : String(i);
return "symbol" == typeof i ? i : i + "";
}

@@ -124,5 +120,5 @@ function _typeof(o) {

function propFactory(source) {
var registeredHooks = Handsontable__default["default"].hooks.getRegistered();
var registeredHooks = Handsontable.hooks.getRegistered();
var propSchema = {};
Object.assign(propSchema, Handsontable__default["default"].DefaultSettings);
Object.assign(propSchema, Handsontable.DefaultSettings);
// eslint-disable-next-line no-restricted-syntax, guard-for-in

@@ -211,16 +207,25 @@ for (var prop in propSchema) {

function simpleEqual(objectA, objectB) {
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(objectA, circularReplacer) === JSON.stringify(objectB, circularReplacer);
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="14.2.0";
var version="14.3.0-next-13fe676-20240409";

@@ -294,3 +299,3 @@ var HotTable = vue.defineComponent({

newSettings.columns = this.columnSettings ? this.columnSettings : newSettings.columns;
this.hotInstance = vue.markRaw(new Handsontable__default["default"].Core(this.$el, newSettings));
this.hotInstance = vue.markRaw(new Handsontable.Core(this.$el, newSettings));
this.hotInstance.init();

@@ -411,3 +416,3 @@ this.miscCache.currentSourceColumns = this.hotInstance.countSourceCols();

exports.HotTable = HotTable;
exports["default"] = HotTable;
exports.default = HotTable;

@@ -414,0 +419,0 @@ Object.defineProperty(exports, '__esModule', { value: true });

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

*
* Version: 14.2.0 (built at Wed Mar 06 2024 09:52:21 GMT+0100 (Central European Standard Time))
* Version: 14.3.0-next-13fe676-20240409 (built at Tue Apr 09 2024 11:35:50 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 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&&m(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&&m(e[a],r[a])||(i[a]=r[a]);return i}function m(t,e){var n,o=(n=new WeakSet,function(t,e){if("object"===a(e)&&null!==e){if(n.has(e))return;n.add(e)}return e});return JSON.stringify(t,o)===JSON.stringify(e,o)}var p=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:"14.2.0"}),b=["id"];p.render=function(t,n,o,r,i,s){return e.openBlock(),e.createElementBlock("div",{id:t.id},[e.renderSlot(t.$slots,"default")],8,b)},p.__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=p,t.default=p,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,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 r(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 i(t){return i="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},i(t)}function s(t,e,n){return(e=r(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var a=Symbol("unassigned");function c(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function u(t){var e=n.hooks.getRegistered(),o={};for(var r in Object.assign(o,n.DefaultSettings),o)o[r]={default:a};for(var i=0;e.length>i;i++)o[e[i]]={default:a};return o.settings={default:a},"HotTable"===t&&(o.id={type:String,default:"hot-".concat(Math.random().toString(36).substring(5))}),o}function l(t){var e={},n=t.settings;if(n!==a)for(var o in n)c(n,o)&&n[o]!==a&&(e[o]=n[o]);for(var r in t)c(t,r)&&"settings"!==r&&t[r]!==a&&(e[r]=t[r]);return e}function h(t,e){var n=l(t),o=t.settings?t.settings:n,r=t.settings?n:null,i={};for(var s in o)!c(o,s)||void 0===o[s]||e&&"data"!==s&&f(e[s],o[s])||(i[s]=o[s]);for(var a in r)!c(r,a)||"id"===a||"settings"===a||void 0===r[a]||e&&"data"!==a&&f(e[a],r[a])||(i[a]=r[a]);return i}function f(t,e){var n=function(t){var e,n=(e=new WeakSet,function(t,n){if("object"===i(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:i(t)===i(e)&&n(t)===n(e)}var d=e.defineComponent({name:"HotTable",props:u("HotTable"),provide:function(){return{columnsCache:this.columnsCache}},watch:{$props:{handler:function(t){var e=h(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=h(this.$props);t.columns=this.columnSettings?this.columnSettings:t.columns,this.hotInstance=e.markRaw(new n.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:"14.3.0-next-13fe676-20240409"}),p=["id"];d.render=function(t,n,o,r,i,s){return e.openBlock(),e.createElementBlock("div",{id:t.id},[e.renderSlot(t.$slots,"default")],8,p)},d.__file="src/HotTable.vue";var m=e.defineComponent({name:"HotColumn",props:u("HotColumn"),inject:["columnsCache"],methods:{createColumnSettings:function(){var t=l(this.$props),e=function(t){for(var e=1;arguments.length>e;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(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=d,t.default=d,Object.defineProperty(t,"__esModule",{value:!0})}));
//# sourceMappingURL=vue-handsontable.min.js.map
{
"name": "@handsontable/vue3",
"version": "14.2.0",
"version": "14.3.0-next-13fe676-20240409",
"description": "Best Data Grid for Vue with Spreadsheet Look and Feel.",

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

"peerDependencies": {
"handsontable": ">=14.0.0",
"handsontable": "14.3.0-next-13fe676-20240409",
"vue": "^3.2.22"

@@ -76,3 +76,3 @@ },

"eslint-plugin-vue": "^8.0.3",
"handsontable": "^14.0.0",
"handsontable": "14.3.0-next-13fe676-20240409",
"jest": "^26.6.3",

@@ -88,3 +88,3 @@ "rimraf": "^3.0.2",

"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "^0.21.1",
"rollup-plugin-typescript2": "^0.36.0",
"rollup-plugin-vue": "^6.0.0",

@@ -100,6 +100,6 @@ "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: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/",

@@ -106,0 +106,0 @@ "watch:commonjs": "cross-env NODE_ENV=cjs rollup -c --watch",

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