handsontable 0.0.0-next-517ec9c-20240930 → 0.0.0-next-f512acf-20240930
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/base.js +2 -2
- package/base.mjs +2 -2
- package/core.js +11 -0
- package/core.mjs +11 -0
- package/dataMap/metaManager/metaSchema.js +17 -0
- package/dataMap/metaManager/metaSchema.mjs +17 -0
- package/dist/handsontable.css +296 -145
- package/dist/handsontable.full.css +305 -152
- package/dist/handsontable.full.js +3536 -3695
- package/dist/handsontable.full.min.css +85 -14
- package/dist/handsontable.full.min.js +26 -26
- package/dist/handsontable.js +3243 -3396
- package/dist/handsontable.min.css +82 -11
- package/dist/handsontable.min.js +23 -23
- 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/styles/handsontable.css +1921 -0
- package/styles/handsontable.min.css +30 -0
- package/styles/ht-theme-gemini.css +689 -0
- package/styles/ht-theme-gemini.min.css +30 -0
- package/styles/ht-theme-main.css +697 -0
- package/styles/ht-theme-main.min.css +30 -0
- package/utils/ghostTable.js +1 -1
- package/utils/ghostTable.mjs +1 -1
package/base.js
CHANGED
@@ -45,8 +45,8 @@ Handsontable.hooks = _pluginHooks.default.getSingleton();
|
|
45
45
|
Handsontable.CellCoords = _src.CellCoords;
|
46
46
|
Handsontable.CellRange = _src.CellRange;
|
47
47
|
Handsontable.packageName = 'handsontable';
|
48
|
-
Handsontable.buildDate = "30/09/2024
|
49
|
-
Handsontable.version = "0.0.0-next-
|
48
|
+
Handsontable.buildDate = "30/09/2024 12:22:34";
|
49
|
+
Handsontable.version = "0.0.0-next-f512acf-20240930";
|
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 = "30/09/2024
|
39
|
-
Handsontable.version = "0.0.0-next-
|
38
|
+
Handsontable.buildDate = "30/09/2024 12:22:40";
|
39
|
+
Handsontable.version = "0.0.0-next-f512acf-20240930";
|
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,17 @@ 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
|
+
const rootThemeClassName = (0, _themes.getThemeClassName)(rootElement.className);
|
236
|
+
if (rootThemeClassName) {
|
237
|
+
tableMeta.themeName = rootThemeClassName;
|
238
|
+
}
|
239
|
+
(0, _element.addClass)(rootElement, tableMeta.themeName);
|
240
|
+
const licenseInfo = (_rootElement$parentNo = rootElement.parentNode) === null || _rootElement$parentNo === void 0 ? void 0 : _rootElement$parentNo.querySelector('.hot-display-license-info');
|
241
|
+
if (licenseInfo) {
|
242
|
+
(0, _element.addClass)(licenseInfo, tableMeta.themeName);
|
243
|
+
}
|
233
244
|
}
|
234
245
|
this.guid = `ht_${(0, _string.randomString)()}`; // this is the namespace for global events
|
235
246
|
|
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,17 @@ 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
|
+
const rootThemeClassName = getThemeClassName(rootElement.className);
|
231
|
+
if (rootThemeClassName) {
|
232
|
+
tableMeta.themeName = rootThemeClassName;
|
233
|
+
}
|
234
|
+
addClass(rootElement, tableMeta.themeName);
|
235
|
+
const licenseInfo = (_rootElement$parentNo = rootElement.parentNode) === null || _rootElement$parentNo === void 0 ? void 0 : _rootElement$parentNo.querySelector('.hot-display-license-info');
|
236
|
+
if (licenseInfo) {
|
237
|
+
addClass(licenseInfo, tableMeta.themeName);
|
238
|
+
}
|
228
239
|
}
|
229
240
|
this.guid = `ht_${randomString()}`; // this is the namespace for global events
|
230
241
|
|
@@ -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: 'ht-theme-main',
|
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: 'ht-theme-main',
|
4313
4330
|
/**
|
4314
4331
|
* The `tabMoves` option configures the action of the <kbd>**Tab**</kbd> key.
|
4315
4332
|
*
|