activeadmin 3.3.0 → 3.5.1
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 +4 -4
- data/CHANGELOG.md +27 -0
- data/app/assets/javascripts/active_admin/base.js +11 -12
- data/app/javascript/active_admin/initializers/datepicker.js +3 -0
- data/app/javascript/active_admin/lib/modal-dialog.js +1 -1
- data/lib/active_admin/dependency.rb +1 -1
- data/lib/active_admin/resource.rb +8 -2
- data/lib/active_admin/router.rb +5 -5
- data/lib/active_admin/version.rb +1 -1
- data/vendor/assets/javascripts/jquery-ui/data.js +6 -12
- data/vendor/assets/javascripts/jquery-ui/disable-selection.js +1 -1
- data/vendor/assets/javascripts/jquery-ui/focusable.js +3 -13
- data/vendor/assets/javascripts/jquery-ui/form-reset-mixin.js +2 -4
- data/vendor/assets/javascripts/jquery-ui/keycode.js +1 -1
- data/vendor/assets/javascripts/jquery-ui/labels.js +4 -5
- data/vendor/assets/javascripts/jquery-ui/position.js +1 -1
- data/vendor/assets/javascripts/jquery-ui/scroll-parent.js +1 -1
- data/vendor/assets/javascripts/jquery-ui/tabbable.js +1 -1
- data/vendor/assets/javascripts/jquery-ui/unique-id.js +1 -1
- data/vendor/assets/javascripts/jquery-ui/version.js +1 -1
- data/vendor/assets/javascripts/jquery-ui/widget.js +4 -1
- data/vendor/assets/javascripts/jquery-ui/widgets/button.js +6 -6
- data/vendor/assets/javascripts/jquery-ui/widgets/checkboxradio.js +4 -4
- data/vendor/assets/javascripts/jquery-ui/widgets/controlgroup.js +2 -2
- data/vendor/assets/javascripts/jquery-ui/widgets/datepicker.js +11 -14
- data/vendor/assets/javascripts/jquery-ui/widgets/dialog.js +20 -34
- data/vendor/assets/javascripts/jquery-ui/widgets/draggable.js +4 -8
- data/vendor/assets/javascripts/jquery-ui/widgets/mouse.js +16 -31
- data/vendor/assets/javascripts/jquery-ui/widgets/resizable.js +73 -20
- data/vendor/assets/javascripts/jquery-ui/widgets/sortable.js +9 -17
- data/vendor/assets/javascripts/jquery-ui/widgets/tabs.js +53 -66
- metadata +4 -11
- data/vendor/assets/javascripts/jquery-ui/form.js +0 -25
- data/vendor/assets/javascripts/jquery-ui/ie.js +0 -20
- data/vendor/assets/javascripts/jquery-ui/safe-active-element.js +0 -46
- data/vendor/assets/javascripts/jquery-ui/safe-blur.js +0 -27
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 11f17bd91f5f20e866dc189cbf0f191e5fbdf2ad192c00db190ca3538f852dd1
|
|
4
|
+
data.tar.gz: 816caf26faae1c3b204266d2b8ec6e4b80ee23efffe75657baa52ccadb60c383
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 45b21c4efe22df18b7a6a937973bc80280147311cd6ef8b4eed2e2ead031505bbe5418933952c8ca1d72c1d6f6cb99ad0012447cd08c8a86ff8f86680b136904
|
|
7
|
+
data.tar.gz: d516429f775372f7e55be58d9dcd6093b6be85a79f9c0de3819b3a5b41acb3adce80f788687655b05dd69f44d35ce695d06496a8a7b2a1f708e6dec3261649b3
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,27 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
## 3.5.1 [☰](https://github.com/activeadmin/activeadmin/compare/v3.5.0..v3.5.1)
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
* Fix UI issue in modal dialog [#8978] by @tagliala
|
|
10
|
+
|
|
11
|
+
## 3.5.0 [☰](https://github.com/activeadmin/activeadmin/compare/v3.4.0..v3.5.0)
|
|
12
|
+
|
|
13
|
+
### Enhancements
|
|
14
|
+
|
|
15
|
+
* Backport Devise 5 support [#8964] by @tagliala
|
|
16
|
+
* Backport Drop legacy connection support [#8965] by @tagliala
|
|
17
|
+
|
|
18
|
+
### Dependency Changes
|
|
19
|
+
|
|
20
|
+
* Update vendored jQuery UI to 1.14.2 [#8670] by @tagliala (thanks to @tobischo)
|
|
21
|
+
|
|
22
|
+
## 3.4.0 [☰](https://github.com/activeadmin/activeadmin/compare/v3.3.0..v3.4.0)
|
|
23
|
+
|
|
24
|
+
* Add Rails 8.1 compatibility and drop Ruby < 3.0 support [#8837] by [@tagliala]
|
|
25
|
+
|
|
5
26
|
## 3.3.0 [☰](https://github.com/activeadmin/activeadmin/compare/v3.2.5..v3.3.0)
|
|
6
27
|
|
|
7
28
|
### Enhancements
|
|
@@ -984,6 +1005,11 @@ Please check [0-6-stable] for previous changes.
|
|
|
984
1005
|
[#8614]: https://github.com/activeadmin/activeadmin/pull/8614
|
|
985
1006
|
[#8650]: https://github.com/activeadmin/activeadmin/pull/8650
|
|
986
1007
|
[#8652]: https://github.com/activeadmin/activeadmin/pull/8652
|
|
1008
|
+
[#8670]: https://github.com/activeadmin/activeadmin/pull/8670
|
|
1009
|
+
[#8837]: https://github.com/activeadmin/activeadmin/pull/8837
|
|
1010
|
+
[#8964]: https://github.com/activeadmin/activeadmin/pull/8964
|
|
1011
|
+
[#8965]: https://github.com/activeadmin/activeadmin/pull/8965
|
|
1012
|
+
[#8978]: https://github.com/activeadmin/activeadmin/pull/8978
|
|
987
1013
|
|
|
988
1014
|
[@1000ship]: https://github.com/1000ship
|
|
989
1015
|
[@5t111111]: https://github.com/5t111111
|
|
@@ -1108,6 +1134,7 @@ Please check [0-6-stable] for previous changes.
|
|
|
1108
1134
|
[@timoschilling]: https://github.com/timoschilling
|
|
1109
1135
|
[@TimPetricola]: https://github.com/TimPetricola
|
|
1110
1136
|
[@timwis]: https://github.com/timwis
|
|
1137
|
+
[@tobischo]: https://github.com/tobischo
|
|
1111
1138
|
[@tomgilligan]: https://github.com/tomgilligan
|
|
1112
1139
|
[@TonyArra]: https://github.com/TonyArra
|
|
1113
1140
|
[@tordans]: https://github.com/tordans
|
|
@@ -69,7 +69,9 @@
|
|
|
69
69
|
open: function open(_event, _ui) {
|
|
70
70
|
$("body").trigger("modal_dialog:after_open", [ form ]);
|
|
71
71
|
},
|
|
72
|
-
|
|
72
|
+
classes: {
|
|
73
|
+
"ui-dialog": "active_admin_dialog"
|
|
74
|
+
},
|
|
73
75
|
buttons: {
|
|
74
76
|
OK: function OK() {
|
|
75
77
|
callback($(this).serializeObject());
|
|
@@ -187,6 +189,7 @@
|
|
|
187
189
|
};
|
|
188
190
|
var options = input.data("datepicker-options");
|
|
189
191
|
input.datepicker($.extend(defaults, options));
|
|
192
|
+
input.datepicker("show");
|
|
190
193
|
});
|
|
191
194
|
})(jQuery);
|
|
192
195
|
var DropdownMenu = function() {
|
|
@@ -468,23 +471,19 @@
|
|
|
468
471
|
$.fn["perPage"] = PerPage._jQueryInterface;
|
|
469
472
|
$.fn["perPage"].Constructor = PerPage;
|
|
470
473
|
})(jQuery);
|
|
471
|
-
function _inheritsLoose(
|
|
472
|
-
|
|
473
|
-
subClass.prototype.constructor = subClass;
|
|
474
|
-
_setPrototypeOf(subClass, superClass);
|
|
474
|
+
function _inheritsLoose(t, o) {
|
|
475
|
+
t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
|
|
475
476
|
}
|
|
476
|
-
function _setPrototypeOf(
|
|
477
|
-
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
};
|
|
481
|
-
return _setPrototypeOf(o, p);
|
|
477
|
+
function _setPrototypeOf(t, e) {
|
|
478
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) {
|
|
479
|
+
return t.__proto__ = e, t;
|
|
480
|
+
}, _setPrototypeOf(t, e);
|
|
482
481
|
}
|
|
483
482
|
var TableCheckboxToggler = function(_CheckboxToggler) {
|
|
484
|
-
_inheritsLoose(TableCheckboxToggler, _CheckboxToggler);
|
|
485
483
|
function TableCheckboxToggler() {
|
|
486
484
|
return _CheckboxToggler.apply(this, arguments) || this;
|
|
487
485
|
}
|
|
486
|
+
_inheritsLoose(TableCheckboxToggler, _CheckboxToggler);
|
|
488
487
|
var _proto = TableCheckboxToggler.prototype;
|
|
489
488
|
_proto._bind = function _bind() {
|
|
490
489
|
var _this = this;
|
|
@@ -47,7 +47,7 @@ function ModalDialog(message, inputs, callback){
|
|
|
47
47
|
open(_event, _ui) {
|
|
48
48
|
$('body').trigger('modal_dialog:after_open', [form]);
|
|
49
49
|
},
|
|
50
|
-
|
|
50
|
+
classes: { 'ui-dialog': 'active_admin_dialog' },
|
|
51
51
|
buttons: {
|
|
52
52
|
OK() {
|
|
53
53
|
callback($(this).serializeObject());
|
|
@@ -70,7 +70,7 @@ module ActiveAdmin
|
|
|
70
70
|
module Base
|
|
71
71
|
def initialize(namespace, resource_class, options = {})
|
|
72
72
|
@namespace = namespace
|
|
73
|
-
@resource_class_name = "::#{resource_class.name}"
|
|
73
|
+
@resource_class_name = resource_class.respond_to?(:name) ? "::#{resource_class.name}" : resource_class.to_s
|
|
74
74
|
@options = options
|
|
75
75
|
@sort_order = options[:sort_order]
|
|
76
76
|
@member_actions = []
|
|
@@ -119,7 +119,13 @@ module ActiveAdmin
|
|
|
119
119
|
end
|
|
120
120
|
|
|
121
121
|
def resource_quoted_column_name(column)
|
|
122
|
-
resource_class.
|
|
122
|
+
if resource_class.respond_to?(:with_connection)
|
|
123
|
+
resource_class.with_connection do |connection|
|
|
124
|
+
connection.quote_column_name(column)
|
|
125
|
+
end
|
|
126
|
+
else
|
|
127
|
+
resource_class.connection.quote_column_name(column)
|
|
128
|
+
end
|
|
123
129
|
end
|
|
124
130
|
|
|
125
131
|
# Clears all the member actions this resource knows about
|
data/lib/active_admin/router.rb
CHANGED
|
@@ -21,7 +21,7 @@ module ActiveAdmin
|
|
|
21
21
|
if namespace.root?
|
|
22
22
|
router.root namespace.root_to_options.merge(to: namespace.root_to)
|
|
23
23
|
else
|
|
24
|
-
router.namespace namespace.name, namespace.route_options.dup do
|
|
24
|
+
router.namespace namespace.name, **namespace.route_options.dup do
|
|
25
25
|
router.root namespace.root_to_options.merge(to: namespace.root_to, as: :root)
|
|
26
26
|
end
|
|
27
27
|
end
|
|
@@ -65,7 +65,7 @@ module ActiveAdmin
|
|
|
65
65
|
|
|
66
66
|
def page_routes(config)
|
|
67
67
|
page = config.underscored_resource_name
|
|
68
|
-
router.get "/#{page}"
|
|
68
|
+
router.get "/#{page}", to: "#{page}#index"
|
|
69
69
|
config.page_actions.each do |action|
|
|
70
70
|
Array.wrap(action.http_verb).each do |verb|
|
|
71
71
|
build_route(verb, "/#{page}/#{action.name}" => "#{page}##{action.name}")
|
|
@@ -91,8 +91,8 @@ module ActiveAdmin
|
|
|
91
91
|
build_route(action.http_verb, action.name)
|
|
92
92
|
end
|
|
93
93
|
|
|
94
|
-
def build_route(verbs,
|
|
95
|
-
Array.wrap(verbs).each { |verb| router.send(verb,
|
|
94
|
+
def build_route(verbs, ...)
|
|
95
|
+
Array.wrap(verbs).each { |verb| router.send(verb, ...) }
|
|
96
96
|
end
|
|
97
97
|
|
|
98
98
|
def define_belongs_to_routes(config)
|
|
@@ -107,7 +107,7 @@ module ActiveAdmin
|
|
|
107
107
|
end
|
|
108
108
|
|
|
109
109
|
def define_namespace(config)
|
|
110
|
-
router.namespace config.namespace.name, config.namespace.route_options.dup do
|
|
110
|
+
router.namespace config.namespace.name, **config.namespace.route_options.dup do
|
|
111
111
|
define_routes(config)
|
|
112
112
|
end
|
|
113
113
|
end
|
data/lib/active_admin/version.rb
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
//= require jquery-ui/version
|
|
2
2
|
|
|
3
3
|
/*!
|
|
4
|
-
* jQuery UI :data 1.
|
|
4
|
+
* jQuery UI :data 1.14.2
|
|
5
5
|
* https://jqueryui.com
|
|
6
6
|
*
|
|
7
7
|
* Copyright OpenJS Foundation and other contributors
|
|
@@ -30,16 +30,10 @@
|
|
|
30
30
|
"use strict";
|
|
31
31
|
|
|
32
32
|
return $.extend( $.expr.pseudos, {
|
|
33
|
-
data: $.expr.createPseudo
|
|
34
|
-
|
|
35
|
-
return
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
} ) :
|
|
39
|
-
|
|
40
|
-
// Support: jQuery <1.8
|
|
41
|
-
function( elem, i, match ) {
|
|
42
|
-
return !!$.data( elem, match[ 3 ] );
|
|
43
|
-
}
|
|
33
|
+
data: $.expr.createPseudo( function( dataName ) {
|
|
34
|
+
return function( elem ) {
|
|
35
|
+
return !!$.data( elem, dataName );
|
|
36
|
+
};
|
|
37
|
+
} )
|
|
44
38
|
} );
|
|
45
39
|
} );
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
//= require jquery-ui/version
|
|
2
2
|
|
|
3
3
|
/*!
|
|
4
|
-
* jQuery UI Focusable 1.
|
|
4
|
+
* jQuery UI Focusable 1.14.2
|
|
5
5
|
* https://jqueryui.com
|
|
6
6
|
*
|
|
7
7
|
* Copyright OpenJS Foundation and other contributors
|
|
@@ -64,20 +64,10 @@ $.ui.focusable = function( element, hasTabindex ) {
|
|
|
64
64
|
focusableIfVisible = hasTabindex;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
return focusableIfVisible && $( element ).is( ":visible" ) &&
|
|
67
|
+
return focusableIfVisible && $( element ).is( ":visible" ) &&
|
|
68
|
+
$( element ).css( "visibility" ) === "visible";
|
|
68
69
|
};
|
|
69
70
|
|
|
70
|
-
// Support: IE 8 only
|
|
71
|
-
// IE 8 doesn't resolve inherit to visible/hidden for computed values
|
|
72
|
-
function visible( element ) {
|
|
73
|
-
var visibility = element.css( "visibility" );
|
|
74
|
-
while ( visibility === "inherit" ) {
|
|
75
|
-
element = element.parent();
|
|
76
|
-
visibility = element.css( "visibility" );
|
|
77
|
-
}
|
|
78
|
-
return visibility === "visible";
|
|
79
|
-
}
|
|
80
|
-
|
|
81
71
|
$.extend( $.expr.pseudos, {
|
|
82
72
|
focusable: function( element ) {
|
|
83
73
|
return $.ui.focusable( element, $.attr( element, "tabindex" ) != null );
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
//= require jquery-ui/form
|
|
2
1
|
//= require jquery-ui/version
|
|
3
2
|
|
|
4
3
|
/*!
|
|
5
|
-
* jQuery UI Form Reset Mixin 1.
|
|
4
|
+
* jQuery UI Form Reset Mixin 1.14.2
|
|
6
5
|
* https://jqueryui.com
|
|
7
6
|
*
|
|
8
7
|
* Copyright OpenJS Foundation and other contributors
|
|
@@ -23,7 +22,6 @@
|
|
|
23
22
|
// AMD. Register as an anonymous module.
|
|
24
23
|
define( [
|
|
25
24
|
"jquery",
|
|
26
|
-
"./form",
|
|
27
25
|
"./version"
|
|
28
26
|
], factory );
|
|
29
27
|
} else {
|
|
@@ -48,7 +46,7 @@ return $.ui.formResetMixin = {
|
|
|
48
46
|
},
|
|
49
47
|
|
|
50
48
|
_bindFormResetHandler: function() {
|
|
51
|
-
this.form = this.element.
|
|
49
|
+
this.form = $( this.element.prop( "form" ) );
|
|
52
50
|
if ( !this.form.length ) {
|
|
53
51
|
return;
|
|
54
52
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
//= require jquery-ui/version
|
|
2
2
|
|
|
3
3
|
/*!
|
|
4
|
-
* jQuery UI Labels 1.
|
|
4
|
+
* jQuery UI Labels 1.14.2
|
|
5
5
|
* https://jqueryui.com
|
|
6
6
|
*
|
|
7
7
|
* Copyright OpenJS Foundation and other contributors
|
|
@@ -41,9 +41,8 @@ return $.fn.labels = function() {
|
|
|
41
41
|
return this.pushStack( this[ 0 ].labels );
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
//
|
|
45
|
-
//
|
|
46
|
-
// as well as document fragments. control.labels does not work on document fragments
|
|
44
|
+
// If `control.labels` is empty - e.g. inside of document fragments - find
|
|
45
|
+
// the labels manually
|
|
47
46
|
labels = this.eq( 0 ).parents( "label" );
|
|
48
47
|
|
|
49
48
|
// Look for the label based on the id
|
|
@@ -58,7 +57,7 @@ return $.fn.labels = function() {
|
|
|
58
57
|
ancestors = ancestor.add( ancestor.length ? ancestor.siblings() : this.siblings() );
|
|
59
58
|
|
|
60
59
|
// Create a selector for the label based on the id
|
|
61
|
-
selector = "label[for='" +
|
|
60
|
+
selector = "label[for='" + CSS.escape( id ) + "']";
|
|
62
61
|
|
|
63
62
|
labels = labels.add( ancestors.find( selector ).addBack( selector ) );
|
|
64
63
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
//= require jquery-ui/version
|
|
2
2
|
|
|
3
3
|
/*!
|
|
4
|
-
* jQuery UI Widget 1.
|
|
4
|
+
* jQuery UI Widget 1.14.2
|
|
5
5
|
* https://jqueryui.com
|
|
6
6
|
*
|
|
7
7
|
* Copyright OpenJS Foundation and other contributors
|
|
@@ -58,6 +58,9 @@ $.widget = function( name, base, prototype ) {
|
|
|
58
58
|
|
|
59
59
|
var namespace = name.split( "." )[ 0 ];
|
|
60
60
|
name = name.split( "." )[ 1 ];
|
|
61
|
+
if ( name === "__proto__" || name === "constructor" ) {
|
|
62
|
+
return $.error( "Invalid widget name: " + name );
|
|
63
|
+
}
|
|
61
64
|
var fullName = namespace + "-" + name;
|
|
62
65
|
|
|
63
66
|
if ( !prototype ) {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
//= require jquery-ui/widget
|
|
5
5
|
|
|
6
6
|
/*!
|
|
7
|
-
* jQuery UI Button 1.
|
|
7
|
+
* jQuery UI Button 1.14.2
|
|
8
8
|
* https://jqueryui.com
|
|
9
9
|
*
|
|
10
10
|
* Copyright OpenJS Foundation and other contributors
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"use strict";
|
|
48
48
|
|
|
49
49
|
$.widget( "ui.button", {
|
|
50
|
-
version: "1.
|
|
50
|
+
version: "1.14.2",
|
|
51
51
|
defaultElement: "<button>",
|
|
52
52
|
options: {
|
|
53
53
|
classes: {
|
|
@@ -114,9 +114,9 @@ $.widget( "ui.button", {
|
|
|
114
114
|
if ( event.keyCode === $.ui.keyCode.SPACE ) {
|
|
115
115
|
event.preventDefault();
|
|
116
116
|
|
|
117
|
-
//
|
|
118
|
-
//
|
|
119
|
-
//
|
|
117
|
+
// If a native click is available use it, so we
|
|
118
|
+
// actually cause navigation. Otherwise, just trigger
|
|
119
|
+
// a click event.
|
|
120
120
|
if ( this.element[ 0 ].click ) {
|
|
121
121
|
this.element[ 0 ].click();
|
|
122
122
|
} else {
|
|
@@ -292,7 +292,7 @@ $.widget( "ui.button", {
|
|
|
292
292
|
} );
|
|
293
293
|
|
|
294
294
|
// DEPRECATED
|
|
295
|
-
if ( $.uiBackCompat
|
|
295
|
+
if ( $.uiBackCompat === true ) {
|
|
296
296
|
|
|
297
297
|
// Text and Icons options
|
|
298
298
|
$.widget( "ui.button", $.ui.button, {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
//= require jquery-ui/widget
|
|
4
4
|
|
|
5
5
|
/*!
|
|
6
|
-
* jQuery UI Checkboxradio 1.
|
|
6
|
+
* jQuery UI Checkboxradio 1.14.2
|
|
7
7
|
* https://jqueryui.com
|
|
8
8
|
*
|
|
9
9
|
* Copyright OpenJS Foundation and other contributors
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"use strict";
|
|
43
43
|
|
|
44
44
|
$.widget( "ui.checkboxradio", [ $.ui.formResetMixin, {
|
|
45
|
-
version: "1.
|
|
45
|
+
version: "1.14.2",
|
|
46
46
|
options: {
|
|
47
47
|
disabled: null,
|
|
48
48
|
label: null,
|
|
@@ -160,7 +160,7 @@ $.widget( "ui.checkboxradio", [ $.ui.formResetMixin, {
|
|
|
160
160
|
_getRadioGroup: function() {
|
|
161
161
|
var group;
|
|
162
162
|
var name = this.element[ 0 ].name;
|
|
163
|
-
var nameSelector = "input[name='" +
|
|
163
|
+
var nameSelector = "input[name='" + CSS.escape( name ) + "']";
|
|
164
164
|
|
|
165
165
|
if ( !name ) {
|
|
166
166
|
return $( [] );
|
|
@@ -172,7 +172,7 @@ $.widget( "ui.checkboxradio", [ $.ui.formResetMixin, {
|
|
|
172
172
|
|
|
173
173
|
// Not inside a form, check all inputs that also are not inside a form
|
|
174
174
|
group = $( nameSelector ).filter( function() {
|
|
175
|
-
return $( this ).
|
|
175
|
+
return $( $( this ).prop( "form" ) ).length === 0;
|
|
176
176
|
} );
|
|
177
177
|
}
|
|
178
178
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
//= require jquery-ui/widget
|
|
2
2
|
|
|
3
3
|
/*!
|
|
4
|
-
* jQuery UI Controlgroup 1.
|
|
4
|
+
* jQuery UI Controlgroup 1.14.2
|
|
5
5
|
* https://jqueryui.com
|
|
6
6
|
*
|
|
7
7
|
* Copyright OpenJS Foundation and other contributors
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
var controlgroupCornerRegex = /ui-corner-([a-z]){2,6}/g;
|
|
40
40
|
|
|
41
41
|
return $.widget( "ui.controlgroup", {
|
|
42
|
-
version: "1.
|
|
42
|
+
version: "1.14.2",
|
|
43
43
|
defaultElement: "<div>",
|
|
44
44
|
options: {
|
|
45
45
|
direction: "horizontal",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
//= require jquery-ui/version
|
|
2
2
|
//= require jquery-ui/keycode
|
|
3
3
|
|
|
4
|
-
/* eslint-disable max-len
|
|
4
|
+
/* eslint-disable max-len */
|
|
5
5
|
/*!
|
|
6
|
-
* jQuery UI Datepicker 1.
|
|
6
|
+
* jQuery UI Datepicker 1.14.2
|
|
7
7
|
* https://jqueryui.com
|
|
8
8
|
*
|
|
9
9
|
* Copyright OpenJS Foundation and other contributors
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
} )( function( $ ) {
|
|
40
40
|
"use strict";
|
|
41
41
|
|
|
42
|
-
$.extend( $.ui, { datepicker: { version: "1.
|
|
42
|
+
$.extend( $.ui, { datepicker: { version: "1.14.2" } } );
|
|
43
43
|
|
|
44
44
|
var datepicker_instActive;
|
|
45
45
|
|
|
@@ -438,6 +438,7 @@ $.extend( Datepicker.prototype, {
|
|
|
438
438
|
$target.removeClass( this.markerClassName ).empty();
|
|
439
439
|
}
|
|
440
440
|
|
|
441
|
+
$.datepicker._hideDatepicker();
|
|
441
442
|
if ( datepicker_instActive === inst ) {
|
|
442
443
|
datepicker_instActive = null;
|
|
443
444
|
this._curInst = null;
|
|
@@ -537,7 +538,7 @@ $.extend( Datepicker.prototype, {
|
|
|
537
538
|
_getInst: function( target ) {
|
|
538
539
|
try {
|
|
539
540
|
return $.data( target, "datepicker" );
|
|
540
|
-
} catch (
|
|
541
|
+
} catch ( _err ) {
|
|
541
542
|
throw "Missing instance data for this datepicker";
|
|
542
543
|
}
|
|
543
544
|
},
|
|
@@ -770,7 +771,7 @@ $.extend( Datepicker.prototype, {
|
|
|
770
771
|
$.datepicker._updateAlternate( inst );
|
|
771
772
|
$.datepicker._updateDatepicker( inst );
|
|
772
773
|
}
|
|
773
|
-
} catch (
|
|
774
|
+
} catch ( _err ) {
|
|
774
775
|
}
|
|
775
776
|
}
|
|
776
777
|
return true;
|
|
@@ -913,11 +914,8 @@ $.extend( Datepicker.prototype, {
|
|
|
913
914
|
}
|
|
914
915
|
},
|
|
915
916
|
|
|
916
|
-
// #6694 - don't focus the input if it's already focused
|
|
917
|
-
// this breaks the change event in IE
|
|
918
|
-
// Support: IE and jQuery <1.9
|
|
919
917
|
_shouldFocusInput: function( inst ) {
|
|
920
|
-
return inst.input && inst.input.is( ":visible" ) && !inst.input.is( ":disabled" )
|
|
918
|
+
return inst.input && inst.input.is( ":visible" ) && !inst.input.is( ":disabled" );
|
|
921
919
|
},
|
|
922
920
|
|
|
923
921
|
/* Check positioning to remain on screen. */
|
|
@@ -974,8 +972,7 @@ $.extend( Datepicker.prototype, {
|
|
|
974
972
|
$.datepicker._tidyDialog( inst );
|
|
975
973
|
};
|
|
976
974
|
|
|
977
|
-
|
|
978
|
-
if ( $.effects && ( $.effects.effect[ showAnim ] || $.effects[ showAnim ] ) ) {
|
|
975
|
+
if ( $.effects && ( $.effects.effect[ showAnim ] ) ) {
|
|
979
976
|
inst.dpDiv.hide( showAnim, $.datepicker._get( inst, "showOptions" ), duration, postProcess );
|
|
980
977
|
} else {
|
|
981
978
|
inst.dpDiv[ ( showAnim === "slideDown" ? "slideUp" :
|
|
@@ -1546,7 +1543,7 @@ $.extend( Datepicker.prototype, {
|
|
|
1546
1543
|
|
|
1547
1544
|
try {
|
|
1548
1545
|
date = this.parseDate( dateFormat, dates, settings ) || defaultDate;
|
|
1549
|
-
} catch (
|
|
1546
|
+
} catch ( _err ) {
|
|
1550
1547
|
dates = ( noDefault ? "" : dates );
|
|
1551
1548
|
}
|
|
1552
1549
|
inst.selectedDay = date.getDate();
|
|
@@ -1575,7 +1572,7 @@ $.extend( Datepicker.prototype, {
|
|
|
1575
1572
|
try {
|
|
1576
1573
|
return $.datepicker.parseDate( $.datepicker._get( inst, "dateFormat" ),
|
|
1577
1574
|
offset, $.datepicker._getFormatConfig( inst ) );
|
|
1578
|
-
} catch (
|
|
1575
|
+
} catch ( _e ) {
|
|
1579
1576
|
|
|
1580
1577
|
// Ignore
|
|
1581
1578
|
}
|
|
@@ -2236,7 +2233,7 @@ $.fn.datepicker = function( options ) {
|
|
|
2236
2233
|
$.datepicker = new Datepicker(); // singleton instance
|
|
2237
2234
|
$.datepicker.initialized = false;
|
|
2238
2235
|
$.datepicker.uuid = new Date().getTime();
|
|
2239
|
-
$.datepicker.version = "1.
|
|
2236
|
+
$.datepicker.version = "1.14.2";
|
|
2240
2237
|
|
|
2241
2238
|
return $.datepicker;
|
|
2242
2239
|
|