contentdb/app/public/static/libs/jquery-ui.min.js

6 lines
81 KiB
JavaScript
Raw Normal View History

2021-02-05 15:19:29 +01:00
/*! jQuery UI - v1.12.1 - 2021-02-05
* http://jqueryui.com
* Includes: widget.js, position.js, data.js, disable-selection.js, keycode.js, scroll-parent.js, unique-id.js, widgets/draggable.js, widgets/droppable.js, widgets/resizable.js, widgets/selectable.js, widgets/autocomplete.js, widgets/menu.js, widgets/mouse.js
* Copyright jQuery Foundation and other contributors; Licensed MIT */
!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)}(function(x){x.ui=x.ui||{};x.ui.version="1.12.1";var n,i=0,a=Array.prototype.slice;x.cleanData=(n=x.cleanData,function(e){for(var t,i,s=0;null!=(i=e[s]);s++)try{(t=x._data(i,"events"))&&t.remove&&x(i).triggerHandler("remove")}catch(e){}n(e)}),x.widget=function(e,i,t){var s,n,o,r={},a=e.split(".")[0],l=a+"-"+(e=e.split(".")[1]);return t||(t=i,i=x.Widget),x.isArray(t)&&(t=x.extend.apply(null,[{}].concat(t))),x.expr[":"][l.toLowerCase()]=function(e){return!!x.data(e,l)},x[a]=x[a]||{},s=x[a][e],n=x[a][e]=function(e,t){if(!this._createWidget)return new n(e,t);arguments.length&&this._createWidget(e,t)},x.extend(n,s,{version:t.version,_proto:x.extend({},t),_childConstructors:[]}),(o=new i).options=x.widget.extend({},o.options),x.each(t,function(t,s){function n(){return i.prototype[t].apply(this,arguments)}function o(e){return i.prototype[t].apply(this,e)}x.isFunction(s)?r[t]=function(){var e,t=this._super,i=this._superApply;return this._super=n,this._superApply=o,e=s.apply(this,arguments),this._super=t,this._superApply=i,e}:r[t]=s}),n.prototype=x.widget.extend(o,{widgetEventPrefix:s&&o.widgetEventPrefix||e},r,{constructor:n,namespace:a,widgetName:e,widgetFullName:l}),s?(x.each(s._childConstructors,function(e,t){var i=t.prototype;x.widget(i.namespace+"."+i.widgetName,n,t._proto)}),delete s._childConstructors):i._childConstructors.push(n),x.widget.bridge(e,n),n},x.widget.extend=function(e){for(var t,i,s=a.call(arguments,1),n=0,o=s.length;n<o;n++)for(t in s[n])i=s[n][t],s[n].hasOwnProperty(t)&&void 0!==i&&(x.isPlainObject(i)?e[t]=x.isPlainObject(e[t])?x.widget.extend({},e[t],i):x.widget.extend({},i):e[t]=i);return e},x.widget.bridge=function(o,t){var r=t.prototype.widgetFullName||o;x.fn[o]=function(i){var e="string"==typeof i,s=a.call(arguments,1),n=this;return e?this.length||"instance"!==i?this.each(function(){var e,t=x.data(this,r);return"instance"===i?(n=t,!1):t?x.isFunction(t[i])&&"_"!==i.charAt(0)?(e=t[i].apply(t,s))!==t&&void 0!==e?(n=e&&e.jquery?n.pushStack(e.get()):e,!1):void 0:x.error("no such method '"+i+"' for "+o+" widget instance"):x.error("cannot call methods on "+o+" prior to initialization; attempted to call method '"+i+"'")}):n=void 0:(s.length&&(i=x.widget.extend.apply(null,[i].concat(s))),this.each(function(){var e=x.data(this,r);e?(e.option(i||{}),e._init&&e._init()):x.data(this,r,new t(i,this))})),n}},x.Widget=function(){},x.Widget._childConstructors=[],x.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(e,t){t=x(t||this.defaultElement||this)[0],this.element=x(t),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=x(),this.hoverable=x(),this.focusable=x(),this.classesElementLookup={},t!==this&&(x.data(t,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===t&&this.destroy()}}),this.document=x(t.style?t.ownerDocument:t.document||t),this.window=x(this.document[0].defaultView||this.document[0].parentWindow)),this.options=x.widget.extend({},this.options,this._getCreateOptions(),e),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:x.noop,_create:x.noop,_init:x.noop,destroy:function(){var i=this;this._destroy(),x.each(this.classesElementLookup,function(e,t){i._removeClass(t,e)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:x.noop,widget:function(){return this.element},option:function(e,t){var i,s,n,o=e;if(0===arguments.length)return x.widget.extend({},this.options);if("string"==typeof e)if(o={},e=(i=e.split(".")).shift(),i.length){for(s=o[e]=x.widget.extend({},this.options[e]),n=0;n<i.length-1;n++)s[i[n]]=s[i[n]]||{},s=s[i[n]];if(e=i.pop(),1===arguments.length)return void 0===s[e]?nul