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

feat(list): Add support for dragging items. #7109

Merged
merged 49 commits into from
Aug 2, 2023
Merged
Changes from 1 commit
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
59f1968
WIP
driskull Jun 3, 2023
ceea051
feat(list): Add support for sorting and dragging items. #6554
driskull Jun 3, 2023
0478bb0
cleanup
driskull Jun 3, 2023
84cd376
Merge branch 'master' into dris0000/sortable-list
driskull Jun 5, 2023
49ce1f8
Merge branch 'master' into dris0000/sortable-list
driskull Jun 5, 2023
ae85ebc
Merge branch 'master' into dris0000/sortable-list
driskull Jun 6, 2023
5bcd803
Merge branch 'dris0000/sortable-list' of github.com:Esri/calcite-comp…
driskull Jun 6, 2023
2eae6be
Merge branch 'master' into dris0000/sortable-list
driskull Jun 6, 2023
befbfea
cleanup
driskull Jun 7, 2023
bf8ecad
add pull/put events
driskull Jun 7, 2023
84502ef
feat(list): Add support for sorting and dragging items. #6554
driskull Jun 7, 2023
88a9258
add comment
driskull Jun 7, 2023
9a7b80d
cleanup
driskull Jun 7, 2023
5ef19b2
cleanup
driskull Jun 7, 2023
de11b60
Merge branch 'master' into dris0000/sortable-list
driskull Jun 7, 2023
ccc748e
drag handle alignment
driskull Jun 7, 2023
8ab64fe
cleanup
driskull Jun 8, 2023
0cacf88
Merge branch 'master' into dris0000/sortable-list
driskull Jun 15, 2023
a2acfdb
wip
driskull Jun 15, 2023
ccf0a9a
Merge branch 'master' into dris0000/sortable-list
driskull Jun 28, 2023
628c09f
Merge branch 'main' into dris0000/sortable-list
driskull Jul 3, 2023
a553935
Merge branch 'main' into dris0000/sortable-list
driskull Jul 3, 2023
9b6dd24
cleanup
driskull Jul 3, 2023
f010af2
cleanup
driskull Jul 3, 2023
24e20e9
Merge branch 'main' into dris0000/sortable-list
driskull Jul 3, 2023
1c922ba
Merge branch 'main' into dris0000/sortable-list
driskull Jul 11, 2023
d0eae6a
Merge branch 'main' into dris0000/sortable-list
driskull Jul 14, 2023
19e9eff
event detail
driskull Jul 14, 2023
d06d16f
cleanup
driskull Jul 14, 2023
980a144
cleanup
driskull Jul 14, 2023
9b6c5eb
test app
driskull Jul 17, 2023
e4943b0
Merge branch 'main' into dris0000/sortable-list
driskull Jul 17, 2023
69c3138
Merge branch 'main' into dris0000/sortable-list
driskull Jul 24, 2023
bbf9a68
Merge branch 'main' into dris0000/sortable-list
driskull Jul 27, 2023
d20bea8
cleanup slot changes for openable
driskull Jul 27, 2023
99e5e12
WIP sorting keyboard
driskull Jul 27, 2023
f97ceea
WIP
driskull Jul 27, 2023
3580920
WIP
driskull Jul 27, 2023
f1f94c7
cleanup
driskull Jul 27, 2023
202b9e7
Merge branch 'main' into dris0000/sortable-list
driskull Jul 27, 2023
ca77444
cleanup
driskull Jul 28, 2023
83fb4c0
cleanup
driskull Jul 28, 2023
98acf7d
cleanup
driskull Jul 28, 2023
b7eb538
cleanup
driskull Jul 28, 2023
4b4329a
Merge branch 'main' into dris0000/sortable-list
driskull Jul 28, 2023
e174a94
examples, tests
driskull Jul 28, 2023
162cd5e
cleanup
driskull Jul 28, 2023
f820923
fix test
driskull Aug 1, 2023
f826ce0
review fixes
driskull Aug 2, 2023
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
Prev Previous commit
Next Next commit
cleanup
driskull committed Jul 3, 2023

Verified

This commit was signed with the committer’s verified signature.
stsewd Santos Gallegos
commit 9b6dd249c72c3b1fd0c4bc45856e4517d7f99949
2 changes: 0 additions & 2 deletions packages/calcite-components/src/components/list/list.tsx
Original file line number Diff line number Diff line change
@@ -46,8 +46,6 @@ import {

// todo: keyboard nav sorting
// todo: child sorting
// todo: set group, pull,put,selectionMode, seelctionAppearance, on children
// todo: disable filtering on children

/**
* A general purpose list that enables users to construct list items that conform to Calcite styling.
19 changes: 19 additions & 0 deletions packages/calcite-components/src/demos/list.html
Original file line number Diff line number Diff line change
@@ -576,6 +576,25 @@ <h1 style="margin: 0 auto; text-align: center">List</h1>
</calcite-list>
</div>
</div>

<!-- filterable draggable nested list -->
<div class="parent">
<div class="child right-aligned-text">nested & draggable</div>

<div class="child">
<calcite-list drag-enabled group="nested" label="test" selection-mode="multiple">
<calcite-list-item open label="Hi!" description="hello world">
<calcite-list drag-enabled group="nested">
<calcite-list-item open label="Hi!" description="hello world">
<calcite-list drag-enabled group="nested">
<calcite-list-item label="Hi!" description="hello world"></calcite-list-item>
</calcite-list>
</calcite-list-item>
</calcite-list>
</calcite-list-item>
</calcite-list>
</div>
</div>
</demo-dom-swapper>
</body>
</html>