material_raingular 0.0.1.alpha

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.
Files changed (52) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +14 -0
  3. data/Gemfile +4 -0
  4. data/Gemfile.lock +17 -0
  5. data/LICENSE.txt +22 -0
  6. data/README.md +32 -0
  7. data/Rakefile +2 -0
  8. data/lib/assets/javascripts/ajax_errors.js.coffee +13 -0
  9. data/lib/assets/javascripts/dateconverter.coffee +23 -0
  10. data/lib/assets/javascripts/directives/ngauthorize.js.coffee +8 -0
  11. data/lib/assets/javascripts/directives/ngautocomplete.js.coffee +135 -0
  12. data/lib/assets/javascripts/directives/ngboolean.js.coffee +34 -0
  13. data/lib/assets/javascripts/directives/ngchangeonblur.js.coffee +19 -0
  14. data/lib/assets/javascripts/directives/ngcreate.js.coffee +27 -0
  15. data/lib/assets/javascripts/directives/ngdestroy.js.coffee +24 -0
  16. data/lib/assets/javascripts/directives/ngdownload.js.coffee +8 -0
  17. data/lib/assets/javascripts/directives/ngdrag.js.coffee +122 -0
  18. data/lib/assets/javascripts/directives/ngfade.js.coffee +21 -0
  19. data/lib/assets/javascripts/directives/ngload.js.coffee +16 -0
  20. data/lib/assets/javascripts/directives/ngmatches.js.coffee +14 -0
  21. data/lib/assets/javascripts/directives/ngpopup.js.coffee +37 -0
  22. data/lib/assets/javascripts/directives/ngrepeatlist.js.coffee +52 -0
  23. data/lib/assets/javascripts/directives/ngslide.js.coffee +82 -0
  24. data/lib/assets/javascripts/directives/ngswipe.js.coffee +60 -0
  25. data/lib/assets/javascripts/directives/ngupdate.js.coffee +62 -0
  26. data/lib/assets/javascripts/directives/ngupload.js.coffee +127 -0
  27. data/lib/assets/javascripts/directives/ngwatchcontent.js.coffee +13 -0
  28. data/lib/assets/javascripts/directives/ngwatchshow.js.coffee +15 -0
  29. data/lib/assets/javascripts/directives/table.js.coffee +43 -0
  30. data/lib/assets/javascripts/directives/textarea.coffee +11 -0
  31. data/lib/assets/javascripts/directives/video.js.coffee +10 -0
  32. data/lib/assets/javascripts/factory_name.js.coffee +9 -0
  33. data/lib/assets/javascripts/material_raingular.js.coffee +17 -0
  34. data/lib/material_raingular/version.rb +3 -0
  35. data/lib/material_raingular.rb +8 -0
  36. data/lib/tasks/material_raingular.rake +42 -0
  37. data/material_raingular.gemspec +25 -0
  38. data/vendor/assets/angular/.jshintrc +181 -0
  39. data/vendor/assets/angular/angular-animate.js +3708 -0
  40. data/vendor/assets/angular/angular-aria.js +378 -0
  41. data/vendor/assets/angular/angular-cookies.js +320 -0
  42. data/vendor/assets/angular/angular-loader.js +429 -0
  43. data/vendor/assets/angular/angular-material.min.css +6 -0
  44. data/vendor/assets/angular/angular-material.min.js +14 -0
  45. data/vendor/assets/angular/angular-message-format.js +980 -0
  46. data/vendor/assets/angular/angular-messages.js +678 -0
  47. data/vendor/assets/angular/angular-resource.js +668 -0
  48. data/vendor/assets/angular/angular-route.js +991 -0
  49. data/vendor/assets/angular/angular-sanitize.js +683 -0
  50. data/vendor/assets/angular/angular-touch.js +627 -0
  51. data/vendor/assets/angular/angular.js +28133 -0
  52. metadata +139 -0
