handsontable 15.3.0-next-175012b-20250429 → 16.0.0-next-f486b48-20250702

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.
Files changed (277) hide show
  1. package/3rdparty/walkontable/src/core/_base.js +0 -3
  2. package/3rdparty/walkontable/src/core/_base.mjs +0 -3
  3. package/3rdparty/walkontable/src/core/clone.js +0 -1
  4. package/3rdparty/walkontable/src/core/clone.mjs +0 -1
  5. package/3rdparty/walkontable/src/core/core.js +0 -2
  6. package/3rdparty/walkontable/src/core/core.mjs +0 -2
  7. package/3rdparty/walkontable/src/facade/core.js +0 -3
  8. package/3rdparty/walkontable/src/facade/core.mjs +0 -3
  9. package/3rdparty/walkontable/src/index.js +1 -2
  10. package/3rdparty/walkontable/src/overlay/_base.js +1 -3
  11. package/3rdparty/walkontable/src/overlay/_base.mjs +1 -3
  12. package/3rdparty/walkontable/src/overlay/bottom.js +2 -2
  13. package/3rdparty/walkontable/src/overlay/bottom.mjs +2 -2
  14. package/3rdparty/walkontable/src/overlay/top.js +1 -1
  15. package/3rdparty/walkontable/src/overlay/top.mjs +1 -1
  16. package/3rdparty/walkontable/src/renderer/columnHeaders.js +1 -1
  17. package/3rdparty/walkontable/src/renderer/columnHeaders.mjs +2 -2
  18. package/3rdparty/walkontable/src/selection/border/border.js +17 -11
  19. package/3rdparty/walkontable/src/selection/border/border.mjs +17 -11
  20. package/3rdparty/walkontable/src/selection/border/utils.js +1 -1
  21. package/3rdparty/walkontable/src/selection/border/utils.mjs +1 -1
  22. package/3rdparty/walkontable/src/settings.js +3 -1
  23. package/3rdparty/walkontable/src/settings.mjs +3 -1
  24. package/3rdparty/walkontable/src/table.js +9 -6
  25. package/3rdparty/walkontable/src/table.mjs +9 -6
  26. package/3rdparty/walkontable/src/types.js +0 -1
  27. package/3rdparty/walkontable/src/types.mjs +0 -1
  28. package/3rdparty/walkontable/src/utils/column.js +1 -1
  29. package/3rdparty/walkontable/src/utils/column.mjs +1 -1
  30. package/3rdparty/walkontable/src/viewport.js +1 -1
  31. package/3rdparty/walkontable/src/viewport.mjs +1 -1
  32. package/CHANGELOG.md +23 -0
  33. package/README.md +10 -4
  34. package/base.js +2 -2
  35. package/base.mjs +2 -2
  36. package/cellTypes/registry.js +2 -3
  37. package/cellTypes/registry.mjs +1 -1
  38. package/core/coordsMapper/rangeToRenderableMapper.js +124 -0
  39. package/core/coordsMapper/rangeToRenderableMapper.mjs +120 -0
  40. package/core/focusCatcher/focusDetector.js +2 -2
  41. package/core/focusCatcher/focusDetector.mjs +2 -2
  42. package/core/hooks/constants.js +259 -1
  43. package/core/hooks/constants.mjs +259 -1
  44. package/core.d.ts +2 -0
  45. package/core.js +202 -58
  46. package/core.mjs +202 -58
  47. package/dataMap/dataMap.js +16 -30
  48. package/dataMap/dataMap.mjs +16 -30
  49. package/dataMap/metaManager/metaSchema.js +58 -0
  50. package/dataMap/metaManager/metaSchema.mjs +58 -0
  51. package/dist/handsontable.css +30 -4
  52. package/dist/handsontable.full.css +30 -4
  53. package/dist/handsontable.full.js +6073 -4352
  54. package/dist/handsontable.full.min.css +3 -3
  55. package/dist/handsontable.full.min.js +206 -206
  56. package/dist/handsontable.js +5751 -4037
  57. package/dist/handsontable.min.css +3 -3
  58. package/dist/handsontable.min.js +41 -41
  59. package/dist/languages/all.min.js +1 -1
  60. package/dist/languages/ar-AR.min.js +1 -1
  61. package/dist/languages/cs-CZ.min.js +1 -1
  62. package/dist/languages/de-CH.min.js +1 -1
  63. package/dist/languages/de-DE.min.js +1 -1
  64. package/dist/languages/en-US.min.js +1 -1
  65. package/dist/languages/es-MX.min.js +1 -1
  66. package/dist/languages/fa-IR.min.js +1 -1
  67. package/dist/languages/fr-FR.min.js +1 -1
  68. package/dist/languages/hr-HR.min.js +1 -1
  69. package/dist/languages/it-IT.min.js +1 -1
  70. package/dist/languages/ja-JP.min.js +1 -1
  71. package/dist/languages/ko-KR.min.js +1 -1
  72. package/dist/languages/lv-LV.min.js +1 -1
  73. package/dist/languages/nb-NO.min.js +1 -1
  74. package/dist/languages/nl-NL.min.js +1 -1
  75. package/dist/languages/pl-PL.min.js +1 -1
  76. package/dist/languages/pt-BR.min.js +1 -1
  77. package/dist/languages/ru-RU.min.js +1 -1
  78. package/dist/languages/sr-SP.min.js +1 -1
  79. package/dist/languages/zh-CN.min.js +1 -1
  80. package/dist/languages/zh-TW.min.js +1 -1
  81. package/editorManager.js +5 -1
  82. package/editorManager.mjs +5 -1
  83. package/editors/autocompleteEditor/autocompleteEditor.d.ts +0 -12
  84. package/editors/autocompleteEditor/autocompleteEditor.js +42 -69
  85. package/editors/autocompleteEditor/autocompleteEditor.mjs +43 -70
  86. package/editors/baseEditor/baseEditor.js +1 -1
  87. package/editors/baseEditor/baseEditor.mjs +1 -1
  88. package/editors/dateEditor/dateEditor.js +2 -8
  89. package/editors/dateEditor/dateEditor.mjs +3 -9
  90. package/editors/handsontableEditor/handsontableEditor.d.ts +8 -0
  91. package/editors/handsontableEditor/handsontableEditor.js +173 -17
  92. package/editors/handsontableEditor/handsontableEditor.mjs +173 -17
  93. package/editors/passwordEditor/passwordEditor.js +2 -0
  94. package/editors/passwordEditor/passwordEditor.mjs +2 -0
  95. package/editors/registry.js +2 -3
  96. package/editors/registry.mjs +1 -1
  97. package/editors/textEditor/textEditor.js +2 -0
  98. package/editors/textEditor/textEditor.mjs +2 -0
  99. package/helpers/a11y.js +2 -0
  100. package/helpers/a11y.mjs +1 -0
  101. package/helpers/dom/element.d.ts +1 -0
  102. package/helpers/dom/element.js +26 -1
  103. package/helpers/dom/element.mjs +25 -1
  104. package/helpers/mixed.js +4 -4
  105. package/helpers/mixed.mjs +4 -4
  106. package/i18n/languages/ar-AR.js +1 -2
  107. package/i18n/languages/cs-CZ.js +1 -2
  108. package/i18n/languages/de-CH.js +1 -2
  109. package/i18n/languages/de-DE.js +1 -2
  110. package/i18n/languages/en-US.js +1 -2
  111. package/i18n/languages/es-MX.js +1 -2
  112. package/i18n/languages/fa-IR.js +1 -2
  113. package/i18n/languages/fr-FR.js +1 -2
  114. package/i18n/languages/hr-HR.js +1 -2
  115. package/i18n/languages/it-IT.js +1 -2
  116. package/i18n/languages/ja-JP.js +1 -2
  117. package/i18n/languages/ko-KR.js +1 -2
  118. package/i18n/languages/lv-LV.js +1 -2
  119. package/i18n/languages/nb-NO.js +1 -2
  120. package/i18n/languages/nl-NL.js +1 -2
  121. package/i18n/languages/pl-PL.js +1 -2
  122. package/i18n/languages/pt-BR.js +1 -2
  123. package/i18n/languages/ru-RU.js +1 -2
  124. package/i18n/languages/sr-SP.js +1 -2
  125. package/i18n/languages/zh-CN.js +1 -2
  126. package/i18n/languages/zh-TW.js +1 -2
  127. package/i18n/phraseFormatters/index.js +2 -2
  128. package/i18n/phraseFormatters/index.mjs +1 -1
  129. package/i18n/registry.js +3 -4
  130. package/i18n/registry.mjs +1 -1
  131. package/index.js +1 -2
  132. package/package.json +10 -4
  133. package/plugins/autoColumnSize/autoColumnSize.js +47 -0
  134. package/plugins/autoColumnSize/autoColumnSize.mjs +47 -0
  135. package/plugins/autoRowSize/autoRowSize.js +45 -0
  136. package/plugins/autoRowSize/autoRowSize.mjs +45 -0
  137. package/plugins/bindRowsWithHeaders/bindRowsWithHeaders.js +13 -0
  138. package/plugins/bindRowsWithHeaders/bindRowsWithHeaders.mjs +13 -0
  139. package/plugins/collapsibleColumns/collapsibleColumns.js +31 -0
  140. package/plugins/collapsibleColumns/collapsibleColumns.mjs +31 -0
  141. package/plugins/columnSorting/sortService/registry.js +3 -4
  142. package/plugins/columnSorting/sortService/registry.mjs +1 -1
  143. package/plugins/columnSummary/columnSummary.js +33 -0
  144. package/plugins/columnSummary/columnSummary.mjs +33 -0
  145. package/plugins/comments/commentEditor.js +8 -2
  146. package/plugins/comments/commentEditor.mjs +8 -2
  147. package/plugins/comments/comments.js +59 -15
  148. package/plugins/comments/comments.mjs +60 -16
  149. package/plugins/comments/contextMenuItem/addEditComment.js +1 -2
  150. package/plugins/comments/contextMenuItem/readOnlyComment.js +1 -2
  151. package/plugins/comments/contextMenuItem/removeComment.js +1 -2
  152. package/plugins/contextMenu/contextMenu.js +1 -1
  153. package/plugins/contextMenu/contextMenu.mjs +1 -1
  154. package/plugins/contextMenu/menu/menu.js +12 -6
  155. package/plugins/contextMenu/menu/menu.mjs +13 -7
  156. package/plugins/contextMenu/predefinedItems/alignment.js +1 -2
  157. package/plugins/contextMenu/predefinedItems/clearColumn.js +1 -2
  158. package/plugins/contextMenu/predefinedItems/columnLeft.js +1 -2
  159. package/plugins/contextMenu/predefinedItems/columnRight.js +1 -2
  160. package/plugins/contextMenu/predefinedItems/index.js +1 -2
  161. package/plugins/contextMenu/predefinedItems/readOnly.js +1 -2
  162. package/plugins/contextMenu/predefinedItems/redo.js +1 -2
  163. package/plugins/contextMenu/predefinedItems/removeColumn.js +1 -2
  164. package/plugins/contextMenu/predefinedItems/removeRow.js +1 -2
  165. package/plugins/contextMenu/predefinedItems/rowAbove.js +1 -2
  166. package/plugins/contextMenu/predefinedItems/rowBelow.js +1 -2
  167. package/plugins/contextMenu/predefinedItems/undo.js +1 -2
  168. package/plugins/copyPaste/contextMenuItem/cut.js +1 -2
  169. package/plugins/customBorders/contextMenuItem/bottom.js +1 -2
  170. package/plugins/customBorders/contextMenuItem/left.js +1 -2
  171. package/plugins/customBorders/contextMenuItem/noBorders.js +1 -2
  172. package/plugins/customBorders/contextMenuItem/right.js +1 -2
  173. package/plugins/customBorders/contextMenuItem/top.js +1 -2
  174. package/plugins/customBorders/customBorders.js +1 -2
  175. package/plugins/dropdownMenu/dropdownMenu.js +16 -1
  176. package/plugins/dropdownMenu/dropdownMenu.mjs +16 -1
  177. package/plugins/exportFile/exportFile.js +59 -2
  178. package/plugins/exportFile/exportFile.mjs +58 -0
  179. package/plugins/filters/component/actionBar.js +1 -2
  180. package/plugins/filters/component/condition.js +1 -2
  181. package/plugins/filters/component/value.js +1 -2
  182. package/plugins/filters/condition/beginsWith.js +1 -2
  183. package/plugins/filters/condition/between.js +1 -2
  184. package/plugins/filters/condition/contains.js +1 -2
  185. package/plugins/filters/condition/date/after.js +1 -2
  186. package/plugins/filters/condition/date/before.js +1 -2
  187. package/plugins/filters/condition/date/today.js +1 -2
  188. package/plugins/filters/condition/date/tomorrow.js +1 -2
  189. package/plugins/filters/condition/date/yesterday.js +1 -2
  190. package/plugins/filters/condition/empty.js +1 -2
  191. package/plugins/filters/condition/endsWith.js +1 -2
  192. package/plugins/filters/condition/equal.js +1 -2
  193. package/plugins/filters/condition/greaterThan.js +1 -2
  194. package/plugins/filters/condition/greaterThanOrEqual.js +1 -2
  195. package/plugins/filters/condition/lessThan.js +1 -2
  196. package/plugins/filters/condition/lessThanOrEqual.js +1 -2
  197. package/plugins/filters/condition/none.js +1 -2
  198. package/plugins/filters/condition/notBetween.js +1 -2
  199. package/plugins/filters/condition/notContains.js +1 -2
  200. package/plugins/filters/condition/notEmpty.js +1 -2
  201. package/plugins/filters/condition/notEqual.js +1 -2
  202. package/plugins/filters/filters.js +76 -3
  203. package/plugins/filters/filters.mjs +75 -1
  204. package/plugins/filters/logicalOperations/conjunction.js +1 -2
  205. package/plugins/filters/logicalOperations/disjunction.js +1 -2
  206. package/plugins/filters/logicalOperations/disjunctionWithExtraCondition.js +1 -2
  207. package/plugins/filters/ui/_base.js +1 -2
  208. package/plugins/filters/ui/multipleSelect.js +1 -7
  209. package/plugins/filters/ui/multipleSelect.mjs +0 -5
  210. package/plugins/filters/ui/select.js +1 -2
  211. package/plugins/formulas/engine/register.js +3 -4
  212. package/plugins/formulas/engine/register.mjs +1 -1
  213. package/plugins/formulas/formulas.js +40 -41
  214. package/plugins/formulas/formulas.mjs +39 -40
  215. package/plugins/hiddenColumns/contextMenuItem/hideColumn.js +1 -2
  216. package/plugins/hiddenColumns/contextMenuItem/showColumn.js +1 -2
  217. package/plugins/hiddenColumns/hiddenColumns.js +64 -0
  218. package/plugins/hiddenColumns/hiddenColumns.mjs +64 -0
  219. package/plugins/hiddenRows/contextMenuItem/hideRow.js +1 -2
  220. package/plugins/hiddenRows/contextMenuItem/showRow.js +1 -2
  221. package/plugins/hiddenRows/hiddenRows.js +64 -0
  222. package/plugins/hiddenRows/hiddenRows.mjs +64 -0
  223. package/plugins/manualColumnFreeze/contextMenuItem/freezeColumn.js +1 -2
  224. package/plugins/manualColumnFreeze/contextMenuItem/unfreezeColumn.js +1 -2
  225. package/plugins/manualRowMove/manualRowMove.js +1 -1
  226. package/plugins/manualRowMove/manualRowMove.mjs +1 -1
  227. package/plugins/manualRowResize/manualRowResize.js +1 -1
  228. package/plugins/manualRowResize/manualRowResize.mjs +1 -1
  229. package/plugins/mergeCells/contextMenuItem/toggleMerge.js +1 -2
  230. package/plugins/mergeCells/mergeCells.js +56 -38
  231. package/plugins/mergeCells/mergeCells.mjs +56 -38
  232. package/plugins/mergeCells/utils.js +3 -4
  233. package/plugins/mergeCells/utils.mjs +3 -4
  234. package/plugins/nestedHeaders/nestedHeaders.js +37 -12
  235. package/plugins/nestedHeaders/nestedHeaders.mjs +37 -12
  236. package/plugins/nestedRows/nestedRows.js +12 -12
  237. package/plugins/nestedRows/nestedRows.mjs +12 -12
  238. package/plugins/nestedRows/ui/contextMenu.js +1 -2
  239. package/plugins/nestedRows/ui/headers.js +2 -3
  240. package/plugins/nestedRows/ui/headers.mjs +2 -3
  241. package/plugins/persistentState/persistentState.js +1 -1
  242. package/plugins/persistentState/persistentState.mjs +1 -1
  243. package/plugins/stretchColumns/calculator.js +3 -2
  244. package/plugins/stretchColumns/calculator.mjs +3 -2
  245. package/plugins/stretchColumns/stretchColumns.js +13 -0
  246. package/plugins/stretchColumns/stretchColumns.mjs +13 -0
  247. package/plugins/trimRows/trimRows.js +61 -0
  248. package/plugins/trimRows/trimRows.mjs +61 -0
  249. package/renderers/baseRenderer/baseRenderer.js +4 -0
  250. package/renderers/baseRenderer/baseRenderer.mjs +4 -0
  251. package/renderers/registry.js +2 -3
  252. package/renderers/registry.mjs +1 -1
  253. package/selection/mouseEventHandler.js +48 -13
  254. package/selection/mouseEventHandler.mjs +47 -13
  255. package/selection/range.js +73 -6
  256. package/selection/range.mjs +73 -6
  257. package/selection/selection.js +46 -32
  258. package/selection/selection.mjs +45 -30
  259. package/settings.d.ts +1 -0
  260. package/styles/handsontable.css +131 -55
  261. package/styles/handsontable.min.css +3 -3
  262. package/styles/ht-theme-horizon.css +296 -181
  263. package/styles/ht-theme-horizon.min.css +3 -3
  264. package/styles/ht-theme-main.css +314 -205
  265. package/styles/ht-theme-main.min.css +3 -3
  266. package/tableView.js +9 -20
  267. package/tableView.mjs +9 -20
  268. package/translations/indexMapper.js +9 -5
  269. package/translations/indexMapper.mjs +9 -5
  270. package/utils/paginator.js +13 -0
  271. package/utils/paginator.mjs +13 -0
  272. package/utils/staticRegister.js +24 -2
  273. package/utils/staticRegister.mjs +23 -2
  274. package/{3rdparty/walkontable/src/utils → utils}/stylesHandler.js +16 -30
  275. package/{3rdparty/walkontable/src/utils → utils}/stylesHandler.mjs +16 -30
  276. package/validators/registry.js +2 -3
  277. package/validators/registry.mjs +1 -1
