jquery-ui-rails 6.0.1 → 8.0.0
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 +5 -5
- data/History.md +11 -2
- data/README.md +12 -12
- data/Rakefile +8 -3
- data/VERSIONS.md +2 -0
- data/app/assets/images/jquery-ui/ui-icons_444444_256x240.png +0 -0
- data/app/assets/images/jquery-ui/ui-icons_555555_256x240.png +0 -0
- data/app/assets/images/jquery-ui/ui-icons_777620_256x240.png +0 -0
- data/app/assets/images/jquery-ui/ui-icons_777777_256x240.png +0 -0
- data/app/assets/images/jquery-ui/ui-icons_cc0000_256x240.png +0 -0
- data/app/assets/images/jquery-ui/ui-icons_ffffff_256x240.png +0 -0
- data/app/assets/javascripts/jquery-ui/data.js +16 -18
- data/app/assets/javascripts/jquery-ui/disable-selection.js +10 -7
- data/app/assets/javascripts/jquery-ui/effect.js +69 -752
- data/app/assets/javascripts/jquery-ui/effects/effect-blind.js +11 -8
- data/app/assets/javascripts/jquery-ui/effects/effect-bounce.js +11 -8
- data/app/assets/javascripts/jquery-ui/effects/effect-clip.js +11 -8
- data/app/assets/javascripts/jquery-ui/effects/effect-drop.js +11 -8
- data/app/assets/javascripts/jquery-ui/effects/effect-explode.js +13 -10
- data/app/assets/javascripts/jquery-ui/effects/effect-fade.js +11 -8
- data/app/assets/javascripts/jquery-ui/effects/effect-fold.js +11 -8
- data/app/assets/javascripts/jquery-ui/effects/effect-highlight.js +11 -8
- data/app/assets/javascripts/jquery-ui/effects/effect-puff.js +11 -8
- data/app/assets/javascripts/jquery-ui/effects/effect-pulsate.js +11 -8
- data/app/assets/javascripts/jquery-ui/effects/effect-scale.js +11 -8
- data/app/assets/javascripts/jquery-ui/effects/effect-shake.js +11 -8
- data/app/assets/javascripts/jquery-ui/effects/effect-size.js +13 -8
- data/app/assets/javascripts/jquery-ui/effects/effect-slide.js +11 -8
- data/app/assets/javascripts/jquery-ui/effects/effect-transfer.js +12 -9
- data/app/assets/javascripts/jquery-ui/focusable.js +13 -20
- data/app/assets/javascripts/jquery-ui/form-reset-mixin.js +11 -10
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-af.js +8 -5
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ar-DZ.js +8 -5
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ar.js +7 -4
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-az.js +14 -11
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-be.js +14 -11
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-bg.js +15 -12
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-bs.js +14 -11
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ca.js +12 -9
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-cs.js +12 -9
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-cy-GB.js +8 -5
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-da.js +15 -12
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-de-AT.js +41 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-de.js +14 -11
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-el.js +13 -10
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-en-AU.js +8 -5
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-en-GB.js +8 -5
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-en-NZ.js +8 -5
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-eo.js +14 -11
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-es.js +14 -11
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-et.js +8 -5
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-eu.js +14 -11
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-fa.js +8 -5
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-fi.js +14 -11
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-fo.js +13 -10
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-fr-CA.js +5 -2
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-fr-CH.js +7 -4
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-fr.js +6 -3
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-gl.js +14 -11
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-he.js +14 -11
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-hi.js +7 -4
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-hr.js +14 -11
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-hu.js +9 -6
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-hy.js +14 -11
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-id.js +16 -12
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-is.js +13 -10
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-it-CH.js +14 -11
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-it.js +14 -11
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ja.js +14 -11
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ka.js +11 -8
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-kk.js +14 -11
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-km.js +9 -6
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ko.js +12 -9
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ky.js +12 -9
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-lb.js +8 -5
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-lt.js +13 -10
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-lv.js +11 -8
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-mk.js +14 -11
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ml.js +8 -5
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ms.js +14 -11
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-nb.js +11 -8
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-nl-BE.js +7 -4
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-nl.js +8 -5
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-nn.js +11 -8
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-no.js +11 -8
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-pl.js +14 -11
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-pt-BR.js +13 -10
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-pt.js +12 -9
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-rm.js +10 -7
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ro.js +10 -7
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ru.js +14 -11
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-sk.js +14 -11
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-sl.js +14 -11
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-sq.js +14 -11
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-sr-SR.js +14 -11
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-sr.js +14 -11
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-sv.js +14 -11
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ta.js +10 -7
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-th.js +14 -11
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-tj.js +14 -11
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-tr.js +14 -11
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-uk.js +14 -11
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-vi.js +7 -4
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-CN.js +14 -11
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-HK.js +14 -11
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-TW.js +15 -12
- data/app/assets/javascripts/jquery-ui/jquery-patch.js +58 -0
- data/app/assets/javascripts/jquery-ui/jquery-var-for-color.js +24 -0
- data/app/assets/javascripts/jquery-ui/keycode.js +11 -7
- data/app/assets/javascripts/jquery-ui/labels.js +18 -13
- data/app/assets/javascripts/jquery-ui/plugin.js +5 -2
- data/app/assets/javascripts/jquery-ui/position.js +30 -17
- data/app/assets/javascripts/jquery-ui/scroll-parent.js +10 -7
- data/app/assets/javascripts/jquery-ui/tabbable.js +11 -8
- data/app/assets/javascripts/jquery-ui/unique-id.js +10 -7
- data/app/assets/javascripts/jquery-ui/vendor/jquery-color/jquery.color.js +691 -0
- data/app/assets/javascripts/jquery-ui/version.js +6 -3
- data/app/assets/javascripts/jquery-ui/widget.js +56 -30
- data/app/assets/javascripts/jquery-ui/widgets/accordion.js +32 -23
- data/app/assets/javascripts/jquery-ui/widgets/autocomplete.js +31 -74
- data/app/assets/javascripts/jquery-ui/widgets/button.js +91 -28
- data/app/assets/javascripts/jquery-ui/widgets/checkboxradio.js +27 -24
- data/app/assets/javascripts/jquery-ui/widgets/controlgroup.js +15 -11
- data/app/assets/javascripts/jquery-ui/widgets/datepicker.js +185 -68
- data/app/assets/javascripts/jquery-ui/widgets/dialog.js +57 -54
- data/app/assets/javascripts/jquery-ui/widgets/draggable.js +30 -25
- data/app/assets/javascripts/jquery-ui/widgets/droppable.js +25 -19
- data/app/assets/javascripts/jquery-ui/widgets/menu.js +90 -52
- data/app/assets/javascripts/jquery-ui/widgets/mouse.js +36 -40
- data/app/assets/javascripts/jquery-ui/widgets/progressbar.js +14 -11
- data/app/assets/javascripts/jquery-ui/widgets/resizable.js +116 -42
- data/app/assets/javascripts/jquery-ui/widgets/selectable.js +18 -11
- data/app/assets/javascripts/jquery-ui/widgets/selectmenu.js +30 -52
- data/app/assets/javascripts/jquery-ui/widgets/slider.js +15 -12
- data/app/assets/javascripts/jquery-ui/widgets/sortable.js +193 -140
- data/app/assets/javascripts/jquery-ui/widgets/spinner.js +28 -45
- data/app/assets/javascripts/jquery-ui/widgets/tabs.js +32 -66
- data/app/assets/javascripts/jquery-ui/widgets/tooltip.js +38 -36
- data/app/assets/javascripts/jquery-ui.js +3 -7
- data/app/assets/stylesheets/jquery-ui/accordion.css +5 -5
- data/app/assets/stylesheets/jquery-ui/all.css +5 -5
- data/app/assets/stylesheets/jquery-ui/autocomplete.css +5 -5
- data/app/assets/stylesheets/jquery-ui/base.css +5 -5
- data/app/assets/stylesheets/jquery-ui/button.css +6 -11
- data/app/assets/stylesheets/jquery-ui/checkboxradio.css +5 -5
- data/app/assets/stylesheets/jquery-ui/controlgroup.css +5 -8
- data/app/assets/stylesheets/jquery-ui/core.css +5 -9
- data/app/assets/stylesheets/jquery-ui/datepicker.css +5 -5
- data/app/assets/stylesheets/jquery-ui/dialog.css +5 -5
- data/app/assets/stylesheets/jquery-ui/draggable.css +4 -5
- data/app/assets/stylesheets/jquery-ui/menu.css +5 -7
- data/app/assets/stylesheets/jquery-ui/progressbar.css +5 -6
- data/app/assets/stylesheets/jquery-ui/resizable.css +4 -5
- data/app/assets/stylesheets/jquery-ui/selectable.css +4 -5
- data/app/assets/stylesheets/jquery-ui/selectmenu.css +5 -5
- data/app/assets/stylesheets/jquery-ui/slider.css +6 -13
- data/app/assets/stylesheets/jquery-ui/sortable.css +4 -5
- data/app/assets/stylesheets/jquery-ui/spinner.css +5 -5
- data/app/assets/stylesheets/jquery-ui/tabs.css +5 -5
- data/app/assets/stylesheets/jquery-ui/theme.css.erb +10 -14
- data/app/assets/stylesheets/jquery-ui/tooltip.css +5 -5
- data/lib/jquery/ui/rails/version.rb +2 -2
- metadata +11 -15
- data/app/assets/javascripts/jquery-ui/core.js +0 -15
- data/app/assets/javascripts/jquery-ui/escape-selector.js +0 -23
- data/app/assets/javascripts/jquery-ui/form.js +0 -22
- data/app/assets/javascripts/jquery-ui/ie.js +0 -17
- data/app/assets/javascripts/jquery-ui/jquery-1-7.js +0 -91
- data/app/assets/javascripts/jquery-ui/safe-active-element.js +0 -42
- data/app/assets/javascripts/jquery-ui/safe-blur.js +0 -23
@@ -5,32 +5,32 @@
|
|
5
5
|
//= require jquery-ui/focusable
|
6
6
|
//= require jquery-ui/keycode
|
7
7
|
//= require jquery-ui/position
|
8
|
-
//= require jquery-ui/safe-active-element
|
9
|
-
//= require jquery-ui/safe-blur
|
10
8
|
//= require jquery-ui/tabbable
|
11
9
|
//= require jquery-ui/unique-id
|
12
10
|
//= require jquery-ui/version
|
13
11
|
//= require jquery-ui/widget
|
14
12
|
|
15
13
|
/*!
|
16
|
-
* jQuery UI Dialog 1.
|
17
|
-
*
|
14
|
+
* jQuery UI Dialog 1.14.1
|
15
|
+
* https://jqueryui.com
|
18
16
|
*
|
19
|
-
* Copyright
|
17
|
+
* Copyright OpenJS Foundation and other contributors
|
20
18
|
* Released under the MIT license.
|
21
|
-
*
|
19
|
+
* https://jquery.org/license
|
22
20
|
*/
|
23
21
|
|
24
22
|
//>>label: Dialog
|
25
23
|
//>>group: Widgets
|
26
24
|
//>>description: Displays customizable dialog windows.
|
27
|
-
//>>docs:
|
28
|
-
//>>demos:
|
25
|
+
//>>docs: https://api.jqueryui.com/dialog/
|
26
|
+
//>>demos: https://jqueryui.com/dialog/
|
29
27
|
//>>css.structure: ../../themes/base/core.css
|
30
28
|
//>>css.structure: ../../themes/base/dialog.css
|
31
29
|
//>>css.theme: ../../themes/base/theme.css
|
32
30
|
|
33
31
|
( function( factory ) {
|
32
|
+
"use strict";
|
33
|
+
|
34
34
|
if ( typeof define === "function" && define.amd ) {
|
35
35
|
|
36
36
|
// AMD. Register as an anonymous module.
|
@@ -43,8 +43,6 @@
|
|
43
43
|
"../focusable",
|
44
44
|
"../keycode",
|
45
45
|
"../position",
|
46
|
-
"../safe-active-element",
|
47
|
-
"../safe-blur",
|
48
46
|
"../tabbable",
|
49
47
|
"../unique-id",
|
50
48
|
"../version",
|
@@ -55,10 +53,11 @@
|
|
55
53
|
// Browser globals
|
56
54
|
factory( jQuery );
|
57
55
|
}
|
58
|
-
}( function( $ ) {
|
56
|
+
} )( function( $ ) {
|
57
|
+
"use strict";
|
59
58
|
|
60
59
|
$.widget( "ui.dialog", {
|
61
|
-
version: "1.
|
60
|
+
version: "1.14.1",
|
62
61
|
options: {
|
63
62
|
appendTo: "body",
|
64
63
|
autoOpen: true,
|
@@ -94,6 +93,7 @@ $.widget( "ui.dialog", {
|
|
94
93
|
resizable: true,
|
95
94
|
show: null,
|
96
95
|
title: null,
|
96
|
+
uiDialogTitleHeadingLevel: 0,
|
97
97
|
width: 300,
|
98
98
|
|
99
99
|
// Callbacks
|
@@ -240,7 +240,7 @@ $.widget( "ui.dialog", {
|
|
240
240
|
// Hiding a focused element doesn't trigger blur in WebKit
|
241
241
|
// so in case we have nothing to focus on, explicitly blur the active element
|
242
242
|
// https://bugs.webkit.org/show_bug.cgi?id=47182
|
243
|
-
|
243
|
+
$( this.document[ 0 ].activeElement ).trigger( "blur" );
|
244
244
|
}
|
245
245
|
|
246
246
|
this._hide( this.uiDialog, this.options.hide, function() {
|
@@ -284,7 +284,7 @@ $.widget( "ui.dialog", {
|
|
284
284
|
}
|
285
285
|
|
286
286
|
this._isOpen = true;
|
287
|
-
this.opener = $(
|
287
|
+
this.opener = $( this.document[ 0 ].activeElement );
|
288
288
|
|
289
289
|
this._size();
|
290
290
|
this._position();
|
@@ -303,7 +303,7 @@ $.widget( "ui.dialog", {
|
|
303
303
|
that._trigger( "focus" );
|
304
304
|
} );
|
305
305
|
|
306
|
-
// Track the dialog immediately upon
|
306
|
+
// Track the dialog immediately upon opening in case a focus event
|
307
307
|
// somehow occurs outside of the dialog before an element inside the
|
308
308
|
// dialog is focused (#10152)
|
309
309
|
this._makeFocusTarget();
|
@@ -339,22 +339,18 @@ $.widget( "ui.dialog", {
|
|
339
339
|
hasFocus.eq( 0 ).trigger( "focus" );
|
340
340
|
},
|
341
341
|
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
this._focusTabbable();
|
349
|
-
}
|
342
|
+
_restoreTabbableFocus: function() {
|
343
|
+
var activeElement = this.document[ 0 ].activeElement,
|
344
|
+
isActive = this.uiDialog[ 0 ] === activeElement ||
|
345
|
+
$.contains( this.uiDialog[ 0 ], activeElement );
|
346
|
+
if ( !isActive ) {
|
347
|
+
this._focusTabbable();
|
350
348
|
}
|
351
|
-
|
352
|
-
checkFocus.call( this );
|
349
|
+
},
|
353
350
|
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
this._delay( checkFocus );
|
351
|
+
_keepFocus: function( event ) {
|
352
|
+
event.preventDefault();
|
353
|
+
this._restoreTabbableFocus();
|
358
354
|
},
|
359
355
|
|
360
356
|
_createWrapper: function() {
|
@@ -364,7 +360,8 @@ $.widget( "ui.dialog", {
|
|
364
360
|
|
365
361
|
// Setting tabIndex makes the div focusable
|
366
362
|
tabIndex: -1,
|
367
|
-
role: "dialog"
|
363
|
+
role: "dialog",
|
364
|
+
"aria-modal": this.options.modal ? "true" : null
|
368
365
|
} )
|
369
366
|
.appendTo( this._appendTo() );
|
370
367
|
|
@@ -383,8 +380,8 @@ $.widget( "ui.dialog", {
|
|
383
380
|
return;
|
384
381
|
}
|
385
382
|
var tabbables = this.uiDialog.find( ":tabbable" ),
|
386
|
-
first = tabbables.
|
387
|
-
last = tabbables.
|
383
|
+
first = tabbables.first(),
|
384
|
+
last = tabbables.last();
|
388
385
|
|
389
386
|
if ( ( event.target === last[ 0 ] || event.target === this.uiDialog[ 0 ] ) &&
|
390
387
|
!event.shiftKey ) {
|
@@ -437,9 +434,6 @@ $.widget( "ui.dialog", {
|
|
437
434
|
}
|
438
435
|
} );
|
439
436
|
|
440
|
-
// Support: IE
|
441
|
-
// Use type="button" to prevent enter keypresses in textboxes from closing the
|
442
|
-
// dialog in IE (#9312)
|
443
437
|
this.uiDialogTitlebarClose = $( "<button type='button'></button>" )
|
444
438
|
.button( {
|
445
439
|
label: $( "<a>" ).text( this.options.closeText ).html(),
|
@@ -456,7 +450,13 @@ $.widget( "ui.dialog", {
|
|
456
450
|
}
|
457
451
|
} );
|
458
452
|
|
459
|
-
|
453
|
+
var uiDialogHeadingLevel = Number.isInteger( this.options.uiDialogTitleHeadingLevel ) &&
|
454
|
+
this.options.uiDialogTitleHeadingLevel > 0 &&
|
455
|
+
this.options.uiDialogTitleHeadingLevel <= 6 ?
|
456
|
+
"h" + this.options.uiDialogTitleHeadingLevel : "span";
|
457
|
+
|
458
|
+
uiDialogTitle = $( "<" + uiDialogHeadingLevel + ">" )
|
459
|
+
.uniqueId().prependTo( this.uiDialogTitlebar );
|
460
460
|
this._addClass( uiDialogTitle, "ui-dialog-title" );
|
461
461
|
this._title( uiDialogTitle );
|
462
462
|
|
@@ -495,14 +495,14 @@ $.widget( "ui.dialog", {
|
|
495
495
|
this.uiDialogButtonPane.remove();
|
496
496
|
this.uiButtonSet.empty();
|
497
497
|
|
498
|
-
if ( $.isEmptyObject( buttons ) || (
|
498
|
+
if ( $.isEmptyObject( buttons ) || ( Array.isArray( buttons ) && !buttons.length ) ) {
|
499
499
|
this._removeClass( this.uiDialog, "ui-dialog-buttons" );
|
500
500
|
return;
|
501
501
|
}
|
502
502
|
|
503
503
|
$.each( buttons, function( name, props ) {
|
504
504
|
var click, buttonOptions;
|
505
|
-
props =
|
505
|
+
props = typeof props === "function" ?
|
506
506
|
{ click: props, text: name } :
|
507
507
|
props;
|
508
508
|
|
@@ -782,6 +782,10 @@ $.widget( "ui.dialog", {
|
|
782
782
|
if ( key === "title" ) {
|
783
783
|
this._title( this.uiDialogTitlebar.find( ".ui-dialog-title" ) );
|
784
784
|
}
|
785
|
+
|
786
|
+
if ( key === "modal" ) {
|
787
|
+
uiDialog.attr( "aria-modal", value ? "true" : null );
|
788
|
+
}
|
785
789
|
},
|
786
790
|
|
787
791
|
_size: function() {
|
@@ -877,20 +881,19 @@ $.widget( "ui.dialog", {
|
|
877
881
|
if ( !this.document.data( "ui-dialog-overlays" ) ) {
|
878
882
|
|
879
883
|
// Prevent use of anchors and inputs
|
880
|
-
//
|
881
|
-
//
|
882
|
-
this.
|
883
|
-
|
884
|
-
|
885
|
-
return;
|
886
|
-
}
|
887
|
-
|
888
|
-
if ( !this._allowInteraction( event ) ) {
|
889
|
-
event.preventDefault();
|
890
|
-
this._trackingInstances()[ 0 ]._focusTabbable();
|
891
|
-
}
|
884
|
+
// This doesn't use `_on()` because it is a shared event handler
|
885
|
+
// across all open modal dialogs.
|
886
|
+
this.document.on( "focusin.ui-dialog", function( event ) {
|
887
|
+
if ( isOpening ) {
|
888
|
+
return;
|
892
889
|
}
|
893
|
-
|
890
|
+
|
891
|
+
var instance = this._trackingInstances()[ 0 ];
|
892
|
+
if ( !instance._allowInteraction( event ) ) {
|
893
|
+
event.preventDefault();
|
894
|
+
instance._focusTabbable();
|
895
|
+
}
|
896
|
+
}.bind( this ) );
|
894
897
|
}
|
895
898
|
|
896
899
|
this.overlay = $( "<div>" )
|
@@ -913,7 +916,7 @@ $.widget( "ui.dialog", {
|
|
913
916
|
var overlays = this.document.data( "ui-dialog-overlays" ) - 1;
|
914
917
|
|
915
918
|
if ( !overlays ) {
|
916
|
-
this.
|
919
|
+
this.document.off( "focusin.ui-dialog" );
|
917
920
|
this.document.removeData( "ui-dialog-overlays" );
|
918
921
|
} else {
|
919
922
|
this.document.data( "ui-dialog-overlays", overlays );
|
@@ -927,7 +930,7 @@ $.widget( "ui.dialog", {
|
|
927
930
|
|
928
931
|
// DEPRECATED
|
929
932
|
// TODO: switch return back to widget declaration at top of file when this is removed
|
930
|
-
if ( $.uiBackCompat
|
933
|
+
if ( $.uiBackCompat === true ) {
|
931
934
|
|
932
935
|
// Backcompat for dialogClass option
|
933
936
|
$.widget( "ui.dialog", $.ui.dialog, {
|
@@ -951,4 +954,4 @@ if ( $.uiBackCompat !== false ) {
|
|
951
954
|
|
952
955
|
return $.ui.dialog;
|
953
956
|
|
954
|
-
} )
|
957
|
+
} );
|
@@ -1,29 +1,29 @@
|
|
1
1
|
//= require jquery-ui/widgets/mouse
|
2
2
|
//= require jquery-ui/data
|
3
3
|
//= require jquery-ui/plugin
|
4
|
-
//= require jquery-ui/safe-active-element
|
5
|
-
//= require jquery-ui/safe-blur
|
6
4
|
//= require jquery-ui/scroll-parent
|
7
5
|
//= require jquery-ui/version
|
8
6
|
//= require jquery-ui/widget
|
9
7
|
|
10
8
|
/*!
|
11
|
-
* jQuery UI Draggable 1.
|
12
|
-
*
|
9
|
+
* jQuery UI Draggable 1.14.1
|
10
|
+
* https://jqueryui.com
|
13
11
|
*
|
14
|
-
* Copyright
|
12
|
+
* Copyright OpenJS Foundation and other contributors
|
15
13
|
* Released under the MIT license.
|
16
|
-
*
|
14
|
+
* https://jquery.org/license
|
17
15
|
*/
|
18
16
|
|
19
17
|
//>>label: Draggable
|
20
18
|
//>>group: Interactions
|
21
19
|
//>>description: Enables dragging functionality for any element.
|
22
|
-
//>>docs:
|
23
|
-
//>>demos:
|
20
|
+
//>>docs: https://api.jqueryui.com/draggable/
|
21
|
+
//>>demos: https://jqueryui.com/draggable/
|
24
22
|
//>>css.structure: ../../themes/base/draggable.css
|
25
23
|
|
26
24
|
( function( factory ) {
|
25
|
+
"use strict";
|
26
|
+
|
27
27
|
if ( typeof define === "function" && define.amd ) {
|
28
28
|
|
29
29
|
// AMD. Register as an anonymous module.
|
@@ -32,8 +32,6 @@
|
|
32
32
|
"./mouse",
|
33
33
|
"../data",
|
34
34
|
"../plugin",
|
35
|
-
"../safe-active-element",
|
36
|
-
"../safe-blur",
|
37
35
|
"../scroll-parent",
|
38
36
|
"../version",
|
39
37
|
"../widget"
|
@@ -43,10 +41,11 @@
|
|
43
41
|
// Browser globals
|
44
42
|
factory( jQuery );
|
45
43
|
}
|
46
|
-
}( function( $ ) {
|
44
|
+
} )( function( $ ) {
|
45
|
+
"use strict";
|
47
46
|
|
48
47
|
$.widget( "ui.draggable", $.ui.mouse, {
|
49
|
-
version: "1.
|
48
|
+
version: "1.14.1",
|
50
49
|
widgetEventPrefix: "drag",
|
51
50
|
options: {
|
52
51
|
addClasses: true,
|
@@ -153,7 +152,7 @@ $.widget( "ui.draggable", $.ui.mouse, {
|
|
153
152
|
},
|
154
153
|
|
155
154
|
_blurActiveElement: function( event ) {
|
156
|
-
var activeElement =
|
155
|
+
var activeElement = this.document[ 0 ].activeElement,
|
157
156
|
target = $( event.target );
|
158
157
|
|
159
158
|
// Don't blur if the event occurred on an element that is within
|
@@ -164,7 +163,7 @@ $.widget( "ui.draggable", $.ui.mouse, {
|
|
164
163
|
}
|
165
164
|
|
166
165
|
// Blur any element that currently has focus, see #4261
|
167
|
-
|
166
|
+
$( activeElement ).trigger( "blur" );
|
168
167
|
},
|
169
168
|
|
170
169
|
_mouseStart: function( event ) {
|
@@ -210,7 +209,9 @@ $.widget( "ui.draggable", $.ui.mouse, {
|
|
210
209
|
this.originalPageY = event.pageY;
|
211
210
|
|
212
211
|
//Adjust the mouse offset relative to the helper if "cursorAt" is supplied
|
213
|
-
|
212
|
+
if ( o.cursorAt ) {
|
213
|
+
this._adjustOffsetFromHelper( o.cursorAt );
|
214
|
+
}
|
214
215
|
|
215
216
|
//Set a containment if given in the options
|
216
217
|
this._setContainment();
|
@@ -305,7 +306,7 @@ $.widget( "ui.draggable", $.ui.mouse, {
|
|
305
306
|
|
306
307
|
if ( ( this.options.revert === "invalid" && !dropped ) ||
|
307
308
|
( this.options.revert === "valid" && dropped ) ||
|
308
|
-
this.options.revert === true || (
|
309
|
+
this.options.revert === true || ( typeof this.options.revert === "function" &&
|
309
310
|
this.options.revert.call( this.element, dropped ) )
|
310
311
|
) {
|
311
312
|
$( this.helper ).animate(
|
@@ -377,7 +378,7 @@ $.widget( "ui.draggable", $.ui.mouse, {
|
|
377
378
|
_createHelper: function( event ) {
|
378
379
|
|
379
380
|
var o = this.options,
|
380
|
-
helperIsFunction =
|
381
|
+
helperIsFunction = typeof o.helper === "function",
|
381
382
|
helper = helperIsFunction ?
|
382
383
|
$( o.helper.apply( this.element[ 0 ], [ event ] ) ) :
|
383
384
|
( o.helper === "clone" ?
|
@@ -390,7 +391,7 @@ $.widget( "ui.draggable", $.ui.mouse, {
|
|
390
391
|
o.appendTo ) );
|
391
392
|
}
|
392
393
|
|
393
|
-
//
|
394
|
+
// https://bugs.jqueryui.com/ticket/9446
|
394
395
|
// a helper function can return the original element
|
395
396
|
// which wouldn't have been set to relative in _create
|
396
397
|
if ( helperIsFunction && helper[ 0 ] === this.element[ 0 ] ) {
|
@@ -416,7 +417,7 @@ $.widget( "ui.draggable", $.ui.mouse, {
|
|
416
417
|
if ( typeof obj === "string" ) {
|
417
418
|
obj = obj.split( " " );
|
418
419
|
}
|
419
|
-
if (
|
420
|
+
if ( Array.isArray( obj ) ) {
|
420
421
|
obj = { left: +obj[ 0 ], top: +obj[ 1 ] || 0 };
|
421
422
|
}
|
422
423
|
if ( "left" in obj ) {
|
@@ -1125,12 +1126,13 @@ $.ui.plugin.add( "draggable", "snap", {
|
|
1125
1126
|
!$.contains( inst.snapElements[ i ].item.ownerDocument,
|
1126
1127
|
inst.snapElements[ i ].item ) ) {
|
1127
1128
|
if ( inst.snapElements[ i ].snapping ) {
|
1128
|
-
( inst.options.snap.release
|
1129
|
+
if ( inst.options.snap.release ) {
|
1129
1130
|
inst.options.snap.release.call(
|
1130
1131
|
inst.element,
|
1131
1132
|
event,
|
1132
1133
|
$.extend( inst._uiHash(), { snapItem: inst.snapElements[ i ].item } )
|
1133
|
-
)
|
1134
|
+
);
|
1135
|
+
}
|
1134
1136
|
}
|
1135
1137
|
inst.snapElements[ i ].snapping = false;
|
1136
1138
|
continue;
|
@@ -1201,13 +1203,14 @@ $.ui.plugin.add( "draggable", "snap", {
|
|
1201
1203
|
}
|
1202
1204
|
|
1203
1205
|
if ( !inst.snapElements[ i ].snapping && ( ts || bs || ls || rs || first ) ) {
|
1204
|
-
( inst.options.snap.snap
|
1206
|
+
if ( inst.options.snap.snap ) {
|
1205
1207
|
inst.options.snap.snap.call(
|
1206
1208
|
inst.element,
|
1207
1209
|
event,
|
1208
1210
|
$.extend( inst._uiHash(), {
|
1209
1211
|
snapItem: inst.snapElements[ i ].item
|
1210
|
-
} ) )
|
1212
|
+
} ) );
|
1213
|
+
}
|
1211
1214
|
}
|
1212
1215
|
inst.snapElements[ i ].snapping = ( ts || bs || ls || rs || first );
|
1213
1216
|
|
@@ -1225,7 +1228,9 @@ $.ui.plugin.add( "draggable", "stack", {
|
|
1225
1228
|
( parseInt( $( b ).css( "zIndex" ), 10 ) || 0 );
|
1226
1229
|
} );
|
1227
1230
|
|
1228
|
-
if ( !group.length ) {
|
1231
|
+
if ( !group.length ) {
|
1232
|
+
return;
|
1233
|
+
}
|
1229
1234
|
|
1230
1235
|
min = parseInt( $( group[ 0 ] ).css( "zIndex" ), 10 ) || 0;
|
1231
1236
|
$( group ).each( function( i ) {
|
@@ -1256,4 +1261,4 @@ $.ui.plugin.add( "draggable", "zIndex", {
|
|
1256
1261
|
|
1257
1262
|
return $.ui.draggable;
|
1258
1263
|
|
1259
|
-
} )
|
1264
|
+
} );
|
@@ -4,21 +4,23 @@
|
|
4
4
|
//= require jquery-ui/widget
|
5
5
|
|
6
6
|
/*!
|
7
|
-
* jQuery UI Droppable 1.
|
8
|
-
*
|
7
|
+
* jQuery UI Droppable 1.14.1
|
8
|
+
* https://jqueryui.com
|
9
9
|
*
|
10
|
-
* Copyright
|
10
|
+
* Copyright OpenJS Foundation and other contributors
|
11
11
|
* Released under the MIT license.
|
12
|
-
*
|
12
|
+
* https://jquery.org/license
|
13
13
|
*/
|
14
14
|
|
15
15
|
//>>label: Droppable
|
16
16
|
//>>group: Interactions
|
17
17
|
//>>description: Enables drop targets for draggable elements.
|
18
|
-
//>>docs:
|
19
|
-
//>>demos:
|
18
|
+
//>>docs: https://api.jqueryui.com/droppable/
|
19
|
+
//>>demos: https://jqueryui.com/droppable/
|
20
20
|
|
21
21
|
( function( factory ) {
|
22
|
+
"use strict";
|
23
|
+
|
22
24
|
if ( typeof define === "function" && define.amd ) {
|
23
25
|
|
24
26
|
// AMD. Register as an anonymous module.
|
@@ -34,10 +36,11 @@
|
|
34
36
|
// Browser globals
|
35
37
|
factory( jQuery );
|
36
38
|
}
|
37
|
-
}( function( $ ) {
|
39
|
+
} )( function( $ ) {
|
40
|
+
"use strict";
|
38
41
|
|
39
42
|
$.widget( "ui.droppable", {
|
40
|
-
version: "1.
|
43
|
+
version: "1.14.1",
|
41
44
|
widgetEventPrefix: "drop",
|
42
45
|
options: {
|
43
46
|
accept: "*",
|
@@ -62,7 +65,7 @@ $.widget( "ui.droppable", {
|
|
62
65
|
this.isover = false;
|
63
66
|
this.isout = true;
|
64
67
|
|
65
|
-
this.accept =
|
68
|
+
this.accept = typeof accept === "function" ? accept : function( d ) {
|
66
69
|
return d.is( accept );
|
67
70
|
};
|
68
71
|
|
@@ -85,7 +88,9 @@ $.widget( "ui.droppable", {
|
|
85
88
|
|
86
89
|
this._addToManager( o.scope );
|
87
90
|
|
88
|
-
o.addClasses
|
91
|
+
if ( o.addClasses ) {
|
92
|
+
this._addClass( "ui-droppable" );
|
93
|
+
}
|
89
94
|
|
90
95
|
},
|
91
96
|
|
@@ -114,7 +119,7 @@ $.widget( "ui.droppable", {
|
|
114
119
|
_setOption: function( key, value ) {
|
115
120
|
|
116
121
|
if ( key === "accept" ) {
|
117
|
-
this.accept =
|
122
|
+
this.accept = typeof value === "function" ? value : function( d ) {
|
118
123
|
return d.is( value );
|
119
124
|
};
|
120
125
|
} else if ( key === "scope" ) {
|
@@ -204,14 +209,15 @@ $.widget( "ui.droppable", {
|
|
204
209
|
inst.accept.call(
|
205
210
|
inst.element[ 0 ], ( draggable.currentItem || draggable.element )
|
206
211
|
) &&
|
207
|
-
intersect(
|
212
|
+
$.ui.intersect(
|
208
213
|
draggable,
|
209
214
|
$.extend( inst, { offset: inst.element.offset() } ),
|
210
215
|
inst.options.tolerance, event
|
211
216
|
)
|
212
217
|
) {
|
213
218
|
childrenIntersection = true;
|
214
|
-
return false;
|
219
|
+
return false;
|
220
|
+
}
|
215
221
|
} );
|
216
222
|
if ( childrenIntersection ) {
|
217
223
|
return false;
|
@@ -240,7 +246,7 @@ $.widget( "ui.droppable", {
|
|
240
246
|
},
|
241
247
|
|
242
248
|
// Extension points just to make backcompat sane and avoid duplicating logic
|
243
|
-
// TODO: Remove in 1.
|
249
|
+
// TODO: Remove in 1.14 along with call to it below
|
244
250
|
_addHoverClass: function() {
|
245
251
|
this._addClass( "ui-droppable-hover" );
|
246
252
|
},
|
@@ -258,7 +264,7 @@ $.widget( "ui.droppable", {
|
|
258
264
|
}
|
259
265
|
} );
|
260
266
|
|
261
|
-
|
267
|
+
$.ui.intersect = ( function() {
|
262
268
|
function isOverAxis( x, reference, size ) {
|
263
269
|
return ( x >= reference ) && ( x < ( reference + size ) );
|
264
270
|
}
|
@@ -366,7 +372,7 @@ $.ui.ddmanager = {
|
|
366
372
|
return;
|
367
373
|
}
|
368
374
|
if ( !this.options.disabled && this.visible &&
|
369
|
-
intersect( draggable, this, this.options.tolerance, event ) ) {
|
375
|
+
$.ui.intersect( draggable, this, this.options.tolerance, event ) ) {
|
370
376
|
dropped = this._drop.call( this, event ) || dropped;
|
371
377
|
}
|
372
378
|
|
@@ -407,7 +413,7 @@ $.ui.ddmanager = {
|
|
407
413
|
}
|
408
414
|
|
409
415
|
var parentInstance, scope, parent,
|
410
|
-
intersects = intersect( draggable, this, this.options.tolerance, event ),
|
416
|
+
intersects = $.ui.intersect( draggable, this, this.options.tolerance, event ),
|
411
417
|
c = !intersects && this.isover ?
|
412
418
|
"isout" :
|
413
419
|
( intersects && !this.isover ? "isover" : null );
|
@@ -462,7 +468,7 @@ $.ui.ddmanager = {
|
|
462
468
|
|
463
469
|
// DEPRECATED
|
464
470
|
// TODO: switch return back to widget declaration at top of file when this is removed
|
465
|
-
if ( $.uiBackCompat
|
471
|
+
if ( $.uiBackCompat === true ) {
|
466
472
|
|
467
473
|
// Backcompat for activeClass and hoverClass options
|
468
474
|
$.widget( "ui.droppable", $.ui.droppable, {
|
@@ -499,4 +505,4 @@ if ( $.uiBackCompat !== false ) {
|
|
499
505
|
|
500
506
|
return $.ui.droppable;
|
501
507
|
|
502
|
-
} )
|
508
|
+
} );
|