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
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
MDkxNzQxZWUyZWNmZDI3ZjhjNDI4Yjc4M2YwN2FkNDRiMmUyMWFmMQ==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
ZjliNzU1YmNmYmJiY2I5YWI4ZjQ3ODM0ZDZiMzNkZDE1ODBhNjAwMQ==
|
7
|
+
!binary "U0hBNTEy":
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
OTM1ZjlhM2U5MmUwY2Y0OTJhZTk4M2U1NzFkNWJkNTczMDM2MTcyMTM4MTli
|
10
|
+
ZDQ2ZDhjZTdjNDYwNGNmNzMyY2Q5ZWE1ZWQwNDMyNDcyM2Q1ZGFjODMzZDJh
|
11
|
+
MjU3NDc5MjVjZGIxNmI1MmRjZjI2NDA0YWNhMTA4ZjI0Y2I1ZDE=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
YzRlNDcyYzNlZWVhYjg0MWZiMzc2NTMyOGI2ZGY0ZWQ2NGVmMzM0ZjI2OThi
|
14
|
+
MjY4MTYyZTFhZThkMDQ3ZDg0NjdkZTBiM2YxMjA0MDRkODUwNGY5ZjI5NjBl
|
15
|
+
MzFmYmNkNDU0YmNhODYxNzgwZmU2ZDdkZWZiYmJmMmIyZjU0YWM=
|
data/LICENSE
ADDED
data/README.md
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
# gridx-rails
|
2
|
+
|
3
|
+
This gem packages [GridX](http://oria.github.io/gridx/) 1.1.0 assets (JavaScripts, stylesheets,
|
4
|
+
templates and and images) for the Rails 3.1+ [asset
|
5
|
+
pipeline](http://guides.rubyonrails.org/asset_pipeline.html).
|
6
|
+
|
7
|
+
GridX is designed to load modules using Dojo AMD, so the files are not
|
8
|
+
packaged together in the typical asset pipeline style, they are instead
|
9
|
+
minified separately.
|
10
|
+
|
11
|
+
## Usage
|
12
|
+
|
13
|
+
In your Gemfile, add:
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
gem 'gridx-rails'
|
17
|
+
```
|
18
|
+
|
data/Rakefile
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
#!/usr/bin/env rake
|
2
|
+
begin
|
3
|
+
require 'bundler/setup'
|
4
|
+
rescue LoadError
|
5
|
+
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
6
|
+
end
|
7
|
+
begin
|
8
|
+
require 'rdoc/task'
|
9
|
+
rescue LoadError
|
10
|
+
require 'rdoc/rdoc'
|
11
|
+
require 'rake/rdoctask'
|
12
|
+
RDoc::Task = Rake::RDocTask
|
13
|
+
end
|
14
|
+
|
15
|
+
RDoc::Task.new(:rdoc) do |rdoc|
|
16
|
+
rdoc.rdoc_dir = 'rdoc'
|
17
|
+
rdoc.title = 'GridxRails'
|
18
|
+
rdoc.options << '--line-numbers'
|
19
|
+
rdoc.rdoc_files.include('README.rdoc')
|
20
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
21
|
+
end
|
22
|
+
|
23
|
+
Bundler::GemHelper.install_tasks
|
24
|
+
|
25
|
+
require 'rake/testtask'
|
26
|
+
|
27
|
+
Rake::TestTask.new(:test) do |t|
|
28
|
+
t.libs << 'lib'
|
29
|
+
t.libs << 'test'
|
30
|
+
t.pattern = 'test/**/*_test.rb'
|
31
|
+
t.verbose = false
|
32
|
+
end
|
33
|
+
|
34
|
+
task default: :test
|
35
|
+
|
36
|
+
Dir.glob('lib/tasks/*.rake').each { |r| load r }
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,224 @@
|
|
1
|
+
define([
|
2
|
+
"dojo/_base/declare",
|
3
|
+
"dojo/_base/lang",
|
4
|
+
"dojo/_base/sniff",
|
5
|
+
"dojo/on",
|
6
|
+
"dojo/dom-class",
|
7
|
+
"dojo/dom-geometry",
|
8
|
+
"dojo/query",
|
9
|
+
"dojox/html/metrics",
|
10
|
+
"dijit/_WidgetBase",
|
11
|
+
"dijit/_FocusMixin",
|
12
|
+
"dijit/_TemplatedMixin",
|
13
|
+
"dojo/text!./templates/Grid.html",
|
14
|
+
"./core/Core",
|
15
|
+
"./core/model/extensions/Query",
|
16
|
+
"./core/_Module",
|
17
|
+
"./modules/Header",
|
18
|
+
"./modules/View",
|
19
|
+
"./modules/Body",
|
20
|
+
"./modules/VLayout",
|
21
|
+
"./modules/HLayout",
|
22
|
+
"./modules/VScroller",
|
23
|
+
"./modules/HScroller",
|
24
|
+
"./modules/ColumnWidth",
|
25
|
+
"./modules/Focus",
|
26
|
+
"dijit/_BidiSupport",
|
27
|
+
"dojo/NodeList-dom",
|
28
|
+
"dojo/NodeList-traverse"
|
29
|
+
], function(declare, lang, has, on, domClass, domGeometry, query, metrics,
|
30
|
+
_WidgetBase, _FocusMixin, _TemplatedMixin, template,
|
31
|
+
Core, Query, _Module, Header, View, Body, VLayout, HLayout, VScroller, HScroller, ColumnWidth, Focus, _BidiSupport){
|
32
|
+
|
33
|
+
var dummyFunc = function(){};
|
34
|
+
|
35
|
+
return declare('gridx.Grid', [_WidgetBase, _TemplatedMixin, _FocusMixin, Core], {
|
36
|
+
// summary:
|
37
|
+
// Gridx is a highly extensible widget providing grid/table functionalities.
|
38
|
+
// description:
|
39
|
+
// Gridx is much smaller, faster, more reasonable designed, more powerful and more flexible
|
40
|
+
// compared to the old dojo DataGrid/EnhancedGrid.
|
41
|
+
|
42
|
+
templateString: template,
|
43
|
+
|
44
|
+
//textDir bidi support begin
|
45
|
+
_setTextDirAttr: function(textDir){
|
46
|
+
// summary:
|
47
|
+
// Seamlessly changes grid 'textDir' property on the fly.
|
48
|
+
// textDir:
|
49
|
+
// Grid text direction
|
50
|
+
if(this.textDir != textDir){
|
51
|
+
this.textDir = textDir;
|
52
|
+
this.header.refresh();
|
53
|
+
if(this.edit){
|
54
|
+
this.edit._initAlwaysEdit();
|
55
|
+
}
|
56
|
+
this.body.refresh();
|
57
|
+
}
|
58
|
+
},
|
59
|
+
|
60
|
+
getTextDir: function(colId, text){
|
61
|
+
var col = this._columnsById[colId],
|
62
|
+
textDir = (col && col.textDir) || this.textDir;
|
63
|
+
return textDir = (textDir === "auto") ? _BidiSupport.prototype._checkContextual(text) : textDir;
|
64
|
+
},
|
65
|
+
|
66
|
+
getTextDirStyle: function(colId, text){
|
67
|
+
var textDir = this.getTextDir(colId, text);
|
68
|
+
return textDir ? " direction:" + textDir + ";" : "";
|
69
|
+
},
|
70
|
+
|
71
|
+
enforceTextDirWithUcc: function(colId, text){
|
72
|
+
var textDir = this.getTextDir(colId, text);
|
73
|
+
//var LRE = '\u202A', RLE = '\u202B', PDF = '\u202C';
|
74
|
+
return textDir ? (textDir === "rtl" ? '\u202B' : '\u202A') + text + '\u202C' : text;
|
75
|
+
},
|
76
|
+
//textDir bidi support end
|
77
|
+
|
78
|
+
coreModules: [
|
79
|
+
//Put default modules here!
|
80
|
+
Header,
|
81
|
+
View,
|
82
|
+
Body,
|
83
|
+
VLayout,
|
84
|
+
HLayout,
|
85
|
+
VScroller,
|
86
|
+
HScroller,
|
87
|
+
ColumnWidth,
|
88
|
+
Focus
|
89
|
+
],
|
90
|
+
|
91
|
+
coreExtensions: [
|
92
|
+
//Put default extensions here!
|
93
|
+
Query
|
94
|
+
],
|
95
|
+
|
96
|
+
postCreate: function(){
|
97
|
+
// summary:
|
98
|
+
// Override to initialize grid modules
|
99
|
+
// tags:
|
100
|
+
// protected extension
|
101
|
+
var t = this;
|
102
|
+
t.inherited(arguments);
|
103
|
+
t._eventFlags = {};
|
104
|
+
t.modules = t.coreModules.concat(t.modules || []);
|
105
|
+
t.modelExtensions = t.coreExtensions.concat(t.modelExtensions || []);
|
106
|
+
domClass.toggle(t.domNode, 'gridxRtl', !t.isLeftToRight());
|
107
|
+
t.lastFocusNode.setAttribute('tabIndex', t.domNode.getAttribute('tabIndex'));
|
108
|
+
t._initEvents(t._compNames, t._eventNames);
|
109
|
+
t._init();
|
110
|
+
//resize the grid when zoomed in/out.
|
111
|
+
t.connect(metrics, 'onFontResize', function(){
|
112
|
+
t.resize();
|
113
|
+
});
|
114
|
+
},
|
115
|
+
|
116
|
+
startup: function(){
|
117
|
+
// summary:
|
118
|
+
// Startup this grid widget
|
119
|
+
// tags:
|
120
|
+
// public extension
|
121
|
+
if(!this._started){
|
122
|
+
this.inherited(arguments);
|
123
|
+
this._deferStartup.callback();
|
124
|
+
}
|
125
|
+
},
|
126
|
+
|
127
|
+
destroy: function(){
|
128
|
+
// summary:
|
129
|
+
// Destroy this grid widget
|
130
|
+
// tags:
|
131
|
+
// public extension
|
132
|
+
this._uninit();
|
133
|
+
this.inherited(arguments);
|
134
|
+
},
|
135
|
+
|
136
|
+
/*=====
|
137
|
+
// autoHeight: Boolean
|
138
|
+
// If true, the grid's height is determined by the total height of the rows in current body view,
|
139
|
+
// so that there will never be vertical scroller bar. And when scrolling the mouse wheel over grid body,
|
140
|
+
// the whole page will be scrolled. Note if this is false, only the grid body will be scrolled.
|
141
|
+
autoHeight: false,
|
142
|
+
// autoWidth: Boolean
|
143
|
+
// If true, the grid's width is determined by the total width of the columns, so that there will
|
144
|
+
// never be horizontal scroller bar.
|
145
|
+
autoWidth: false,
|
146
|
+
=====*/
|
147
|
+
|
148
|
+
|
149
|
+
resize: function(changeSize){
|
150
|
+
// summary:
|
151
|
+
// Resize the grid using given width and height.
|
152
|
+
// tags:
|
153
|
+
// public
|
154
|
+
// changeSize: Object?
|
155
|
+
// An object like {w: ..., h: ...}.
|
156
|
+
// If omitted, the grid will re-layout itself in current width/height.
|
157
|
+
var t = this, ds = {};
|
158
|
+
if(changeSize){
|
159
|
+
if(t.autoWidth){
|
160
|
+
changeSize.w = undefined;
|
161
|
+
}
|
162
|
+
if(t.autoHeight){
|
163
|
+
changeSize.h = undefined;
|
164
|
+
}
|
165
|
+
domGeometry.setMarginBox(t.domNode, changeSize);
|
166
|
+
}
|
167
|
+
t._onResizeBegin(changeSize, ds);
|
168
|
+
t._onResizeEnd(changeSize, ds);
|
169
|
+
},
|
170
|
+
|
171
|
+
//Private-------------------------------------------------------------------------------
|
172
|
+
_onResizeBegin: function(){},
|
173
|
+
_onResizeEnd: function(){},
|
174
|
+
|
175
|
+
_escapeId: function(id){
|
176
|
+
return String(id).replace(/\\/g, "\\\\");
|
177
|
+
},
|
178
|
+
|
179
|
+
//event handling begin
|
180
|
+
_compNames: ['Cell', 'HeaderCell', 'Row', 'Header'],
|
181
|
+
|
182
|
+
_eventNames: [
|
183
|
+
'Click', 'DblClick',
|
184
|
+
'MouseDown', 'MouseUp',
|
185
|
+
'MouseOver', 'MouseOut',
|
186
|
+
'MouseMove', 'ContextMenu',
|
187
|
+
'KeyDown', 'KeyPress', 'KeyUp'
|
188
|
+
],
|
189
|
+
|
190
|
+
_initEvents: function(objNames, evtNames){
|
191
|
+
var i = 0, j, comp, evt, evtName;
|
192
|
+
while(comp = objNames[i++]){
|
193
|
+
for(j = 0; evt = evtNames[j++];){
|
194
|
+
evtName = 'on' + comp + evt;
|
195
|
+
this[evtName] = this[evtName] || dummyFunc;
|
196
|
+
}
|
197
|
+
}
|
198
|
+
},
|
199
|
+
|
200
|
+
_connectEvents: function(node, connector, scope){
|
201
|
+
for(var t = this,
|
202
|
+
m = t.model,
|
203
|
+
eventName,
|
204
|
+
eventNames = t._eventNames,
|
205
|
+
len = eventNames.length,
|
206
|
+
i = 0; i < len; ++i){
|
207
|
+
eventName = eventNames[i];
|
208
|
+
m._cnnts.push(on(node, eventName.toLowerCase(), lang.hitch(scope, connector, eventName)));
|
209
|
+
}
|
210
|
+
},
|
211
|
+
|
212
|
+
_isConnected: function(eventName){
|
213
|
+
return this[eventName] !== dummyFunc;
|
214
|
+
},
|
215
|
+
//event handling end
|
216
|
+
|
217
|
+
_isCopyEvent: function(evt){
|
218
|
+
// summary:
|
219
|
+
// On Mac Ctrl+click also opens a context menu. So call this to check ctrlKey instead of directly call evt.ctrlKey
|
220
|
+
// if you need to implement some handler for Ctrl+click.
|
221
|
+
return has('mac') ? evt.metaKey : evt.ctrlKey;
|
222
|
+
}
|
223
|
+
});
|
224
|
+
});
|
@@ -0,0 +1,52 @@
|
|
1
|
+
define([
|
2
|
+
'dojo/_base/declare',
|
3
|
+
'./Grid',
|
4
|
+
'./core/model/cache/Sync',
|
5
|
+
'./modules/CellWidget',
|
6
|
+
'./modules/Edit',
|
7
|
+
'./modules/ColumnResizer',
|
8
|
+
'./modules/SingleSort',
|
9
|
+
'./modules/TouchScroll',
|
10
|
+
'./modules/extendedSelect/Row',
|
11
|
+
'./modules/Filter',
|
12
|
+
'./modules/move/Row',
|
13
|
+
'./modules/move/Column',
|
14
|
+
'./modules/ColumnLock'
|
15
|
+
], function(declare, Grid, Cache,
|
16
|
+
CellWidget, Edit, ColumnResizer,
|
17
|
+
SingleSort, TouchScroll,
|
18
|
+
SelectRow, Filter, MoveRow,
|
19
|
+
MoveColumn, ColumnLock){
|
20
|
+
|
21
|
+
return declare(Grid, {
|
22
|
+
// summary:
|
23
|
+
// This is a common configuration for grid with synchronous store
|
24
|
+
// (client side store such as dojo/store/Memory).
|
25
|
+
// Several useful modules are included by default so that users without special
|
26
|
+
// requirements can directly use.
|
27
|
+
// Note:
|
28
|
+
// 1. cacheClass is no need to be provided.
|
29
|
+
// gridx/core/model/cache/Sync will be used by default.
|
30
|
+
// 2. The exact modules used here might change without notification across Gridx versions.
|
31
|
+
// 3. The default modules will be loaded here no matter you use them or not. So if code size
|
32
|
+
// is critical to your project, please use base class gridx/Grid instead.
|
33
|
+
// example:
|
34
|
+
// | var grid = new GridCommon({
|
35
|
+
// | store: store,
|
36
|
+
// | structure: structure
|
37
|
+
// | });
|
38
|
+
cacheClass: Cache,
|
39
|
+
coreModules: Grid.prototype.coreModules.concat([
|
40
|
+
CellWidget,
|
41
|
+
Edit,
|
42
|
+
ColumnResizer,
|
43
|
+
SingleSort,
|
44
|
+
TouchScroll,
|
45
|
+
SelectRow,
|
46
|
+
Filter,
|
47
|
+
MoveRow,
|
48
|
+
MoveColumn,
|
49
|
+
ColumnLock
|
50
|
+
])
|
51
|
+
});
|
52
|
+
});
|
@@ -0,0 +1,105 @@
|
|
1
|
+
define([
|
2
|
+
'gridx/modules/Focus',
|
3
|
+
'gridx/modules/VScroller',
|
4
|
+
'gridx/modules/ColumnResizer',
|
5
|
+
'gridx/modules/VirtualVScroller',
|
6
|
+
'gridx/modules/SingleSort',
|
7
|
+
'gridx/modules/NestedSort',
|
8
|
+
'gridx/modules/ColumnLock',
|
9
|
+
'gridx/modules/select/Row',
|
10
|
+
'gridx/modules/select/Column',
|
11
|
+
'gridx/modules/select/Cell',
|
12
|
+
'gridx/modules/extendedSelect/Row',
|
13
|
+
'gridx/modules/extendedSelect/Column',
|
14
|
+
'gridx/modules/extendedSelect/Cell',
|
15
|
+
'gridx/modules/move/Row',
|
16
|
+
'gridx/modules/move/Column',
|
17
|
+
'gridx/modules/dnd/Row',
|
18
|
+
'gridx/modules/dnd/Column',
|
19
|
+
'gridx/modules/Pagination',
|
20
|
+
'gridx/modules/pagination/PaginationBar',
|
21
|
+
'gridx/modules/pagination/PaginationBarDD',
|
22
|
+
'gridx/modules/Filter',
|
23
|
+
'gridx/modules/filter/FilterBar',
|
24
|
+
'gridx/modules/filter/QuickFilter',
|
25
|
+
'gridx/modules/CellWidget',
|
26
|
+
'gridx/modules/Edit',
|
27
|
+
'gridx/modules/RowHeader',
|
28
|
+
'gridx/modules/IndirectSelect',
|
29
|
+
'gridx/modules/IndirectSelectColumn',
|
30
|
+
'gridx/modules/Persist',
|
31
|
+
'gridx/modules/Menu',
|
32
|
+
'gridx/modules/Dod',
|
33
|
+
'gridx/modules/Tree',
|
34
|
+
'gridx/modules/RowLock',
|
35
|
+
'gridx/modules/ToolBar',
|
36
|
+
'gridx/modules/SummaryBar',
|
37
|
+
'gridx/modules/Bar',
|
38
|
+
'gridx/modules/NavigableCell',
|
39
|
+
'gridx/modules/TouchScroll',
|
40
|
+
'gridx/modules/TouchVScroller',
|
41
|
+
'gridx/modules/HiddenColumns',
|
42
|
+
'gridx/modules/GroupHeader',
|
43
|
+
'gridx/modules/PagedBody',
|
44
|
+
'gridx/modules/HeaderMenu'
|
45
|
+
], function(
|
46
|
+
Focus, VScroller, ColumnResizer, VirtualVScroller,
|
47
|
+
SingleSort, NestedSort, ColumnLock,
|
48
|
+
SelectRow, SelectColumn, SelectCell,
|
49
|
+
ExtendedSelectRow, ExtendedSelectColumn, ExtendedSelectCell,
|
50
|
+
MoveRow, MoveColumn,
|
51
|
+
DndRow, DndColumn,
|
52
|
+
Pagination,
|
53
|
+
PaginationBar, PaginationBarDD,
|
54
|
+
Filter, FilterBar, QuickFilter,
|
55
|
+
CellWidget, Edit,
|
56
|
+
RowHeader, IndirectSelect, IndirectSelectColumn,
|
57
|
+
Persist, Menu, Dod, Tree, RowLock,
|
58
|
+
ToolBar, SummaryBar, Bar, NavigableCell, TouchScroll, TouchVScroller,
|
59
|
+
HiddenColumns, GroupHeader, PagedBody, HeaderMenu){
|
60
|
+
return {
|
61
|
+
Focus: Focus,
|
62
|
+
VScroller: VScroller,
|
63
|
+
ColumnResizer: ColumnResizer,
|
64
|
+
VirtualVScroller: VirtualVScroller,
|
65
|
+
SingleSort: SingleSort,
|
66
|
+
NestedSort: NestedSort,
|
67
|
+
ColumnLock: ColumnLock,
|
68
|
+
SelectRow: SelectRow,
|
69
|
+
SelectColumn: SelectColumn,
|
70
|
+
SelectCell: SelectCell,
|
71
|
+
ExtendedSelectRow: ExtendedSelectRow,
|
72
|
+
ExtendedSelectColumn: ExtendedSelectColumn,
|
73
|
+
ExtendedSelectCell: ExtendedSelectCell,
|
74
|
+
MoveRow: MoveRow,
|
75
|
+
MoveColumn: MoveColumn,
|
76
|
+
DndRow: DndRow,
|
77
|
+
DndColumn: DndColumn,
|
78
|
+
Pagination: Pagination,
|
79
|
+
PaginationBar: PaginationBar,
|
80
|
+
PaginationBarDD: PaginationBarDD,
|
81
|
+
Filter: Filter,
|
82
|
+
FilterBar: FilterBar,
|
83
|
+
QuickFilter: QuickFilter,
|
84
|
+
CellWidget: CellWidget,
|
85
|
+
Edit: Edit,
|
86
|
+
RowHeader: RowHeader,
|
87
|
+
IndirectSelect: IndirectSelect,
|
88
|
+
IndirectSelectColumn: IndirectSelectColumn,
|
89
|
+
Persist: Persist,
|
90
|
+
Menu: Menu,
|
91
|
+
Dod: Dod,
|
92
|
+
Tree: Tree,
|
93
|
+
RowLock: RowLock,
|
94
|
+
ToolBar: ToolBar,
|
95
|
+
SummaryBar: SummaryBar,
|
96
|
+
Bar: Bar,
|
97
|
+
NavigableCell: NavigableCell,
|
98
|
+
TouchScroll: TouchScroll,
|
99
|
+
TouchVScroller: TouchVScroller,
|
100
|
+
HiddenColumns: HiddenColumns,
|
101
|
+
GroupHeader: GroupHeader,
|
102
|
+
PagedBody: PagedBody,
|
103
|
+
HeaderMenu: HeaderMenu
|
104
|
+
};
|
105
|
+
});
|
@@ -0,0 +1,86 @@
|
|
1
|
+
define([
|
2
|
+
"dojo/_base/declare"
|
3
|
+
], function(declare){
|
4
|
+
|
5
|
+
/*=====
|
6
|
+
return declare([], {
|
7
|
+
// summary:
|
8
|
+
// Represents a cell of a grid
|
9
|
+
// description:
|
10
|
+
// An instance of this class represents a grid cell.
|
11
|
+
// This class should not be directly instantiated by users. It should be returned by grid APIs.
|
12
|
+
|
13
|
+
// row: [readonly] gridx.core.Row
|
14
|
+
// Reference to the row of this cell
|
15
|
+
row: null,
|
16
|
+
|
17
|
+
// column [readonly] gridx.core.Column
|
18
|
+
// Reference to the column of this cell
|
19
|
+
column: null,
|
20
|
+
|
21
|
+
// grid: [readonly] gridx.Grid
|
22
|
+
// Reference to the grid
|
23
|
+
grid: null,
|
24
|
+
|
25
|
+
// model: [readonly] grid.core.model.Model
|
26
|
+
// Reference to this grid model
|
27
|
+
model: null,
|
28
|
+
|
29
|
+
data: function(){
|
30
|
+
// summary:
|
31
|
+
// Get the grid data of this cell.
|
32
|
+
// description:
|
33
|
+
// Grid data means the result of the formatter functions (if exist).
|
34
|
+
// It can be different from store data (a.k.a. raw data).
|
35
|
+
// returns:
|
36
|
+
// The grid data in this cell
|
37
|
+
},
|
38
|
+
|
39
|
+
rawData: function(){
|
40
|
+
// summary:
|
41
|
+
// Get the store data of this cell.
|
42
|
+
// description:
|
43
|
+
// If the column of this cell has a store field, then this method can return the store data of this cell.
|
44
|
+
// returns:
|
45
|
+
// The store data of this cell
|
46
|
+
},
|
47
|
+
|
48
|
+
setRawData: function(rawData){
|
49
|
+
// summary:
|
50
|
+
// Set new raw data to this cell.
|
51
|
+
// rawData:
|
52
|
+
// Anything that store can recognize as data
|
53
|
+
// returns:
|
54
|
+
// If using server side store, a Deferred object is returned to indicate when the operation is finished.
|
55
|
+
}
|
56
|
+
});
|
57
|
+
=====*/
|
58
|
+
|
59
|
+
return declare([], {
|
60
|
+
constructor: function(grid, row, column){
|
61
|
+
var t = this;
|
62
|
+
t.grid = grid;
|
63
|
+
t.model = grid.model;
|
64
|
+
t.row = row;
|
65
|
+
t.column = column;
|
66
|
+
},
|
67
|
+
|
68
|
+
data: function(){
|
69
|
+
return this.model.byId(this.row.id).data[this.column.id];
|
70
|
+
},
|
71
|
+
|
72
|
+
rawData: function(){
|
73
|
+
var t = this, f = t.column.field();
|
74
|
+
return f && t.model.byId(t.row.id).rawData[f];
|
75
|
+
},
|
76
|
+
|
77
|
+
setRawData: function(rawData){
|
78
|
+
var obj = {},
|
79
|
+
field = this.column.field();
|
80
|
+
if(field){
|
81
|
+
obj[field] = rawData;
|
82
|
+
return this.row.setRawData(obj);
|
83
|
+
}
|
84
|
+
}
|
85
|
+
});
|
86
|
+
});
|