@qooxdoo/framework 7.0.0-beta.2 → 7.0.0-beta.3
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.
- package/CHANGELOG.md +9 -0
- package/Manifest.json +2 -3
- package/bin/deploy/qx +0 -0
- package/lib/compiler/compile-info.json +63 -64
- package/lib/compiler/index.js +614 -7793
- package/lib/resource/qx/tool/cli/templates/loader/loader-node.tmpl.js +3 -1
- package/lib/resource/qx/tool/cli/templates/skeleton/mobile/source/theme/custom/css/custom.css +1 -1
- package/lib/resource/qx/tool/cli/templates/skeleton/mobile/source/theme/custom/css/custom.css.map +1 -1
- package/lib/resource/qx/tool/cli/templates/template_vars.js +1 -1
- package/lib/resource/qx/tool/loadsass.js +2 -10
- package/lib/resource/qx/tool/schema/Manifest-1-0-0.json +1 -2
- package/lib/resource/qx/tool/schema/Manifest-2-0-0.json +1 -2
- package/lib/resource/qx/tool/schema/compile-1-0-0.json +3 -7
- package/package.json +11 -11
- package/source/class/qx/test/ui/embed/Iframe.js +1 -0
- package/source/class/qx/test/ui/form/ComboBox.js +0 -42
- package/source/class/qx/theme/manager/Decoration.js +0 -0
- package/source/class/qx/theme/tangible/ColorDark.js +0 -0
- package/source/class/qx/tool/cli/Cli.js +5 -3
- package/source/class/qx/tool/cli/api/CompilerApi.js +15 -5
- package/source/class/qx/tool/cli/commands/Command.js +7 -0
- package/source/class/qx/tool/cli/commands/Compile.js +1 -1
- package/source/class/qx/tool/cli/commands/Lint.js +30 -11
- package/source/class/qx/tool/cli/commands/Package.js +1 -2
- package/source/class/qx/tool/cli/commands/package/Publish.js +19 -10
- package/source/class/qx/tool/compiler/Analyser.js +21 -22
- package/source/class/qx/tool/compiler/app/WebFont.js +1 -1
- package/source/class/qx/tool/compiler/makers/AppMaker.js +13 -13
- package/source/class/qx/tool/compiler/targets/TypeScriptWriter.js +1 -2
- package/source/class/qx/tool/compiler/targets/meta/PolyfillJs.js +7 -7
- package/source/class/qx/tool/config/Abstract.js +3 -3
- package/source/class/qx/tool/config/Utils.js +10 -1
- package/source/class/qx/tool/utils/Json.js +1 -1
- package/source/class/qx/ui/container/SlideBar.js +3 -0
- package/source/class/qx/ui/core/scroll/NativeScrollBar.js +3 -0
- package/source/class/qx/ui/core/scroll/ScrollBar.js +3 -0
- package/source/class/qx/ui/form/AbstractSelectBox.js +38 -6
- package/source/class/qx/ui/form/Button.js +3 -0
- package/source/class/qx/ui/form/CheckBox.js +25 -1
- package/source/class/qx/ui/form/ComboBox.js +36 -27
- package/source/class/qx/ui/form/List.js +3 -0
- package/source/class/qx/ui/form/MenuButton.js +24 -2
- package/source/class/qx/ui/form/RadioButton.js +7 -0
- package/source/class/qx/ui/form/RadioButtonGroup.js +3 -0
- package/source/class/qx/ui/form/RadioGroup.js +19 -0
- package/source/class/qx/ui/form/SelectBox.js +23 -1
- package/source/class/qx/ui/form/Slider.js +15 -0
- package/source/class/qx/ui/form/SplitButton.js +3 -0
- package/source/class/qx/ui/form/ToggleButton.js +8 -0
- package/source/class/qx/ui/menu/AbstractButton.js +24 -0
- package/source/class/qx/ui/menu/Button.js +3 -0
- package/source/class/qx/ui/menu/CheckBox.js +8 -0
- package/source/class/qx/ui/menu/Manager.js +2 -0
- package/source/class/qx/ui/menu/Menu.js +63 -1
- package/source/class/qx/ui/menu/RadioButton.js +10 -1
- package/source/class/qx/ui/menubar/Button.js +0 -27
- package/source/class/qx/ui/menubar/MenuBar.js +12 -0
- package/source/class/qx/ui/splitpane/Blocker.js +3 -0
- package/source/class/qx/ui/splitpane/Pane.js +3 -0
- package/source/class/qx/ui/table/Table.js +24 -2
- package/source/class/qx/ui/table/cellrenderer/Abstract.js +3 -1
- package/source/class/qx/ui/table/cellrenderer/AbstractImage.js +7 -3
- package/source/class/qx/ui/table/headerrenderer/HeaderCell.js +3 -0
- package/source/class/qx/ui/table/pane/Header.js +3 -0
- package/source/class/qx/ui/table/pane/Scroller.js +3 -7
- package/source/class/qx/ui/table/rowrenderer/Default.js +1 -1
- package/source/class/qx/ui/tabview/Page.js +26 -0
- package/source/class/qx/ui/tabview/TabView.js +3 -0
- package/source/class/qx/ui/toolbar/Button.js +2 -27
- package/source/class/qx/ui/toolbar/CheckBox.js +0 -27
- package/source/class/qx/ui/toolbar/RadioButton.js +21 -0
- package/source/class/qx/ui/toolbar/SplitButton.js +0 -28
- package/source/class/qx/ui/toolbar/ToolBar.js +3 -0
- package/source/class/qxWeb.js +2 -0
- package/source/resource/qx/decoration/Indigo/font/JosefinSlab-SemiBold.ttf +0 -0
- package/source/resource/qx/decoration/Indigo/font/SIL Open Font License 1.1.txt +0 -0
- package/source/resource/qx/iconfont/MaterialIcons/fetch-fonts.sh +0 -0
- package/source/resource/qx/tool/bin/build-devtools +0 -0
- package/source/resource/qx/tool/bin/build-website +0 -0
- package/source/resource/qx/tool/bin/download-assets +0 -0
- package/source/resource/qx/tool/cli/templates/loader/loader-node.tmpl.js +3 -1
- package/source/resource/qx/tool/cli/templates/template_vars.js +1 -1
- package/source/resource/qx/tool/loadsass.js +2 -10
- package/source/resource/qx/tool/schema/Manifest-1-0-0.json +1 -2
- package/source/resource/qx/tool/schema/Manifest-2-0-0.json +1 -2
- package/source/resource/qx/tool/schema/compile-1-0-0.json +3 -7
- package/lib/resource/qx/tool/website/.gitignore +0 -2
- package/source/class/qx/io/request/auth/.gitignore +0 -0
- package/source/class/qx/test/bom/client/.gitignore +0 -0
- package/source/class/qx/test/ui/control/.gitignore +0 -0
- package/source/class/qx/tool/compiler/Version.js +0 -20
- package/source/resource/qx/decoration/Modern/treevirtual/.gitignore +0 -0
- package/source/resource/qx/mobile/css/.gitignore +0 -3
- package/source/resource/qx/tool/website/.gitignore +0 -2
- package/source/resource/qx/website/.gitignore +0 -1
- package/source/resource/qx/website/scss/.gitignore +0 -1
|
@@ -44,6 +44,11 @@ qx.Class.define("qx.ui.menu.CheckBox",
|
|
|
44
44
|
{
|
|
45
45
|
this.base(arguments);
|
|
46
46
|
|
|
47
|
+
// ARIA attrs
|
|
48
|
+
const contenEl = this.getContentElement();
|
|
49
|
+
contenEl.setAttribute("role", "checkbox");
|
|
50
|
+
contenEl.setAttribute("aria-checked", false);
|
|
51
|
+
|
|
47
52
|
// Initialize with incoming arguments
|
|
48
53
|
if (label != null) {
|
|
49
54
|
// try to translate every time you create a checkbox [BUG #2699]
|
|
@@ -120,6 +125,9 @@ qx.Class.define("qx.ui.menu.CheckBox",
|
|
|
120
125
|
value ?
|
|
121
126
|
this.addState("checked") :
|
|
122
127
|
this.removeState("checked");
|
|
128
|
+
|
|
129
|
+
// ARIA attrs
|
|
130
|
+
this.getContentElement().setAttribute("aria-checked", Boolean(value));
|
|
123
131
|
},
|
|
124
132
|
|
|
125
133
|
|
|
@@ -528,6 +528,7 @@ qx.Class.define("qx.ui.menu.Manager",
|
|
|
528
528
|
*/
|
|
529
529
|
__navigationKeys :
|
|
530
530
|
{
|
|
531
|
+
"Tab" : 1,
|
|
531
532
|
"Escape" : 1,
|
|
532
533
|
"Up" : 1,
|
|
533
534
|
"Down" : 1,
|
|
@@ -597,6 +598,7 @@ qx.Class.define("qx.ui.menu.Manager",
|
|
|
597
598
|
this._onKeyPressRight(menu);
|
|
598
599
|
break;
|
|
599
600
|
|
|
601
|
+
case "Tab":
|
|
600
602
|
case "Escape":
|
|
601
603
|
this.hideAll();
|
|
602
604
|
break;
|
|
@@ -48,6 +48,11 @@ qx.Class.define("qx.ui.menu.Menu",
|
|
|
48
48
|
var root = this.getApplicationRoot();
|
|
49
49
|
root.add(this);
|
|
50
50
|
|
|
51
|
+
// ARIA attrs
|
|
52
|
+
const contentEl = this.getContentElement();
|
|
53
|
+
contentEl.setAttribute("role", "menu");
|
|
54
|
+
contentEl.setAttribute("id", "menu-" + this.toHashCode());
|
|
55
|
+
|
|
51
56
|
// Register pointer listeners
|
|
52
57
|
this.addListener("pointerover", this._onPointerOver);
|
|
53
58
|
this.addListener("pointerout", this._onPointerOut);
|
|
@@ -212,7 +217,8 @@ qx.Class.define("qx.ui.menu.Menu",
|
|
|
212
217
|
opener :
|
|
213
218
|
{
|
|
214
219
|
check : "qx.ui.core.Widget",
|
|
215
|
-
nullable
|
|
220
|
+
nullable: true,
|
|
221
|
+
apply : "_applyOpener"
|
|
216
222
|
},
|
|
217
223
|
|
|
218
224
|
|
|
@@ -488,8 +494,15 @@ qx.Class.define("qx.ui.menu.Menu",
|
|
|
488
494
|
old.removeState("selected");
|
|
489
495
|
}
|
|
490
496
|
|
|
497
|
+
const opener = this.__getRootOpener();
|
|
498
|
+
const contentEl = opener ? opener.getContentElement() : this.getContentElement();
|
|
491
499
|
if (value) {
|
|
492
500
|
value.addState("selected");
|
|
501
|
+
|
|
502
|
+
// ARIA attrs
|
|
503
|
+
contentEl.setAttribute("aria-activedescendant", value.getContentElement().getAttribute("id"));
|
|
504
|
+
} else {
|
|
505
|
+
contentEl.removeAttribute("aria-activedescendant");
|
|
493
506
|
}
|
|
494
507
|
},
|
|
495
508
|
|
|
@@ -506,6 +519,17 @@ qx.Class.define("qx.ui.menu.Menu",
|
|
|
506
519
|
}
|
|
507
520
|
},
|
|
508
521
|
|
|
522
|
+
// property apply
|
|
523
|
+
_applyOpener : function(value, old)
|
|
524
|
+
{
|
|
525
|
+
// ARIA attrs
|
|
526
|
+
if (value) {
|
|
527
|
+
this.getContentElement().setAttribute("aria-labelledby", value);
|
|
528
|
+
} else {
|
|
529
|
+
this.getContentElement().removeAttribute("aria-labelledby");
|
|
530
|
+
}
|
|
531
|
+
},
|
|
532
|
+
|
|
509
533
|
|
|
510
534
|
// property apply
|
|
511
535
|
_applyBlockerColor : function(value, old) {
|
|
@@ -681,6 +705,19 @@ qx.Class.define("qx.ui.menu.Menu",
|
|
|
681
705
|
EVENT HANDLING
|
|
682
706
|
---------------------------------------------------------------------------
|
|
683
707
|
*/
|
|
708
|
+
|
|
709
|
+
/**
|
|
710
|
+
* Gets called when a child is added. Sets ARIA attrs
|
|
711
|
+
* @param {*} child
|
|
712
|
+
*/
|
|
713
|
+
_afterAddChild: function (child) {
|
|
714
|
+
// Some childs, e.g. Seperators, are no meaningful menu items
|
|
715
|
+
if (child instanceof qx.ui.menu.AbstractButton) {
|
|
716
|
+
const contentEl = child.getContentElement();
|
|
717
|
+
contentEl.setAttribute("id", "menu-item-" + child.toHashCode());
|
|
718
|
+
contentEl.setAttribute("role", "menuitem");
|
|
719
|
+
}
|
|
720
|
+
},
|
|
684
721
|
|
|
685
722
|
/**
|
|
686
723
|
* Update position if the menu or the root is resized
|
|
@@ -790,6 +827,31 @@ qx.Class.define("qx.ui.menu.Menu",
|
|
|
790
827
|
mgr.cancelOpen(this.__scheduledOpen);
|
|
791
828
|
}
|
|
792
829
|
}
|
|
830
|
+
},
|
|
831
|
+
|
|
832
|
+
/*
|
|
833
|
+
---------------------------------------------------------------------------
|
|
834
|
+
HELPER FUNCTIONS
|
|
835
|
+
---------------------------------------------------------------------------
|
|
836
|
+
*/
|
|
837
|
+
|
|
838
|
+
/**
|
|
839
|
+
* Get the opener of the root/the first parent menu.
|
|
840
|
+
* parent menu.
|
|
841
|
+
*
|
|
842
|
+
* @return {qx.ui.core.Widget|null} The opener.
|
|
843
|
+
*/
|
|
844
|
+
__getRootOpener: function () {
|
|
845
|
+
let parentMenu = this.getParentMenu();
|
|
846
|
+
if (!parentMenu) {
|
|
847
|
+
return this.getOpener();
|
|
848
|
+
}
|
|
849
|
+
let opener;
|
|
850
|
+
while (parentMenu) {
|
|
851
|
+
opener = parentMenu.getOpener();
|
|
852
|
+
parentMenu = parentMenu.getParentMenu();
|
|
853
|
+
}
|
|
854
|
+
return opener;
|
|
793
855
|
}
|
|
794
856
|
},
|
|
795
857
|
|
|
@@ -44,6 +44,12 @@ qx.Class.define("qx.ui.menu.RadioButton",
|
|
|
44
44
|
{
|
|
45
45
|
this.base(arguments);
|
|
46
46
|
|
|
47
|
+
// ARIA attrs
|
|
48
|
+
// Important: (Grouped) radio btns should be children of a div with role 'radiogroup'
|
|
49
|
+
const contentEl = this.getContentElement();
|
|
50
|
+
contentEl.setAttribute("role", "radio");
|
|
51
|
+
contentEl.setAttribute("aria-checked", false);
|
|
52
|
+
|
|
47
53
|
// Initialize with incoming arguments
|
|
48
54
|
if (label != null) {
|
|
49
55
|
this.setLabel(label);
|
|
@@ -120,8 +126,11 @@ qx.Class.define("qx.ui.menu.RadioButton",
|
|
|
120
126
|
|
|
121
127
|
|
|
122
128
|
// property apply
|
|
123
|
-
_applyValue
|
|
129
|
+
_applyValue: function (value, old) {
|
|
124
130
|
value ? this.addState("checked") : this.removeState("checked");
|
|
131
|
+
|
|
132
|
+
// ARIA attrs
|
|
133
|
+
this.getContentElement().setAttribute("aria-checked", Boolean(value));
|
|
125
134
|
},
|
|
126
135
|
|
|
127
136
|
|
|
@@ -24,25 +24,6 @@ qx.Class.define("qx.ui.menubar.Button",
|
|
|
24
24
|
{
|
|
25
25
|
extend : qx.ui.form.MenuButton,
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
/*
|
|
30
|
-
*****************************************************************************
|
|
31
|
-
CONSTRUCTOR
|
|
32
|
-
*****************************************************************************
|
|
33
|
-
*/
|
|
34
|
-
|
|
35
|
-
construct : function(label, icon, menu)
|
|
36
|
-
{
|
|
37
|
-
this.base(arguments, label, icon, menu);
|
|
38
|
-
|
|
39
|
-
this.removeListener("keydown", this._onKeyDown);
|
|
40
|
-
this.removeListener("keyup", this._onKeyUp);
|
|
41
|
-
},
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
27
|
/*
|
|
47
28
|
*****************************************************************************
|
|
48
29
|
PROPERTIES
|
|
@@ -62,17 +43,9 @@ qx.Class.define("qx.ui.menubar.Button",
|
|
|
62
43
|
refine : true,
|
|
63
44
|
init : "inherit"
|
|
64
45
|
},
|
|
65
|
-
|
|
66
|
-
focusable :
|
|
67
|
-
{
|
|
68
|
-
refine : true,
|
|
69
|
-
init : false
|
|
70
|
-
}
|
|
71
46
|
},
|
|
72
47
|
|
|
73
48
|
|
|
74
|
-
|
|
75
|
-
|
|
76
49
|
/*
|
|
77
50
|
*****************************************************************************
|
|
78
51
|
MEMBERS
|
|
@@ -22,8 +22,20 @@
|
|
|
22
22
|
qx.Class.define("qx.ui.menubar.MenuBar",
|
|
23
23
|
{
|
|
24
24
|
extend : qx.ui.toolbar.ToolBar,
|
|
25
|
+
|
|
26
|
+
/*
|
|
27
|
+
*****************************************************************************
|
|
28
|
+
CONSTRUCTOR
|
|
29
|
+
*****************************************************************************
|
|
30
|
+
*/
|
|
25
31
|
|
|
32
|
+
construct : function()
|
|
33
|
+
{
|
|
34
|
+
this.base(arguments);
|
|
26
35
|
|
|
36
|
+
// ARIA attrs
|
|
37
|
+
this.getContentElement().setAttribute("role", "menubar");
|
|
38
|
+
},
|
|
27
39
|
|
|
28
40
|
/*
|
|
29
41
|
*****************************************************************************
|
|
@@ -78,6 +78,9 @@ qx.Class.define("qx.ui.splitpane.Blocker",
|
|
|
78
78
|
|
|
79
79
|
// property apply
|
|
80
80
|
_applyOrientation : function(value, old) {
|
|
81
|
+
// ARIA attrs
|
|
82
|
+
this.setAttribute("aria-orientation", value);
|
|
83
|
+
|
|
81
84
|
if (value == "horizontal") {
|
|
82
85
|
this.setStyle("height", "100%");
|
|
83
86
|
this.setStyle("cursor", "col-resize");
|
|
@@ -226,6 +226,9 @@ qx.Class.define("qx.ui.splitpane.Pane",
|
|
|
226
226
|
*/
|
|
227
227
|
_applyOrientation : function(value, old)
|
|
228
228
|
{
|
|
229
|
+
// ARIA attrs
|
|
230
|
+
this.getContentElement().setAttribute("aria-orientation", value);
|
|
231
|
+
|
|
229
232
|
var slider = this.getChildControl("slider");
|
|
230
233
|
var splitter = this.getChildControl("splitter");
|
|
231
234
|
|
|
@@ -218,6 +218,9 @@ qx.Class.define("qx.ui.table.Table",
|
|
|
218
218
|
// properties.
|
|
219
219
|
tableModel.init(this);
|
|
220
220
|
}
|
|
221
|
+
|
|
222
|
+
// ARIA attrs
|
|
223
|
+
this.getContentElement().setAttribute("role", "grid");
|
|
221
224
|
},
|
|
222
225
|
|
|
223
226
|
|
|
@@ -753,6 +756,7 @@ qx.Class.define("qx.ui.table.Table",
|
|
|
753
756
|
|
|
754
757
|
__additionalStatusBarText : null,
|
|
755
758
|
__lastRowCount : null,
|
|
759
|
+
__lastColCount : null,
|
|
756
760
|
__internalChange : null,
|
|
757
761
|
|
|
758
762
|
__columnMenuButtons : null,
|
|
@@ -1399,6 +1403,19 @@ qx.Class.define("qx.ui.table.Table",
|
|
|
1399
1403
|
|
|
1400
1404
|
this._updateScrollBarVisibility();
|
|
1401
1405
|
this._updateStatusBar();
|
|
1406
|
+
|
|
1407
|
+
// ARIA attrs
|
|
1408
|
+
this.getContentElement().setAttribute("aria-rowcount", rowCount);
|
|
1409
|
+
}
|
|
1410
|
+
|
|
1411
|
+
const colCount = this.getTableModel().getColumnCount();
|
|
1412
|
+
|
|
1413
|
+
if (colCount != this.__lastColCount)
|
|
1414
|
+
{
|
|
1415
|
+
this.__lastColCount = colCount;
|
|
1416
|
+
|
|
1417
|
+
// ARIA attrs
|
|
1418
|
+
this.getContentElement().setAttribute("aria-colcount", colCount);
|
|
1402
1419
|
}
|
|
1403
1420
|
},
|
|
1404
1421
|
|
|
@@ -1703,6 +1720,10 @@ qx.Class.define("qx.ui.table.Table",
|
|
|
1703
1720
|
if (col != null && scrollVisible) {
|
|
1704
1721
|
this.scrollCellVisible(col, row);
|
|
1705
1722
|
}
|
|
1723
|
+
|
|
1724
|
+
// ARIA attrs
|
|
1725
|
+
const cellId = "qooxdoo-table-cell-" + this.toHashCode() + "-" + row + "-" + col;
|
|
1726
|
+
this.getContentElement().setAttribute("aria-activedescendant", cellId);
|
|
1706
1727
|
}
|
|
1707
1728
|
},
|
|
1708
1729
|
|
|
@@ -1805,8 +1826,9 @@ qx.Class.define("qx.ui.table.Table",
|
|
|
1805
1826
|
var col = this.__focusedCol;
|
|
1806
1827
|
var row = this.__focusedRow;
|
|
1807
1828
|
|
|
1808
|
-
// could also be undefined [BUG #4676]
|
|
1809
|
-
if (col
|
|
1829
|
+
// could also be undefined [BUG #4676]. In that case default to first cell focus
|
|
1830
|
+
if (col === null || col === undefined || row === null || row === undefined) {
|
|
1831
|
+
this.setFocusedCell(0, 0, true);
|
|
1810
1832
|
return;
|
|
1811
1833
|
}
|
|
1812
1834
|
|
|
@@ -168,7 +168,9 @@ qx.Class.define("qx.ui.table.cellrenderer.Abstract",
|
|
|
168
168
|
*/
|
|
169
169
|
_getCellAttributes : function(cellInfo)
|
|
170
170
|
{
|
|
171
|
-
|
|
171
|
+
const cellId = "qooxdoo-table-cell-" + cellInfo.table.toHashCode() + "-" + cellInfo.row + "-" + cellInfo.col;
|
|
172
|
+
const readOnly = cellInfo.editable !== null && cellInfo.editable !== undefined ? !cellInfo.editable : true;
|
|
173
|
+
return "id=" + cellId + " role=gridcell aria-readonly=" + readOnly;
|
|
172
174
|
},
|
|
173
175
|
|
|
174
176
|
|
|
@@ -255,12 +255,16 @@ qx.Class.define("qx.ui.table.cellrenderer.AbstractImage",
|
|
|
255
255
|
// overridden
|
|
256
256
|
_getCellAttributes : function(cellInfo)
|
|
257
257
|
{
|
|
258
|
-
|
|
258
|
+
let baseAttrs = this.base(arguments, cellInfo);
|
|
259
|
+
if (!baseAttrs) {
|
|
260
|
+
baseAttrs = "";
|
|
261
|
+
}
|
|
259
262
|
|
|
263
|
+
var tooltip = this.__imageData.tooltip;
|
|
260
264
|
if (tooltip) {
|
|
261
|
-
return "title='" + tooltip + "'";
|
|
265
|
+
return baseAttrs + " title='" + tooltip + "'";
|
|
262
266
|
} else {
|
|
263
|
-
return
|
|
267
|
+
return baseAttrs;
|
|
264
268
|
}
|
|
265
269
|
}
|
|
266
270
|
},
|
|
@@ -697,17 +697,13 @@ qx.Class.define("qx.ui.table.pane.Scroller",
|
|
|
697
697
|
{
|
|
698
698
|
this.__tablePane.onTableModelDataChanged(firstRow, lastRow, firstColumn, lastColumn);
|
|
699
699
|
var rowCount = this.getTable().getTableModel().getRowCount();
|
|
700
|
-
var colCount = this.__table.getTableColumnModel().getOverallColumnCount();
|
|
701
700
|
|
|
702
701
|
if (rowCount != this.__lastRowCount)
|
|
703
702
|
{
|
|
704
703
|
this.updateVerScrollBarMaximum();
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
this.setFocusedCell(this.getFocusedColumn()||0, 0);
|
|
709
|
-
}
|
|
710
|
-
else if (this.getFocusedRow() >= rowCount)
|
|
704
|
+
|
|
705
|
+
const focusedRow = this.getFocusedRow();
|
|
706
|
+
if (focusedRow !== null && focusedRow >= rowCount)
|
|
711
707
|
{
|
|
712
708
|
if (rowCount == 0) {
|
|
713
709
|
this.setFocusedCell(null, null);
|
|
@@ -54,6 +54,22 @@ qx.Class.define("qx.ui.tabview.Page",
|
|
|
54
54
|
this.setIcon(icon);
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
+
// ARIA attrs
|
|
58
|
+
const btn = this.getButton();
|
|
59
|
+
const pageId = "page-" + this.toHashCode();
|
|
60
|
+
const btnId = "btn-" + pageId + btn.toHashCode();
|
|
61
|
+
const contentEl = this.getContentElement();
|
|
62
|
+
contentEl.setAttribute("id", pageId);
|
|
63
|
+
contentEl.setAttribute("role", "tabpanel");
|
|
64
|
+
contentEl.setAttribute("aria-labelledBy", btnId);
|
|
65
|
+
contentEl.setAttribute("aria-expanded", false);
|
|
66
|
+
|
|
67
|
+
const btnContentEl = btn.getContentElement();
|
|
68
|
+
btnContentEl.setAttribute("id", btnId);
|
|
69
|
+
btnContentEl.setAttribute("role", "tab");
|
|
70
|
+
btnContentEl.setAttribute("aria-selected", false);
|
|
71
|
+
btnContentEl.setAttribute("aria-controls", pageId);
|
|
72
|
+
btn.addListener("changeValue", this._onBtnChangeValue, this);
|
|
57
73
|
},
|
|
58
74
|
|
|
59
75
|
|
|
@@ -224,6 +240,16 @@ qx.Class.define("qx.ui.tabview.Page",
|
|
|
224
240
|
return control || this.base(arguments, id);
|
|
225
241
|
},
|
|
226
242
|
|
|
243
|
+
/**
|
|
244
|
+
* Tab Change Listener
|
|
245
|
+
* @param {*} e
|
|
246
|
+
*/
|
|
247
|
+
_onBtnChangeValue: function (e) {
|
|
248
|
+
const val = e.getData();
|
|
249
|
+
this.getContentElement().setAttribute("aria-expanded", val, true); // Set third argument to true -> direct Update
|
|
250
|
+
this.getButton().getContentElement().setAttribute("aria-selected", val);
|
|
251
|
+
},
|
|
252
|
+
|
|
227
253
|
/*
|
|
228
254
|
---------------------------------------------------------------------------
|
|
229
255
|
PROPERTY APPLY
|
|
@@ -19,32 +19,12 @@
|
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
21
|
* The normal toolbar button. Like a normal {@link qx.ui.form.Button}
|
|
22
|
-
* but with a style matching the toolbar
|
|
22
|
+
* but with a style matching the toolbar.
|
|
23
23
|
*/
|
|
24
24
|
qx.Class.define("qx.ui.toolbar.Button",
|
|
25
25
|
{
|
|
26
26
|
extend : qx.ui.form.Button,
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
/*
|
|
31
|
-
*****************************************************************************
|
|
32
|
-
CONSTRUCTOR
|
|
33
|
-
*****************************************************************************
|
|
34
|
-
*/
|
|
35
|
-
|
|
36
|
-
construct : function(label, icon, command)
|
|
37
|
-
{
|
|
38
|
-
this.base(arguments, label, icon, command);
|
|
39
|
-
|
|
40
|
-
// Toolbar buttons should not support the keyboard events
|
|
41
|
-
this.removeListener("keydown", this._onKeyDown);
|
|
42
|
-
this.removeListener("keyup", this._onKeyUp);
|
|
43
|
-
},
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
28
|
/*
|
|
49
29
|
*****************************************************************************
|
|
50
30
|
PROPERTIES
|
|
@@ -64,12 +44,6 @@ qx.Class.define("qx.ui.toolbar.Button",
|
|
|
64
44
|
refine : true,
|
|
65
45
|
init : "inherit"
|
|
66
46
|
},
|
|
67
|
-
|
|
68
|
-
focusable :
|
|
69
|
-
{
|
|
70
|
-
refine : true,
|
|
71
|
-
init : false
|
|
72
|
-
}
|
|
73
47
|
},
|
|
74
48
|
|
|
75
49
|
members : {
|
|
@@ -84,3 +58,4 @@ qx.Class.define("qx.ui.toolbar.Button",
|
|
|
84
58
|
}
|
|
85
59
|
}
|
|
86
60
|
});
|
|
61
|
+
|
|
@@ -24,27 +24,6 @@ qx.Class.define("qx.ui.toolbar.CheckBox",
|
|
|
24
24
|
{
|
|
25
25
|
extend : qx.ui.form.ToggleButton,
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
/*
|
|
31
|
-
*****************************************************************************
|
|
32
|
-
CONSTRUCTOR
|
|
33
|
-
*****************************************************************************
|
|
34
|
-
*/
|
|
35
|
-
|
|
36
|
-
construct : function(label, icon)
|
|
37
|
-
{
|
|
38
|
-
this.base(arguments, label, icon);
|
|
39
|
-
|
|
40
|
-
// Toolbar buttons should not support the keyboard events
|
|
41
|
-
this.removeListener("keydown", this._onKeyDown);
|
|
42
|
-
this.removeListener("keyup", this._onKeyUp);
|
|
43
|
-
},
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
27
|
/*
|
|
49
28
|
*****************************************************************************
|
|
50
29
|
PROPERTIES
|
|
@@ -64,12 +43,6 @@ qx.Class.define("qx.ui.toolbar.CheckBox",
|
|
|
64
43
|
refine : true,
|
|
65
44
|
init : "inherit"
|
|
66
45
|
},
|
|
67
|
-
|
|
68
|
-
focusable :
|
|
69
|
-
{
|
|
70
|
-
refine : true,
|
|
71
|
-
init : false
|
|
72
|
-
}
|
|
73
46
|
},
|
|
74
47
|
|
|
75
48
|
members : {
|
|
@@ -29,7 +29,23 @@ qx.Class.define("qx.ui.toolbar.RadioButton",
|
|
|
29
29
|
include : [qx.ui.form.MModelProperty],
|
|
30
30
|
implement : [qx.ui.form.IModel, qx.ui.form.IRadioItem],
|
|
31
31
|
|
|
32
|
+
/*
|
|
33
|
+
*****************************************************************************
|
|
34
|
+
CONSTRUCTOR
|
|
35
|
+
*****************************************************************************
|
|
36
|
+
*/
|
|
32
37
|
|
|
38
|
+
construct : function(label, icon)
|
|
39
|
+
{
|
|
40
|
+
this.base(arguments, label, icon);
|
|
41
|
+
|
|
42
|
+
// ARIA attrs
|
|
43
|
+
// Important: (Grouped) radio btns should be children of a div with role 'radiogroup'
|
|
44
|
+
const contentEl = this.getContentElement();
|
|
45
|
+
contentEl.setAttribute("role", "radio");
|
|
46
|
+
contentEl.setAttribute("aria-checked", false);
|
|
47
|
+
contentEl.removeAttribute("aria-pressed");
|
|
48
|
+
},
|
|
33
49
|
|
|
34
50
|
|
|
35
51
|
/*
|
|
@@ -51,6 +67,11 @@ qx.Class.define("qx.ui.toolbar.RadioButton",
|
|
|
51
67
|
{
|
|
52
68
|
this.base(arguments, value, old);
|
|
53
69
|
|
|
70
|
+
// ARIA attrs
|
|
71
|
+
const contentEl = this.getContentElement();
|
|
72
|
+
contentEl.removeAttribute("aria-pressed");
|
|
73
|
+
contentEl.setAttribute("aria-checked", Boolean(value));
|
|
74
|
+
|
|
54
75
|
if (value)
|
|
55
76
|
{
|
|
56
77
|
var grp = this.getGroup();
|
|
@@ -28,26 +28,6 @@ qx.Class.define("qx.ui.toolbar.SplitButton",
|
|
|
28
28
|
{
|
|
29
29
|
extend : qx.ui.form.SplitButton,
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
/*
|
|
34
|
-
*****************************************************************************
|
|
35
|
-
CONSTRUCTOR
|
|
36
|
-
*****************************************************************************
|
|
37
|
-
*/
|
|
38
|
-
|
|
39
|
-
construct : function(label, icon, menu, command)
|
|
40
|
-
{
|
|
41
|
-
this.base(arguments, label, icon, menu, command);
|
|
42
|
-
|
|
43
|
-
// Toolbar buttons should not support the keyboard events
|
|
44
|
-
this.removeListener("keydown", this._onKeyDown);
|
|
45
|
-
this.removeListener("keyup", this._onKeyUp);
|
|
46
|
-
},
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
31
|
/*
|
|
52
32
|
*****************************************************************************
|
|
53
33
|
PROPERTIES
|
|
@@ -62,14 +42,6 @@ qx.Class.define("qx.ui.toolbar.SplitButton",
|
|
|
62
42
|
refine : true,
|
|
63
43
|
init : "toolbar-splitbutton"
|
|
64
44
|
},
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
// overridden
|
|
68
|
-
focusable :
|
|
69
|
-
{
|
|
70
|
-
refine : true,
|
|
71
|
-
init : false
|
|
72
|
-
}
|
|
73
45
|
},
|
|
74
46
|
|
|
75
47
|
|
package/source/class/qxWeb.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -38,7 +38,9 @@
|
|
|
38
38
|
} else {
|
|
39
39
|
window.document = document = {
|
|
40
40
|
readyState: "ready",
|
|
41
|
-
currentScript: {
|
|
41
|
+
currentScript: {
|
|
42
|
+
src: new (require('url').URL)('file:' + __filename).href
|
|
43
|
+
},
|
|
42
44
|
createEvent: function() {
|
|
43
45
|
return {
|
|
44
46
|
initCustomEvent: function() {}
|