handsontable 0.0.0-next-fd9f817-20241125 → 0.0.0-next-fcb9b77-20241126
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/viewportRows.js +3 -3
- package/3rdparty/walkontable/src/calculator/viewportRows.mjs +3 -3
- package/3rdparty/walkontable/src/core/_base.js +19 -26
- package/3rdparty/walkontable/src/core/_base.mjs +19 -26
- 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 +6 -9
- package/3rdparty/walkontable/src/facade/core.mjs +6 -9
- package/3rdparty/walkontable/src/index.js +1 -0
- package/3rdparty/walkontable/src/index.mjs +2 -2
- package/3rdparty/walkontable/src/overlay/_base.js +1 -3
- package/3rdparty/walkontable/src/overlay/_base.mjs +1 -3
- package/3rdparty/walkontable/src/overlay/bottom.js +2 -2
- package/3rdparty/walkontable/src/overlay/bottom.mjs +2 -2
- package/3rdparty/walkontable/src/overlay/top.js +1 -1
- package/3rdparty/walkontable/src/overlay/top.mjs +1 -1
- 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/scroll.js +46 -37
- package/3rdparty/walkontable/src/scroll.mjs +46 -37
- package/3rdparty/walkontable/src/settings.js +2 -0
- package/3rdparty/walkontable/src/settings.mjs +2 -0
- package/3rdparty/walkontable/src/table.js +9 -17
- package/3rdparty/walkontable/src/table.mjs +9 -17
- 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 +0 -1
- package/3rdparty/walkontable/src/viewport.mjs +0 -1
- package/base.js +2 -2
- package/base.mjs +2 -2
- package/core/hooks/constants.js +7 -9
- package/core/hooks/constants.mjs +7 -9
- package/core/hooks/index.d.ts +2 -3
- package/core.d.ts +0 -2
- package/core.js +3 -64
- package/core.mjs +3 -64
- package/dataMap/metaManager/metaSchema.js +3 -23
- package/dataMap/metaManager/metaSchema.mjs +3 -23
- package/dist/handsontable.css +9 -17
- package/dist/handsontable.full.css +240 -249
- package/dist/handsontable.full.js +4386 -4760
- package/dist/handsontable.full.min.css +9 -11
- package/dist/handsontable.full.min.js +53 -53
- package/dist/handsontable.js +4087 -4467
- package/dist/handsontable.min.css +4 -5
- package/dist/handsontable.min.js +33 -33
- package/editors/autocompleteEditor/autocompleteEditor.js +1 -1
- package/editors/autocompleteEditor/autocompleteEditor.mjs +1 -1
- package/editors/baseEditor/baseEditor.js +1 -1
- package/editors/baseEditor/baseEditor.mjs +1 -1
- package/editors/dateEditor/dateEditor.js +0 -9
- package/editors/dateEditor/dateEditor.mjs +1 -10
- package/editors/handsontableEditor/handsontableEditor.js +1 -7
- package/editors/handsontableEditor/handsontableEditor.mjs +1 -7
- 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/helpers/dom/element.js +1 -32
- package/helpers/dom/element.mjs +1 -31
- package/helpers/mixed.js +2 -2
- package/helpers/mixed.mjs +2 -2
- package/package.json +3 -10
- package/plugins/comments/commentEditor.js +0 -9
- package/plugins/comments/commentEditor.mjs +0 -9
- package/plugins/comments/comments.js +0 -14
- package/plugins/comments/comments.mjs +1 -15
- package/plugins/contextMenu/menu/menu.js +4 -9
- package/plugins/contextMenu/menu/menu.mjs +4 -9
- package/plugins/contextMenu/predefinedItems/alignment.js +7 -84
- package/plugins/contextMenu/predefinedItems/alignment.mjs +8 -85
- package/plugins/contextMenu/utils.js +0 -10
- package/plugins/contextMenu/utils.mjs +0 -9
- package/plugins/filters/ui/multipleSelect.js +0 -6
- package/plugins/filters/ui/multipleSelect.mjs +0 -6
- package/plugins/manualRowMove/manualRowMove.js +1 -1
- package/plugins/manualRowMove/manualRowMove.mjs +1 -1
- package/plugins/manualRowResize/manualRowResize.js +2 -1
- package/plugins/manualRowResize/manualRowResize.mjs +3 -2
- package/plugins/mergeCells/mergeCells.js +1 -1
- package/plugins/mergeCells/mergeCells.mjs +1 -1
- package/plugins/nestedHeaders/nestedHeaders.js +60 -15
- package/plugins/nestedHeaders/nestedHeaders.mjs +60 -15
- package/plugins/nestedRows/ui/headers.js +1 -7
- package/plugins/nestedRows/ui/headers.mjs +1 -7
- package/plugins/stretchColumns/calculator.js +1 -2
- package/plugins/stretchColumns/calculator.mjs +2 -3
- package/selection/selection.js +4 -2
- package/selection/selection.mjs +4 -2
- package/settings.d.ts +0 -1
- package/tableView.js +23 -64
- package/tableView.mjs +24 -65
- package/utils/autoResize.js +1 -4
- package/utils/autoResize.mjs +1 -4
- package/utils/ghostTable.js +3 -5
- package/utils/ghostTable.mjs +3 -5
- package/3rdparty/walkontable/src/utils/stylesHandler.js +0 -287
- package/3rdparty/walkontable/src/utils/stylesHandler.mjs +0 -283
- package/helpers/themes.js +0 -17
- package/helpers/themes.mjs +0 -13
- package/styles/handsontable.css +0 -2187
- package/styles/handsontable.min.css +0 -30
- package/styles/ht-theme-horizon.css +0 -607
- package/styles/ht-theme-horizon.min.css +0 -30
- package/styles/ht-theme-main.css +0 -613
- package/styles/ht-theme-main.min.css +0 -30
package/core/hooks/index.d.ts
CHANGED
@@ -134,7 +134,6 @@ export interface Events {
|
|
134
134
|
afterSetDataAtCell?: (changes: CellChange[], source?: ChangeSource) => void;
|
135
135
|
afterSetDataAtRowProp?: (changes: CellChange[], source?: ChangeSource) => void;
|
136
136
|
afterSetSourceDataAtCell?: (changes: CellChange[], source?: ChangeSource) => void;
|
137
|
-
afterSetTheme?: (themeName: string|boolean|undefined, firstRun: boolean) => void;
|
138
137
|
afterSheetAdded?: (addedSheetDisplayName: string) => void;
|
139
138
|
afterSheetRemoved?: (removedSheetDisplayName: string, changes: ExportedChange[]) => void;
|
140
139
|
afterSheetRenamed?: (oldDisplayName: string, newDisplayName: string) => void;
|
@@ -227,8 +226,8 @@ export interface Events {
|
|
227
226
|
beforeUpdateData?: (sourceData: CellValue[], initialLoad: boolean, source: string | undefined) => void;
|
228
227
|
beforeValidate?: (value: CellValue, row: number, prop: string | number, source?: ChangeSource) => void;
|
229
228
|
beforeValueRender?: (value: CellValue, cellProperties: CellProperties) => void;
|
230
|
-
beforeViewportScrollVertically?: (visualRow: number) => number | boolean;
|
231
|
-
beforeViewportScrollHorizontally?: (visualColumn: number) => number | boolean;
|
229
|
+
beforeViewportScrollVertically?: (visualRow: number, snapping: 'auto' | 'top' | 'bottom') => number | boolean | null;
|
230
|
+
beforeViewportScrollHorizontally?: (visualColumn: number, snapping: 'auto' | 'start' | 'end') => number | boolean | null;
|
232
231
|
beforeViewportScroll?: () => void;
|
233
232
|
beforeViewRender?: (isForced: boolean, skipRender: { skipRender?: boolean }) => void;
|
234
233
|
construct?: () => void;
|
package/core.d.ts
CHANGED
@@ -73,7 +73,6 @@ export default class Core {
|
|
73
73
|
getCoords(element: Element | null): CellCoords;
|
74
74
|
getCopyableData(row: number, column: number): string;
|
75
75
|
getCopyableText(startRow: number, startColumn: number, endRow: number, endColumn: number): string;
|
76
|
-
getCurrentThemeName(): string | undefined;
|
77
76
|
getData(row?: number, column?: number, row2?: number, column2?: number): CellValue[];
|
78
77
|
getDataAtCell(row: number, column: number): CellValue;
|
79
78
|
getDataAtCol(column: number): CellValue[];
|
@@ -180,7 +179,6 @@ export default class Core {
|
|
180
179
|
unlisten(): void;
|
181
180
|
updateData(data: CellValue[][] | RowObject[], source?: string): void;
|
182
181
|
updateSettings(settings: GridSettings, init?: boolean): void;
|
183
|
-
useTheme(themeName: string|boolean|undefined): void;
|
184
182
|
validateCell(value: any, cellProperties: CellProperties, callback: (valid: boolean) => void, source: string): void;
|
185
183
|
validateCells(callback?: (valid: boolean) => void): void;
|
186
184
|
validateColumns(columns: number[], callback?: (valid: boolean) => void): void;
|
package/core.js
CHANGED
@@ -47,7 +47,6 @@ var _index3 = require("./core/index");
|
|
47
47
|
var _uniqueMap = require("./utils/dataStructures/uniqueMap");
|
48
48
|
var _shortcuts = require("./shortcuts");
|
49
49
|
var _shortcutContexts = require("./shortcutContexts");
|
50
|
-
var _themes = require("./helpers/themes");
|
51
50
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
52
51
|
let activeGuid = null;
|
53
52
|
|
@@ -235,7 +234,6 @@ function Core(rootElement, userSettings) {
|
|
235
234
|
rootElement.insertBefore(this.container, rootElement.firstChild);
|
236
235
|
if ((0, _rootInstance.isRootInstance)(this)) {
|
237
236
|
(0, _mixed._injectProductInfo)(userSettings.licenseKey, rootElement);
|
238
|
-
(0, _element.addClass)(rootElement, 'ht-wrapper');
|
239
237
|
}
|
240
238
|
this.guid = `ht_${(0, _string.randomString)()}`; // this is the namespace for global events
|
241
239
|
|
@@ -1036,13 +1034,6 @@ function Core(rootElement, userSettings) {
|
|
1036
1034
|
}
|
1037
1035
|
this.updateSettings(tableMeta, true);
|
1038
1036
|
this.view = new _tableView.default(this);
|
1039
|
-
const themeName = tableMeta.themeName || (0, _themes.getThemeClassName)(instance.rootElement);
|
1040
|
-
|
1041
|
-
// Use the theme defined as a root element class or in the settings (in that order).
|
1042
|
-
instance.useTheme(themeName);
|
1043
|
-
|
1044
|
-
// Add the theme class name to the license info element.
|
1045
|
-
instance.view.addClassNameToLicenseElement(instance.getCurrentThemeName());
|
1046
1037
|
editorManager = _editorManager.default.getInstance(instance, tableMeta, selection);
|
1047
1038
|
viewportScroller = (0, _index3.createViewportScroller)(instance);
|
1048
1039
|
focusManager = new _focusManager.FocusManager(instance);
|
@@ -2396,19 +2387,6 @@ function Core(rootElement, userSettings) {
|
|
2396
2387
|
if (instance.view) {
|
2397
2388
|
instance.view._wt.wtViewport.resetHasOversizedColumnHeadersMarked();
|
2398
2389
|
instance.view._wt.exportSettingsAsClassNames();
|
2399
|
-
const currentThemeName = instance.getCurrentThemeName();
|
2400
|
-
const themeNameOptionExists = (0, _object.hasOwnProperty)(settings, 'themeName');
|
2401
|
-
if (currentThemeName && themeNameOptionExists) {
|
2402
|
-
instance.view.getStylesHandler().removeClassNames();
|
2403
|
-
instance.view.removeClassNameFromLicenseElement(currentThemeName);
|
2404
|
-
}
|
2405
|
-
const themeName = themeNameOptionExists && settings.themeName || (0, _themes.getThemeClassName)(instance.rootElement);
|
2406
|
-
|
2407
|
-
// Use the theme defined as a root element class or in the settings (in that order).
|
2408
|
-
instance.useTheme(themeName);
|
2409
|
-
|
2410
|
-
// Add the theme class name to the license info element.
|
2411
|
-
instance.view.addClassNameToLicenseElement(instance.getCurrentThemeName());
|
2412
2390
|
}
|
2413
2391
|
instance.runHooks('afterUpdateSettings', settings);
|
2414
2392
|
}
|
@@ -4105,22 +4083,8 @@ function Core(rootElement, userSettings) {
|
|
4105
4083
|
const {
|
4106
4084
|
row,
|
4107
4085
|
col,
|
4108
|
-
verticalSnap,
|
4109
|
-
horizontalSnap,
|
4110
4086
|
considerHiddenIndexes
|
4111
4087
|
} = (_options = options) !== null && _options !== void 0 ? _options : {};
|
4112
|
-
let snapToTop;
|
4113
|
-
let snapToBottom;
|
4114
|
-
let snapToInlineStart;
|
4115
|
-
let snapToInlineEnd;
|
4116
|
-
if (verticalSnap !== undefined) {
|
4117
|
-
snapToTop = verticalSnap === 'top';
|
4118
|
-
snapToBottom = !snapToTop;
|
4119
|
-
}
|
4120
|
-
if (horizontalSnap !== undefined) {
|
4121
|
-
snapToInlineStart = horizontalSnap === 'start';
|
4122
|
-
snapToInlineEnd = !snapToInlineStart;
|
4123
|
-
}
|
4124
4088
|
let renderableRow = row;
|
4125
4089
|
let renderableColumn = col;
|
4126
4090
|
if (considerHiddenIndexes === undefined || considerHiddenIndexes) {
|
@@ -4137,13 +4101,13 @@ function Core(rootElement, userSettings) {
|
|
4137
4101
|
const isRowInteger = Number.isInteger(renderableRow);
|
4138
4102
|
const isColumnInteger = Number.isInteger(renderableColumn);
|
4139
4103
|
if (isRowInteger && renderableRow >= 0 && isColumnInteger && renderableColumn >= 0) {
|
4140
|
-
return instance.view.scrollViewport(instance._createCellCoords(renderableRow, renderableColumn),
|
4104
|
+
return instance.view.scrollViewport(instance._createCellCoords(renderableRow, renderableColumn), options.horizontalSnap, options.verticalSnap);
|
4141
4105
|
}
|
4142
4106
|
if (isRowInteger && renderableRow >= 0 && (isColumnInteger && renderableColumn < 0 || !isColumnInteger)) {
|
4143
|
-
return instance.view.scrollViewportVertically(renderableRow,
|
4107
|
+
return instance.view.scrollViewportVertically(renderableRow, options.verticalSnap);
|
4144
4108
|
}
|
4145
4109
|
if (isColumnInteger && renderableColumn >= 0 && (isRowInteger && renderableRow < 0 || !isRowInteger)) {
|
4146
|
-
return instance.view.scrollViewportHorizontally(renderableColumn,
|
4110
|
+
return instance.view.scrollViewportHorizontally(renderableColumn, options.horizontalSnap);
|
4147
4111
|
}
|
4148
4112
|
return false;
|
4149
4113
|
};
|
@@ -4612,31 +4576,6 @@ function Core(rootElement, userSettings) {
|
|
4612
4576
|
};
|
4613
4577
|
this.timeouts = [];
|
4614
4578
|
|
4615
|
-
/**
|
4616
|
-
* Use the theme specified by the provided name.
|
4617
|
-
*
|
4618
|
-
* @memberof Core#
|
4619
|
-
* @function useTheme
|
4620
|
-
* @since 15.0.0
|
4621
|
-
* @param {string|boolean|undefined} themeName The name of the theme to use.
|
4622
|
-
*/
|
4623
|
-
this.useTheme = themeName => {
|
4624
|
-
this.view.getStylesHandler().useTheme(themeName);
|
4625
|
-
this.runHooks('afterSetTheme', themeName, !!firstRun);
|
4626
|
-
};
|
4627
|
-
|
4628
|
-
/**
|
4629
|
-
* Gets the name of the currently used theme.
|
4630
|
-
*
|
4631
|
-
* @memberof Core#
|
4632
|
-
* @function getCurrentThemeName
|
4633
|
-
* @since 15.0.0
|
4634
|
-
* @returns {string|undefined} The name of the currently used theme.
|
4635
|
-
*/
|
4636
|
-
this.getCurrentThemeName = () => {
|
4637
|
-
return this.view.getStylesHandler().getThemeName();
|
4638
|
-
};
|
4639
|
-
|
4640
4579
|
/**
|
4641
4580
|
* Sets timeout. Purpose of this method is to clear all known timeouts when `destroy` method is called.
|
4642
4581
|
*
|
package/core.mjs
CHANGED
@@ -43,7 +43,6 @@ import { installFocusCatcher, createViewportScroller } from "./core/index.mjs";
|
|
43
43
|
import { createUniqueMap } from "./utils/dataStructures/uniqueMap.mjs";
|
44
44
|
import { createShortcutManager } from "./shortcuts/index.mjs";
|
45
45
|
import { registerAllShortcutContexts } from "./shortcutContexts/index.mjs";
|
46
|
-
import { getThemeClassName } from "./helpers/themes.mjs";
|
47
46
|
let activeGuid = null;
|
48
47
|
|
49
48
|
/**
|
@@ -230,7 +229,6 @@ export default function Core(rootElement, userSettings) {
|
|
230
229
|
rootElement.insertBefore(this.container, rootElement.firstChild);
|
231
230
|
if (isRootInstance(this)) {
|
232
231
|
_injectProductInfo(userSettings.licenseKey, rootElement);
|
233
|
-
addClass(rootElement, 'ht-wrapper');
|
234
232
|
}
|
235
233
|
this.guid = `ht_${randomString()}`; // this is the namespace for global events
|
236
234
|
|
@@ -1031,13 +1029,6 @@ export default function Core(rootElement, userSettings) {
|
|
1031
1029
|
}
|
1032
1030
|
this.updateSettings(tableMeta, true);
|
1033
1031
|
this.view = new TableView(this);
|
1034
|
-
const themeName = tableMeta.themeName || getThemeClassName(instance.rootElement);
|
1035
|
-
|
1036
|
-
// Use the theme defined as a root element class or in the settings (in that order).
|
1037
|
-
instance.useTheme(themeName);
|
1038
|
-
|
1039
|
-
// Add the theme class name to the license info element.
|
1040
|
-
instance.view.addClassNameToLicenseElement(instance.getCurrentThemeName());
|
1041
1032
|
editorManager = EditorManager.getInstance(instance, tableMeta, selection);
|
1042
1033
|
viewportScroller = createViewportScroller(instance);
|
1043
1034
|
focusManager = new FocusManager(instance);
|
@@ -2391,19 +2382,6 @@ export default function Core(rootElement, userSettings) {
|
|
2391
2382
|
if (instance.view) {
|
2392
2383
|
instance.view._wt.wtViewport.resetHasOversizedColumnHeadersMarked();
|
2393
2384
|
instance.view._wt.exportSettingsAsClassNames();
|
2394
|
-
const currentThemeName = instance.getCurrentThemeName();
|
2395
|
-
const themeNameOptionExists = hasOwnProperty(settings, 'themeName');
|
2396
|
-
if (currentThemeName && themeNameOptionExists) {
|
2397
|
-
instance.view.getStylesHandler().removeClassNames();
|
2398
|
-
instance.view.removeClassNameFromLicenseElement(currentThemeName);
|
2399
|
-
}
|
2400
|
-
const themeName = themeNameOptionExists && settings.themeName || getThemeClassName(instance.rootElement);
|
2401
|
-
|
2402
|
-
// Use the theme defined as a root element class or in the settings (in that order).
|
2403
|
-
instance.useTheme(themeName);
|
2404
|
-
|
2405
|
-
// Add the theme class name to the license info element.
|
2406
|
-
instance.view.addClassNameToLicenseElement(instance.getCurrentThemeName());
|
2407
2385
|
}
|
2408
2386
|
instance.runHooks('afterUpdateSettings', settings);
|
2409
2387
|
}
|
@@ -4100,22 +4078,8 @@ export default function Core(rootElement, userSettings) {
|
|
4100
4078
|
const {
|
4101
4079
|
row,
|
4102
4080
|
col,
|
4103
|
-
verticalSnap,
|
4104
|
-
horizontalSnap,
|
4105
4081
|
considerHiddenIndexes
|
4106
4082
|
} = (_options = options) !== null && _options !== void 0 ? _options : {};
|
4107
|
-
let snapToTop;
|
4108
|
-
let snapToBottom;
|
4109
|
-
let snapToInlineStart;
|
4110
|
-
let snapToInlineEnd;
|
4111
|
-
if (verticalSnap !== undefined) {
|
4112
|
-
snapToTop = verticalSnap === 'top';
|
4113
|
-
snapToBottom = !snapToTop;
|
4114
|
-
}
|
4115
|
-
if (horizontalSnap !== undefined) {
|
4116
|
-
snapToInlineStart = horizontalSnap === 'start';
|
4117
|
-
snapToInlineEnd = !snapToInlineStart;
|
4118
|
-
}
|
4119
4083
|
let renderableRow = row;
|
4120
4084
|
let renderableColumn = col;
|
4121
4085
|
if (considerHiddenIndexes === undefined || considerHiddenIndexes) {
|
@@ -4132,13 +4096,13 @@ export default function Core(rootElement, userSettings) {
|
|
4132
4096
|
const isRowInteger = Number.isInteger(renderableRow);
|
4133
4097
|
const isColumnInteger = Number.isInteger(renderableColumn);
|
4134
4098
|
if (isRowInteger && renderableRow >= 0 && isColumnInteger && renderableColumn >= 0) {
|
4135
|
-
return instance.view.scrollViewport(instance._createCellCoords(renderableRow, renderableColumn),
|
4099
|
+
return instance.view.scrollViewport(instance._createCellCoords(renderableRow, renderableColumn), options.horizontalSnap, options.verticalSnap);
|
4136
4100
|
}
|
4137
4101
|
if (isRowInteger && renderableRow >= 0 && (isColumnInteger && renderableColumn < 0 || !isColumnInteger)) {
|
4138
|
-
return instance.view.scrollViewportVertically(renderableRow,
|
4102
|
+
return instance.view.scrollViewportVertically(renderableRow, options.verticalSnap);
|
4139
4103
|
}
|
4140
4104
|
if (isColumnInteger && renderableColumn >= 0 && (isRowInteger && renderableRow < 0 || !isRowInteger)) {
|
4141
|
-
return instance.view.scrollViewportHorizontally(renderableColumn,
|
4105
|
+
return instance.view.scrollViewportHorizontally(renderableColumn, options.horizontalSnap);
|
4142
4106
|
}
|
4143
4107
|
return false;
|
4144
4108
|
};
|
@@ -4607,31 +4571,6 @@ export default function Core(rootElement, userSettings) {
|
|
4607
4571
|
};
|
4608
4572
|
this.timeouts = [];
|
4609
4573
|
|
4610
|
-
/**
|
4611
|
-
* Use the theme specified by the provided name.
|
4612
|
-
*
|
4613
|
-
* @memberof Core#
|
4614
|
-
* @function useTheme
|
4615
|
-
* @since 15.0.0
|
4616
|
-
* @param {string|boolean|undefined} themeName The name of the theme to use.
|
4617
|
-
*/
|
4618
|
-
this.useTheme = themeName => {
|
4619
|
-
this.view.getStylesHandler().useTheme(themeName);
|
4620
|
-
this.runHooks('afterSetTheme', themeName, !!firstRun);
|
4621
|
-
};
|
4622
|
-
|
4623
|
-
/**
|
4624
|
-
* Gets the name of the currently used theme.
|
4625
|
-
*
|
4626
|
-
* @memberof Core#
|
4627
|
-
* @function getCurrentThemeName
|
4628
|
-
* @since 15.0.0
|
4629
|
-
* @returns {string|undefined} The name of the currently used theme.
|
4630
|
-
*/
|
4631
|
-
this.getCurrentThemeName = () => {
|
4632
|
-
return this.view.getStylesHandler().getThemeName();
|
4633
|
-
};
|
4634
|
-
|
4635
4574
|
/**
|
4636
4575
|
* Sets timeout. Purpose of this method is to clear all known timeouts when `destroy` method is called.
|
4637
4576
|
*
|
@@ -3842,8 +3842,8 @@ var _default = () => {
|
|
3842
3842
|
/**
|
3843
3843
|
* The `rowHeights` option sets rows' heights, in pixels.
|
3844
3844
|
*
|
3845
|
-
* In the rendering process, the default row height is 23 px (
|
3846
|
-
* You can change it to equal or greater than
|
3845
|
+
* In the rendering process, the default row height is 23 px (22 px + 1 px of the row's bottom border).
|
3846
|
+
* You can change it to equal or greater than 23px, by setting the `rowHeights` option to one of the following:
|
3847
3847
|
*
|
3848
3848
|
* | Setting | Description | Example |
|
3849
3849
|
* | ----------- | --------------------------------------------------------------------------------------------------- | ------------------------------------------------------------ |
|
@@ -3875,7 +3875,7 @@ var _default = () => {
|
|
3875
3875
|
* // set the first (by visual index) row's height to 100
|
3876
3876
|
* // set the second (by visual index) row's height to 120
|
3877
3877
|
* // set the third (by visual index) row's height to `undefined`
|
3878
|
-
* // set any other row's height to the default
|
3878
|
+
* // set any other row's height to the default 23px
|
3879
3879
|
* rowHeights: [100, 120, undefined],
|
3880
3880
|
*
|
3881
3881
|
* // set each row's height individually, using a function
|
@@ -4313,26 +4313,6 @@ var _default = () => {
|
|
4313
4313
|
* ```
|
4314
4314
|
*/
|
4315
4315
|
tableClassName: undefined,
|
4316
|
-
/**
|
4317
|
-
* The `themeName` option allows enabling a theme by that name.
|
4318
|
-
*
|
4319
|
-
* If no `themeName` is provided, the table will use the classic theme (if the correct CSS files are imported).
|
4320
|
-
*
|
4321
|
-
* Read more:
|
4322
|
-
* - [Themes](@/guides/styling/themes/themes.md)
|
4323
|
-
*
|
4324
|
-
* @memberof Options#
|
4325
|
-
* @type {string|boolean|undefined}
|
4326
|
-
* @default undefined
|
4327
|
-
* @category Core
|
4328
|
-
* @since 15.0.0
|
4329
|
-
*
|
4330
|
-
* @example
|
4331
|
-
* ```js
|
4332
|
-
* themeName: 'ht-theme-name',
|
4333
|
-
* ```
|
4334
|
-
*/
|
4335
|
-
themeName: undefined,
|
4336
4316
|
/**
|
4337
4317
|
* The `tabMoves` option configures the action of the <kbd>**Tab**</kbd> key.
|
4338
4318
|
*
|
@@ -3839,8 +3839,8 @@ export default () => {
|
|
3839
3839
|
/**
|
3840
3840
|
* The `rowHeights` option sets rows' heights, in pixels.
|
3841
3841
|
*
|
3842
|
-
* In the rendering process, the default row height is 23 px (
|
3843
|
-
* You can change it to equal or greater than
|
3842
|
+
* In the rendering process, the default row height is 23 px (22 px + 1 px of the row's bottom border).
|
3843
|
+
* You can change it to equal or greater than 23px, by setting the `rowHeights` option to one of the following:
|
3844
3844
|
*
|
3845
3845
|
* | Setting | Description | Example |
|
3846
3846
|
* | ----------- | --------------------------------------------------------------------------------------------------- | ------------------------------------------------------------ |
|
@@ -3872,7 +3872,7 @@ export default () => {
|
|
3872
3872
|
* // set the first (by visual index) row's height to 100
|
3873
3873
|
* // set the second (by visual index) row's height to 120
|
3874
3874
|
* // set the third (by visual index) row's height to `undefined`
|
3875
|
-
* // set any other row's height to the default
|
3875
|
+
* // set any other row's height to the default 23px
|
3876
3876
|
* rowHeights: [100, 120, undefined],
|
3877
3877
|
*
|
3878
3878
|
* // set each row's height individually, using a function
|
@@ -4310,26 +4310,6 @@ export default () => {
|
|
4310
4310
|
* ```
|
4311
4311
|
*/
|
4312
4312
|
tableClassName: undefined,
|
4313
|
-
/**
|
4314
|
-
* The `themeName` option allows enabling a theme by that name.
|
4315
|
-
*
|
4316
|
-
* If no `themeName` is provided, the table will use the classic theme (if the correct CSS files are imported).
|
4317
|
-
*
|
4318
|
-
* Read more:
|
4319
|
-
* - [Themes](@/guides/styling/themes/themes.md)
|
4320
|
-
*
|
4321
|
-
* @memberof Options#
|
4322
|
-
* @type {string|boolean|undefined}
|
4323
|
-
* @default undefined
|
4324
|
-
* @category Core
|
4325
|
-
* @since 15.0.0
|
4326
|
-
*
|
4327
|
-
* @example
|
4328
|
-
* ```js
|
4329
|
-
* themeName: 'ht-theme-name',
|
4330
|
-
* ```
|
4331
|
-
*/
|
4332
|
-
themeName: undefined,
|
4333
4313
|
/**
|
4334
4314
|
* The `tabMoves` option configures the action of the <kbd>**Tab**</kbd> key.
|
4335
4315
|
*
|
package/dist/handsontable.css
CHANGED
@@ -25,13 +25,13 @@
|
|
25
25
|
* INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER ARISING FROM
|
26
26
|
* USE OR INABILITY TO USE THIS SOFTWARE.
|
27
27
|
*
|
28
|
-
* Version: 0.0.0-next-
|
29
|
-
* Release date: 17/10/2024 (built at
|
28
|
+
* Version: 0.0.0-next-fcb9b77-20241126
|
29
|
+
* Release date: 17/10/2024 (built at 26/11/2024 09:17:24)
|
30
30
|
*/
|
31
31
|
/**
|
32
32
|
* Fix for bootstrap styles
|
33
33
|
*/
|
34
|
-
|
34
|
+
.handsontable .table th, .handsontable .table td {
|
35
35
|
border-top: none;
|
36
36
|
}
|
37
37
|
|
@@ -589,7 +589,6 @@ innerBorderBottom - Property controlled by bottom overlay
|
|
589
589
|
color: #000;
|
590
590
|
border-radius: 0;
|
591
591
|
background-color: #FFF;
|
592
|
-
box-sizing: border-box !important;
|
593
592
|
/*overwrite styles potentionally made by a framework*/
|
594
593
|
}
|
595
594
|
|
@@ -604,25 +603,16 @@ innerBorderBottom - Property controlled by bottom overlay
|
|
604
603
|
}
|
605
604
|
|
606
605
|
.htSelectEditor {
|
606
|
+
-webkit-appearance: menulist-button !important;
|
607
607
|
position: absolute;
|
608
|
-
|
609
|
-
|
610
|
-
-webkit-appearance: menulist-button !important;
|
611
|
-
width: 100%;
|
612
|
-
height: 100%;
|
613
|
-
border: 2px solid #4b89ff;
|
614
|
-
box-sizing: border-box !important;
|
615
|
-
}
|
608
|
+
width: auto;
|
609
|
+
border: 2px solid #4b89ff;
|
616
610
|
}
|
617
611
|
|
618
|
-
.htSelectEditor
|
612
|
+
.htSelectEditor:focus {
|
619
613
|
outline: none;
|
620
614
|
}
|
621
615
|
|
622
|
-
.htSelectEditor .htAutocompleteArrow {
|
623
|
-
display: none;
|
624
|
-
}
|
625
|
-
|
626
616
|
/*
|
627
617
|
TextRenderer readOnly cell
|
628
618
|
*/
|
@@ -2066,3 +2056,5 @@ textarea.HandsontableCopyPaste {
|
|
2066
2056
|
left: 0;
|
2067
2057
|
right: unset;
|
2068
2058
|
}
|
2059
|
+
|
2060
|
+
/*# sourceMappingURL=handsontable.css.map*/
|