@handsontable/vue 14.0.0 → 14.1.0-next-514dcd3-20240109

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.
@@ -10,6 +10,17 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
10
10
  var Handsontable__default = /*#__PURE__*/_interopDefaultLegacy(Handsontable);
11
11
  var Vue__default = /*#__PURE__*/_interopDefaultLegacy(Vue);
12
12
 
13
+ function _callSuper(t, o, e) {
14
+ return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
15
+ }
16
+ function _isNativeReflectConstruct() {
17
+ try {
18
+ var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
19
+ } catch (t) {}
20
+ return (_isNativeReflectConstruct = function () {
21
+ return !!t;
22
+ })();
23
+ }
13
24
  function ownKeys(e, r) {
14
25
  var t = Object.keys(e);
15
26
  if (Object.getOwnPropertySymbols) {
@@ -31,6 +42,20 @@ function _objectSpread2(e) {
31
42
  }
32
43
  return e;
33
44
  }
45
+ function _toPrimitive(t, r) {
46
+ if ("object" != typeof t || !t) return t;
47
+ var e = t[Symbol.toPrimitive];
48
+ if (void 0 !== e) {
49
+ var i = e.call(t, r || "default");
50
+ if ("object" != typeof i) return i;
51
+ throw new TypeError("@@toPrimitive must return a primitive value.");
52
+ }
53
+ return ("string" === r ? String : Number)(t);
54
+ }
55
+ function _toPropertyKey(t) {
56
+ var i = _toPrimitive(t, "string");
57
+ return "symbol" == typeof i ? i : String(i);
58
+ }
34
59
  function _typeof$1(o) {
35
60
  "@babel/helpers - typeof";
36
61
 
@@ -105,17 +130,6 @@ function _setPrototypeOf(o, p) {
105
130
  };
106
131
  return _setPrototypeOf(o, p);
107
132
  }
108
- function _isNativeReflectConstruct() {
109
- if (typeof Reflect === "undefined" || !Reflect.construct) return false;
110
- if (Reflect.construct.sham) return false;
111
- if (typeof Proxy === "function") return true;
112
- try {
113
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
114
- return true;
115
- } catch (e) {
116
- return false;
117
- }
118
- }
119
133
  function _assertThisInitialized(self) {
120
134
  if (self === void 0) {
121
135
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
@@ -130,34 +144,6 @@ function _possibleConstructorReturn(self, call) {
130
144
  }
131
145
  return _assertThisInitialized(self);
132
146
  }
133
- function _createSuper(Derived) {
134
- var hasNativeReflectConstruct = _isNativeReflectConstruct();
135
- return function _createSuperInternal() {
136
- var Super = _getPrototypeOf(Derived),
137
- result;
138
- if (hasNativeReflectConstruct) {
139
- var NewTarget = _getPrototypeOf(this).constructor;
140
- result = Reflect.construct(Super, arguments, NewTarget);
141
- } else {
142
- result = Super.apply(this, arguments);
143
- }
144
- return _possibleConstructorReturn(this, result);
145
- };
146
- }
147
- function _toPrimitive(input, hint) {
148
- if (typeof input !== "object" || input === null) return input;
149
- var prim = input[Symbol.toPrimitive];
150
- if (prim !== undefined) {
151
- var res = prim.call(input, hint || "default");
152
- if (typeof res !== "object") return res;
153
- throw new TypeError("@@toPrimitive must return a primitive value.");
154
- }
155
- return (hint === "string" ? String : Number)(input);
156
- }
157
- function _toPropertyKey(arg) {
158
- var key = _toPrimitive(arg, "string");
159
- return typeof key === "symbol" ? key : String(key);
160
- }
161
147
 
162
148
  var unassignedPropSymbol = Symbol('unassigned');
163
149
  var bulkComponentContainer = null;
@@ -333,10 +319,20 @@ function createVueComponent(vNode, parent, props, data) {
333
319
  * @returns {boolean} `true` if they're the same, `false` otherwise.
334
320
  */
335
321
  function simpleEqual(objectA, objectB) {
336
- return JSON.stringify(objectA) === JSON.stringify(objectB);
322
+ var circularReplacer = function () {
323
+ var seen = new WeakSet();
324
+ return function (key, value) {
325
+ if (_typeof$1(value) === 'object' && value !== null) {
326
+ if (seen.has(value)) return;
327
+ seen.add(value);
328
+ }
329
+ return value;
330
+ };
331
+ }();
332
+ return JSON.stringify(objectA, circularReplacer) === JSON.stringify(objectB, circularReplacer);
337
333
  }
338
334
 
339
- var version="14.0.0";
335
+ var version="14.1.0-next-514dcd3-20240109";
340
336
 
341
337
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
342
338
 
@@ -408,17 +404,14 @@ var lru = createCommonjsModule(function (module, exports) {
408
404
  }
409
405
  entry[NEWER][OLDER] = entry[OLDER]; // C <-- E.
410
406
  }
411
-
412
407
  if (entry[OLDER]) {
413
408
  entry[OLDER][NEWER] = entry[NEWER]; // C. --> E
414
409
  }
415
-
416
410
  entry[NEWER] = undefined; // D --x
417
411
  entry[OLDER] = this.newest; // D. --> E
418
412
  if (this.newest) {
419
413
  this.newest[NEWER] = entry; // E. <-- D
420
414
  }
421
-
422
415
  this.newest = entry;
423
416
  };
424
417
  LRUMap.prototype.assign = function (entries) {
@@ -1054,7 +1047,6 @@ function collectDataFromConstructor(vm, Component) {
1054
1047
  }
1055
1048
  var $internalHooks = ['data', 'beforeCreate', 'created', 'beforeMount', 'mounted', 'beforeDestroy', 'destroyed', 'beforeUpdate', 'updated', 'activated', 'deactivated', 'render', 'errorCaptured', 'serverPrefetch' // 2.6
1056
1049
  ];
1057
-
1058
1050
  function componentFactory(Component) {
1059
1051
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1060
1052
  options.name = options.name || Component._componentTag || Component.name; // prototype props.
@@ -1168,11 +1160,10 @@ Component.registerHooks = function registerHooks(keys) {
1168
1160
 
1169
1161
  var BaseEditorComponent = /*#__PURE__*/function (_Vue) {
1170
1162
  _inherits(BaseEditorComponent, _Vue);
1171
- var _super = _createSuper(BaseEditorComponent);
1172
1163
  function BaseEditorComponent() {
1173
1164
  var _this2;
1174
1165
  _classCallCheck(this, BaseEditorComponent);
1175
- _this2 = _super.apply(this, arguments);
1166
+ _this2 = _callSuper(this, BaseEditorComponent, arguments);
1176
1167
  _this2.name = 'BaseEditorComponent';
1177
1168
  _this2.instance = null;
1178
1169
  _this2.row = null;
@@ -1192,11 +1183,10 @@ var BaseEditorComponent = /*#__PURE__*/function (_Vue) {
1192
1183
  this.$data.hotCustomEditorClass = function () {
1193
1184
  var customEditorClass = /*#__PURE__*/function (_Handsontable$editors) {
1194
1185
  _inherits(CustomEditor, _Handsontable$editors);
1195
- var _super2 = _createSuper(CustomEditor);
1196
1186
  function CustomEditor(hotInstance) {
1197
1187
  var _this3;
1198
1188
  _classCallCheck(this, CustomEditor);
1199
- _this3 = _super2.call(this, hotInstance);
1189
+ _this3 = _callSuper(this, CustomEditor, [hotInstance]);
1200
1190
  _this.$data.hotCustomEditorInstance = _assertThisInitialized(_this3);
1201
1191
  return _this3;
1202
1192
  }
@@ -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.0.0 (built at Thu Nov 30 2023 10:13:04 GMT+0100 (Central European Standard Time))
28
+ * Version: 14.1.0-next-514dcd3-20240109 (built at Tue Jan 09 2024 11:44:56 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')) :
@@ -38,6 +38,17 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
38
38
  var Handsontable__default = /*#__PURE__*/_interopDefaultLegacy(Handsontable);
39
39
  var Vue__default = /*#__PURE__*/_interopDefaultLegacy(Vue);
40
40
 
41
+ function _callSuper(t, o, e) {
42
+ return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
43
+ }
44
+ function _isNativeReflectConstruct() {
45
+ try {
46
+ var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
47
+ } catch (t) {}
48
+ return (_isNativeReflectConstruct = function () {
49
+ return !!t;
50
+ })();
51
+ }
41
52
  function ownKeys(e, r) {
42
53
  var t = Object.keys(e);
43
54
  if (Object.getOwnPropertySymbols) {
@@ -59,6 +70,20 @@ function _objectSpread2(e) {
59
70
  }
60
71
  return e;
61
72
  }
73
+ function _toPrimitive(t, r) {
74
+ if ("object" != typeof t || !t) return t;
75
+ var e = t[Symbol.toPrimitive];
76
+ if (void 0 !== e) {
77
+ var i = e.call(t, r || "default");
78
+ if ("object" != typeof i) return i;
79
+ throw new TypeError("@@toPrimitive must return a primitive value.");
80
+ }
81
+ return ("string" === r ? String : Number)(t);
82
+ }
83
+ function _toPropertyKey(t) {
84
+ var i = _toPrimitive(t, "string");
85
+ return "symbol" == typeof i ? i : String(i);
86
+ }
62
87
  function _typeof$1(o) {
63
88
  "@babel/helpers - typeof";
64
89
 
@@ -133,17 +158,6 @@ function _setPrototypeOf(o, p) {
133
158
  };
134
159
  return _setPrototypeOf(o, p);
135
160
  }
136
- function _isNativeReflectConstruct() {
137
- if (typeof Reflect === "undefined" || !Reflect.construct) return false;
138
- if (Reflect.construct.sham) return false;
139
- if (typeof Proxy === "function") return true;
140
- try {
141
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
142
- return true;
143
- } catch (e) {
144
- return false;
145
- }
146
- }
147
161
  function _assertThisInitialized(self) {
148
162
  if (self === void 0) {
149
163
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
@@ -158,34 +172,6 @@ function _possibleConstructorReturn(self, call) {
158
172
  }
159
173
  return _assertThisInitialized(self);
160
174
  }
161
- function _createSuper(Derived) {
162
- var hasNativeReflectConstruct = _isNativeReflectConstruct();
163
- return function _createSuperInternal() {
164
- var Super = _getPrototypeOf(Derived),
165
- result;
166
- if (hasNativeReflectConstruct) {
167
- var NewTarget = _getPrototypeOf(this).constructor;
168
- result = Reflect.construct(Super, arguments, NewTarget);
169
- } else {
170
- result = Super.apply(this, arguments);
171
- }
172
- return _possibleConstructorReturn(this, result);
173
- };
174
- }
175
- function _toPrimitive(input, hint) {
176
- if (typeof input !== "object" || input === null) return input;
177
- var prim = input[Symbol.toPrimitive];
178
- if (prim !== undefined) {
179
- var res = prim.call(input, hint || "default");
180
- if (typeof res !== "object") return res;
181
- throw new TypeError("@@toPrimitive must return a primitive value.");
182
- }
183
- return (hint === "string" ? String : Number)(input);
184
- }
185
- function _toPropertyKey(arg) {
186
- var key = _toPrimitive(arg, "string");
187
- return typeof key === "symbol" ? key : String(key);
188
- }
189
175
 
190
176
  var unassignedPropSymbol = Symbol('unassigned');
191
177
  var bulkComponentContainer = null;
@@ -361,10 +347,20 @@ function createVueComponent(vNode, parent, props, data) {
361
347
  * @returns {boolean} `true` if they're the same, `false` otherwise.
362
348
  */
363
349
  function simpleEqual(objectA, objectB) {
364
- return JSON.stringify(objectA) === JSON.stringify(objectB);
350
+ var circularReplacer = function () {
351
+ var seen = new WeakSet();
352
+ return function (key, value) {
353
+ if (_typeof$1(value) === 'object' && value !== null) {
354
+ if (seen.has(value)) return;
355
+ seen.add(value);
356
+ }
357
+ return value;
358
+ };
359
+ }();
360
+ return JSON.stringify(objectA, circularReplacer) === JSON.stringify(objectB, circularReplacer);
365
361
  }
366
362
 
367
- var version="14.0.0";
363
+ var version="14.1.0-next-514dcd3-20240109";
368
364
 
369
365
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
370
366
 
@@ -436,17 +432,14 @@ var lru = createCommonjsModule(function (module, exports) {
436
432
  }
437
433
  entry[NEWER][OLDER] = entry[OLDER]; // C <-- E.
438
434
  }
439
-
440
435
  if (entry[OLDER]) {
441
436
  entry[OLDER][NEWER] = entry[NEWER]; // C. --> E
442
437
  }
443
-
444
438
  entry[NEWER] = undefined; // D --x
445
439
  entry[OLDER] = this.newest; // D. --> E
446
440
  if (this.newest) {
447
441
  this.newest[NEWER] = entry; // E. <-- D
448
442
  }
449
-
450
443
  this.newest = entry;
451
444
  };
452
445
  LRUMap.prototype.assign = function (entries) {
@@ -1082,7 +1075,6 @@ function collectDataFromConstructor(vm, Component) {
1082
1075
  }
1083
1076
  var $internalHooks = ['data', 'beforeCreate', 'created', 'beforeMount', 'mounted', 'beforeDestroy', 'destroyed', 'beforeUpdate', 'updated', 'activated', 'deactivated', 'render', 'errorCaptured', 'serverPrefetch' // 2.6
1084
1077
  ];
1085
-
1086
1078
  function componentFactory(Component) {
1087
1079
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1088
1080
  options.name = options.name || Component._componentTag || Component.name; // prototype props.
@@ -1196,11 +1188,10 @@ Component.registerHooks = function registerHooks(keys) {
1196
1188
 
1197
1189
  var BaseEditorComponent = /*#__PURE__*/function (_Vue) {
1198
1190
  _inherits(BaseEditorComponent, _Vue);
1199
- var _super = _createSuper(BaseEditorComponent);
1200
1191
  function BaseEditorComponent() {
1201
1192
  var _this2;
1202
1193
  _classCallCheck(this, BaseEditorComponent);
1203
- _this2 = _super.apply(this, arguments);
1194
+ _this2 = _callSuper(this, BaseEditorComponent, arguments);
1204
1195
  _this2.name = 'BaseEditorComponent';
1205
1196
  _this2.instance = null;
1206
1197
  _this2.row = null;
@@ -1220,11 +1211,10 @@ var BaseEditorComponent = /*#__PURE__*/function (_Vue) {
1220
1211
  this.$data.hotCustomEditorClass = function () {
1221
1212
  var customEditorClass = /*#__PURE__*/function (_Handsontable$editors) {
1222
1213
  _inherits(CustomEditor, _Handsontable$editors);
1223
- var _super2 = _createSuper(CustomEditor);
1224
1214
  function CustomEditor(hotInstance) {
1225
1215
  var _this3;
1226
1216
  _classCallCheck(this, CustomEditor);
1227
- _this3 = _super2.call(this, hotInstance);
1217
+ _this3 = _callSuper(this, CustomEditor, [hotInstance]);
1228
1218
  _this.$data.hotCustomEditorInstance = _assertThisInitialized(_this3);
1229
1219
  return _this3;
1230
1220
  }