gridx-rails 1.2.1 → 1.3.0.pre.alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +9 -9
- data/app/assets/images/gridx/resources/images/headershadow.png +0 -0
- data/app/assets/images/gridx/resources/images/rowback.png +0 -0
- data/app/assets/images/gridx/resources/images/sprite.png +0 -0
- data/app/assets/javascripts/gridx/Grid.js +20 -3
- data/app/assets/javascripts/gridx/allModules.js +18 -4
- data/app/assets/javascripts/gridx/core/Core.js +36 -6
- data/app/assets/javascripts/gridx/core/model/Model.js +6 -5
- data/app/assets/javascripts/gridx/core/model/cache/Async.js +9 -7
- data/app/assets/javascripts/gridx/core/model/cache/Sync.js +414 -12
- data/app/assets/javascripts/gridx/core/model/extensions/Mark.js +14 -20
- data/app/assets/javascripts/gridx/core/model/extensions/Modify.js +3 -10
- data/app/assets/javascripts/gridx/modules/AutoPagedBody.js +100 -0
- data/app/assets/javascripts/gridx/modules/AutoScroll.js +92 -23
- data/app/assets/javascripts/gridx/modules/Bar.js +14 -1
- data/app/assets/javascripts/gridx/modules/Body.js +64 -29
- data/app/assets/javascripts/gridx/modules/CellWidget.js +5 -2
- data/app/assets/javascripts/gridx/modules/ColumnLock.js +1 -2
- data/app/assets/javascripts/gridx/modules/ColumnWidth.js +4 -1
- data/app/assets/javascripts/gridx/modules/Dod.js +216 -12
- data/app/assets/javascripts/gridx/modules/Edit.js +143 -68
- data/app/assets/javascripts/gridx/modules/ExpandableColumn.js +292 -0
- data/app/assets/javascripts/gridx/modules/Filter.js +14 -0
- data/app/assets/javascripts/gridx/modules/Focus.js +9 -3
- data/app/assets/javascripts/gridx/modules/Header.js +22 -12
- data/app/assets/javascripts/gridx/modules/HeaderRegions.js +23 -8
- data/app/assets/javascripts/gridx/modules/IndirectSelect.js +6 -7
- data/app/assets/javascripts/gridx/modules/IndirectSelectColumn.js +1 -1
- data/app/assets/javascripts/gridx/modules/Layer.js +358 -0
- data/app/assets/javascripts/gridx/modules/NestedSort.js +8 -10
- data/app/assets/javascripts/gridx/modules/PagedBody.js +22 -323
- data/app/assets/javascripts/gridx/modules/Puller.js +113 -0
- data/app/assets/javascripts/gridx/modules/RowHeader.js +7 -6
- data/app/assets/javascripts/gridx/modules/RowLock.js +49 -19
- data/app/assets/javascripts/gridx/modules/SlantedHeader.js +46 -0
- data/app/assets/javascripts/gridx/modules/Sort.js +417 -0
- data/app/assets/javascripts/gridx/modules/StructureSwitch.js +143 -0
- data/app/assets/javascripts/gridx/modules/SummaryBar.js +6 -1
- data/app/assets/javascripts/gridx/modules/TouchVScroller.js +36 -13
- data/app/assets/javascripts/gridx/modules/Tree.js +6 -8
- data/app/assets/javascripts/gridx/modules/VScroller.js +1 -1
- data/app/assets/javascripts/gridx/modules/View.js +25 -18
- data/app/assets/javascripts/gridx/modules/VirtualVScroller.js +23 -11
- data/app/assets/javascripts/gridx/modules/_PagedBodyMixin.js +351 -0
- data/app/assets/javascripts/gridx/modules/dnd/Avatar.js +1 -1
- data/app/assets/javascripts/gridx/modules/dnd/_Dnd.js +1 -0
- data/app/assets/javascripts/gridx/modules/extendedSelect/Row.js +8 -5
- data/app/assets/javascripts/gridx/modules/filter/FilterBar.js +24 -17
- data/app/assets/javascripts/gridx/modules/filter/FilterConfirmDialog.js +3 -1
- data/app/assets/javascripts/gridx/modules/filter/FilterDialog.js +2 -2
- data/app/assets/javascripts/gridx/modules/filter/FilterPane.js +4 -5
- data/app/assets/javascripts/gridx/modules/filter/FilterTooltip.js +1 -1
- data/app/assets/javascripts/gridx/modules/filter/QuickFilter.js +32 -9
- data/app/assets/javascripts/gridx/modules/pagination/_PaginationBarBase.js +4 -1
- data/app/assets/javascripts/gridx/modules/select/Row.js +8 -4
- data/app/assets/javascripts/gridx/nls/ar/{FilterBar.js → gridx.js} +77 -5
- data/app/assets/javascripts/gridx/nls/bg/{FilterBar.js → gridx.js} +71 -5
- data/app/assets/javascripts/gridx/nls/ca/{FilterBar.js → gridx.js} +71 -5
- data/app/assets/javascripts/gridx/nls/cs/{FilterBar.js → gridx.js} +77 -5
- data/app/assets/javascripts/gridx/nls/da/{FilterBar.js → gridx.js} +77 -5
- data/app/assets/javascripts/gridx/nls/de/{FilterBar.js → gridx.js} +77 -5
- data/app/assets/javascripts/gridx/nls/el/{FilterBar.js → gridx.js} +77 -5
- data/app/assets/javascripts/gridx/nls/es/{FilterBar.js → gridx.js} +71 -5
- data/app/assets/javascripts/gridx/nls/fi/{FilterBar.js → gridx.js} +77 -5
- data/app/assets/javascripts/gridx/nls/fr/{FilterBar.js → gridx.js} +77 -5
- data/app/assets/javascripts/gridx/nls/{FilterBar.js → gridx.js} +80 -4
- data/app/assets/javascripts/gridx/nls/he/{FilterBar.js → gridx.js} +77 -5
- data/app/assets/javascripts/gridx/nls/hr/{FilterBar.js → gridx.js} +77 -5
- data/app/assets/javascripts/gridx/nls/hu/{FilterBar.js → gridx.js} +77 -5
- data/app/assets/javascripts/gridx/nls/it/{FilterBar.js → gridx.js} +77 -5
- data/app/assets/javascripts/gridx/nls/ja/{FilterBar.js → gridx.js} +77 -5
- data/app/assets/javascripts/gridx/nls/kk/{FilterBar.js → gridx.js} +76 -5
- data/app/assets/javascripts/gridx/nls/ko/{FilterBar.js → gridx.js} +81 -5
- data/app/assets/javascripts/gridx/nls/nb/{FilterBar.js → gridx.js} +77 -5
- data/app/assets/javascripts/gridx/nls/nl/{FilterBar.js → gridx.js} +77 -5
- data/app/assets/javascripts/gridx/nls/pl/{FilterBar.js → gridx.js} +77 -5
- data/app/assets/javascripts/gridx/nls/pt/{FilterBar.js → gridx.js} +71 -5
- data/app/assets/javascripts/gridx/nls/pt-pt/{FilterBar.js → gridx.js} +71 -5
- data/app/assets/javascripts/gridx/nls/ro/{FilterBar.js → gridx.js} +71 -5
- data/app/assets/javascripts/gridx/nls/ru/{FilterBar.js → gridx.js} +77 -5
- data/app/assets/javascripts/gridx/nls/sk/{FilterBar.js → gridx.js} +71 -5
- data/app/assets/javascripts/gridx/nls/sl/{FilterBar.js → gridx.js} +77 -5
- data/app/assets/javascripts/gridx/nls/sv/{FilterBar.js → gridx.js} +77 -5
- data/app/assets/javascripts/gridx/nls/th/{FilterBar.js → gridx.js} +77 -5
- data/app/assets/javascripts/gridx/nls/tr/{FilterBar.js → gridx.js} +77 -5
- data/app/assets/javascripts/gridx/nls/uk/{FilterBar.js → gridx.js} +71 -5
- data/app/assets/javascripts/gridx/nls/zh/{FilterBar.js → gridx.js} +77 -5
- data/app/assets/javascripts/gridx/nls/zh-tw/{FilterBar.js → gridx.js} +77 -5
- data/app/assets/javascripts/gridx/nls/zz-ZZ/gridx.js +173 -0
- data/app/assets/javascripts/gridx/support/DropDownPager.js +3 -5
- data/app/assets/javascripts/gridx/support/DropDownSizer.js +3 -5
- data/app/assets/javascripts/gridx/support/GotoPagePane.js +3 -5
- data/app/assets/javascripts/gridx/support/QuickFilter.js +3 -5
- data/app/assets/javascripts/gridx/support/Summary.js +32 -10
- data/app/assets/javascripts/gridx/support/_LinkPageBase.js +3 -5
- data/app/assets/javascripts/gridx/support/query.js +47 -0
- data/app/assets/javascripts/gridx/templates/FilterBar.html +1 -1
- data/app/assets/javascripts/gridx/templates/QuickFilter.html +3 -3
- data/app/assets/stylesheets/gridx/resources/Gridx.css +1 -10
- data/app/assets/stylesheets/gridx/resources/claro/Gridx.css +1 -16
- data/app/assets/stylesheets/gridx/resources/slantedHeader.css +90 -0
- data/lib/gridx-rails/version.rb +1 -1
- data/lib/tasks/gridx-rails_tasks.rake +1 -1
- data/test/dummy/log/test.log +5 -0
- metadata +52 -260
- 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/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/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/javascripts/gridx/core/model/cache/_Cache.js +0 -403
- data/app/assets/javascripts/gridx/core/util.js +0 -13
- data/app/assets/javascripts/gridx/modules/Printer.js +0 -49
- data/app/assets/javascripts/gridx/modules/TitleBar.js +0 -51
- data/app/assets/javascripts/gridx/modules/barPlugins/DropDownPager.js +0 -16
- data/app/assets/javascripts/gridx/modules/barPlugins/DropDownSizer.js +0 -16
- data/app/assets/javascripts/gridx/modules/barPlugins/GotoPageButton.js +0 -16
- data/app/assets/javascripts/gridx/modules/barPlugins/LinkPager.js +0 -16
- data/app/assets/javascripts/gridx/modules/barPlugins/LinkSizer.js +0 -16
- data/app/assets/javascripts/gridx/modules/barPlugins/Summary.js +0 -16
- data/app/assets/javascripts/gridx/modules/exporter/CSV.js +0 -43
- data/app/assets/javascripts/gridx/modules/exporter/Exporter.js +0 -34
- data/app/assets/javascripts/gridx/modules/exporter/Table.js +0 -42
- data/app/assets/javascripts/gridx/modules/filter/Filter.js +0 -16
- data/app/assets/javascripts/gridx/modules/pagination/Pagination.js +0 -16
- data/app/assets/javascripts/gridx/nls/Body.js +0 -47
- data/app/assets/javascripts/gridx/nls/NestedSort.js +0 -45
- data/app/assets/javascripts/gridx/nls/PaginationBar.js +0 -68
- data/app/assets/javascripts/gridx/nls/QuickFilter.js +0 -40
- data/app/assets/javascripts/gridx/nls/SummaryBar.js +0 -38
- data/app/assets/javascripts/gridx/nls/ar/Body.js +0 -11
- data/app/assets/javascripts/gridx/nls/ar/NestedSort.js +0 -11
- data/app/assets/javascripts/gridx/nls/ar/PaginationBar.js +0 -34
- data/app/assets/javascripts/gridx/nls/ar/QuickFilter.js +0 -7
- data/app/assets/javascripts/gridx/nls/ar/SummaryBar.js +0 -5
- data/app/assets/javascripts/gridx/nls/bg/Body.js +0 -11
- data/app/assets/javascripts/gridx/nls/bg/NestedSort.js +0 -12
- data/app/assets/javascripts/gridx/nls/bg/PaginationBar.js +0 -28
- data/app/assets/javascripts/gridx/nls/bg/QuickFilter.js +0 -8
- data/app/assets/javascripts/gridx/nls/bg/SummaryBar.js +0 -6
- data/app/assets/javascripts/gridx/nls/ca/Body.js +0 -11
- data/app/assets/javascripts/gridx/nls/ca/NestedSort.js +0 -13
- data/app/assets/javascripts/gridx/nls/ca/PaginationBar.js +0 -30
- data/app/assets/javascripts/gridx/nls/ca/QuickFilter.js +0 -9
- data/app/assets/javascripts/gridx/nls/ca/SummaryBar.js +0 -7
- data/app/assets/javascripts/gridx/nls/cs/Body.js +0 -11
- data/app/assets/javascripts/gridx/nls/cs/NestedSort.js +0 -11
- data/app/assets/javascripts/gridx/nls/cs/PaginationBar.js +0 -34
- data/app/assets/javascripts/gridx/nls/cs/QuickFilter.js +0 -7
- data/app/assets/javascripts/gridx/nls/cs/SummaryBar.js +0 -5
- data/app/assets/javascripts/gridx/nls/da/Body.js +0 -11
- data/app/assets/javascripts/gridx/nls/da/NestedSort.js +0 -11
- data/app/assets/javascripts/gridx/nls/da/PaginationBar.js +0 -34
- data/app/assets/javascripts/gridx/nls/da/QuickFilter.js +0 -7
- data/app/assets/javascripts/gridx/nls/da/SummaryBar.js +0 -5
- data/app/assets/javascripts/gridx/nls/de/Body.js +0 -11
- data/app/assets/javascripts/gridx/nls/de/NestedSort.js +0 -11
- data/app/assets/javascripts/gridx/nls/de/PaginationBar.js +0 -34
- data/app/assets/javascripts/gridx/nls/de/QuickFilter.js +0 -7
- data/app/assets/javascripts/gridx/nls/de/SummaryBar.js +0 -5
- data/app/assets/javascripts/gridx/nls/el/Body.js +0 -11
- data/app/assets/javascripts/gridx/nls/el/NestedSort.js +0 -11
- data/app/assets/javascripts/gridx/nls/el/PaginationBar.js +0 -34
- data/app/assets/javascripts/gridx/nls/el/QuickFilter.js +0 -7
- data/app/assets/javascripts/gridx/nls/el/SummaryBar.js +0 -5
- data/app/assets/javascripts/gridx/nls/es/Body.js +0 -11
- data/app/assets/javascripts/gridx/nls/es/NestedSort.js +0 -13
- data/app/assets/javascripts/gridx/nls/es/PaginationBar.js +0 -30
- data/app/assets/javascripts/gridx/nls/es/QuickFilter.js +0 -9
- data/app/assets/javascripts/gridx/nls/es/SummaryBar.js +0 -7
- data/app/assets/javascripts/gridx/nls/fi/Body.js +0 -11
- data/app/assets/javascripts/gridx/nls/fi/NestedSort.js +0 -11
- data/app/assets/javascripts/gridx/nls/fi/PaginationBar.js +0 -34
- data/app/assets/javascripts/gridx/nls/fi/QuickFilter.js +0 -7
- data/app/assets/javascripts/gridx/nls/fi/SummaryBar.js +0 -5
- data/app/assets/javascripts/gridx/nls/fr/Body.js +0 -11
- data/app/assets/javascripts/gridx/nls/fr/NestedSort.js +0 -11
- data/app/assets/javascripts/gridx/nls/fr/PaginationBar.js +0 -34
- data/app/assets/javascripts/gridx/nls/fr/QuickFilter.js +0 -7
- data/app/assets/javascripts/gridx/nls/fr/SummaryBar.js +0 -5
- data/app/assets/javascripts/gridx/nls/he/Body.js +0 -11
- data/app/assets/javascripts/gridx/nls/he/NestedSort.js +0 -11
- data/app/assets/javascripts/gridx/nls/he/PaginationBar.js +0 -34
- data/app/assets/javascripts/gridx/nls/he/QuickFilter.js +0 -6
- data/app/assets/javascripts/gridx/nls/he/SummaryBar.js +0 -5
- data/app/assets/javascripts/gridx/nls/hr/Body.js +0 -11
- data/app/assets/javascripts/gridx/nls/hr/NestedSort.js +0 -11
- data/app/assets/javascripts/gridx/nls/hr/PaginationBar.js +0 -34
- data/app/assets/javascripts/gridx/nls/hr/QuickFilter.js +0 -7
- data/app/assets/javascripts/gridx/nls/hr/SummaryBar.js +0 -5
- data/app/assets/javascripts/gridx/nls/hu/Body.js +0 -11
- data/app/assets/javascripts/gridx/nls/hu/NestedSort.js +0 -11
- data/app/assets/javascripts/gridx/nls/hu/PaginationBar.js +0 -33
- data/app/assets/javascripts/gridx/nls/hu/QuickFilter.js +0 -7
- data/app/assets/javascripts/gridx/nls/hu/SummaryBar.js +0 -5
- data/app/assets/javascripts/gridx/nls/it/Body.js +0 -11
- data/app/assets/javascripts/gridx/nls/it/NestedSort.js +0 -11
- data/app/assets/javascripts/gridx/nls/it/PaginationBar.js +0 -34
- data/app/assets/javascripts/gridx/nls/it/QuickFilter.js +0 -7
- data/app/assets/javascripts/gridx/nls/it/SummaryBar.js +0 -5
- data/app/assets/javascripts/gridx/nls/ja/Body.js +0 -11
- data/app/assets/javascripts/gridx/nls/ja/NestedSort.js +0 -11
- data/app/assets/javascripts/gridx/nls/ja/PaginationBar.js +0 -34
- data/app/assets/javascripts/gridx/nls/ja/QuickFilter.js +0 -7
- data/app/assets/javascripts/gridx/nls/ja/SummaryBar.js +0 -5
- data/app/assets/javascripts/gridx/nls/kk/Body.js +0 -11
- data/app/assets/javascripts/gridx/nls/kk/NestedSort.js +0 -13
- data/app/assets/javascripts/gridx/nls/kk/PaginationBar.js +0 -30
- data/app/assets/javascripts/gridx/nls/kk/QuickFilter.js +0 -9
- data/app/assets/javascripts/gridx/nls/kk/SummaryBar.js +0 -7
- data/app/assets/javascripts/gridx/nls/ko/Body.js +0 -11
- data/app/assets/javascripts/gridx/nls/ko/NestedSort.js +0 -11
- data/app/assets/javascripts/gridx/nls/ko/PaginationBar.js +0 -34
- data/app/assets/javascripts/gridx/nls/ko/QuickFilter.js +0 -7
- data/app/assets/javascripts/gridx/nls/ko/SummaryBar.js +0 -5
- data/app/assets/javascripts/gridx/nls/nb/Body.js +0 -11
- data/app/assets/javascripts/gridx/nls/nb/NestedSort.js +0 -11
- data/app/assets/javascripts/gridx/nls/nb/PaginationBar.js +0 -34
- data/app/assets/javascripts/gridx/nls/nb/QuickFilter.js +0 -7
- data/app/assets/javascripts/gridx/nls/nb/SummaryBar.js +0 -5
- data/app/assets/javascripts/gridx/nls/nl/Body.js +0 -11
- data/app/assets/javascripts/gridx/nls/nl/NestedSort.js +0 -11
- data/app/assets/javascripts/gridx/nls/nl/PaginationBar.js +0 -34
- data/app/assets/javascripts/gridx/nls/nl/QuickFilter.js +0 -7
- data/app/assets/javascripts/gridx/nls/nl/SummaryBar.js +0 -5
- data/app/assets/javascripts/gridx/nls/pl/Body.js +0 -11
- data/app/assets/javascripts/gridx/nls/pl/NestedSort.js +0 -11
- data/app/assets/javascripts/gridx/nls/pl/PaginationBar.js +0 -34
- data/app/assets/javascripts/gridx/nls/pl/QuickFilter.js +0 -7
- data/app/assets/javascripts/gridx/nls/pl/SummaryBar.js +0 -5
- data/app/assets/javascripts/gridx/nls/pt/Body.js +0 -11
- data/app/assets/javascripts/gridx/nls/pt/NestedSort.js +0 -13
- data/app/assets/javascripts/gridx/nls/pt/PaginationBar.js +0 -30
- data/app/assets/javascripts/gridx/nls/pt/QuickFilter.js +0 -9
- data/app/assets/javascripts/gridx/nls/pt/SummaryBar.js +0 -7
- data/app/assets/javascripts/gridx/nls/pt-br/Body.js +0 -6
- data/app/assets/javascripts/gridx/nls/pt-br/FilterBar.js +0 -89
- data/app/assets/javascripts/gridx/nls/pt-br/NestedSort.js +0 -11
- data/app/assets/javascripts/gridx/nls/pt-br/PaginationBar.js +0 -34
- data/app/assets/javascripts/gridx/nls/pt-br/QuickFilter.js +0 -7
- data/app/assets/javascripts/gridx/nls/pt-br/SummaryBar.js +0 -5
- data/app/assets/javascripts/gridx/nls/pt-pt/Body.js +0 -11
- data/app/assets/javascripts/gridx/nls/pt-pt/NestedSort.js +0 -13
- data/app/assets/javascripts/gridx/nls/pt-pt/PaginationBar.js +0 -30
- data/app/assets/javascripts/gridx/nls/pt-pt/QuickFilter.js +0 -9
- data/app/assets/javascripts/gridx/nls/pt-pt/SummaryBar.js +0 -7
- data/app/assets/javascripts/gridx/nls/ro/Body.js +0 -11
- data/app/assets/javascripts/gridx/nls/ro/NestedSort.js +0 -13
- data/app/assets/javascripts/gridx/nls/ro/PaginationBar.js +0 -30
- data/app/assets/javascripts/gridx/nls/ro/QuickFilter.js +0 -9
- data/app/assets/javascripts/gridx/nls/ro/SummaryBar.js +0 -7
- data/app/assets/javascripts/gridx/nls/ru/Body.js +0 -11
- data/app/assets/javascripts/gridx/nls/ru/NestedSort.js +0 -11
- data/app/assets/javascripts/gridx/nls/ru/PaginationBar.js +0 -34
- data/app/assets/javascripts/gridx/nls/ru/QuickFilter.js +0 -7
- data/app/assets/javascripts/gridx/nls/ru/SummaryBar.js +0 -5
- data/app/assets/javascripts/gridx/nls/sk/Body.js +0 -11
- data/app/assets/javascripts/gridx/nls/sk/NestedSort.js +0 -13
- data/app/assets/javascripts/gridx/nls/sk/PaginationBar.js +0 -30
- data/app/assets/javascripts/gridx/nls/sk/QuickFilter.js +0 -9
- data/app/assets/javascripts/gridx/nls/sk/SummaryBar.js +0 -7
- data/app/assets/javascripts/gridx/nls/sl/Body.js +0 -11
- data/app/assets/javascripts/gridx/nls/sl/NestedSort.js +0 -11
- data/app/assets/javascripts/gridx/nls/sl/PaginationBar.js +0 -34
- data/app/assets/javascripts/gridx/nls/sl/QuickFilter.js +0 -7
- data/app/assets/javascripts/gridx/nls/sl/SummaryBar.js +0 -5
- data/app/assets/javascripts/gridx/nls/sv/Body.js +0 -11
- data/app/assets/javascripts/gridx/nls/sv/NestedSort.js +0 -11
- data/app/assets/javascripts/gridx/nls/sv/PaginationBar.js +0 -34
- data/app/assets/javascripts/gridx/nls/sv/QuickFilter.js +0 -7
- data/app/assets/javascripts/gridx/nls/sv/SummaryBar.js +0 -5
- data/app/assets/javascripts/gridx/nls/th/Body.js +0 -11
- data/app/assets/javascripts/gridx/nls/th/NestedSort.js +0 -11
- data/app/assets/javascripts/gridx/nls/th/PaginationBar.js +0 -34
- data/app/assets/javascripts/gridx/nls/th/QuickFilter.js +0 -7
- data/app/assets/javascripts/gridx/nls/th/SummaryBar.js +0 -5
- data/app/assets/javascripts/gridx/nls/tr/Body.js +0 -11
- data/app/assets/javascripts/gridx/nls/tr/NestedSort.js +0 -11
- data/app/assets/javascripts/gridx/nls/tr/PaginationBar.js +0 -34
- data/app/assets/javascripts/gridx/nls/tr/QuickFilter.js +0 -7
- data/app/assets/javascripts/gridx/nls/tr/SummaryBar.js +0 -5
- data/app/assets/javascripts/gridx/nls/uk/Body.js +0 -11
- data/app/assets/javascripts/gridx/nls/uk/NestedSort.js +0 -12
- data/app/assets/javascripts/gridx/nls/uk/PaginationBar.js +0 -28
- data/app/assets/javascripts/gridx/nls/uk/QuickFilter.js +0 -8
- data/app/assets/javascripts/gridx/nls/uk/SummaryBar.js +0 -6
- data/app/assets/javascripts/gridx/nls/zh/Body.js +0 -11
- data/app/assets/javascripts/gridx/nls/zh/NestedSort.js +0 -11
- data/app/assets/javascripts/gridx/nls/zh/PaginationBar.js +0 -34
- data/app/assets/javascripts/gridx/nls/zh/QuickFilter.js +0 -7
- data/app/assets/javascripts/gridx/nls/zh/SummaryBar.js +0 -5
- data/app/assets/javascripts/gridx/nls/zh-tw/Body.js +0 -11
- data/app/assets/javascripts/gridx/nls/zh-tw/NestedSort.js +0 -11
- data/app/assets/javascripts/gridx/nls/zh-tw/PaginationBar.js +0 -34
- data/app/assets/javascripts/gridx/nls/zh-tw/QuickFilter.js +0 -7
- data/app/assets/javascripts/gridx/nls/zh-tw/SummaryBar.js +0 -5
- data/app/assets/stylesheets/gridx/resources/Dod.css +0 -39
- data/app/assets/stylesheets/gridx/resources/Gridx_rtl.css +0 -5
- data/app/assets/stylesheets/gridx/resources/Tree.css +0 -46
- data/app/assets/stylesheets/gridx/resources/Tree_rtl.css +0 -4
- data/app/assets/stylesheets/gridx/resources/bar.css +0 -24
- data/app/assets/stylesheets/gridx/resources/basic.css +0 -482
- data/app/assets/stylesheets/gridx/resources/basic_rtl.css +0 -37
- data/app/assets/stylesheets/gridx/resources/claro/Gridx_rtl.css +0 -7
- data/app/assets/stylesheets/gridx/resources/claro/basic.css +0 -109
- data/app/assets/stylesheets/gridx/resources/claro/basic_rtl.css +0 -21
- data/app/assets/stylesheets/gridx/resources/claro/filter.css +0 -47
- data/app/assets/stylesheets/gridx/resources/claro/lock.css +0 -19
- data/app/assets/stylesheets/gridx/resources/claro/pagination.css +0 -33
- data/app/assets/stylesheets/gridx/resources/claro/select.css +0 -20
- data/app/assets/stylesheets/gridx/resources/dnd.css +0 -108
- data/app/assets/stylesheets/gridx/resources/filter.css +0 -321
- data/app/assets/stylesheets/gridx/resources/filter_rtl.css +0 -38
- data/app/assets/stylesheets/gridx/resources/lock.css +0 -20
- data/app/assets/stylesheets/gridx/resources/pagination.css +0 -142
- data/app/assets/stylesheets/gridx/resources/pagination_rtl.css +0 -54
- data/app/assets/stylesheets/gridx/resources/select.css +0 -39
- data/app/assets/stylesheets/gridx/resources/sort.css +0 -154
- data/app/assets/stylesheets/gridx/resources/sort_rtl.css +0 -51
|
@@ -1,403 +0,0 @@
|
|
|
1
|
-
define([
|
|
2
|
-
'dojo/_base/declare',
|
|
3
|
-
'dojo/_base/array',
|
|
4
|
-
'dojo/_base/lang',
|
|
5
|
-
'dojo/_base/Deferred',
|
|
6
|
-
'../_Extension'
|
|
7
|
-
], function(declare, array, lang, Deferred, _Extension){
|
|
8
|
-
|
|
9
|
-
/*=====
|
|
10
|
-
return declare(_Extension, function(){
|
|
11
|
-
// summary:
|
|
12
|
-
// Abstract base cache class, providing cache data structure and some common cache functions.
|
|
13
|
-
});
|
|
14
|
-
=====*/
|
|
15
|
-
|
|
16
|
-
var hitch = lang.hitch,
|
|
17
|
-
mixin = lang.mixin,
|
|
18
|
-
indexOf = array.indexOf;
|
|
19
|
-
|
|
20
|
-
return declare(_Extension, {
|
|
21
|
-
constructor: function(model, args){
|
|
22
|
-
var t = this;
|
|
23
|
-
t.setStore(args.store);
|
|
24
|
-
t.columns = lang.mixin({}, args._columnsById);
|
|
25
|
-
t._mixinAPI('byIndex', 'byId', 'indexToId', 'idToIndex', 'size', 'treePath', 'rootId', 'parentId',
|
|
26
|
-
'hasChildren', 'children', 'keep', 'free');
|
|
27
|
-
},
|
|
28
|
-
|
|
29
|
-
destroy: function(){
|
|
30
|
-
this.inherited(arguments);
|
|
31
|
-
this.clear();
|
|
32
|
-
},
|
|
33
|
-
|
|
34
|
-
setStore: function(store){
|
|
35
|
-
var t = this,
|
|
36
|
-
c = 'aspect',
|
|
37
|
-
old = store.fetch;
|
|
38
|
-
//Disconnect store events.
|
|
39
|
-
t.destroy();
|
|
40
|
-
t._cnnts = [];
|
|
41
|
-
t.store = store;
|
|
42
|
-
if(!old && store.notify){
|
|
43
|
-
//The store implements the dojo.store.Observable API
|
|
44
|
-
t[c](store, 'notify', function(item, id){
|
|
45
|
-
if(item === undefined){
|
|
46
|
-
t._onDelete(id);
|
|
47
|
-
}else if(id === undefined){
|
|
48
|
-
t._onNew(item);
|
|
49
|
-
}else{
|
|
50
|
-
t._onSet(item);
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
}else{
|
|
54
|
-
t[c](store, old ? "onSet" : "put", "_onSet");
|
|
55
|
-
t[c](store, old ? "onNew" : "add", "_onNew");
|
|
56
|
-
t[c](store, old ? "onDelete" : "remove", "_onDelete");
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
|
|
60
|
-
//Public----------------------------------------------
|
|
61
|
-
clear: function(){
|
|
62
|
-
var t = this;
|
|
63
|
-
t._filled = 0;
|
|
64
|
-
t._priority = [];
|
|
65
|
-
t._struct = {};
|
|
66
|
-
t._cache = {};
|
|
67
|
-
t._size = {};
|
|
68
|
-
//virtual root node, with id ''.
|
|
69
|
-
t._struct[''] = [];
|
|
70
|
-
t._size[''] = -1;
|
|
71
|
-
t.totalSize = undefined;
|
|
72
|
-
},
|
|
73
|
-
|
|
74
|
-
byIndex: function(index, parentId){
|
|
75
|
-
this._init('byIndex', arguments);
|
|
76
|
-
return this._cache[this.indexToId(index, parentId)];
|
|
77
|
-
},
|
|
78
|
-
|
|
79
|
-
byId: function(id){
|
|
80
|
-
this._init('byId', arguments);
|
|
81
|
-
return this._cache[id];
|
|
82
|
-
},
|
|
83
|
-
|
|
84
|
-
indexToId: function(index, parentId){
|
|
85
|
-
this._init('indexToId', arguments);
|
|
86
|
-
var items = this._struct[this.model.isId(parentId) ? parentId : ''];
|
|
87
|
-
return typeof index == 'number' && index >= 0 ? items && items[index + 1] : undefined;
|
|
88
|
-
},
|
|
89
|
-
|
|
90
|
-
idToIndex: function(id){
|
|
91
|
-
this._init('idToIndex', arguments);
|
|
92
|
-
var s = this._struct,
|
|
93
|
-
pid = s[id] && s[id][0],
|
|
94
|
-
index = indexOf(s[pid] || [], id);
|
|
95
|
-
return index > 0 ? index - 1 : -1;
|
|
96
|
-
},
|
|
97
|
-
|
|
98
|
-
treePath: function(id){
|
|
99
|
-
this._init('treePath', arguments);
|
|
100
|
-
var s = this._struct,
|
|
101
|
-
path = [];
|
|
102
|
-
while(id !== undefined){
|
|
103
|
-
path.unshift(id);
|
|
104
|
-
id = s[id] && s[id][0];
|
|
105
|
-
}
|
|
106
|
-
if(path[0] !== ''){
|
|
107
|
-
path = [];
|
|
108
|
-
}else{
|
|
109
|
-
path.pop();
|
|
110
|
-
}
|
|
111
|
-
return path;
|
|
112
|
-
},
|
|
113
|
-
|
|
114
|
-
rootId: function(id){
|
|
115
|
-
var path = this.treePath(id);
|
|
116
|
-
if(path.length > 1){
|
|
117
|
-
return path[1];
|
|
118
|
-
}else if(!path.length){
|
|
119
|
-
return null;
|
|
120
|
-
}
|
|
121
|
-
return id;
|
|
122
|
-
},
|
|
123
|
-
|
|
124
|
-
parentId: function(id){
|
|
125
|
-
return this.treePath(id).pop();
|
|
126
|
-
},
|
|
127
|
-
|
|
128
|
-
hasChildren: function(id){
|
|
129
|
-
var t = this,
|
|
130
|
-
s = t.store,
|
|
131
|
-
c;
|
|
132
|
-
t._init('hasChildren', arguments);
|
|
133
|
-
c = t.byId(id);
|
|
134
|
-
return s.hasChildren && s.hasChildren(id, c && c.item) && s.getChildren;
|
|
135
|
-
},
|
|
136
|
-
|
|
137
|
-
children: function(parentId){
|
|
138
|
-
this._init('children', arguments);
|
|
139
|
-
parentId = this.model.isId(parentId) ? parentId : '';
|
|
140
|
-
var size = this._size[parentId],
|
|
141
|
-
children = [],
|
|
142
|
-
i = 0;
|
|
143
|
-
for(; i < size; ++i){
|
|
144
|
-
children.push(this.indexToId(i, parentId));
|
|
145
|
-
}
|
|
146
|
-
return children;
|
|
147
|
-
},
|
|
148
|
-
|
|
149
|
-
size: function(parentId){
|
|
150
|
-
this._init('size', arguments);
|
|
151
|
-
var s = this._size[this.model.isId(parentId) ? parentId : ''];
|
|
152
|
-
return s >= 0 ? s : -1;
|
|
153
|
-
},
|
|
154
|
-
|
|
155
|
-
//Events--------------------------------------------
|
|
156
|
-
onBeforeFetch: function(){},
|
|
157
|
-
onAfterFetch: function(){},
|
|
158
|
-
onLoadRow: function(){},
|
|
159
|
-
|
|
160
|
-
onSetColumns: function(columns){
|
|
161
|
-
var t = this, id, c, colId, col;
|
|
162
|
-
t.columns = lang.mixin({}, columns);
|
|
163
|
-
for(id in t._cache){
|
|
164
|
-
c = t._cache[id];
|
|
165
|
-
for(colId in columns){
|
|
166
|
-
col = columns[colId];
|
|
167
|
-
c.data[colId] = t._formatCell(c.rawData, id, col.id);
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
},
|
|
171
|
-
|
|
172
|
-
//Protected-----------------------------------------
|
|
173
|
-
_itemToObject: function(item){
|
|
174
|
-
var s = this.store,
|
|
175
|
-
obj = {};
|
|
176
|
-
if(s.fetch){
|
|
177
|
-
array.forEach(s.getAttributes(item), function(attr){
|
|
178
|
-
obj[attr] = s.getValue(item, attr);
|
|
179
|
-
});
|
|
180
|
-
return obj;
|
|
181
|
-
}
|
|
182
|
-
return item;
|
|
183
|
-
},
|
|
184
|
-
|
|
185
|
-
_formatCell: function(rawData, rowId, colId){
|
|
186
|
-
var col = this.columns[colId];
|
|
187
|
-
return col.formatter ? col.formatter(rawData, rowId) : rawData[col.field || colId];
|
|
188
|
-
},
|
|
189
|
-
|
|
190
|
-
_formatRow: function(rowData, rowId){
|
|
191
|
-
var cols = this.columns, res = {}, colId;
|
|
192
|
-
for(colId in cols){
|
|
193
|
-
res[colId] = this._formatCell(rowData, rowId, colId);
|
|
194
|
-
}
|
|
195
|
-
return res;
|
|
196
|
-
},
|
|
197
|
-
|
|
198
|
-
_addRow: function(id, index, rowData, item, parentId){
|
|
199
|
-
var t = this,
|
|
200
|
-
st = t._struct,
|
|
201
|
-
pr = t._priority,
|
|
202
|
-
pid = t.model.isId(parentId) ? parentId : '',
|
|
203
|
-
ids = st[pid],
|
|
204
|
-
i;
|
|
205
|
-
if(!ids){
|
|
206
|
-
throw new Error("Fatal error of _Cache._addRow: parent item " + pid + " of " + id + " is not loaded");
|
|
207
|
-
}
|
|
208
|
-
var oldId = ids[index + 1];
|
|
209
|
-
if(t.model.isId(oldId) && oldId !== id){
|
|
210
|
-
console.error("Error of _Cache._addRow: different row id " + id + " and " + ids[index + 1] + " for same row index " + index);
|
|
211
|
-
}
|
|
212
|
-
ids[index + 1] = id;
|
|
213
|
-
st[id] = st[id] || [pid];
|
|
214
|
-
if(pid === ''){
|
|
215
|
-
i = indexOf(pr, id);
|
|
216
|
-
if(i >= 0){
|
|
217
|
-
pr.splice(i, 1);
|
|
218
|
-
}
|
|
219
|
-
pr.push(id);
|
|
220
|
-
}
|
|
221
|
-
t._cache[id] = {
|
|
222
|
-
data: t._formatRow(rowData, id),
|
|
223
|
-
rawData: rowData,
|
|
224
|
-
item: item
|
|
225
|
-
};
|
|
226
|
-
t.onLoadRow(id);
|
|
227
|
-
},
|
|
228
|
-
|
|
229
|
-
_storeFetch: function(options, onFetched){
|
|
230
|
-
// console.debug("\tFETCH parent: ",
|
|
231
|
-
// options.parentId, ", start: ",
|
|
232
|
-
// options.start || 0, ", count: ",
|
|
233
|
-
// options.count, ", end: ",
|
|
234
|
-
// options.count && (options.start || 0) + options.count - 1, ", options:",
|
|
235
|
-
// this.options);
|
|
236
|
-
|
|
237
|
-
var t = this,
|
|
238
|
-
s = t.store,
|
|
239
|
-
d = new Deferred(),
|
|
240
|
-
parentId = t.model.isId(options.parentId) ? options.parentId : '',
|
|
241
|
-
req = mixin({}, t.options || {}, options),
|
|
242
|
-
onError = hitch(d, d.errback),
|
|
243
|
-
results;
|
|
244
|
-
function onBegin(size){
|
|
245
|
-
t._size[parentId] = parseInt(size, 10);
|
|
246
|
-
}
|
|
247
|
-
function onComplete(items){
|
|
248
|
-
//FIXME: store does not support getting total size after filter/query, so we must change the protocal a little.
|
|
249
|
-
if(items.ioArgs && items.ioArgs.xhr){
|
|
250
|
-
var range = results.ioArgs.xhr.getResponseHeader("Content-Range");
|
|
251
|
-
if(range && (range = range.match(/(.+)\//))){
|
|
252
|
-
t.totalSize = +range[1];
|
|
253
|
-
}else{
|
|
254
|
-
t.totalSize = undefined;
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
try{
|
|
258
|
-
var start = options.start || 0,
|
|
259
|
-
i = 0,
|
|
260
|
-
item;
|
|
261
|
-
for(; item = items[i]; ++i){
|
|
262
|
-
t._addRow(s.getIdentity(item), start + i, t._itemToObject(item), item, parentId);
|
|
263
|
-
}
|
|
264
|
-
d.callback();
|
|
265
|
-
}catch(e){
|
|
266
|
-
d.errback(e);
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
t._filled = 1;
|
|
270
|
-
t.onBeforeFetch(req);
|
|
271
|
-
if(parentId === ''){
|
|
272
|
-
if(s.fetch){
|
|
273
|
-
s.fetch(mixin(req, {
|
|
274
|
-
onBegin: onBegin,
|
|
275
|
-
onComplete: onComplete,
|
|
276
|
-
onError: onError
|
|
277
|
-
}));
|
|
278
|
-
}else{
|
|
279
|
-
results = s.query(req.query || {}, req);
|
|
280
|
-
Deferred.when(results.total, onBegin);
|
|
281
|
-
Deferred.when(results, onComplete, onError);
|
|
282
|
-
}
|
|
283
|
-
}else if(t.hasChildren(parentId)){
|
|
284
|
-
results = s.getChildren(t.byId(parentId).item, req);
|
|
285
|
-
if('total' in results){
|
|
286
|
-
Deferred.when(results.total, onBegin);
|
|
287
|
-
}else{
|
|
288
|
-
Deferred.when(results, function(results){
|
|
289
|
-
onBegin(results.length);
|
|
290
|
-
});
|
|
291
|
-
}
|
|
292
|
-
Deferred.when(results, onComplete, onError);
|
|
293
|
-
}else{
|
|
294
|
-
d.callback();
|
|
295
|
-
}
|
|
296
|
-
d.then(function(){
|
|
297
|
-
t.onAfterFetch();
|
|
298
|
-
});
|
|
299
|
-
return d;
|
|
300
|
-
},
|
|
301
|
-
|
|
302
|
-
//--------------------------------------------------------------------------
|
|
303
|
-
_onSet: function(item){
|
|
304
|
-
var t = this,
|
|
305
|
-
id = t.store.getIdentity(item),
|
|
306
|
-
index = t.idToIndex(id),
|
|
307
|
-
path = t.treePath(id),
|
|
308
|
-
old = t._cache[id];
|
|
309
|
-
if(path.length){
|
|
310
|
-
t._addRow(id, index, t._itemToObject(item), item, path.pop());
|
|
311
|
-
}
|
|
312
|
-
t.onSet(id, index, t._cache[id], old);
|
|
313
|
-
},
|
|
314
|
-
|
|
315
|
-
_onNew: function(item, parentInfo){
|
|
316
|
-
var t = this,
|
|
317
|
-
s = t.store,
|
|
318
|
-
row = t._itemToObject(item),
|
|
319
|
-
parentItem = parentInfo && parentInfo[s.fetch ? 'item' : 'parent'],
|
|
320
|
-
parentId = parentItem ? s.getIdentity(parentItem) : '',
|
|
321
|
-
id = s.getIdentity(item),
|
|
322
|
-
size = t._size[''];
|
|
323
|
-
t.clear();
|
|
324
|
-
t.onNew(id, 0, {
|
|
325
|
-
data: t._formatRow(row, id),
|
|
326
|
-
rawData: row,
|
|
327
|
-
item: item
|
|
328
|
-
});
|
|
329
|
-
if(!parentItem && size >= 0){
|
|
330
|
-
t._size[''] = size + 1;
|
|
331
|
-
if(t.totalSize >= 0){
|
|
332
|
-
t.totalSize = size + 1;
|
|
333
|
-
}
|
|
334
|
-
t.model._onSizeChange();
|
|
335
|
-
}
|
|
336
|
-
},
|
|
337
|
-
|
|
338
|
-
_onDelete: function(item){
|
|
339
|
-
var t = this,
|
|
340
|
-
s = t.store,
|
|
341
|
-
st = t._struct,
|
|
342
|
-
id = s.fetch ? s.getIdentity(item) : item,
|
|
343
|
-
path = t.treePath(id);
|
|
344
|
-
if(path.length){
|
|
345
|
-
var children, i, j,
|
|
346
|
-
ids = [id],
|
|
347
|
-
parentId = path[path.length - 1],
|
|
348
|
-
sz = t._size,
|
|
349
|
-
size = sz[''],
|
|
350
|
-
index = indexOf(st[parentId], id);
|
|
351
|
-
//This must exist, because we've already have treePath
|
|
352
|
-
st[parentId].splice(index, 1);
|
|
353
|
-
--sz[parentId];
|
|
354
|
-
|
|
355
|
-
for(i = 0; i < ids.length; ++i){
|
|
356
|
-
children = st[ids[i]];
|
|
357
|
-
if(children){
|
|
358
|
-
for(j = children.length - 1; j > 0; --j){
|
|
359
|
-
ids.push(children[j]);
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
for(i = ids.length - 1; i >= 0; --i){
|
|
364
|
-
j = ids[i];
|
|
365
|
-
delete t._cache[j];
|
|
366
|
-
delete st[j];
|
|
367
|
-
delete sz[j];
|
|
368
|
-
}
|
|
369
|
-
i = indexOf(t._priority, id);
|
|
370
|
-
if(i >= 0){
|
|
371
|
-
t._priority.splice(i, 1);
|
|
372
|
-
}
|
|
373
|
-
t.onDelete(id, index - 1, path);
|
|
374
|
-
if(!parentId && size >= 0){
|
|
375
|
-
sz[''] = size - 1;
|
|
376
|
-
if(t.totalSize >= 0){
|
|
377
|
-
t.totalSize = size - 1;
|
|
378
|
-
}
|
|
379
|
-
t.model._onSizeChange();
|
|
380
|
-
}
|
|
381
|
-
}else{
|
|
382
|
-
//FIXME: Don't know what to do if the deleted row was not loaded.
|
|
383
|
-
t.clear();
|
|
384
|
-
t.onDelete(id);
|
|
385
|
-
// var onBegin = hitch(t, _onBegin),
|
|
386
|
-
// req = mixin({}, t.options || {}, {
|
|
387
|
-
// start: 0,
|
|
388
|
-
// count: 1
|
|
389
|
-
// });
|
|
390
|
-
// setTimeout(function(){
|
|
391
|
-
// if(s.fetch){
|
|
392
|
-
// s.fetch(mixin(req, {
|
|
393
|
-
// onBegin: onBegin
|
|
394
|
-
// }));
|
|
395
|
-
// }else{
|
|
396
|
-
// var results = s.query(req.query, req);
|
|
397
|
-
// Deferred.when(results.total, onBegin);
|
|
398
|
-
// }
|
|
399
|
-
// }, 10);
|
|
400
|
-
}
|
|
401
|
-
}
|
|
402
|
-
});
|
|
403
|
-
});
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
define({
|
|
2
|
-
biSearch: function(arr, comp){
|
|
3
|
-
var i = 0, j = arr.length, k;
|
|
4
|
-
for(k = Math.floor((i + j) / 2); i + 1 < j; k = Math.floor((i + j) / 2)){
|
|
5
|
-
if(comp(arr[k]) > 0){
|
|
6
|
-
j = k;
|
|
7
|
-
}else{
|
|
8
|
-
i = k;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
return arr.length && comp(arr[i]) >= 0 ? i : j;
|
|
12
|
-
}
|
|
13
|
-
});
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
define([
|
|
2
|
-
"dojo/_base/kernel",
|
|
3
|
-
"../core/_Module",
|
|
4
|
-
"dojo/_base/declare",
|
|
5
|
-
"../support/printer"
|
|
6
|
-
], function(kernel, _Module, declare, printer){
|
|
7
|
-
kernel.deprecated('gridx/modules/Printer is deprecated.', 'Please use gridx/support/printer instead.', '1.3');
|
|
8
|
-
|
|
9
|
-
/*=====
|
|
10
|
-
return declare(_Module, {
|
|
11
|
-
// summary:
|
|
12
|
-
// This module provides the API to print grid contents or provide print preview
|
|
13
|
-
// description:
|
|
14
|
-
// Deprecated. Please use gridx/support/printer instead.
|
|
15
|
-
// tags:
|
|
16
|
-
// deprecated
|
|
17
|
-
|
|
18
|
-
print: function(args){
|
|
19
|
-
// summary:
|
|
20
|
-
// Print grid contents.
|
|
21
|
-
// args: __PrinterArgs
|
|
22
|
-
// Printer args
|
|
23
|
-
// returns:
|
|
24
|
-
// A deferred object indicating when the export process is completed.
|
|
25
|
-
},
|
|
26
|
-
|
|
27
|
-
toHTML: function(args){
|
|
28
|
-
// summary
|
|
29
|
-
// Export to printable html, used for preview
|
|
30
|
-
// args: __PrinterArgs
|
|
31
|
-
// Printer args
|
|
32
|
-
// returns:
|
|
33
|
-
// A deferred object indicating when the export process is completed.
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
=====*/
|
|
37
|
-
|
|
38
|
-
return declare(_Module, {
|
|
39
|
-
name: 'printer',
|
|
40
|
-
|
|
41
|
-
print: function(args){
|
|
42
|
-
return printer(this.grid, args);
|
|
43
|
-
},
|
|
44
|
-
|
|
45
|
-
toHTML: function(args){
|
|
46
|
-
return printer.toHTML(this.grid, args);
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
});
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
define([
|
|
2
|
-
"dojo/_base/kernel",
|
|
3
|
-
"dojo/_base/declare",
|
|
4
|
-
"dojo/dom-construct",
|
|
5
|
-
"../core/_Module"
|
|
6
|
-
], function(kernel, declare, domConstruct, _Module){
|
|
7
|
-
kernel.deprecated('TitleBar is deprecated', 'Use Bar module instead', '1.3');
|
|
8
|
-
|
|
9
|
-
/*=====
|
|
10
|
-
return declare(_Module, {
|
|
11
|
-
// summary:
|
|
12
|
-
// Add title bar for grid.
|
|
13
|
-
// tags:
|
|
14
|
-
// deprecated. Use Bar module instead.
|
|
15
|
-
|
|
16
|
-
// label: String
|
|
17
|
-
label: '',
|
|
18
|
-
|
|
19
|
-
setLabel: function(){
|
|
20
|
-
// summary:
|
|
21
|
-
// TODOC
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
=====*/
|
|
25
|
-
|
|
26
|
-
return declare(_Module, {
|
|
27
|
-
name: 'titleBar',
|
|
28
|
-
|
|
29
|
-
constructor: function(){
|
|
30
|
-
this.domNode = domConstruct.create('div', {
|
|
31
|
-
'class': 'gridxTitleBar',
|
|
32
|
-
innerHTML: this.arg('label')
|
|
33
|
-
});
|
|
34
|
-
},
|
|
35
|
-
|
|
36
|
-
preload: function(){
|
|
37
|
-
this.grid.vLayout.register(this, 'domNode', 'headerNode', -15);
|
|
38
|
-
},
|
|
39
|
-
|
|
40
|
-
destroy: function(){
|
|
41
|
-
this.inherited(arguments);
|
|
42
|
-
domConstruct.destroy(this.domNode);
|
|
43
|
-
},
|
|
44
|
-
|
|
45
|
-
label: '',
|
|
46
|
-
|
|
47
|
-
setLabel: function(label){
|
|
48
|
-
this.domNode.innerHTML = this.label = label;
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
});
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
define([
|
|
2
|
-
/*====='dojo/_base/declare',=====*/
|
|
3
|
-
"dojo/_base/kernel",
|
|
4
|
-
"../../support/DropDownPager"
|
|
5
|
-
], function(/*=====declare, =====*/kernel, widget){
|
|
6
|
-
kernel.deprecated('DropDownPager is moved from gridx/modules/barPlugins/ to gridx/support/.', 'Please use the new path.', '1.3');
|
|
7
|
-
|
|
8
|
-
/*=====
|
|
9
|
-
return declare([], {
|
|
10
|
-
// summary:
|
|
11
|
-
// Moved to gridx/support/DropDownPager. This path is deprecated.
|
|
12
|
-
});
|
|
13
|
-
=====*/
|
|
14
|
-
|
|
15
|
-
return widget;
|
|
16
|
-
});
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
define([
|
|
2
|
-
/*====='dojo/_base/declare',=====*/
|
|
3
|
-
"dojo/_base/kernel",
|
|
4
|
-
"../../support/DropDownSizer"
|
|
5
|
-
], function(/*=====declare, =====*/kernel, Sizer){
|
|
6
|
-
kernel.deprecated('DropDownSizer is moved from gridx/modules/barPlugins/ to gridx/support/.', 'Please use the new path.', '1.3');
|
|
7
|
-
|
|
8
|
-
/*=====
|
|
9
|
-
return declare([], {
|
|
10
|
-
// summary:
|
|
11
|
-
// Moved to gridx/support/DropDownSizer. This path is deprecated.
|
|
12
|
-
});
|
|
13
|
-
=====*/
|
|
14
|
-
|
|
15
|
-
return Sizer;
|
|
16
|
-
});
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
define([
|
|
2
|
-
/*====='dojo/_base/declare',=====*/
|
|
3
|
-
"dojo/_base/kernel",
|
|
4
|
-
"../../support/GotoPageButton"
|
|
5
|
-
], function(/*=====declare, =====*/kernel, widget){
|
|
6
|
-
kernel.deprecated('GotoPageButton is moved from gridx/modules/barPlugins/ to gridx/support/.', 'Please use the new path.', '1.3');
|
|
7
|
-
|
|
8
|
-
/*=====
|
|
9
|
-
return declare([], {
|
|
10
|
-
// summary:
|
|
11
|
-
// Moved to gridx/support/GotoPageButton. This path is deprecated.
|
|
12
|
-
});
|
|
13
|
-
=====*/
|
|
14
|
-
|
|
15
|
-
return widget;
|
|
16
|
-
});
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
define([
|
|
2
|
-
/*====='dojo/_base/declare',=====*/
|
|
3
|
-
"dojo/_base/kernel",
|
|
4
|
-
"../../support/LinkPager"
|
|
5
|
-
], function(/*=====declare, =====*/kernel, widget){
|
|
6
|
-
kernel.deprecated('LinkPager is moved from gridx/modules/barPlugins/ to gridx/support/.', 'Please use the new path.', '1.3');
|
|
7
|
-
|
|
8
|
-
/*=====
|
|
9
|
-
return declare([], {
|
|
10
|
-
// summary:
|
|
11
|
-
// Moved to gridx/support/LinkPager. This path is deprecated.
|
|
12
|
-
});
|
|
13
|
-
=====*/
|
|
14
|
-
|
|
15
|
-
return widget;
|
|
16
|
-
});
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
define([
|
|
2
|
-
/*====='dojo/_base/declare',=====*/
|
|
3
|
-
"dojo/_base/kernel",
|
|
4
|
-
"../../support/LinkSizer"
|
|
5
|
-
], function(/*=====declare, =====*/kernel, widget){
|
|
6
|
-
kernel.deprecated('LinkSizer is moved from gridx/modules/barPlugins/ to gridx/support/.', 'Please use the new path.', '1.3');
|
|
7
|
-
|
|
8
|
-
/*=====
|
|
9
|
-
return declare([], {
|
|
10
|
-
// summary:
|
|
11
|
-
// Moved to gridx/support/LinkSizer. This path is deprecated.
|
|
12
|
-
});
|
|
13
|
-
=====*/
|
|
14
|
-
|
|
15
|
-
return widget;
|
|
16
|
-
});
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
define([
|
|
2
|
-
/*====='dojo/_base/declare',=====*/
|
|
3
|
-
"dojo/_base/kernel",
|
|
4
|
-
"../../support/Summary"
|
|
5
|
-
], function(/*=====declare, =====*/kernel, widget){
|
|
6
|
-
kernel.deprecated('Summary is moved from gridx/modules/barPlugins/ to gridx/support/.', 'Please use the new path.', '1.3');
|
|
7
|
-
|
|
8
|
-
/*=====
|
|
9
|
-
return declare([], {
|
|
10
|
-
// summary:
|
|
11
|
-
// Moved to gridx/support/Summary. This path is deprecated.
|
|
12
|
-
});
|
|
13
|
-
=====*/
|
|
14
|
-
|
|
15
|
-
return widget;
|
|
16
|
-
});
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
define([
|
|
2
|
-
"dojo/_base/kernel",
|
|
3
|
-
"dojo/_base/declare",
|
|
4
|
-
"../../core/_Module",
|
|
5
|
-
/*====="./Exporter",=====*/
|
|
6
|
-
"../../support/exporter/toCSV"
|
|
7
|
-
], function(kernel, declare, _Module, /*=====Exporter,=====*/ exportToCSV){
|
|
8
|
-
kernel.deprecated('gridx/modules/exporter/CSV is deprecated.', 'Use gridx/support/exporter/toCSV instead.', '1.3');
|
|
9
|
-
|
|
10
|
-
/*=====
|
|
11
|
-
Exporter.toCSV = function(args){
|
|
12
|
-
// summary:
|
|
13
|
-
// Export the grid contents to CSV according to the given args.
|
|
14
|
-
// This method should be called through grid.exporter.toCSV();
|
|
15
|
-
// args: __CSVExportArgs?
|
|
16
|
-
// The args to configure the export result and the export process.
|
|
17
|
-
// returns:
|
|
18
|
-
// A deferred object indicating when the export process is completed,
|
|
19
|
-
// and then pass the exported CSV string to callbacks.
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
return declare(_Module, {
|
|
23
|
-
// summary:
|
|
24
|
-
// This module provides the API to export grid contents to CSV format string
|
|
25
|
-
// This module is deprecated. Use gridx/support/exporter/toCSV instead.
|
|
26
|
-
});
|
|
27
|
-
=====*/
|
|
28
|
-
|
|
29
|
-
return declare(_Module, {
|
|
30
|
-
name: 'exportCsv',
|
|
31
|
-
|
|
32
|
-
getAPIPath: function(){
|
|
33
|
-
var grid = this.grid;
|
|
34
|
-
return {
|
|
35
|
-
exporter: {
|
|
36
|
-
toCSV: function(args){
|
|
37
|
-
return exportToCSV(grid, args || {});
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
});
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
define([
|
|
2
|
-
"dojo/_base/kernel",
|
|
3
|
-
"dojo/_base/declare",
|
|
4
|
-
"../../core/_Module",
|
|
5
|
-
"../../support/exporter/exporter"
|
|
6
|
-
], function(kernel, declare, _Module, exporter){
|
|
7
|
-
kernel.deprecated('gridx/modules/exporter/Exporter is deprecated.', 'Use gridx/support/exporter/exporter instead.', '1.3');
|
|
8
|
-
|
|
9
|
-
/*=====
|
|
10
|
-
return declare(_Module, {
|
|
11
|
-
// summary:
|
|
12
|
-
// Deprecated. Use gridx/support/exporter/exporter instead.
|
|
13
|
-
|
|
14
|
-
_export: function(writer, args){
|
|
15
|
-
// summary:
|
|
16
|
-
// Go through the grid using the given args and writer implementation.
|
|
17
|
-
// Return a dojo.Deferred object. Users can cancel and see progress
|
|
18
|
-
// of the exporting process.
|
|
19
|
-
// Pass the exported result to the callback function of the Deferred object.
|
|
20
|
-
// tags:
|
|
21
|
-
// private
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
=====*/
|
|
25
|
-
|
|
26
|
-
return _Module.register(
|
|
27
|
-
declare(_Module, {
|
|
28
|
-
name: 'exporter',
|
|
29
|
-
|
|
30
|
-
_export: function(writer, /* __ExportArgs */ args){
|
|
31
|
-
return exporter(this.grid, writer, args);
|
|
32
|
-
}
|
|
33
|
-
}));
|
|
34
|
-
});
|