@@ -72,6 +72,22 @@ const SHORTCUTS_GROUP = PLUGIN_KEY;
72
72
  * />
73
73
  * ```
74
74
  * :::
75
+ *
76
+ * ::: only-for angular
77
+ * ```ts
78
+ * settings = {
79
+ * data: getData(),
80
+ * colHeaders: true,
81
+ * rowHeaders: true,
82
+ * dropdownMenu: true,
83
+ * filters: true,
84
+ * };
85
+ * ```
86
+ *
87
+ * ```html
88
+ * <hot-table [settings]="settings"></hot-table>
89
+ * ```
90
+ * :::
75
91
  */
76
92
  var _menuFocusNavigator = /*#__PURE__*/new WeakMap();
77
93
  var _dropdownMenuTraces = /*#__PURE__*/new WeakMap();
@@ -184,7 +200,7 @@ export class Filters extends BasePlugin {
184
200
  this.filtersRowsMap = this.hot.rowIndexMapper.registerMap(this.pluginName, new TrimmingMap());
185
201
  this.dropdownMenuPlugin = this.hot.getPlugin('dropdownMenu');
186
202
  const dropdownSettings = this.hot.getSettings().dropdownMenu;
187
- const menuContainer = dropdownSettings && dropdownSettings.uiContainer || this.hot.rootDocument.body;
203
+ const menuContainer = dropdownSettings && dropdownSettings.uiContainer || this.hot.rootPortalElement;
188
204
  const addConfirmationHooks = component => {
189
205
  component.addLocalHook('accept', () => _assertClassBrand(_Filters_brand, this, _onActionBarSubmit).call(this, 'accept'));
190
206
  component.addLocalHook('cancel', () => _assertClassBrand(_Filters_brand, this, _onActionBarSubmit).call(this, 'cancel'));
@@ -454,6 +470,64 @@ export class Filters extends BasePlugin {
454
470
  * ```
