handsontable 0.0.0-next-6129043-20241108 → 0.0.0-next-e035192-20241108
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of handsontable might be problematic. Click here for more details.
- package/3rdparty/walkontable/src/calculator/index.js +2 -1
- package/3rdparty/walkontable/src/calculator/index.mjs +2 -2
- package/3rdparty/walkontable/src/calculator/viewportBase.js +2 -0
- package/3rdparty/walkontable/src/calculator/viewportBase.mjs +2 -0
- package/3rdparty/walkontable/src/calculator/viewportRows.js +3 -3
- package/3rdparty/walkontable/src/calculator/viewportRows.mjs +3 -3
- package/3rdparty/walkontable/src/core/_base.js +0 -3
- package/3rdparty/walkontable/src/core/_base.mjs +0 -3
- package/3rdparty/walkontable/src/core/clone.js +0 -1
- package/3rdparty/walkontable/src/core/clone.mjs +0 -1
- package/3rdparty/walkontable/src/core/core.js +0 -2
- package/3rdparty/walkontable/src/core/core.mjs +0 -2
- package/3rdparty/walkontable/src/facade/core.js +0 -3
- package/3rdparty/walkontable/src/facade/core.mjs +0 -3
- package/3rdparty/walkontable/src/index.js +1 -0
- package/3rdparty/walkontable/src/index.mjs +2 -2
- package/3rdparty/walkontable/src/overlay/_base.js +3 -3
- package/3rdparty/walkontable/src/overlay/_base.mjs +3 -3
- package/3rdparty/walkontable/src/overlay/bottom.js +2 -2
- package/3rdparty/walkontable/src/overlay/bottom.mjs +2 -2
- package/3rdparty/walkontable/src/overlay/index.js +2 -0
- package/3rdparty/walkontable/src/overlay/top.js +1 -1
- package/3rdparty/walkontable/src/overlay/top.mjs +1 -1
- package/3rdparty/walkontable/src/overlays.js +3 -0
- package/3rdparty/walkontable/src/overlays.mjs +3 -0
- package/3rdparty/walkontable/src/renderer/index.js +2 -4
- package/3rdparty/walkontable/src/renderer/index.mjs +2 -4
- package/3rdparty/walkontable/src/renderer/table.js +3 -12
- package/3rdparty/walkontable/src/renderer/table.mjs +3 -12
- package/3rdparty/walkontable/src/selection/index.js +2 -0
- package/3rdparty/walkontable/src/selection/manager.js +3 -0
- package/3rdparty/walkontable/src/selection/manager.mjs +3 -0
- package/3rdparty/walkontable/src/settings.js +2 -0
- package/3rdparty/walkontable/src/settings.mjs +2 -0
- package/3rdparty/walkontable/src/table.js +11 -15
- package/3rdparty/walkontable/src/table.mjs +11 -15
- package/3rdparty/walkontable/src/types.js +0 -1
- package/3rdparty/walkontable/src/types.mjs +0 -1
- package/3rdparty/walkontable/src/utils/column.js +1 -1
- package/3rdparty/walkontable/src/utils/column.mjs +1 -1
- package/3rdparty/walkontable/src/viewport.js +1 -1
- package/3rdparty/walkontable/src/viewport.mjs +1 -1
- package/base.js +2 -2
- package/base.mjs +2 -2
- package/core/hooks/bucket.js +4 -0
- package/core/hooks/bucket.mjs +4 -0
- package/core/index.js +2 -0
- package/core.d.ts +0 -2
- package/core.js +4 -46
- package/core.mjs +4 -46
- package/dataMap/dataMap.js +3 -0
- package/dataMap/dataMap.mjs +3 -0
- package/dataMap/dataSource.js +2 -0
- package/dataMap/dataSource.mjs +2 -0
- package/dataMap/metaManager/index.js +2 -0
- package/dataMap/metaManager/index.mjs +2 -0
- package/dataMap/metaManager/metaSchema.js +3 -23
- package/dataMap/metaManager/metaSchema.mjs +3 -23
- package/dataMap/metaManager/mods/extendMetaProperties.js +2 -0
- package/dataMap/metaManager/mods/extendMetaProperties.mjs +2 -0
- package/dist/handsontable.css +9 -17
- package/dist/handsontable.full.css +240 -249
- package/dist/handsontable.full.js +11156 -4984
- package/dist/handsontable.full.min.css +9 -11
- package/dist/handsontable.full.min.js +242 -50
- package/dist/handsontable.js +4809 -4128
- package/dist/handsontable.min.css +4 -5
- package/dist/handsontable.min.js +33 -33
- package/dist/languages/all.js +1 -1
- package/dist/languages/ar-AR.js +1 -1
- package/dist/languages/cs-CZ.js +1 -1
- package/dist/languages/de-CH.js +1 -1
- package/dist/languages/de-DE.js +1 -1
- package/dist/languages/en-US.js +1 -1
- package/dist/languages/es-MX.js +1 -1
- package/dist/languages/fr-FR.js +1 -1
- package/dist/languages/hr-HR.js +1 -1
- package/dist/languages/it-IT.js +1 -1
- package/dist/languages/ja-JP.js +1 -1
- package/dist/languages/ko-KR.js +1 -1
- package/dist/languages/lv-LV.js +1 -1
- package/dist/languages/nb-NO.js +1 -1
- package/dist/languages/nl-NL.js +1 -1
- package/dist/languages/pl-PL.js +1 -1
- package/dist/languages/pt-BR.js +1 -1
- package/dist/languages/ru-RU.js +1 -1
- package/dist/languages/sr-SP.js +1 -1
- package/dist/languages/zh-CN.js +1 -1
- package/dist/languages/zh-TW.js +1 -1
- package/editors/autocompleteEditor/autocompleteEditor.js +5 -1
- package/editors/autocompleteEditor/autocompleteEditor.mjs +5 -1
- package/editors/baseEditor/baseEditor.js +1 -1
- package/editors/baseEditor/baseEditor.mjs +1 -1
- package/editors/dateEditor/dateEditor.js +0 -2
- package/editors/dateEditor/dateEditor.mjs +0 -2
- package/editors/dropdownEditor/dropdownEditor.js +2 -0
- package/editors/dropdownEditor/dropdownEditor.mjs +2 -0
- package/editors/handsontableEditor/handsontableEditor.js +8 -5
- package/editors/handsontableEditor/handsontableEditor.mjs +8 -5
- package/editors/selectEditor/selectEditor.js +9 -20
- package/editors/selectEditor/selectEditor.mjs +9 -20
- package/editors/textEditor/textEditor.js +11 -4
- package/editors/textEditor/textEditor.mjs +11 -4
- package/focusManager.js +5 -7
- package/focusManager.mjs +5 -7
- package/helpers/array.js +2 -0
- package/helpers/array.mjs +2 -0
- package/helpers/data.js +3 -0
- package/helpers/data.mjs +3 -0
- package/helpers/dom/element.js +3 -31
- package/helpers/dom/element.mjs +3 -30
- package/helpers/mixed.js +2 -2
- package/helpers/mixed.mjs +2 -2
- package/helpers/moves.js +3 -0
- package/helpers/moves.mjs +3 -0
- package/helpers/number.js +1 -0
- package/helpers/number.mjs +1 -0
- package/helpers/object.js +2 -0
- package/helpers/object.mjs +2 -0
- package/i18n/index.js +2 -0
- package/i18n/phraseFormatters/substituteVariables.js +1 -0
- package/i18n/phraseFormatters/substituteVariables.mjs +1 -0
- package/languages/all.js +1 -1
- package/languages/ar-AR.js +1 -1
- package/languages/cs-CZ.js +1 -1
- package/languages/de-CH.js +1 -1
- package/languages/de-DE.js +1 -1
- package/languages/en-US.js +1 -1
- package/languages/es-MX.js +1 -1
- package/languages/fr-FR.js +1 -1
- package/languages/hr-HR.js +1 -1
- package/languages/index.js +1 -1
- package/languages/it-IT.js +1 -1
- package/languages/ja-JP.js +1 -1
- package/languages/ko-KR.js +1 -1
- package/languages/lv-LV.js +1 -1
- package/languages/nb-NO.js +1 -1
- package/languages/nl-NL.js +1 -1
- package/languages/pl-PL.js +1 -1
- package/languages/pt-BR.js +1 -1
- package/languages/ru-RU.js +1 -1
- package/languages/sr-SP.js +1 -1
- package/languages/zh-CN.js +1 -1
- package/languages/zh-TW.js +1 -1
- package/package.json +5 -14
- package/plugins/autoColumnSize/autoColumnSize.js +4 -0
- package/plugins/autoColumnSize/autoColumnSize.mjs +4 -0
- package/plugins/autoRowSize/autoRowSize.js +4 -0
- package/plugins/autoRowSize/autoRowSize.mjs +4 -0
- package/plugins/base/base.js +2 -0
- package/plugins/base/base.mjs +2 -0
- package/plugins/columnSorting/columnSorting.js +2 -0
- package/plugins/columnSorting/columnSorting.mjs +2 -0
- package/plugins/columnSorting/columnStatesManager.js +1 -0
- package/plugins/columnSorting/columnStatesManager.mjs +1 -0
- package/plugins/columnSorting/utils.js +3 -0
- package/plugins/columnSorting/utils.mjs +3 -0
- package/plugins/columnSummary/endpoints.js +3 -0
- package/plugins/columnSummary/endpoints.mjs +3 -0
- package/plugins/comments/commentEditor.js +0 -9
- package/plugins/comments/commentEditor.mjs +0 -9
- package/plugins/comments/comments.js +0 -8
- package/plugins/comments/comments.mjs +0 -8
- package/plugins/comments/editorResizeObserver.js +2 -0
- package/plugins/comments/editorResizeObserver.mjs +2 -0
- package/plugins/contextMenu/contextMenu.d.ts +2 -1
- package/plugins/contextMenu/menu/index.js +2 -0
- package/plugins/contextMenu/menu/menu.js +4 -3
- package/plugins/contextMenu/menu/menu.mjs +4 -3
- package/plugins/contextMenu/menu/shortcuts.js +2 -0
- package/plugins/contextMenu/menu/shortcuts.mjs +2 -0
- package/plugins/copyPaste/copyPaste.d.ts +1 -0
- package/plugins/copyPaste/copyPaste.js +3 -0
- package/plugins/copyPaste/copyPaste.mjs +3 -0
- package/plugins/customBorders/utils.js +2 -0
- package/plugins/customBorders/utils.mjs +2 -0
- package/plugins/dropdownMenu/dropdownMenu.d.ts +2 -1
- package/plugins/exportFile/types/csv.js +1 -0
- package/plugins/exportFile/types/csv.mjs +1 -0
- package/plugins/filters/component/condition.js +2 -0
- package/plugins/filters/component/condition.mjs +2 -0
- package/plugins/filters/component/operators.js +2 -0
- package/plugins/filters/component/operators.mjs +2 -0
- package/plugins/filters/component/value.js +3 -0
- package/plugins/filters/component/value.mjs +3 -0
- package/plugins/filters/conditionCollection.js +3 -0
- package/plugins/filters/conditionCollection.mjs +3 -0
- package/plugins/filters/conditionUpdateObserver.js +2 -0
- package/plugins/filters/conditionUpdateObserver.mjs +2 -0
- package/plugins/filters/filters.js +4 -0
- package/plugins/filters/filters.mjs +4 -0
- package/plugins/filters/logicalOperations/conjunction.js +2 -0
- package/plugins/filters/logicalOperations/conjunction.mjs +2 -0
- package/plugins/filters/logicalOperations/disjunction.js +2 -0
- package/plugins/filters/logicalOperations/disjunction.mjs +2 -0
- package/plugins/filters/logicalOperations/disjunctionWithExtraCondition.js +2 -0
- package/plugins/filters/logicalOperations/disjunctionWithExtraCondition.mjs +2 -0
- package/plugins/filters/menu/focusController.js +2 -0
- package/plugins/filters/menu/focusController.mjs +2 -0
- package/plugins/filters/ui/multipleSelect.js +4 -0
- package/plugins/filters/ui/multipleSelect.mjs +4 -0
- package/plugins/formulas/engine/register.js +3 -0
- package/plugins/formulas/engine/register.mjs +3 -0
- package/plugins/formulas/engine/settings.js +3 -0
- package/plugins/formulas/engine/settings.mjs +3 -0
- package/plugins/formulas/formulas.js +5 -0
- package/plugins/formulas/formulas.mjs +5 -0
- package/plugins/formulas/indexSyncer/axisSyncer.js +3 -0
- package/plugins/formulas/indexSyncer/axisSyncer.mjs +3 -0
- package/plugins/hiddenColumns/contextMenuItem/showColumn.js +2 -0
- package/plugins/hiddenColumns/contextMenuItem/showColumn.mjs +2 -0
- package/plugins/hiddenColumns/hiddenColumns.js +3 -0
- package/plugins/hiddenColumns/hiddenColumns.mjs +3 -0
- package/plugins/hiddenRows/contextMenuItem/showRow.js +2 -0
- package/plugins/hiddenRows/contextMenuItem/showRow.mjs +2 -0
- package/plugins/hiddenRows/hiddenRows.js +3 -0
- package/plugins/hiddenRows/hiddenRows.mjs +3 -0
- package/plugins/manualColumnFreeze/manualColumnFreeze.js +2 -0
- package/plugins/manualColumnFreeze/manualColumnFreeze.mjs +2 -0
- package/plugins/manualColumnMove/manualColumnMove.js +2 -0
- package/plugins/manualColumnMove/manualColumnMove.mjs +2 -0
- package/plugins/manualColumnResize/manualColumnResize.js +2 -0
- package/plugins/manualColumnResize/manualColumnResize.mjs +2 -0
- package/plugins/manualRowMove/manualRowMove.js +3 -1
- package/plugins/manualRowMove/manualRowMove.mjs +3 -1
- package/plugins/manualRowResize/manualRowResize.js +4 -1
- package/plugins/manualRowResize/manualRowResize.mjs +5 -2
- package/plugins/mergeCells/cellsCollection.js +4 -0
- package/plugins/mergeCells/cellsCollection.mjs +4 -0
- package/plugins/mergeCells/mergeCells.js +6 -1
- package/plugins/mergeCells/mergeCells.mjs +6 -1
- package/plugins/multiColumnSorting/domHelpers.js +2 -0
- package/plugins/multiColumnSorting/domHelpers.mjs +2 -0
- package/plugins/nestedHeaders/nestedHeaders.js +2 -0
- package/plugins/nestedHeaders/nestedHeaders.mjs +2 -0
- package/plugins/nestedHeaders/stateManager/index.js +1 -0
- package/plugins/nestedHeaders/stateManager/index.mjs +1 -0
- package/plugins/nestedRows/nestedRows.js +3 -0
- package/plugins/nestedRows/nestedRows.mjs +3 -0
- package/plugins/nestedRows/ui/headers.js +1 -7
- package/plugins/nestedRows/ui/headers.mjs +1 -7
- package/plugins/nestedRows/utils/rowMoveController.js +4 -0
- package/plugins/nestedRows/utils/rowMoveController.mjs +4 -0
- package/plugins/stretchColumns/calculator.js +3 -2
- package/plugins/stretchColumns/calculator.mjs +4 -3
- package/plugins/stretchColumns/strategies/all.js +3 -0
- package/plugins/stretchColumns/strategies/all.mjs +3 -0
- package/plugins/stretchColumns/strategies/last.js +2 -0
- package/plugins/stretchColumns/strategies/last.mjs +2 -0
- package/plugins/stretchColumns/stretchColumns.js +2 -0
- package/plugins/stretchColumns/stretchColumns.mjs +2 -0
- package/plugins/trimRows/trimRows.js +2 -0
- package/plugins/trimRows/trimRows.mjs +2 -0
- package/plugins/undoRedo/undoRedo.js +5 -0
- package/plugins/undoRedo/undoRedo.mjs +5 -0
- package/renderers/checkboxRenderer/checkboxRenderer.js +3 -0
- package/renderers/checkboxRenderer/checkboxRenderer.mjs +3 -0
- package/selection/index.js +2 -0
- package/selection/range.js +2 -0
- package/selection/range.mjs +2 -0
- package/selection/selection.js +3 -0
- package/selection/selection.mjs +3 -0
- package/selection/utils.js +2 -0
- package/selection/utils.mjs +2 -0
- package/settings.d.ts +0 -1
- package/shortcutContexts/commands/index.js +2 -0
- package/shortcutContexts/commands/index.mjs +2 -0
- package/shortcutContexts/index.js +2 -0
- package/shortcutContexts/index.mjs +2 -0
- package/shortcuts/context.js +3 -0
- package/shortcuts/context.mjs +3 -0
- package/shortcuts/utils.js +1 -0
- package/shortcuts/utils.mjs +1 -0
- package/tableView.js +0 -46
- package/tableView.mjs +1 -47
- package/translations/changesObservable/observable.js +2 -0
- package/translations/changesObservable/observable.mjs +2 -0
- package/translations/index.js +2 -0
- package/translations/indexMapper.js +4 -0
- package/translations/indexMapper.mjs +4 -0
- package/translations/mapCollections/index.js +2 -0
- package/translations/mapCollections/mapCollection.js +2 -0
- package/translations/mapCollections/mapCollection.mjs +2 -0
- package/translations/maps/index.js +2 -0
- package/translations/maps/linkedPhysicalIndexToValueMap.js +1 -0
- package/translations/maps/linkedPhysicalIndexToValueMap.mjs +1 -0
- package/translations/maps/utils/actionsOnIndexes.js +2 -0
- package/translations/maps/utils/actionsOnIndexes.mjs +2 -0
- package/translations/maps/utils/physicallyIndexed.js +1 -0
- package/translations/maps/utils/physicallyIndexed.mjs +1 -0
- package/utils/autoResize.js +1 -4
- package/utils/autoResize.mjs +1 -4
- package/utils/dataStructures/priorityMap.js +1 -0
- package/utils/dataStructures/priorityMap.mjs +1 -0
- package/utils/dataStructures/uniqueMap.js +2 -0
- package/utils/dataStructures/uniqueMap.mjs +2 -0
- package/utils/ghostTable.js +5 -5
- package/utils/ghostTable.mjs +5 -5
- package/utils/parseTable.js +4 -0
- package/utils/parseTable.mjs +4 -0
- package/3rdparty/walkontable/src/utils/stylesHandler.js +0 -271
- package/3rdparty/walkontable/src/utils/stylesHandler.mjs +0 -267
- package/helpers/themes.js +0 -17
- package/helpers/themes.mjs +0 -13
- package/styles/handsontable.css +0 -2053
- package/styles/handsontable.min.css +0 -30
- package/styles/ht-theme-horizon.css +0 -571
- package/styles/ht-theme-horizon.min.css +0 -30
- package/styles/ht-theme-main.css +0 -575
- package/styles/ht-theme-main.min.css +0 -30
package/dist/languages/all.js
CHANGED
@@ -2035,7 +2035,7 @@ var _default = exports["default"] = dictionary;
|
|
2035
2035
|
/******/
|
2036
2036
|
/************************************************************************/
|
2037
2037
|
var __webpack_exports__ = {};
|
2038
|
-
// This entry
|
2038
|
+
// This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
|
2039
2039
|
(() => {
|
2040
2040
|
"use strict";
|
2041
2041
|
var exports = __webpack_exports__;
|
package/dist/languages/ar-AR.js
CHANGED
@@ -57,7 +57,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__2__;
|
|
57
57
|
/******/
|
58
58
|
/************************************************************************/
|
59
59
|
var __webpack_exports__ = {};
|
60
|
-
// This entry
|
60
|
+
// This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
|
61
61
|
(() => {
|
62
62
|
"use strict";
|
63
63
|
var exports = __webpack_exports__;
|
package/dist/languages/cs-CZ.js
CHANGED
@@ -57,7 +57,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__2__;
|
|
57
57
|
/******/
|
58
58
|
/************************************************************************/
|
59
59
|
var __webpack_exports__ = {};
|
60
|
-
// This entry
|
60
|
+
// This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
|
61
61
|
(() => {
|
62
62
|
"use strict";
|
63
63
|
var exports = __webpack_exports__;
|
package/dist/languages/de-CH.js
CHANGED
@@ -57,7 +57,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__2__;
|
|
57
57
|
/******/
|
58
58
|
/************************************************************************/
|
59
59
|
var __webpack_exports__ = {};
|
60
|
-
// This entry
|
60
|
+
// This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
|
61
61
|
(() => {
|
62
62
|
"use strict";
|
63
63
|
var exports = __webpack_exports__;
|
package/dist/languages/de-DE.js
CHANGED
@@ -57,7 +57,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__2__;
|
|
57
57
|
/******/
|
58
58
|
/************************************************************************/
|
59
59
|
var __webpack_exports__ = {};
|
60
|
-
// This entry
|
60
|
+
// This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
|
61
61
|
(() => {
|
62
62
|
"use strict";
|
63
63
|
var exports = __webpack_exports__;
|
package/dist/languages/en-US.js
CHANGED
@@ -57,7 +57,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__2__;
|
|
57
57
|
/******/
|
58
58
|
/************************************************************************/
|
59
59
|
var __webpack_exports__ = {};
|
60
|
-
// This entry
|
60
|
+
// This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
|
61
61
|
(() => {
|
62
62
|
"use strict";
|
63
63
|
var exports = __webpack_exports__;
|
package/dist/languages/es-MX.js
CHANGED
@@ -57,7 +57,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__2__;
|
|
57
57
|
/******/
|
58
58
|
/************************************************************************/
|
59
59
|
var __webpack_exports__ = {};
|
60
|
-
// This entry
|
60
|
+
// This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
|
61
61
|
(() => {
|
62
62
|
"use strict";
|
63
63
|
var exports = __webpack_exports__;
|
package/dist/languages/fr-FR.js
CHANGED
@@ -57,7 +57,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__2__;
|
|
57
57
|
/******/
|
58
58
|
/************************************************************************/
|
59
59
|
var __webpack_exports__ = {};
|
60
|
-
// This entry
|
60
|
+
// This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
|
61
61
|
(() => {
|
62
62
|
"use strict";
|
63
63
|
var exports = __webpack_exports__;
|
package/dist/languages/hr-HR.js
CHANGED
@@ -57,7 +57,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__2__;
|
|
57
57
|
/******/
|
58
58
|
/************************************************************************/
|
59
59
|
var __webpack_exports__ = {};
|
60
|
-
// This entry
|
60
|
+
// This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
|
61
61
|
(() => {
|
62
62
|
"use strict";
|
63
63
|
var exports = __webpack_exports__;
|
package/dist/languages/it-IT.js
CHANGED
@@ -57,7 +57,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__2__;
|
|
57
57
|
/******/
|
58
58
|
/************************************************************************/
|
59
59
|
var __webpack_exports__ = {};
|
60
|
-
// This entry
|
60
|
+
// This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
|
61
61
|
(() => {
|
62
62
|
"use strict";
|
63
63
|
var exports = __webpack_exports__;
|
package/dist/languages/ja-JP.js
CHANGED
@@ -57,7 +57,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__2__;
|
|
57
57
|
/******/
|
58
58
|
/************************************************************************/
|
59
59
|
var __webpack_exports__ = {};
|
60
|
-
// This entry
|
60
|
+
// This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
|
61
61
|
(() => {
|
62
62
|
"use strict";
|
63
63
|
var exports = __webpack_exports__;
|
package/dist/languages/ko-KR.js
CHANGED
@@ -57,7 +57,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__2__;
|
|
57
57
|
/******/
|
58
58
|
/************************************************************************/
|
59
59
|
var __webpack_exports__ = {};
|
60
|
-
// This entry
|
60
|
+
// This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
|
61
61
|
(() => {
|
62
62
|
"use strict";
|
63
63
|
var exports = __webpack_exports__;
|
package/dist/languages/lv-LV.js
CHANGED
@@ -57,7 +57,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__2__;
|
|
57
57
|
/******/
|
58
58
|
/************************************************************************/
|
59
59
|
var __webpack_exports__ = {};
|
60
|
-
// This entry
|
60
|
+
// This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
|
61
61
|
(() => {
|
62
62
|
"use strict";
|
63
63
|
var exports = __webpack_exports__;
|
package/dist/languages/nb-NO.js
CHANGED
@@ -57,7 +57,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__2__;
|
|
57
57
|
/******/
|
58
58
|
/************************************************************************/
|
59
59
|
var __webpack_exports__ = {};
|
60
|
-
// This entry
|
60
|
+
// This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
|
61
61
|
(() => {
|
62
62
|
"use strict";
|
63
63
|
var exports = __webpack_exports__;
|
package/dist/languages/nl-NL.js
CHANGED
@@ -57,7 +57,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__2__;
|
|
57
57
|
/******/
|
58
58
|
/************************************************************************/
|
59
59
|
var __webpack_exports__ = {};
|
60
|
-
// This entry
|
60
|
+
// This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
|
61
61
|
(() => {
|
62
62
|
"use strict";
|
63
63
|
var exports = __webpack_exports__;
|
package/dist/languages/pl-PL.js
CHANGED
@@ -57,7 +57,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__2__;
|
|
57
57
|
/******/
|
58
58
|
/************************************************************************/
|
59
59
|
var __webpack_exports__ = {};
|
60
|
-
// This entry
|
60
|
+
// This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
|
61
61
|
(() => {
|
62
62
|
"use strict";
|
63
63
|
var exports = __webpack_exports__;
|
package/dist/languages/pt-BR.js
CHANGED
@@ -57,7 +57,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__2__;
|
|
57
57
|
/******/
|
58
58
|
/************************************************************************/
|
59
59
|
var __webpack_exports__ = {};
|
60
|
-
// This entry
|
60
|
+
// This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
|
61
61
|
(() => {
|
62
62
|
"use strict";
|
63
63
|
var exports = __webpack_exports__;
|
package/dist/languages/ru-RU.js
CHANGED
@@ -57,7 +57,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__2__;
|
|
57
57
|
/******/
|
58
58
|
/************************************************************************/
|
59
59
|
var __webpack_exports__ = {};
|
60
|
-
// This entry
|
60
|
+
// This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
|
61
61
|
(() => {
|
62
62
|
"use strict";
|
63
63
|
var exports = __webpack_exports__;
|
package/dist/languages/sr-SP.js
CHANGED
@@ -57,7 +57,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__2__;
|
|
57
57
|
/******/
|
58
58
|
/************************************************************************/
|
59
59
|
var __webpack_exports__ = {};
|
60
|
-
// This entry
|
60
|
+
// This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
|
61
61
|
(() => {
|
62
62
|
"use strict";
|
63
63
|
var exports = __webpack_exports__;
|
package/dist/languages/zh-CN.js
CHANGED
@@ -57,7 +57,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__2__;
|
|
57
57
|
/******/
|
58
58
|
/************************************************************************/
|
59
59
|
var __webpack_exports__ = {};
|
60
|
-
// This entry
|
60
|
+
// This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
|
61
61
|
(() => {
|
62
62
|
"use strict";
|
63
63
|
var exports = __webpack_exports__;
|
package/dist/languages/zh-TW.js
CHANGED
@@ -57,7 +57,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__2__;
|
|
57
57
|
/******/
|
58
58
|
/************************************************************************/
|
59
59
|
var __webpack_exports__ = {};
|
60
|
-
// This entry
|
60
|
+
// This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
|
61
61
|
(() => {
|
62
62
|
"use strict";
|
63
63
|
var exports = __webpack_exports__;
|
@@ -3,6 +3,10 @@
|
|
3
3
|
exports.__esModule = true;
|
4
4
|
require("core-js/modules/es.error.cause.js");
|
5
5
|
require("core-js/modules/es.array.push.js");
|
6
|
+
require("core-js/modules/esnext.iterator.constructor.js");
|
7
|
+
require("core-js/modules/esnext.iterator.filter.js");
|
8
|
+
require("core-js/modules/esnext.iterator.find.js");
|
9
|
+
require("core-js/modules/esnext.iterator.reduce.js");
|
6
10
|
var _handsontableEditor = require("../handsontableEditor");
|
7
11
|
var _array = require("../../helpers/array");
|
8
12
|
var _element = require("../../helpers/dom/element");
|
@@ -375,7 +379,7 @@ class AutocompleteEditor extends _handsontableEditor.HandsontableEditor {
|
|
375
379
|
let lastRowHeight = 0;
|
376
380
|
let height = null;
|
377
381
|
do {
|
378
|
-
lastRowHeight = this.htEditor.getRowHeight(i) || this.htEditor.view.
|
382
|
+
lastRowHeight = this.htEditor.getRowHeight(i) || this.htEditor.view._wt.getSetting('defaultRowHeight');
|
379
383
|
tempHeight += lastRowHeight;
|
380
384
|
i += 1;
|
381
385
|
} while (tempHeight < spaceAvailable);
|
@@ -1,5 +1,9 @@
|
|
1
1
|
import "core-js/modules/es.error.cause.js";
|
2
2
|
import "core-js/modules/es.array.push.js";
|
3
|
+
import "core-js/modules/esnext.iterator.constructor.js";
|
4
|
+
import "core-js/modules/esnext.iterator.filter.js";
|
5
|
+
import "core-js/modules/esnext.iterator.find.js";
|
6
|
+
import "core-js/modules/esnext.iterator.reduce.js";
|
3
7
|
function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
|
4
8
|
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
5
9
|
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; }
|
@@ -372,7 +376,7 @@ export class AutocompleteEditor extends HandsontableEditor {
|
|
372
376
|
let lastRowHeight = 0;
|
373
377
|
let height = null;
|
374
378
|
do {
|
375
|
-
lastRowHeight = this.htEditor.getRowHeight(i) || this.htEditor.view.
|
379
|
+
lastRowHeight = this.htEditor.getRowHeight(i) || this.htEditor.view._wt.getSetting('defaultRowHeight');
|
376
380
|
tempHeight += lastRowHeight;
|
377
381
|
i += 1;
|
378
382
|
} while (tempHeight < spaceAvailable);
|
@@ -492,7 +492,7 @@ class BaseEditor {
|
|
492
492
|
const actualVerticalScrollbarWidth = (0, _element.hasVerticalScrollbar)(scrollableContainerTop) ? scrollbarWidth : 0;
|
493
493
|
const actualHorizontalScrollbarWidth = (0, _element.hasHorizontalScrollbar)(scrollableContainerLeft) ? scrollbarWidth : 0;
|
494
494
|
const maxWidth = this.hot.view.maximumVisibleElementWidth(cellStartOffset) - actualVerticalScrollbarWidth + inlineStartBorderCompensation;
|
495
|
-
const maxHeight = Math.max(this.hot.view.maximumVisibleElementHeight(cellTopOffset) - actualHorizontalScrollbarWidth + topBorderCompensation,
|
495
|
+
const maxHeight = Math.max(this.hot.view.maximumVisibleElementHeight(cellTopOffset) - actualHorizontalScrollbarWidth + topBorderCompensation, 23);
|
496
496
|
return {
|
497
497
|
top: topPos,
|
498
498
|
start: inlineStartPos,
|
@@ -488,7 +488,7 @@ export class BaseEditor {
|
|
488
488
|
const actualVerticalScrollbarWidth = hasVerticalScrollbar(scrollableContainerTop) ? scrollbarWidth : 0;
|
489
489
|
const actualHorizontalScrollbarWidth = hasHorizontalScrollbar(scrollableContainerLeft) ? scrollbarWidth : 0;
|
490
490
|
const maxWidth = this.hot.view.maximumVisibleElementWidth(cellStartOffset) - actualVerticalScrollbarWidth + inlineStartBorderCompensation;
|
491
|
-
const maxHeight = Math.max(this.hot.view.maximumVisibleElementHeight(cellTopOffset) - actualHorizontalScrollbarWidth + topBorderCompensation,
|
491
|
+
const maxHeight = Math.max(this.hot.view.maximumVisibleElementHeight(cellTopOffset) - actualHorizontalScrollbarWidth + topBorderCompensation, 23);
|
492
492
|
return {
|
493
493
|
top: topPos,
|
494
494
|
start: inlineStartPos,
|
@@ -66,9 +66,7 @@ class DateEditor extends _textEditor.TextEditor {
|
|
66
66
|
this.datePickerStyle.left = 0;
|
67
67
|
this.datePickerStyle.zIndex = 9999;
|
68
68
|
this.datePicker.setAttribute('dir', this.hot.isRtl() ? 'rtl' : 'ltr');
|
69
|
-
const themeClassName = this.hot.getCurrentThemeName();
|
70
69
|
(0, _element.addClass)(this.datePicker, 'htDatepickerHolder');
|
71
|
-
(0, _element.addClass)(this.datePicker, themeClassName);
|
72
70
|
this.hot.rootDocument.body.appendChild(this.datePicker);
|
73
71
|
|
74
72
|
/**
|
@@ -62,9 +62,7 @@ export class DateEditor extends TextEditor {
|
|
62
62
|
this.datePickerStyle.left = 0;
|
63
63
|
this.datePickerStyle.zIndex = 9999;
|
64
64
|
this.datePicker.setAttribute('dir', this.hot.isRtl() ? 'rtl' : 'ltr');
|
65
|
-
const themeClassName = this.hot.getCurrentThemeName();
|
66
65
|
addClass(this.datePicker, 'htDatepickerHolder');
|
67
|
-
addClass(this.datePicker, themeClassName);
|
68
66
|
this.hot.rootDocument.body.appendChild(this.datePicker);
|
69
67
|
|
70
68
|
/**
|
@@ -1,6 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
3
|
exports.__esModule = true;
|
4
|
+
require("core-js/modules/esnext.iterator.constructor.js");
|
5
|
+
require("core-js/modules/esnext.iterator.filter.js");
|
4
6
|
var _autocompleteEditor = require("../autocompleteEditor");
|
5
7
|
var _hooks = require("../../core/hooks");
|
6
8
|
const EDITOR_TYPE = exports.EDITOR_TYPE = 'dropdown';
|
@@ -1,3 +1,5 @@
|
|
1
|
+
import "core-js/modules/esnext.iterator.constructor.js";
|
2
|
+
import "core-js/modules/esnext.iterator.filter.js";
|
1
3
|
import { AutocompleteEditor } from "../autocompleteEditor/index.mjs";
|
2
4
|
import { Hooks } from "../../core/hooks/index.mjs";
|
3
5
|
export const EDITOR_TYPE = 'dropdown';
|
@@ -23,11 +23,15 @@ class HandsontableEditor extends _textEditor.TextEditor {
|
|
23
23
|
*/
|
24
24
|
open() {
|
25
25
|
super.open();
|
26
|
+
const containerStyle = this.htContainer.style;
|
26
27
|
if (this.htEditor) {
|
27
28
|
this.htEditor.destroy();
|
29
|
+
containerStyle.width = '';
|
30
|
+
containerStyle.height = '';
|
31
|
+
containerStyle.overflow = '';
|
28
32
|
}
|
29
|
-
if (
|
30
|
-
|
33
|
+
if (containerStyle.display === 'none') {
|
34
|
+
containerStyle.display = '';
|
31
35
|
}
|
32
36
|
|
33
37
|
// Constructs and initializes a new Handsontable instance
|
@@ -40,11 +44,11 @@ class HandsontableEditor extends _textEditor.TextEditor {
|
|
40
44
|
this.htEditor.deselectCell();
|
41
45
|
}
|
42
46
|
(0, _element.setCaretPosition)(this.TEXTAREA, 0, this.TEXTAREA.value.length);
|
43
|
-
this.refreshDimensions();
|
44
47
|
this.htEditor.updateSettings({
|
45
48
|
width: this.getWidth(),
|
46
49
|
height: this.getHeight()
|
47
50
|
});
|
51
|
+
this.refreshDimensions();
|
48
52
|
}
|
49
53
|
|
50
54
|
/**
|
@@ -85,7 +89,6 @@ class HandsontableEditor extends _textEditor.TextEditor {
|
|
85
89
|
autoWrapCol: false,
|
86
90
|
autoWrapRow: false,
|
87
91
|
ariaTags: false,
|
88
|
-
themeName: this.hot.getCurrentThemeName(),
|
89
92
|
afterOnCellMouseDown(_, coords) {
|
90
93
|
const sourceValue = this.getSourceData(coords.row, coords.col);
|
91
94
|
|
@@ -159,7 +162,7 @@ class HandsontableEditor extends _textEditor.TextEditor {
|
|
159
162
|
* @returns {number}
|
160
163
|
*/
|
161
164
|
getHeight() {
|
162
|
-
return this.htEditor.view.getTableHeight()
|
165
|
+
return this.htEditor.view.getTableHeight();
|
163
166
|
}
|
164
167
|
|
165
168
|
/**
|
@@ -20,11 +20,15 @@ export class HandsontableEditor extends TextEditor {
|
|
20
20
|
*/
|
21
21
|
open() {
|
22
22
|
super.open();
|
23
|
+
const containerStyle = this.htContainer.style;
|
23
24
|
if (this.htEditor) {
|
24
25
|
this.htEditor.destroy();
|
26
|
+
containerStyle.width = '';
|
27
|
+
containerStyle.height = '';
|
28
|
+
containerStyle.overflow = '';
|
25
29
|
}
|
26
|
-
if (
|
27
|
-
|
30
|
+
if (containerStyle.display === 'none') {
|
31
|
+
containerStyle.display = '';
|
28
32
|
}
|
29
33
|
|
30
34
|
// Constructs and initializes a new Handsontable instance
|
@@ -37,11 +41,11 @@ export class HandsontableEditor extends TextEditor {
|
|
37
41
|
this.htEditor.deselectCell();
|
38
42
|
}
|
39
43
|
setCaretPosition(this.TEXTAREA, 0, this.TEXTAREA.value.length);
|
40
|
-
this.refreshDimensions();
|
41
44
|
this.htEditor.updateSettings({
|
42
45
|
width: this.getWidth(),
|
43
46
|
height: this.getHeight()
|
44
47
|
});
|
48
|
+
this.refreshDimensions();
|
45
49
|
}
|
46
50
|
|
47
51
|
/**
|
@@ -82,7 +86,6 @@ export class HandsontableEditor extends TextEditor {
|
|
82
86
|
autoWrapCol: false,
|
83
87
|
autoWrapRow: false,
|
84
88
|
ariaTags: false,
|
85
|
-
themeName: this.hot.getCurrentThemeName(),
|
86
89
|
afterOnCellMouseDown(_, coords) {
|
87
90
|
const sourceValue = this.getSourceData(coords.row, coords.col);
|
88
91
|
|
@@ -156,7 +159,7 @@ export class HandsontableEditor extends TextEditor {
|
|
156
159
|
* @returns {number}
|
157
160
|
*/
|
158
161
|
getHeight() {
|
159
|
-
return this.htEditor.view.getTableHeight()
|
162
|
+
return this.htEditor.view.getTableHeight();
|
160
163
|
}
|
161
164
|
|
162
165
|
/**
|
@@ -4,7 +4,6 @@ exports.__esModule = true;
|
|
4
4
|
var _baseEditor = require("../baseEditor");
|
5
5
|
var _element = require("../../helpers/dom/element");
|
6
6
|
var _object = require("../../helpers/object");
|
7
|
-
var _a11y = require("../../helpers/a11y");
|
8
7
|
const EDITOR_VISIBLE_CLASS_NAME = 'ht_editor_visible';
|
9
8
|
const SHORTCUTS_GROUP = 'selectEditor';
|
10
9
|
const EDITOR_TYPE = exports.EDITOR_TYPE = 'select';
|
@@ -22,21 +21,11 @@ class SelectEditor extends _baseEditor.BaseEditor {
|
|
22
21
|
* Initializes editor instance, DOM Element and mount hooks.
|
23
22
|
*/
|
24
23
|
init() {
|
25
|
-
this.selectWrapper = this.hot.rootDocument.createElement('div');
|
26
24
|
this.select = this.hot.rootDocument.createElement('select');
|
27
25
|
this.select.setAttribute('data-hot-input', 'true');
|
28
|
-
this.
|
29
|
-
|
30
|
-
|
31
|
-
ARROW.className = 'htAutocompleteArrow';
|
32
|
-
if (isAriaEnabled) {
|
33
|
-
ARROW.setAttribute(...(0, _a11y.A11Y_HIDDEN)());
|
34
|
-
}
|
35
|
-
ARROW.appendChild(this.hot.rootDocument.createTextNode(String.fromCharCode(9660)));
|
36
|
-
(0, _element.addClass)(this.selectWrapper, 'htSelectEditor');
|
37
|
-
this.selectWrapper.appendChild(this.select);
|
38
|
-
this.selectWrapper.insertBefore(ARROW, this.selectWrapper.firstChild);
|
39
|
-
this.hot.rootElement.appendChild(this.selectWrapper);
|
26
|
+
this.select.style.display = 'none';
|
27
|
+
(0, _element.addClass)(this.select, 'htSelectEditor');
|
28
|
+
this.hot.rootElement.appendChild(this.select);
|
40
29
|
this.registerHooks();
|
41
30
|
}
|
42
31
|
|
@@ -64,7 +53,7 @@ class SelectEditor extends _baseEditor.BaseEditor {
|
|
64
53
|
open() {
|
65
54
|
this._opened = true;
|
66
55
|
this.refreshDimensions();
|
67
|
-
this.
|
56
|
+
this.select.style.display = '';
|
68
57
|
const shortcutManager = this.hot.getShortcutManager();
|
69
58
|
shortcutManager.setActiveContextName('editor');
|
70
59
|
this.registerShortcuts();
|
@@ -75,9 +64,9 @@ class SelectEditor extends _baseEditor.BaseEditor {
|
|
75
64
|
*/
|
76
65
|
close() {
|
77
66
|
this._opened = false;
|
78
|
-
this.
|
79
|
-
if ((0, _element.hasClass)(this.
|
80
|
-
(0, _element.removeClass)(this.
|
67
|
+
this.select.style.display = 'none';
|
68
|
+
if ((0, _element.hasClass)(this.select, EDITOR_VISIBLE_CLASS_NAME)) {
|
69
|
+
(0, _element.removeClass)(this.select, EDITOR_VISIBLE_CLASS_NAME);
|
81
70
|
}
|
82
71
|
this.unregisterShortcuts();
|
83
72
|
this.clearHooks();
|
@@ -183,13 +172,13 @@ class SelectEditor extends _baseEditor.BaseEditor {
|
|
183
172
|
width,
|
184
173
|
height
|
185
174
|
} = this.getEditedCellRect();
|
186
|
-
const selectStyle = this.
|
175
|
+
const selectStyle = this.select.style;
|
187
176
|
selectStyle.height = `${height}px`;
|
188
177
|
selectStyle.width = `${width}px`;
|
189
178
|
selectStyle.top = `${top}px`;
|
190
179
|
selectStyle[this.hot.isRtl() ? 'right' : 'left'] = `${start}px`;
|
191
180
|
selectStyle.margin = '0px';
|
192
|
-
(0, _element.addClass)(this.
|
181
|
+
(0, _element.addClass)(this.select, EDITOR_VISIBLE_CLASS_NAME);
|
193
182
|
}
|
194
183
|
|
195
184
|
/**
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import { BaseEditor, EDITOR_STATE } from "../baseEditor/index.mjs";
|
2
2
|
import { addClass, empty, fastInnerHTML, hasClass, removeClass } from "../../helpers/dom/element.mjs";
|
3
3
|
import { objectEach } from "../../helpers/object.mjs";
|
4
|
-
import { A11Y_HIDDEN } from "../../helpers/a11y.mjs";
|
5
4
|
const EDITOR_VISIBLE_CLASS_NAME = 'ht_editor_visible';
|
6
5
|
const SHORTCUTS_GROUP = 'selectEditor';
|
7
6
|
export const EDITOR_TYPE = 'select';
|
@@ -19,21 +18,11 @@ export class SelectEditor extends BaseEditor {
|
|
19
18
|
* Initializes editor instance, DOM Element and mount hooks.
|
20
19
|
*/
|
21
20
|
init() {
|
22
|
-
this.selectWrapper = this.hot.rootDocument.createElement('div');
|
23
21
|
this.select = this.hot.rootDocument.createElement('select');
|
24
22
|
this.select.setAttribute('data-hot-input', 'true');
|
25
|
-
this.
|
26
|
-
|
27
|
-
|
28
|
-
ARROW.className = 'htAutocompleteArrow';
|
29
|
-
if (isAriaEnabled) {
|
30
|
-
ARROW.setAttribute(...A11Y_HIDDEN());
|
31
|
-
}
|
32
|
-
ARROW.appendChild(this.hot.rootDocument.createTextNode(String.fromCharCode(9660)));
|
33
|
-
addClass(this.selectWrapper, 'htSelectEditor');
|
34
|
-
this.selectWrapper.appendChild(this.select);
|
35
|
-
this.selectWrapper.insertBefore(ARROW, this.selectWrapper.firstChild);
|
36
|
-
this.hot.rootElement.appendChild(this.selectWrapper);
|
23
|
+
this.select.style.display = 'none';
|
24
|
+
addClass(this.select, 'htSelectEditor');
|
25
|
+
this.hot.rootElement.appendChild(this.select);
|
37
26
|
this.registerHooks();
|
38
27
|
}
|
39
28
|
|
@@ -61,7 +50,7 @@ export class SelectEditor extends BaseEditor {
|
|
61
50
|
open() {
|
62
51
|
this._opened = true;
|
63
52
|
this.refreshDimensions();
|
64
|
-
this.
|
53
|
+
this.select.style.display = '';
|
65
54
|
const shortcutManager = this.hot.getShortcutManager();
|
66
55
|
shortcutManager.setActiveContextName('editor');
|
67
56
|
this.registerShortcuts();
|
@@ -72,9 +61,9 @@ export class SelectEditor extends BaseEditor {
|
|
72
61
|
*/
|
73
62
|
close() {
|
74
63
|
this._opened = false;
|
75
|
-
this.
|
76
|
-
if (hasClass(this.
|
77
|
-
removeClass(this.
|
64
|
+
this.select.style.display = 'none';
|
65
|
+
if (hasClass(this.select, EDITOR_VISIBLE_CLASS_NAME)) {
|
66
|
+
removeClass(this.select, EDITOR_VISIBLE_CLASS_NAME);
|
78
67
|
}
|
79
68
|
this.unregisterShortcuts();
|
80
69
|
this.clearHooks();
|
@@ -180,13 +169,13 @@ export class SelectEditor extends BaseEditor {
|
|
180
169
|
width,
|
181
170
|
height
|
182
171
|
} = this.getEditedCellRect();
|
183
|
-
const selectStyle = this.
|
172
|
+
const selectStyle = this.select.style;
|
184
173
|
selectStyle.height = `${height}px`;
|
185
174
|
selectStyle.width = `${width}px`;
|
186
175
|
selectStyle.top = `${top}px`;
|
187
176
|
selectStyle[this.hot.isRtl() ? 'right' : 'left'] = `${start}px`;
|
188
177
|
selectStyle.margin = '0px';
|
189
|
-
addClass(this.
|
178
|
+
addClass(this.select, EDITOR_VISIBLE_CLASS_NAME);
|
190
179
|
}
|
191
180
|
|
192
181
|
/**
|
@@ -309,12 +309,19 @@ class TextEditor extends _baseEditor.BaseEditor {
|
|
309
309
|
this.TEXTAREA.style.fontSize = cellComputedStyle.fontSize;
|
310
310
|
this.TEXTAREA.style.fontFamily = cellComputedStyle.fontFamily;
|
311
311
|
this.TEXTAREA.style.backgroundColor = this.TD.style.backgroundColor;
|
312
|
+
const textareaComputedStyle = this.hot.rootWindow.getComputedStyle(this.TEXTAREA);
|
313
|
+
const horizontalPadding = parseInt(textareaComputedStyle.paddingLeft, 10) + parseInt(textareaComputedStyle.paddingRight, 10);
|
314
|
+
const verticalPadding = parseInt(textareaComputedStyle.paddingTop, 10) + parseInt(textareaComputedStyle.paddingBottom, 10);
|
315
|
+
const finalWidth = width - horizontalPadding;
|
316
|
+
const finalHeight = height - verticalPadding;
|
317
|
+
const finalMaxWidth = maxWidth - horizontalPadding;
|
318
|
+
const finalMaxHeight = maxHeight - verticalPadding;
|
312
319
|
this.autoResize.init(this.TEXTAREA, {
|
313
|
-
minWidth: Math.min(
|
314
|
-
minHeight: Math.min(
|
320
|
+
minWidth: Math.min(finalWidth, finalMaxWidth),
|
321
|
+
minHeight: Math.min(finalHeight, finalMaxHeight),
|
315
322
|
// TEXTAREA should never be wider than visible part of the viewport (should not cover the scrollbar)
|
316
|
-
maxWidth,
|
317
|
-
maxHeight
|
323
|
+
maxWidth: finalMaxWidth,
|
324
|
+
maxHeight: finalMaxHeight
|
318
325
|
}, true);
|
319
326
|
}
|
320
327
|
|
@@ -305,12 +305,19 @@ export class TextEditor extends BaseEditor {
|
|
305
305
|
this.TEXTAREA.style.fontSize = cellComputedStyle.fontSize;
|
306
306
|
this.TEXTAREA.style.fontFamily = cellComputedStyle.fontFamily;
|
307
307
|
this.TEXTAREA.style.backgroundColor = this.TD.style.backgroundColor;
|
308
|
+
const textareaComputedStyle = this.hot.rootWindow.getComputedStyle(this.TEXTAREA);
|
309
|
+
const horizontalPadding = parseInt(textareaComputedStyle.paddingLeft, 10) + parseInt(textareaComputedStyle.paddingRight, 10);
|
310
|
+
const verticalPadding = parseInt(textareaComputedStyle.paddingTop, 10) + parseInt(textareaComputedStyle.paddingBottom, 10);
|
311
|
+
const finalWidth = width - horizontalPadding;
|
312
|
+
const finalHeight = height - verticalPadding;
|
313
|
+
const finalMaxWidth = maxWidth - horizontalPadding;
|
314
|
+
const finalMaxHeight = maxHeight - verticalPadding;
|
308
315
|
this.autoResize.init(this.TEXTAREA, {
|
309
|
-
minWidth: Math.min(
|
310
|
-
minHeight: Math.min(
|
316
|
+
minWidth: Math.min(finalWidth, finalMaxWidth),
|
317
|
+
minHeight: Math.min(finalHeight, finalMaxHeight),
|
311
318
|
// TEXTAREA should never be wider than visible part of the viewport (should not cover the scrollbar)
|
312
|
-
maxWidth,
|
313
|
-
maxHeight
|
319
|
+
maxWidth: finalMaxWidth,
|
320
|
+
maxHeight: finalMaxHeight
|
314
321
|
}, true);
|
315
322
|
}
|
316
323
|
|
package/focusManager.js
CHANGED
@@ -163,12 +163,11 @@ class FocusManager {
|
|
163
163
|
* @returns {HTMLTextAreaElement|HTMLElement|undefined}
|
164
164
|
*/
|
165
165
|
getRefocusElement() {
|
166
|
+
var _classPrivateFieldGet2;
|
166
167
|
if (typeof _classPrivateFieldGet(_refocusElementGetter, this) === 'function') {
|
167
168
|
return _classPrivateFieldGet(_refocusElementGetter, this).call(this);
|
168
|
-
} else {
|
169
|
-
var _classPrivateFieldGet2;
|
170
|
-
return (_classPrivateFieldGet2 = _classPrivateFieldGet(_hot, this).getActiveEditor()) === null || _classPrivateFieldGet2 === void 0 ? void 0 : _classPrivateFieldGet2.TEXTAREA;
|
171
169
|
}
|
170
|
+
return (_classPrivateFieldGet2 = _classPrivateFieldGet(_hot, this).getActiveEditor()) === null || _classPrivateFieldGet2 === void 0 ? void 0 : _classPrivateFieldGet2.TEXTAREA;
|
172
171
|
}
|
173
172
|
|
174
173
|
/**
|
@@ -209,13 +208,12 @@ class FocusManager {
|
|
209
208
|
refocusToEditorTextarea() {
|
210
209
|
var _classPrivateFieldGet5;
|
211
210
|
let delay = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _classPrivateFieldGet(_refocusDelay, this);
|
212
|
-
const refocusElement = this.getRefocusElement();
|
213
|
-
|
214
211
|
// Re-focus on the editor's `TEXTAREA` element (or a predefined element) if the `imeFastEdit` option is enabled.
|
215
|
-
if (_classPrivateFieldGet(_hot, this).getSettings().imeFastEdit && !((_classPrivateFieldGet5 = _classPrivateFieldGet(_hot, this).getActiveEditor()) !== null && _classPrivateFieldGet5 !== void 0 && _classPrivateFieldGet5.isOpened())
|
212
|
+
if (_classPrivateFieldGet(_hot, this).getSettings().imeFastEdit && !((_classPrivateFieldGet5 = _classPrivateFieldGet(_hot, this).getActiveEditor()) !== null && _classPrivateFieldGet5 !== void 0 && _classPrivateFieldGet5.isOpened())) {
|
216
213
|
if (!_classPrivateFieldGet(_debouncedSelect, this).has(delay)) {
|
217
214
|
_classPrivateFieldGet(_debouncedSelect, this).set(delay, (0, _function.debounce)(() => {
|
218
|
-
|
215
|
+
var _this$getRefocusEleme;
|
216
|
+
(_this$getRefocusEleme = this.getRefocusElement()) === null || _this$getRefocusEleme === void 0 || _this$getRefocusEleme.select();
|
219
217
|
}, delay));
|
220
218
|
}
|
221
219
|
_classPrivateFieldGet(_debouncedSelect, this).get(delay)();
|