rails-angularjs 1.3.14 → 1.3.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/rails-angularjs/version.rb +2 -2
- data/vendor/assets/javascripts/angular-animate.js +1 -1
- data/vendor/assets/javascripts/angular-animate.min.js +1 -1
- data/vendor/assets/javascripts/angular-animate.min.js.map +8 -0
- data/vendor/assets/javascripts/angular-aria.js +19 -4
- data/vendor/assets/javascripts/angular-aria.min.js +8 -7
- data/vendor/assets/javascripts/angular-aria.min.js.map +8 -0
- data/vendor/assets/javascripts/angular-cookies.js +1 -1
- data/vendor/assets/javascripts/angular-cookies.min.js +1 -1
- data/vendor/assets/javascripts/angular-cookies.min.js.map +8 -0
- data/vendor/assets/javascripts/angular-loader.js +2 -2
- data/vendor/assets/javascripts/angular-loader.min.js +2 -2
- data/vendor/assets/javascripts/angular-loader.min.js.map +8 -0
- data/vendor/assets/javascripts/angular-messages.js +4 -3
- data/vendor/assets/javascripts/angular-messages.min.js +1 -1
- data/vendor/assets/javascripts/angular-messages.min.js.map +8 -0
- data/vendor/assets/javascripts/angular-mocks.js +73 -1
- data/vendor/assets/javascripts/angular-resource.js +1 -1
- data/vendor/assets/javascripts/angular-resource.min.js +1 -1
- data/vendor/assets/javascripts/angular-resource.min.js.map +8 -0
- data/vendor/assets/javascripts/angular-route.js +1 -1
- data/vendor/assets/javascripts/angular-route.min.js +1 -1
- data/vendor/assets/javascripts/angular-route.min.js.map +8 -0
- data/vendor/assets/javascripts/angular-sanitize.js +12 -1
- data/vendor/assets/javascripts/angular-sanitize.min.js +1 -1
- data/vendor/assets/javascripts/angular-sanitize.min.js.map +8 -0
- data/vendor/assets/javascripts/angular-scenario.js +177 -49
- data/vendor/assets/javascripts/angular-touch.js +1 -1
- data/vendor/assets/javascripts/angular-touch.min.js +1 -1
- data/vendor/assets/javascripts/angular-touch.min.js.map +8 -0
- data/vendor/assets/javascripts/angular.js +177 -49
- data/vendor/assets/javascripts/angular.min.js +242 -241
- data/vendor/assets/javascripts/angular.min.js.map +8 -0
- data/vendor/assets/javascripts/unstable/angular-animate.js +1 -1
- data/vendor/assets/javascripts/unstable/angular-animate.min.js +1 -1
- data/vendor/assets/javascripts/unstable/angular-animate.min.js.map +8 -0
- data/vendor/assets/javascripts/unstable/angular-aria.js +19 -4
- data/vendor/assets/javascripts/unstable/angular-aria.min.js +8 -7
- data/vendor/assets/javascripts/unstable/angular-aria.min.js.map +8 -0
- data/vendor/assets/javascripts/unstable/angular-cookies.js +254 -140
- data/vendor/assets/javascripts/unstable/angular-cookies.min.js +4 -3
- data/vendor/assets/javascripts/unstable/angular-cookies.min.js.map +8 -0
- data/vendor/assets/javascripts/unstable/angular-loader.js +2 -2
- data/vendor/assets/javascripts/unstable/angular-loader.min.js +2 -2
- data/vendor/assets/javascripts/unstable/angular-loader.min.js.map +8 -0
- data/vendor/assets/javascripts/unstable/angular-messages.js +47 -24
- data/vendor/assets/javascripts/unstable/angular-messages.min.js +6 -7
- data/vendor/assets/javascripts/unstable/angular-messages.min.js.map +8 -0
- data/vendor/assets/javascripts/unstable/angular-mocks.js +80 -30
- data/vendor/assets/javascripts/unstable/angular-resource.js +1 -1
- data/vendor/assets/javascripts/unstable/angular-resource.min.js +1 -1
- data/vendor/assets/javascripts/unstable/angular-resource.min.js.map +8 -0
- data/vendor/assets/javascripts/unstable/angular-route.js +1 -1
- data/vendor/assets/javascripts/unstable/angular-route.min.js +1 -1
- data/vendor/assets/javascripts/unstable/angular-route.min.js.map +8 -0
- data/vendor/assets/javascripts/unstable/angular-sanitize.js +31 -20
- data/vendor/assets/javascripts/unstable/angular-sanitize.min.js +3 -3
- data/vendor/assets/javascripts/unstable/angular-sanitize.min.js.map +8 -0
- data/vendor/assets/javascripts/unstable/angular-scenario.js +378 -230
- data/vendor/assets/javascripts/unstable/angular-touch.js +1 -1
- data/vendor/assets/javascripts/unstable/angular-touch.min.js +1 -1
- data/vendor/assets/javascripts/unstable/angular-touch.min.js.map +8 -0
- data/vendor/assets/javascripts/unstable/angular.js +377 -229
- data/vendor/assets/javascripts/unstable/angular.min.js +278 -277
- data/vendor/assets/javascripts/unstable/angular.min.js.map +8 -0
- metadata +25 -5
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license AngularJS v1.4.0-beta.
|
2
|
+
* @license AngularJS v1.4.0-beta.6
|
3
3
|
* (c) 2010-2015 Google, Inc. http://angularjs.org
|
4
4
|
* License: MIT
|
5
5
|
*/
|
@@ -24,183 +24,297 @@
|
|
24
24
|
|
25
25
|
angular.module('ngCookies', ['ng']).
|
26
26
|
/**
|
27
|
-
* @ngdoc
|
28
|
-
* @name $
|
29
|
-
*
|
27
|
+
* @ngdoc provider
|
28
|
+
* @name $cookiesProvider
|
30
29
|
* @description
|
31
|
-
*
|
32
|
-
*
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
isUndefined = angular.isUndefined;
|
58
|
-
|
59
|
-
//creates a poller fn that copies all cookies from the $browser to service & inits the service
|
60
|
-
$browser.addPollFn(function() {
|
61
|
-
var currentCookies = $browser.cookies();
|
62
|
-
if (lastBrowserCookies != currentCookies) { //relies on browser.cookies() impl
|
63
|
-
lastBrowserCookies = currentCookies;
|
64
|
-
copy(currentCookies, lastCookies);
|
65
|
-
copy(currentCookies, cookies);
|
66
|
-
if (runEval) $rootScope.$apply();
|
67
|
-
}
|
68
|
-
})();
|
69
|
-
|
70
|
-
runEval = true;
|
71
|
-
|
72
|
-
//at the end of each eval, push cookies
|
73
|
-
//TODO: this should happen before the "delayed" watches fire, because if some cookies are not
|
74
|
-
// strings or browser refuses to store some cookies, we update the model in the push fn.
|
75
|
-
$rootScope.$watch(push);
|
76
|
-
|
77
|
-
return cookies;
|
78
|
-
|
30
|
+
* Use `$cookiesProvider` to change the default behavior of the {@link ngCookies.$cookies $cookies} service.
|
31
|
+
* */
|
32
|
+
provider('$cookies', [function $CookiesProvider() {
|
33
|
+
/**
|
34
|
+
* @ngdoc property
|
35
|
+
* @name $cookiesProvider#defaults
|
36
|
+
* @description
|
37
|
+
*
|
38
|
+
* Object containing default options to pass when setting cookies.
|
39
|
+
*
|
40
|
+
* The object may have following properties:
|
41
|
+
*
|
42
|
+
* - **path** - `{string}` - The cookie will be available only for this path and its
|
43
|
+
* sub-paths. By default, this would be the URL that appears in your base tag.
|
44
|
+
* - **domain** - `{string}` - The cookie will be available only for this domain and
|
45
|
+
* its sub-domains. For obvious security reasons the user agent will not accept the
|
46
|
+
* cookie if the current domain is not a sub domain or equals to the requested domain.
|
47
|
+
* - **expires** - `{string|Date}` - String of the form "Wdy, DD Mon YYYY HH:MM:SS GMT"
|
48
|
+
* or a Date object indicating the exact date/time this cookie will expire.
|
49
|
+
* - **secure** - `{boolean}` - The cookie will be available only in secured connection.
|
50
|
+
*
|
51
|
+
* Note: by default the address that appears in your <base> tag will be used as path.
|
52
|
+
* This is import so that cookies will be visible for all routes in case html5mode is enabled
|
53
|
+
*
|
54
|
+
**/
|
55
|
+
var defaults = this.defaults = {};
|
79
56
|
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
*/
|
84
|
-
function push() {
|
85
|
-
var name,
|
86
|
-
value,
|
87
|
-
browserCookies,
|
88
|
-
updated;
|
89
|
-
|
90
|
-
//delete any cookies deleted in $cookies
|
91
|
-
for (name in lastCookies) {
|
92
|
-
if (isUndefined(cookies[name])) {
|
93
|
-
$browser.cookies(name, undefined);
|
94
|
-
}
|
95
|
-
}
|
96
|
-
|
97
|
-
//update all cookies updated in $cookies
|
98
|
-
for (name in cookies) {
|
99
|
-
value = cookies[name];
|
100
|
-
if (!angular.isString(value)) {
|
101
|
-
value = '' + value;
|
102
|
-
cookies[name] = value;
|
103
|
-
}
|
104
|
-
if (value !== lastCookies[name]) {
|
105
|
-
$browser.cookies(name, value);
|
106
|
-
updated = true;
|
107
|
-
}
|
108
|
-
}
|
109
|
-
|
110
|
-
//verify what was actually stored
|
111
|
-
if (updated) {
|
112
|
-
updated = false;
|
113
|
-
browserCookies = $browser.cookies();
|
114
|
-
|
115
|
-
for (name in cookies) {
|
116
|
-
if (cookies[name] !== browserCookies[name]) {
|
117
|
-
//delete or reset all cookies that the browser dropped from $cookies
|
118
|
-
if (isUndefined(browserCookies[name])) {
|
119
|
-
delete cookies[name];
|
120
|
-
} else {
|
121
|
-
cookies[name] = browserCookies[name];
|
122
|
-
}
|
123
|
-
updated = true;
|
124
|
-
}
|
125
|
-
}
|
126
|
-
}
|
127
|
-
}
|
128
|
-
}]).
|
129
|
-
|
130
|
-
|
131
|
-
/**
|
132
|
-
* @ngdoc service
|
133
|
-
* @name $cookieStore
|
134
|
-
* @requires $cookies
|
135
|
-
*
|
136
|
-
* @description
|
137
|
-
* Provides a key-value (string-object) storage, that is backed by session cookies.
|
138
|
-
* Objects put or retrieved from this storage are automatically serialized or
|
139
|
-
* deserialized by angular's toJson/fromJson.
|
140
|
-
*
|
141
|
-
* Requires the {@link ngCookies `ngCookies`} module to be installed.
|
142
|
-
*
|
143
|
-
* @example
|
144
|
-
*
|
145
|
-
* ```js
|
146
|
-
* angular.module('cookieStoreExample', ['ngCookies'])
|
147
|
-
* .controller('ExampleController', ['$cookieStore', function($cookieStore) {
|
148
|
-
* // Put cookie
|
149
|
-
* $cookieStore.put('myFavorite','oatmeal');
|
150
|
-
* // Get cookie
|
151
|
-
* var favoriteCookie = $cookieStore.get('myFavorite');
|
152
|
-
* // Removing a cookie
|
153
|
-
* $cookieStore.remove('myFavorite');
|
154
|
-
* }]);
|
155
|
-
* ```
|
156
|
-
*/
|
157
|
-
factory('$cookieStore', ['$cookies', function($cookies) {
|
57
|
+
function calcOptions(options) {
|
58
|
+
return options ? angular.extend({}, defaults, options) : defaults;
|
59
|
+
}
|
158
60
|
|
61
|
+
/**
|
62
|
+
* @ngdoc service
|
63
|
+
* @name $cookies
|
64
|
+
*
|
65
|
+
* @description
|
66
|
+
* Provides read/write access to browser's cookies.
|
67
|
+
*
|
68
|
+
* BREAKING CHANGE: `$cookies` no longer exposes properties that represent the
|
69
|
+
* current browser cookie values. Now you must use the get/put/remove/etc. methods
|
70
|
+
* as described below.
|
71
|
+
*
|
72
|
+
* Requires the {@link ngCookies `ngCookies`} module to be installed.
|
73
|
+
*
|
74
|
+
* @example
|
75
|
+
*
|
76
|
+
* ```js
|
77
|
+
* angular.module('cookiesExample', ['ngCookies'])
|
78
|
+
* .controller('ExampleController', ['$cookies', function($cookies) {
|
79
|
+
* // Retrieving a cookie
|
80
|
+
* var favoriteCookie = $cookies.get('myFavorite');
|
81
|
+
* // Setting a cookie
|
82
|
+
* $cookies.put('myFavorite', 'oatmeal');
|
83
|
+
* }]);
|
84
|
+
* ```
|
85
|
+
*/
|
86
|
+
this.$get = ['$$cookieReader', '$$cookieWriter', function($$cookieReader, $$cookieWriter) {
|
159
87
|
return {
|
160
88
|
/**
|
161
89
|
* @ngdoc method
|
162
|
-
* @name $
|
90
|
+
* @name $cookies#get
|
163
91
|
*
|
164
92
|
* @description
|
165
93
|
* Returns the value of given cookie key
|
166
94
|
*
|
167
95
|
* @param {string} key Id to use for lookup.
|
168
|
-
* @returns {
|
96
|
+
* @returns {string} Raw cookie value.
|
169
97
|
*/
|
170
98
|
get: function(key) {
|
171
|
-
|
99
|
+
return $$cookieReader()[key];
|
100
|
+
},
|
101
|
+
|
102
|
+
/**
|
103
|
+
* @ngdoc method
|
104
|
+
* @name $cookies#getObject
|
105
|
+
*
|
106
|
+
* @description
|
107
|
+
* Returns the deserialized value of given cookie key
|
108
|
+
*
|
109
|
+
* @param {string} key Id to use for lookup.
|
110
|
+
* @returns {Object} Deserialized cookie value.
|
111
|
+
*/
|
112
|
+
getObject: function(key) {
|
113
|
+
var value = this.get(key);
|
172
114
|
return value ? angular.fromJson(value) : value;
|
173
115
|
},
|
174
116
|
|
175
117
|
/**
|
176
118
|
* @ngdoc method
|
177
|
-
* @name $
|
119
|
+
* @name $cookies#getAll
|
120
|
+
*
|
121
|
+
* @description
|
122
|
+
* Returns a key value object with all the cookies
|
123
|
+
*
|
124
|
+
* @returns {Object} All cookies
|
125
|
+
*/
|
126
|
+
getAll: function() {
|
127
|
+
return $$cookieReader();
|
128
|
+
},
|
129
|
+
|
130
|
+
/**
|
131
|
+
* @ngdoc method
|
132
|
+
* @name $cookies#put
|
178
133
|
*
|
179
134
|
* @description
|
180
135
|
* Sets a value for given cookie key
|
181
136
|
*
|
182
137
|
* @param {string} key Id for the `value`.
|
138
|
+
* @param {string} value Raw value to be stored.
|
139
|
+
* @param {Object=} options Options object.
|
140
|
+
* See {@link ngCookies.$cookiesProvider#defaults $cookiesProvider.defaults}
|
141
|
+
*/
|
142
|
+
put: function(key, value, options) {
|
143
|
+
$$cookieWriter(key, value, calcOptions(options));
|
144
|
+
},
|
145
|
+
|
146
|
+
/**
|
147
|
+
* @ngdoc method
|
148
|
+
* @name $cookies#putObject
|
149
|
+
*
|
150
|
+
* @description
|
151
|
+
* Serializes and sets a value for given cookie key
|
152
|
+
*
|
153
|
+
* @param {string} key Id for the `value`.
|
183
154
|
* @param {Object} value Value to be stored.
|
155
|
+
* @param {Object=} options Options object.
|
156
|
+
* See {@link ngCookies.$cookiesProvider#defaults $cookiesProvider.defaults}
|
184
157
|
*/
|
185
|
-
|
186
|
-
|
158
|
+
putObject: function(key, value, options) {
|
159
|
+
this.put(key, angular.toJson(value), options);
|
187
160
|
},
|
188
161
|
|
189
162
|
/**
|
190
163
|
* @ngdoc method
|
191
|
-
* @name $
|
164
|
+
* @name $cookies#remove
|
192
165
|
*
|
193
166
|
* @description
|
194
167
|
* Remove given cookie
|
195
168
|
*
|
196
169
|
* @param {string} key Id of the key-value pair to delete.
|
170
|
+
* @param {Object=} options Options object.
|
171
|
+
* See {@link ngCookies.$cookiesProvider#defaults $cookiesProvider.defaults}
|
197
172
|
*/
|
198
|
-
remove: function(key) {
|
199
|
-
|
173
|
+
remove: function(key, options) {
|
174
|
+
$$cookieWriter(key, undefined, calcOptions(options));
|
200
175
|
}
|
201
176
|
};
|
177
|
+
}];
|
178
|
+
}]);
|
179
|
+
|
180
|
+
angular.module('ngCookies').
|
181
|
+
/**
|
182
|
+
* @ngdoc service
|
183
|
+
* @name $cookieStore
|
184
|
+
* @deprecated
|
185
|
+
* @requires $cookies
|
186
|
+
*
|
187
|
+
* @description
|
188
|
+
* Provides a key-value (string-object) storage, that is backed by session cookies.
|
189
|
+
* Objects put or retrieved from this storage are automatically serialized or
|
190
|
+
* deserialized by angular's toJson/fromJson.
|
191
|
+
*
|
192
|
+
* Requires the {@link ngCookies `ngCookies`} module to be installed.
|
193
|
+
*
|
194
|
+
* <div class="alert alert-danger">
|
195
|
+
* **Note:** The $cookieStore service is deprecated.
|
196
|
+
* Please use the {@link ngCookies.$cookies `$cookies`} service instead.
|
197
|
+
* </div>
|
198
|
+
*
|
199
|
+
* @example
|
200
|
+
*
|
201
|
+
* ```js
|
202
|
+
* angular.module('cookieStoreExample', ['ngCookies'])
|
203
|
+
* .controller('ExampleController', ['$cookieStore', function($cookieStore) {
|
204
|
+
* // Put cookie
|
205
|
+
* $cookieStore.put('myFavorite','oatmeal');
|
206
|
+
* // Get cookie
|
207
|
+
* var favoriteCookie = $cookieStore.get('myFavorite');
|
208
|
+
* // Removing a cookie
|
209
|
+
* $cookieStore.remove('myFavorite');
|
210
|
+
* }]);
|
211
|
+
* ```
|
212
|
+
*/
|
213
|
+
factory('$cookieStore', ['$cookies', function($cookies) {
|
214
|
+
|
215
|
+
return {
|
216
|
+
/**
|
217
|
+
* @ngdoc method
|
218
|
+
* @name $cookieStore#get
|
219
|
+
*
|
220
|
+
* @description
|
221
|
+
* Returns the value of given cookie key
|
222
|
+
*
|
223
|
+
* @param {string} key Id to use for lookup.
|
224
|
+
* @returns {Object} Deserialized cookie value, undefined if the cookie does not exist.
|
225
|
+
*/
|
226
|
+
get: function(key) {
|
227
|
+
return $cookies.getObject(key);
|
228
|
+
},
|
229
|
+
|
230
|
+
/**
|
231
|
+
* @ngdoc method
|
232
|
+
* @name $cookieStore#put
|
233
|
+
*
|
234
|
+
* @description
|
235
|
+
* Sets a value for given cookie key
|
236
|
+
*
|
237
|
+
* @param {string} key Id for the `value`.
|
238
|
+
* @param {Object} value Value to be stored.
|
239
|
+
*/
|
240
|
+
put: function(key, value) {
|
241
|
+
$cookies.putObject(key, value);
|
242
|
+
},
|
243
|
+
|
244
|
+
/**
|
245
|
+
* @ngdoc method
|
246
|
+
* @name $cookieStore#remove
|
247
|
+
*
|
248
|
+
* @description
|
249
|
+
* Remove given cookie
|
250
|
+
*
|
251
|
+
* @param {string} key Id of the key-value pair to delete.
|
252
|
+
*/
|
253
|
+
remove: function(key) {
|
254
|
+
$cookies.remove(key);
|
255
|
+
}
|
256
|
+
};
|
257
|
+
|
258
|
+
}]);
|
259
|
+
|
260
|
+
/**
|
261
|
+
* @name $$cookieWriter
|
262
|
+
* @requires $document
|
263
|
+
*
|
264
|
+
* @description
|
265
|
+
* This is a private service for writing cookies
|
266
|
+
*
|
267
|
+
* @param {string} name Cookie name
|
268
|
+
* @param {string=} value Cookie value (if undefined, cookie will be deleted)
|
269
|
+
* @param {Object=} options Object with options that need to be stored for the cookie.
|
270
|
+
*/
|
271
|
+
function $$CookieWriter($document, $log, $browser) {
|
272
|
+
var cookiePath = $browser.baseHref();
|
273
|
+
var rawDocument = $document[0];
|
274
|
+
|
275
|
+
function buildCookieString(name, value, options) {
|
276
|
+
var path, expires;
|
277
|
+
options = options || {};
|
278
|
+
expires = options.expires;
|
279
|
+
path = angular.isDefined(options.path) ? options.path : cookiePath;
|
280
|
+
if (value === undefined) {
|
281
|
+
expires = 'Thu, 01 Jan 1970 00:00:00 GMT';
|
282
|
+
value = '';
|
283
|
+
}
|
284
|
+
if (angular.isString(expires)) {
|
285
|
+
expires = new Date(expires);
|
286
|
+
}
|
287
|
+
|
288
|
+
var str = encodeURIComponent(name) + '=' + encodeURIComponent(value);
|
289
|
+
str += path ? ';path=' + path : '';
|
290
|
+
str += options.domain ? ';domain=' + options.domain : '';
|
291
|
+
str += expires ? ';expires=' + expires.toUTCString() : '';
|
292
|
+
str += options.secure ? ';secure' : '';
|
293
|
+
|
294
|
+
// per http://www.ietf.org/rfc/rfc2109.txt browser must allow at minimum:
|
295
|
+
// - 300 cookies
|
296
|
+
// - 20 cookies per unique domain
|
297
|
+
// - 4096 bytes per cookie
|
298
|
+
var cookieLength = str.length + 1;
|
299
|
+
if (cookieLength > 4096) {
|
300
|
+
$log.warn("Cookie '" + name +
|
301
|
+
"' possibly not set or overflowed because it was too large (" +
|
302
|
+
cookieLength + " > 4096 bytes)!");
|
303
|
+
}
|
304
|
+
|
305
|
+
return str;
|
306
|
+
}
|
307
|
+
|
308
|
+
return function(name, value, options) {
|
309
|
+
rawDocument.cookie = buildCookieString(name, value, options);
|
310
|
+
};
|
311
|
+
}
|
312
|
+
|
313
|
+
$$CookieWriter.$inject = ['$document', '$log', '$browser'];
|
202
314
|
|
203
|
-
|
315
|
+
angular.module('ngCookies').provider('$$cookieWriter', function $$CookieWriterProvider() {
|
316
|
+
this.$get = $$CookieWriter;
|
317
|
+
});
|
204
318
|
|
205
319
|
|
206
320
|
})(window, window.angular);
|
@@ -1,8 +1,9 @@
|
|
1
1
|
/*
|
2
|
-
AngularJS v1.4.0-beta.
|
2
|
+
AngularJS v1.4.0-beta.6
|
3
3
|
(c) 2010-2015 Google, Inc. http://angularjs.org
|
4
4
|
License: MIT
|
5
5
|
*/
|
6
|
-
(function(p,
|
7
|
-
["$cookies",function(
|
6
|
+
(function(p,g,l){'use strict';function m(b,a,f){var c=f.baseHref(),k=b[0];return function(b,d,e){var f,h;e=e||{};h=e.expires;f=g.isDefined(e.path)?e.path:c;d===l&&(h="Thu, 01 Jan 1970 00:00:00 GMT",d="");g.isString(h)&&(h=new Date(h));d=encodeURIComponent(b)+"="+encodeURIComponent(d);d=d+(f?";path="+f:"")+(e.domain?";domain="+e.domain:"");d+=h?";expires="+h.toUTCString():"";d+=e.secure?";secure":"";e=d.length+1;4096<e&&a.warn("Cookie '"+b+"' possibly not set or overflowed because it was too large ("+
|
7
|
+
e+" > 4096 bytes)!");k.cookie=d}}g.module("ngCookies",["ng"]).provider("$cookies",[function(){var b=this.defaults={};this.$get=["$$cookieReader","$$cookieWriter",function(a,f){return{get:function(c){return a()[c]},getObject:function(c){return(c=this.get(c))?g.fromJson(c):c},getAll:function(){return a()},put:function(c,a,n){f(c,a,n?g.extend({},b,n):b)},putObject:function(c,b,a){this.put(c,g.toJson(b),a)},remove:function(a,k){f(a,l,k?g.extend({},b,k):b)}}}]}]);g.module("ngCookies").factory("$cookieStore",
|
8
|
+
["$cookies",function(b){return{get:function(a){return b.getObject(a)},put:function(a,f){b.putObject(a,f)},remove:function(a){b.remove(a)}}}]);m.$inject=["$document","$log","$browser"];g.module("ngCookies").provider("$$cookieWriter",function(){this.$get=m})})(window,window.angular);
|
8
9
|
//# sourceMappingURL=angular-cookies.min.js.map
|
@@ -0,0 +1,8 @@
|
|
1
|
+
{
|
2
|
+
"version":3,
|
3
|
+
"file":"angular-cookies.min.js",
|
4
|
+
"lineCount":8,
|
5
|
+
"mappings":"A;;;;;aAKC,SAAQ,CAACA,CAAD,CAASC,CAAT,CAAkBC,CAAlB,CAA6B,CAyQtCC,QAASA,EAAc,CAACC,CAAD,CAAYC,CAAZ,CAAkBC,CAAlB,CAA4B,CACjD,IAAIC,EAAaD,CAAAE,SAAA,EAAjB,CACIC,EAAcL,CAAA,CAAU,CAAV,CAmClB,OAAO,SAAQ,CAACM,CAAD,CAAOC,CAAP,CAAcC,CAAd,CAAuB,CAjCW,IAC3CC,CAD2C,CACrCC,CACVF,EAAA,CAgCoDA,CAhCpD,EAAqB,EACrBE,EAAA,CAAUF,CAAAE,QACVD,EAAA,CAAOZ,CA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CAAD,CAAM,CACpBU,CAAAF,OAAA,CAAgBR,CAAhB,CADoB,CAtCjB,CAF8C,CAAhC,CAjCzB,CAqIAhC,EAAA2C,QAAA,CAAyB,CAAC,WAAD,CAAc,MAAd,CAAsB,UAAtB,CAEzB7C,EAAA0B,OAAA,CAAe,WAAf,CAAAC,SAAA,CAAqC,gBAArC,CAAuDmB,QAA+B,EAAG,CACvF,IAAAhB,KAAA,CAAY5B,CAD2E,CAAzF,CArTsC,CAArC,CAAD,CA0TGH,MA1TH,CA0TWA,MAAAC,QA1TX;",
|
6
|
+
"sources":["angular-cookies.js"],
|
7
|
+
"names":["window","angular","undefined","$$CookieWriter","$document","$log","$browser","cookiePath","baseHref","rawDocument","name","value","options","path","expires","isDefined","isString","Date","str","encodeURIComponent","domain","toUTCString","secure","cookieLength","length","warn","cookie","module","provider","$CookiesProvider","defaults","$get","$$cookieReader","$$cookieWriter","get","key","getObject","fromJson","getAll","put","extend","putObject","toJson","remove","factory","$cookies","$inject","$$CookieWriterProvider"]
|
8
|
+
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license AngularJS v1.4.0-beta.
|
2
|
+
* @license AngularJS v1.4.0-beta.6
|
3
3
|
* (c) 2010-2015 Google, Inc. http://angularjs.org
|
4
4
|
* License: MIT
|
5
5
|
*/
|
@@ -58,7 +58,7 @@ function minErr(module, ErrorConstructor) {
|
|
58
58
|
return match;
|
59
59
|
});
|
60
60
|
|
61
|
-
message += '\nhttp://errors.angularjs.org/1.4.0-beta.
|
61
|
+
message += '\nhttp://errors.angularjs.org/1.4.0-beta.6/' +
|
62
62
|
(module ? module + '/' : '') + code;
|
63
63
|
|
64
64
|
for (i = SKIP_INDEXES, paramPrefix = '?'; i < templateArgs.length; i++, paramPrefix = '&') {
|
@@ -1,9 +1,9 @@
|
|
1
1
|
/*
|
2
|
-
AngularJS v1.4.0-beta.
|
2
|
+
AngularJS v1.4.0-beta.6
|
3
3
|
(c) 2010-2015 Google, Inc. http://angularjs.org
|
4
4
|
License: MIT
|
5
5
|
*/
|
6
|
-
(function(){'use strict';function d(b){return function(){var c=arguments[0],e;e="["+(b?b+":":"")+c+"] http://errors.angularjs.org/1.4.0-beta.
|
6
|
+
(function(){'use strict';function d(b){return function(){var c=arguments[0],e;e="["+(b?b+":":"")+c+"] http://errors.angularjs.org/1.4.0-beta.6/"+(b?b+"/":"")+c;for(c=1;c<arguments.length;c++){e=e+(1==c?"?":"&")+"p"+(c-1)+"=";var d=encodeURIComponent,a;a=arguments[c];a="function"==typeof a?a.toString().replace(/ \{[\s\S]*$/,""):"undefined"==typeof a?"undefined":"string"!=typeof a?JSON.stringify(a):a;e+=d(a)}return Error(e)}}(function(b){function c(a,c,b){return a[c]||(a[c]=b())}var e=d("$injector"),
|
7
7
|
n=d("ng");b=c(b,"angular",Object);b.$$minErr=b.$$minErr||d;return c(b,"module",function(){var a={};return function(b,d,g){if("hasOwnProperty"===b)throw n("badname","module");d&&a.hasOwnProperty(b)&&(a[b]=null);return c(a,b,function(){function a(b,d,e,f){f||(f=c);return function(){f[e||"push"]([b,d,arguments]);return h}}if(!d)throw e("nomod",b);var c=[],k=[],l=[],m=a("$injector","invoke","push",k),h={_invokeQueue:c,_configBlocks:k,_runBlocks:l,requires:d,name:b,provider:a("$provide","provider"),factory:a("$provide",
|
8
8
|
"factory"),service:a("$provide","service"),value:a("$provide","value"),constant:a("$provide","constant","unshift"),animation:a("$animateProvider","register"),filter:a("$filterProvider","register"),controller:a("$controllerProvider","register"),directive:a("$compileProvider","directive"),config:m,run:function(a){l.push(a);return this}};g&&m(g);return h})}})})(window)})(window);
|
9
9
|
//# sourceMappingURL=angular-loader.min.js.map
|
@@ -0,0 +1,8 @@
|
|
1
|
+
{
|
2
|
+
"version":3,
|
3
|
+
"file":"angular-loader.min.js",
|
4
|
+
"lineCount":8,
|
5
|
+
"mappings":"A;;;;;aAMC,SAAQ,EAAG,CAgCZA,QAAAA,EAAAA,CAAAA,CAAAA,CAAAA,CA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iDnBZ,QAASY,CAAA,CAAY,UAAZ;AAAwB,SAAxB,CAjDU,CA4DnBc,QAASd,CAAA,CAAY,UAAZ,CAAwB,SAAxB,CA5DU,CAuEnBe,MAAOf,CAAA,CAAY,UAAZ,CAAwB,OAAxB,CAvEY,CAmFnBgB,SAAUhB,CAAA,CAAY,UAAZ,CAAwB,UAAxB,CAAoC,SAApC,CAnFS,CAqHnBiB,UAAWjB,CAAA,CAAY,kBAAZ,CAAgC,UAAhC,CArHQ,CAgInBkB,OAAQlB,CAAA,CAAY,iBAAZ,CAA+B,UAA/B,CAhIW,CA4InBmB,WAAYnB,CAAA,CAAY,qBAAZ,CAAmC,UAAnC,CA5IO,CAyJnBoB,UAAWpB,CAAA,CAAY,kBAAZ,CAAgC,WAAhC,CAzJQ,CAsKnBU,OAAQA,CAtKW,CAkLnBW,IAAKA,QAAQ,CAACC,CAAD,CAAQ,CACnBb,CAAAc,KAAA,CAAeD,CAAf,CACA,OAAO,KAFY,CAlLF,CAwLjBzB,EAAJ,EACEa,CAAA,CAAOb,CAAP,CAGF,OAAOU,EA/M+B,CAAjC,CAXwC,CAvDP,CAArC,CAd0B,CAAnCxB,CAoTA,CAAkBC,MAAlB,CA/XY,CAAX,CAAD,CAgYGA,MAhYH;",
|
6
|
+
"sources":["angular-loader.js"],
|
7
|
+
"names":["minErr","setupModuleLoader","window","ensure","obj","name","factory","$injectorMinErr","ngMinErr","angular","Object","$$minErr","modules","module","requires","configFn","context","hasOwnProperty","invokeLater","provider","method","insertMethod","queue","invokeQueue","arguments","moduleInstance","configBlocks","runBlocks","config","_invokeQueue","_configBlocks","_runBlocks","service","value","constant","animation","filter","controller","directive","run","block","push"]
|
8
|
+
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license AngularJS v1.4.0-beta.
|
2
|
+
* @license AngularJS v1.4.0-beta.6
|
3
3
|
* (c) 2010-2015 Google, Inc. http://angularjs.org
|
4
4
|
* License: MIT
|
5
5
|
*/
|
@@ -505,27 +505,21 @@ angular.module('ngMessages', [])
|
|
505
505
|
|
506
506
|
return {
|
507
507
|
restrict: 'AE',
|
508
|
-
require: '^^ngMessages',
|
509
|
-
|
510
|
-
var
|
511
|
-
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
forEach(elements, function(elm) {
|
522
|
-
elm = jqLite(elm);
|
523
|
-
cursor.after(elm);
|
524
|
-
cursor = elm;
|
525
|
-
});
|
526
|
-
$compile(elements)($scope);
|
508
|
+
require: '^^ngMessages', // we only require this for validation sake
|
509
|
+
link: function($scope, element, attrs) {
|
510
|
+
var src = attrs.ngMessagesInclude || attrs.src;
|
511
|
+
$templateRequest(src).then(function(html) {
|
512
|
+
$compile(html)($scope, function(contents) {
|
513
|
+
element.after(contents);
|
514
|
+
|
515
|
+
// the anchor is placed for debugging purposes
|
516
|
+
var anchor = jqLite($document[0].createComment(' ngMessagesInclude: ' + src + ' '));
|
517
|
+
element.after(anchor);
|
518
|
+
|
519
|
+
// we don't want to pollute the DOM anymore by keeping an empty directive element
|
520
|
+
element.remove();
|
527
521
|
});
|
528
|
-
};
|
522
|
+
});
|
529
523
|
}
|
530
524
|
};
|
531
525
|
}])
|
@@ -542,29 +536,58 @@ angular.module('ngMessages', [])
|
|
542
536
|
* must be situated since it determines which messages are visible based on the state
|
543
537
|
* of the provided key/value map that `ngMessages` listens on.
|
544
538
|
*
|
539
|
+
* More information about using `ngMessage` can be found in the
|
540
|
+
* {@link module:ngMessages `ngMessages` module documentation}.
|
541
|
+
*
|
545
542
|
* @usage
|
546
543
|
* ```html
|
547
544
|
* <!-- using attribute directives -->
|
548
545
|
* <ANY ng-messages="expression">
|
549
546
|
* <ANY ng-message="stringValue">...</ANY>
|
550
547
|
* <ANY ng-message="stringValue1, stringValue2, ...">...</ANY>
|
551
|
-
* <ANY ng-message-exp="expressionValue">...</ANY>
|
552
548
|
* </ANY>
|
553
549
|
*
|
554
550
|
* <!-- or by using element directives -->
|
555
551
|
* <ng-messages for="expression">
|
556
552
|
* <ng-message when="stringValue">...</ng-message>
|
557
553
|
* <ng-message when="stringValue1, stringValue2, ...">...</ng-message>
|
554
|
+
* </ng-messages>
|
555
|
+
* ```
|
556
|
+
*
|
557
|
+
* @param {expression} ngMessage|when a string value corresponding to the message key.
|
558
|
+
*/
|
559
|
+
.directive('ngMessage', ngMessageDirectiveFactory('AE'))
|
560
|
+
|
561
|
+
|
562
|
+
/**
|
563
|
+
* @ngdoc directive
|
564
|
+
* @name ngMessageExp
|
565
|
+
* @restrict AE
|
566
|
+
* @scope
|
567
|
+
*
|
568
|
+
* @description
|
569
|
+
* `ngMessageExp` is a directive with the purpose to show and hide a particular message.
|
570
|
+
* For `ngMessageExp` to operate, a parent `ngMessages` directive on a parent DOM element
|
571
|
+
* must be situated since it determines which messages are visible based on the state
|
572
|
+
* of the provided key/value map that `ngMessages` listens on.
|
573
|
+
*
|
574
|
+
* @usage
|
575
|
+
* ```html
|
576
|
+
* <!-- using attribute directives -->
|
577
|
+
* <ANY ng-messages="expression">
|
578
|
+
* <ANY ng-message-exp="expressionValue">...</ANY>
|
579
|
+
* </ANY>
|
580
|
+
*
|
581
|
+
* <!-- or by using element directives -->
|
582
|
+
* <ng-messages for="expression">
|
558
583
|
* <ng-message when-exp="expressionValue">...</ng-message>
|
559
584
|
* </ng-messages>
|
560
585
|
* ```
|
561
586
|
*
|
562
587
|
* {@link module:ngMessages Click here} to learn more about `ngMessages` and `ngMessage`.
|
563
588
|
*
|
564
|
-
* @param {expression} ngMessage|when a string value corresponding to the message key.
|
565
589
|
* @param {expression} ngMessageExp|whenExp an expression value corresponding to the message key.
|
566
590
|
*/
|
567
|
-
.directive('ngMessage', ngMessageDirectiveFactory('AE'))
|
568
591
|
.directive('ngMessageExp', ngMessageDirectiveFactory('A'));
|
569
592
|
|
570
593
|
function ngMessageDirectiveFactory(restrict) {
|