455
471
  * :::
456
472
  *
473
+ * ::: only-for angular
474
+ * ```ts
475
+ * import { AfterViewInit, Component, ViewChild } from "@angular/core";
476
+ * import {
477
+ * GridSettings,
478
+ * HotTableModule,
479
+ * HotTableComponent,
480
+ * } from "@handsontable/angular-wrapper";
481
+ *
482
+ * `@Component`({
483
+ * selector: "app-example",
484
+ * standalone: true,
485
+ * imports: [HotTableModule],
486
+ * template: ` <div>
487
+ * <hot-table themeName="ht-theme-main" [settings]="gridSettings" />
488
+ * </div>`,
489
+ * })
490
+ * export class ExampleComponent implements AfterViewInit {
491
+ * `@ViewChild`(HotTableComponent, { static: false })
492
+ * readonly hotTable!: HotTableComponent;
493
+ *
494
+ * readonly gridSettings = <GridSettings>{
495
+ * data: this.getData(),
496
+ * filters: true,
497
+ * };
498
+ *
499
+ * ngAfterViewInit(): void {
500
+ * // Access to filters plugin instance
501
+ * const hot = this.hotTable.hotInstance;
502
+ * const filtersPlugin = hot.getPlugin("filters");
503
+ *
504
+ * // Add filter "Greater than" 95 to column at index 1
505
+ * filtersPlugin.addCondition(1, "gt", [95]);
506
+ * filtersPlugin.filter();
507
+ *
508
+ * // Add filter "By value" to column at index 1
509
+ * // In this case, all values that don't match will be filtered.
510
+ * filtersPlugin.addCondition(1, "by_value", [["ing", "ed", "as", "on"]]);
511
+ * filtersPlugin.filter();
512
+ *
513
+ * // Add filter "Begins with" with value "de" AND "Not contains" with value "ing"
514
+ * filtersPlugin.addCondition(1, "begins_with", ["de"], "conjunction");
515
+ * filtersPlugin.addCondition(1, "not_contains", ["ing"], "conjunction");
516
+ * filtersPlugin.filter();
517
+ *
518
+ * // Add filter "Begins with" with value "de" OR "Not contains" with value "ing"
519
+ * filtersPlugin.addCondition(1, "begins_with", ["de"], "disjunction");
520
+ * filtersPlugin.addCondition(1, "not_contains", ["ing"], "disjunction");
521
+ * filtersPlugin.filter();
522
+ * }
523
+ *
524
+ * private getData(): any[] {
525
+ * // Get some data
526
+ * }
527
+ * }
528
+ * ```
529
+ * :::
530
+ *
457
531
  * @param {number} column Visual column index.
