handsontable 0.0.0-next-b86a8be-20231123 → 0.0.0-next-f11b1a2-20231123
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/selection/manager.js +8 -11
- package/3rdparty/walkontable/src/selection/manager.mjs +8 -11
- package/base.js +2 -2
- package/base.mjs +2 -2
- package/dist/handsontable.css +2 -2
- package/dist/handsontable.full.css +2 -2
- package/dist/handsontable.full.js +23 -18
- package/dist/handsontable.full.min.css +2 -2
- package/dist/handsontable.full.min.js +5 -5
- package/dist/handsontable.js +23 -18
- package/dist/handsontable.min.css +2 -2
- package/dist/handsontable.min.js +5 -5
- package/helpers/mixed.js +1 -1
- package/helpers/mixed.mjs +1 -1
- package/package.json +1 -1
- package/plugins/filters/ui/select.js +6 -0
- package/plugins/filters/ui/select.mjs +6 -0
- package/tableView.js +4 -2
- package/tableView.mjs +4 -2
package/helpers/mixed.js
CHANGED
|
@@ -134,7 +134,7 @@ const domMessages = {
|
|
|
134
134
|
function _injectProductInfo(key, element) {
|
|
135
135
|
const hasValidType = !isEmpty(key);
|
|
136
136
|
const isNonCommercial = typeof key === 'string' && key.toLowerCase() === 'non-commercial-and-evaluation';
|
|
137
|
-
const hotVersion = "0.0.0-next-
|
|
137
|
+
const hotVersion = "0.0.0-next-f11b1a2-20231123";
|
|
138
138
|
let keyValidityDate;
|
|
139
139
|
let consoleMessageState = 'invalid';
|
|
140
140
|
let domMessageState = 'invalid';
|
package/helpers/mixed.mjs
CHANGED
|
@@ -124,7 +124,7 @@ const domMessages = {
|
|
|
124
124
|
export function _injectProductInfo(key, element) {
|
|
125
125
|
const hasValidType = !isEmpty(key);
|
|
126
126
|
const isNonCommercial = typeof key === 'string' && key.toLowerCase() === 'non-commercial-and-evaluation';
|
|
127
|
-
const hotVersion = "0.0.0-next-
|
|
127
|
+
const hotVersion = "0.0.0-next-f11b1a2-20231123";
|
|
128
128
|
let keyValidityDate;
|
|
129
129
|
let consoleMessageState = 'invalid';
|
|
130
130
|
let domMessageState = 'invalid';
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"url": "https://github.com/handsontable/handsontable/issues"
|
|
11
11
|
},
|
|
12
12
|
"author": "Handsoncode <hello@handsontable.com>",
|
|
13
|
-
"version": "0.0.0-next-
|
|
13
|
+
"version": "0.0.0-next-f11b1a2-20231123",
|
|
14
14
|
"main": "index",
|
|
15
15
|
"module": "index.mjs",
|
|
16
16
|
"jsnext:main": "index.mjs",
|
|
@@ -5,9 +5,11 @@ exports.__esModule = true;
|
|
|
5
5
|
var _menu2 = require("../../../plugins/contextMenu/menu");
|
|
6
6
|
var _object = require("../../../helpers/object");
|
|
7
7
|
var _array = require("../../../helpers/array");
|
|
8
|
+
var _element = require("../../../helpers/dom/element");
|
|
8
9
|
var C = _interopRequireWildcard(require("../../../i18n/constants"));
|
|
9
10
|
var _predefinedItems = require("../../../plugins/contextMenu/predefinedItems");
|
|
10
11
|
var _base = require("./_base");
|
|
12
|
+
var _a11y = require("../../../helpers/a11y");
|
|
11
13
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
12
14
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
13
15
|
function _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }
|
|
@@ -169,6 +171,10 @@ class SelectUI extends _base.BaseUI {
|
|
|
169
171
|
_classPrivateFieldSet(this, _caption, caption);
|
|
170
172
|
_classPrivateFieldSet(this, _captionElement, caption.element);
|
|
171
173
|
_classPrivateFieldSet(this, _dropdown, dropdown);
|
|
174
|
+
if (this.hot.getSettings().ariaTags) {
|
|
175
|
+
(0, _element.setAttribute)(dropdown.element, [(0, _a11y.A11Y_HIDDEN)()]);
|
|
176
|
+
(0, _element.setAttribute)(this._element, [(0, _a11y.A11Y_LISTBOX)()]);
|
|
177
|
+
}
|
|
172
178
|
(0, _array.arrayEach)([caption, dropdown], element => this._element.appendChild(element.element));
|
|
173
179
|
_classPrivateFieldGet(this, _menu).addLocalHook('select', command => _classPrivateMethodGet(this, _onMenuSelect, _onMenuSelect2).call(this, command));
|
|
174
180
|
_classPrivateFieldGet(this, _menu).addLocalHook('afterClose', () => _classPrivateMethodGet(this, _onMenuClosed, _onMenuClosed2).call(this));
|
|
@@ -11,9 +11,11 @@ function _classApplyDescriptorGet(receiver, descriptor) { if (descriptor.get) {
|
|
|
11
11
|
import { Menu } from "../../../plugins/contextMenu/menu/index.mjs";
|
|
12
12
|
import { clone, extend } from "../../../helpers/object.mjs";
|
|
13
13
|
import { arrayEach } from "../../../helpers/array.mjs";
|
|
14
|
+
import { setAttribute } from "../../../helpers/dom/element.mjs";
|
|
14
15
|
import * as C from "../../../i18n/constants.mjs";
|
|
15
16
|
import { SEPARATOR } from "../../../plugins/contextMenu/predefinedItems/index.mjs";
|
|
16
17
|
import { BaseUI } from "./_base.mjs";
|
|
18
|
+
import { A11Y_HIDDEN, A11Y_LISTBOX } from "../../../helpers/a11y.mjs";
|
|
17
19
|
/**
|
|
18
20
|
* @private
|
|
19
21
|
* @class SelectUI
|
|
@@ -164,6 +166,10 @@ export class SelectUI extends BaseUI {
|
|
|
164
166
|
_classPrivateFieldSet(this, _caption, caption);
|
|
165
167
|
_classPrivateFieldSet(this, _captionElement, caption.element);
|
|
166
168
|
_classPrivateFieldSet(this, _dropdown, dropdown);
|
|
169
|
+
if (this.hot.getSettings().ariaTags) {
|
|
170
|
+
setAttribute(dropdown.element, [A11Y_HIDDEN()]);
|
|
171
|
+
setAttribute(this._element, [A11Y_LISTBOX()]);
|
|
172
|
+
}
|
|
167
173
|
arrayEach([caption, dropdown], element => this._element.appendChild(element.element));
|
|
168
174
|
_classPrivateFieldGet(this, _menu).addLocalHook('select', command => _classPrivateMethodGet(this, _onMenuSelect, _onMenuSelect2).call(this, command));
|
|
169
175
|
_classPrivateFieldGet(this, _menu).addLocalHook('afterClose', () => _classPrivateMethodGet(this, _onMenuClosed, _onMenuClosed2).call(this));
|
package/tableView.js
CHANGED
|
@@ -1158,8 +1158,10 @@ class TableView {
|
|
|
1158
1158
|
const span = rootDocument.createElement('span');
|
|
1159
1159
|
div.className = 'relative';
|
|
1160
1160
|
span.className = 'colHeader';
|
|
1161
|
-
(
|
|
1162
|
-
|
|
1161
|
+
if (this.settings.ariaTags) {
|
|
1162
|
+
(0, _element.setAttribute)(div, ...(0, _a11y.A11Y_PRESENTATION)());
|
|
1163
|
+
(0, _element.setAttribute)(span, ...(0, _a11y.A11Y_PRESENTATION)());
|
|
1164
|
+
}
|
|
1163
1165
|
this.updateCellHeader(span, visualColumnIndex, label, headerLevel);
|
|
1164
1166
|
div.appendChild(span);
|
|
1165
1167
|
TH.appendChild(div);
|
package/tableView.mjs
CHANGED
|
@@ -1154,8 +1154,10 @@ class TableView {
|
|
|
1154
1154
|
const span = rootDocument.createElement('span');
|
|
1155
1155
|
div.className = 'relative';
|
|
1156
1156
|
span.className = 'colHeader';
|
|
1157
|
-
|
|
1158
|
-
|
|
1157
|
+
if (this.settings.ariaTags) {
|
|
1158
|
+
setAttribute(div, ...A11Y_PRESENTATION());
|
|
1159
|
+
setAttribute(span, ...A11Y_PRESENTATION());
|
|
1160
|
+
}
|
|
1159
1161
|
this.updateCellHeader(span, visualColumnIndex, label, headerLevel);
|
|
1160
1162
|
div.appendChild(span);
|
|
1161
1163
|
TH.appendChild(div);
|