handsontable 0.0.0-next-d3b83d5-20240514 → 0.0.0-next-f0b9f34-20240515

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.

Potentially problematic release.


This version of handsontable might be problematic. Click here for more details.

package/base.js CHANGED
@@ -45,8 +45,8 @@ Handsontable.hooks = _pluginHooks.default.getSingleton();
45
45
  Handsontable.CellCoords = _src.CellCoords;
46
46
  Handsontable.CellRange = _src.CellRange;
47
47
  Handsontable.packageName = 'handsontable';
48
- Handsontable.buildDate = "14/05/2024 11:02:03";
49
- Handsontable.version = "0.0.0-next-d3b83d5-20240514";
48
+ Handsontable.buildDate = "15/05/2024 10:19:00";
49
+ Handsontable.version = "0.0.0-next-f0b9f34-20240515";
50
50
  Handsontable.languages = {
51
51
  dictionaryKeys: _registry.dictionaryKeys,
52
52
  getLanguageDictionary: _registry.getLanguageDictionary,
package/base.mjs CHANGED
@@ -35,8 +35,8 @@ Handsontable.hooks = Hooks.getSingleton();
35
35
  Handsontable.CellCoords = CellCoords;
36
36
  Handsontable.CellRange = CellRange;
37
37
  Handsontable.packageName = 'handsontable';
38
- Handsontable.buildDate = "14/05/2024 11:02:09";
39
- Handsontable.version = "0.0.0-next-d3b83d5-20240514";
38
+ Handsontable.buildDate = "15/05/2024 10:19:06";
39
+ Handsontable.version = "0.0.0-next-f0b9f34-20240515";
40
40
  Handsontable.languages = {
41
41
  dictionaryKeys,
42
42
  getLanguageDictionary,
package/core.d.ts CHANGED
@@ -25,8 +25,8 @@ type AlterActions = 'insert_row_above' | 'insert_row_below' |
25
25
  'remove_row' | 'remove_col';
26
26
 
27
27
  export default class Core {
28
- addHook<K extends keyof Events>(key: K, callback: Events[K] | Array<Events[K]>): void;
29
- addHookOnce<K extends keyof Events>(key: K, callback: Events[K] | Array<Events[K]>): void;
28
+ addHook<K extends keyof Events>(key: K, callback: Events[K] | Array<Events[K]>, orderIndex?: number): void;
29
+ addHookOnce<K extends keyof Events>(key: K, callback: Events[K] | Array<Events[K]>, orderIndex?: number): void;
30
30
  alter(action: AlterActions, index?: number | Array<[number, number]>, amount?: number, source?: string, keepEmptyRows?: boolean): void;
31
31
  batch<R>(wrappedOperations: () => R): R;
32
32
  batchExecution<R>(wrappedOperations: () => R, forceFlushChanges: boolean): R;
package/core.js CHANGED
@@ -4289,13 +4289,17 @@ function Core(rootElement, userSettings) {
4289
4289
  * @see Hooks#add
4290
4290
  * @param {string} key Hook name (see {@link Hooks}).
4291
4291
  * @param {Function|Array} callback Function or array of functions.
4292
+ * @param {number} [orderIndex] Order index of the callback.
4293
+ * If > 0, the callback will be added after the others, for example, with an index of 1, the callback will be added before the ones with an index of 2, 3, etc., but after the ones with an index of 0 and lower.
4294
+ * If < 0, the callback will be added before the others, for example, with an index of -1, the callback will be added after the ones with an index of -2, -3, etc., but before the ones with an index of 0 and higher.
4295
+ * If 0 or no order index is provided, the callback will be added between the "negative" and "positive" indexes.
4292
4296
  * @example
4293
4297
  * ```js
4294
4298
  * hot.addHook('beforeInit', myCallback);
4295
4299
  * ```
4296
4300
  */
4297
- this.addHook = function (key, callback) {
4298
- _pluginHooks.default.getSingleton().add(key, callback, instance);
4301
+ this.addHook = function (key, callback, orderIndex) {
4302
+ _pluginHooks.default.getSingleton().add(key, callback, instance, orderIndex);
4299
4303
  };
4300
4304
 
4301
4305
  /**
@@ -4326,13 +4330,17 @@ function Core(rootElement, userSettings) {
4326
4330
  * @see Hooks#once
4327
4331
  * @param {string} key Hook name (see {@link Hooks}).
4328
4332
  * @param {Function|Array} callback Function or array of functions.
4333
+ * @param {number} [orderIndex] Order index of the callback.
4334
+ * If > 0, the callback will be added after the others, for example, with an index of 1, the callback will be added before the ones with an index of 2, 3, etc., but after the ones with an index of 0 and lower.
4335
+ * If < 0, the callback will be added before the others, for example, with an index of -1, the callback will be added after the ones with an index of -2, -3, etc., but before the ones with an index of 0 and higher.
4336
+ * If 0 or no order index is provided, the callback will be added between the "negative" and "positive" indexes.
4329
4337
  * @example
4330
4338
  * ```js
4331
4339
  * hot.addHookOnce('beforeInit', myCallback);
4332
4340
  * ```
4333
4341
  */
4334
- this.addHookOnce = function (key, callback) {
4335
- _pluginHooks.default.getSingleton().once(key, callback, instance);
4342
+ this.addHookOnce = function (key, callback, orderIndex) {
4343
+ _pluginHooks.default.getSingleton().once(key, callback, instance, orderIndex);
4336
4344
  };
4337
4345
 
4338
4346
  /**
package/core.mjs CHANGED
@@ -4284,13 +4284,17 @@ export default function Core(rootElement, userSettings) {
4284
4284
  * @see Hooks#add
4285
4285
  * @param {string} key Hook name (see {@link Hooks}).
4286
4286
  * @param {Function|Array} callback Function or array of functions.
4287
+ * @param {number} [orderIndex] Order index of the callback.
4288
+ * If > 0, the callback will be added after the others, for example, with an index of 1, the callback will be added before the ones with an index of 2, 3, etc., but after the ones with an index of 0 and lower.
4289
+ * If < 0, the callback will be added before the others, for example, with an index of -1, the callback will be added after the ones with an index of -2, -3, etc., but before the ones with an index of 0 and higher.
4290
+ * If 0 or no order index is provided, the callback will be added between the "negative" and "positive" indexes.
4287
4291
  * @example
4288
4292
  * ```js
4289
4293
  * hot.addHook('beforeInit', myCallback);
4290
4294
  * ```
4291
4295
  */
4292
- this.addHook = function (key, callback) {
4293
- Hooks.getSingleton().add(key, callback, instance);
4296
+ this.addHook = function (key, callback, orderIndex) {
4297
+ Hooks.getSingleton().add(key, callback, instance, orderIndex);
4294
4298
  };
4295
4299
 
4296
4300
  /**
@@ -4321,13 +4325,17 @@ export default function Core(rootElement, userSettings) {
4321
4325
  * @see Hooks#once
4322
4326
  * @param {string} key Hook name (see {@link Hooks}).
4323
4327
  * @param {Function|Array} callback Function or array of functions.
4328
+ * @param {number} [orderIndex] Order index of the callback.
4329
+ * If > 0, the callback will be added after the others, for example, with an index of 1, the callback will be added before the ones with an index of 2, 3, etc., but after the ones with an index of 0 and lower.
4330
+ * If < 0, the callback will be added before the others, for example, with an index of -1, the callback will be added after the ones with an index of -2, -3, etc., but before the ones with an index of 0 and higher.
4331
+ * If 0 or no order index is provided, the callback will be added between the "negative" and "positive" indexes.
4324
4332
  * @example
4325
4333
  * ```js
4326
4334
  * hot.addHookOnce('beforeInit', myCallback);
4327
4335
  * ```
4328
4336
  */
4329
- this.addHookOnce = function (key, callback) {
4330
- Hooks.getSingleton().once(key, callback, instance);
4337
+ this.addHookOnce = function (key, callback, orderIndex) {
4338
+ Hooks.getSingleton().once(key, callback, instance, orderIndex);
4331
4339
  };
4332
4340
 
4333
4341
  /**
@@ -25,8 +25,8 @@
25
25
  * INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER ARISING FROM
26
26
  * USE OR INABILITY TO USE THIS SOFTWARE.
27
27
  *
28
- * Version: 0.0.0-next-d3b83d5-20240514
29
- * Release date: 16/04/2024 (built at 14/05/2024 11:02:13)
28
+ * Version: 0.0.0-next-f0b9f34-20240515
29
+ * Release date: 16/04/2024 (built at 15/05/2024 10:19:10)
30
30
  */
31
31
  /**
32
32
  * Fix for bootstrap styles
@@ -25,8 +25,8 @@
25
25
  * INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER ARISING FROM
26
26
  * USE OR INABILITY TO USE THIS SOFTWARE.
27
27
  *
28
- * Version: 0.0.0-next-d3b83d5-20240514
29
- * Release date: 16/04/2024 (built at 14/05/2024 11:02:13)
28
+ * Version: 0.0.0-next-f0b9f34-20240515
29
+ * Release date: 16/04/2024 (built at 15/05/2024 10:19:10)
30
30
  */
31
31
  /**
32
32
  * Fix for bootstrap styles