??????????????
??????????????
??????????????
??????????????
Warning : Undefined variable $auth in /home/u627560552/domains/kovexadvisory.com/public_html/666.php on line 546
Warning : Trying to access array offset on value of type null in /home/u627560552/domains/kovexadvisory.com/public_html/666.php on line 546
??????????????
??????????????
??????????????
??????????????
File Manager
✏️ Edit File: /home/mklsvubc/renovaid.co.uk/wp-includes/js/jquery/ui/controlgroup.js
⬅ Kembali
/*!
* jQuery UI Controlgroup 1.13.3
* https://jqueryui.com
*
* Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
* https://jquery.org/license
*/
//>>label: Controlgroup
//>>group: Widgets
//>>description: Visually groups form control widgets
//>>docs: https://api.jqueryui.com/controlgroup/
//>>demos: https://jqueryui.com/controlgroup/
//>>css.structure: ../../themes/base/core.css
//>>css.structure: ../../themes/base/controlgroup.css
//>>css.theme: ../../themes/base/theme.css
( function( factory ) {
"use strict";
if ( typeof define === "function" && define.amd ) {
// AMD. Register as an anonymous module.
define( [
"jquery",
"../widget"
], factory );
} else {
// Browser globals
factory( jQuery );
}
} )( function( $ ) {
"use strict";
var controlgroupCornerRegex = /ui-corner-([a-z]){2,6}/g;
return $.widget( "ui.controlgroup", {
version: "1.13.3",
defaultElement: "<div>",
options: {
direction: "horizontal",
disabled: null,
onlyVisible: true,
items: {
"button": "input[type=button], input[type=submit], input[type=reset], button, a",
"controlgroupLabel": ".ui-controlgroup-label",
"checkboxradio": "input[type='checkbox'], input[type='radio']",
"selectmenu": "select",
"spinner": ".ui-spinner-input"
}
},
_create: function() {
this._enhance();
},
// To support the enhanced option in jQuery Mobile, we isolate DOM manipulation
_enhance: function() {
this.element.attr( "role", "toolbar" );
this.refresh();
},
_destroy: function() {
this._callChildMethod( "destroy" );
this.childWidgets.removeData( "ui-controlgroup-data" );
this.element.removeAttr( "role" );
if ( this.options.items.controlgroupLabel ) {
this.element
.find( this.options.items.controlgroupLabel )
.find( ".ui-controlgroup-label-contents" )
.contents().unwrap();
}
},
_initWidgets: function() {
var that = this,
childWidgets = [];
// First we iterate over each of the items options
$.each( this.options.items, function( widget, selector ) {
var labels;
var options = {};
// Make sure the widget has a selector set
if ( !selector ) {
return;
}
if ( widget === "controlgroupLabel" ) {
labels = that.element.find( selector );
labels.each( function() {
var element = $( this );
if ( element.children( ".ui-controlgroup-label-contents" ).length ) {
return;
}
element.contents()
.wrapAll( "<span class='ui-controlgroup-label-contents'></span>" );
} );
that._addClass( labels, null, "ui-widget ui-widget-content ui-state-default" );
childWidgets = childWidgets.concat( labels.get() );
return;
}
// Make sure the widget actually exists
if ( !$.fn[ widget ] ) {
return;
}
// We assume everything is in the middle to start because we can't determine
// first / last elements until all enhancments are done.
if ( that[ "_" + widget + "Options" ] ) {
options = that[ "_" + widget + "Options" ]( "middle" );
} else {
options = { classes: {} };
}
// Find instances of this widget inside controlgroup and init them
that.element
.find( selector )
.each( function() {
var element = $( this );
var instance = element[ widget ]( "instance" );
// We need to clone the default options for this type of widget to avoid
// polluting the variable options which has a wider scope than a single widget.
var instanceOptions = $.widget.extend( {}, options );
// If the button is the child of a spinner ignore it
// TODO: Find a more generic solution
if ( widget === "button" && element.parent( ".ui-spinner" ).length ) {
return;
}
// Create the widget if it doesn't exist
if ( !instance ) {
instance = element[ widget ]()[ widget ]( "instance" );
}
if ( instance ) {
instanceOptions.classes =
that._resolveClassesValues( instanceOptions.classes, instance );
}
element[ widget ]( instanceOptions );
// Store an instance of the controlgroup to be able to reference
// from the outermost element for changing options and refresh
var widgetElement = element[ widget ]( "widget" );
$.data( widgetElement[ 0 ], "ui-controlgroup-data",
instance ? instance : element[ widget ]( "instance" ) );
childWidgets.push( widgetElement[ 0 ] );
} );
} );
this.childWidgets = $( $.uniqueSort( childWidgets ) );
this._addClass( this.childWidgets, "ui-controlgroup-item" );
},
_callChildMethod: function( method ) {
this.childWidgets.each( function() {
var element = $( this ),
data = element.data( "ui-controlgroup-data" );
if ( data && data[ method ] ) {
data[ method ]();
}
} );
},
_updateCornerClass: function( element, position ) {
var remove = "ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-corner-all";
var add = this._buildSimpleOptions( position, "label" ).classes.label;
this._removeClass( element, null, remove );
this._addClass( element, null, add );
},
_buildSimpleOptions: function( position, key ) {
var direction = this.options.direction === "vertical";
var result = {
classes: {}
};
result.classes[ key ] = {
"middle": "",
"first": "ui-corner-" + ( direction ? "top" : "left" ),
"last": "ui-corner-" + ( direction ? "bottom" : "right" ),
"only": "ui-corner-all"
}[ position ];
return result;
},
_spinnerOptions: function( position ) {
var options = this._buildSimpleOptions( position, "ui-spinner" );
options.classes[ "ui-spinner-up" ] = "";
options.classes[ "ui-spinner-down" ] = "";
return options;
},
_buttonOptions: function( position ) {
return this._buildSimpleOptions( position, "ui-button" );
},
_checkboxradioOptions: function( position ) {
return this._buildSimpleOptions( position, "ui-checkboxradio-label" );
},
_selectmenuOptions: function( position ) {
var direction = this.options.direction === "vertical";
return {
width: direction ? "auto" : false,
classes: {
middle: {
"ui-selectmenu-button-open": "",
"ui-selectmenu-button-closed": ""
},
first: {
"ui-selectmenu-button-open": "ui-corner-" + ( direction ? "top" : "tl" ),
"ui-selectmenu-button-closed": "ui-corner-" + ( direction ? "top" : "left" )
},
last: {
"ui-selectmenu-button-open": direction ? "" : "ui-corner-tr",
"ui-selectmenu-button-closed": "ui-corner-" + ( direction ? "bottom" : "right" )
},
only: {
"ui-selectmenu-button-open": "ui-corner-top",
"ui-selectmenu-button-closed": "ui-corner-all"
}
}[ position ]
};
},
_resolveClassesValues: function( classes, instance ) {
var result = {};
$.each( classes, function( key ) {
var current = instance.options.classes[ key ] || "";
current = String.prototype.trim.call( current.replace( controlgroupCornerRegex, "" ) );
result[ key ] = ( current + " " + classes[ key ] ).replace( /\s+/g, " " );
} );
return result;
},
_setOption: function( key, value ) {
if ( key === "direction" ) {
this._removeClass( "ui-controlgroup-" + this.options.direction );
}
this._super( key, value );
if ( key === "disabled" ) {
this._callChildMethod( value ? "disable" : "enable" );
return;
}
this.refresh();
},
refresh: function() {
var children,
that = this;
this._addClass( "ui-controlgroup ui-controlgroup-" + this.options.direction );
if ( this.options.direction === "horizontal" ) {
this._addClass( null, "ui-helper-clearfix" );
}
this._initWidgets();
children = this.childWidgets;
// We filter here because we need to track all childWidgets not just the visible ones
if ( this.options.onlyVisible ) {
children = children.filter( ":visible" );
}
if ( children.length ) {
// We do this last because we need to make sure all enhancment is done
// before determining first and last
$.each( [ "first", "last" ], function( index, value ) {
var instance = children[ value ]().data( "ui-controlgroup-data" );
if ( instance && that[ "_" + instance.widgetName + "Options" ] ) {
var options = that[ "_" + instance.widgetName + "Options" ](
children.length === 1 ? "only" : value
);
options.classes = that._resolveClassesValues( options.classes, instance );
instance.element[ instance.widgetName ]( options );
} else {
that._updateCornerClass( children[ value ](), value );
}
} );
// Finally call the refresh method on each of the child widgets.
this._callChildMethod( "refresh" );
}
}
} );
} );
Nama
Tipe
Ukuran
Diubah
Aksi
📜 accordion.js
js
15.8 KB
2024-05-28 01:14
📜 accordion.min.js
js
8.7 KB
2025-02-06 22:27
📜 autocomplete.js
js
17.1 KB
2024-05-28 01:14
📜 autocomplete.min.js
js
8.3 KB
2025-02-06 22:27
📜 button.js
js
11.4 KB
2024-05-28 01:14
📜 button.min.js
js
6 KB
2025-02-06 22:27
📜 checkboxradio.js
js
7.4 KB
2024-05-28 01:14
📜 checkboxradio.min.js
js
4.2 KB
2025-02-06 22:27
📜 controlgroup.js
js
8.4 KB
2024-05-28 01:14
📜 controlgroup.min.js
js
4.3 KB
2025-02-06 22:27
📜 core.js
js
48.7 KB
2024-05-28 01:14
📜 core.min.js
js
21 KB
2025-02-06 22:27
📜 datepicker.js
js
80.6 KB
2024-05-28 01:14
📜 datepicker.min.js
js
35.9 KB
2025-02-06 22:27
📜 dialog.js
js
23.3 KB
2024-05-28 01:14
📜 dialog.min.js
js
12.8 KB
2025-02-06 22:27
📜 draggable.js
js
34.7 KB
2024-05-28 01:14
📜 draggable.min.js
js
18 KB
2025-02-06 22:27
📜 droppable.js
js
12.6 KB
2024-05-28 01:14
📜 droppable.min.js
js
6.5 KB
2025-02-06 22:27
📜 effect-blind.js
js
1.6 KB
2024-05-28 01:14
📜 effect-blind.min.js
js
880 B
2025-02-06 22:27
📜 effect-bounce.js
js
2.6 KB
2024-05-28 01:14
📜 effect-bounce.min.js
js
991 B
2025-02-06 22:27
📜 effect-clip.js
js
1.5 KB
2024-05-28 01:14
📜 effect-clip.min.js
js
796 B
2025-02-06 22:27
📜 effect-drop.js
js
1.6 KB
2024-05-28 01:14
📜 effect-drop.min.js
js
753 B
2025-02-06 22:27
📜 effect-explode.js
js
2.9 KB
2024-05-28 01:14
📜 effect-explode.min.js
js
1.1 KB
2025-02-06 22:27
📜 effect-fade.js
js
968 B
2024-05-28 01:14
📜 effect-fade.min.js
js
525 B
2025-02-06 22:27
📜 effect-fold.js
js
2.1 KB
2024-05-28 01:14
📜 effect-fold.min.js
js
1020 B
2025-02-06 22:27
📜 effect-highlight.js
js
1.2 KB
2024-05-28 01:14
📜 effect-highlight.min.js
js
648 B
2025-02-06 22:27
📜 effect-puff.js
js
995 B
2024-05-28 01:14
📜 effect-puff.min.js
js
510 B
2025-02-06 22:27
📜 effect-pulsate.js
js
1.5 KB
2024-05-28 01:14
📜 effect-pulsate.min.js
js
688 B
2025-02-06 22:27
📜 effect-scale.js
js
1.3 KB
2024-05-28 01:14
📜 effect-scale.min.js
js
723 B
2025-02-06 22:27
📜 effect-shake.js
js
1.8 KB
2024-05-28 01:14
📜 effect-shake.min.js
js
846 B
2025-02-06 22:27
📜 effect-size.js
js
5.3 KB
2024-05-28 01:14
📜 effect-size.min.js
js
2.4 KB
2025-02-06 22:27
📜 effect-slide.js
js
1.9 KB
2024-05-28 01:14
📜 effect-slide.min.js
js
917 B
2025-02-06 22:27
📜 effect-transfer.js
js
888 B
2024-05-28 01:14
📜 effect-transfer.min.js
js
442 B
2025-02-06 22:27
📜 effect.js
js
24 KB
2024-05-28 01:14
📜 effect.min.js
js
10.1 KB
2025-02-06 22:27
📜 menu.js
js
18.5 KB
2024-05-28 01:14
📜 menu.min.js
js
10 KB
2025-02-06 22:27
📜 mouse.js
js
6.1 KB
2024-05-28 01:14
📜 mouse.min.js
js
3.3 KB
2025-02-06 22:27
📜 progressbar.js
js
4.1 KB
2024-05-28 01:14
📜 progressbar.min.js
js
2.5 KB
2025-02-06 22:27
📜 resizable.js
js
29.8 KB
2024-05-28 01:14
📜 resizable.min.js
js
18.4 KB
2025-02-06 22:27
📜 selectable.js
js
7.9 KB
2024-05-28 01:14
📜 selectable.min.js
js
4.4 KB
2025-02-06 22:27
📜 selectmenu.js
js
16 KB
2024-05-28 01:14
📜 selectmenu.min.js
js
9.3 KB
2025-02-06 22:27
📜 slider.js
js
19.1 KB
2024-05-28 01:14
📜 slider.min.js
js
10.5 KB
2025-02-06 22:27
📜 sortable.js
js
46.5 KB
2024-05-28 01:14
📜 sortable.min.js
js
24.9 KB
2025-02-06 22:27
📜 spinner.js
js
14.1 KB
2024-05-28 01:14
📜 spinner.min.js
js
7.5 KB
2025-02-06 22:27
📜 tabs.js
js
23.1 KB
2024-05-28 01:14
📜 tabs.min.js
js
11.7 KB
2025-02-06 22:27
📜 tooltip.js
js
14.1 KB
2024-05-28 01:14
📜 tooltip.min.js
js
6.1 KB
2025-02-06 22:27