ende 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (108) hide show
  1. checksums.yaml +4 -4
  2. data/component.json +1 -1
  3. data/lib/assets/javascripts/aura/extensions/devise.js.coffee +7 -4
  4. data/lib/assets/javascripts/aura/extensions/routes.js.coffee +16 -8
  5. data/lib/assets/javascripts/aura/extensions/widget/lifecycleable.js.coffee +10 -5
  6. data/lib/assets/javascripts/widgets/authenticator/main.js.coffee +4 -8
  7. data/lib/assets/javascripts/widgets/authenticator/presenter.js.coffee +4 -4
  8. data/lib/assets/javascripts/widgets/authenticator/states/default.html +1 -1
  9. data/lib/assets/javascripts/widgets/tray/main.js.coffee +26 -0
  10. data/lib/ende/version.rb +1 -1
  11. data/lib/tasks/component.thor +1 -1
  12. data/vendor/assets/javascripts/ende/build.js +10008 -8202
  13. data/vendor/components/KapIT-observe-utils/component.json +16 -0
  14. data/vendor/components/KapIT-observe-utils/lib/observe-utils.js +780 -0
  15. data/vendor/components/chaijs-assertion-error/component.json +18 -0
  16. data/vendor/components/chaijs-assertion-error/index.js +110 -0
  17. data/vendor/components/chaijs-chai/component.json +47 -0
  18. data/vendor/components/chaijs-chai/index.js +1 -0
  19. data/vendor/components/chaijs-chai/lib/chai/assertion.js +130 -0
  20. data/vendor/components/chaijs-chai/lib/chai/core/assertions.js +1270 -0
  21. data/vendor/components/chaijs-chai/lib/chai/interface/assert.js +1080 -0
  22. data/vendor/components/chaijs-chai/lib/chai/interface/expect.js +12 -0
  23. data/vendor/components/chaijs-chai/lib/chai/interface/should.js +76 -0
  24. data/vendor/components/chaijs-chai/lib/chai/utils/addChainableMethod.js +94 -0
  25. data/vendor/components/chaijs-chai/lib/chai/utils/addMethod.js +37 -0
  26. data/vendor/components/chaijs-chai/lib/chai/utils/addProperty.js +40 -0
  27. data/vendor/components/chaijs-chai/lib/chai/utils/flag.js +32 -0
  28. data/vendor/components/chaijs-chai/lib/chai/utils/getActual.js +19 -0
  29. data/vendor/components/chaijs-chai/lib/chai/utils/getEnumerableProperties.js +25 -0
  30. data/vendor/components/chaijs-chai/lib/chai/utils/getMessage.js +49 -0
  31. data/vendor/components/chaijs-chai/lib/chai/utils/getName.js +20 -0
  32. data/vendor/components/chaijs-chai/lib/chai/utils/getPathValue.js +102 -0
  33. data/vendor/components/chaijs-chai/lib/chai/utils/getProperties.js +35 -0
  34. data/vendor/components/chaijs-chai/lib/chai/utils/index.js +108 -0
  35. data/vendor/components/chaijs-chai/lib/chai/utils/inspect.js +320 -0
  36. data/vendor/components/chaijs-chai/lib/chai/utils/objDisplay.js +48 -0
  37. data/vendor/components/chaijs-chai/lib/chai/utils/overwriteMethod.js +51 -0
  38. data/vendor/components/chaijs-chai/lib/chai/utils/overwriteProperty.js +54 -0
  39. data/vendor/components/chaijs-chai/lib/chai/utils/test.js +26 -0
  40. data/vendor/components/chaijs-chai/lib/chai/utils/transferFlags.js +44 -0
  41. data/vendor/components/chaijs-chai/lib/chai/utils/type.js +45 -0
  42. data/vendor/components/chaijs-chai/lib/chai.js +80 -0
  43. data/vendor/components/chaijs-deep-eql/component.json +18 -0
  44. data/vendor/components/chaijs-deep-eql/lib/eql.js +257 -0
  45. data/vendor/components/chaijs-type-detect/component.json +16 -0
  46. data/vendor/components/chaijs-type-detect/lib/type.js +142 -0
  47. data/vendor/components/component-bind/component.json +14 -0
  48. data/vendor/components/component-bind/index.js +24 -0
  49. data/vendor/components/component-delegate/component.json +19 -0
  50. data/vendor/components/component-delegate/index.js +42 -0
  51. data/vendor/components/component-event/component.json +13 -0
  52. data/vendor/components/component-event/index.js +40 -0
  53. data/vendor/components/component-jquery/component.json +14 -0
  54. data/vendor/components/component-jquery/index.js +9601 -0
  55. data/vendor/components/component-link-delegate/component.json +23 -0
  56. data/vendor/components/component-link-delegate/index.js +60 -0
  57. data/vendor/components/component-matches-selector/component.json +20 -0
  58. data/vendor/components/component-matches-selector/index.js +45 -0
  59. data/vendor/components/component-query/component.json +21 -0
  60. data/vendor/components/component-query/index.js +21 -0
  61. data/vendor/components/component-type/component.json +18 -0
  62. data/vendor/components/component-type/index.js +32 -0
  63. data/vendor/components/component-url/component.json +17 -0
  64. data/vendor/components/component-url/index.js +63 -0
  65. data/vendor/components/components-modernizr/component.json +18 -0
  66. data/vendor/components/components-modernizr/modernizr.js +1393 -0
  67. data/vendor/components/discore-closest/component.json +14 -0
  68. data/vendor/components/discore-closest/index.js +18 -0
  69. data/vendor/components/indefinido-advisable/component.json +21 -0
  70. data/vendor/components/indefinido-advisable/index.js +1 -0
  71. data/vendor/components/indefinido-advisable/lib/advisable.js +60 -0
  72. data/vendor/components/indefinido-indemma/component.json +40 -0
  73. data/vendor/components/indefinido-indemma/index.js +1 -0
  74. data/vendor/components/indefinido-indemma/lib/extensions/rivets.js +23 -0
  75. data/vendor/components/indefinido-indemma/lib/record/associable.js +217 -0
  76. data/vendor/components/indefinido-indemma/lib/record/maid.js +24 -0
  77. data/vendor/components/indefinido-indemma/lib/record/resource.js +104 -0
  78. data/vendor/components/indefinido-indemma/lib/record/rest.js +36 -0
  79. data/vendor/components/indefinido-indemma/lib/record/restfulable.js +326 -0
  80. data/vendor/components/indefinido-indemma/lib/record/scopable.js +279 -0
  81. data/vendor/components/indefinido-indemma/lib/record/translationable.js +19 -0
  82. data/vendor/components/indefinido-indemma/lib/record/validatable.js +216 -0
  83. data/vendor/components/indefinido-indemma/lib/record/validations/associated.js +30 -0
  84. data/vendor/components/indefinido-indemma/lib/record/validations/confirmation.js +19 -0
  85. data/vendor/components/indefinido-indemma/lib/record/validations/cpf.js +60 -0
  86. data/vendor/components/indefinido-indemma/lib/record/validations/presence.js +19 -0
  87. data/vendor/components/indefinido-indemma/lib/record/validations/remote.js +71 -0
  88. data/vendor/components/indefinido-indemma/lib/record.js +167 -0
  89. data/vendor/components/indefinido-indemma/vendor/sinon.js +4290 -0
  90. data/vendor/components/indefinido-indemma/vendor/stampit.js +392 -0
  91. data/vendor/components/indefinido-observable/component.json +25 -0
  92. data/vendor/components/indefinido-observable/components/cjohansen-sinon/sinon.js +4290 -0
  93. data/vendor/components/indefinido-observable/index.js +1 -0
  94. data/vendor/components/indefinido-observable/lib/adapters/rivets.js +26 -0
  95. data/vendor/components/indefinido-observable/lib/observable.js +320 -0
  96. data/vendor/components/indefinido-observable/vendor/shims/accessors-legacy.js +92 -0
  97. data/vendor/components/indefinido-observable/vendor/shims/accessors.js +173 -0
  98. data/vendor/components/indefinido-observable/vendor/shims/array.indexOf.js +8 -0
  99. data/vendor/components/indefinido-observable/vendor/shims/object.create.js +77 -0
  100. data/vendor/components/mikeric-rivets/component.json +15 -0
  101. data/vendor/components/mikeric-rivets/dist/rivets.js +1239 -0
  102. data/vendor/components/paulmillr-es6-shim/component.json +17 -0
  103. data/vendor/components/paulmillr-es6-shim/es6-shim.js +985 -0
  104. data/vendor/components/pluma-assimilate/component.json +25 -0
  105. data/vendor/components/pluma-assimilate/dist/assimilate.js +87 -0
  106. data/vendor/components/segmentio-extend/component.json +13 -0
  107. data/vendor/components/segmentio-extend/index.js +15 -0
  108. metadata +98 -2
