Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Enhancements for ember 4 #31

Open
wants to merge 56 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
a8ea4ae
Conversion of data-table component
madnificent Jan 22, 2022
e42c8d1
Working version of pagination component
madnificent Jan 22, 2022
891d580
Implementation of DataTableContent up to ThSortable
madnificent Jan 22, 2022
15208f5
Upgrades rendering of data table content
madnificent Jan 22, 2022
42fff8a
Upgrade search to Ember 4
madnificent Jan 22, 2022
852536d
Get filter from route
madnificent Jan 22, 2022
bd5ccf4
Remove unused functions in data-table
madnificent Jan 22, 2022
e0501d9
Blind upgrading of data-table-menu
madnificent Jan 22, 2022
90b2652
Upgrade serializer to new construct
madnificent Jan 23, 2022
c798859
Named blocks for DataTable component
madnificent Jan 23, 2022
75cb4c9
re-introduce menu
madnificent Jan 23, 2022
0e36bc8
Allow search itself to be re-implemented based on parameters
madnificent Jan 24, 2022
96658e7
Blindly allowing various components to be configured with overrides
madnificent Jan 24, 2022
317ed23
Scope data table subcomponents to data-table namespace
madnificent Jan 24, 2022
1dafa43
Extracting all state from the current templates into a big one
madnificent Jan 24, 2022
96c325f
Further wrapping in components
madnificent Jan 25, 2022
4fb34b9
Wrap raw data table for css overrides
madnificent Jan 25, 2022
593c0a6
Basic controller, route and serializer
madnificent Jan 25, 2022
8fd7ce2
Minor updates to the API
madnificent Jan 25, 2022
0bd071f
Support passing linked route
madnificent Jan 25, 2022
aa48cae
Add @customFields and @customHeaders
madnificent Jan 30, 2022
d7db4d4
Introduce DSL for supplying links attached to each item at the end
madnificent Feb 12, 2022
d8fcf6a
Disable or update old tests
madnificent Feb 12, 2022
5b8bc9e
Add support for @rowLink attribute
madnificent Feb 12, 2022
95f8e39
Reworking number-pagination with @erikap
madnificent Feb 12, 2022
67a8893
Improvements on naming and anchoring
madnificent Jun 24, 2024
3a77e01
Add documentation backlinks in components
madnificent Jun 26, 2024
5daded0
Introduce rich field objects
madnificent Jun 26, 2024
49544a2
Rename data-table to dataTable in arguments
madnificent Jun 26, 2024
7c5baef
Rename lineNumbers to enableLineNumbers
madnificent Jun 26, 2024
a810f03
Provide warnings when update functions are not supplied
madnificent Jun 26, 2024
1c15793
Rename isloading to isLoading
madnificent Jun 26, 2024
4ef37ed
Remove usage of customFields and parsedFields
madnificent Jul 18, 2024
fa5dc83
All known implementations have been upgraded
madnificent Jul 18, 2024
9f553d7
Cleanup search variables
madnificent Jul 18, 2024
0911213
Customizable sort parameters per field
madnificent Jul 18, 2024
d6eeb8c
Disable prettier in eslint
erikap Jul 19, 2024
fdb74c0
Add arguments to configure model property for links
erikap Jul 19, 2024
5b805c1
Enhance pagination
madnificent Jul 19, 2024
2fae217
Add summarized page options to pagination component
erikap Jul 19, 2024
675130f
Improvements to menu
madnificent Jul 19, 2024
c1dac2f
Cleaner handling of pages
madnificent Jul 19, 2024
91d3cec
Rename default-data-table-content-body to data-cells
madnificent Jul 19, 2024
a46b511
Work towards new readme for ember-data-table
madnificent Jul 23, 2024
35b89ec
More work towards README of new Ember Data Table
madnificent Jul 23, 2024
f789812
Nicer wording in README
madnificent Jul 23, 2024
b4c46c4
Fix location of some handlebars TODO comments
madnificent Jul 23, 2024
623311b
Add support for view argument to limit arguments to pass
madnificent Jul 23, 2024
505ed2c
Fix class name of the data-table controller
erikap Jul 24, 2024
527556e
Fix passing of sort argument
erikap Jul 25, 2024
979a6b4
Pass view argument in raw-data-table template
erikap Jul 25, 2024
547fbdf
Export attribute-to-sort-params as util function
erikap Jul 25, 2024
d2b0bd5
Add peer dependency on ember-data
erikap Oct 16, 2024
c56e562
Move ember-data from peerDependencies to dependencies
erikap Oct 16, 2024
1f18789
Bump ember-auto-import to v2
erikap Oct 16, 2024
703d827
Fix default sorting of all fields
erikap Oct 16, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ module.exports = {
extends: [
'eslint:recommended',
'plugin:ember/recommended',
'plugin:prettier/recommended',
],
env: {
browser: true,
Expand Down
727 changes: 529 additions & 198 deletions README.md

Large diffs are not rendered by default.

47 changes: 0 additions & 47 deletions addon/components/data-table-content-body.js

This file was deleted.

11 changes: 0 additions & 11 deletions addon/components/data-table-content-header.js

This file was deleted.

9 changes: 0 additions & 9 deletions addon/components/data-table-content.js

This file was deleted.

6 changes: 0 additions & 6 deletions addon/components/data-table-menu-general.js

This file was deleted.

17 changes: 0 additions & 17 deletions addon/components/data-table-menu-selected.js

This file was deleted.

7 changes: 0 additions & 7 deletions addon/components/data-table-menu.js

This file was deleted.

41 changes: 41 additions & 0 deletions addon/components/data-table.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{{!-- TODO: supply both meta and @content.meta or supply @content.meta only when @meta is not supplied to be in line with readme --}}

{{yield
(hash
Search=(component "data-table/text-search"
filter=this.filter
placeholder=this.searchPlaceholder
autoSearch=this.autoSearch
updateFilter=this.updateFilter
searchDebounceTime=this.searchDebounceTime)
Content=(component "data-table/data-table-content"
content=@content
noDataMessage=this.noDataMessage
enableSelection=@enableSelection
enableLineNumbers=@enableLineNumbers
onClickRow=@onClickRow
sort=this.sort
updateSort=this.updateSort
customHeaders=this.customHeaders
fields=this.fields
links=@links
linksModelProperty=this.linksModelProperty
rowLink=@rowLink
rowLinkModelProperty=this.rowLinkModelProperty
dataTable=this)
Pagination=(component "data-table/number-pagination"
page=this.page
size=this.size
[email protected]
sizeOptions=this.sizeOptions
total=@total
[email protected]
updatePage=this.updatePage
updateSize=this.updatePageSize
backendPageOffset=@backendPageOffset)
Menu=(component "data-table/data-table-menu"
enableSelection=@enableSelection
dataTable=this)
content=@content
enableSearch=this.enableSearch
dataTable=this)}}
Loading