Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enabling accessibility for slickgrid #1

Open
wants to merge 1,228 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1228 commits
Select commit Hold shift + click to select a range
427e2bf
left a line out of the changes from PR 232
6pac Apr 25, 2018
2dbffbe
fix issue #68 editor with activeRow selection
ghiscoding May 11, 2018
5d9e444
Revert "fix issue #68 editor with activeRow selection"
ghiscoding May 11, 2018
e170d5c
fix issue #68 editor with activeRow selection
ghiscoding May 11, 2018
a2c791c
Should only suppressActiveCellChangedEvent when Grid is Editable
ghiscoding May 12, 2018
b216a04
suppressActiveCellChangedEvent only when the cell has an Editor attached
ghiscoding May 12, 2018
d778e25
Merge pull request #241 from 6pac/fix/editor-with-active-row
6pac May 12, 2018
6e4b6b6
release v2.3.18
6pac May 12, 2018
9d0ad63
feature(grid): first working draft of X-Slickgrid merge to SlickGrid
ghiscoding May 15, 2018
6ac4e4e
fixed couple of issues found and get code closer to previous code
ghiscoding May 15, 2018
6ef59c8
refactored code from original slick.grid file
ghiscoding May 17, 2018
41153bc
fix editor position and data
ghiscoding May 17, 2018
abf0ff3
bugfix(editor): add a flag to suppress active cell changed on edit #242
ghiscoding May 17, 2018
ce0af41
fix(gridMenu): GridMenu with multiple grids & event leak
ghiscoding May 18, 2018
16f9b1e
Merge pull request #244 from 6pac/fix/grid-menu-with-multiple-grids
6pac May 18, 2018
0ee208f
Merge pull request #243 from 6pac/bugfix/suppress-active-cell-on-edit
6pac May 18, 2018
91d1adc
Update README.md
6pac May 18, 2018
cf87a46
release v2.3.19
6pac May 18, 2018
553d9c0
update to latest and copy more of the original code
ghiscoding May 19, 2018
e3d9856
fix pre-header
ghiscoding May 19, 2018
684017e
feature(selector): Provide a way to hide the "Select All" checkbox
ghiscoding May 19, 2018
759355c
refactor(selector): make sure the isSelectAllChecked is always available
ghiscoding May 19, 2018
037acaa
Merge pull request #246 from 6pac/feature/checkbox-selector-hide-sele…
6pac May 20, 2018
6fc6eea
feat(picker): Column Picker expose init to use by translation
ghiscoding Jun 20, 2018
ab39da9
Merge pull request #253 from 6pac/feature/picker-init
6pac Jul 12, 2018
b2459b9
Use text=auto for JS and HTML files
vlsi Jul 19, 2018
14bb1a8
Merge pull request #260 from vlsi/crlf
6pac Jul 20, 2018
09962d9
add onAutosizeColumns event
6pac Jul 20, 2018
387df5c
release v2.3.20
6pac Jul 20, 2018
93f043f
remove e (causing error) from onResizeColumns and remove grid:self sp…
6pac Jul 26, 2018
151c073
release v2.3.21
6pac Jul 26, 2018
3d2ef21
feat(demo): add demo for testing grid.autosizeColumns fn, ref #264
ghiscoding Jul 26, 2018
267e0f9
Merge pull request #265 from 6pac/feature/demo-autosize-columns
6pac Jul 26, 2018
b77505b
Minimal change to fix drifting page down
budden Sep 10, 2018
f806ad0
feat(checkbox): add way to show Checbox Selector in Filter Row
ghiscoding Sep 11, 2018
53c8fe8
refactor(link): update view source link
ghiscoding Sep 11, 2018
1e5850c
refactor(selector): fix incorrect checkbox for label
ghiscoding Sep 11, 2018
b1ba6f7
refactor(selector): fix toggle show/hide select all with Font-Awesom
ghiscoding Sep 11, 2018
b2a31b5
refactor(selector): add toggle to change row to display Select All btn
ghiscoding Sep 11, 2018
d11039a
fix Select All checked flag when using setOptions on filter row
ghiscoding Sep 11, 2018
8b5c3f2
fix handle click from title not always working when using setOptions
ghiscoding Sep 11, 2018
156432c
refactor(selector): inversed flag from showX to hideX
ghiscoding Sep 11, 2018
27e92ea
remove jqueryui dependency in groupmetadataprovider #277
6pac Sep 22, 2018
bec5d96
Merge pull request #271 from 6pac/feat/filter-checkbox-selector
6pac Sep 23, 2018
11b365d
fix setSelectedRows should bypass when editor is active, closes #278
ghiscoding Nov 2, 2018
9da3c4e
Feature/row detail view (#287)
ghiscoding Nov 20, 2018
1e8cd18
Clean up .npmignore and exclude test/examples from final npm bundle (…
sehrope Nov 20, 2018
1345a81
Merge branch 'master' of github.com:6pac/SlickGrid
6pac Nov 24, 2018
dca75f8
Fix hidden sort column when multiColumnSort = true
levushka Nov 27, 2018
735ba8c
Merge pull request #293 from levushka/patch-1
6pac Nov 27, 2018
28805d9
few fixes mentioned in #26
ghiscoding Dec 1, 2018
2961557
update code as per comment in #26
ghiscoding Dec 1, 2018
07e4dd5
update keycode constant to remove jQuery dependency
6pac Dec 4, 2018
de6bee1
Merge branch 'master' of github.com:6pac/SlickGrid
6pac Dec 4, 2018
a8d4452
add css patch line for firefox (this should have no impact for modern…
6pac Dec 4, 2018
e9c304e
Merge pull request #284 from 6pac/bugfix/set-selected-rows
6pac Dec 4, 2018
cb6efd5
fix gotoRowStart and gotoRowEnd bug as per issue #279
6pac Dec 5, 2018
1c1c8ec
Merge branch 'master' of github.com:6pac/SlickGrid
6pac Dec 5, 2018
0abf432
Add event to editor initialisation code as per #276. Add column name …
6pac Dec 6, 2018
51f38e5
refactored cellrange as per comment in issue #26
ghiscoding Dec 7, 2018
5918807
fix missing e param in makeActiveCellEditable
6pac Dec 8, 2018
a51ce63
release v2.3.22
6pac Dec 8, 2018
4bf68ed
fixes issue #299, notify onGroupChanged even on empty array
ghiscoding Dec 8, 2018
aee3ee8
fix grid variable not exist in setSelectedRows
ghiscoding Dec 8, 2018
d5762cc
remove redundant notify since it should only be called in updateGroupBy
ghiscoding Dec 8, 2018
8811fb6
Merge pull request #302 from 6pac/bugfix/set-selected-row
6pac Dec 8, 2018
967e7c9
Merge pull request #300 from 6pac/bugfix/draggable-grouping-notify
6pac Dec 8, 2018
854301d
release v2.3.23
6pac Dec 8, 2018
70a25c5
feat(grouping): add caller/originator to updateGroupBy
ghiscoding Dec 8, 2018
862eda8
Merge pull request #303 from 6pac/feat/draggable-grouping-caller
6pac Dec 8, 2018
962073d
fix invalid error catch
ghiscoding Dec 12, 2018
82f3c2f
WIP - row detail view - provide alternative calculation (#304)
ghiscoding Dec 14, 2018
c012add
fix(gridmenu): should be using grid UID for menu independence (#305)
ghiscoding Dec 14, 2018
aa3e7a5
add new event: onRenderedEvent
ghiscoding Dec 17, 2018
edc76aa
Merge pull request #309 from 6pac/feat/on-rendered-event
6pac Dec 17, 2018
d193f8a
row detail plugin, use new onRendered event (#310)
ghiscoding Dec 18, 2018
044b31e
Add option.alwaysShowHorizontalScroll to fix #307, if true don't set …
6pac Dec 20, 2018
2cb855d
Merge branch 'master' of github.com:6pac/SlickGrid
6pac Dec 20, 2018
77ffa9f
feature(selector): Provide a way to hide the "Select All" checkbox
ghiscoding May 19, 2018
5b5839c
refactor(selector): make sure the isSelectAllChecked is always available
ghiscoding May 19, 2018
7ea5375
feat(picker): Column Picker expose init to use by translation
ghiscoding Jun 20, 2018
3ffcf01
Use text=auto for JS and HTML files
ghiscoding Dec 20, 2018
6465048
Use text=auto for JS and HTML files
ghiscoding Dec 20, 2018
61d552d
add onAutosizeColumns event
ghiscoding Dec 20, 2018
9db83fa
remove e (causing error) from onResizeColumns
ghiscoding Dec 20, 2018
d747468
feat(demo): add demo for testing grid.autosizeColumns fn, ref #264
ghiscoding Jul 26, 2018
27cbbca
feat(checkbox): add way to show Checbox Selector in Filter Row
ghiscoding Sep 11, 2018
345e8d5
refactor(link): update view source link
ghiscoding Sep 11, 2018
56b0351
refactor(selector): fix incorrect checkbox for label
ghiscoding Sep 11, 2018
116d6d8
refactor(selector): fix toggle show/hide select all with Font-Awesom
ghiscoding Sep 11, 2018
3424357
refactor(selector): add toggle to change row to display Select All btn
ghiscoding Sep 11, 2018
2e65ced
fix Select All checked flag when using setOptions on filter row
ghiscoding Sep 11, 2018
b4f9943
fix handle click from title not always working when using setOptions
ghiscoding Sep 11, 2018
364b9e2
refactor(selector): inversed flag from showX to hideX
ghiscoding Sep 11, 2018
449077d
remove jqueryui dependency in groupmetadataprovider
ghiscoding Dec 20, 2018
8aa0d2c
fix setSelectedRows should bypass when editor is active, closes #278
ghiscoding Dec 20, 2018
c5dddb5
Feature/row detail view (#287)
ghiscoding Nov 20, 2018
c5b2bb0
Clean up .npmignore and exclude test/examples from final npm bundle (…
sehrope Nov 20, 2018
5a60f94
Fix hidden sort column when multiColumnSort = true
levushka Nov 27, 2018
d9ce5d8
update keycode constant to remove jQuery dependency
6pac Dec 4, 2018
0e300b6
add css patch line for firefox
ghiscoding Dec 20, 2018
2639fdd
fix gotoRowStart and gotoRowEnd bug as per issue #279
ghiscoding Dec 20, 2018
2f0ae1a
Add event to editor initialisation code as per #276. Add column name
ghiscoding Dec 20, 2018
94abb84
fix missing e param in makeActiveCellEditable
ghiscoding Dec 20, 2018
48d7f67
fixes issue #299, notify onGroupChanged even on empty array
ghiscoding Dec 8, 2018
5de5182
fix grid variable not exist in setSelectedRows
ghiscoding Dec 20, 2018
43988e6
remove redundant notify since it should only be called in updateGroupBy
ghiscoding Dec 8, 2018
7807ef0
feat(grouping): add caller/originator to updateGroupBy
ghiscoding Dec 8, 2018
deaeb7e
WIP - row detail view - provide alternative calculation (#304)
ghiscoding Dec 14, 2018
443d68d
fix(gridmenu): should be using grid UID for menu independence (#305)
ghiscoding Dec 14, 2018
579799e
add new event: onRenderedEvent
ghiscoding Dec 20, 2018
bfb7052
row detail plugin, use new onRendered event (#310)
ghiscoding Dec 18, 2018
392a75a
Add option.alwaysShowHorizontalScroll to fix #307
ghiscoding Dec 20, 2018
7b03a06
Change option name to alwaysAllowHorizontalScroll as per #307
6pac Dec 20, 2018
f12fc16
Change option name to alwaysAllowHorizontalScroll as per #307
ghiscoding Dec 20, 2018
a157c05
enable trim white space on file save
ghiscoding Dec 20, 2018
09e1908
fix cell range selector with/without frozen columns
ghiscoding Dec 21, 2018
430d7b3
fix some grids with pane overflowing in some cases
ghiscoding Dec 21, 2018
77148e6
cleanup code remove x-slickgrid comments
ghiscoding Dec 22, 2018
ad6c25f
rollback slick-pane css position since it breaks other grids
ghiscoding Dec 22, 2018
4c77bbd
fix draggable grouping example pre-header toggler leave blank space
ghiscoding Dec 22, 2018
ca231fa
fixed frozen grid row with new row count not changing scroll vertical
ghiscoding Dec 22, 2018
bd06a39
resolve some conflicts
ghiscoding Dec 22, 2018
ef63287
put back previous example-select2-editor example to fix all chars
ghiscoding Dec 22, 2018
c0a8450
add favicon to all frozen grids
ghiscoding Dec 22, 2018
f723e15
add frozen class to header row when exist for styling purposes
ghiscoding Dec 22, 2018
1263660
Merge pull request #311 from 6pac/feature/frozen-grid
6pac Dec 23, 2018
fa7da1a
release v2.4.0
6pac Dec 23, 2018
17214a7
fix empty dataset throws an error on start (#313)
ghiscoding Dec 23, 2018
f7eba1f
release v2.4.1
6pac Dec 23, 2018
ea12fc6
Remove unwanted horizontal scrollbar
8over8 Dec 29, 2018
cd88326
Merge pull request #314 from 8over8/patch-3
6pac Dec 29, 2018
d8ca85f
fix frozenRow options not working when dataview is async
ghiscoding Dec 29, 2018
228ab10
Merge pull request #315 from 6pac/bugfix/frozen-row-empty-dataset
6pac Dec 29, 2018
85b57b1
feat(divider): add divider option to Grid Menu & Column Header Menu
ghiscoding Jan 12, 2019
a7777c4
refactor(divider): no need to create menu item
ghiscoding Jan 12, 2019
ec01ed9
Fix options references
SatanEnglish Jan 13, 2019
a08fb1b
Merge pull request #319 from 6pac/feat/grid-menu-and-header-menu-divider
6pac Jan 14, 2019
db387db
Added the missing link for CSS
SatanEnglish Jan 14, 2019
5a29316
Added alwaysRenderColumn to allow for the rendered cells and columns …
Jan 14, 2019
da78920
Added more bullet proof checks as asked for by ghiscoding
Jan 14, 2019
83c7efe
Merge pull request #322 from SatanEnglish/SatanEnglish-patch-1
6pac Jan 15, 2019
067aa17
Merge pull request #325 from SatanEnglish/always-render-column-v2
6pac Jan 20, 2019
65170f4
add braces to logic around alwaysRenderColumn so as not to depend on …
6pac Jan 20, 2019
22628c7
release v2.4.2
6pac Jan 20, 2019
8124d20
Merge pull request #1 from 6pac/master
jadjare Jan 29, 2019
753efa8
Always handle mouse wheel, even if frozen columns/rows not set
jadjare Jan 29, 2019
b74db38
add logging to row reordering example to facilitate debugging, add de…
6pac Feb 1, 2019
4db4433
feat(formatter): add toolTip to Formatter with extended object
ghiscoding Feb 1, 2019
0036d8a
Merge pull request #330 from 6pac/feat/formatter-title-attribute
6pac Feb 1, 2019
055053b
Merge pull request #270 from budden/simpler-fix-to-drifting-page-down
6pac Feb 1, 2019
09737ff
Merge pull request #327 from jadjare/bugfix/frozen_column_mousewheel_…
6pac Feb 3, 2019
217365e
fix(examples): simple button alignement fixes (#335)
ghiscoding Feb 6, 2019
dcf8194
fix(selector): cell range selector was not working when at bottom (#331)
ghiscoding Feb 6, 2019
692785a
fix(selection): copy text selection now working (#333)
ghiscoding Feb 7, 2019
aa54eae
fix(selector): cell selector throws error in console when no scroll (…
ghiscoding Feb 7, 2019
beaa586
fix(selector): cell selector throws error in console when no scroll (…
ghiscoding Feb 8, 2019
fcab948
fix(overflow-scrolling): remove old patch now unnecessary, closes #332
ghiscoding Feb 8, 2019
f44a398
Merge pull request #339 from 6pac/bugfix/overflow-scrolling
6pac Feb 9, 2019
6fe0fb2
release v2.4.3
6pac Feb 9, 2019
d7953c7
replace all indent tabs with spaces
6pac Feb 9, 2019
f0de3cc
add .columnId to sort columns passed to OnSort(), as there is some in…
6pac Feb 10, 2019
25dd4c9
rework headermenu example to make simpler and fix a number of subtle …
6pac Feb 10, 2019
6a3b896
add new onRowsOrCountChanged event as a single alternative event that…
6pac Feb 23, 2019
f30bf6f
feat(selectable): add override method to know which row is selectable…
ghiscoding Mar 1, 2019
4ca6c6d
fix(cellSelection): deep copy so we can use of shift+arrow, closes #3…
ghiscoding Mar 2, 2019
b1b93d8
release v2.4.4
6pac Mar 2, 2019
d3144fa
Use $headerScroller to calculate height instead of $headers (#342)
DarranShepherd Mar 5, 2019
01943dd
refactor(selection): rename override to selectableOverride (#352)
ghiscoding Mar 8, 2019
af03494
add rowCountChanged and rowsChanges bools to onRowsOrCountChanged eve…
6pac Mar 9, 2019
01ff647
add plugin object retrieval by name to grid. all plugins now have/nee…
6pac Mar 9, 2019
98ff6e9
Merge branch 'master' of github.com:6pac/SlickGrid
6pac Mar 9, 2019
391e83c
refactor column property initialisation to avoid duplicate code. Corr…
6pac Mar 11, 2019
1e2194c
copy initial column width value to requestWidth before default width …
6pac Mar 11, 2019
116addc
feat(rowDetail): add override method to know which row is expandable …
ghiscoding Mar 11, 2019
e06fe06
fix(update): fix update an item id using DataView, closes #353
ghiscoding Mar 15, 2019
f7618b8
Merge pull request #354 from 6pac/bugfix/update-item-id
6pac Mar 15, 2019
ee005c5
Grundlegende Zugänglichkeit von Slickgrid implementiert.
heiko-folkerts-msg-david Mar 22, 2019
fd06af5
feat(gridMenu): add grid UID to the GridMenu control
ghiscoding Mar 23, 2019
8f00154
Merge pull request #355 from 6pac/feat/grid-menu-uid
6pac Mar 24, 2019
f515b9b
release v2.4.5
6pac Mar 24, 2019
cde548d
fix(rowDetail): override formatter, don't use global grid instance
ghiscoding Mar 30, 2019
72c951a
feat(checkbox): add possibility to override directly from plugin options
ghiscoding Mar 30, 2019
928b22b
Merge pull request #358 from 6pac/bugfix/row-detail-override-missing-…
6pac Mar 30, 2019
a7d731b
Merge pull request #359 from 6pac/feat/checkbox-override-into-options
6pac Mar 30, 2019
31dc311
fix(autoHeight): horizontal scroll not showing when needed, fixes #356
ghiscoding Mar 30, 2019
879d918
fix(examples): Select2 examples have some glitches (#361)
daisuke-f Mar 31, 2019
7e18a41
Merge pull request #362 from daisuke-f/bugfix/select2-examples
6pac Mar 31, 2019
87e4e74
Merge pull request #360 from 6pac/bugfix/autoheight-horizontal-scroll
6pac Apr 1, 2019
8c39435
fix(autoheight): updateRowCount shouldn't set virtual height, fixes #364
ghiscoding Apr 6, 2019
fc595ef
Merge pull request #365 from 6pac/fix/autoheight-virtual-height
6pac Apr 7, 2019
b4c73d5
release v2.4.6
6pac Apr 7, 2019
80d2400
fix selection behaviour in gotoCell() as per stackoverflow.com/questi…
6pac Apr 17, 2019
bd74ccb
release v2.4.7
6pac Apr 17, 2019
c78d007
There was small issue with getPluginByName function. It starts with i…
keshri21 Apr 20, 2019
2826848
Merge pull request #366 from keshri21/issue_with_getPluginByName
6pac Apr 22, 2019
8ad6b0a
commented line on jquery.event.drag to avoid conflicts with froala
loonix May 10, 2019
92e0d19
Update README.md
loonix May 10, 2019
df93ae0
Update README.md
loonix May 10, 2019
a0300f0
fix(plugin): Row Detail always show a scroll even when has enough spa…
ghiscoding May 10, 2019
ff97884
Workaround for Froala and Slickgrid to work
loonix May 10, 2019
e4a7fe4
fix #371 for number larger than 2.14 billion
May 11, 2019
441672c
changed comment
loonix May 13, 2019
dbebf40
removed text to make pr
loonix May 13, 2019
34ec867
Merge pull request #372 from loonix/master
6pac May 13, 2019
7ebacc6
Updates per 6pac's PR review
May 14, 2019
6de2127
convert string to int
May 14, 2019
4576936
Merge pull request #374 from vin-e/bugfix/large-number
6pac May 15, 2019
91f5dac
Remove copy of slick grid java script.
heiko-folkerts-msg-david May 20, 2019
bfe6512
feat(rowDetail): add option "singleRowExpand"
ghiscoding May 20, 2019
d8df5d0
feat(gridMenu): add columnDef option to exclude a column from grid menu
ghiscoding May 20, 2019
2c38c59
feat(columnPicker): add columnDef option to exclude a column from picker
ghiscoding May 20, 2019
b6f0b61
feat(gridMenu): rename column field to # instead of Id
ghiscoding May 20, 2019
c6ee535
Merge pull request #377 from 6pac/feat/exclude-column-from-column-picker
6pac May 21, 2019
038aa84
Merge pull request #376 from 6pac/feat/exclude-column-from-grid-menu
6pac May 21, 2019
7ddfa07
Erstes Beispiel lauffähig:
heiko-folkerts-msg-david May 21, 2019
9d441b3
example 2 and 3 are now accessible
heiko-folkerts-msg-david May 21, 2019
46e0066
Make the formatters accessible:
heiko-folkerts-msg-david May 22, 2019
4fc43bd
Example 3 with long text editor is now basically working:
heiko-folkerts-msg-david May 23, 2019
d859466
release v2.4.8
6pac May 24, 2019
832d2ed
fix(event): rollback commit 34ec867 to fix column resize is broken
ghiscoding May 28, 2019
b78d264
fix style of undefined rowNode
May 28, 2019
2f65f1a
Merge pull request #382 from 6pac/fix/column-resize-event
6pac May 28, 2019
7408a11
fix(ie): increase performance in IE, closes #367
ghiscoding May 30, 2019
d8c360c
Merge pull request #385 from 6pac/bugfix/performance-improvements
6pac May 30, 2019
94e1d25
PR review changes
May 30, 2019
a290abf
Attributes for the grid, are now set as specified by the WAI
heiko-folkerts-msg-david Jun 3, 2019
d77d5bd
changing tabindex=0 to tabindex0-1 for all UI elements having hidefoc…
heiko-folkerts-msg-david Jun 7, 2019
b8048ee
Cells seem now to be focussed when using a screen reader using just t…
heiko-folkerts-msg-david Jun 7, 2019
08eee84
change internal name of autosizeColumns to legacyAutosizeColumns in p…
6pac Jun 9, 2019
7bc09e0
Merge branch 'auto-columnsize'
6pac Jun 9, 2019
4c9eb93
Merge branch 'master' of github.com:6pac/SlickGrid
6pac Jun 9, 2019
e2fc0a7
Merge pull request #384 from vin-e/bugfix/rownode-is-undefined
6pac Jun 9, 2019
28fd739
release v2.4.9
6pac Jun 9, 2019
5a11c5d
add new grid and column options for autoSize
6pac Jun 9, 2019
ab47e15
license changes as per #380
6pac Jun 10, 2019
9b39a7e
Basic usage seems now to be working:
heiko-folkerts-msg-david Jun 12, 2019
fced525
Implemented full navigation keys as specified by the WAI authoring pr…
heiko-folkerts-msg-david Jun 13, 2019
538f94f
Editing now starts when pressing any alphanumeric key on an editable …
heiko-folkerts-msg-david Jun 13, 2019
8908267
Sorting is now correctly shown to a screen reader user using aria-sort.
heiko-folkerts-msg-david Jun 13, 2019
c55edfb
Distinguishing between normal grids and tree grids using treecolumns …
heiko-folkerts-msg-david Jun 13, 2019
3acc908
correct alt text for checkbox formatter so checkboxes outside the edi…
heiko-folkerts-msg-david Jun 14, 2019
32dc28b
Selected cells so far only marked by CSS classes now have the aria-se…
heiko-folkerts-msg-david Jun 14, 2019
67a6f69
Take space out of alphanumeric keys that trigger editing to enable ro…
heiko-folkerts-msg-david Jun 14, 2019
42e3192
Removed beeping for debugging when selecting and correcting indentation.
heiko-folkerts-msg-david Jun 14, 2019
57d1d55
Revert "Grundlegende Zugänglichkeit von Slickgrid implementiert."
heiko-folkerts-msg-david Jun 21, 2019
5048f98
Enabling accessibility:
heiko-folkerts-msg-david Jun 21, 2019
f0bc170
Enabling accessibility:
heiko-folkerts-msg-david Jun 21, 2019
9a8c815
Enabling accessibility
heiko-folkerts-msg-david Jun 21, 2019
c41fa19
Merge branch 'master' of https://github.com/6pac/SlickGrid
heiko-folkerts-msg-david Jun 21, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*.css text=auto
*.js text=auto
*.htm* text=auto
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.gitk*
.idea/*
.DS_Store
node_modules/*
SlickgridRelease*
nuget*
7 changes: 7 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.DS_Store
examples
.gitk*
.idea/*
nuget*
SlickgridRelease*
tests
20 changes: 20 additions & 0 deletions MIT-LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Copyright (c) 2009-2019 Michael Leibman and Ben McIntyre, http://github.com/6pac/slickgrid

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
## This is the 6pac SlickGrid repo

Check out the NEW SlickGrid Website! http://slickgrid.net/

This is the acknowledged most active non-customised fork of SlickGrid.

It aims to be a viable alternative master repo, building on the legacy of the mleibman/SlickGrid master branch, keeping libraries up to date and applying small, safe core patches and enhancements without turning into a personalised build.

Check out the [examples](https://github.com/6pac/SlickGrid/wiki/Examples) for examples demonstrating new features and use cases, such as dynamic grid creation and editors with third party controls.

Also check out the [wiki](https://github.com/6pac/SlickGrid/wiki) for news and documentation.
2 changes: 1 addition & 1 deletion SlickGrid/slick.editors.js
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@
var $container = $("body");
var navOnLR = args.grid.getOptions().editorCellNavOnLRKeys;

$wrapper = $("<DIV style='z-index:10000;position:absolute;background:white;padding:5px;border:3px solid gray; -moz-border-radius:10px; border-radius:10px;'/>")
$wrapper = $("<DIV role='dialog' aria-label='editor' style='z-index:10000;position:absolute;background:white;padding:5px;border:3px solid gray; -moz-border-radius:10px; border-radius:10px;'/>")
.appendTo($container);

$input = $("<TEXTAREA hidefocus rows=5 style='background:white;width:250px;height:80px;border:0;outline:0'>")
Expand Down
9 changes: 5 additions & 4 deletions SlickGrid/slick.formatters.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,19 +47,20 @@
} else {
color = "green";
}

return "<span class='percent-complete-bar' style='background:" + color + ";width:" + value + "%'></span>";
// The text inside the span is needed to let the screen reader users read the value. Maybe there's a better solution so that the text doesn't appear yet is spoken by the screen reader?
return "<span class='percent-complete-bar' style='background:" + color + ";width:" + value + "%'>" + value + "% </span>";
}

function YesNoFormatter(row, cell, value, columnDef, dataContext) {
return value ? "Yes" : "No";
}

function CheckboxFormatter(row, cell, value, columnDef, dataContext) {
return '<img class="slick-edit-preclick" src="../images/' + (value ? "CheckboxY" : "CheckboxN") + '.png">';
// Using [ ] as alt text for an unchecked box seems to result in rendering only the opening bracket in the screen reader so we use [-] instead.
return '<img class="slick-edit-preclick" src="../images/' + (value ? "CheckboxY" : "CheckboxN") + '.png" alt=' + (value ? "[X]" : "[-]") + '>';
}

function CheckmarkFormatter(row, cell, value, columnDef, dataContext) {
return value ? "<img src='../images/tick.png'>" : "";
return value ? "<img src='../images/tick.png' alt='[X]'>" : "";
}
})(jQuery);
106 changes: 66 additions & 40 deletions SlickGrid/slick.grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ if (typeof Slick === "undefined") {
var $container;
var uid = "slickgrid_" + Math.round(1000000 * Math.random());
var self = this;
var $focusSink, $focusSink2;
var $groupHeaders = $();
var $headerScroller;
var $headers;
Expand Down Expand Up @@ -340,22 +339,23 @@ if (typeof Slick === "undefined") {
.css("overflow", "hidden")
.css("outline", 0)
.addClass(uid)
.addClass("ui-widget");

.addClass("ui-widget")
.attr("role", treeColumns.hasDepth() ? "treegrid" : "grid")
.attr("aria-colcount", columns.length)
.attr("aria-rowcount", data.length);

// set up a positioning container if needed
if (!/relative|absolute|fixed/.test($container.css("position"))) {
$container.css("position", "relative");
}

$focusSink = $("<div tabIndex='0' hideFocus style='position:fixed;width:0;height:0;top:0;left:0;outline:0;'></div>").appendTo($container);

// Containers used for scrolling frozen columns and rows
$paneHeaderL = $("<div class='slick-pane slick-pane-header slick-pane-left' tabIndex='0' />").appendTo($container);
$paneHeaderR = $("<div class='slick-pane slick-pane-header slick-pane-right' tabIndex='0' />").appendTo($container);
$paneTopL = $("<div class='slick-pane slick-pane-top slick-pane-left' tabIndex='0' />").appendTo($container);
$paneTopR = $("<div class='slick-pane slick-pane-top slick-pane-right' tabIndex='0' />").appendTo($container);
$paneBottomL = $("<div class='slick-pane slick-pane-bottom slick-pane-left' tabIndex='0' />").appendTo($container);
$paneBottomR = $("<div class='slick-pane slick-pane-bottom slick-pane-right' tabIndex='0' />").appendTo($container);
$paneHeaderL = $("<div class='slick-pane slick-pane-header slick-pane-left' tabIndex='-1' />").appendTo($container);
$paneHeaderR = $("<div class='slick-pane slick-pane-header slick-pane-right' tabIndex='-1' />").appendTo($container);
$paneTopL = $("<div class='slick-pane slick-pane-top slick-pane-left' tabIndex='-1' />").appendTo($container);
$paneTopR = $("<div class='slick-pane slick-pane-top slick-pane-right' tabIndex='-1' />").appendTo($container);
$paneBottomL = $("<div class='slick-pane slick-pane-bottom slick-pane-left' tabIndex='-1' />").appendTo($container);
$paneBottomR = $("<div class='slick-pane slick-pane-bottom slick-pane-right' tabIndex='-1' />").appendTo($container);

if (options.createPreHeaderPanel) {
$preHeaderPanelScroller = $("<div class='slick-preheader-panel ui-state-default' style='overflow:hidden;position:relative;' />").appendTo($paneHeaderL);
Expand Down Expand Up @@ -429,10 +429,10 @@ if (typeof Slick === "undefined") {
}

// Append the viewport containers
$viewportTopL = $("<div class='slick-viewport slick-viewport-top slick-viewport-left' tabIndex='0' hideFocus />").appendTo($paneTopL);
$viewportTopR = $("<div class='slick-viewport slick-viewport-top slick-viewport-right' tabIndex='0' hideFocus />").appendTo($paneTopR);
$viewportBottomL = $("<div class='slick-viewport slick-viewport-bottom slick-viewport-left' tabIndex='0' hideFocus />").appendTo($paneBottomL);
$viewportBottomR = $("<div class='slick-viewport slick-viewport-bottom slick-viewport-right' tabIndex='0' hideFocus />").appendTo($paneBottomR);
$viewportTopL = $("<div class='slick-viewport slick-viewport-top slick-viewport-left' tabIndex='-1' hideFocus />").appendTo($paneTopL);
$viewportTopR = $("<div class='slick-viewport slick-viewport-top slick-viewport-right' tabIndex=-1' hideFocus />").appendTo($paneTopR);
$viewportBottomL = $("<div class='slick-viewport slick-viewport-bottom slick-viewport-left' tabIndex='-1' hideFocus />").appendTo($paneBottomL);
$viewportBottomR = $("<div class='slick-viewport slick-viewport-bottom slick-viewport-right' tabIndex='-1' hideFocus />").appendTo($paneBottomR);

// Cache the viewports
$viewport = $().add($viewportTopL).add($viewportTopR).add($viewportBottomL).add($viewportBottomR);
Expand All @@ -442,10 +442,10 @@ if (typeof Slick === "undefined") {
$activeViewportNode = $viewportTopL;

// Append the canvas containers
$canvasTopL = $("<div class='grid-canvas grid-canvas-top grid-canvas-left' tabIndex='0' hideFocus />").appendTo($viewportTopL);
$canvasTopR = $("<div class='grid-canvas grid-canvas-top grid-canvas-right' tabIndex='0' hideFocus />").appendTo($viewportTopR);
$canvasBottomL = $("<div class='grid-canvas grid-canvas-bottom grid-canvas-left' tabIndex='0' hideFocus />").appendTo($viewportBottomL);
$canvasBottomR = $("<div class='grid-canvas grid-canvas-bottom grid-canvas-right' tabIndex='0' hideFocus />").appendTo($viewportBottomR);
$canvasTopL = $("<div class='grid-canvas grid-canvas-top grid-canvas-left' tabIndex='-1' hideFocus />").appendTo($viewportTopL);
$canvasTopR = $("<div class='grid-canvas grid-canvas-top grid-canvas-right' tabIndex='-1' hideFocus />").appendTo($viewportTopR);
$canvasBottomL = $("<div class='grid-canvas grid-canvas-bottom grid-canvas-left' tabIndex='-1' hideFocus />").appendTo($viewportBottomL);
$canvasBottomR = $("<div class='grid-canvas grid-canvas-bottom grid-canvas-right' tabIndex='-1' hideFocus />").appendTo($viewportBottomR);
if (options.viewportClass) $viewport.toggleClass(options.viewportClass, true);

// Cache the canvases
Expand Down Expand Up @@ -487,8 +487,6 @@ if (typeof Slick === "undefined") {
}
}

$focusSink2 = $focusSink.clone().appendTo($container);

if (!options.explicitInitialization) {
finishInitialization();
}
Expand Down Expand Up @@ -562,9 +560,7 @@ if (typeof Slick === "undefined") {
.on("scroll", handlePreHeaderPanelScroll);
}

$focusSink.add($focusSink2)
.on("keydown", handleKeyDown);
$canvas
$canvas
.on("keydown", handleKeyDown)
.on("click", handleClick)
.on("dblclick", handleDblClick)
Expand Down Expand Up @@ -1101,6 +1097,8 @@ if (typeof Slick === "undefined") {
.html("<span class='slick-column-name'>" + m.name + "</span>")
.attr("id", "" + uid + m.id)
.attr("title", m.toolTip || "")
.attr("aria-colindex", i)
.attr("role", "columnheader")
.data("column", m)
.addClass(m.headerCssClass || "")
.addClass(hasFrozenColumns() && (columnsLength - 1) > options.frozenColumn? 'frozen': '')
Expand Down Expand Up @@ -1199,10 +1197,12 @@ if (typeof Slick === "undefined") {
var $headerRowTarget = hasFrozenColumns() ? ((i <= options.frozenColumn) ? $headerRowL : $headerRowR) : $headerRowL;

var header = $("<div class='ui-state-default slick-header-column' />")
.html("<span class='slick-column-name'>" + m.name + "</span>")
.html("<span class='slick-column-name'> " + m.name + " </span>")
.width(m.width - headerColumnWidthDiff)
.attr("id", "" + uid + m.id)
.attr("title", m.toolTip || "")
.attr("role", "columnheader")
.attr("aria-colindex", i + 1)
.data("column", m)
.addClass(m.headerCssClass || "")
.addClass(hasFrozenColumns() && i <= options.frozenColumn? 'frozen': '')
Expand All @@ -1215,6 +1215,7 @@ if (typeof Slick === "undefined") {
}

if (m.sortable) {
header.attr("aria-sort", "none");
header.addClass("slick-header-sortable");
header.append("<span class='slick-sort-indicator"
+ (options.numberedMultiColumnSort && !options.sortColNumberInSeparateSpan ? " slick-sort-indicator-numbered" : "" ) + "' />");
Expand All @@ -1228,7 +1229,7 @@ if (typeof Slick === "undefined") {
});

if (options.showHeaderRow) {
var headerRowCell = $("<div class='ui-state-default slick-headerrow-column l" + i + " r" + i + "'></div>")
var headerRowCell = $("<div class='ui-state-default slick-headerrow-column l" + i + " r" + i + "' role=row aria-rowindex=1></div>")
.data("column", m)
.addClass(hasFrozenColumns() && i <= options.frozenColumn? 'frozen': '')
.appendTo($headerRowTarget);
Expand Down Expand Up @@ -2220,6 +2221,7 @@ if (typeof Slick === "undefined") {
.addClass("slick-header-column-sorted")
.find(".slick-sort-indicator")
.addClass(col.sortAsc ? "slick-sort-indicator-asc" : "slick-sort-indicator-desc");
headerColumnEls.eq(columnIndex).attr("aria-sort", col.sortAsc ? "ascending" : "descending");
if (numberCols) {
headerColumnEls.eq(columnIndex)
.find(".slick-sort-indicator-numbered")
Expand Down Expand Up @@ -2575,9 +2577,11 @@ if (typeof Slick === "undefined") {

var frozenRowOffset = getFrozenRowOffset(row);


var rowHtml = "<div class='ui-widget-content " + rowCss + "' style='top:"
+ (getRowTop(row) - frozenRowOffset )
+ "px'>";
+ "px'"
+ "role='row' aria-rowindex=" + (parseInt(row)+1) + ">" // + 2 because index is one based and one for the headers

stringArrayL.push(rowHtml);

Expand Down Expand Up @@ -2661,9 +2665,7 @@ if (typeof Slick === "undefined") {
var addlCssClasses = trigger(self.onBeforeAppendCell, { row: row, cell: cell, value: value, dataContext: item }) || '';
addlCssClasses += (formatterResult && formatterResult.addClasses ? (addlCssClasses ? ' ' : '') + formatterResult.addClasses : '');
var toolTip = formatterResult && formatterResult.toolTip ? "title='" + formatterResult.toolTip + "'" : '';

stringArray.push("<div class='" + cellCss + (addlCssClasses ? ' ' + addlCssClasses : '') + "' " + toolTip + ">");

stringArray.push("<div role='gridcell' aria-colindex='" + (parseInt(cell)+1) + "' class='" + cellCss + (addlCssClasses ? ' ' + addlCssClasses : '') + "' " + toolTip + ">");
// if there is a corresponding row (if not, this is the Add New row or this data hasn't been loaded yet)
if (item) {
stringArray.push(Object.prototype.toString.call(formatterResult) !== '[object Object]' ? formatterResult : formatterResult.text);
Expand Down Expand Up @@ -3723,6 +3725,9 @@ if (typeof Slick === "undefined") {
node = getCellNode(row, getColumnIndex(columnId));
if (node) {
$(node).removeClass(removedRowHash[columnId]);
if(removedRowHash[columnId] == options.selectedCellCssClass) {
$(node).attr("aria-selected", false);
}
}
}
}
Expand All @@ -3734,6 +3739,9 @@ if (typeof Slick === "undefined") {
node = getCellNode(row, getColumnIndex(columnId));
if (node) {
$(node).addClass(addedRowHash[columnId]);
if(addedRowHash[columnId] == options.selectedCellCssClass) {
$(node).attr("aria-selected", true);
}
}
}
}
Expand Down Expand Up @@ -3876,9 +3884,15 @@ if (typeof Slick === "undefined") {
}
}
if (e.which == keyCode.HOME) {
handled = (e.ctrlKey) ? navigateTop() : navigateRowStart();
if(e.ctrlKey) {
handled = navigateTop()
}
navigateRowStart();
} else if (e.which == keyCode.END) {
handled = (e.ctrlKey) ? navigateBottom() : navigateRowEnd();
if(e.ctrlKey) {
handled = navigateBottom()
}
navigateRowEnd();
}
}
}
Expand Down Expand Up @@ -3933,6 +3947,20 @@ if (typeof Slick === "undefined") {
}
}

// enter editing when pressing F2 or an alphanumeric key on an editable cell as specified by the WAI.
var inp = String.fromCharCode(e.keyCode);
if (/[a-zA-Z0-9-_]/.test(inp)) {
if (options.editable) {
if (!currentEditor) {
if (getEditorLock().commitCurrentEdit()) {
makeActiveCellEditable(undefined, undefined, e);
handled = true;
}
}
}

}

if (handled) {
// the event has been handled so don't let parent element (bubbling/propagation) or browser (default) handle it
e.stopPropagation();
Expand All @@ -3951,7 +3979,7 @@ if (typeof Slick === "undefined") {
if (!currentEditor) {
// if this click resulted in some cell child node getting focus,
// don't steal it back - keyboard events will still bubble up
// IE9+ seems to default DIVs to tabIndex=0 instead of -1, so check for cell clicks directly.
// IE9+ seems to default DIVs to s=0 instead of -1, so check for cell clicks directly.
if (e.target != document.activeElement || $(e.target).hasClass("slick-cell")) {
setFocus();
}
Expand Down Expand Up @@ -4175,11 +4203,7 @@ if (typeof Slick === "undefined") {
}

function setFocus() {
if (tabbingDirection == -1) {
$focusSink[0].focus();
} else {
$focusSink2[0].focus();
}
setActiveCellInternal(getCellNode(activeRow, activeCell), false);
}

function scrollCellIntoView(row, cell, doPaging) {
Expand Down Expand Up @@ -4242,6 +4266,8 @@ if (typeof Slick === "undefined") {
activeCell = activePosX = activeCell = activePosX = getCellFromNode(activeCellNode);

$activeCellNode.addClass("active");
$activeCellNode.attr("tabindex", "0");
$activeCellNode.focus();
if (rowsCache[activeRow]) {
$(rowsCache[activeRow].rowNode).addClass('active');
}
Expand Down Expand Up @@ -4939,11 +4965,11 @@ if (typeof Slick === "undefined") {
) {
scrollCellIntoView(pos.row, pos.cell, !isAddNewRow && options.emulatePagingWhenScrolling);
}
setActiveCellInternal(getCellNode(pos.row, pos.cell));
setActiveCellInternal(getCellNode(pos.row, pos.cell), false);
activePosX = pos.posX;
return true;
} else {
setActiveCellInternal(getCellNode(activeRow, activeCell));
setActiveCellInternal(getCellNode(activeRow, activeCell), false);
return false;
}
}
Expand Down
Loading