handsontable 0.0.0-next-662a118-20241017 → 0.0.0-next-627918e-20241025
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of handsontable might be problematic. Click here for more details.
- package/3rdparty/walkontable/src/calculator/index.js +1 -2
- 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 +3 -0
- package/3rdparty/walkontable/src/core/_base.mjs +3 -0
- package/3rdparty/walkontable/src/core/clone.js +1 -0
- package/3rdparty/walkontable/src/core/clone.mjs +1 -0
- package/3rdparty/walkontable/src/core/core.js +2 -0
- package/3rdparty/walkontable/src/core/core.mjs +2 -0
- package/3rdparty/walkontable/src/facade/core.js +3 -0
- package/3rdparty/walkontable/src/facade/core.mjs +3 -0
- package/3rdparty/walkontable/src/index.js +0 -1
- package/3rdparty/walkontable/src/index.mjs +2 -2
- package/3rdparty/walkontable/src/overlay/_base.js +3 -1
- package/3rdparty/walkontable/src/overlay/_base.mjs +3 -1
- 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/settings.js +1 -2
- package/3rdparty/walkontable/src/settings.mjs +1 -2
- package/3rdparty/walkontable/src/table.js +11 -8
- package/3rdparty/walkontable/src/table.mjs +11 -8
- package/3rdparty/walkontable/src/types.js +1 -0
- package/3rdparty/walkontable/src/types.mjs +1 -0
- package/3rdparty/walkontable/src/utils/column.js +1 -1
- package/3rdparty/walkontable/src/utils/column.mjs +1 -1
- package/3rdparty/walkontable/src/utils/stylesHandler.js +179 -0
- package/3rdparty/walkontable/src/utils/stylesHandler.mjs +175 -0
- package/3rdparty/walkontable/src/viewport.js +1 -0
- package/3rdparty/walkontable/src/viewport.mjs +1 -0
- package/base.js +2 -2
- package/base.mjs +2 -2
- package/core.js +14 -0
- package/core.mjs +14 -0
- package/dataMap/metaManager/metaSchema.js +17 -0
- package/dataMap/metaManager/metaSchema.mjs +17 -0
- package/dist/handsontable.css +17 -9
- package/dist/handsontable.full.css +17 -7
- package/dist/handsontable.full.js +3893 -3814
- package/dist/handsontable.full.min.css +5 -4
- package/dist/handsontable.full.min.js +26 -26
- package/dist/handsontable.js +3600 -3515
- package/dist/handsontable.min.css +5 -4
- package/dist/handsontable.min.js +24 -24
- 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 +2 -0
- package/editors/dateEditor/dateEditor.mjs +2 -0
- package/editors/handsontableEditor/handsontableEditor.js +1 -1
- package/editors/handsontableEditor/handsontableEditor.mjs +1 -1
- package/editors/selectEditor/selectEditor.js +20 -9
- package/editors/selectEditor/selectEditor.mjs +20 -9
- package/editors/textEditor/textEditor.js +4 -11
- package/editors/textEditor/textEditor.mjs +4 -11
- package/helpers/mixed.js +2 -2
- package/helpers/mixed.mjs +2 -2
- package/helpers/themes.js +17 -0
- package/helpers/themes.mjs +13 -0
- package/package.json +10 -3
- package/plugins/comments/commentEditor.js +8 -1
- package/plugins/comments/commentEditor.mjs +8 -1
- package/plugins/comments/comments.js +1 -1
- package/plugins/comments/comments.mjs +1 -1
- package/plugins/contextMenu/menu/menu.js +4 -4
- package/plugins/contextMenu/menu/menu.mjs +4 -4
- package/plugins/manualRowMove/manualRowMove.js +1 -1
- package/plugins/manualRowMove/manualRowMove.mjs +1 -1
- package/plugins/manualRowResize/manualRowResize.js +1 -2
- package/plugins/manualRowResize/manualRowResize.mjs +2 -3
- package/plugins/mergeCells/mergeCells.js +1 -1
- package/plugins/mergeCells/mergeCells.mjs +1 -1
- package/plugins/nestedRows/ui/headers.js +3 -1
- package/plugins/nestedRows/ui/headers.mjs +3 -1
- package/settings.d.ts +1 -0
- package/styles/handsontable.css +1983 -0
- package/styles/handsontable.min.css +30 -0
- package/styles/ht-theme-gemini.css +706 -0
- package/styles/ht-theme-gemini.min.css +30 -0
- package/styles/ht-theme-main.css +714 -0
- package/styles/ht-theme-main.min.css +30 -0
- package/stylesManager.js +1 -0
- package/stylesManager.mjs +0 -0
- package/tableView.js +34 -0
- package/tableView.mjs +34 -0
- package/utils/autoResize.js +4 -1
- package/utils/autoResize.mjs +4 -1
- package/utils/ghostTable.js +1 -1
- package/utils/ghostTable.mjs +1 -1
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import "core-js/modules/es.error.cause.js";
|
|
2
|
+
function _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }
|
|
3
|
+
function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
|
|
4
|
+
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
5
|
+
function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
|
|
6
|
+
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
|
7
|
+
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"); }
|
|
8
|
+
const CLASSIC_THEME_DEFAULT_HEIGHT = 23;
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Handles the theme-related style operations.
|
|
12
|
+
*/
|
|
13
|
+
var _rootElement = /*#__PURE__*/new WeakMap();
|
|
14
|
+
var _rootComputedStyle = /*#__PURE__*/new WeakMap();
|
|
15
|
+
var _rootDocument = /*#__PURE__*/new WeakMap();
|
|
16
|
+
var _isClassicTheme = /*#__PURE__*/new WeakMap();
|
|
17
|
+
var _cssVars = /*#__PURE__*/new WeakMap();
|
|
18
|
+
var _computedStyles = /*#__PURE__*/new WeakMap();
|
|
19
|
+
var _StylesHandler_brand = /*#__PURE__*/new WeakSet();
|
|
20
|
+
export class StylesHandler {
|
|
21
|
+
/**
|
|
22
|
+
* Initializes a new instance of the `StylesHandler` class.
|
|
23
|
+
*
|
|
24
|
+
* @param {string} themeName - The name of the theme.
|
|
25
|
+
* @param {object} domBindings - The DOM bindings for the instance.
|
|
26
|
+
*/
|
|
27
|
+
constructor(themeName, domBindings) {
|
|
28
|
+
/**
|
|
29
|
+
* Retrieves and processes the computed styles for a `td` element.
|
|
30
|
+
*
|
|
31
|
+
* This method creates a temporary table structure, appends it to the root element,
|
|
32
|
+
* retrieves the computed styles for the `td` element, and then removes the table
|
|
33
|
+
* from the DOM. The computed styles are passed to the provided callback function.
|
|
34
|
+
*
|
|
35
|
+
* @param {Array} cssProps - An array of CSS properties to retrieve.
|
|
36
|
+
* @returns {object} An object containing the requested computed styles for the `td` element.
|
|
37
|
+
* @private
|
|
38
|
+
*/
|
|
39
|
+
_classPrivateMethodInitSpec(this, _StylesHandler_brand);
|
|
40
|
+
/**
|
|
41
|
+
* The instance's root element.
|
|
42
|
+
*
|
|
43
|
+
* @type {HTMLElement}
|
|
44
|
+
*/
|
|
45
|
+
_classPrivateFieldInitSpec(this, _rootElement, void 0);
|
|
46
|
+
/**
|
|
47
|
+
* The computed style of the root element.
|
|
48
|
+
*
|
|
49
|
+
* @type {CSSStyleDeclaration}
|
|
50
|
+
* @private
|
|
51
|
+
*/
|
|
52
|
+
_classPrivateFieldInitSpec(this, _rootComputedStyle, void 0);
|
|
53
|
+
/**
|
|
54
|
+
* The root document of the instance.
|
|
55
|
+
*
|
|
56
|
+
* @type {Document}
|
|
57
|
+
* @private
|
|
58
|
+
*/
|
|
59
|
+
_classPrivateFieldInitSpec(this, _rootDocument, void 0);
|
|
60
|
+
/**
|
|
61
|
+
* `true` if the classic theme is enabled, `false` otherwise.
|
|
62
|
+
*
|
|
63
|
+
* @type {boolean}
|
|
64
|
+
*/
|
|
65
|
+
_classPrivateFieldInitSpec(this, _isClassicTheme, false);
|
|
66
|
+
/**
|
|
67
|
+
* An object to store CSS variable values.
|
|
68
|
+
*
|
|
69
|
+
* @type {object}
|
|
70
|
+
* @private
|
|
71
|
+
*/
|
|
72
|
+
_classPrivateFieldInitSpec(this, _cssVars, {});
|
|
73
|
+
/**
|
|
74
|
+
* Stores the computed styles for various elements.
|
|
75
|
+
*
|
|
76
|
+
* @type {object} - An object containing the computed styles if a nested structore of `element: { [element type]: {property: value} }`.
|
|
77
|
+
* @private
|
|
78
|
+
*/
|
|
79
|
+
_classPrivateFieldInitSpec(this, _computedStyles, {});
|
|
80
|
+
_classPrivateFieldSet(_rootElement, this, domBindings.rootTable.parentElement);
|
|
81
|
+
_classPrivateFieldSet(_rootComputedStyle, this, getComputedStyle(_classPrivateFieldGet(_rootElement, this)));
|
|
82
|
+
_classPrivateFieldSet(_rootDocument, this, domBindings.rootDocument);
|
|
83
|
+
if (!themeName) {
|
|
84
|
+
_classPrivateFieldSet(_isClassicTheme, this, true);
|
|
85
|
+
}
|
|
86
|
+
const stylesForTD = _assertClassBrand(_StylesHandler_brand, this, _getStylesForTD).call(this, ['box-sizing']);
|
|
87
|
+
_classPrivateFieldGet(_computedStyles, this).td = {
|
|
88
|
+
..._classPrivateFieldGet(_computedStyles, this).td,
|
|
89
|
+
...{
|
|
90
|
+
'box-sizing': stylesForTD['box-sizing']
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Gets the value indicating whether the classic theme is enabled.
|
|
97
|
+
*
|
|
98
|
+
* @returns {boolean} `true` if the classic theme is enabled, `false` otherwise.
|
|
99
|
+
*/
|
|
100
|
+
isClassicTheme() {
|
|
101
|
+
return _classPrivateFieldGet(_isClassicTheme, this);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Retrieves the value of a specified CSS variable.
|
|
106
|
+
*
|
|
107
|
+
* @param {string} variableName - The name of the CSS variable to retrieve.
|
|
108
|
+
* @returns {number|undefined} The value of the specified CSS variable, or `undefined` if not found.
|
|
109
|
+
*/
|
|
110
|
+
getCSSVariableValue(variableName) {
|
|
111
|
+
if (_classPrivateFieldGet(_cssVars, this)[`--ht-${variableName}`]) {
|
|
112
|
+
return _classPrivateFieldGet(_cssVars, this)[`--ht-${variableName}`];
|
|
113
|
+
}
|
|
114
|
+
const acquiredValue = _assertClassBrand(_StylesHandler_brand, this, _getParsedCSSValue).call(this, `--ht-${variableName}`);
|
|
115
|
+
if (acquiredValue !== null) {
|
|
116
|
+
_classPrivateFieldGet(_cssVars, this)[`--ht-${variableName}`] = acquiredValue;
|
|
117
|
+
return acquiredValue;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Retrieves the computed style value for a specified CSS property of a `td` element.
|
|
123
|
+
*
|
|
124
|
+
* @param {string} cssProperty - The CSS property to retrieve the value for.
|
|
125
|
+
* @returns {number|string|undefined} The value of the specified CSS property, or `undefined` if not found.
|
|
126
|
+
*/
|
|
127
|
+
getStyleForTD(cssProperty) {
|
|
128
|
+
var _classPrivateFieldGet2;
|
|
129
|
+
return (_classPrivateFieldGet2 = _classPrivateFieldGet(_computedStyles, this)) === null || _classPrivateFieldGet2 === void 0 ? void 0 : _classPrivateFieldGet2.td[cssProperty];
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Calculates the row height based on the current theme and CSS variables.
|
|
134
|
+
*
|
|
135
|
+
* @returns {number} The calculated row height.
|
|
136
|
+
*/
|
|
137
|
+
getDefaultRowHeight() {
|
|
138
|
+
if (_classPrivateFieldGet(_isClassicTheme, this)) {
|
|
139
|
+
return CLASSIC_THEME_DEFAULT_HEIGHT;
|
|
140
|
+
}
|
|
141
|
+
return this.getCSSVariableValue('row-height');
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
function _getStylesForTD(cssProps) {
|
|
145
|
+
const rootDocument = _classPrivateFieldGet(_rootDocument, this);
|
|
146
|
+
const rootElement = _classPrivateFieldGet(_rootElement, this);
|
|
147
|
+
const table = rootDocument.createElement('table');
|
|
148
|
+
const tbody = rootDocument.createElement('tbody');
|
|
149
|
+
const tr = rootDocument.createElement('tr');
|
|
150
|
+
// This needs not to be the first row in order to get "regular" vaules.
|
|
151
|
+
const tr2 = rootDocument.createElement('tr');
|
|
152
|
+
const td = rootDocument.createElement('td');
|
|
153
|
+
tr2.appendChild(td);
|
|
154
|
+
tbody.appendChild(tr);
|
|
155
|
+
tbody.appendChild(tr2);
|
|
156
|
+
table.appendChild(tbody);
|
|
157
|
+
rootElement.appendChild(table);
|
|
158
|
+
const computedStyle = getComputedStyle(td);
|
|
159
|
+
const returnObject = {};
|
|
160
|
+
cssProps.forEach(prop => {
|
|
161
|
+
returnObject[prop] = computedStyle.getPropertyValue(prop);
|
|
162
|
+
});
|
|
163
|
+
rootElement.removeChild(table);
|
|
164
|
+
return returnObject;
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* Parses the value of a specified CSS property from the root element's computed style.
|
|
168
|
+
*
|
|
169
|
+
* @param {string} property - The CSS property to retrieve and parse.
|
|
170
|
+
* @returns {number|null} The parsed value of the CSS property.
|
|
171
|
+
*/
|
|
172
|
+
function _getParsedCSSValue(property) {
|
|
173
|
+
const parsedValue = parseInt(_classPrivateFieldGet(_rootComputedStyle, this).getPropertyValue(property), 10);
|
|
174
|
+
return Number.isNaN(parsedValue) ? null : parsedValue;
|
|
175
|
+
}
|
|
@@ -284,6 +284,7 @@ class Viewport {
|
|
|
284
284
|
viewportHeight: height,
|
|
285
285
|
scrollOffset: pos,
|
|
286
286
|
totalRows: wtSettings.getSetting('totalRows'),
|
|
287
|
+
defaultRowHeight: this.instance.stylesHandler.getDefaultRowHeight(),
|
|
287
288
|
rowHeightFn: sourceRow => wtTable.getRowHeight(sourceRow),
|
|
288
289
|
overrideFn: wtSettings.getSettingPure('viewportRowCalculatorOverride'),
|
|
289
290
|
horizontalScrollbarHeight: scrollbarHeight
|
|
@@ -281,6 +281,7 @@ class Viewport {
|
|
|
281
281
|
viewportHeight: height,
|
|
282
282
|
scrollOffset: pos,
|
|
283
283
|
totalRows: wtSettings.getSetting('totalRows'),
|
|
284
|
+
defaultRowHeight: this.instance.stylesHandler.getDefaultRowHeight(),
|
|
284
285
|
rowHeightFn: sourceRow => wtTable.getRowHeight(sourceRow),
|
|
285
286
|
overrideFn: wtSettings.getSettingPure('viewportRowCalculatorOverride'),
|
|
286
287
|
horizontalScrollbarHeight: scrollbarHeight
|
package/base.js
CHANGED
|
@@ -45,8 +45,8 @@ Handsontable.hooks = _hooks.Hooks.getSingleton();
|
|
|
45
45
|
Handsontable.CellCoords = _src.CellCoords;
|
|
46
46
|
Handsontable.CellRange = _src.CellRange;
|
|
47
47
|
Handsontable.packageName = 'handsontable';
|
|
48
|
-
Handsontable.buildDate = "
|
|
49
|
-
Handsontable.version = "0.0.0-next-
|
|
48
|
+
Handsontable.buildDate = "25/10/2024 06:41:23";
|
|
49
|
+
Handsontable.version = "0.0.0-next-627918e-20241025";
|
|
50
50
|
Handsontable.languages = {
|
|
51
51
|
dictionaryKeys: _registry.dictionaryKeys,
|
|
52
52
|
getLanguageDictionary: _registry.getLanguageDictionary,
|
package/base.mjs
CHANGED
|
@@ -35,8 +35,8 @@ Handsontable.hooks = Hooks.getSingleton();
|
|
|
35
35
|
Handsontable.CellCoords = CellCoords;
|
|
36
36
|
Handsontable.CellRange = CellRange;
|
|
37
37
|
Handsontable.packageName = 'handsontable';
|
|
38
|
-
Handsontable.buildDate = "
|
|
39
|
-
Handsontable.version = "0.0.0-next-
|
|
38
|
+
Handsontable.buildDate = "25/10/2024 06:41:28";
|
|
39
|
+
Handsontable.version = "0.0.0-next-627918e-20241025";
|
|
40
40
|
Handsontable.languages = {
|
|
41
41
|
dictionaryKeys,
|
|
42
42
|
getLanguageDictionary,
|
package/core.js
CHANGED
|
@@ -43,6 +43,7 @@ var _index3 = require("./core/index");
|
|
|
43
43
|
var _uniqueMap = require("./utils/dataStructures/uniqueMap");
|
|
44
44
|
var _shortcuts = require("./shortcuts");
|
|
45
45
|
var _shortcutContexts = require("./shortcutContexts");
|
|
46
|
+
var _themes = require("./helpers/themes");
|
|
46
47
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
47
48
|
let activeGuid = null;
|
|
48
49
|
|
|
@@ -229,7 +230,20 @@ function Core(rootElement, userSettings) {
|
|
|
229
230
|
this.renderCall = false;
|
|
230
231
|
rootElement.insertBefore(this.container, rootElement.firstChild);
|
|
231
232
|
if ((0, _rootInstance.isRootInstance)(this)) {
|
|
233
|
+
var _rootElement$parentNo;
|
|
232
234
|
(0, _mixed._injectProductInfo)(userSettings.licenseKey, rootElement);
|
|
235
|
+
(0, _element.addClass)(rootElement, 'ht-wrapper');
|
|
236
|
+
const rootThemeClassName = (0, _themes.getThemeClassName)(rootElement.className);
|
|
237
|
+
if (rootThemeClassName) {
|
|
238
|
+
tableMeta.themeName = rootThemeClassName;
|
|
239
|
+
}
|
|
240
|
+
if (tableMeta.themeName) {
|
|
241
|
+
(0, _element.addClass)(rootElement, tableMeta.themeName);
|
|
242
|
+
}
|
|
243
|
+
const licenseInfo = (_rootElement$parentNo = rootElement.parentNode) === null || _rootElement$parentNo === void 0 ? void 0 : _rootElement$parentNo.querySelector('.hot-display-license-info');
|
|
244
|
+
if (licenseInfo) {
|
|
245
|
+
(0, _element.addClass)(licenseInfo, tableMeta.themeName);
|
|
246
|
+
}
|
|
233
247
|
}
|
|
234
248
|
this.guid = `ht_${(0, _string.randomString)()}`; // this is the namespace for global events
|
|
235
249
|
|
package/core.mjs
CHANGED
|
@@ -39,6 +39,7 @@ import { installFocusCatcher, createViewportScroller } from "./core/index.mjs";
|
|
|
39
39
|
import { createUniqueMap } from "./utils/dataStructures/uniqueMap.mjs";
|
|
40
40
|
import { createShortcutManager } from "./shortcuts/index.mjs";
|
|
41
41
|
import { registerAllShortcutContexts } from "./shortcutContexts/index.mjs";
|
|
42
|
+
import { getThemeClassName } from "./helpers/themes.mjs";
|
|
42
43
|
let activeGuid = null;
|
|
43
44
|
|
|
44
45
|
/**
|
|
@@ -224,7 +225,20 @@ export default function Core(rootElement, userSettings) {
|
|
|
224
225
|
this.renderCall = false;
|
|
225
226
|
rootElement.insertBefore(this.container, rootElement.firstChild);
|
|
226
227
|
if (isRootInstance(this)) {
|
|
228
|
+
var _rootElement$parentNo;
|
|
227
229
|
_injectProductInfo(userSettings.licenseKey, rootElement);
|
|
230
|
+
addClass(rootElement, 'ht-wrapper');
|
|
231
|
+
const rootThemeClassName = getThemeClassName(rootElement.className);
|
|
232
|
+
if (rootThemeClassName) {
|
|
233
|
+
tableMeta.themeName = rootThemeClassName;
|
|
234
|
+
}
|
|
235
|
+
if (tableMeta.themeName) {
|
|
236
|
+
addClass(rootElement, tableMeta.themeName);
|
|
237
|
+
}
|
|
238
|
+
const licenseInfo = (_rootElement$parentNo = rootElement.parentNode) === null || _rootElement$parentNo === void 0 ? void 0 : _rootElement$parentNo.querySelector('.hot-display-license-info');
|
|
239
|
+
if (licenseInfo) {
|
|
240
|
+
addClass(licenseInfo, tableMeta.themeName);
|
|
241
|
+
}
|
|
228
242
|
}
|
|
229
243
|
this.guid = `ht_${randomString()}`; // this is the namespace for global events
|
|
230
244
|
|
|
@@ -4313,6 +4313,23 @@ var _default = () => {
|
|
|
4313
4313
|
* ```
|
|
4314
4314
|
*/
|
|
4315
4315
|
tableClassName: undefined,
|
|
4316
|
+
// TODO: add themeName description
|
|
4317
|
+
/**
|
|
4318
|
+
* The `themeName` option lets you add CSS class names
|
|
4319
|
+
*
|
|
4320
|
+
* @memberof Options#
|
|
4321
|
+
* @type {string|string[]}
|
|
4322
|
+
* @default undefined
|
|
4323
|
+
* @category Core
|
|
4324
|
+
*
|
|
4325
|
+
* @example
|
|
4326
|
+
* ```js
|
|
4327
|
+
* // add a `ht-theme-name` CSS class name
|
|
4328
|
+
* // to every Handsontable instance inside the `container` element
|
|
4329
|
+
* themeName: 'ht-theme-name',
|
|
4330
|
+
* ```
|
|
4331
|
+
*/
|
|
4332
|
+
themeName: undefined,
|
|
4316
4333
|
/**
|
|
4317
4334
|
* The `tabMoves` option configures the action of the <kbd>**Tab**</kbd> key.
|
|
4318
4335
|
*
|
|
@@ -4310,6 +4310,23 @@ export default () => {
|
|
|
4310
4310
|
* ```
|
|
4311
4311
|
*/
|
|
4312
4312
|
tableClassName: undefined,
|
|
4313
|
+
// TODO: add themeName description
|
|
4314
|
+
/**
|
|
4315
|
+
* The `themeName` option lets you add CSS class names
|
|
4316
|
+
*
|
|
4317
|
+
* @memberof Options#
|
|
4318
|
+
* @type {string|string[]}
|
|
4319
|
+
* @default undefined
|
|
4320
|
+
* @category Core
|
|
4321
|
+
*
|
|
4322
|
+
* @example
|
|
4323
|
+
* ```js
|
|
4324
|
+
* // add a `ht-theme-name` CSS class name
|
|
4325
|
+
* // to every Handsontable instance inside the `container` element
|
|
4326
|
+
* themeName: 'ht-theme-name',
|
|
4327
|
+
* ```
|
|
4328
|
+
*/
|
|
4329
|
+
themeName: undefined,
|
|
4313
4330
|
/**
|
|
4314
4331
|
* The `tabMoves` option configures the action of the <kbd>**Tab**</kbd> key.
|
|
4315
4332
|
*
|
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-627918e-20241025
|
|
29
|
+
* Release date: 17/10/2024 (built at 25/10/2024 06:42:23)
|
|
30
30
|
*/
|
|
31
31
|
/**
|
|
32
32
|
* Fix for bootstrap styles
|
|
33
33
|
*/
|
|
34
|
-
.handsontable .table th, .handsontable .table td {
|
|
34
|
+
.handsontable .table th, .handsontable .table td {
|
|
35
35
|
border-top: none;
|
|
36
36
|
}
|
|
37
37
|
|
|
@@ -589,6 +589,7 @@ 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;
|
|
592
593
|
/*overwrite styles potentionally made by a framework*/
|
|
593
594
|
}
|
|
594
595
|
|
|
@@ -603,16 +604,25 @@ innerBorderBottom - Property controlled by bottom overlay
|
|
|
603
604
|
}
|
|
604
605
|
|
|
605
606
|
.htSelectEditor {
|
|
606
|
-
-webkit-appearance: menulist-button !important;
|
|
607
607
|
position: absolute;
|
|
608
|
-
|
|
609
|
-
|
|
608
|
+
|
|
609
|
+
select {
|
|
610
|
+
-webkit-appearance: menulist-button !important;
|
|
611
|
+
width: 100%;
|
|
612
|
+
height: 100%;
|
|
613
|
+
border: 2px solid #4b89ff;
|
|
614
|
+
box-sizing: border-box !important;
|
|
615
|
+
}
|
|
610
616
|
}
|
|
611
617
|
|
|
612
|
-
.htSelectEditor:focus {
|
|
618
|
+
.htSelectEditor select:focus {
|
|
613
619
|
outline: none;
|
|
614
620
|
}
|
|
615
621
|
|
|
622
|
+
.htSelectEditor .htAutocompleteArrow {
|
|
623
|
+
display: none;
|
|
624
|
+
}
|
|
625
|
+
|
|
616
626
|
/*
|
|
617
627
|
TextRenderer readOnly cell
|
|
618
628
|
*/
|
|
@@ -2056,5 +2066,3 @@ textarea.HandsontableCopyPaste {
|
|
|
2056
2066
|
left: 0;
|
|
2057
2067
|
right: unset;
|
|
2058
2068
|
}
|
|
2059
|
-
|
|
2060
|
-
/*# sourceMappingURL=handsontable.css.map*/
|
|
@@ -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-627918e-20241025
|
|
29
|
+
* Release date: 17/10/2024 (built at 25/10/2024 06:42:23)
|
|
30
30
|
*/
|
|
31
31
|
/**
|
|
32
32
|
* Fix for bootstrap styles
|
|
33
33
|
*/
|
|
34
|
-
.handsontable .table th, .handsontable .table td {
|
|
34
|
+
.handsontable .table th, .handsontable .table td {
|
|
35
35
|
border-top: none;
|
|
36
36
|
}
|
|
37
37
|
|
|
@@ -589,6 +589,7 @@ 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;
|
|
592
593
|
/*overwrite styles potentionally made by a framework*/
|
|
593
594
|
}
|
|
594
595
|
|
|
@@ -603,16 +604,25 @@ innerBorderBottom - Property controlled by bottom overlay
|
|
|
603
604
|
}
|
|
604
605
|
|
|
605
606
|
.htSelectEditor {
|
|
606
|
-
-webkit-appearance: menulist-button !important;
|
|
607
607
|
position: absolute;
|
|
608
|
-
|
|
609
|
-
|
|
608
|
+
|
|
609
|
+
select {
|
|
610
|
+
-webkit-appearance: menulist-button !important;
|
|
611
|
+
width: 100%;
|
|
612
|
+
height: 100%;
|
|
613
|
+
border: 2px solid #4b89ff;
|
|
614
|
+
box-sizing: border-box !important;
|
|
615
|
+
}
|
|
610
616
|
}
|
|
611
617
|
|
|
612
|
-
.htSelectEditor:focus {
|
|
618
|
+
.htSelectEditor select:focus {
|
|
613
619
|
outline: none;
|
|
614
620
|
}
|
|
615
621
|
|
|
622
|
+
.htSelectEditor .htAutocompleteArrow {
|
|
623
|
+
display: none;
|
|
624
|
+
}
|
|
625
|
+
|
|
616
626
|
/*
|
|
617
627
|
TextRenderer readOnly cell
|
|
618
628
|
*/
|