Problem/Motivation
jQueryUI is going to be deprecated
jquery.ui.draggable is among the components that need to be addressed
As mentioned in the parent issue: #3067261: [Plan] Remove jQuery UI components used by Drupal core and replace with a set of supported solutions
The OpenJS Foundation lists jQuery UI as an Emeritus project in https://openjsf.org/projects/ which is described as:
Emeritus projects are those which the maintainers feel have reached or are nearing end-of-life
Proposed resolution
When #2158943: PP-1 Add a native dialog element using HTMX to deprecate the jQuery UI dialog and #3064049: Replace jQuery UI sortable with Sortable js (which removes CKEditor's dependency on draggable) are committed, deprecate the jquery.ui.draggable library.
No replacement will be necessary as the two issues above remove all uses of jquery.ui.draggable from core.
Remaining tasks
Wait for #2158943: PP-1 Add a native dialog element using HTMX to deprecate the jQuery UI dialog and #3064049: Replace jQuery UI sortable with Sortable js to be completed, then change the issue status to Active (or any other flavor of not-postponed)
Deprecate the jquery.ui.draggable library.
User interface changes
no
API changes
...
Data model changes
N/A
Release notes snippet
...
Comments
Comment #2
catchComment #3
xjmWhy is this issue postponed on the sortable issue? In
core.libraries.yml, dialog depends on draggable, but sortable has no dependency on draggable. Is it another missing dependency we should add, or is there another reason it's postponed on sortable as well?I'd say at this point it's fairly likely we will be developing this issue against D9 soon, especially since there's a lot of risk with the Dialog replacement so Dialog is likely to continue in D9 development as well. (9.0.x opens October 14.)
Comment #4
bnjmnmRe #3
CKEditor currently has a dependency on draggable, which will be removed in #3064049: Replace jQuery UI sortable with Sortable js.
Comment #5
bnjmnmUpdated IS to explain why this is postponed on #3064049: Replace jQuery UI sortable with Sortable js
Comment #6
xjmWhat about the other uses of draggable? Do we need to do further work on tabledrag after #3064049: Replace jQuery UI sortable with Sortable js?
Comment #7
xjm@bnjmnm confirmed that tabledrag does not actually use draggable. #3064049: Replace jQuery UI sortable with Sortable js proves this (edit: I guess because no HEAD test coverage fails?)
Comment #8
xjmI belatedly realized that core tabledrag predates jQuery UI in core by, like, a lot, so it would not have depended on
jquery.ui.draggableunless refactored.Core library definition:
(Caveat: we have had missing library dependencies, but in this case it seems unlikely.)
So I guess this can be closed as a duplicate if/when the other issue is committed, and the library added then to the list of those we deprecate.
Comment #9
wim leers#8++ … except for the last paragraph.
core/jquery.ui.dialogstill depends oncore/jquery.ui.draggable, so even after #3064049: Replace jQuery UI sortable with Sortable js lands, we'll still need to have #2158943: PP-1 Add a native dialog element using HTMX to deprecate the jQuery UI dialog land before we can do this. Unless you mean #2158943 can deprecate bothcore/jquery.ui.dialogandcore/jquery.ui.draggable?Comment #11
amateescu commentedOne of the blockers is in.
Comment #12
catchI found a way to deprecate this now, see #3113400: Deprecate more jQuery UI library definitions. Unpostponing although we may want to merge into that issue.
Comment #13
catchMarking duplicate of #3113400: Deprecate more jQuery UI library definitions.