yui-rails 0.5.2 → 3.13.0.0.3.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.
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ MzA0NmRhZDhiYmVhZTVkNDQ5NDNiNWNkYjNkZDZlNzkxMmRkYTJlYg==
5
+ data.tar.gz: !binary |-
6
+ MmNlMWMzOTFlZTk2MjA2NmQ4MzM1ODM2OGZmNDZhOTlkYzRhYzk2MA==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ ZTBhNmExYzA4YjhjMTg1Nzc4NDQ0MWU1NTk2ZTVmYzliMTVmNWU4ZWFiNmM4
10
+ MTc1ZDZjMjIwMmFmYWQ0ODQyYmI0N2VhMjc1M2QwMDk1OTZkYzMxOTI4YWU1
11
+ MWY4Y2QzMTFjMmY3MjU1MzhhZDc3YzkxM2FjNjc5YmM3NmQ4MjA=
12
+ data.tar.gz: !binary |-
13
+ OGE1YjE4OWJmODk3NzQwZjU0MjViMzQ0ZDllN2E4ZDhhNGE2MDExY2RkMmZm
14
+ M2M1OGNlYmIyMzM2ZTY2MjE0YzJmZTQyNTdkNWY5MTMwZWM5YzE1MGQwNDVj
15
+ Y2JjZTEwNTBmNTVmNzkyMWY0YzQwMWZiMmFmNzcxYjNlZTUzNzM=
@@ -1,3 +1,13 @@
1
+ ### 3.13.0.0.3.0 - 2013-11-22
2
+
3
+ * Upgrade to [YUI 3.13.0](http://www.yuiblog.com/blog/2013/10/07/yui-3-13-0-released/) (Benjamin Fleischer)
4
+ * Decide to track YUI3 version x.x.x followed by library version x.x.x.
5
+ The YUI3 version is what the end user is generally more interested in.
6
+ The library version is back at 0.3.0 since no library-level changes have been
7
+ made since then. This can be considered nested
8
+ [semantic versioning](http://semver.org/) where the
9
+ [YUI3_VERSION is a prefix to yui-rails's gem version](https://github.com/mojombo/semver/issues/169).
10
+
1
11
  ### 0.5.2 - 2013-06-07
2
12
 
3
13
  * Upgrade to [YUI 3.10.3](http://www.yuiblog.com/blog/2013/06/06/yui-3-10-3-released-to-fix-reintroduced-swf-vulnerability/) (Benjamin Fleischer)
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # YUI-rails
2
2
 
3
- No-hassle integration of YUI with the Rails 3.1 asset pipeline.
3
+ No-hassle integration of YUI with the Rails asset pipeline.
4
4
 
5
5
  ## Usage
6
6
 
@@ -1,8 +1,8 @@
1
1
  module YUI
2
2
  module Rails
3
3
 
4
- VERSION = '0.5.2'
5
- YUI_VERSION = '3.10.3'
4
+ YUI_VERSION = '3.13.0'
5
+ VERSION = "#{YUI_VERSION}.0.3.0"
6
6
 
7
7
  end
8
8
  end
@@ -0,0 +1,58 @@
1
+ module Rack
2
+ module Test
3
+ class Session
4
+ def env_for(path, env)
5
+ uri = URI.parse(path)
6
+ uri.path = "/#{uri.path}" unless uri.path[0] == ?/
7
+ uri.host ||= @default_host
8
+
9
+ env["HTTP_HOST"] ||= [uri.host, uri.port].compact.join(":")
10
+
11
+ env = default_env.merge(env)
12
+
13
+ env.update("HTTPS" => "on") if URI::HTTPS === uri
14
+ env["HTTP_X_REQUESTED_WITH"] = "XMLHttpRequest" if env[:xhr]
15
+
16
+ # TODO: Remove this after Rack 1.1 has been released.
17
+ # Stringifying and upcasing methods has be commit upstream
18
+ env["REQUEST_METHOD"] ||= env[:method] ? env[:method].to_s.upcase : "GET"
19
+
20
+ if env["REQUEST_METHOD"] == "GET"
21
+ params = env[:params] || {}
22
+ params = parse_nested_query(params) if params.is_a?(String)
23
+
24
+ # HERE IS THE PATCH!!!!!!!!
25
+ #
26
+ # All this for that: the original parsed the querys string params,
27
+ # and rebuilt them, instead of assuming people know what they mean
28
+ # when they make a URL and leaving well enough alone!
29
+ uri.query = (uri.query || '') + build_nested_query(params)
30
+ #
31
+ # THAT WAS THE PATCH!!!!!!!!
32
+ elsif !env.has_key?(:input)
33
+ env["CONTENT_TYPE"] ||= "application/x-www-form-urlencoded"
34
+
35
+ if env[:params].is_a?(Hash)
36
+ if data = build_multipart(env[:params])
37
+ env[:input] = data
38
+ env["CONTENT_LENGTH"] ||= data.length.to_s
39
+ env["CONTENT_TYPE"] = "multipart/form-data; boundary=#{MULTIPART_BOUNDARY}"
40
+ else
41
+ env[:input] = params_to_string(env[:params])
42
+ end
43
+ else
44
+ env[:input] = env[:params]
45
+ end
46
+ end
47
+
48
+ env.delete(:params)
49
+
50
+ if env.has_key?(:cookie)
51
+ set_cookie(env.delete(:cookie), uri)
52
+ end
53
+
54
+ Rack::MockRequest.env_for(uri.to_s, env)
55
+ end
56
+ end
57
+ end
58
+ end
@@ -1,5 +1,5 @@
1
1
  /*
2
- YUI 3.10.3 (build 2fb5187)
2
+ YUI 3.13.0 (build 508226d)
3
3
  Copyright 2013 Yahoo! Inc. All rights reserved.
4
4
  Licensed under the BSD License.
5
5
  http://yuilibrary.com/license/
@@ -163,7 +163,7 @@ available.
163
163
  (function() {
164
164
 
165
165
  var proto, prop,
166
- VERSION = '3.10.3',
166
+ VERSION = '3.13.0',
167
167
  PERIOD = '.',
168
168
  BASE = 'http://yui.yahooapis.com/',
169
169
  /*
@@ -362,15 +362,15 @@ proto = {
362
362
  _loaded: {},
363
363
  // serviced: {},
364
364
  // Regex in English:
365
- // I'll start at the \b(simpleyui).
366
- // 1. Look in the test string for "simpleyui" or "yui" or
365
+ // I'll start at the \b(yui).
366
+ // 1. Look in the test string for "yui" or
367
367
  // "yui-base" or "yui-davglass" or "yui-foobar" that comes after a word break. That is, it
368
- // can't match "foyui" or "i_heart_simpleyui". This can be anywhere in the string.
368
+ // can't match "foyui" or "i_heart_yui". This can be anywhere in the string.
369
369
  // 2. After #1 must come a forward slash followed by the string matched in #1, so
370
- // "yui-base/yui-base" or "simpleyui/simpleyui" or "yui-pants/yui-pants".
370
+ // "yui-base/yui-base" or "yui-pants/yui-pants".
371
371
  // 3. The second occurence of the #1 token can optionally be followed by "-debug" or "-min",
372
372
  // so "yui/yui-min", "yui/yui-debug", "yui-base/yui-base-debug". NOT "yui/yui-tshirt".
373
- // 4. This is followed by ".js", so "yui/yui.js", "simpleyui/simpleyui-min.js"
373
+ // 4. This is followed by ".js", so "yui/yui.js".
374
374
  // 0. Going back to the beginning, now. If all that stuff in 1-4 comes after a "?" in the string,
375
375
  // then capture the junk between the LAST "&" and the string in 1-4. So
376
376
  // "blah?foo/yui/yui.js" will capture "foo/" and "blah?some/thing.js&3.3.0/build/yui-davglass/yui-davglass.js"
@@ -382,13 +382,13 @@ proto = {
382
382
  // * in fact, find as many sets of characters followed by a & as you can
383
383
  // ([^&]*) capture the stuff after the last & in \1
384
384
  // )? but it's ok if all this ?junk&more_junk stuff isn't even there
385
- // \b(simpleyui| after a word break find either the string "simpleyui" or
386
- // yui(?:-\w+)? the string "yui" optionally followed by a -, then more characters
387
- // ) and store the simpleyui or yui-* string in \2
388
- // \/\2 then comes a / followed by the simpleyui or yui-* string in \2
385
+ // \b( after a word break find either the string
386
+ // yui(?:-\w+)? "yui" optionally followed by a -, then more characters
387
+ // ) and store the yui-* string in \2
388
+ // \/\2 then comes a / followed by the yui-* string in \2
389
389
  // (?:-(min|debug))? optionally followed by "-min" or "-debug"
390
390
  // .js and ending in ".js"
391
- _BASE_RE: /(?:\?(?:[^&]*&)*([^&]*))?\b(simpleyui|yui(?:-\w+)?)\/\2(?:-(min|debug))?\.js/,
391
+ _BASE_RE: /(?:\?(?:[^&]*&)*([^&]*))?\b(yui(?:-\w+)?)\/\2(?:-(min|debug))?\.js/,
392
392
  parseBasePath: function(src, pattern) {
393
393
  var match = src.match(pattern),
394
394
  path, filter;
@@ -1527,6 +1527,7 @@ Y.log('Fetching loader: ' + config.base + config.loaderPath, 'info', 'yui');
1527
1527
  YUI._getLoadHook = null;
1528
1528
  }
1529
1529
 
1530
+ YUI.Env[VERSION] = {};
1530
1531
  }());
1531
1532
 
1532
1533
 
@@ -2147,9 +2148,15 @@ TYPES = {
2147
2148
  '[object Error]' : 'error'
2148
2149
  },
2149
2150
 
2150
- SUBREGEX = /\{\s*([^|}]+?)\s*(?:\|([^}]*))?\s*\}/g,
2151
- TRIMREGEX = /^\s+|\s+$/g,
2152
- NATIVE_FN_REGEX = /\{\s*\[(?:native code|function)\]\s*\}/i;
2151
+ SUBREGEX = /\{\s*([^|}]+?)\s*(?:\|([^}]*))?\s*\}/g,
2152
+
2153
+ WHITESPACE = "\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF",
2154
+ WHITESPACE_CLASS = "[\x09-\x0D\x20\xA0\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]+",
2155
+ TRIM_LEFT_REGEX = new RegExp("^" + WHITESPACE_CLASS),
2156
+ TRIM_RIGHT_REGEX = new RegExp(WHITESPACE_CLASS + "$"),
2157
+ TRIMREGEX = new RegExp(TRIM_LEFT_REGEX.source + "|" + TRIM_RIGHT_REGEX.source, "g"),
2158
+
2159
+ NATIVE_FN_REGEX = /\{\s*\[(?:native code|function)\]\s*\}/i;
2153
2160
 
2154
2161
  // -- Protected Methods --------------------------------------------------------
2155
2162
 
@@ -2289,6 +2296,17 @@ L.isObject = function(o, failfn) {
2289
2296
  (!failfn && (t === 'function' || L.isFunction(o))))) || false;
2290
2297
  };
2291
2298
 
2299
+ /**
2300
+ * Determines whether or not the provided value is a regexp.
2301
+ * @method isRegExp
2302
+ * @static
2303
+ * @param value The value or object to test.
2304
+ * @return {boolean} true if value is a regexp.
2305
+ */
2306
+ L.isRegExp = function(value) {
2307
+ return L.type(value) === 'regexp';
2308
+ };
2309
+
2292
2310
  /**
2293
2311
  * Determines whether or not the provided item is a string.
2294
2312
  * @method isString
@@ -2373,7 +2391,7 @@ L.sub = function(s, o) {
2373
2391
  * @param s {string} the string to trim.
2374
2392
  * @return {string} the trimmed string.
2375
2393
  */
2376
- L.trim = STRING_PROTO.trim ? function(s) {
2394
+ L.trim = L._isNative(STRING_PROTO.trim) && !WHITESPACE.trim() ? function(s) {
2377
2395
  return s && s.trim ? s.trim() : s;
2378
2396
  } : function (s) {
2379
2397
  try {
@@ -2390,10 +2408,10 @@ L.trim = STRING_PROTO.trim ? function(s) {
2390
2408
  * @param s {string} the string to trim.
2391
2409
  * @return {string} the trimmed string.
2392
2410
  */
2393
- L.trimLeft = STRING_PROTO.trimLeft ? function (s) {
2411
+ L.trimLeft = L._isNative(STRING_PROTO.trimLeft) && !WHITESPACE.trimLeft() ? function (s) {
2394
2412
  return s.trimLeft();
2395
2413
  } : function (s) {
2396
- return s.replace(/^\s+/, '');
2414
+ return s.replace(TRIM_LEFT_REGEX, '');
2397
2415
  };
2398
2416
 
2399
2417
  /**
@@ -2403,10 +2421,10 @@ L.trimLeft = STRING_PROTO.trimLeft ? function (s) {
2403
2421
  * @param s {string} the string to trim.
2404
2422
  * @return {string} the trimmed string.
2405
2423
  */
2406
- L.trimRight = STRING_PROTO.trimRight ? function (s) {
2424
+ L.trimRight = L._isNative(STRING_PROTO.trimRight) && !WHITESPACE.trimRight() ? function (s) {
2407
2425
  return s.trimRight();
2408
2426
  } : function (s) {
2409
- return s.replace(/\s+$/, '');
2427
+ return s.replace(TRIM_RIGHT_REGEX, '');
2410
2428
  };
2411
2429
 
2412
2430
  /**
@@ -2508,16 +2526,34 @@ Dedupes an array of strings, returning an array that's guaranteed to contain
2508
2526
  only one copy of a given string.
2509
2527
 
2510
2528
  This method differs from `Array.unique()` in that it's optimized for use only
2511
- with strings, whereas `unique` may be used with other types (but is slower).
2512
- Using `dedupe()` with non-string values may result in unexpected behavior.
2529
+ with arrays consisting entirely of strings or entirely of numbers, whereas
2530
+ `unique` may be used with other value types (but is slower).
2531
+
2532
+ Using `dedupe()` with values other than strings or numbers, or with arrays
2533
+ containing a mix of strings and numbers, may result in unexpected behavior.
2513
2534
 
2514
2535
  @method dedupe
2515
- @param {String[]} array Array of strings to dedupe.
2516
- @return {Array} Deduped copy of _array_.
2536
+ @param {String[]|Number[]} array Array of strings or numbers to dedupe.
2537
+ @return {Array} Copy of _array_ containing no duplicate values.
2517
2538
  @static
2518
2539
  @since 3.4.0
2519
2540
  **/
2520
- YArray.dedupe = function (array) {
2541
+ YArray.dedupe = Lang._isNative(Object.create) ? function (array) {
2542
+ var hash = Object.create(null),
2543
+ results = [],
2544
+ i, item, len;
2545
+
2546
+ for (i = 0, len = array.length; i < len; ++i) {
2547
+ item = array[i];
2548
+
2549
+ if (!hash[item]) {
2550
+ hash[item] = 1;
2551
+ results.push(item);
2552
+ }
2553
+ }
2554
+
2555
+ return results;
2556
+ } : function (array) {
2521
2557
  var hash = {},
2522
2558
  results = [],
2523
2559
  i, item, len;
@@ -2860,7 +2896,7 @@ Y.cached = function (source, cache, refetch) {
2860
2896
  var key = arguments.length > 1 ?
2861
2897
  Array.prototype.join.call(arguments, CACHED_DELIMITER) :
2862
2898
  String(arg);
2863
-
2899
+
2864
2900
  /*jshint eqeqeq: false*/
2865
2901
  if (!(key in cache) || (refetch && cache[key] == refetch)) {
2866
2902
  cache[key] = source.apply(source, arguments);
@@ -3159,7 +3195,7 @@ hasEnumBug = O._hasEnumBug = !{valueOf: 0}.propertyIsEnumerable('valueOf'),
3159
3195
 
3160
3196
  /**
3161
3197
  * `true` if this browser incorrectly considers the `prototype` property of
3162
- * functions to be enumerable. Currently known to affect Opera 11.50.
3198
+ * functions to be enumerable. Currently known to affect Opera 11.50 and Android 2.3.x.
3163
3199
  *
3164
3200
  * @property _hasProtoEnumBug
3165
3201
  * @type Boolean
@@ -3203,7 +3239,9 @@ O.hasKey = owns;
3203
3239
  * as the order in which they were defined.
3204
3240
  *
3205
3241
  * This method is an alias for the native ES5 `Object.keys()` method if
3206
- * available.
3242
+ * available and non-buggy. The Opera 11.50 and Android 2.3.x versions of
3243
+ * `Object.keys()` have an inconsistency as they consider `prototype` to be
3244
+ * enumerable, so a non-native shim is used to rectify the difference.
3207
3245
  *
3208
3246
  * @example
3209
3247
  *
@@ -3215,7 +3253,7 @@ O.hasKey = owns;
3215
3253
  * @return {String[]} Array of keys.
3216
3254
  * @static
3217
3255
  */
3218
- O.keys = Lang._isNative(Object.keys) ? Object.keys : function (obj) {
3256
+ O.keys = Lang._isNative(Object.keys) && !hasProtoEnumBug ? Object.keys : function (obj) {
3219
3257
  if (!Lang.isObject(obj)) {
3220
3258
  throw new TypeError('Object.keys called on a non-object');
3221
3259
  }
@@ -3822,17 +3860,25 @@ YUI.Env.parseUA = function(subUA) {
3822
3860
  }
3823
3861
  }
3824
3862
 
3825
- m = ua.match(/(Chrome|CrMo|CriOS)\/([^\s]*)/);
3826
- if (m && m[1] && m[2]) {
3827
- o.chrome = numberify(m[2]); // Chrome
3828
- o.safari = 0; //Reset safari back to 0
3829
- if (m[1] === 'CrMo') {
3830
- o.mobile = 'chrome';
3831
- }
3863
+ m = ua.match(/OPR\/(\d+\.\d+)/);
3864
+
3865
+ if (m && m[1]) {
3866
+ // Opera 15+ with Blink (pretends to be both Chrome and Safari)
3867
+ o.opera = numberify(m[1]);
3832
3868
  } else {
3833
- m = ua.match(/AdobeAIR\/([^\s]*)/);
3834
- if (m) {
3835
- o.air = m[0]; // Adobe AIR 1.0 or better
3869
+ m = ua.match(/(Chrome|CrMo|CriOS)\/([^\s]*)/);
3870
+
3871
+ if (m && m[1] && m[2]) {
3872
+ o.chrome = numberify(m[2]); // Chrome
3873
+ o.safari = 0; //Reset safari back to 0
3874
+ if (m[1] === 'CrMo') {
3875
+ o.mobile = 'chrome';
3876
+ }
3877
+ } else {
3878
+ m = ua.match(/AdobeAIR\/([^\s]*)/);
3879
+ if (m) {
3880
+ o.air = m[0]; // Adobe AIR 1.0 or better
3881
+ }
3836
3882
  }
3837
3883
  }
3838
3884
  }
@@ -3862,11 +3908,13 @@ YUI.Env.parseUA = function(subUA) {
3862
3908
  o.mobile = m[0]; // ex: Opera Mini/2.0.4509/1316
3863
3909
  }
3864
3910
  } else { // not opera or webkit
3865
- m = ua.match(/MSIE\s([^;]*)/);
3866
- if (m && m[1]) {
3867
- o.ie = numberify(m[1]);
3911
+ m = ua.match(/MSIE ([^;]*)|Trident.*; rv:([0-9.]+)/);
3912
+
3913
+ if (m && (m[1] || m[2])) {
3914
+ o.ie = numberify(m[1] || m[2]);
3868
3915
  } else { // not opera, webkit, or ie
3869
3916
  m = ua.match(/Gecko\/([^\s]*)/);
3917
+
3870
3918
  if (m) {
3871
3919
  o.gecko = 1; // Gecko detected, look for revision
3872
3920
  m = ua.match(/rv:([^\s\)]*)/);
@@ -3962,7 +4010,7 @@ Y.UA.compareVersions = function (a, b) {
3962
4010
  YUI.Env.aliases = {
3963
4011
  "anim": ["anim-base","anim-color","anim-curve","anim-easing","anim-node-plugin","anim-scroll","anim-xy"],
3964
4012
  "anim-shape-transform": ["anim-shape"],
3965
- "app": ["app-base","app-content","app-transitions","lazy-model-list","model","model-list","model-sync-rest","router","view","view-node-map"],
4013
+ "app": ["app-base","app-content","app-transitions","lazy-model-list","model","model-list","model-sync-rest","model-sync-local","router","view","view-node-map"],
3966
4014
  "attribute": ["attribute-base","attribute-complex"],
3967
4015
  "attribute-events": ["attribute-observable"],
3968
4016
  "autocomplete": ["autocomplete-base","autocomplete-sources","autocomplete-list","autocomplete-plugin"],
@@ -4005,7 +4053,7 @@ YUI.Env.aliases = {
4005
4053
  };
4006
4054
 
4007
4055
 
4008
- }, '3.10.3', {
4056
+ }, '3.13.0', {
4009
4057
  "use": [
4010
4058
  "yui-base",
4011
4059
  "get",
@@ -5308,7 +5356,7 @@ Transaction.prototype = {
5308
5356
  };
5309
5357
 
5310
5358
 
5311
- }, '3.10.3', {"requires": ["yui-base"]});
5359
+ }, '3.13.0', {"requires": ["yui-base"]});
5312
5360
  YUI.add('features', function (Y, NAME) {
5313
5361
 
5314
5362
  var feature_tests = {};
@@ -5717,7 +5765,7 @@ add('load', '22', {
5717
5765
  "when": "after"
5718
5766
  });
5719
5767
 
5720
- }, '3.10.3', {"requires": ["yui-base"]});
5768
+ }, '3.13.0', {"requires": ["yui-base"]});
5721
5769
  YUI.add('intl-base', function (Y, NAME) {
5722
5770
 
5723
5771
  /**
@@ -5805,7 +5853,7 @@ Y.mix(Y.namespace('Intl'), {
5805
5853
  });
5806
5854
 
5807
5855
 
5808
- }, '3.10.3', {"requires": ["yui-base"]});
5856
+ }, '3.13.0', {"requires": ["yui-base"]});
5809
5857
  YUI.add('yui-log', function (Y, NAME) {
5810
5858
 
5811
5859
  /**
@@ -5925,7 +5973,7 @@ INSTANCE.message = function() {
5925
5973
  };
5926
5974
 
5927
5975
 
5928
- }, '3.10.3', {"requires": ["yui-base"]});
5976
+ }, '3.13.0', {"requires": ["yui-base"]});
5929
5977
  YUI.add('yui-later', function (Y, NAME) {
5930
5978
 
5931
5979
  /**
@@ -5944,7 +5992,7 @@ var NO_ARGS = [];
5944
5992
  * single time unless periodic is set to true.
5945
5993
  * @for YUI
5946
5994
  * @method later
5947
- * @param when {int} the number of milliseconds to wait until the fn
5995
+ * @param when {Number} the number of milliseconds to wait until the fn
5948
5996
  * is executed.
5949
5997
  * @param o the context object.
5950
5998
  * @param fn {Function|String} the function to execute or the name of
@@ -6003,7 +6051,7 @@ Y.Lang.later = Y.later;
6003
6051
 
6004
6052
 
6005
6053
 
6006
- }, '3.10.3', {"requires": ["yui-base"]});
6054
+ }, '3.13.0', {"requires": ["yui-base"]});
6007
6055
  YUI.add('loader-base', function (Y, NAME) {
6008
6056
 
6009
6057
  /**
@@ -6012,98 +6060,110 @@ YUI.add('loader-base', function (Y, NAME) {
6012
6060
  * @submodule loader-base
6013
6061
  */
6014
6062
 
6015
- if (!YUI.Env[Y.version]) {
6016
-
6017
- (function() {
6018
- var VERSION = Y.version,
6019
- BUILD = '/build/',
6020
- ROOT = VERSION + '/',
6021
- CDN_BASE = Y.Env.base,
6022
- GALLERY_VERSION = 'gallery-2013.06.05-22-14',
6023
- TNT = '2in3',
6024
- TNT_VERSION = '4',
6025
- YUI2_VERSION = '2.9.0',
6026
- COMBO_BASE = CDN_BASE + 'combo?',
6027
- META = { version: VERSION,
6028
- root: ROOT,
6029
- base: Y.Env.base,
6030
- comboBase: COMBO_BASE,
6031
- skin: { defaultSkin: 'sam',
6032
- base: 'assets/skins/',
6033
- path: 'skin.css',
6034
- after: ['cssreset',
6035
- 'cssfonts',
6036
- 'cssgrids',
6037
- 'cssbase',
6038
- 'cssreset-context',
6039
- 'cssfonts-context']},
6040
- groups: {},
6041
- patterns: {} },
6042
- groups = META.groups,
6043
- yui2Update = function(tnt, yui2, config) {
6044
-
6045
- var root = TNT + '.' +
6046
- (tnt || TNT_VERSION) + '/' +
6047
- (yui2 || YUI2_VERSION) + BUILD,
6048
- base = (config && config.base) ? config.base : CDN_BASE,
6049
- combo = (config && config.comboBase) ? config.comboBase : COMBO_BASE;
6050
-
6051
- groups.yui2.base = base + root;
6052
- groups.yui2.root = root;
6053
- groups.yui2.comboBase = combo;
6063
+ (function() {
6064
+ var VERSION = Y.version,
6065
+ BUILD = '/build/',
6066
+ ROOT = VERSION + '/',
6067
+ CDN_BASE = Y.Env.base,
6068
+ GALLERY_VERSION = 'gallery-2013.10.02-20-26',
6069
+ TNT = '2in3',
6070
+ TNT_VERSION = '4',
6071
+ YUI2_VERSION = '2.9.0',
6072
+ COMBO_BASE = CDN_BASE + 'combo?',
6073
+ META = {
6074
+ version: VERSION,
6075
+ root: ROOT,
6076
+ base: Y.Env.base,
6077
+ comboBase: COMBO_BASE,
6078
+ skin: {
6079
+ defaultSkin: 'sam',
6080
+ base: 'assets/skins/',
6081
+ path: 'skin.css',
6082
+ after: [
6083
+ 'cssreset',
6084
+ 'cssfonts',
6085
+ 'cssgrids',
6086
+ 'cssbase',
6087
+ 'cssreset-context',
6088
+ 'cssfonts-context'
6089
+ ]
6054
6090
  },
6055
- galleryUpdate = function(tag, config) {
6056
- var root = (tag || GALLERY_VERSION) + BUILD,
6057
- base = (config && config.base) ? config.base : CDN_BASE,
6058
- combo = (config && config.comboBase) ? config.comboBase : COMBO_BASE;
6059
-
6060
- groups.gallery.base = base + root;
6061
- groups.gallery.root = root;
6062
- groups.gallery.comboBase = combo;
6063
- };
6091
+ groups: {},
6092
+ patterns: {}
6093
+ },
6094
+ groups = META.groups,
6095
+ yui2Update = function(tnt, yui2, config) {
6096
+ var root = TNT + '.' +
6097
+ (tnt || TNT_VERSION) + '/' +
6098
+ (yui2 || YUI2_VERSION) + BUILD,
6099
+ base = (config && config.base) ? config.base : CDN_BASE,
6100
+ combo = (config && config.comboBase) ? config.comboBase : COMBO_BASE;
6101
+
6102
+ groups.yui2.base = base + root;
6103
+ groups.yui2.root = root;
6104
+ groups.yui2.comboBase = combo;
6105
+ },
6106
+ galleryUpdate = function(tag, config) {
6107
+ var root = (tag || GALLERY_VERSION) + BUILD,
6108
+ base = (config && config.base) ? config.base : CDN_BASE,
6109
+ combo = (config && config.comboBase) ? config.comboBase : COMBO_BASE;
6110
+
6111
+ groups.gallery.base = base + root;
6112
+ groups.gallery.root = root;
6113
+ groups.gallery.comboBase = combo;
6114
+ };
6064
6115
 
6065
6116
 
6066
- groups[VERSION] = {};
6117
+ groups[VERSION] = {};
6067
6118
 
6068
- groups.gallery = {
6069
- ext: false,
6070
- combine: true,
6071
- comboBase: COMBO_BASE,
6072
- update: galleryUpdate,
6073
- patterns: { 'gallery-': { },
6074
- 'lang/gallery-': {},
6075
- 'gallerycss-': { type: 'css' } }
6076
- };
6119
+ groups.gallery = {
6120
+ ext: false,
6121
+ combine: true,
6122
+ comboBase: COMBO_BASE,
6123
+ update: galleryUpdate,
6124
+ patterns: {
6125
+ 'gallery-': {},
6126
+ 'lang/gallery-': {},
6127
+ 'gallerycss-': {
6128
+ type: 'css'
6129
+ }
6130
+ }
6131
+ };
6077
6132
 
6078
- groups.yui2 = {
6079
- combine: true,
6080
- ext: false,
6081
- comboBase: COMBO_BASE,
6082
- update: yui2Update,
6083
- patterns: {
6084
- 'yui2-': {
6085
- configFn: function(me) {
6086
- if (/-skin|reset|fonts|grids|base/.test(me.name)) {
6087
- me.type = 'css';
6088
- me.path = me.path.replace(/\.js/, '.css');
6089
- // this makes skins in builds earlier than
6090
- // 2.6.0 work as long as combine is false
6091
- me.path = me.path.replace(/\/yui2-skin/,
6092
- '/assets/skins/sam/yui2-skin');
6093
- }
6133
+ groups.yui2 = {
6134
+ combine: true,
6135
+ ext: false,
6136
+ comboBase: COMBO_BASE,
6137
+ update: yui2Update,
6138
+ patterns: {
6139
+ 'yui2-': {
6140
+ configFn: function(me) {
6141
+ if (/-skin|reset|fonts|grids|base/.test(me.name)) {
6142
+ me.type = 'css';
6143
+ me.path = me.path.replace(/\.js/, '.css');
6144
+ // this makes skins in builds earlier than
6145
+ // 2.6.0 work as long as combine is false
6146
+ me.path = me.path.replace(/\/yui2-skin/,
6147
+ '/assets/skins/sam/yui2-skin');
6094
6148
  }
6095
6149
  }
6096
6150
  }
6097
- };
6151
+ }
6152
+ };
6098
6153
 
6099
- galleryUpdate();
6100
- yui2Update();
6101
-
6102
- YUI.Env[VERSION] = META;
6103
- }());
6104
- }
6154
+ galleryUpdate();
6155
+ yui2Update();
6105
6156
 
6157
+ if (YUI.Env[VERSION]) {
6158
+ Y.mix(META, YUI.Env[VERSION], false, [
6159
+ 'modules',
6160
+ 'groups',
6161
+ 'skin'
6162
+ ], 0, true);
6163
+ }
6106
6164
 
6165
+ YUI.Env[VERSION] = META;
6166
+ }());
6107
6167
  /*jslint forin: true, maxlen: 350 */
6108
6168
 
6109
6169
  /**
@@ -8823,7 +8883,7 @@ Y.log('Undefined module: ' + mname + ', matched a pattern: ' +
8823
8883
 
8824
8884
 
8825
8885
 
8826
- }, '3.10.3', {"requires": ["get", "features"]});
8886
+ }, '3.13.0', {"requires": ["get", "features"]});
8827
8887
  YUI.add('loader-rollup', function (Y, NAME) {
8828
8888
 
8829
8889
  /**
@@ -8925,7 +8985,7 @@ Y.Loader.prototype._rollup = function() {
8925
8985
  };
8926
8986
 
8927
8987
 
8928
- }, '3.10.3', {"requires": ["loader-base"]});
8988
+ }, '3.13.0', {"requires": ["loader-base"]});
8929
8989
  YUI.add('loader-yui3', function (Y, NAME) {
8930
8990
 
8931
8991
  /* This file is auto-generated by (yogi.js loader --mix --yes) */
@@ -9016,6 +9076,7 @@ Y.mix(YUI.Env[Y.version].modules, {
9016
9076
  "model",
9017
9077
  "model-list",
9018
9078
  "model-sync-rest",
9079
+ "model-sync-local",
9019
9080
  "router",
9020
9081
  "view",
9021
9082
  "view-node-map"
@@ -9190,6 +9251,7 @@ Y.mix(YUI.Env[Y.version].modules, {
9190
9251
  "lang": [
9191
9252
  "en",
9192
9253
  "es",
9254
+ "hu",
9193
9255
  "it"
9194
9256
  ],
9195
9257
  "requires": [
@@ -9370,7 +9432,8 @@ Y.mix(YUI.Env[Y.version].modules, {
9370
9432
  "requires": [
9371
9433
  "attribute-core",
9372
9434
  "classnamemanager",
9373
- "node-base"
9435
+ "node-base",
9436
+ "escape"
9374
9437
  ]
9375
9438
  },
9376
9439
  "button-group": {
@@ -9412,20 +9475,6 @@ Y.mix(YUI.Env[Y.version].modules, {
9412
9475
  ]
9413
9476
  },
9414
9477
  "calendar": {
9415
- "lang": [
9416
- "de",
9417
- "en",
9418
- "es",
9419
- "es-AR",
9420
- "fr",
9421
- "it",
9422
- "ja",
9423
- "nb-NO",
9424
- "nl",
9425
- "pt-BR",
9426
- "ru",
9427
- "zh-HANT-TW"
9428
- ],
9429
9478
  "requires": [
9430
9479
  "calendar-base",
9431
9480
  "calendarnavigator"
@@ -9439,12 +9488,17 @@ Y.mix(YUI.Env[Y.version].modules, {
9439
9488
  "es",
9440
9489
  "es-AR",
9441
9490
  "fr",
9491
+ "hu",
9442
9492
  "it",
9443
9493
  "ja",
9444
9494
  "nb-NO",
9445
9495
  "nl",
9446
9496
  "pt-BR",
9447
9497
  "ru",
9498
+ "zh-Hans",
9499
+ "zh-Hans-CN",
9500
+ "zh-Hant",
9501
+ "zh-Hant-HK",
9448
9502
  "zh-HANT-TW"
9449
9503
  ],
9450
9504
  "requires": [
@@ -9552,6 +9606,7 @@ Y.mix(YUI.Env[Y.version].modules, {
9552
9606
  "lang": [
9553
9607
  "en",
9554
9608
  "es",
9609
+ "hu",
9555
9610
  "it",
9556
9611
  "ja"
9557
9612
  ],
@@ -9568,6 +9623,14 @@ Y.mix(YUI.Env[Y.version].modules, {
9568
9623
  ],
9569
9624
  "skinnable": true
9570
9625
  },
9626
+ "content-editable": {
9627
+ "requires": [
9628
+ "node-base",
9629
+ "editor-selection",
9630
+ "stylesheet",
9631
+ "plugin"
9632
+ ]
9633
+ },
9571
9634
  "controller": {
9572
9635
  "use": [
9573
9636
  "router"
@@ -9616,22 +9679,19 @@ Y.mix(YUI.Env[Y.version].modules, {
9616
9679
  },
9617
9680
  "cssgrids": {
9618
9681
  "optional": [
9619
- "cssreset",
9620
- "cssfonts"
9682
+ "cssnormalize"
9621
9683
  ],
9622
9684
  "type": "css"
9623
9685
  },
9624
9686
  "cssgrids-base": {
9625
9687
  "optional": [
9626
- "cssreset",
9627
- "cssfonts"
9688
+ "cssnormalize"
9628
9689
  ],
9629
9690
  "type": "css"
9630
9691
  },
9631
9692
  "cssgrids-responsive": {
9632
9693
  "optional": [
9633
- "cssreset",
9634
- "cssfonts"
9694
+ "cssnormalize"
9635
9695
  ],
9636
9696
  "requires": [
9637
9697
  "cssgrids",
@@ -9641,8 +9701,7 @@ Y.mix(YUI.Env[Y.version].modules, {
9641
9701
  },
9642
9702
  "cssgrids-units": {
9643
9703
  "optional": [
9644
- "cssreset",
9645
- "cssfonts"
9704
+ "cssnormalize"
9646
9705
  ],
9647
9706
  "requires": [
9648
9707
  "cssgrids-base"
@@ -9824,6 +9883,12 @@ Y.mix(YUI.Env[Y.version].modules, {
9824
9883
  "datasource-local"
9825
9884
  ]
9826
9885
  },
9886
+ "datatable-foot": {
9887
+ "requires": [
9888
+ "datatable-core",
9889
+ "view"
9890
+ ]
9891
+ },
9827
9892
  "datatable-formatters": {
9828
9893
  "requires": [
9829
9894
  "datatable-body",
@@ -9839,11 +9904,19 @@ Y.mix(YUI.Env[Y.version].modules, {
9839
9904
  "classnamemanager"
9840
9905
  ]
9841
9906
  },
9907
+ "datatable-highlight": {
9908
+ "requires": [
9909
+ "datatable-base",
9910
+ "event-hover"
9911
+ ],
9912
+ "skinnable": true
9913
+ },
9842
9914
  "datatable-message": {
9843
9915
  "lang": [
9844
9916
  "en",
9845
9917
  "fr",
9846
9918
  "es",
9919
+ "hu",
9847
9920
  "it"
9848
9921
  ],
9849
9922
  "requires": [
@@ -9856,6 +9929,25 @@ Y.mix(YUI.Env[Y.version].modules, {
9856
9929
  "datatable-base"
9857
9930
  ]
9858
9931
  },
9932
+ "datatable-paginator": {
9933
+ "lang": [
9934
+ "en",
9935
+ "fr"
9936
+ ],
9937
+ "requires": [
9938
+ "model",
9939
+ "view",
9940
+ "paginator-core",
9941
+ "datatable-foot",
9942
+ "datatable-paginator-templates"
9943
+ ],
9944
+ "skinnable": true
9945
+ },
9946
+ "datatable-paginator-templates": {
9947
+ "requires": [
9948
+ "template"
9949
+ ]
9950
+ },
9859
9951
  "datatable-scroll": {
9860
9952
  "requires": [
9861
9953
  "datatable-base",
@@ -9868,7 +9960,8 @@ Y.mix(YUI.Env[Y.version].modules, {
9868
9960
  "lang": [
9869
9961
  "en",
9870
9962
  "fr",
9871
- "es"
9963
+ "es",
9964
+ "hu"
9872
9965
  ],
9873
9966
  "requires": [
9874
9967
  "datatable-base"
@@ -9944,6 +10037,7 @@ Y.mix(YUI.Env[Y.version].modules, {
9944
10037
  "fr-FR",
9945
10038
  "hi",
9946
10039
  "hi-IN",
10040
+ "hu",
9947
10041
  "id",
9948
10042
  "id-ID",
9949
10043
  "it",
@@ -10098,7 +10192,8 @@ Y.mix(YUI.Env[Y.version].modules, {
10098
10192
  "dial": {
10099
10193
  "lang": [
10100
10194
  "en",
10101
- "es"
10195
+ "es",
10196
+ "hu"
10102
10197
  ],
10103
10198
  "requires": [
10104
10199
  "widget",
@@ -10131,11 +10226,6 @@ Y.mix(YUI.Env[Y.version].modules, {
10131
10226
  "features"
10132
10227
  ]
10133
10228
  },
10134
- "dom-deprecated": {
10135
- "requires": [
10136
- "dom-base"
10137
- ]
10138
- },
10139
10229
  "dom-screen": {
10140
10230
  "requires": [
10141
10231
  "dom-base",
@@ -10220,6 +10310,12 @@ Y.mix(YUI.Env[Y.version].modules, {
10220
10310
  "editor-base"
10221
10311
  ]
10222
10312
  },
10313
+ "editor-inline": {
10314
+ "requires": [
10315
+ "editor-base",
10316
+ "content-editable"
10317
+ ]
10318
+ },
10223
10319
  "editor-lists": {
10224
10320
  "requires": [
10225
10321
  "editor-base"
@@ -10450,6 +10546,7 @@ Y.mix(YUI.Env[Y.version].modules, {
10450
10546
  "requires": [
10451
10547
  "base",
10452
10548
  "node",
10549
+ "plugin",
10453
10550
  "selector-css3",
10454
10551
  "yui-throttle"
10455
10552
  ]
@@ -10850,6 +10947,12 @@ Y.mix(YUI.Env[Y.version].modules, {
10850
10947
  "model"
10851
10948
  ]
10852
10949
  },
10950
+ "model-sync-local": {
10951
+ "requires": [
10952
+ "model",
10953
+ "json-stringify"
10954
+ ]
10955
+ },
10853
10956
  "model-sync-rest": {
10854
10957
  "requires": [
10855
10958
  "model",
@@ -10870,7 +10973,8 @@ Y.mix(YUI.Env[Y.version].modules, {
10870
10973
  "requires": [
10871
10974
  "event-base",
10872
10975
  "node-core",
10873
- "dom-base"
10976
+ "dom-base",
10977
+ "dom-style"
10874
10978
  ]
10875
10979
  },
10876
10980
  "node-core": {
@@ -10879,11 +10983,6 @@ Y.mix(YUI.Env[Y.version].modules, {
10879
10983
  "selector"
10880
10984
  ]
10881
10985
  },
10882
- "node-deprecated": {
10883
- "requires": [
10884
- "node-base"
10885
- ]
10886
- },
10887
10986
  "node-event-delegate": {
10888
10987
  "requires": [
10889
10988
  "node-base",
@@ -10950,11 +11049,12 @@ Y.mix(YUI.Env[Y.version].modules, {
10950
11049
  },
10951
11050
  "node-scroll-info": {
10952
11051
  "requires": [
11052
+ "array-extras",
10953
11053
  "base-build",
10954
- "dom-screen",
10955
11054
  "event-resize",
10956
11055
  "node-pluginhost",
10957
- "plugin"
11056
+ "plugin",
11057
+ "selector"
10958
11058
  ]
10959
11059
  },
10960
11060
  "node-style": {
@@ -10979,6 +11079,21 @@ Y.mix(YUI.Env[Y.version].modules, {
10979
11079
  ],
10980
11080
  "skinnable": true
10981
11081
  },
11082
+ "paginator": {
11083
+ "requires": [
11084
+ "paginator-core"
11085
+ ]
11086
+ },
11087
+ "paginator-core": {
11088
+ "requires": [
11089
+ "base"
11090
+ ]
11091
+ },
11092
+ "paginator-url": {
11093
+ "requires": [
11094
+ "paginator"
11095
+ ]
11096
+ },
10982
11097
  "panel": {
10983
11098
  "requires": [
10984
11099
  "widget",
@@ -11627,13 +11742,13 @@ Y.mix(YUI.Env[Y.version].modules, {
11627
11742
  },
11628
11743
  "uploader-flash": {
11629
11744
  "requires": [
11630
- "swf",
11745
+ "swfdetect",
11746
+ "escape",
11631
11747
  "widget",
11632
11748
  "base",
11633
11749
  "cssbutton",
11634
11750
  "node",
11635
11751
  "event-custom",
11636
- "file-flash",
11637
11752
  "uploader-queue"
11638
11753
  ]
11639
11754
  },
@@ -11724,11 +11839,6 @@ Y.mix(YUI.Env[Y.version].modules, {
11724
11839
  "widget-base"
11725
11840
  ]
11726
11841
  },
11727
- "widget-locale": {
11728
- "requires": [
11729
- "widget-base"
11730
- ]
11731
- },
11732
11842
  "widget-modality": {
11733
11843
  "requires": [
11734
11844
  "base-build",
@@ -11841,11 +11951,11 @@ Y.mix(YUI.Env[Y.version].modules, {
11841
11951
  ]
11842
11952
  }
11843
11953
  });
11844
- YUI.Env[Y.version].md5 = 'd7ced98e3907d3c3c0655a93c6ac6867';
11954
+ YUI.Env[Y.version].md5 = '3cf02e5f307a6e9470df4ea0dc7eb41e';
11845
11955
 
11846
11956
 
11847
- }, '3.10.3', {"requires": ["loader-base"]});
11848
- YUI.add('yui', function (Y, NAME) {}, '3.10.3', {
11957
+ }, '3.13.0', {"requires": ["loader-base"]});
11958
+ YUI.add('yui', function (Y, NAME) {}, '3.13.0', {
11849
11959
  "use": [
11850
11960
  "yui-base",
11851
11961
  "get",