pageflow 17.0.1 → 17.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,305 @@
1
+ /*!
2
+ * jQuery UI Core 1.11.4
3
+ * http://jqueryui.com
4
+ *
5
+ * Copyright jQuery Foundation and other contributors
6
+ * Released under the MIT license.
7
+ * http://jquery.org/license
8
+ *
9
+ * http://api.jqueryui.com/category/ui-core/
10
+ */
11
+
12
+ (function( factory ) {
13
+ if ( typeof define === "function" && define.amd ) {
14
+
15
+ // AMD. Register as an anonymous module.
16
+ define( [ "jquery" ], factory );
17
+ } else {
18
+
19
+ // Browser globals
20
+ factory( require('jquery') );
21
+ }
22
+ }(function( $ ) {
23
+
24
+ // $.ui might exist from components with no dependencies, e.g., $.ui.position
25
+ $.ui = $.ui || {};
26
+
27
+ $.extend( $.ui, {
28
+ version: "1.11.4",
29
+
30
+ keyCode: {
31
+ BACKSPACE: 8,
32
+ COMMA: 188,
33
+ DELETE: 46,
34
+ DOWN: 40,
35
+ END: 35,
36
+ ENTER: 13,
37
+ ESCAPE: 27,
38
+ HOME: 36,
39
+ LEFT: 37,
40
+ PAGE_DOWN: 34,
41
+ PAGE_UP: 33,
42
+ PERIOD: 190,
43
+ RIGHT: 39,
44
+ SPACE: 32,
45
+ TAB: 9,
46
+ UP: 38
47
+ }
48
+ });
49
+
50
+ // plugins
51
+ $.fn.extend({
52
+ scrollParent: function( includeHidden ) {
53
+ var position = this.css( "position" ),
54
+ excludeStaticParent = position === "absolute",
55
+ overflowRegex = includeHidden ? /(auto|scroll|hidden)/ : /(auto|scroll)/,
56
+ scrollParent = this.parents().filter( function() {
57
+ var parent = $( this );
58
+ if ( excludeStaticParent && parent.css( "position" ) === "static" ) {
59
+ return false;
60
+ }
61
+ return overflowRegex.test( parent.css( "overflow" ) + parent.css( "overflow-y" ) + parent.css( "overflow-x" ) );
62
+ }).eq( 0 );
63
+
64
+ return position === "fixed" || !scrollParent.length ? $( this[ 0 ].ownerDocument || document ) : scrollParent;
65
+ },
66
+
67
+ uniqueId: (function() {
68
+ var uuid = 0;
69
+
70
+ return function() {
71
+ return this.each(function() {
72
+ if ( !this.id ) {
73
+ this.id = "ui-id-" + ( ++uuid );
74
+ }
75
+ });
76
+ };
77
+ })(),
78
+
79
+ removeUniqueId: function() {
80
+ return this.each(function() {
81
+ if ( /^ui-id-\d+$/.test( this.id ) ) {
82
+ $( this ).removeAttr( "id" );
83
+ }
84
+ });
85
+ }
86
+ });
87
+
88
+ // selectors
89
+ function focusable( element, isTabIndexNotNaN ) {
90
+ var map, mapName, img,
91
+ nodeName = element.nodeName.toLowerCase();
92
+ if ( "area" === nodeName ) {
93
+ map = element.parentNode;
94
+ mapName = map.name;
95
+ if ( !element.href || !mapName || map.nodeName.toLowerCase() !== "map" ) {
96
+ return false;
97
+ }
98
+ img = $( "img[usemap='#" + mapName + "']" )[ 0 ];
99
+ return !!img && visible( img );
100
+ }
101
+ return ( /^(input|select|textarea|button|object)$/.test( nodeName ) ?
102
+ !element.disabled :
103
+ "a" === nodeName ?
104
+ element.href || isTabIndexNotNaN :
105
+ isTabIndexNotNaN) &&
106
+ // the element and all of its ancestors must be visible
107
+ visible( element );
108
+ }
109
+
110
+ function visible( element ) {
111
+ return $.expr.filters.visible( element ) &&
112
+ !$( element ).parents().addBack().filter(function() {
113
+ return $.css( this, "visibility" ) === "hidden";
114
+ }).length;
115
+ }
116
+
117
+ $.extend( $.expr[ ":" ], {
118
+ data: $.expr.createPseudo ?
119
+ $.expr.createPseudo(function( dataName ) {
120
+ return function( elem ) {
121
+ return !!$.data( elem, dataName );
122
+ };
123
+ }) :
124
+ // support: jQuery <1.8
125
+ function( elem, i, match ) {
126
+ return !!$.data( elem, match[ 3 ] );
127
+ },
128
+
129
+ focusable: function( element ) {
130
+ return focusable( element, !isNaN( $.attr( element, "tabindex" ) ) );
131
+ },
132
+
133
+ tabbable: function( element ) {
134
+ var tabIndex = $.attr( element, "tabindex" ),
135
+ isTabIndexNaN = isNaN( tabIndex );
136
+ return ( isTabIndexNaN || tabIndex >= 0 ) && focusable( element, !isTabIndexNaN );
137
+ }
138
+ });
139
+
140
+ // support: jQuery <1.8
141
+ if ( !$( "<a>" ).outerWidth( 1 ).jquery ) {
142
+ $.each( [ "Width", "Height" ], function( i, name ) {
143
+ var side = name === "Width" ? [ "Left", "Right" ] : [ "Top", "Bottom" ],
144
+ type = name.toLowerCase(),
145
+ orig = {
146
+ innerWidth: $.fn.innerWidth,
147
+ innerHeight: $.fn.innerHeight,
148
+ outerWidth: $.fn.outerWidth,
149
+ outerHeight: $.fn.outerHeight
150
+ };
151
+
152
+ function reduce( elem, size, border, margin ) {
153
+ $.each( side, function() {
154
+ size -= parseFloat( $.css( elem, "padding" + this ) ) || 0;
155
+ if ( border ) {
156
+ size -= parseFloat( $.css( elem, "border" + this + "Width" ) ) || 0;
157
+ }
158
+ if ( margin ) {
159
+ size -= parseFloat( $.css( elem, "margin" + this ) ) || 0;
160
+ }
161
+ });
162
+ return size;
163
+ }
164
+
165
+ $.fn[ "inner" + name ] = function( size ) {
166
+ if ( size === undefined ) {
167
+ return orig[ "inner" + name ].call( this );
168
+ }
169
+
170
+ return this.each(function() {
171
+ $( this ).css( type, reduce( this, size ) + "px" );
172
+ });
173
+ };
174
+
175
+ $.fn[ "outer" + name] = function( size, margin ) {
176
+ if ( typeof size !== "number" ) {
177
+ return orig[ "outer" + name ].call( this, size );
178
+ }
179
+
180
+ return this.each(function() {
181
+ $( this).css( type, reduce( this, size, true, margin ) + "px" );
182
+ });
183
+ };
184
+ });
185
+ }
186
+
187
+ // support: jQuery <1.8
188
+ if ( !$.fn.addBack ) {
189
+ $.fn.addBack = function( selector ) {
190
+ return this.add( selector == null ?
191
+ this.prevObject : this.prevObject.filter( selector )
192
+ );
193
+ };
194
+ }
195
+
196
+ // support: jQuery 1.6.1, 1.6.2 (http://bugs.jquery.com/ticket/9413)
197
+ if ( $( "<a>" ).data( "a-b", "a" ).removeData( "a-b" ).data( "a-b" ) ) {
198
+ $.fn.removeData = (function( removeData ) {
199
+ return function( key ) {
200
+ if ( arguments.length ) {
201
+ return removeData.call( this, $.camelCase( key ) );
202
+ } else {
203
+ return removeData.call( this );
204
+ }
205
+ };
206
+ })( $.fn.removeData );
207
+ }
208
+
209
+ // deprecated
210
+ $.ui.ie = !!/msie [\w.]+/.exec( navigator.userAgent.toLowerCase() );
211
+
212
+ $.fn.extend({
213
+ focus: (function( orig ) {
214
+ return function( delay, fn ) {
215
+ return typeof delay === "number" ?
216
+ this.each(function() {
217
+ var elem = this;
218
+ setTimeout(function() {
219
+ $( elem ).focus();
220
+ if ( fn ) {
221
+ fn.call( elem );
222
+ }
223
+ }, delay );
224
+ }) :
225
+ orig.apply( this, arguments );
226
+ };
227
+ })( $.fn.focus ),
228
+
229
+ disableSelection: (function() {
230
+ var eventType = "onselectstart" in document.createElement( "div" ) ?
231
+ "selectstart" :
232
+ "mousedown";
233
+
234
+ return function() {
235
+ return this.bind( eventType + ".ui-disableSelection", function( event ) {
236
+ event.preventDefault();
237
+ });
238
+ };
239
+ })(),
240
+
241
+ enableSelection: function() {
242
+ return this.unbind( ".ui-disableSelection" );
243
+ },
244
+
245
+ zIndex: function( zIndex ) {
246
+ if ( zIndex !== undefined ) {
247
+ return this.css( "zIndex", zIndex );
248
+ }
249
+
250
+ if ( this.length ) {
251
+ var elem = $( this[ 0 ] ), position, value;
252
+ while ( elem.length && elem[ 0 ] !== document ) {
253
+ // Ignore z-index if position is set to a value where z-index is ignored by the browser
254
+ // This makes behavior of this function consistent across browsers
255
+ // WebKit always returns auto if the element is positioned
256
+ position = elem.css( "position" );
257
+ if ( position === "absolute" || position === "relative" || position === "fixed" ) {
258
+ // IE returns 0 when zIndex is not specified
259
+ // other browsers return a string
260
+ // we ignore the case of nested elements with an explicit value of 0
261
+ // <div style="z-index: -10;"><div style="z-index: 0;"></div></div>
262
+ value = parseInt( elem.css( "zIndex" ), 10 );
263
+ if ( !isNaN( value ) && value !== 0 ) {
264
+ return value;
265
+ }
266
+ }
267
+ elem = elem.parent();
268
+ }
269
+ }
270
+
271
+ return 0;
272
+ }
273
+ });
274
+
275
+ // $.ui.plugin is deprecated. Use $.widget() extensions instead.
276
+ $.ui.plugin = {
277
+ add: function( module, option, set ) {
278
+ var i,
279
+ proto = $.ui[ module ].prototype;
280
+ for ( i in set ) {
281
+ proto.plugins[ i ] = proto.plugins[ i ] || [];
282
+ proto.plugins[ i ].push( [ option, set[ i ] ] );
283
+ }
284
+ },
285
+ call: function( instance, name, args, allowDisconnected ) {
286
+ var i,
287
+ set = instance.plugins[ name ];
288
+
289
+ if ( !set ) {
290
+ return;
291
+ }
292
+
293
+ if ( !allowDisconnected && ( !instance.element[ 0 ].parentNode || instance.element[ 0 ].parentNode.nodeType === 11 ) ) {
294
+ return;
295
+ }
296
+
297
+ for ( i = 0; i < set.length; i++ ) {
298
+ if ( instance.options[ set[ i ][ 0 ] ] ) {
299
+ set[ i ][ 1 ].apply( instance.element, args );
300
+ }
301
+ }
302
+ }
303
+ };
304
+
305
+ }));