458
532
  * @param {string} name Condition short name.
459
533
  * @param {Array} args Condition arguments.
@@ -6,8 +6,7 @@ require("core-js/modules/esnext.iterator.constructor.js");
6
6
  require("core-js/modules/esnext.iterator.every.js");
7
7
  var C = _interopRequireWildcard(require("../../../i18n/constants"));
8
8
  var _logicalOperationRegisterer = require("../logicalOperationRegisterer");
9
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
10
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
9
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
11
10
  const OPERATION_ID = exports.OPERATION_ID = 'conjunction';
12
11
  const SHORT_NAME_FOR_COMPONENT = exports.SHORT_NAME_FOR_COMPONENT = C.FILTERS_LABELS_CONJUNCTION;
13
12
  // p AND q AND w AND x AND... === TRUE?
@@ -6,8 +6,7 @@ require("core-js/modules/esnext.iterator.constructor.js");
6
6
  require("core-js/modules/esnext.iterator.some.js");
7
7
  var C = _interopRequireWildcard(require("../../../i18n/constants"));
8
8
  var _logicalOperationRegisterer = require("../logicalOperationRegisterer");
9
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
10
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
9
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
11
10
  const OPERATION_ID = exports.OPERATION_ID = 'disjunction';
12
11
  const SHORT_NAME_FOR_COMPONENT = exports.SHORT_NAME_FOR_COMPONENT = C.FILTERS_LABELS_DISJUNCTION;
13
12
  // (p OR q OR w OR x OR...) === TRUE?
@@ -7,8 +7,7 @@ require("core-js/modules/esnext.iterator.constructor.js");
7
7
  require("core-js/modules/esnext.iterator.some.js");
8
8
  var C = _interopRequireWildcard(require("../../../i18n/constants"));
9
9
  var _logicalOperationRegisterer = require("../logicalOperationRegisterer");
10
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
11
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
10
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
12
11
  const OPERATION_ID = exports.OPERATION_ID = 'disjunctionWithExtraCondition';
13
12
  const SHORT_NAME_FOR_COMPONENT = exports.SHORT_NAME_FOR_COMPONENT = C.FILTERS_LABELS_DISJUNCTION;
14
13
  // ((p OR q OR w OR x OR...) AND z) === TRUE?
@@ -8,8 +8,7 @@ var _eventManager = _interopRequireDefault(require("../../../eventManager"));
8
8
  var _element = require("../../../helpers/dom/element");
9
9
  var _array = require("../../../helpers/array");
10
10
  var C = _interopRequireWildcard(require("../../../i18n/constants"));
11
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
12
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
11
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
13
12
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
14
13
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
15
14
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
@@ -18,8 +18,7 @@ var _base = require("./_base");
18
18
  var _input = require("./input");
19
19
  var _link = require("./link");
20
20
  var _utils = require("../utils");
21
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
22
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
21
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
23
22
  function _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }
24
23
  function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
25
24
  function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
@@ -275,11 +274,6 @@ class MultipleSelectUI extends _base.BaseUI {
275
274
  layoutDirection: this.hot.isRtl() ? 'rtl' : 'ltr'
276
275
  }));
277
276
  _classPrivateFieldGet(_itemsBox, this).init();
278
- this.hot.addHook('afterSetTheme', (themeName, firstRun) => {
279
- if (!firstRun) {
280
- _classPrivateFieldGet(_itemsBox, this).useTheme(themeName);
281
- }
282
- });
283
277
  const shortcutManager = _classPrivateFieldGet(_itemsBox, this).getShortcutManager();
284
278
  const gridContext = shortcutManager.getContext('grid');
285
279
  gridContext.removeShortcutsByKeys(['Tab']);
@@ -270,11 +270,6 @@ export class MultipleSelectUI extends BaseUI {
270
270
  layoutDirection: this.hot.isRtl() ? 'rtl' : 'ltr'
271
271
  }));
272
272
  _classPrivateFieldGet(_itemsBox, this).init();
273
- this.hot.addHook('afterSetTheme', (themeName, firstRun) => {
274
- if (!firstRun) {
275
- _classPrivateFieldGet(_itemsBox, this).useTheme(themeName);
276
- }
277
- });
278
273
  const shortcutManager = _classPrivateFieldGet(_itemsBox, this).getShortcutManager();
279
274
  const gridContext = shortcutManager.getContext('grid');
280
275
  gridContext.removeShortcutsByKeys(['Tab']);
@@ -10,8 +10,7 @@ var C = _interopRequireWildcard(require("../../../i18n/constants"));
10
10
  var _predefinedItems = require("../../../plugins/contextMenu/predefinedItems");
11
11
  var _base = require("./_base");
12
12
  var _a11y = require("../../../helpers/a11y");
13
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
14
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
13
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
15
14
  function _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }
16
15
  function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
17
16
  function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
@@ -13,14 +13,13 @@ require("core-js/modules/es.array.push.js");
13
13
  require("core-js/modules/esnext.iterator.constructor.js");