@@ -0,0 +1,429 @@
1
+ /**
2
+ * @license AngularJS v1.4.0
3
+ * (c) 2010-2015 Google, Inc. http://angularjs.org
4
+ * License: MIT
5
+ */
6
+
7
+ (function() {'use strict';
8
+
9
+ /**
10
+ * @description
11
+ *
12
+ * This object provides a utility for producing rich Error messages within
13
+ * Angular. It can be called as follows:
14
+ *
15
+ * var exampleMinErr = minErr('example');
16
+ * throw exampleMinErr('one', 'This {0} is {1}', foo, bar);
17
+ *
18
+ * The above creates an instance of minErr in the example namespace. The
19
+ * resulting error will have a namespaced error code of example.one. The
20
+ * resulting error will replace {0} with the value of foo, and {1} with the
21
+ * value of bar. The object is not restricted in the number of arguments it can
22
+ * take.
23
+ *
24
+ * If fewer arguments are specified than necessary for interpolation, the extra
25
+ * interpolation markers will be preserved in the final string.
26
+ *
27
+ * Since data will be parsed statically during a build step, some restrictions
28
+ * are applied with respect to how minErr instances are created and called.
29
+ * Instances should have names of the form namespaceMinErr for a minErr created
30
+ * using minErr('namespace') . Error codes, namespaces and template strings
31
+ * should all be static strings, not variables or general expressions.
32
+ *
33
+ * @param {string} module The namespace to use for the new minErr instance.
34
+ * @param {function} ErrorConstructor Custom error constructor to be instantiated when returning
35
+ * error from returned function, for cases when a particular type of error is useful.
36
+ * @returns {function(code:string, template:string, ...templateArgs): Error} minErr instance
37
+ */
38
+
39
+ function minErr(module, ErrorConstructor) {
40
+ ErrorConstructor = ErrorConstructor || Error;
41
+ return function() {
42
+ var SKIP_INDEXES = 2;
43
+
44
+ var templateArgs = arguments,
45
+ code = templateArgs[0],
46
+ message = '[' + (module ? module + ':' : '') + code + '] ',
47
+ template = templateArgs[1],
48
+ paramPrefix, i;
49
+
50
+ message += template.replace(/\{\d+\}/g, function(match) {
51
+ var index = +match.slice(1, -1),
52
+ shiftedIndex = index + SKIP_INDEXES;
53
+
54
+ if (shiftedIndex < templateArgs.length) {
55
+ return toDebugString(templateArgs[shiftedIndex]);
56
+ }
57
+
58
+ return match;
59
+ });
60
+
61
+ message += '\nhttp://errors.angularjs.org/1.4.0/' +
62
+ (module ? module + '/' : '') + code;
63
+
64
+ for (i = SKIP_INDEXES, paramPrefix = '?'; i < templateArgs.length; i++, paramPrefix = '&') {
65
+ message += paramPrefix + 'p' + (i - SKIP_INDEXES) + '=' +
66
+ encodeURIComponent(toDebugString(templateArgs[i]));
67
+ }
68
+
69
+ return new ErrorConstructor(message);
70
+ };
71
+ }
72
+
73
+ /**
74
+ * @ngdoc type
75
+ * @name angular.Module
76
+ * @module ng
77
+ * @description
78
+ *
79
+ * Interface for configuring angular {@link angular.module modules}.
80
+ */
81
+
82
+ function setupModuleLoader(window) {
83
+
84
+ var $injectorMinErr = minErr('$injector');
85
+ var ngMinErr = minErr('ng');
86
+
87
+ function ensure(obj, name, factory) {
88
+ return obj[name] || (obj[name] = factory());
89
+ }
90
+
91
+ var angular = ensure(window, 'angular', Object);
92
+
93
+ // We need to expose `angular.$$minErr` to modules such as `ngResource` that reference it during bootstrap
94
+ angular.$$minErr = angular.$$minErr || minErr;
95
+
96
+ return ensure(angular, 'module', function() {
97
+ /** @type {Object.<string, angular.Module>} */
98
+ var modules = {};
99
+
100
+ /**
101
+ * @ngdoc function
102
+ * @name angular.module
103
+ * @module ng
104
+ * @description
105
+ *
106
+ * The `angular.module` is a global place for creating, registering and retrieving Angular
107
+ * modules.
108
+ * All modules (angular core or 3rd party) that should be available to an application must be
109
+ * registered using this mechanism.
110
+ *
111
+ * When passed two or more arguments, a new module is created. If passed only one argument, an
112
+ * existing module (the name passed as the first argument to `module`) is retrieved.
113
+ *
114
+ *
115
+ * # Module
116
+ *
117
+ * A module is a collection of services, directives, controllers, filters, and configuration information.
118
+ * `angular.module` is used to configure the {@link auto.$injector $injector}.
119
+ *
120
+ * ```js
121
+ * // Create a new module
122
+ * var myModule = angular.module('myModule', []);
123
+ *
124
+ * // register a new service
125
+ * myModule.value('appName', 'MyCoolApp');
126
+ *
127
+ * // configure existing services inside initialization blocks.
128
+ * myModule.config(['$locationProvider', function($locationProvider) {
129
+ * // Configure existing providers
130
+ * $locationProvider.hashPrefix('!');
131
+ * }]);
132
+ * ```
133
+ *
134
+ * Then you can create an injector and load your modules like this:
135
+ *
136
+ * ```js
137
+ * var injector = angular.injector(['ng', 'myModule'])
138
+ * ```
139
+ *
140
+ * However it's more likely that you'll just use
141
+ * {@link ng.directive:ngApp ngApp} or
142
+ * {@link angular.bootstrap} to simplify this process for you.
143
+ *
144
+ * @param {!string} name The name of the module to create or retrieve.
145
+ * @param {!Array.<string>=} requires If specified then new module is being created. If
146
+ * unspecified then the module is being retrieved for further configuration.
147
+ * @param {Function=} configFn Optional configuration function for the module. Same as
148
+ * {@link angular.Module#config Module#config()}.
149
+ * @returns {module} new module with the {@link angular.Module} api.
150
+ */
151
+ return function module(name, requires, configFn) {
152
+ var assertNotHasOwnProperty = function(name, context) {
153
+ if (name === 'hasOwnProperty') {
154
+ throw ngMinErr('badname', 'hasOwnProperty is not a valid {0} name', context);
155
+ }
156
+ };
157
+
158
+ assertNotHasOwnProperty(name, 'module');
159
+ if (requires && modules.hasOwnProperty(name)) {
160
+ modules[name] = null;
161
+ }
162
+ return ensure(modules, name, function() {
163
+ if (!requires) {
164
+ throw $injectorMinErr('nomod', "Module '{0}' is not available! You either misspelled " +
165
+ "the module name or forgot to load it. If registering a module ensure that you " +
166
+ "specify the dependencies as the second argument.", name);
167
+ }
168
+
169
+ /** @type {!Array.<Array.<*>>} */
170
+ var invokeQueue = [];
171
+
172
+ /** @type {!Array.<Function>} */
173
+ var configBlocks = [];
174
+
175
+ /** @type {!Array.<Function>} */
176
+ var runBlocks = [];
177
+
178
+ var config = invokeLater('$injector', 'invoke', 'push', configBlocks);
179
+
180
+ /** @type {angular.Module} */
181
+ var moduleInstance = {
182
+ // Private state
183
+ _invokeQueue: invokeQueue,
184
+ _configBlocks: configBlocks,
185
+ _runBlocks: runBlocks,
186
+
187
+ /**
188
+ * @ngdoc property
189
+ * @name angular.Module#requires
190
+ * @module ng
191
+ *
192
+ * @description
193
+ * Holds the list of modules which the injector will load before the current module is
194
+ * loaded.
195
+ */
196
+ requires: requires,
197
+
198
+ /**
199
+ * @ngdoc property
200
+ * @name angular.Module#name
201
+ * @module ng
202
+ *
203
+ * @description
204
+ * Name of the module.
205
+ */
206
+ name: name,
207
+
208
+
209
+ /**
210
+ * @ngdoc method
211
+ * @name angular.Module#provider
212
+ * @module ng
213
+ * @param {string} name service name
214
+ * @param {Function} providerType Construction function for creating new instance of the
215
+ * service.
216
+ * @description
217
+ * See {@link auto.$provide#provider $provide.provider()}.
218
+ */
219
+ provider: invokeLater('$provide', 'provider'),
220
+
221
+ /**
222
+ * @ngdoc method
223
+ * @name angular.Module#factory
224
+ * @module ng
225
+ * @param {string} name service name
226
+ * @param {Function} providerFunction Function for creating new instance of the service.
227
+ * @description
228
+ * See {@link auto.$provide#factory $provide.factory()}.
229
+ */
230
+ factory: invokeLater('$provide', 'factory'),
231
+
232
+ /**
233
+ * @ngdoc method
234
+ * @name angular.Module#service
235
+ * @module ng
236
+ * @param {string} name service name
237
+ * @param {Function} constructor A constructor function that will be instantiated.
238
+ * @description
239
+ * See {@link auto.$provide#service $provide.service()}.
240
+ */
241
+ service: invokeLater('$provide', 'service'),
242
+
243
+ /**
244
+ * @ngdoc method
245
+ * @name angular.Module#value
246
+ * @module ng
247
+ * @param {string} name service name
248
+ * @param {*} object Service instance object.
249
+ * @description
250
+ * See {@link auto.$provide#value $provide.value()}.
251
+ */
252
+ value: invokeLater('$provide', 'value'),
253
+
254
+ /**
255
+ * @ngdoc method
256
+ * @name angular.Module#constant
257
+ * @module ng
258
+ * @param {string} name constant name
259
+ * @param {*} object Constant value.
260
+ * @description
261
+ * Because the constant are fixed, they get applied before other provide methods.
262
+ * See {@link auto.$provide#constant $provide.constant()}.
263
+ */
264
+ constant: invokeLater('$provide', 'constant', 'unshift'),
265
+
266
+ /**
267
+ * @ngdoc method
268
+ * @name angular.Module#decorator
269
+ * @module ng
270
+ * @param {string} The name of the service to decorate.
271
+ * @param {Function} This function will be invoked when the service needs to be
272
+ * instantiated and should return the decorated service instance.
273
+ * @description
274
+ * See {@link auto.$provide#decorator $provide.decorator()}.
275
+ */
276
+ decorator: invokeLater('$provide', 'decorator'),
277
+
278
+ /**
279
+ * @ngdoc method
280
+ * @name angular.Module#animation
281
+ * @module ng
282
+ * @param {string} name animation name
283
+ * @param {Function} animationFactory Factory function for creating new instance of an
284
+ * animation.
285
+ * @description
286
+ *
287
+ * **NOTE**: animations take effect only if the **ngAnimate** module is loaded.
288
+ *
289
+ *
290
+ * Defines an animation hook that can be later used with
291
+ * {@link $animate $animate} service and directives that use this service.
292
+ *
293
+ * ```js
294
+ * module.animation('.animation-name', function($inject1, $inject2) {
295
+ * return {
296
+ * eventName : function(element, done) {
297
+ * //code to run the animation
298
+ * //once complete, then run done()
299
+ * return function cancellationFunction(element) {
300
+ * //code to cancel the animation
301
+ * }
302
+ * }
303
+ * }
304
+ * })
305
+ * ```
306
+ *
307
+ * See {@link ng.$animateProvider#register $animateProvider.register()} and
308
+ * {@link ngAnimate ngAnimate module} for more information.
309
+ */
310
+ animation: invokeLater('$animateProvider', 'register'),
311
+
312
+ /**
313
+ * @ngdoc method
314
+ * @name angular.Module#filter
315
+ * @module ng
316
+ * @param {string} name Filter name - this must be a valid angular expression identifier
317
+ * @param {Function} filterFactory Factory function for creating new instance of filter.
318
+ * @description
319
+ * See {@link ng.$filterProvider#register $filterProvider.register()}.
320
+ *
321
+ * <div class="alert alert-warning">
322
+ * **Note:** Filter names must be valid angular {@link expression} identifiers, such as `uppercase` or `orderBy`.
323
+ * Names with special characters, such as hyphens and dots, are not allowed. If you wish to namespace
324
+ * your filters, then you can use capitalization (`myappSubsectionFilterx`) or underscores
325
+ * (`myapp_subsection_filterx`).
326
+ * </div>
327
+ */
328
+ filter: invokeLater('$filterProvider', 'register'),
329
+
330
+ /**
331
+ * @ngdoc method
332
+ * @name angular.Module#controller
333
+ * @module ng
334
+ * @param {string|Object} name Controller name, or an object map of controllers where the
335
+ * keys are the names and the values are the constructors.
336
+ * @param {Function} constructor Controller constructor function.
337
+ * @description
338
+ * See {@link ng.$controllerProvider#register $controllerProvider.register()}.
339
+ */
340
+ controller: invokeLater('$controllerProvider', 'register'),
341
+
342
+ /**
343
+ * @ngdoc method
344
+ * @name angular.Module#directive
345
+ * @module ng
346
+ * @param {string|Object} name Directive name, or an object map of directives where the
347
+ * keys are the names and the values are the factories.
348
+ * @param {Function} directiveFactory Factory function for creating new instance of
349
+ * directives.
350
+ * @description
351
+ * See {@link ng.$compileProvider#directive $compileProvider.directive()}.
352
+ */
353
+ directive: invokeLater('$compileProvider', 'directive'),
354
+
355
+ /**
356
+ * @ngdoc method
357
+ * @name angular.Module#config
358
+ * @module ng
359
+ * @param {Function} configFn Execute this function on module load. Useful for service
360
+ * configuration.
361
+ * @description
362
+ * Use this method to register work which needs to be performed on module loading.
363
+ * For more about how to configure services, see
364
+ * {@link providers#provider-recipe Provider Recipe}.
365
+ */
366
+ config: config,
367
+
368
+ /**
369
+ * @ngdoc method
370
+ * @name angular.Module#run
371
+ * @module ng
372
+ * @param {Function} initializationFn Execute this function after injector creation.
373
+ * Useful for application initialization.
374
+ * @description
375
+ * Use this method to register work which should be performed when the injector is done
376
+ * loading all modules.
377
+ */
378
+ run: function(block) {
379
+ runBlocks.push(block);
380
+ return this;
381
+ }
382
+ };
383
+
384
+ if (configFn) {
385
+ config(configFn);
386
+ }
387
+
388
+ return moduleInstance;
389
+
390
+ /**
391
+ * @param {string} provider
392
+ * @param {string} method
393
+ * @param {String=} insertMethod
394
+ * @returns {angular.Module}
395
+ */
396
+ function invokeLater(provider, method, insertMethod, queue) {
397
+ if (!queue) queue = invokeQueue;
398
+ return function() {
399
+ queue[insertMethod || 'push']([provider, method, arguments]);
400
+ return moduleInstance;
401
+ };
402
+ }
403
+ });
404
+ };
405
+ });
406
+
407
+ }
408
+
409
+ setupModuleLoader(window);
410
+ })(window);
411
+
412
+ /**
413
+ * Closure compiler type information
414
+ *
415
+ * @typedef { {
416
+ * requires: !Array.<string>,
417
+ * invokeQueue: !Array.<Array.<*>>,
418
+ *
419
+ * service: function(string, Function):angular.Module,
420
+ * factory: function(string, Function):angular.Module,
421
+ * value: function(string, *):angular.Module,
422
+ *
423
+ * filter: function(string, Function):angular.Module,
424
+ *
425
+ * init: function(Function):angular.Module
426
+ * } }
427
+ */
428
+ angular.Module;
429
+