gridx-rails 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/LICENSE +2 -0
- data/README.md +18 -0
- data/Rakefile +36 -0
- data/app/assets/images/gridx/mobile/themes/iphone/images/ajax-loader.gif +0 -0
- data/app/assets/images/gridx/mobile/themes/iphone/images/arrow.png +0 -0
- data/app/assets/images/gridx/resources/images/checkboxpartial.png +0 -0
- data/app/assets/images/gridx/resources/images/checkboxpartialdisabled.png +0 -0
- data/app/assets/images/gridx/resources/images/claro-grid-header-onepixel.bmp +0 -0
- data/app/assets/images/gridx/resources/images/dndCopy.png +0 -0
- data/app/assets/images/gridx/resources/images/dndMove.png +0 -0
- data/app/assets/images/gridx/resources/images/dndNoCopy.png +0 -0
- data/app/assets/images/gridx/resources/images/dndNoMove.png +0 -0
- data/app/assets/images/gridx/resources/images/gridxCellChanged.png +0 -0
- data/app/assets/images/gridx/resources/images/header.png +0 -0
- data/app/assets/images/gridx/resources/images/header_shadow.png +0 -0
- data/app/assets/images/gridx/resources/images/loadingAnimation.gif +0 -0
- data/app/assets/images/gridx/resources/images/row_back.png +0 -0
- data/app/assets/images/gridx/resources/images/row_back_changed.png +0 -0
- data/app/assets/images/gridx/resources/images/sprite_icons.png +0 -0
- data/app/assets/images/gridx/resources/images/treeExpandImages.png +0 -0
- data/app/assets/images/gridx/resources/images/treeExpand_loading.gif +0 -0
- data/app/assets/javascripts/gridx/Grid.js +224 -0
- data/app/assets/javascripts/gridx/GridCommon.js +52 -0
- data/app/assets/javascripts/gridx/allModules.js +105 -0
- data/app/assets/javascripts/gridx/core/Cell.js +86 -0
- data/app/assets/javascripts/gridx/core/Column.js +183 -0
- data/app/assets/javascripts/gridx/core/Core.js +447 -0
- data/app/assets/javascripts/gridx/core/Row.js +174 -0
- data/app/assets/javascripts/gridx/core/_Module.js +285 -0
- data/app/assets/javascripts/gridx/core/model/Model.js +495 -0
- data/app/assets/javascripts/gridx/core/model/_Extension.js +84 -0
- data/app/assets/javascripts/gridx/core/model/cache/Async.js +469 -0
- data/app/assets/javascripts/gridx/core/model/cache/Sync.js +59 -0
- data/app/assets/javascripts/gridx/core/model/cache/_Cache.js +386 -0
- data/app/assets/javascripts/gridx/core/model/extensions/ClientFilter.js +303 -0
- data/app/assets/javascripts/gridx/core/model/extensions/FormatSort.js +103 -0
- data/app/assets/javascripts/gridx/core/model/extensions/Mark.js +370 -0
- data/app/assets/javascripts/gridx/core/model/extensions/Modify.js +418 -0
- data/app/assets/javascripts/gridx/core/model/extensions/Move.js +429 -0
- data/app/assets/javascripts/gridx/core/model/extensions/Query.js +50 -0
- data/app/assets/javascripts/gridx/core/model/extensions/Sort.js +81 -0
- data/app/assets/javascripts/gridx/core/util.js +13 -0
- data/app/assets/javascripts/gridx/mobile/Grid.js +300 -0
- data/app/assets/javascripts/gridx/mobile/LazyLoad.js +88 -0
- data/app/assets/javascripts/gridx/mobile/PullRefresh.js +117 -0
- data/app/assets/javascripts/gridx/mobile/Sort.js +66 -0
- data/app/assets/javascripts/gridx/mobile/nls/LazyLoad.js +38 -0
- data/app/assets/javascripts/gridx/mobile/nls/PullRefresh.js +39 -0
- data/app/assets/javascripts/gridx/mobile/nls/ar/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/ar/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/ar/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/bg/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/bg/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/bg/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/ca/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/ca/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/ca/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/common.js +37 -0
- data/app/assets/javascripts/gridx/mobile/nls/cs/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/cs/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/cs/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/da/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/da/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/da/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/de/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/de/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/de/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/el/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/el/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/el/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/es/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/es/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/es/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/fi/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/fi/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/fi/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/fr/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/fr/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/fr/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/he/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/he/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/he/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/hr/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/hr/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/hr/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/hu/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/hu/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/hu/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/it/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/it/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/it/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/ja/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/ja/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/ja/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/kk/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/kk/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/kk/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/ko/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/ko/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/ko/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/nb/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/nb/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/nb/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/nl/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/nl/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/nl/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/pl/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/pl/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/pl/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/pt/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/pt/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/pt/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/pt-pt/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/pt-pt/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/pt-pt/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/ro/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/ro/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/ro/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/ru/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/ru/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/ru/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/sk/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/sk/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/sk/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/sl/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/sl/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/sl/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/sv/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/sv/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/sv/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/th/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/th/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/th/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/tr/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/tr/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/tr/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/uk/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/uk/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/uk/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/zh/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/zh/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/zh/common.js +5 -0
- data/app/assets/javascripts/gridx/mobile/nls/zh-tw/LazyLoad.js +6 -0
- data/app/assets/javascripts/gridx/mobile/nls/zh-tw/PullRefresh.js +7 -0
- data/app/assets/javascripts/gridx/mobile/nls/zh-tw/common.js +5 -0
- data/app/assets/javascripts/gridx/modules/AutoScroll.js +100 -0
- data/app/assets/javascripts/gridx/modules/Bar.js +322 -0
- data/app/assets/javascripts/gridx/modules/Body.js +1059 -0
- data/app/assets/javascripts/gridx/modules/CellWidget.js +538 -0
- data/app/assets/javascripts/gridx/modules/ColumnLock.js +254 -0
- data/app/assets/javascripts/gridx/modules/ColumnResizer.js +278 -0
- data/app/assets/javascripts/gridx/modules/ColumnWidth.js +320 -0
- data/app/assets/javascripts/gridx/modules/Dod.js +368 -0
- data/app/assets/javascripts/gridx/modules/Edit.js +1024 -0
- data/app/assets/javascripts/gridx/modules/Filter.js +482 -0
- data/app/assets/javascripts/gridx/modules/Focus.js +439 -0
- data/app/assets/javascripts/gridx/modules/GroupHeader.js +437 -0
- data/app/assets/javascripts/gridx/modules/HLayout.js +139 -0
- data/app/assets/javascripts/gridx/modules/HScroller.js +172 -0
- data/app/assets/javascripts/gridx/modules/Header.js +289 -0
- data/app/assets/javascripts/gridx/modules/HeaderMenu.js +63 -0
- data/app/assets/javascripts/gridx/modules/HeaderRegions.js +201 -0
- data/app/assets/javascripts/gridx/modules/HiddenColumns.js +274 -0
- data/app/assets/javascripts/gridx/modules/IndirectSelect.js +287 -0
- data/app/assets/javascripts/gridx/modules/IndirectSelectColumn.js +277 -0
- data/app/assets/javascripts/gridx/modules/Menu.js +167 -0
- data/app/assets/javascripts/gridx/modules/NavigableCell.js +170 -0
- data/app/assets/javascripts/gridx/modules/NestedSort.js +280 -0
- data/app/assets/javascripts/gridx/modules/PagedBody.js +409 -0
- data/app/assets/javascripts/gridx/modules/Pagination.js +293 -0
- data/app/assets/javascripts/gridx/modules/Persist.js +266 -0
- data/app/assets/javascripts/gridx/modules/Printer.js +49 -0
- data/app/assets/javascripts/gridx/modules/RowHeader.js +412 -0
- data/app/assets/javascripts/gridx/modules/RowLock.js +143 -0
- data/app/assets/javascripts/gridx/modules/SingleSort.js +276 -0
- data/app/assets/javascripts/gridx/modules/SummaryBar.js +33 -0
- data/app/assets/javascripts/gridx/modules/TitleBar.js +51 -0
- data/app/assets/javascripts/gridx/modules/ToolBar.js +55 -0
- data/app/assets/javascripts/gridx/modules/TouchScroll.js +103 -0
- data/app/assets/javascripts/gridx/modules/TouchVScroller.js +89 -0
- data/app/assets/javascripts/gridx/modules/Traverse.js +159 -0
- data/app/assets/javascripts/gridx/modules/Tree.js +646 -0
- data/app/assets/javascripts/gridx/modules/VLayout.js +152 -0
- data/app/assets/javascripts/gridx/modules/VScroller.js +342 -0
- data/app/assets/javascripts/gridx/modules/View.js +540 -0
- data/app/assets/javascripts/gridx/modules/VirtualVScroller.js +445 -0
- data/app/assets/javascripts/gridx/modules/barPlugins/DropDownPager.js +16 -0
- data/app/assets/javascripts/gridx/modules/barPlugins/DropDownSizer.js +16 -0
- data/app/assets/javascripts/gridx/modules/barPlugins/GotoPageButton.js +16 -0
- data/app/assets/javascripts/gridx/modules/barPlugins/LinkPager.js +16 -0
- data/app/assets/javascripts/gridx/modules/barPlugins/LinkSizer.js +16 -0
- data/app/assets/javascripts/gridx/modules/barPlugins/Summary.js +16 -0
- data/app/assets/javascripts/gridx/modules/dnd/Avatar.js +45 -0
- data/app/assets/javascripts/gridx/modules/dnd/Column.js +210 -0
- data/app/assets/javascripts/gridx/modules/dnd/Row.js +286 -0
- data/app/assets/javascripts/gridx/modules/dnd/_Base.js +60 -0
- data/app/assets/javascripts/gridx/modules/dnd/_Dnd.js +371 -0
- data/app/assets/javascripts/gridx/modules/exporter/CSV.js +43 -0
- data/app/assets/javascripts/gridx/modules/exporter/Exporter.js +34 -0
- data/app/assets/javascripts/gridx/modules/exporter/Table.js +42 -0
- data/app/assets/javascripts/gridx/modules/extendedSelect/Cell.js +491 -0
- data/app/assets/javascripts/gridx/modules/extendedSelect/Column.js +290 -0
- data/app/assets/javascripts/gridx/modules/extendedSelect/Row.js +458 -0
- data/app/assets/javascripts/gridx/modules/extendedSelect/_Base.js +244 -0
- data/app/assets/javascripts/gridx/modules/extendedSelect/_RowCellBase.js +35 -0
- data/app/assets/javascripts/gridx/modules/filter/DistinctComboBoxMenu.js +22 -0
- data/app/assets/javascripts/gridx/modules/filter/Filter.js +16 -0
- data/app/assets/javascripts/gridx/modules/filter/FilterBar.js +649 -0
- data/app/assets/javascripts/gridx/modules/filter/FilterConfirmDialog.js +33 -0
- data/app/assets/javascripts/gridx/modules/filter/FilterDialog.js +179 -0
- data/app/assets/javascripts/gridx/modules/filter/FilterPane.js +340 -0
- data/app/assets/javascripts/gridx/modules/filter/FilterTooltip.js +103 -0
- data/app/assets/javascripts/gridx/modules/filter/QuickFilter.js +33 -0
- data/app/assets/javascripts/gridx/modules/move/Column.js +223 -0
- data/app/assets/javascripts/gridx/modules/move/Row.js +154 -0
- data/app/assets/javascripts/gridx/modules/pagination/Pagination.js +16 -0
- data/app/assets/javascripts/gridx/modules/pagination/PaginationBar.js +68 -0
- data/app/assets/javascripts/gridx/modules/pagination/PaginationBarDD.js +40 -0
- data/app/assets/javascripts/gridx/modules/pagination/_PaginationBarBase.js +105 -0
- data/app/assets/javascripts/gridx/modules/select/Cell.js +229 -0
- data/app/assets/javascripts/gridx/modules/select/Column.js +209 -0
- data/app/assets/javascripts/gridx/modules/select/Row.js +302 -0
- data/app/assets/javascripts/gridx/modules/select/_Base.js +99 -0
- data/app/assets/javascripts/gridx/modules/select/_RowCellBase.js +51 -0
- data/app/assets/javascripts/gridx/nls/Body.js +47 -0
- data/app/assets/javascripts/gridx/nls/FilterBar.js +133 -0
- data/app/assets/javascripts/gridx/nls/NestedSort.js +45 -0
- data/app/assets/javascripts/gridx/nls/PaginationBar.js +68 -0
- data/app/assets/javascripts/gridx/nls/QuickFilter.js +40 -0
- data/app/assets/javascripts/gridx/nls/SummaryBar.js +38 -0
- data/app/assets/javascripts/gridx/nls/ar/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/ar/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/ar/NestedSort.js +11 -0
- data/app/assets/javascripts/gridx/nls/ar/PaginationBar.js +34 -0
- data/app/assets/javascripts/gridx/nls/ar/QuickFilter.js +7 -0
- data/app/assets/javascripts/gridx/nls/ar/SummaryBar.js +5 -0
- data/app/assets/javascripts/gridx/nls/bg/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/bg/FilterBar.js +88 -0
- data/app/assets/javascripts/gridx/nls/bg/NestedSort.js +12 -0
- data/app/assets/javascripts/gridx/nls/bg/PaginationBar.js +28 -0
- data/app/assets/javascripts/gridx/nls/bg/QuickFilter.js +8 -0
- data/app/assets/javascripts/gridx/nls/bg/SummaryBar.js +6 -0
- data/app/assets/javascripts/gridx/nls/ca/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/ca/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/ca/NestedSort.js +13 -0
- data/app/assets/javascripts/gridx/nls/ca/PaginationBar.js +30 -0
- data/app/assets/javascripts/gridx/nls/ca/QuickFilter.js +9 -0
- data/app/assets/javascripts/gridx/nls/ca/SummaryBar.js +7 -0
- data/app/assets/javascripts/gridx/nls/cs/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/cs/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/cs/NestedSort.js +11 -0
- data/app/assets/javascripts/gridx/nls/cs/PaginationBar.js +34 -0
- data/app/assets/javascripts/gridx/nls/cs/QuickFilter.js +7 -0
- data/app/assets/javascripts/gridx/nls/cs/SummaryBar.js +5 -0
- data/app/assets/javascripts/gridx/nls/da/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/da/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/da/NestedSort.js +11 -0
- data/app/assets/javascripts/gridx/nls/da/PaginationBar.js +34 -0
- data/app/assets/javascripts/gridx/nls/da/QuickFilter.js +7 -0
- data/app/assets/javascripts/gridx/nls/da/SummaryBar.js +5 -0
- data/app/assets/javascripts/gridx/nls/de/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/de/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/de/NestedSort.js +11 -0
- data/app/assets/javascripts/gridx/nls/de/PaginationBar.js +34 -0
- data/app/assets/javascripts/gridx/nls/de/QuickFilter.js +7 -0
- data/app/assets/javascripts/gridx/nls/de/SummaryBar.js +5 -0
- data/app/assets/javascripts/gridx/nls/el/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/el/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/el/NestedSort.js +11 -0
- data/app/assets/javascripts/gridx/nls/el/PaginationBar.js +34 -0
- data/app/assets/javascripts/gridx/nls/el/QuickFilter.js +7 -0
- data/app/assets/javascripts/gridx/nls/el/SummaryBar.js +5 -0
- data/app/assets/javascripts/gridx/nls/es/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/es/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/es/NestedSort.js +13 -0
- data/app/assets/javascripts/gridx/nls/es/PaginationBar.js +30 -0
- data/app/assets/javascripts/gridx/nls/es/QuickFilter.js +9 -0
- data/app/assets/javascripts/gridx/nls/es/SummaryBar.js +7 -0
- data/app/assets/javascripts/gridx/nls/fi/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/fi/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/fi/NestedSort.js +11 -0
- data/app/assets/javascripts/gridx/nls/fi/PaginationBar.js +34 -0
- data/app/assets/javascripts/gridx/nls/fi/QuickFilter.js +7 -0
- data/app/assets/javascripts/gridx/nls/fi/SummaryBar.js +5 -0
- data/app/assets/javascripts/gridx/nls/fr/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/fr/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/fr/NestedSort.js +11 -0
- data/app/assets/javascripts/gridx/nls/fr/PaginationBar.js +34 -0
- data/app/assets/javascripts/gridx/nls/fr/QuickFilter.js +7 -0
- data/app/assets/javascripts/gridx/nls/fr/SummaryBar.js +5 -0
- data/app/assets/javascripts/gridx/nls/he/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/he/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/he/NestedSort.js +11 -0
- data/app/assets/javascripts/gridx/nls/he/PaginationBar.js +34 -0
- data/app/assets/javascripts/gridx/nls/he/QuickFilter.js +6 -0
- data/app/assets/javascripts/gridx/nls/he/SummaryBar.js +5 -0
- data/app/assets/javascripts/gridx/nls/hr/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/hr/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/hr/NestedSort.js +11 -0
- data/app/assets/javascripts/gridx/nls/hr/PaginationBar.js +34 -0
- data/app/assets/javascripts/gridx/nls/hr/QuickFilter.js +7 -0
- data/app/assets/javascripts/gridx/nls/hr/SummaryBar.js +5 -0
- data/app/assets/javascripts/gridx/nls/hu/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/hu/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/hu/NestedSort.js +11 -0
- data/app/assets/javascripts/gridx/nls/hu/PaginationBar.js +33 -0
- data/app/assets/javascripts/gridx/nls/hu/QuickFilter.js +7 -0
- data/app/assets/javascripts/gridx/nls/hu/SummaryBar.js +5 -0
- data/app/assets/javascripts/gridx/nls/it/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/it/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/it/NestedSort.js +11 -0
- data/app/assets/javascripts/gridx/nls/it/PaginationBar.js +34 -0
- data/app/assets/javascripts/gridx/nls/it/QuickFilter.js +7 -0
- data/app/assets/javascripts/gridx/nls/it/SummaryBar.js +5 -0
- data/app/assets/javascripts/gridx/nls/ja/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/ja/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/ja/NestedSort.js +11 -0
- data/app/assets/javascripts/gridx/nls/ja/PaginationBar.js +34 -0
- data/app/assets/javascripts/gridx/nls/ja/QuickFilter.js +7 -0
- data/app/assets/javascripts/gridx/nls/ja/SummaryBar.js +5 -0
- data/app/assets/javascripts/gridx/nls/kk/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/kk/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/kk/NestedSort.js +13 -0
- data/app/assets/javascripts/gridx/nls/kk/PaginationBar.js +30 -0
- data/app/assets/javascripts/gridx/nls/kk/QuickFilter.js +9 -0
- data/app/assets/javascripts/gridx/nls/kk/SummaryBar.js +7 -0
- data/app/assets/javascripts/gridx/nls/ko/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/ko/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/ko/NestedSort.js +11 -0
- data/app/assets/javascripts/gridx/nls/ko/PaginationBar.js +34 -0
- data/app/assets/javascripts/gridx/nls/ko/QuickFilter.js +7 -0
- data/app/assets/javascripts/gridx/nls/ko/SummaryBar.js +5 -0
- data/app/assets/javascripts/gridx/nls/nb/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/nb/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/nb/NestedSort.js +11 -0
- data/app/assets/javascripts/gridx/nls/nb/PaginationBar.js +34 -0
- data/app/assets/javascripts/gridx/nls/nb/QuickFilter.js +7 -0
- data/app/assets/javascripts/gridx/nls/nb/SummaryBar.js +5 -0
- data/app/assets/javascripts/gridx/nls/nl/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/nl/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/nl/NestedSort.js +11 -0
- data/app/assets/javascripts/gridx/nls/nl/PaginationBar.js +34 -0
- data/app/assets/javascripts/gridx/nls/nl/QuickFilter.js +7 -0
- data/app/assets/javascripts/gridx/nls/nl/SummaryBar.js +5 -0
- data/app/assets/javascripts/gridx/nls/pl/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/pl/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/pl/NestedSort.js +11 -0
- data/app/assets/javascripts/gridx/nls/pl/PaginationBar.js +34 -0
- data/app/assets/javascripts/gridx/nls/pl/QuickFilter.js +7 -0
- data/app/assets/javascripts/gridx/nls/pl/SummaryBar.js +5 -0
- data/app/assets/javascripts/gridx/nls/pt/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/pt/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/pt/NestedSort.js +13 -0
- data/app/assets/javascripts/gridx/nls/pt/PaginationBar.js +30 -0
- data/app/assets/javascripts/gridx/nls/pt/QuickFilter.js +9 -0
- data/app/assets/javascripts/gridx/nls/pt/SummaryBar.js +7 -0
- data/app/assets/javascripts/gridx/nls/pt-br/Body.js +6 -0
- data/app/assets/javascripts/gridx/nls/pt-br/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/pt-br/NestedSort.js +11 -0
- data/app/assets/javascripts/gridx/nls/pt-br/PaginationBar.js +34 -0
- data/app/assets/javascripts/gridx/nls/pt-br/QuickFilter.js +7 -0
- data/app/assets/javascripts/gridx/nls/pt-br/SummaryBar.js +5 -0
- data/app/assets/javascripts/gridx/nls/pt-pt/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/pt-pt/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/pt-pt/NestedSort.js +13 -0
- data/app/assets/javascripts/gridx/nls/pt-pt/PaginationBar.js +30 -0
- data/app/assets/javascripts/gridx/nls/pt-pt/QuickFilter.js +9 -0
- data/app/assets/javascripts/gridx/nls/pt-pt/SummaryBar.js +7 -0
- data/app/assets/javascripts/gridx/nls/ro/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/ro/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/ro/NestedSort.js +13 -0
- data/app/assets/javascripts/gridx/nls/ro/PaginationBar.js +30 -0
- data/app/assets/javascripts/gridx/nls/ro/QuickFilter.js +9 -0
- data/app/assets/javascripts/gridx/nls/ro/SummaryBar.js +7 -0
- data/app/assets/javascripts/gridx/nls/ru/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/ru/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/ru/NestedSort.js +11 -0
- data/app/assets/javascripts/gridx/nls/ru/PaginationBar.js +34 -0
- data/app/assets/javascripts/gridx/nls/ru/QuickFilter.js +7 -0
- data/app/assets/javascripts/gridx/nls/ru/SummaryBar.js +5 -0
- data/app/assets/javascripts/gridx/nls/sk/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/sk/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/sk/NestedSort.js +13 -0
- data/app/assets/javascripts/gridx/nls/sk/PaginationBar.js +30 -0
- data/app/assets/javascripts/gridx/nls/sk/QuickFilter.js +9 -0
- data/app/assets/javascripts/gridx/nls/sk/SummaryBar.js +7 -0
- data/app/assets/javascripts/gridx/nls/sl/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/sl/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/sl/NestedSort.js +11 -0
- data/app/assets/javascripts/gridx/nls/sl/PaginationBar.js +34 -0
- data/app/assets/javascripts/gridx/nls/sl/QuickFilter.js +7 -0
- data/app/assets/javascripts/gridx/nls/sl/SummaryBar.js +5 -0
- data/app/assets/javascripts/gridx/nls/sv/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/sv/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/sv/NestedSort.js +11 -0
- data/app/assets/javascripts/gridx/nls/sv/PaginationBar.js +34 -0
- data/app/assets/javascripts/gridx/nls/sv/QuickFilter.js +7 -0
- data/app/assets/javascripts/gridx/nls/sv/SummaryBar.js +5 -0
- data/app/assets/javascripts/gridx/nls/th/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/th/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/th/NestedSort.js +11 -0
- data/app/assets/javascripts/gridx/nls/th/PaginationBar.js +34 -0
- data/app/assets/javascripts/gridx/nls/th/QuickFilter.js +7 -0
- data/app/assets/javascripts/gridx/nls/th/SummaryBar.js +5 -0
- data/app/assets/javascripts/gridx/nls/tr/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/tr/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/tr/NestedSort.js +11 -0
- data/app/assets/javascripts/gridx/nls/tr/PaginationBar.js +34 -0
- data/app/assets/javascripts/gridx/nls/tr/QuickFilter.js +7 -0
- data/app/assets/javascripts/gridx/nls/tr/SummaryBar.js +5 -0
- data/app/assets/javascripts/gridx/nls/uk/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/uk/FilterBar.js +88 -0
- data/app/assets/javascripts/gridx/nls/uk/NestedSort.js +12 -0
- data/app/assets/javascripts/gridx/nls/uk/PaginationBar.js +28 -0
- data/app/assets/javascripts/gridx/nls/uk/QuickFilter.js +8 -0
- data/app/assets/javascripts/gridx/nls/uk/SummaryBar.js +6 -0
- data/app/assets/javascripts/gridx/nls/zh/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/zh/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/zh/NestedSort.js +11 -0
- data/app/assets/javascripts/gridx/nls/zh/PaginationBar.js +34 -0
- data/app/assets/javascripts/gridx/nls/zh/QuickFilter.js +7 -0
- data/app/assets/javascripts/gridx/nls/zh/SummaryBar.js +5 -0
- data/app/assets/javascripts/gridx/nls/zh-tw/Body.js +11 -0
- data/app/assets/javascripts/gridx/nls/zh-tw/FilterBar.js +89 -0
- data/app/assets/javascripts/gridx/nls/zh-tw/NestedSort.js +11 -0
- data/app/assets/javascripts/gridx/nls/zh-tw/PaginationBar.js +34 -0
- data/app/assets/javascripts/gridx/nls/zh-tw/QuickFilter.js +7 -0
- data/app/assets/javascripts/gridx/nls/zh-tw/SummaryBar.js +5 -0
- data/app/assets/javascripts/gridx/support/DropDownPager.js +111 -0
- data/app/assets/javascripts/gridx/support/DropDownSizer.js +112 -0
- data/app/assets/javascripts/gridx/support/GotoPageButton.js +92 -0
- data/app/assets/javascripts/gridx/support/GotoPagePane.js +61 -0
- data/app/assets/javascripts/gridx/support/LinkPager.js +180 -0
- data/app/assets/javascripts/gridx/support/LinkSizer.js +138 -0
- data/app/assets/javascripts/gridx/support/QuickFilter.js +138 -0
- data/app/assets/javascripts/gridx/support/Summary.js +49 -0
- data/app/assets/javascripts/gridx/support/_LinkPageBase.js +92 -0
- data/app/assets/javascripts/gridx/support/exporter/exporter.js +350 -0
- data/app/assets/javascripts/gridx/support/exporter/toCSV.js +75 -0
- data/app/assets/javascripts/gridx/support/exporter/toTable.js +92 -0
- data/app/assets/javascripts/gridx/support/menu/AZFilterMenu.js +57 -0
- data/app/assets/javascripts/gridx/support/menu/NumberFilterMenu.js +87 -0
- data/app/assets/javascripts/gridx/support/menu/_FilterMenuBase.js +83 -0
- data/app/assets/javascripts/gridx/support/printer.js +157 -0
- data/app/assets/javascripts/gridx/templates/FilterBar.html +8 -0
- data/app/assets/javascripts/gridx/templates/FilterConfirmDialog.html +5 -0
- data/app/assets/javascripts/gridx/templates/FilterDialog.html +19 -0
- data/app/assets/javascripts/gridx/templates/FilterPane.html +64 -0
- data/app/assets/javascripts/gridx/templates/GotoPagePane.html +28 -0
- data/app/assets/javascripts/gridx/templates/Grid.html +19 -0
- data/app/assets/javascripts/gridx/templates/LinkPager.html +24 -0
- data/app/assets/javascripts/gridx/templates/PaginationBar.html +60 -0
- data/app/assets/javascripts/gridx/templates/PaginationBarDD.html +23 -0
- data/app/assets/javascripts/gridx/templates/QuickFilter.html +38 -0
- data/app/assets/stylesheets/gridx/mobile/themes/iphone/Grid.css +107 -0
- data/app/assets/stylesheets/gridx/resources/Dod.css +39 -0
- data/app/assets/stylesheets/gridx/resources/Gridx.css +10 -0
- data/app/assets/stylesheets/gridx/resources/Gridx_rtl.css +5 -0
- data/app/assets/stylesheets/gridx/resources/Tree.css +46 -0
- data/app/assets/stylesheets/gridx/resources/Tree_rtl.css +4 -0
- data/app/assets/stylesheets/gridx/resources/bar.css +24 -0
- data/app/assets/stylesheets/gridx/resources/basic.css +482 -0
- data/app/assets/stylesheets/gridx/resources/basic_rtl.css +37 -0
- data/app/assets/stylesheets/gridx/resources/claro/Gridx.css +16 -0
- data/app/assets/stylesheets/gridx/resources/claro/Gridx_rtl.css +7 -0
- data/app/assets/stylesheets/gridx/resources/claro/basic.css +109 -0
- data/app/assets/stylesheets/gridx/resources/claro/basic_rtl.css +21 -0
- data/app/assets/stylesheets/gridx/resources/claro/filter.css +47 -0
- data/app/assets/stylesheets/gridx/resources/claro/lock.css +19 -0
- data/app/assets/stylesheets/gridx/resources/claro/pagination.css +33 -0
- data/app/assets/stylesheets/gridx/resources/claro/select.css +20 -0
- data/app/assets/stylesheets/gridx/resources/dnd.css +108 -0
- data/app/assets/stylesheets/gridx/resources/filter.css +321 -0
- data/app/assets/stylesheets/gridx/resources/filter_rtl.css +38 -0
- data/app/assets/stylesheets/gridx/resources/lock.css +20 -0
- data/app/assets/stylesheets/gridx/resources/pagination.css +142 -0
- data/app/assets/stylesheets/gridx/resources/pagination_rtl.css +54 -0
- data/app/assets/stylesheets/gridx/resources/select.css +39 -0
- data/app/assets/stylesheets/gridx/resources/sort.css +154 -0
- data/app/assets/stylesheets/gridx/resources/sort_rtl.css +51 -0
- data/lib/gridx-rails/engine.rb +8 -0
- data/lib/gridx-rails/version.rb +3 -0
- data/lib/gridx-rails.rb +4 -0
- data/lib/tasks/gridx-rails_tasks.rake +52 -0
- data/test/dummy/README.rdoc +261 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/assets/javascripts/application.js +15 -0
- data/test/dummy/app/assets/stylesheets/application.css +13 -0
- data/test/dummy/app/controllers/application_controller.rb +3 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/config/application.rb +59 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +37 -0
- data/test/dummy/config/environments/production.rb +67 -0
- data/test/dummy/config/environments/test.rb +37 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/inflections.rb +15 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +7 -0
- data/test/dummy/config/initializers/session_store.rb +8 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +5 -0
- data/test/dummy/config/routes.rb +58 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +78 -0
- data/test/dummy/public/404.html +26 -0
- data/test/dummy/public/422.html +26 -0
- data/test/dummy/public/500.html +25 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +6 -0
- data/test/gridx-rails_test.rb +7 -0
- data/test/test_helper.rb +15 -0
- metadata +621 -0
@@ -0,0 +1,302 @@
|
|
1
|
+
define([
|
2
|
+
/*====="../../core/Row", =====*/
|
3
|
+
"dojo/_base/declare",
|
4
|
+
"dojo/_base/array",
|
5
|
+
"dojo/_base/sniff",
|
6
|
+
"dojo/_base/event",
|
7
|
+
"dojo/query",
|
8
|
+
"dojo/_base/lang",
|
9
|
+
"dojo/dom-class",
|
10
|
+
"dojo/keys",
|
11
|
+
"./_RowCellBase",
|
12
|
+
"../../core/_Module"
|
13
|
+
], function(/*=====Row, =====*/declare, array, has, event, query, lang, domClass, keys, _RowCellBase, _Module){
|
14
|
+
|
15
|
+
/*=====
|
16
|
+
Row.select = function(){
|
17
|
+
// summary:
|
18
|
+
// Select this row.
|
19
|
+
};
|
20
|
+
Row.deselect = function(){
|
21
|
+
// summary:
|
22
|
+
// Deselect this row.
|
23
|
+
};
|
24
|
+
Row.isSelected = function(){
|
25
|
+
// summary:
|
26
|
+
// Whether this row is selected.
|
27
|
+
};
|
28
|
+
Row.isSelectable = function(){
|
29
|
+
// summary:
|
30
|
+
// Check whether this row is selectable.
|
31
|
+
};
|
32
|
+
Row.setSelectable = function(){
|
33
|
+
// summary:
|
34
|
+
// Set this row to be selectable or not.
|
35
|
+
};
|
36
|
+
|
37
|
+
return declare(_RowCellBase, {
|
38
|
+
// summary:
|
39
|
+
// Provides simple row selection.
|
40
|
+
// description:
|
41
|
+
// This module provides a simple way for selecting rows by clicking or SPACE key, or CTRL + Click to select multiple rows.
|
42
|
+
// This module uses gridx/core/model/extensions/Mark.
|
43
|
+
//
|
44
|
+
// example:
|
45
|
+
// 1. Use select api on grid row object obtained from grid.row(i)
|
46
|
+
// | grid.row(1).select();
|
47
|
+
// | grid.row(1).deselect();
|
48
|
+
// | grid.row(1).isSelected();
|
49
|
+
//
|
50
|
+
// 2. Use select api on select.row module
|
51
|
+
// | grid.select.row.selectById(rowId);
|
52
|
+
// | grid.select.row.deSelectById(rowId);
|
53
|
+
// | grid.select.row.isSelected(rowId);
|
54
|
+
// | grid.select.row.getSelected();//[]
|
55
|
+
// | grid.select.row.clear();
|
56
|
+
|
57
|
+
// triggerOnCell: [readonly] Boolean
|
58
|
+
// Whether row can be selected by clicking on cell, false by default
|
59
|
+
triggerOnCell: false,
|
60
|
+
|
61
|
+
// treeMode: Boolean
|
62
|
+
// Whether to apply tri-state selection for child rows.
|
63
|
+
treeMode: true,
|
64
|
+
|
65
|
+
// unselectable: Object
|
66
|
+
// User can set unselectable rows in this hash object. The hash key is the row ID.
|
67
|
+
unselectable: {},
|
68
|
+
|
69
|
+
// setSelectable: Function(rowId, selectable)
|
70
|
+
// TODOC
|
71
|
+
setSelectable: function(){},
|
72
|
+
|
73
|
+
selectById: function(rowId){
|
74
|
+
// summary:
|
75
|
+
// Select a row by id.
|
76
|
+
},
|
77
|
+
|
78
|
+
deselectById: function(rowId){
|
79
|
+
// summary:
|
80
|
+
// Deselect a row by id.
|
81
|
+
},
|
82
|
+
|
83
|
+
isSelected: function(rowId){
|
84
|
+
// summary:
|
85
|
+
// Check if a row is already selected.
|
86
|
+
},
|
87
|
+
|
88
|
+
getSelected: function(){
|
89
|
+
// summary:
|
90
|
+
// Get id array of all selected rows
|
91
|
+
},
|
92
|
+
|
93
|
+
clear: function(notClearId){
|
94
|
+
// summary:
|
95
|
+
// Deselected all selected rows;
|
96
|
+
},
|
97
|
+
|
98
|
+
onSelected: function(row, rowId){
|
99
|
+
// summary:
|
100
|
+
// Fired when a row is selected.
|
101
|
+
// row: grid.core.Row
|
102
|
+
// The Row object (null if the row is not yet loaded);
|
103
|
+
// rowId:
|
104
|
+
// The row ID
|
105
|
+
},
|
106
|
+
|
107
|
+
onDeselected: function(row, rowId){
|
108
|
+
// summary:
|
109
|
+
// Fired when a row is deselected.
|
110
|
+
// row: grid.core.Row
|
111
|
+
// The Row object (null if the row is not yet loaded);
|
112
|
+
// rowID:
|
113
|
+
// The row ID
|
114
|
+
},
|
115
|
+
|
116
|
+
onHighlightChange: function(){
|
117
|
+
// summary:
|
118
|
+
// Fired when a row's highlight is changed.
|
119
|
+
// tags:
|
120
|
+
// private
|
121
|
+
},
|
122
|
+
});
|
123
|
+
=====*/
|
124
|
+
|
125
|
+
return declare(_RowCellBase, {
|
126
|
+
name: "selectRow",
|
127
|
+
|
128
|
+
rowMixin: {
|
129
|
+
select: function(){
|
130
|
+
this.grid.select.row.selectById(this.id);
|
131
|
+
return this;
|
132
|
+
},
|
133
|
+
|
134
|
+
deselect: function(){
|
135
|
+
this.grid.select.row.deselectById(this.id);
|
136
|
+
return this;
|
137
|
+
},
|
138
|
+
|
139
|
+
isSelected: function(){
|
140
|
+
return this.grid.select.row.isSelected(this.id);
|
141
|
+
},
|
142
|
+
|
143
|
+
isSelectable: function(){
|
144
|
+
return this.grid.select.row._isSelectable(this.id);
|
145
|
+
},
|
146
|
+
|
147
|
+
setSelectable: function(selectable){
|
148
|
+
this.grid.select.row.setSelectable(this.id, selectable);
|
149
|
+
}
|
150
|
+
},
|
151
|
+
|
152
|
+
//Public API--------------------------------------------------------------------------------
|
153
|
+
treeMode: true,
|
154
|
+
|
155
|
+
setSelectable: function(rowId, selectable){
|
156
|
+
var t = this,
|
157
|
+
m = t.model,
|
158
|
+
n = t.grid.body.getRowNode({
|
159
|
+
rowId: rowId
|
160
|
+
});
|
161
|
+
m.setMarkable(rowId, selectable);
|
162
|
+
t.unselectable[rowId] = !selectable;
|
163
|
+
if(n){
|
164
|
+
domClass.toggle(n, 'gridxRowUnselectable', !selectable);
|
165
|
+
t.onHighlightChange({row: parseInt(n.getAttribute('visualindex'), 10)}, m.getMark(rowId));
|
166
|
+
t.onSelectionChange();
|
167
|
+
}
|
168
|
+
},
|
169
|
+
|
170
|
+
getSelected: function(){
|
171
|
+
return this.model.getMarkedIds();
|
172
|
+
},
|
173
|
+
|
174
|
+
clear: function(notClearId){
|
175
|
+
if(this.arg('enabled')){
|
176
|
+
var model = this.model;
|
177
|
+
array.forEach(model.getMarkedIds(), function(id){
|
178
|
+
if(id !== notClearId){
|
179
|
+
model.markById(id, 0);
|
180
|
+
}
|
181
|
+
});
|
182
|
+
model.when();
|
183
|
+
}
|
184
|
+
},
|
185
|
+
|
186
|
+
//Private--------------------------------------------------------------------------------
|
187
|
+
_type: 'row',
|
188
|
+
|
189
|
+
_isSelectable: function(rowId){
|
190
|
+
var unselectable = this.arg('unselectable'),
|
191
|
+
ret = rowId in unselectable ? !unselectable[rowId] : true;
|
192
|
+
return ret;
|
193
|
+
},
|
194
|
+
|
195
|
+
_getUnselectableRows: function(){
|
196
|
+
var ret = [],
|
197
|
+
t = this,
|
198
|
+
unselectable = t.arg('unselectable');
|
199
|
+
for(var id in unselectable){
|
200
|
+
if(t.unselectable[id] && t.model.byId(id)){
|
201
|
+
ret.push(id);
|
202
|
+
}
|
203
|
+
}
|
204
|
+
return ret;
|
205
|
+
},
|
206
|
+
|
207
|
+
_init: function(){
|
208
|
+
var t = this,
|
209
|
+
g = t.grid,
|
210
|
+
unselectable = t.arg('unselectable', {});
|
211
|
+
t.model.treeMarkMode('', t.arg('treeMode'));
|
212
|
+
for(var id in unselectable){
|
213
|
+
t.model.setMarkable(id, !unselectable[id]);
|
214
|
+
}
|
215
|
+
t.inherited(arguments);
|
216
|
+
t.model._spTypes.select = 1;
|
217
|
+
t.model.setMarkable(lang.hitch(t, '_isSelectable'));
|
218
|
+
t.batchConnect(
|
219
|
+
[g, 'onRowClick', function(e){
|
220
|
+
//Have to check whether we are on the
|
221
|
+
if((t.arg('triggerOnCell') &&
|
222
|
+
!domClass.contains(e.target, 'gridxTreeExpandoIcon') &&
|
223
|
+
!domClass.contains(e.target, 'gridxTreeExpandoInner')) ||
|
224
|
+
!e.columnId){
|
225
|
+
t._select(e.rowId, g._isCopyEvent(e));
|
226
|
+
}
|
227
|
+
}],
|
228
|
+
[g.body, 'onAfterRow', function(row){
|
229
|
+
var unselectable = !row.isSelectable();
|
230
|
+
domClass.toggle(row.node(), 'gridxRowUnselectable', unselectable);
|
231
|
+
}],
|
232
|
+
[g, has('ff') < 4 ? 'onRowKeyUp' : 'onRowKeyDown', function(e){
|
233
|
+
if((t.arg('triggerOnCell') || !e.columnId) && e.keyCode == keys.SPACE){
|
234
|
+
var cell = g.cell(e.rowId, e.columnId);
|
235
|
+
if(!(cell && cell.isEditing && cell.isEditing())){
|
236
|
+
t._select(e.rowId, g._isCopyEvent(e));
|
237
|
+
event.stop(e);
|
238
|
+
}
|
239
|
+
}
|
240
|
+
}],
|
241
|
+
[g, 'setStore', '_syncMarkable']
|
242
|
+
);
|
243
|
+
},
|
244
|
+
|
245
|
+
_onMark: function(id, toMark, oldState, type){
|
246
|
+
if(type == 'select'){
|
247
|
+
var t = this;
|
248
|
+
t._highlight(id, toMark);
|
249
|
+
t[toMark ? 'onSelected' : 'onDeselected'](t.grid.row(id, 1), id);
|
250
|
+
t._onSelectionChange();
|
251
|
+
}
|
252
|
+
},
|
253
|
+
|
254
|
+
_highlight: function(rowId, toHighlight){
|
255
|
+
var nodes = query('[rowid="' + this.grid._escapeId(rowId) + '"]', this.grid.mainNode),
|
256
|
+
selected = toHighlight && toHighlight != 'mixed';
|
257
|
+
if(nodes.length){
|
258
|
+
nodes.forEach(function(node){
|
259
|
+
domClass.toggle(node, "gridxRowSelected", selected);
|
260
|
+
domClass.toggle(node, "gridxRowPartialSelected", toHighlight == 'mixed');
|
261
|
+
node.setAttribute('aria-selected', !!selected);
|
262
|
+
});
|
263
|
+
this.onHighlightChange({row: parseInt(nodes[0].getAttribute('visualindex'), 10)}, toHighlight);
|
264
|
+
}
|
265
|
+
},
|
266
|
+
|
267
|
+
_markById: function(id, toMark){
|
268
|
+
var t = this,
|
269
|
+
m = t.model,
|
270
|
+
g = t.grid,
|
271
|
+
row = g.row(id);
|
272
|
+
if(m.treeMarkMode() && !m.getMark(id) && toMark){
|
273
|
+
toMark = 'mixed';
|
274
|
+
}
|
275
|
+
m.markById(id, toMark);
|
276
|
+
m.when();
|
277
|
+
},
|
278
|
+
|
279
|
+
_onRender: function(start, count){
|
280
|
+
var t = this,
|
281
|
+
g = t.grid,
|
282
|
+
model = t.model,
|
283
|
+
end = start + count,
|
284
|
+
i, id, rowNode;
|
285
|
+
for(i = start; i < end; ++i){
|
286
|
+
rowNode = t.grid.body.getRowNode({visualIndex: i});
|
287
|
+
if(rowNode){
|
288
|
+
id = rowNode.getAttribute('rowid');
|
289
|
+
t._highlight(id, model.getMark(id));
|
290
|
+
}
|
291
|
+
}
|
292
|
+
},
|
293
|
+
|
294
|
+
_syncMarkable: function(){
|
295
|
+
var t = this,
|
296
|
+
unselectable = this.arg('unselectable');
|
297
|
+
for(var id in unselectable){
|
298
|
+
t.model.setMarkable(id, !unselectable[id]);
|
299
|
+
}
|
300
|
+
}
|
301
|
+
});
|
302
|
+
});
|
@@ -0,0 +1,99 @@
|
|
1
|
+
define([
|
2
|
+
'dojo/_base/declare',
|
3
|
+
'dojo/_base/connect',
|
4
|
+
'../../core/_Module'
|
5
|
+
], function(declare, connect, _Module){
|
6
|
+
|
7
|
+
/*=====
|
8
|
+
return declare(_Module, {
|
9
|
+
// enabled: Boolean
|
10
|
+
// Whether this module is enabled.
|
11
|
+
enabled: true,
|
12
|
+
|
13
|
+
// multiple: Boolean
|
14
|
+
// Whether multiple selectionis allowe.
|
15
|
+
multiple: true,
|
16
|
+
|
17
|
+
// holdingCtrl: Boolean
|
18
|
+
// Whether to add to selection all the time (as if the CTRL key is always held).
|
19
|
+
holdingCtrl: false,
|
20
|
+
|
21
|
+
onSelected: function(){},
|
22
|
+
|
23
|
+
onDeselected: function(){},
|
24
|
+
|
25
|
+
onHighlightChange: function(){}
|
26
|
+
});
|
27
|
+
=====*/
|
28
|
+
|
29
|
+
return declare(_Module, {
|
30
|
+
getAPIPath: function(){
|
31
|
+
var path = {
|
32
|
+
select: {}
|
33
|
+
};
|
34
|
+
path.select[this._type] = this;
|
35
|
+
return path;
|
36
|
+
},
|
37
|
+
|
38
|
+
preload: function(){
|
39
|
+
var t = this, g = t.grid;
|
40
|
+
t._lastSelectedIds = [];
|
41
|
+
t.subscribe('gridClearSelection_' + g.id, function(type){
|
42
|
+
if(type != t._type){
|
43
|
+
t.clear();
|
44
|
+
}
|
45
|
+
});
|
46
|
+
t.connect(g.body, 'onRender', '_onRender');
|
47
|
+
if(t.arg('multiple')){
|
48
|
+
g.domNode.setAttribute('aria-multiselectable', true);
|
49
|
+
}
|
50
|
+
t._init();
|
51
|
+
},
|
52
|
+
|
53
|
+
//Public--------------------------------------------------------------------
|
54
|
+
enabled: true,
|
55
|
+
|
56
|
+
multiple: true,
|
57
|
+
|
58
|
+
holdingCtrl: false,
|
59
|
+
|
60
|
+
//Events----------------------------------------------------------------------
|
61
|
+
onSelected: function(){},
|
62
|
+
|
63
|
+
onDeselected: function(){},
|
64
|
+
|
65
|
+
onHighlightChange: function(){},
|
66
|
+
|
67
|
+
onSelectionChange: function(){},
|
68
|
+
|
69
|
+
//Private---------------------------------------------------------------------
|
70
|
+
_getMarkType: function(){},
|
71
|
+
|
72
|
+
_isSelected: function(){
|
73
|
+
return this.isSelected.apply(this, arguments);
|
74
|
+
},
|
75
|
+
|
76
|
+
_isSelectable: function(){
|
77
|
+
return true;
|
78
|
+
},
|
79
|
+
|
80
|
+
_onSelectionChange: function(){
|
81
|
+
var t = this, selectedIds = t.getSelected();
|
82
|
+
t.onSelectionChange(selectedIds, t._lastSelectedIds);
|
83
|
+
t._lastSelectedIds = selectedIds;
|
84
|
+
},
|
85
|
+
|
86
|
+
_select: function(item, extending){
|
87
|
+
var t = this, toSelect = 1, g = t.grid;
|
88
|
+
if(t.arg('enabled') && t._isSelectable(item)){
|
89
|
+
if(t.arg('multiple') && (extending || t.arg('holdingCtrl'))){
|
90
|
+
toSelect = !t._isSelected(item);
|
91
|
+
}else{
|
92
|
+
t.clear(item);
|
93
|
+
}
|
94
|
+
connect.publish('gridClearSelection_' + t.grid.id, [t._type]);
|
95
|
+
t._markById(item, toSelect);
|
96
|
+
}
|
97
|
+
}
|
98
|
+
});
|
99
|
+
});
|
@@ -0,0 +1,51 @@
|
|
1
|
+
define([
|
2
|
+
"dojo/_base/declare",
|
3
|
+
"dojo/_base/lang",
|
4
|
+
"./_Base",
|
5
|
+
"../../core/model/extensions/Mark"
|
6
|
+
], function(declare, lang, _Base, Mark){
|
7
|
+
|
8
|
+
/*=====
|
9
|
+
return declare(_Base, {
|
10
|
+
});
|
11
|
+
=====*/
|
12
|
+
|
13
|
+
return declare(_Base, {
|
14
|
+
modelExtensions: [Mark],
|
15
|
+
|
16
|
+
selectById: function(rowId, columnId){
|
17
|
+
var t = this,
|
18
|
+
m = t.model,
|
19
|
+
type = t._getMarkType(columnId),
|
20
|
+
item = t._type == 'row' ? rowId : [rowId, columnId];
|
21
|
+
if(t.arg('enabled') && t._isSelectable(item)){
|
22
|
+
if(!t.arg('multiple')){
|
23
|
+
m.clearMark(type);
|
24
|
+
}
|
25
|
+
m.markById(rowId, 1, type);
|
26
|
+
m.when();
|
27
|
+
}
|
28
|
+
},
|
29
|
+
|
30
|
+
deselectById: function(rowId, columnId){
|
31
|
+
var t = this,
|
32
|
+
m = t.model,
|
33
|
+
item = t._type == 'row' ? rowId : [rowId, columnId];
|
34
|
+
if(t.arg('enabled') && t._isSelectable(item)){
|
35
|
+
m.markById(rowId, 0, t._getMarkType(columnId));
|
36
|
+
m.when();
|
37
|
+
}
|
38
|
+
},
|
39
|
+
|
40
|
+
isSelected: function(rowId, columnId){
|
41
|
+
//Mixed status is not selected
|
42
|
+
return this.model.getMark(rowId, this._getMarkType(columnId)) === true;
|
43
|
+
},
|
44
|
+
|
45
|
+
//Private-----------------------------------------------------------------
|
46
|
+
_init: function(){
|
47
|
+
var t = this, m = t.model;
|
48
|
+
t.connect(m, 'onMarkChange', '_onMark');
|
49
|
+
}
|
50
|
+
});
|
51
|
+
});
|
@@ -0,0 +1,47 @@
|
|
1
|
+
define({root:
|
2
|
+
({
|
3
|
+
loadingInfo: "Loading...",
|
4
|
+
emptyInfo: "No items to display",
|
5
|
+
loadFailInfo: "Failed to load data!",
|
6
|
+
loadMore: "Load More",
|
7
|
+
loadMoreLoading: "Loading...",
|
8
|
+
loadPrevious: "Load Previous",
|
9
|
+
loadPreviousLoading: "Loading...",
|
10
|
+
indirectSelectAll: "Press SPACE to select all.",
|
11
|
+
indirectDeselectAll: "Press SPACE to deselect all.",
|
12
|
+
treeExpanded: "Control + left arrow key to collapse this row.",
|
13
|
+
treeCollapsed: "Control + right arrow key to expand this row."
|
14
|
+
}),
|
15
|
+
"ar": true,
|
16
|
+
"bg": true,
|
17
|
+
"ca": true,
|
18
|
+
"cs": true,
|
19
|
+
"da": true,
|
20
|
+
"de": true,
|
21
|
+
"el": true,
|
22
|
+
"es": true,
|
23
|
+
"fi": true,
|
24
|
+
"fr": true,
|
25
|
+
"he": true,
|
26
|
+
"hr": true,
|
27
|
+
"hu": true,
|
28
|
+
"it": true,
|
29
|
+
"ja": true,
|
30
|
+
"kk": true,
|
31
|
+
"ko": true,
|
32
|
+
"nb": true,
|
33
|
+
"nl": true,
|
34
|
+
"pl": true,
|
35
|
+
"pt": true,
|
36
|
+
"pt-pt": true,
|
37
|
+
"ro": true,
|
38
|
+
"ru": true,
|
39
|
+
"sk": true,
|
40
|
+
"sl": true,
|
41
|
+
"sv": true,
|
42
|
+
"th": true,
|
43
|
+
"tr": true,
|
44
|
+
"uk": true,
|
45
|
+
"zh": true,
|
46
|
+
"zh-tw": true
|
47
|
+
});
|
@@ -0,0 +1,133 @@
|
|
1
|
+
define({ root:
|
2
|
+
//begin v1.x content
|
3
|
+
({
|
4
|
+
"clearFilterDialogTitle": "Clear Filter",
|
5
|
+
"filterDefDialogTitle": "Filter",
|
6
|
+
"defaultRuleTitle": "Rule",
|
7
|
+
"ruleTitleTemplate": "Rule ${ruleNumber}",
|
8
|
+
"noFilterApplied": "No filter applied.",
|
9
|
+
"defineFilter": "Define filter",
|
10
|
+
|
11
|
+
"conditionEqual": "equal",
|
12
|
+
"conditionNotEqual": "does not equal",
|
13
|
+
"conditionLess": "is less than",
|
14
|
+
"conditionLessEqual": "less than or equal",
|
15
|
+
"conditionGreater": "is greater than",
|
16
|
+
"conditionGreaterEqual": "greater than or equal",
|
17
|
+
"conditionContain": "contains",
|
18
|
+
"conditionIs": "is",
|
19
|
+
"conditionStartWith": "starts with",
|
20
|
+
"conditionEndWith": "ends with",
|
21
|
+
"conditionNotContain": "does not contain",
|
22
|
+
"conditionIsNot": "is not",
|
23
|
+
"conditionNotStartWith": "does not start with",
|
24
|
+
"conditionNotEndWith": "does not end with",
|
25
|
+
"conditionBefore": "before",
|
26
|
+
"conditionAfter": "after",
|
27
|
+
"conditionRange": "range",
|
28
|
+
"conditionIsEmpty": "is empty",
|
29
|
+
|
30
|
+
"all": "all",
|
31
|
+
"any": "any",
|
32
|
+
"relationAll": "all rules",
|
33
|
+
"waiRelAll": "Match all of the following rules:",
|
34
|
+
"relationAny": "any rule",
|
35
|
+
"waiRelAny": "Match any of the following rules:",
|
36
|
+
"relationMsgFront": "Match",
|
37
|
+
"relationMsgTail": "",
|
38
|
+
"and": "and",
|
39
|
+
"or": "or",
|
40
|
+
|
41
|
+
"addRuleButton": "Add Rule",
|
42
|
+
"waiAddRuleButton": "Add a new rule",
|
43
|
+
"removeRuleButton": "Remove Rule",
|
44
|
+
"waiRemoveRuleButtonTemplate": "Remove rule ${0}",
|
45
|
+
|
46
|
+
"addRuleButton": "Add Filter Rule",
|
47
|
+
"cancelButton": "Cancel",
|
48
|
+
"waiCancelButton": "Cancel this dialog",
|
49
|
+
"clearButton": "Clear",
|
50
|
+
"waiClearButton": "Clear the filter",
|
51
|
+
"filterButton": "Filter",
|
52
|
+
"waiFilterButton": "Submit the filter",
|
53
|
+
|
54
|
+
"columnSelectLabel": "Column:",
|
55
|
+
"waiColumnSelectTemplate": "Column for rule ${0}",
|
56
|
+
"conditionSelectLabel": "Condition:",
|
57
|
+
"waiConditionSelectTemplate": "Condition for rule ${0}",
|
58
|
+
"valueBoxLabel": "Value:",
|
59
|
+
"waiValueBoxTemplate": "Enter value to filter for rule ${0}",
|
60
|
+
|
61
|
+
"rangeTo": "to",
|
62
|
+
"rangeTemplate": "from ${0} to ${1}",
|
63
|
+
|
64
|
+
"statusTipHeaderColumn": "Column",
|
65
|
+
"statusTipHeaderCondition": "Rules",
|
66
|
+
"statusTipTitle": "Filter Bar",
|
67
|
+
"statusTipMsg": "Click the filter bar here to filter on values in ${0}.",
|
68
|
+
"anycolumn": "any column",
|
69
|
+
"statusTipTitleNoFilter": "Filter Bar",
|
70
|
+
"statusTipTitleHasFilter": "Filter",
|
71
|
+
"statusTipRelPre": "Match",
|
72
|
+
"statusTipRelPost": "rules.",
|
73
|
+
"statusTipHeaderAll": "Match all rules.",
|
74
|
+
"statusTipHeaderAny": "Match any rules.",
|
75
|
+
|
76
|
+
"defaultItemsName": "items",
|
77
|
+
"filterBarMsgHasFilterTemplate": "${0} of ${1} ${2} shown.",
|
78
|
+
"filterBarMsgNoFilterTemplate": "No filter applied",
|
79
|
+
|
80
|
+
"filterBarDefButton": "Define filter",
|
81
|
+
"waiFilterBarDefButton": "Filter the table",
|
82
|
+
"a11yFilterBarDefButton": "Filter...",
|
83
|
+
"filterBarClearButton": "Clear filter",
|
84
|
+
"waiFilterBarClearButton": "Clear the filter",
|
85
|
+
"closeFilterBarBtn": "Close filter bar",
|
86
|
+
|
87
|
+
"clearFilterMsg": "This will remove the filter and show all available records.",
|
88
|
+
"anyColumnOption": "Any Column",
|
89
|
+
|
90
|
+
"trueLabel": "True",
|
91
|
+
"falseLabel": "False",
|
92
|
+
"radioTrueLabel": "Value True",
|
93
|
+
"radioFalseLabel": "Value False",
|
94
|
+
"beginTimeRangeLabel": "Time Range Value Start",
|
95
|
+
"endTimeRangeLabel": "Time Range Value End",
|
96
|
+
"beginDateRangeLabel": "Date Range Value Start",
|
97
|
+
"endDateRangeLabel": "Date Range Value End",
|
98
|
+
"startsWithExpr": "${0}*"
|
99
|
+
}),
|
100
|
+
//end v1.x content
|
101
|
+
"ar": true,
|
102
|
+
"bg": true,
|
103
|
+
"ca": true,
|
104
|
+
"cs": true,
|
105
|
+
"da": true,
|
106
|
+
"de": true,
|
107
|
+
"el": true,
|
108
|
+
"es": true,
|
109
|
+
"fi": true,
|
110
|
+
"fr": true,
|
111
|
+
"he": true,
|
112
|
+
"hr": true,
|
113
|
+
"hu": true,
|
114
|
+
"it": true,
|
115
|
+
"ja": true,
|
116
|
+
"kk": true,
|
117
|
+
"ko": true,
|
118
|
+
"nb": true,
|
119
|
+
"nl": true,
|
120
|
+
"pl": true,
|
121
|
+
"pt": true,
|
122
|
+
"pt-pt": true,
|
123
|
+
"ro": true,
|
124
|
+
"ru": true,
|
125
|
+
"sk": true,
|
126
|
+
"sl": true,
|
127
|
+
"sv": true,
|
128
|
+
"th": true,
|
129
|
+
"tr": true,
|
130
|
+
"uk": true,
|
131
|
+
"zh": true,
|
132
|
+
"zh-tw": true
|
133
|
+
});
|
@@ -0,0 +1,45 @@
|
|
1
|
+
define({ root:
|
2
|
+
({
|
3
|
+
singleSort: "Single Sort",
|
4
|
+
nestedSort: "Nested Sort",
|
5
|
+
ascending: "Click to sort Ascending",
|
6
|
+
descending: "Click to sort Descending",
|
7
|
+
sortingState: "${0} - ${1}",
|
8
|
+
unsorted: "Do not sort this column",
|
9
|
+
|
10
|
+
waiSingleSortLabel: "${0} - is sorted by ${1}. Choose to sort by ${2}",
|
11
|
+
waiNestedSortLabel:"${0} - is nested sorted by ${1}. Choose to nested sort by ${2}"
|
12
|
+
}),
|
13
|
+
"ar": true,
|
14
|
+
"bg": true,
|
15
|
+
"ca": true,
|
16
|
+
"cs": true,
|
17
|
+
"da": true,
|
18
|
+
"de": true,
|
19
|
+
"el": true,
|
20
|
+
"es": true,
|
21
|
+
"fi": true,
|
22
|
+
"fr": true,
|
23
|
+
"he": true,
|
24
|
+
"hr": true,
|
25
|
+
"hu": true,
|
26
|
+
"it": true,
|
27
|
+
"ja": true,
|
28
|
+
"kk": true,
|
29
|
+
"ko": true,
|
30
|
+
"nb": true,
|
31
|
+
"nl": true,
|
32
|
+
"pl": true,
|
33
|
+
"pt": true,
|
34
|
+
"pt-pt": true,
|
35
|
+
"ro": true,
|
36
|
+
"ru": true,
|
37
|
+
"sk": true,
|
38
|
+
"sl": true,
|
39
|
+
"sv": true,
|
40
|
+
"th": true,
|
41
|
+
"tr": true,
|
42
|
+
"uk": true,
|
43
|
+
"zh": true,
|
44
|
+
"zh-tw": true
|
45
|
+
});
|