14
14
  require("core-js/modules/esnext.iterator.for-each.js");
15
15
  require("core-js/modules/esnext.iterator.map.js");
16
- var _staticRegister = _interopRequireDefault(require("../../../utils/staticRegister"));
16
+ var _staticRegister = require("../../../utils/staticRegister");
17
17
  var _mixed = require("../../../helpers/mixed");
18
18
  var _templateLiteralTag = require("../../../helpers/templateLiteralTag");
19
19
  var _console = require("../../../helpers/console");
20
20
  var _object = require("../../../helpers/object");
21
21
  var _formulas = require("../formulas");
22
22
  var _settings = require("./settings");
23
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
24
23
  /**
25
24
  * Prepares and returns the collection for the engine relationship with the HoT instances.
26
25
  *
@@ -28,7 +27,7 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
28
27
  */
29
28
  function getEngineRelationshipRegistry() {
30
29
  const registryKey = 'engine_relationship';
31
- const pluginStaticRegistry = (0, _staticRegister.default)(_formulas.PLUGIN_KEY);
30
+ const pluginStaticRegistry = (0, _staticRegister.staticRegister)(_formulas.PLUGIN_KEY);
32
31
  if (!pluginStaticRegistry.hasItem(registryKey)) {
33
32
  pluginStaticRegistry.register(registryKey, new Map());
34
33
  }
@@ -42,7 +41,7 @@ function getEngineRelationshipRegistry() {
42
41
  */
43
42
  function getSharedEngineUsageRegistry() {
44
43
  const registryKey = 'shared_engine_usage';
45
- const pluginStaticRegistry = (0, _staticRegister.default)(_formulas.PLUGIN_KEY);
44
+ const pluginStaticRegistry = (0, _staticRegister.staticRegister)(_formulas.PLUGIN_KEY);
46
45
  if (!pluginStaticRegistry.hasItem(registryKey)) {
47
46
  pluginStaticRegistry.register(registryKey, new Map());
48
47
  }
@@ -2,7 +2,7 @@ import "core-js/modules/es.array.push.js";
2
2
  import "core-js/modules/esnext.iterator.constructor.js";
3
3
  import "core-js/modules/esnext.iterator.for-each.js";
4
4
  import "core-js/modules/esnext.iterator.map.js";
5
- import staticRegister from "../../../utils/staticRegister.mjs";
5
+ import { staticRegister } from "../../../utils/staticRegister.mjs";
6
6
  import { isUndefined } from "../../../helpers/mixed.mjs";
7
7
  import { toSingleLine } from "../../../helpers/templateLiteralTag.mjs";
8
8
  import { warn } from "../../../helpers/console.mjs";
@@ -16,7 +16,7 @@ require("core-js/modules/esnext.iterator.every.js");
16
16
  require("core-js/modules/esnext.iterator.for-each.js");
17
17
  require("core-js/modules/esnext.iterator.map.js");
18
18
  var _base = require("../base");
19
- var _staticRegister = _interopRequireDefault(require("../../utils/staticRegister"));
19
+ var _staticRegister = require("../../utils/staticRegister");
20
20
  var _console = require("../../helpers/console");
21
21
  var _number = require("../../helpers/number");
22
22
  var _mixed = require("../../helpers/mixed");
@@ -135,7 +135,7 @@ class Formulas extends _base.BasePlugin {
135
135
  * @private
136
136
  * @type {object}
137
137
  */
138
- _defineProperty(this, "staticRegister", (0, _staticRegister.default)('formulas'));
138
+ _defineProperty(this, "staticRegister", (0, _staticRegister.staticRegister)('formulas'));
139
139
  /**
140
140
  * The engine instance that will be used for this instance of Handsontable.
141
141
  *
@@ -236,92 +236,92 @@ class Formulas extends _base.BasePlugin {
236
236
  return _assertClassBrand(_Formulas_brand, _this2, _onBeforeLoadData).call(_this2, ...args);
237
237
  });
238
238
  this.addHook('afterUpdateData', function () {
239
- for (var _len10 = arguments.length, args = new Array(_len10), _key10 = 0; _key10 < _len10; _key10++) {
240
- args[_key10] = arguments[_key10];
239
+ for (var _len0 = arguments.length, args = new Array(_len0), _key0 = 0; _key0 < _len0; _key0++) {
240
+ args[_key0] = arguments[_key0];
241
241
  }
242
242
  return _assertClassBrand(_Formulas_brand, _this2, _onAfterLoadData).call(_this2, ...args);
243
243
  });
244
244
  this.addHook('modifyData', function () {
245
- for (var _len11 = arguments.length, args = new Array(_len11), _key11 = 0; _key11 < _len11; _key11++) {
246
- args[_key11] = arguments[_key11];
245
+ for (var _len1 = arguments.length, args = new Array(_len1), _key1 = 0; _key1 < _len1; _key1++) {
246
+ args[_key1] = arguments[_key1];
247
247
  }
248
248
  return _assertClassBrand(_Formulas_brand, _this2, _onModifyData).call(_this2, ...args);
249
249
  });
250
250
  this.addHook('modifySourceData', function () {
251
- for (var _len12 = arguments.length, args = new Array(_len12), _key12 = 0; _key12 < _len12; _key12++) {
252
- args[_key12] = arguments[_key12];
251
+ for (var _len10 = arguments.length, args = new Array(_len10), _key10 = 0; _key10 < _len10; _key10++) {
252
+ args[_key10] = arguments[_key10];
253
253
  }
254
254
  return _assertClassBrand(_Formulas_brand, _this2, _onModifySourceData).call(_this2, ...args);
255
255
  });
256
256
  this.addHook('beforeValidate', function () {
257
- for (var _len13 = arguments.length, args = new Array(_len13), _key13 = 0; _key13 < _len13; _key13++) {
258
- args[_key13] = arguments[_key13];
257
+ for (var _len11 = arguments.length, args = new Array(_len11), _key11 = 0; _key11 < _len11; _key11++) {
258
+ args[_key11] = arguments[_key11];
259
259
  }
260
260
  return _assertClassBrand(_Formulas_brand, _this2, _onBeforeValidate).call(_this2, ...args);
261
261
  });
262
262
  this.addHook('afterSetSourceDataAtCell', function () {
263
- for (var _len14 = arguments.length, args = new Array(_len14), _key14 = 0; _key14 < _len14; _key14++) {
264
- args[_key14] = arguments[_key14];
263
+ for (var _len12 = arguments.length, args = new Array(_len12), _key12 = 0; _key12 < _len12; _key12++) {
264
+ args[_key12] = arguments[_key12];
265
265
  }
266
266
  return _assertClassBrand(_Formulas_brand, _this2, _onAfterSetSourceDataAtCell).call(_this2, ...args);
267
267
  });
268
268
  this.addHook('afterSetDataAtCell', function () {
269
- for (var _len15 = arguments.length, args = new Array(_len15), _key15 = 0; _key15 < _len15; _key15++) {
270
- args[_key15] = arguments[_key15];
269
+ for (var _len13 = arguments.length, args = new Array(_len13), _key13 = 0; _key13 < _len13; _key13++) {
270
+ args[_key13] = arguments[_key13];
271
271
  }
272
272
  return _assertClassBrand(_Formulas_brand, _this2, _onAfterSetDataAtCell).call(_this2, ...args);
273
273
  });
274
274
  this.addHook('afterSetDataAtRowProp', function () {
275
- for (var _len16 = arguments.length, args = new Array(_len16), _key16 = 0; _key16 < _len16; _key16++) {
276
- args[_key16] = arguments[_key16];
275
+ for (var _len14 = arguments.length, args = new Array(_len14), _key14 = 0; _key14 < _len14; _key14++) {
276
+ args[_key14] = arguments[_key14];
277
277
  }
278
278
  return _assertClassBrand(_Formulas_brand, _this2, _onAfterSetDataAtCell).call(_this2, ...args);
279
279
  });
280
280
  this.addHook('beforeCreateRow', function () {
281
- for (var _len17 = arguments.length, args = new Array(_len17), _key17 = 0; _key17 < _len17; _key17++) {
282
- args[_key17] = arguments[_key17];
281
+ for (var _len15 = arguments.length, args = new Array(_len15), _key15 = 0; _key15 < _len15; _key15++) {
282
+ args[_key15] = arguments[_key15];
283
283
  }
284
284
  return _assertClassBrand(_Formulas_brand, _this2, _onBeforeCreateRow).call(_this2, ...args);
285
285
  });
286
286
  this.addHook('beforeCreateCol', function () {
287
- for (var _len18 = arguments.length, args = new Array(_len18), _key18 = 0; _key18 < _len18; _key18++) {
288
- args[_key18] = arguments[_key18];
287
+ for (var _len16 = arguments.length, args = new Array(_len16), _key16 = 0; _key16 < _len16; _key16++) {
288
+ args[_key16] = arguments[_key16];
289
289
  }
290
290
  return _assertClassBrand(_Formulas_brand, _this2, _onBeforeCreateCol).call(_this2, ...args);
291
291
  });
292
292
  this.addHook('afterCreateRow', function () {
293
- for (var _len19 = arguments.length, args = new Array(_len19), _key19 = 0; _key19 < _len19; _key19++) {
294
- args[_key19] = arguments[_key19];
293
+ for (var _len17 = arguments.length, args = new Array(_len17), _key17 = 0; _key17 < _len17; _key17++) {
294
+ args[_key17] = arguments[_key17];
295
295
  }
296
296
  return _assertClassBrand(_Formulas_brand, _this2, _onAfterCreateRow).call(_this2, ...args);
297
297
  });
298
298
  this.addHook('afterCreateCol', function () {
299
- for (var _len20 = arguments.length, args = new Array(_len20), _key20 = 0; _key20 < _len20; _key20++) {
300
- args[_key20] = arguments[_key20];
299
+ for (var _len18 = arguments.length, args = new Array(_len18), _key18 = 0; _key18 < _len18; _key18++) {
300
+ args[_key18] = arguments[_key18];
301
301
  }
302
302
  return _assertClassBrand(_Formulas_brand, _this2, _onAfterCreateCol).call(_this2, ...args);
303
303
  });
304
304
  this.addHook('beforeRemoveRow', function () {
305
- for (var _len21 = arguments.length, args = new Array(_len21), _key21 = 0; _key21 < _len21; _key21++) {
306
- args[_key21] = arguments[_key21];
305
+ for (var _len19 = arguments.length, args = new Array(_len19), _key19 = 0; _key19 < _len19; _key19++) {
306
+ args[_key19] = arguments[_key19];
307
307
  }
308
308
  return _assertClassBrand(_Formulas_brand, _this2, _onBeforeRemoveRow).call(_this2, ...args);
309
309
  });
310
310
  this.addHook('beforeRemoveCol', function () {
311
- for (var _len22 = arguments.length, args = new Array(_len22), _key22 = 0; _key22 < _len22; _key22++) {
312
- args[_key22] = arguments[_key22];
311
+ for (var _len20 = arguments.length, args = new Array(_len20), _key20 = 0; _key20 < _len20; _key20++) {
312
+ args[_key20] = arguments[_key20];
313
313
  }
314
314
  return _assertClassBrand(_Formulas_brand, _this2, _onBeforeRemoveCol).call(_this2, ...args);
315
315
  });
316
316
  this.addHook('afterRemoveRow', function () {
317
- for (var _len23 = arguments.length, args = new Array(_len23), _key23 = 0; _key23 < _len23; _key23++) {
318
- args[_key23] = arguments[_key23];
317
+ for (var _len21 = arguments.length, args = new Array(_len21), _key21 = 0; _key21 < _len21; _key21++) {
318
+ args[_key21] = arguments[_key21];
319
319
  }
320
320
  return _assertClassBrand(_Formulas_brand, _this2, _onAfterRemoveRow).call(_this2, ...args);
321
321
  });
322
322
  this.addHook('afterRemoveCol', function () {
323
- for (var _len24 = arguments.length, args = new Array(_len24), _key24 = 0; _key24 < _len24; _key24++) {
324
- args[_key24] = arguments[_key24];
323
+ for (var _len22 = arguments.length, args = new Array(_len22), _key22 = 0; _key22 < _len22; _key22++) {
324
+ args[_key22] = arguments[_key22];
325
325
  }
326
326
  return _assertClassBrand(_Formulas_brand, _this2, _onAfterRemoveCol).call(_this2, ...args);
327
327
  });
@@ -365,8 +365,8 @@ class Formulas extends _base.BasePlugin {
365
365
  // hook, because some hooks, such as `afterLoadData` doesn't have information about composed cell properties.
366
366
  // Another hooks are triggered to late for setting HF's engine data needed for some actions.
367
367
  this.addHook('afterCellMetaReset', function () {
368
- for (var _len25 = arguments.length, args = new Array(_len25), _key25 = 0; _key25 < _len25; _key25++) {
369
- args[_key25] = arguments[_key25];
368
+ for (var _len23 = arguments.length, args = new Array(_len23), _key23 = 0; _key23 < _len23; _key23++) {
369
+ args[_key23] = arguments[_key23];
370
370
  }
371
371
  return _assertClassBrand(_Formulas_brand, _this2, _onAfterCellMetaReset).call(_this2, ...args);
372
372
  });
@@ -389,14 +389,14 @@ class Formulas extends _base.BasePlugin {
389
389
  this.indexSyncer.setPerformRedo(false);
390
390
  });
391
391
  this.addHook('afterDetachChild', function () {
392
- for (var _len26 = arguments.length, args = new Array(_len26), _key26 = 0; _key26 < _len26; _key26++) {
393
- args[_key26] = arguments[_key26];
392
+ for (var _len24 = arguments.length, args = new Array(_len24), _key24 = 0; _key24 < _len24; _key24++) {
393
+ args[_key24] = arguments[_key24];
394
394
  }
395
395
  return _assertClassBrand(_Formulas_brand, _this2, _onAfterDetachChild).call(_this2, ...args);
396
396
  });
397
397
  this.addHook('beforeAutofill', function () {
398
- for (var _len27 = arguments.length, args = new Array(_len27), _key27 = 0; _key27 < _len27; _key27++) {
399
- args[_key27] = arguments[_key27];
398
+ for (var _len25 = arguments.length, args = new Array(_len25), _key25 = 0; _key25 < _len25; _key25++) {
399
+ args[_key25] = arguments[_key25];
400
400
  }
401
401
  return _assertClassBrand(_Formulas_brand, _this2, _onBeforeAutofill).call(_this2, ...args);
402
402
  });
@@ -871,17 +871,16 @@ function _onAfterLoadData(sourceData, initialLoad) {
871
871
  /**
872
872
  * `modifyData` hook callback.
873
873
  *
874
- * @param {number} physicalRow Physical row index.
874
+ * @param {number} visualRow Visual row index.
875
875
  * @param {number} visualColumn Visual column index.
876
876
  * @param {object} valueHolder Object which contains original value which can be modified by overwriting `.value`
877
877
  * property.
878
878
  * @param {string} ioMode String which indicates for what operation hook is fired (`get` or `set`).
879
879
  */
880
- function _onModifyData(physicalRow, visualColumn, valueHolder, ioMode) {
880
+ function _onModifyData(visualRow, visualColumn, valueHolder, ioMode) {
881
881
  if (ioMode !== 'get' || _classPrivateFieldGet(_internalOperationPending, this) || this.sheetName === null || !this.engine.doesSheetExist(this.sheetName)) {
882
882
  return;
883
883
  }
884
- const visualRow = this.hot.toVisualRow(physicalRow);
885
884
  if (visualRow === null || visualColumn === null) {
886
885
  return;
887
886
  }
@@ -22,7 +22,7 @@ function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a),
22
22
  function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
23
23
  function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError("Private element is not present on this object"); }
24
24
  import { BasePlugin } from "../base/index.mjs";
25
- import staticRegister from "../../utils/staticRegister.mjs";
25
+ import { staticRegister } from "../../utils/staticRegister.mjs";
26
26
  import { error, warn } from "../../helpers/console.mjs";
27
27
  import { isNumeric } from "../../helpers/number.mjs";
28
28
  import { isDefined, isUndefined } from "../../helpers/mixed.mjs";
@@ -232,92 +232,92 @@ export class Formulas extends BasePlugin {
232
232
  return _assertClassBrand(_Formulas_brand, _this2, _onBeforeLoadData).call(_this2, ...args);
233
233
  });
234
234
  this.addHook('afterUpdateData', function () {
235
- for (var _len10 = arguments.length, args = new Array(_len10), _key10 = 0; _key10 < _len10; _key10++) {
236
- args[_key10] = arguments[_key10];
235
+ for (var _len0 = arguments.length, args = new Array(_len0), _key0 = 0; _key0 < _len0; _key0++) {
236
+ args[_key0] = arguments[_key0];
237
237
  }
238
238
  return _assertClassBrand(_Formulas_brand, _this2, _onAfterLoadData).call(_this2, ...args);
239
239
  });
240
240
  this.addHook('modifyData', function () {
241
- for (var _len11 = arguments.length, args = new Array(_len11), _key11 = 0; _key11 < _len11; _key11++) {
242
- args[_key11] = arguments[_key11];
241
+ for (var _len1 = arguments.length, args = new Array(_len1), _key1 = 0; _key1 < _len1; _key1++) {
242
+ args[_key1] = arguments[_key1];
243
243
  }
244
244
  return _assertClassBrand(_Formulas_brand, _this2, _onModifyData).call(_this2, ...args);
245
245
  });
246
246
  this.addHook('modifySourceData', function () {
247
- for (var _len12 = arguments.length, args = new Array(_len12), _key12 = 0; _key12 < _len12; _key12++) {
248
- args[_key12] = arguments[_key12];
247
+ for (var _len10 = arguments.length, args = new Array(_len10), _key10 = 0; _key10 < _len10; _key10++) {
248
+ args[_key10] = arguments[_key10];
249
249
  }
250
250
  return _assertClassBrand(_Formulas_brand, _this2, _onModifySourceData).call(_this2, ...args);
251
251
  });
252
252
  this.addHook('beforeValidate', function () {
253
- for (var _len13 = arguments.length, args = new Array(_len13), _key13 = 0; _key13 < _len13; _key13++) {
254
- args[_key13] = arguments[_key13];
253
+ for (var _len11 = arguments.length, args = new Array(_len11), _key11 = 0; _key11 < _len11; _key11++) {
254
+ args[_key11] = arguments[_key11];
255
255
  }
256
256
  return _assertClassBrand(_Formulas_brand, _this2, _onBeforeValidate).call(_this2, ...args);
257
257
  });
258
258
  this.addHook('afterSetSourceDataAtCell', function () {
259
- for (var _len14 = arguments.length, args = new Array(_len14), _key14 = 0; _key14 < _len14; _key14++) {
260
- args[_key14] = arguments[_key14];
259
+ for (var _len12 = arguments.length, args = new Array(_len12), _key12 = 0; _key12 < _len12; _key12++) {
260
+ args[_key12] = arguments[_key12];
261
261
  }
262
262
  return _assertClassBrand(_Formulas_brand, _this2, _onAfterSetSourceDataAtCell).call(_this2, ...args);
263
263
  });
264
264
  this.addHook('afterSetDataAtCell', function () {
265
- for (var _len15 = arguments.length, args = new Array(_len15), _key15 = 0; _key15 < _len15; _key15++) {
266
- args[_key15] = arguments[_key15];
265
+ for (var _len13 = arguments.length, args = new Array(_len13), _key13 = 0; _key13 < _len13; _key13++) {
266
+ args[_key13] = arguments[_key13];
267
267
  }
268
268
  return _assertClassBrand(_Formulas_brand, _this2, _onAfterSetDataAtCell).call(_this2, ...args);
269
269
  });
270
270
  this.addHook('afterSetDataAtRowProp', function () {
271
- for (var _len16 = arguments.length, args = new Array(_len16), _key16 = 0; _key16 < _len16; _key16++) {
272
- args[_key16] = arguments[_key16];
271
+ for (var _len14 = arguments.length, args = new Array(_len14), _key14 = 0; _key14 < _len14; _key14++) {
272
+ args[_key14] = arguments[_key14];
273
273
  }
274
274
  return _assertClassBrand(_Formulas_brand, _this2, _onAfterSetDataAtCell).call(_this2, ...args);
275
275
  });
276
276
  this.addHook('beforeCreateRow', function () {
277
- for (var _len17 = arguments.length, args = new Array(_len17), _key17 = 0; _key17 < _len17; _key17++) {
278
- args[_key17] = arguments[_key17];
277
+ for (var _len15 = arguments.length, args = new Array(_len15), _key15 = 0; _key15 < _len15; _key15++) {
278
+ args[_key15] = arguments[_key15];
279
279
  }
280
280
  return _assertClassBrand(_Formulas_brand, _this2, _onBeforeCreateRow).call(_this2, ...args);
281
281
  });
282
282
  this.addHook('beforeCreateCol', function () {
283
- for (var _len18 = arguments.length, args = new Array(_len18), _key18 = 0; _key18 < _len18; _key18++) {
284
- args[_key18] = arguments[_key18];
283
+ for (var _len16 = arguments.length, args = new Array(_len16), _key16 = 0; _key16 < _len16; _key16++) {
284
+ args[_key16] = arguments[_key16];
285
285
  }
286
286
  return _assertClassBrand(_Formulas_brand, _this2, _onBeforeCreateCol).call(_this2, ...args);
287
287
  });
288
288
  this.addHook('afterCreateRow', function () {
289
- for (var _len19 = arguments.length, args = new Array(_len19), _key19 = 0; _key19 < _len19; _key19++) {
290
- args[_key19] = arguments[_key19];
289
+ for (var _len17 = arguments.length, args = new Array(_len17), _key17 = 0; _key17 < _len17; _key17++) {
290
+ args[_key17] = arguments[_key17];
291
291
  }
292
292
  return _assertClassBrand(_Formulas_brand, _this2, _onAfterCreateRow).call(_this2, ...args);
293
293
  });
294
294
  this.addHook('afterCreateCol', function () {
295
- for (var _len20 = arguments.length, args = new Array(_len20), _key20 = 0; _key20 < _len20; _key20++) {
296
- args[_key20] = arguments[_key20];
295
+ for (var _len18 = arguments.length, args = new Array(_len18), _key18 = 0; _key18 < _len18; _key18++) {
296
+ args[_key18] = arguments[_key18];
297
297
  }
298
298
  return _assertClassBrand(_Formulas_brand, _this2, _onAfterCreateCol).call(_this2, ...args);
299
299
  });
300
300
  this.addHook('beforeRemoveRow', function () {
301
- for (var _len21 = arguments.length, args = new Array(_len21), _key21 = 0; _key21 < _len21; _key21++) {
302
- args[_key21] = arguments[_key21];
301
+ for (var _len19 = arguments.length, args = new Array(_len19), _key19 = 0; _key19 < _len19; _key19++) {
302
+ args[_key19] = arguments[_key19];
303
303
  }
304
304
  return _assertClassBrand(_Formulas_brand, _this2, _onBeforeRemoveRow).call(_this2, ...args);
305
305
  });
306
306
  this.addHook('beforeRemoveCol', function () {
307
- for (var _len22 = arguments.length, args = new Array(_len22), _key22 = 0; _key22 < _len22; _key22++) {
308
- args[_key22] = arguments[_key22];
307
+ for (var _len20 = arguments.length, args = new Array(_len20), _key20 = 0; _key20 < _len20; _key20++) {
308
+ args[_key20] = arguments[_key20];
309
309
  }
310
310
  return _assertClassBrand(_Formulas_brand, _this2, _onBeforeRemoveCol).call(_this2, ...args);
311
311
  });
312
312
  this.addHook('afterRemoveRow', function () {
313
- for (var _len23 = arguments.length, args = new Array(_len23), _key23 = 0; _key23 < _len23; _key23++) {
314
- args[_key23] = arguments[_key23];
313
+ for (var _len21 = arguments.length, args = new Array(_len21), _key21 = 0; _key21 < _len21; _key21++) {
314
+ args[_key21] = arguments[_key21];
315
315
  }
316
316
  return _assertClassBrand(_Formulas_brand, _this2, _onAfterRemoveRow).call(_this2, ...args);
317
317
  });
318
318
  this.addHook('afterRemoveCol', function () {
319
- for (var _len24 = arguments.length, args = new Array(_len24), _key24 = 0; _key24 < _len24; _key24++) {
320
- args[_key24] = arguments[_key24];
319
+ for (var _len22 = arguments.length, args = new Array(_len22), _key22 = 0; _key22 < _len22; _key22++) {
320
+ args[_key22] = arguments[_key22];
321
321
  }
322
322
  return _assertClassBrand(_Formulas_brand, _this2, _onAfterRemoveCol).call(_this2, ...args);
323
323
  });
@@ -361,8 +361,8 @@ export class Formulas extends BasePlugin {
361
361
  // hook, because some hooks, such as `afterLoadData` doesn't have information about composed cell properties.
362
362
  // Another hooks are triggered to late for setting HF's engine data needed for some actions.
363
363
  this.addHook('afterCellMetaReset', function () {
364
- for (var _len25 = arguments.length, args = new Array(_len25), _key25 = 0; _key25 < _len25; _key25++) {
365
- args[_key25] = arguments[_key25];
364
+ for (var _len23 = arguments.length, args = new Array(_len23), _key23 = 0; _key23 < _len23; _key23++) {
365
+ args[_key23] = arguments[_key23];
366
366
  }
367
367
  return _assertClassBrand(_Formulas_brand, _this2, _onAfterCellMetaReset).call(_this2, ...args);
368
368
  });
@@ -385,14 +385,14 @@ export class Formulas extends BasePlugin {
385
385
  this.indexSyncer.setPerformRedo(false);
386
386
  });
387
387
  this.addHook('afterDetachChild', function () {
388
- for (var _len26 = arguments.length, args = new Array(_len26), _key26 = 0; _key26 < _len26; _key26++) {
389
- args[_key26] = arguments[_key26];
388
+ for (var _len24 = arguments.length, args = new Array(_len24), _key24 = 0; _key24 < _len24; _key24++) {
389
+ args[_key24] = arguments[_key24];
390
390
  }
391
391
  return _assertClassBrand(_Formulas_brand, _this2, _onAfterDetachChild).call(_this2, ...args);
392
392
  });
393
393
  this.addHook('beforeAutofill', function () {
394
- for (var _len27 = arguments.length, args = new Array(_len27), _key27 = 0; _key27 < _len27; _key27++) {
395
- args[_key27] = arguments[_key27];
394
+ for (var _len25 = arguments.length, args = new Array(_len25), _key25 = 0; _key25 < _len25; _key25++) {
395
+ args[_key25] = arguments[_key25];
396
396
  }
397
397
  return _assertClassBrand(_Formulas_brand, _this2, _onBeforeAutofill).call(_this2, ...args);
398
398
  });
@@ -866,17 +866,16 @@ function _onAfterLoadData(sourceData, initialLoad) {
866
866
  /**
867
867
  * `modifyData` hook callback.
868
868
  *
869
- * @param {number} physicalRow Physical row index.
869
+ * @param {number} visualRow Visual row index.
870
870
  * @param {number} visualColumn Visual column index.
871
871
  * @param {object} valueHolder Object which contains original value which can be modified by overwriting `.value`
872
872
  * property.
873
873
  * @param {string} ioMode String which indicates for what operation hook is fired (`get` or `set`).
874
874
  */
875
- function _onModifyData(physicalRow, visualColumn, valueHolder, ioMode) {
875
+ function _onModifyData(visualRow, visualColumn, valueHolder, ioMode) {
876
876
  if (ioMode !== 'get' || _classPrivateFieldGet(_internalOperationPending, this) || this.sheetName === null || !this.engine.doesSheetExist(this.sheetName)) {
877
877
  return;
878
878
  }
879
- const visualRow = this.hot.toVisualRow(physicalRow);
880
879
  if (visualRow === null || visualColumn === null) {
881
880
  return;
882
881
  }