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
@@ -1,28 +1,29 @@
|
|
1
1
|
//= require jquery-ui/widgets/button
|
2
2
|
//= require jquery-ui/version
|
3
3
|
//= require jquery-ui/keycode
|
4
|
-
//= require jquery-ui/safe-active-element
|
5
4
|
//= require jquery-ui/widget
|
6
5
|
|
7
6
|
/*!
|
8
|
-
* jQuery UI Spinner 1.
|
9
|
-
*
|
7
|
+
* jQuery UI Spinner 1.14.1
|
8
|
+
* https://jqueryui.com
|
10
9
|
*
|
11
|
-
* Copyright
|
10
|
+
* Copyright OpenJS Foundation and other contributors
|
12
11
|
* Released under the MIT license.
|
13
|
-
*
|
12
|
+
* https://jquery.org/license
|
14
13
|
*/
|
15
14
|
|
16
15
|
//>>label: Spinner
|
17
16
|
//>>group: Widgets
|
18
17
|
//>>description: Displays buttons to easily input numbers via the keyboard or mouse.
|
19
|
-
//>>docs:
|
20
|
-
//>>demos:
|
18
|
+
//>>docs: https://api.jqueryui.com/spinner/
|
19
|
+
//>>demos: https://jqueryui.com/spinner/
|
21
20
|
//>>css.structure: ../../themes/base/core.css
|
22
21
|
//>>css.structure: ../../themes/base/spinner.css
|
23
22
|
//>>css.theme: ../../themes/base/theme.css
|
24
23
|
|
25
24
|
( function( factory ) {
|
25
|
+
"use strict";
|
26
|
+
|
26
27
|
if ( typeof define === "function" && define.amd ) {
|
27
28
|
|
28
29
|
// AMD. Register as an anonymous module.
|
@@ -31,7 +32,6 @@
|
|
31
32
|
"./button",
|
32
33
|
"../version",
|
33
34
|
"../keycode",
|
34
|
-
"../safe-active-element",
|
35
35
|
"../widget"
|
36
36
|
], factory );
|
37
37
|
} else {
|
@@ -39,9 +39,10 @@
|
|
39
39
|
// Browser globals
|
40
40
|
factory( jQuery );
|
41
41
|
}
|
42
|
-
}( function( $ ) {
|
42
|
+
} )( function( $ ) {
|
43
|
+
"use strict";
|
43
44
|
|
44
|
-
function
|
45
|
+
function spinnerModifier( fn ) {
|
45
46
|
return function() {
|
46
47
|
var previous = this.element.val();
|
47
48
|
fn.apply( this, arguments );
|
@@ -53,7 +54,7 @@ function spinnerModifer( fn ) {
|
|
53
54
|
}
|
54
55
|
|
55
56
|
$.widget( "ui.spinner", {
|
56
|
-
version: "1.
|
57
|
+
version: "1.14.1",
|
57
58
|
defaultElement: "<input>",
|
58
59
|
widgetEventPrefix: "spin",
|
59
60
|
options: {
|
@@ -134,11 +135,6 @@ $.widget( "ui.spinner", {
|
|
134
135
|
this.previous = this.element.val();
|
135
136
|
},
|
136
137
|
blur: function( event ) {
|
137
|
-
if ( this.cancelBlur ) {
|
138
|
-
delete this.cancelBlur;
|
139
|
-
return;
|
140
|
-
}
|
141
|
-
|
142
138
|
this._stop();
|
143
139
|
this._refresh();
|
144
140
|
if ( this.previous !== this.element.val() ) {
|
@@ -146,9 +142,13 @@ $.widget( "ui.spinner", {
|
|
146
142
|
}
|
147
143
|
},
|
148
144
|
mousewheel: function( event, delta ) {
|
149
|
-
|
145
|
+
var activeElement = this.document[ 0 ].activeElement;
|
146
|
+
var isActive = this.element[ 0 ] === activeElement;
|
147
|
+
|
148
|
+
if ( !isActive || !delta ) {
|
150
149
|
return;
|
151
150
|
}
|
151
|
+
|
152
152
|
if ( !this.spinning && !this._start( event ) ) {
|
153
153
|
return false;
|
154
154
|
}
|
@@ -170,20 +170,13 @@ $.widget( "ui.spinner", {
|
|
170
170
|
// If the input is focused then this.previous is properly set from
|
171
171
|
// when the input first received focus. If the input is not focused
|
172
172
|
// then we need to set this.previous based on the value before spinning.
|
173
|
-
previous = this.element[ 0 ] ===
|
173
|
+
previous = this.element[ 0 ] === this.document[ 0 ].activeElement ?
|
174
174
|
this.previous : this.element.val();
|
175
175
|
function checkFocus() {
|
176
|
-
var isActive = this.element[ 0 ] ===
|
176
|
+
var isActive = this.element[ 0 ] === this.document[ 0 ].activeElement;
|
177
177
|
if ( !isActive ) {
|
178
178
|
this.element.trigger( "focus" );
|
179
179
|
this.previous = previous;
|
180
|
-
|
181
|
-
// support: IE
|
182
|
-
// IE sets focus asynchronously, so we need to check if focus
|
183
|
-
// moved off of the input because the user clicked on the button.
|
184
|
-
this._delay( function() {
|
185
|
-
this.previous = previous;
|
186
|
-
} );
|
187
180
|
}
|
188
181
|
}
|
189
182
|
|
@@ -191,16 +184,6 @@ $.widget( "ui.spinner", {
|
|
191
184
|
event.preventDefault();
|
192
185
|
checkFocus.call( this );
|
193
186
|
|
194
|
-
// Support: IE
|
195
|
-
// IE doesn't prevent moving focus even with event.preventDefault()
|
196
|
-
// so we set a flag to know when we should ignore the blur event
|
197
|
-
// and check (again) if focus moved off of the input.
|
198
|
-
this.cancelBlur = true;
|
199
|
-
this._delay( function() {
|
200
|
-
delete this.cancelBlur;
|
201
|
-
checkFocus.call( this );
|
202
|
-
} );
|
203
|
-
|
204
187
|
if ( this._start( event ) === false ) {
|
205
188
|
return;
|
206
189
|
}
|
@@ -346,7 +329,7 @@ $.widget( "ui.spinner", {
|
|
346
329
|
var incremental = this.options.incremental;
|
347
330
|
|
348
331
|
if ( incremental ) {
|
349
|
-
return
|
332
|
+
return typeof incremental === "function" ?
|
350
333
|
incremental( i ) :
|
351
334
|
Math.floor( i * i * i / 50000 - i * i / 500 + 17 * i / 200 + 1 );
|
352
335
|
}
|
@@ -444,7 +427,7 @@ $.widget( "ui.spinner", {
|
|
444
427
|
this.buttons.button( value ? "disable" : "enable" );
|
445
428
|
},
|
446
429
|
|
447
|
-
_setOptions:
|
430
|
+
_setOptions: spinnerModifier( function( options ) {
|
448
431
|
this._super( options );
|
449
432
|
} ),
|
450
433
|
|
@@ -511,7 +494,7 @@ $.widget( "ui.spinner", {
|
|
511
494
|
this.uiSpinner.replaceWith( this.element );
|
512
495
|
},
|
513
496
|
|
514
|
-
stepUp:
|
497
|
+
stepUp: spinnerModifier( function( steps ) {
|
515
498
|
this._stepUp( steps );
|
516
499
|
} ),
|
517
500
|
_stepUp: function( steps ) {
|
@@ -521,7 +504,7 @@ $.widget( "ui.spinner", {
|
|
521
504
|
}
|
522
505
|
},
|
523
506
|
|
524
|
-
stepDown:
|
507
|
+
stepDown: spinnerModifier( function( steps ) {
|
525
508
|
this._stepDown( steps );
|
526
509
|
} ),
|
527
510
|
_stepDown: function( steps ) {
|
@@ -531,11 +514,11 @@ $.widget( "ui.spinner", {
|
|
531
514
|
}
|
532
515
|
},
|
533
516
|
|
534
|
-
pageUp:
|
517
|
+
pageUp: spinnerModifier( function( pages ) {
|
535
518
|
this._stepUp( ( pages || 1 ) * this.options.page );
|
536
519
|
} ),
|
537
520
|
|
538
|
-
pageDown:
|
521
|
+
pageDown: spinnerModifier( function( pages ) {
|
539
522
|
this._stepDown( ( pages || 1 ) * this.options.page );
|
540
523
|
} ),
|
541
524
|
|
@@ -543,7 +526,7 @@ $.widget( "ui.spinner", {
|
|
543
526
|
if ( !arguments.length ) {
|
544
527
|
return this._parse( this.element.val() );
|
545
528
|
}
|
546
|
-
|
529
|
+
spinnerModifier( this._value ).call( this, newVal );
|
547
530
|
},
|
548
531
|
|
549
532
|
widget: function() {
|
@@ -553,7 +536,7 @@ $.widget( "ui.spinner", {
|
|
553
536
|
|
554
537
|
// DEPRECATED
|
555
538
|
// TODO: switch return back to widget declaration at top of file when this is removed
|
556
|
-
if ( $.uiBackCompat
|
539
|
+
if ( $.uiBackCompat === true ) {
|
557
540
|
|
558
541
|
// Backcompat for spinner html extension points
|
559
542
|
$.widget( "ui.spinner", $.ui.spinner, {
|
@@ -578,4 +561,4 @@ if ( $.uiBackCompat !== false ) {
|
|
578
561
|
|
579
562
|
return $.ui.spinner;
|
580
563
|
|
581
|
-
} )
|
564
|
+
} );
|
@@ -1,37 +1,35 @@
|
|
1
|
-
//= require jquery-ui/escape-selector
|
2
1
|
//= require jquery-ui/keycode
|
3
|
-
//= require jquery-ui/safe-active-element
|
4
2
|
//= require jquery-ui/unique-id
|
5
3
|
//= require jquery-ui/version
|
6
4
|
//= require jquery-ui/widget
|
7
5
|
|
8
6
|
/*!
|
9
|
-
* jQuery UI Tabs 1.
|
10
|
-
*
|
7
|
+
* jQuery UI Tabs 1.14.1
|
8
|
+
* https://jqueryui.com
|
11
9
|
*
|
12
|
-
* Copyright
|
10
|
+
* Copyright OpenJS Foundation and other contributors
|
13
11
|
* Released under the MIT license.
|
14
|
-
*
|
12
|
+
* https://jquery.org/license
|
15
13
|
*/
|
16
14
|
|
17
15
|
//>>label: Tabs
|
18
16
|
//>>group: Widgets
|
19
17
|
//>>description: Transforms a set of container elements into a tab structure.
|
20
|
-
//>>docs:
|
21
|
-
//>>demos:
|
18
|
+
//>>docs: https://api.jqueryui.com/tabs/
|
19
|
+
//>>demos: https://jqueryui.com/tabs/
|
22
20
|
//>>css.structure: ../../themes/base/core.css
|
23
21
|
//>>css.structure: ../../themes/base/tabs.css
|
24
22
|
//>>css.theme: ../../themes/base/theme.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.
|
30
30
|
define( [
|
31
31
|
"jquery",
|
32
|
-
"../escape-selector",
|
33
32
|
"../keycode",
|
34
|
-
"../safe-active-element",
|
35
33
|
"../unique-id",
|
36
34
|
"../version",
|
37
35
|
"../widget"
|
@@ -41,10 +39,11 @@
|
|
41
39
|
// Browser globals
|
42
40
|
factory( jQuery );
|
43
41
|
}
|
44
|
-
}( function( $ ) {
|
42
|
+
} )( function( $ ) {
|
43
|
+
"use strict";
|
45
44
|
|
46
45
|
$.widget( "ui.tabs", {
|
47
|
-
version: "1.
|
46
|
+
version: "1.14.1",
|
48
47
|
delay: 300,
|
49
48
|
options: {
|
50
49
|
active: null,
|
@@ -102,8 +101,8 @@ $.widget( "ui.tabs", {
|
|
102
101
|
|
103
102
|
// Take disabling tabs via class attribute from HTML
|
104
103
|
// into account and update option properly.
|
105
|
-
if (
|
106
|
-
options.disabled = $.
|
104
|
+
if ( Array.isArray( options.disabled ) ) {
|
105
|
+
options.disabled = $.uniqueSort( options.disabled.concat(
|
107
106
|
$.map( this.tabs.filter( ".ui-state-disabled" ), function( li ) {
|
108
107
|
return that.tabs.index( li );
|
109
108
|
} )
|
@@ -127,14 +126,14 @@ $.widget( "ui.tabs", {
|
|
127
126
|
_initialActive: function() {
|
128
127
|
var active = this.options.active,
|
129
128
|
collapsible = this.options.collapsible,
|
130
|
-
|
129
|
+
locationHashDecoded = decodeURIComponent( location.hash.substring( 1 ) );
|
131
130
|
|
132
131
|
if ( active === null ) {
|
133
132
|
|
134
133
|
// check the fragment identifier in the URL
|
135
|
-
if (
|
134
|
+
if ( locationHashDecoded ) {
|
136
135
|
this.tabs.each( function( i, tab ) {
|
137
|
-
if ( $( tab ).attr( "aria-controls" ) ===
|
136
|
+
if ( $( tab ).attr( "aria-controls" ) === locationHashDecoded ) {
|
138
137
|
active = i;
|
139
138
|
return false;
|
140
139
|
}
|
@@ -176,7 +175,7 @@ $.widget( "ui.tabs", {
|
|
176
175
|
},
|
177
176
|
|
178
177
|
_tabKeydown: function( event ) {
|
179
|
-
var focusedTab = $(
|
178
|
+
var focusedTab = $( this.document[ 0 ].activeElement ).closest( "li" ),
|
180
179
|
selectedIndex = this.tabs.index( focusedTab ),
|
181
180
|
goingForward = true;
|
182
181
|
|
@@ -318,10 +317,6 @@ $.widget( "ui.tabs", {
|
|
318
317
|
}
|
319
318
|
},
|
320
319
|
|
321
|
-
_sanitizeSelector: function( hash ) {
|
322
|
-
return hash ? hash.replace( /[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g, "\\$&" ) : "";
|
323
|
-
},
|
324
|
-
|
325
320
|
refresh: function() {
|
326
321
|
var options = this.options,
|
327
322
|
lis = this.tablist.children( ":has(a[href])" );
|
@@ -413,18 +408,6 @@ $.widget( "ui.tabs", {
|
|
413
408
|
if ( $( this ).is( ".ui-state-disabled" ) ) {
|
414
409
|
event.preventDefault();
|
415
410
|
}
|
416
|
-
} )
|
417
|
-
|
418
|
-
// Support: IE <9
|
419
|
-
// Preventing the default action in mousedown doesn't prevent IE
|
420
|
-
// from focusing the element, so if the anchor gets focused, blur.
|
421
|
-
// We don't have to worry about focusing the previously focused
|
422
|
-
// element since clicking on a non-focusable element should focus
|
423
|
-
// the body anyway.
|
424
|
-
.on( "focus" + this.eventNamespace, ".ui-tabs-anchor", function() {
|
425
|
-
if ( $( this ).closest( "li" ).is( ".ui-state-disabled" ) ) {
|
426
|
-
this.blur();
|
427
|
-
}
|
428
411
|
} );
|
429
412
|
|
430
413
|
this.tabs = this.tablist.find( "> li:has(a[href])" )
|
@@ -438,7 +421,6 @@ $.widget( "ui.tabs", {
|
|
438
421
|
return $( "a", this )[ 0 ];
|
439
422
|
} )
|
440
423
|
.attr( {
|
441
|
-
role: "presentation",
|
442
424
|
tabIndex: -1
|
443
425
|
} );
|
444
426
|
this._addClass( this.anchors, "ui-tabs-anchor" );
|
@@ -453,9 +435,9 @@ $.widget( "ui.tabs", {
|
|
453
435
|
|
454
436
|
// Inline tab
|
455
437
|
if ( that._isLocal( anchor ) ) {
|
456
|
-
selector = anchor.hash;
|
438
|
+
selector = decodeURIComponent( anchor.hash );
|
457
439
|
panelId = selector.substring( 1 );
|
458
|
-
panel = that.element.find(
|
440
|
+
panel = that.element.find( "#" + CSS.escape( panelId ) );
|
459
441
|
|
460
442
|
// remote tab
|
461
443
|
} else {
|
@@ -510,7 +492,7 @@ $.widget( "ui.tabs", {
|
|
510
492
|
_setOptionDisabled: function( disabled ) {
|
511
493
|
var currentItem, li, i;
|
512
494
|
|
513
|
-
if (
|
495
|
+
if ( Array.isArray( disabled ) ) {
|
514
496
|
if ( !disabled.length ) {
|
515
497
|
disabled = false;
|
516
498
|
} else if ( disabled.length === this.anchors.length ) {
|
@@ -741,7 +723,7 @@ $.widget( "ui.tabs", {
|
|
741
723
|
// meta-function to give users option to provide a href string instead of a numerical index.
|
742
724
|
if ( typeof index === "string" ) {
|
743
725
|
index = this.anchors.index( this.anchors.filter( "[href$='" +
|
744
|
-
|
726
|
+
CSS.escape( index ) + "']" ) );
|
745
727
|
}
|
746
728
|
|
747
729
|
return index;
|
@@ -798,7 +780,7 @@ $.widget( "ui.tabs", {
|
|
798
780
|
disabled = false;
|
799
781
|
} else {
|
800
782
|
index = this._getIndex( index );
|
801
|
-
if (
|
783
|
+
if ( Array.isArray( disabled ) ) {
|
802
784
|
disabled = $.map( disabled, function( num ) {
|
803
785
|
return num !== index ? num : null;
|
804
786
|
} );
|
@@ -824,7 +806,7 @@ $.widget( "ui.tabs", {
|
|
824
806
|
if ( $.inArray( index, disabled ) !== -1 ) {
|
825
807
|
return;
|
826
808
|
}
|
827
|
-
if (
|
809
|
+
if ( Array.isArray( disabled ) ) {
|
828
810
|
disabled = $.merge( [ index ], disabled ).sort();
|
829
811
|
} else {
|
830
812
|
disabled = [ index ];
|
@@ -863,32 +845,19 @@ $.widget( "ui.tabs", {
|
|
863
845
|
|
864
846
|
this.xhr = $.ajax( this._ajaxSettings( anchor, event, eventData ) );
|
865
847
|
|
866
|
-
|
867
|
-
// jQuery <1.8 returns false if the request is canceled in beforeSend,
|
868
|
-
// but as of 1.8, $.ajax() always returns a jqXHR object.
|
869
|
-
if ( this.xhr && this.xhr.statusText !== "canceled" ) {
|
848
|
+
if ( this.xhr.statusText !== "canceled" ) {
|
870
849
|
this._addClass( tab, "ui-tabs-loading" );
|
871
850
|
panel.attr( "aria-busy", "true" );
|
872
851
|
|
873
852
|
this.xhr
|
874
853
|
.done( function( response, status, jqXHR ) {
|
854
|
+
panel.html( response );
|
855
|
+
that._trigger( "load", event, eventData );
|
875
856
|
|
876
|
-
|
877
|
-
// http://bugs.jquery.com/ticket/11778
|
878
|
-
setTimeout( function() {
|
879
|
-
panel.html( response );
|
880
|
-
that._trigger( "load", event, eventData );
|
881
|
-
|
882
|
-
complete( jqXHR, status );
|
883
|
-
}, 1 );
|
857
|
+
complete( jqXHR, status );
|
884
858
|
} )
|
885
859
|
.fail( function( jqXHR, status ) {
|
886
|
-
|
887
|
-
// support: jQuery <1.8
|
888
|
-
// http://bugs.jquery.com/ticket/11778
|
889
|
-
setTimeout( function() {
|
890
|
-
complete( jqXHR, status );
|
891
|
-
}, 1 );
|
860
|
+
complete( jqXHR, status );
|
892
861
|
} );
|
893
862
|
}
|
894
863
|
},
|
@@ -896,10 +865,7 @@ $.widget( "ui.tabs", {
|
|
896
865
|
_ajaxSettings: function( anchor, event, eventData ) {
|
897
866
|
var that = this;
|
898
867
|
return {
|
899
|
-
|
900
|
-
// Support: IE <11 only
|
901
|
-
// Strip any hash that exists to prevent errors with the Ajax request
|
902
|
-
url: anchor.attr( "href" ).replace( /#.*$/, "" ),
|
868
|
+
url: anchor.attr( "href" ),
|
903
869
|
beforeSend: function( jqXHR, settings ) {
|
904
870
|
return that._trigger( "beforeLoad", event,
|
905
871
|
$.extend( { jqXHR: jqXHR, ajaxSettings: settings }, eventData ) );
|
@@ -909,13 +875,13 @@ $.widget( "ui.tabs", {
|
|
909
875
|
|
910
876
|
_getPanelForTab: function( tab ) {
|
911
877
|
var id = $( tab ).attr( "aria-controls" );
|
912
|
-
return this.element.find(
|
878
|
+
return this.element.find( "#" + CSS.escape( id ) );
|
913
879
|
}
|
914
880
|
} );
|
915
881
|
|
916
882
|
// DEPRECATED
|
917
883
|
// TODO: Switch return back to widget declaration at top of file when this is removed
|
918
|
-
if ( $.uiBackCompat
|
884
|
+
if ( $.uiBackCompat === true ) {
|
919
885
|
|
920
886
|
// Backcompat for ui-tab class (now ui-tabs-tab)
|
921
887
|
$.widget( "ui.tabs", $.ui.tabs, {
|
@@ -928,4 +894,4 @@ if ( $.uiBackCompat !== false ) {
|
|
928
894
|
|
929
895
|
return $.ui.tabs;
|
930
896
|
|
931
|
-
} )
|
897
|
+
} );
|
@@ -5,24 +5,26 @@
|
|
5
5
|
//= require jquery-ui/widget
|
6
6
|
|
7
7
|
/*!
|
8
|
-
* jQuery UI Tooltip 1.
|
9
|
-
*
|
8
|
+
* jQuery UI Tooltip 1.14.1
|
9
|
+
* https://jqueryui.com
|
10
10
|
*
|
11
|
-
* Copyright
|
11
|
+
* Copyright OpenJS Foundation and other contributors
|
12
12
|
* Released under the MIT license.
|
13
|
-
*
|
13
|
+
* https://jquery.org/license
|
14
14
|
*/
|
15
15
|
|
16
16
|
//>>label: Tooltip
|
17
17
|
//>>group: Widgets
|
18
18
|
//>>description: Shows additional information for any element on hover or focus.
|
19
|
-
//>>docs:
|
20
|
-
//>>demos:
|
19
|
+
//>>docs: https://api.jqueryui.com/tooltip/
|
20
|
+
//>>demos: https://jqueryui.com/tooltip/
|
21
21
|
//>>css.structure: ../../themes/base/core.css
|
22
22
|
//>>css.structure: ../../themes/base/tooltip.css
|
23
23
|
//>>css.theme: ../../themes/base/theme.css
|
24
24
|
|
25
25
|
( function( factory ) {
|
26
|
+
"use strict";
|
27
|
+
|
26
28
|
if ( typeof define === "function" && define.amd ) {
|
27
29
|
|
28
30
|
// AMD. Register as an anonymous module.
|
@@ -39,19 +41,17 @@
|
|
39
41
|
// Browser globals
|
40
42
|
factory( jQuery );
|
41
43
|
}
|
42
|
-
}( function( $ ) {
|
44
|
+
} )( function( $ ) {
|
45
|
+
"use strict";
|
43
46
|
|
44
47
|
$.widget( "ui.tooltip", {
|
45
|
-
version: "1.
|
48
|
+
version: "1.14.1",
|
46
49
|
options: {
|
47
50
|
classes: {
|
48
51
|
"ui-tooltip": "ui-corner-all ui-widget-shadow"
|
49
52
|
},
|
50
53
|
content: function() {
|
51
|
-
|
52
|
-
// support: IE<9, Opera in jQuery <1.7
|
53
|
-
// .text() can't accept undefined, so coerce to a string
|
54
|
-
var title = $( this ).attr( "title" ) || "";
|
54
|
+
var title = $( this ).attr( "title" );
|
55
55
|
|
56
56
|
// Escape title, since we're going from an attribute to raw HTML
|
57
57
|
return $( "<a>" ).text( title ).html();
|
@@ -78,7 +78,7 @@ $.widget( "ui.tooltip", {
|
|
78
78
|
describedby.push( id );
|
79
79
|
elem
|
80
80
|
.data( "ui-tooltip-id", id )
|
81
|
-
.attr( "aria-describedby",
|
81
|
+
.attr( "aria-describedby", String.prototype.trim.call( describedby.join( " " ) ) );
|
82
82
|
},
|
83
83
|
|
84
84
|
_removeDescribedBy: function( elem ) {
|
@@ -91,7 +91,7 @@ $.widget( "ui.tooltip", {
|
|
91
91
|
}
|
92
92
|
|
93
93
|
elem.removeData( "ui-tooltip-id" );
|
94
|
-
describedby =
|
94
|
+
describedby = String.prototype.trim.call( describedby.join( " " ) );
|
95
95
|
if ( describedby ) {
|
96
96
|
elem.attr( "aria-describedby", describedby );
|
97
97
|
} else {
|
@@ -233,25 +233,20 @@ $.widget( "ui.tooltip", {
|
|
233
233
|
|
234
234
|
content = contentOption.call( target[ 0 ], function( response ) {
|
235
235
|
|
236
|
-
//
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
// Ignore async response if tooltip was closed already
|
241
|
-
if ( !target.data( "ui-tooltip-open" ) ) {
|
242
|
-
return;
|
243
|
-
}
|
236
|
+
// Ignore async response if tooltip was closed already
|
237
|
+
if ( !target.data( "ui-tooltip-open" ) ) {
|
238
|
+
return;
|
239
|
+
}
|
244
240
|
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
} );
|
241
|
+
// JQuery creates a special event for focusin when it doesn't
|
242
|
+
// exist natively. To improve performance, the native event
|
243
|
+
// object is reused and the type is changed. Therefore, we can't
|
244
|
+
// rely on the type being correct after the event finished
|
245
|
+
// bubbling, so we set it back to the previous value. (#8740)
|
246
|
+
if ( event ) {
|
247
|
+
event.type = eventType;
|
248
|
+
}
|
249
|
+
that._open( event, target, response );
|
255
250
|
} );
|
256
251
|
if ( content ) {
|
257
252
|
this._open( event, target, content );
|
@@ -337,7 +332,7 @@ $.widget( "ui.tooltip", {
|
|
337
332
|
position( positionOption.of );
|
338
333
|
clearInterval( delayedShow );
|
339
334
|
}
|
340
|
-
},
|
335
|
+
}, 13 );
|
341
336
|
}
|
342
337
|
|
343
338
|
this._trigger( "open", event, { tooltip: tooltip } );
|
@@ -358,7 +353,10 @@ $.widget( "ui.tooltip", {
|
|
358
353
|
// tooltips will handle this in destroy.
|
359
354
|
if ( target[ 0 ] !== this.element[ 0 ] ) {
|
360
355
|
events.remove = function() {
|
361
|
-
|
356
|
+
var targetElement = this._find( target );
|
357
|
+
if ( targetElement ) {
|
358
|
+
this._removeTooltip( targetElement.tooltip );
|
359
|
+
}
|
362
360
|
};
|
363
361
|
}
|
364
362
|
|
@@ -458,6 +456,10 @@ $.widget( "ui.tooltip", {
|
|
458
456
|
},
|
459
457
|
|
460
458
|
_removeTooltip: function( tooltip ) {
|
459
|
+
|
460
|
+
// Clear the interval for delayed tracking tooltips
|
461
|
+
clearInterval( this.delayedShow );
|
462
|
+
|
461
463
|
tooltip.remove();
|
462
464
|
delete this.tooltips[ tooltip.attr( "id" ) ];
|
463
465
|
},
|
@@ -504,7 +506,7 @@ $.widget( "ui.tooltip", {
|
|
504
506
|
|
505
507
|
// DEPRECATED
|
506
508
|
// TODO: Switch return back to widget declaration at top of file when this is removed
|
507
|
-
if ( $.uiBackCompat
|
509
|
+
if ( $.uiBackCompat === true ) {
|
508
510
|
|
509
511
|
// Backcompat for tooltipClass option
|
510
512
|
$.widget( "ui.tooltip", $.ui.tooltip, {
|
@@ -523,4 +525,4 @@ if ( $.uiBackCompat !== false ) {
|
|
523
525
|
|
524
526
|
return $.ui.tooltip;
|
525
527
|
|
526
|
-
} )
|
528
|
+
} );
|
@@ -1,19 +1,14 @@
|
|
1
|
-
//= require jquery-ui/core
|
2
1
|
//= require jquery-ui/data
|
3
2
|
//= require jquery-ui/disable-selection
|
4
3
|
//= require jquery-ui/effect
|
5
|
-
//= require jquery-ui/escape-selector
|
6
4
|
//= require jquery-ui/focusable
|
7
5
|
//= require jquery-ui/form-reset-mixin
|
8
|
-
//= require jquery-ui/
|
9
|
-
//= require jquery-ui/
|
10
|
-
//= require jquery-ui/jquery-1-7
|
6
|
+
//= require jquery-ui/jquery-patch
|
7
|
+
//= require jquery-ui/jquery-var-for-color
|
11
8
|
//= require jquery-ui/keycode
|
12
9
|
//= require jquery-ui/labels
|
13
10
|
//= require jquery-ui/plugin
|
14
11
|
//= require jquery-ui/position
|
15
|
-
//= require jquery-ui/safe-active-element
|
16
|
-
//= require jquery-ui/safe-blur
|
17
12
|
//= require jquery-ui/scroll-parent
|
18
13
|
//= require jquery-ui/tabbable
|
19
14
|
//= require jquery-ui/unique-id
|
@@ -54,3 +49,4 @@
|
|
54
49
|
//= require jquery-ui/widgets/spinner
|
55
50
|
//= require jquery-ui/widgets/tabs
|
56
51
|
//= require jquery-ui/widgets/tooltip
|
52
|
+
//= require jquery-ui/vendor/jquery-color/jquery.color
|
@@ -1,12 +1,12 @@
|
|
1
1
|
/*!
|
2
|
-
* jQuery UI Accordion 1.
|
3
|
-
*
|
2
|
+
* jQuery UI Accordion 1.14.1
|
3
|
+
* https://jqueryui.com
|
4
4
|
*
|
5
|
-
* Copyright
|
5
|
+
* Copyright OpenJS Foundation and other contributors
|
6
6
|
* Released under the MIT license.
|
7
|
-
*
|
7
|
+
* https://jquery.org/license
|
8
8
|
*
|
9
|
-
*
|
9
|
+
* https://api.jqueryui.com/accordion/#theming
|
10
10
|
*/
|
11
11
|
/*
|
12
12
|
*= require jquery-ui/theme
|
@@ -1,12 +1,12 @@
|
|
1
1
|
/*!
|
2
|
-
* jQuery UI CSS Framework 1.
|
3
|
-
*
|
2
|
+
* jQuery UI CSS Framework 1.14.1
|
3
|
+
* https://jqueryui.com
|
4
4
|
*
|
5
|
-
* Copyright
|
5
|
+
* Copyright OpenJS Foundation and other contributors
|
6
6
|
* Released under the MIT license.
|
7
|
-
*
|
7
|
+
* https://jquery.org/license
|
8
8
|
*
|
9
|
-
*
|
9
|
+
* https://api.jqueryui.com/category/theming/
|
10
10
|
*/
|
11
11
|
/*
|
12
12
|
*= require jquery-ui/base
|