@@ -0,0 +1,23 @@
1
+ {
2
+ "name": "link-delegate",
3
+ "repo": "component/link-delegate",
4
+ "description": "Anchor tag click delegation / negotiation for client-side routing",
5
+ "version": "0.0.1",
6
+ "keywords": [
7
+ "link",
8
+ "delegate",
9
+ "route",
10
+ "routing",
11
+ "router"
12
+ ],
13
+ "dependencies": {
14
+ "component/delegate": "*",
15
+ "component/url": "*"
16
+ },
17
+ "development": {},
18
+ "license": "MIT",
19
+ "main": "index.js",
20
+ "scripts": [
21
+ "index.js"
22
+ ]
23
+ }
@@ -0,0 +1,60 @@
1
+
2
+ /**
3
+ * Module dependencies.
4
+ */
5
+
6
+ var delegate = require('delegate');
7
+ var url = require('url');
8
+
9
+ /**
10
+ * Handle link delegation on `el` or the document,
11
+ * and invoke `fn(e)` when clickable.
12
+ *
13
+ * @param {Element|Function} el or fn
14
+ * @param {Function} [fn]
15
+ * @api public
16
+ */
17
+
18
+ module.exports = function(el, fn){
19
+ // default to document
20
+ if ('function' == typeof el) {
21
+ fn = el;
22
+ el = document;
23
+ }
24
+
25
+ delegate.bind(el, 'a', 'click', function(e){
26
+ if (clickable(e)) fn(e);
27
+ });
28
+ };
29
+
30
+ /**
31
+ * Check if `e` is clickable.
32
+ */
33
+
34
+ function clickable(e) {
35
+ if (1 != which(e)) return;
36
+ if (e.metaKey || e.ctrlKey || e.shiftKey) return;
37
+ if (e.defaultPrevented) return;
38
+
39
+ // target
40
+ var el = e.target;
41
+
42
+ // check target
43
+ if (el.target) return;
44
+
45
+ // x-origin
46
+ if (url.isCrossDomain(el.href)) return;
47
+
48
+ return true;
49
+ }
50
+
51
+ /**
52
+ * Event button.
53
+ */
54
+
55
+ function which(e) {
56
+ e = e || window.event;
57
+ return null == e.which
58
+ ? e.button
59
+ : e.which;
60
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "name": "matches-selector",
3
+ "repo": "component/matches-selector",
4
+ "description": "Check if an element matches a given selector",
5
+ "version": "0.1.1",
6
+ "keywords": [
7
+ "match",
8
+ "element",
9
+ "selector"
10
+ ],
11
+ "dependencies": {
12
+ "component/query": "*"
13
+ },
14
+ "development": {
15
+ "component/domify": "*"
16
+ },
17
+ "scripts": [
18
+ "index.js"
19
+ ]
20
+ }
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Module dependencies.
3
+ */
4
+
5
+ var query = require('query');
6
+
7
+ /**
8
+ * Element prototype.
9
+ */
10
+
11
+ var proto = Element.prototype;
12
+
13
+ /**
14
+ * Vendor function.
15
+ */
16
+
17
+ var vendor = proto.matches
18
+ || proto.webkitMatchesSelector
19
+ || proto.mozMatchesSelector
20
+ || proto.msMatchesSelector
21
+ || proto.oMatchesSelector;
22
+
23
+ /**
24
+ * Expose `match()`.
25
+ */
26
+
27
+ module.exports = match;
28
+
29
+ /**
30
+ * Match `el` to `selector`.
31
+ *
32
+ * @param {Element} el
33
+ * @param {String} selector
34
+ * @return {Boolean}
35
+ * @api public
36
+ */
37
+
38
+ function match(el, selector) {
39
+ if (vendor) return vendor.call(el, selector);
40
+ var nodes = query.all(selector, el.parentNode);
41
+ for (var i = 0; i < nodes.length; ++i) {
42
+ if (nodes[i] == el) return true;
43
+ }
44
+ return false;
45
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "name": "query",
3
+ "repo": "component/query",
4
+ "description": "Query the DOM with selector engine fallback support",
5
+ "version": "0.0.1",
6
+ "keywords": [
7
+ "query",
8
+ "selector",
9
+ "engine",
10
+ "dom",
11
+ "elements"
12
+ ],
13
+ "dependencies": {},
14
+ "development": {
15
+ "component/assert": "*"
16
+ },
17
+ "license": "MIT",
18
+ "scripts": [
19
+ "index.js"
20
+ ]
21
+ }
@@ -0,0 +1,21 @@
1
+
2
+ function one(selector, el) {
3
+ return el.querySelector(selector);
4
+ }
5
+
6
+ exports = module.exports = function(selector, el){
7
+ el = el || document;
8
+ return one(selector, el);
9
+ };
10
+
11
+ exports.all = function(selector, el){
12
+ el = el || document;
13
+ return el.querySelectorAll(selector);
14
+ };
15
+
16
+ exports.engine = function(obj){
17
+ if (!obj.one) throw new Error('.one callback required');
18
+ if (!obj.all) throw new Error('.all callback required');
19
+ one = obj.one;
20
+ exports.all = obj.all;
21
+ };
@@ -0,0 +1,18 @@
1
+ {
2
+ "name": "type",
3
+ "description": "Cross-browser type assertions (less broken typeof)",
4
+ "version": "1.0.0",
5
+ "keywords": [
6
+ "typeof",
7
+ "type",
8
+ "utility"
9
+ ],
10
+ "dependencies": {},
11
+ "development": {
12
+ "component/assert": "*"
13
+ },
14
+ "scripts": [
15
+ "index.js"
16
+ ],
17
+ "repo": "https://raw.github.com/component/type"
18
+ }
@@ -0,0 +1,32 @@
1
+
2
+ /**
3
+ * toString ref.
4
+ */
5
+
6
+ var toString = Object.prototype.toString;
7
+
8
+ /**
9
+ * Return the type of `val`.
10
+ *
11
+ * @param {Mixed} val
12
+ * @return {String}
13
+ * @api public
14
+ */
15
+
16
+ module.exports = function(val){
17
+ switch (toString.call(val)) {
18
+ case '[object Function]': return 'function';
19
+ case '[object Date]': return 'date';
20
+ case '[object RegExp]': return 'regexp';
21
+ case '[object Arguments]': return 'arguments';
22
+ case '[object Array]': return 'array';
23
+ case '[object String]': return 'string';
24
+ }
25
+
26
+ if (val === null) return 'null';
27
+ if (val === undefined) return 'undefined';
28
+ if (val && val.nodeType === 1) return 'element';
29
+ if (val === Object(val)) return 'object';
30
+
31
+ return typeof val;
32
+ };
@@ -0,0 +1,17 @@
1
+ {
2
+ "name": "url",
3
+ "repo": "component/url",
4
+ "description": "url parser",
5
+ "version": "0.1.0",
6
+ "keywords": [
7
+ "url",
8
+ "utility",
9
+ "parser"
10
+ ],
11
+ "development": {
12
+ "component/assert": "*"
13
+ },
14
+ "scripts": [
15
+ "index.js"
16
+ ]
17
+ }
@@ -0,0 +1,63 @@
1
+
2
+ /**
3
+ * Parse the given `url`.
4
+ *
5
+ * @param {String} str
6
+ * @return {Object}
7
+ * @api public
8
+ */
9
+
10
+ exports.parse = function(url){
11
+ var a = document.createElement('a');
12
+ a.href = url;
13
+ return {
14
+ href: a.href,
15
+ host: a.host || location.host,
16
+ port: ('0' === a.port || '' === a.port) ? location.port : a.port,
17
+ hash: a.hash,
18
+ hostname: a.hostname || location.hostname,
19
+ pathname: a.pathname.charAt(0) != '/' ? '/' + a.pathname : a.pathname,
20
+ protocol: !a.protocol || ':' == a.protocol ? location.protocol : a.protocol,
21
+ search: a.search,
22
+ query: a.search.slice(1)
23
+ };
24
+ };
25
+
26
+ /**
27
+ * Check if `url` is absolute.
28
+ *
29
+ * @param {String} url
30
+ * @return {Boolean}
31
+ * @api public
32
+ */
33
+
34
+ exports.isAbsolute = function(url){
35
+ return 0 == url.indexOf('//') || !!~url.indexOf('://');
36
+ };
37
+
38
+ /**
39
+ * Check if `url` is relative.
40
+ *
41
+ * @param {String} url
42
+ * @return {Boolean}
43
+ * @api public
44
+ */
45
+
46
+ exports.isRelative = function(url){
47
+ return !exports.isAbsolute(url);
48
+ };
49
+
50
+ /**
51
+ * Check if `url` is cross domain.
52
+ *
53
+ * @param {String} url
54
+ * @return {Boolean}
55
+ * @api public
56
+ */
57
+
58
+ exports.isCrossDomain = function(url){
59
+ url = exports.parse(url);
60
+ return url.hostname !== location.hostname
61
+ || url.port !== location.port
62
+ || url.protocol !== location.protocol;
63
+ };
@@ -0,0 +1,18 @@
1
+ {
2
+ "name": "modernizr",
3
+ "repo": "components/modernizr",
4
+ "version": "2.6.2",
5
+ "description": "Modernizr is a JavaScript library that detects HTML5 and CSS3 features in the user's browser.",
6
+ "homepage": "http://modernizr.com/",
7
+ "keywords": [
8
+ "html5",
9
+ "css3",
10
+ "browser",
11
+ "feature detection"
12
+ ],
13
+ "author": "Modernizr <http://modernizr.com>",
14
+ "main": "modernizr.js",
15
+ "scripts": [
16
+ "modernizr.js"
17
+ ]
18
+ }