ende 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (299) hide show
  1. checksums.yaml +4 -4
  2. data/component.json +2 -1
  3. data/lib/assets/javascripts/aura/extensions/devise.js.coffee +3 -2
  4. data/lib/assets/javascripts/aura/extensions/models.js.coffee.erb +1 -2
  5. data/lib/assets/javascripts/aura/extensions/widget/lifecycleable.js.coffee +37 -16
  6. data/lib/assets/javascripts/ende.js.coffee +1 -1
  7. data/lib/assets/javascripts/widgets/dialog/main.js.coffee +100 -0
  8. data/lib/assets/javascripts/widgets/dialog/presenter.js.coffee +18 -0
  9. data/lib/assets/javascripts/widgets/dialog/states/default.html +2 -0
  10. data/lib/assets/javascripts/widgets/dialog/states/index.js.coffee +2 -0
  11. data/lib/assets/javascripts/widgets/list/main.js.coffee +1 -0
  12. data/lib/assets/stylesheets/ende.styl +1 -0
  13. data/lib/ende/version.rb +1 -1
  14. data/lib/ende.rb +6 -2
  15. data/vendor/assets/components/build.css +111 -0
  16. data/vendor/{components/indefinido-indemma/build/release.js → assets/components/build.js} +25468 -17590
  17. data/vendor/assets/components/ende_build.css +111 -0
  18. data/vendor/assets/components/ende_build.js +29571 -0
  19. data/vendor/assets/javascripts/ende/build.js +1962 -0
  20. data/vendor/components/component-classes/component.json +19 -0
  21. data/vendor/components/component-classes/index.js +165 -0
  22. data/vendor/components/component-css/component.json +18 -0
  23. data/vendor/components/component-css/index.js +34 -0
  24. data/vendor/components/component-delegate/component.json +2 -2
  25. data/vendor/components/component-delegate/index.js +4 -4
  26. data/vendor/components/component-dialog/component.json +23 -0
  27. data/vendor/components/component-dialog/dialog.css +92 -0
  28. data/vendor/components/component-dialog/index.js +292 -0
  29. data/vendor/components/component-dialog/template.js +1 -0
  30. data/vendor/components/component-dom/component.json +33 -0
  31. data/vendor/components/component-dom/index.js +725 -0
  32. data/vendor/components/component-domify/component.json +22 -0
  33. data/vendor/components/component-domify/index.js +71 -0
  34. data/vendor/components/component-emitter/component.json +13 -0
  35. data/vendor/components/component-emitter/index.js +156 -0
  36. data/vendor/components/component-event/index.js +8 -11
  37. data/vendor/components/component-indexof/component.json +15 -0
  38. data/vendor/components/component-indexof/index.js +10 -0
  39. data/vendor/components/component-overlay/component.json +22 -0
  40. data/vendor/components/component-overlay/index.js +111 -0
  41. data/vendor/components/component-overlay/overlay.css +19 -0
  42. data/vendor/components/component-overlay/template.js +1 -0
  43. data/vendor/components/component-query/component.json +2 -1
  44. data/vendor/components/component-sort/component.json +20 -0
  45. data/vendor/components/component-sort/index.js +43 -0
  46. data/vendor/components/component-value/component.json +25 -0
  47. data/vendor/components/component-value/index.js +95 -0
  48. data/vendor/components/indefinido-indemma/component.json +2 -3
  49. data/vendor/components/indefinido-indemma/lib/record/resource.js +2 -4
  50. data/vendor/components/mikeric-rivets/component.json +1 -1
  51. data/vendor/components/mikeric-rivets/dist/rivets.js +64 -44
  52. data/vendor/components/paulmillr-es6-shim/component.json +1 -1
  53. data/vendor/components/paulmillr-es6-shim/es6-shim.js +22 -11
  54. data/vendor/components/pluma-assimilate/component.json +1 -1
  55. data/vendor/components/pluma-assimilate/dist/assimilate.js +103 -63
  56. metadata +35 -246
  57. data/lib/tasks/component.thor +0 -63
  58. data/vendor/assets/components/KapIT-observe-utils/component.json +0 -16
  59. data/vendor/assets/components/KapIT-observe-utils/lib/observe-utils.js +0 -780
  60. data/vendor/assets/components/chaijs-assertion-error/component.json +0 -18
  61. data/vendor/assets/components/chaijs-assertion-error/index.js +0 -110
  62. data/vendor/assets/components/chaijs-chai/component.json +0 -47
  63. data/vendor/assets/components/chaijs-chai/index.js +0 -1
  64. data/vendor/assets/components/chaijs-chai/lib/chai/assertion.js +0 -130
  65. data/vendor/assets/components/chaijs-chai/lib/chai/core/assertions.js +0 -1270
  66. data/vendor/assets/components/chaijs-chai/lib/chai/interface/assert.js +0 -1080
  67. data/vendor/assets/components/chaijs-chai/lib/chai/interface/expect.js +0 -12
  68. data/vendor/assets/components/chaijs-chai/lib/chai/interface/should.js +0 -76
  69. data/vendor/assets/components/chaijs-chai/lib/chai/utils/addChainableMethod.js +0 -94
  70. data/vendor/assets/components/chaijs-chai/lib/chai/utils/addMethod.js +0 -37
  71. data/vendor/assets/components/chaijs-chai/lib/chai/utils/addProperty.js +0 -40
  72. data/vendor/assets/components/chaijs-chai/lib/chai/utils/flag.js +0 -32
  73. data/vendor/assets/components/chaijs-chai/lib/chai/utils/getActual.js +0 -19
  74. data/vendor/assets/components/chaijs-chai/lib/chai/utils/getEnumerableProperties.js +0 -25
  75. data/vendor/assets/components/chaijs-chai/lib/chai/utils/getMessage.js +0 -49
  76. data/vendor/assets/components/chaijs-chai/lib/chai/utils/getName.js +0 -20
  77. data/vendor/assets/components/chaijs-chai/lib/chai/utils/getPathValue.js +0 -102
  78. data/vendor/assets/components/chaijs-chai/lib/chai/utils/getProperties.js +0 -35
  79. data/vendor/assets/components/chaijs-chai/lib/chai/utils/index.js +0 -108
  80. data/vendor/assets/components/chaijs-chai/lib/chai/utils/inspect.js +0 -320
  81. data/vendor/assets/components/chaijs-chai/lib/chai/utils/objDisplay.js +0 -48
  82. data/vendor/assets/components/chaijs-chai/lib/chai/utils/overwriteMethod.js +0 -51
  83. data/vendor/assets/components/chaijs-chai/lib/chai/utils/overwriteProperty.js +0 -54
  84. data/vendor/assets/components/chaijs-chai/lib/chai/utils/test.js +0 -26
  85. data/vendor/assets/components/chaijs-chai/lib/chai/utils/transferFlags.js +0 -44
  86. data/vendor/assets/components/chaijs-chai/lib/chai/utils/type.js +0 -45
  87. data/vendor/assets/components/chaijs-chai/lib/chai.js +0 -80
  88. data/vendor/assets/components/chaijs-deep-eql/component.json +0 -18
  89. data/vendor/assets/components/chaijs-deep-eql/lib/eql.js +0 -257
  90. data/vendor/assets/components/chaijs-type-detect/component.json +0 -16
  91. data/vendor/assets/components/chaijs-type-detect/lib/type.js +0 -142
  92. data/vendor/assets/components/component-bind/component.json +0 -14
  93. data/vendor/assets/components/component-bind/index.js +0 -24
  94. data/vendor/assets/components/component-delegate/component.json +0 -19
  95. data/vendor/assets/components/component-delegate/index.js +0 -42
  96. data/vendor/assets/components/component-event/component.json +0 -13
  97. data/vendor/assets/components/component-event/index.js +0 -40
  98. data/vendor/assets/components/component-jquery/component.json +0 -14
  99. data/vendor/assets/components/component-jquery/index.js +0 -9601
  100. data/vendor/assets/components/component-link-delegate/component.json +0 -23
  101. data/vendor/assets/components/component-link-delegate/index.js +0 -60
  102. data/vendor/assets/components/component-matches-selector/component.json +0 -20
  103. data/vendor/assets/components/component-matches-selector/index.js +0 -45
  104. data/vendor/assets/components/component-query/component.json +0 -21
  105. data/vendor/assets/components/component-query/index.js +0 -21
  106. data/vendor/assets/components/component-type/component.json +0 -18
  107. data/vendor/assets/components/component-type/index.js +0 -32
  108. data/vendor/assets/components/component-url/component.json +0 -17
  109. data/vendor/assets/components/component-url/index.js +0 -63
  110. data/vendor/assets/components/discore-closest/component.json +0 -14
  111. data/vendor/assets/components/discore-closest/index.js +0 -18
  112. data/vendor/assets/components/indefinido-advisable/component.json +0 -21
  113. data/vendor/assets/components/indefinido-advisable/index.js +0 -1
  114. data/vendor/assets/components/indefinido-advisable/lib/advisable.js +0 -60
  115. data/vendor/assets/components/indefinido-indemma/component.json +0 -40
  116. data/vendor/assets/components/indefinido-indemma/index.js +0 -1
  117. data/vendor/assets/components/indefinido-indemma/lib/extensions/rivets.js +0 -23
  118. data/vendor/assets/components/indefinido-indemma/lib/record/associable.js +0 -217
  119. data/vendor/assets/components/indefinido-indemma/lib/record/maid.js +0 -24
  120. data/vendor/assets/components/indefinido-indemma/lib/record/resource.js +0 -104
  121. data/vendor/assets/components/indefinido-indemma/lib/record/rest.js +0 -36
  122. data/vendor/assets/components/indefinido-indemma/lib/record/restfulable.js +0 -326
  123. data/vendor/assets/components/indefinido-indemma/lib/record/scopable.js +0 -279
  124. data/vendor/assets/components/indefinido-indemma/lib/record/translationable.js +0 -19
  125. data/vendor/assets/components/indefinido-indemma/lib/record/validatable.js +0 -216
  126. data/vendor/assets/components/indefinido-indemma/lib/record/validations/associated.js +0 -30
  127. data/vendor/assets/components/indefinido-indemma/lib/record/validations/confirmation.js +0 -19
  128. data/vendor/assets/components/indefinido-indemma/lib/record/validations/cpf.js +0 -60
  129. data/vendor/assets/components/indefinido-indemma/lib/record/validations/presence.js +0 -19
  130. data/vendor/assets/components/indefinido-indemma/lib/record/validations/remote.js +0 -71
  131. data/vendor/assets/components/indefinido-indemma/lib/record.js +0 -167
  132. data/vendor/assets/components/indefinido-indemma/vendor/sinon.js +0 -4290
  133. data/vendor/assets/components/indefinido-indemma/vendor/stampit.js +0 -392
  134. data/vendor/assets/components/indefinido-observable/component.json +0 -25
  135. data/vendor/assets/components/indefinido-observable/components/cjohansen-sinon/sinon.js +0 -4290
  136. data/vendor/assets/components/indefinido-observable/index.js +0 -1
  137. data/vendor/assets/components/indefinido-observable/lib/adapters/rivets.js +0 -26
  138. data/vendor/assets/components/indefinido-observable/lib/observable.js +0 -320
  139. data/vendor/assets/components/indefinido-observable/vendor/shims/accessors-legacy.js +0 -92
  140. data/vendor/assets/components/indefinido-observable/vendor/shims/accessors.js +0 -173
  141. data/vendor/assets/components/indefinido-observable/vendor/shims/array.indexOf.js +0 -8
  142. data/vendor/assets/components/indefinido-observable/vendor/shims/object.create.js +0 -77
  143. data/vendor/assets/components/mikeric-rivets/component.json +0 -15
  144. data/vendor/assets/components/mikeric-rivets/dist/rivets.js +0 -1020
  145. data/vendor/assets/components/paulmillr-es6-shim/component.json +0 -17
  146. data/vendor/assets/components/paulmillr-es6-shim/es6-shim.js +0 -985
  147. data/vendor/assets/components/pluma-assimilate/component.json +0 -25
  148. data/vendor/assets/components/pluma-assimilate/dist/assimilate.js +0 -87
  149. data/vendor/assets/components/segmentio-extend/component.json +0 -13
  150. data/vendor/assets/components/segmentio-extend/index.js +0 -15
  151. data/vendor/components/chaijs-assertion-error/component.json +0 -18
  152. data/vendor/components/chaijs-assertion-error/index.js +0 -110
  153. data/vendor/components/chaijs-chai/component.json +0 -47
  154. data/vendor/components/chaijs-chai/index.js +0 -1
  155. data/vendor/components/chaijs-chai/lib/chai/assertion.js +0 -130
  156. data/vendor/components/chaijs-chai/lib/chai/core/assertions.js +0 -1270
  157. data/vendor/components/chaijs-chai/lib/chai/interface/assert.js +0 -1080
  158. data/vendor/components/chaijs-chai/lib/chai/interface/expect.js +0 -12
  159. data/vendor/components/chaijs-chai/lib/chai/interface/should.js +0 -76
  160. data/vendor/components/chaijs-chai/lib/chai/utils/addChainableMethod.js +0 -94
  161. data/vendor/components/chaijs-chai/lib/chai/utils/addMethod.js +0 -37
  162. data/vendor/components/chaijs-chai/lib/chai/utils/addProperty.js +0 -40
  163. data/vendor/components/chaijs-chai/lib/chai/utils/flag.js +0 -32
  164. data/vendor/components/chaijs-chai/lib/chai/utils/getActual.js +0 -19
  165. data/vendor/components/chaijs-chai/lib/chai/utils/getEnumerableProperties.js +0 -25
  166. data/vendor/components/chaijs-chai/lib/chai/utils/getMessage.js +0 -49
  167. data/vendor/components/chaijs-chai/lib/chai/utils/getName.js +0 -20
  168. data/vendor/components/chaijs-chai/lib/chai/utils/getPathValue.js +0 -102
  169. data/vendor/components/chaijs-chai/lib/chai/utils/getProperties.js +0 -35
  170. data/vendor/components/chaijs-chai/lib/chai/utils/index.js +0 -108
  171. data/vendor/components/chaijs-chai/lib/chai/utils/inspect.js +0 -320
  172. data/vendor/components/chaijs-chai/lib/chai/utils/objDisplay.js +0 -48
  173. data/vendor/components/chaijs-chai/lib/chai/utils/overwriteMethod.js +0 -51
  174. data/vendor/components/chaijs-chai/lib/chai/utils/overwriteProperty.js +0 -54
  175. data/vendor/components/chaijs-chai/lib/chai/utils/test.js +0 -26
  176. data/vendor/components/chaijs-chai/lib/chai/utils/transferFlags.js +0 -44
  177. data/vendor/components/chaijs-chai/lib/chai/utils/type.js +0 -45
  178. data/vendor/components/chaijs-chai/lib/chai.js +0 -80
  179. data/vendor/components/chaijs-deep-eql/component.json +0 -18
  180. data/vendor/components/chaijs-deep-eql/lib/eql.js +0 -257
  181. data/vendor/components/chaijs-type-detect/component.json +0 -16
  182. data/vendor/components/chaijs-type-detect/lib/type.js +0 -142
  183. data/vendor/components/component-link-delegate/component.json +0 -23
  184. data/vendor/components/component-link-delegate/index.js +0 -60
  185. data/vendor/components/component-url/component.json +0 -17
  186. data/vendor/components/component-url/index.js +0 -63
  187. data/vendor/components/discore-closest/component.json +0 -14
  188. data/vendor/components/discore-closest/index.js +0 -18
  189. data/vendor/components/indefinido-indemma/.gitignore +0 -14
  190. data/vendor/components/indefinido-indemma/.ruby-gemset +0 -1
  191. data/vendor/components/indefinido-indemma/.ruby-version +0 -1
  192. data/vendor/components/indefinido-indemma/Gemfile +0 -13
  193. data/vendor/components/indefinido-indemma/Guardfile +0 -39
  194. data/vendor/components/indefinido-indemma/History.md +0 -0
  195. data/vendor/components/indefinido-indemma/Readme.md +0 -443
  196. data/vendor/components/indefinido-indemma/build/development.js +0 -331
  197. data/vendor/components/indefinido-indemma/build/test.js +0 -331
  198. data/vendor/components/indefinido-indemma/components/chaijs-assertion-error/component.json +0 -18
  199. data/vendor/components/indefinido-indemma/components/chaijs-assertion-error/index.js +0 -110
  200. data/vendor/components/indefinido-indemma/components/chaijs-chai/component.json +0 -47
  201. data/vendor/components/indefinido-indemma/components/chaijs-chai/index.js +0 -1
  202. data/vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/assertion.js +0 -130
  203. data/vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/core/assertions.js +0 -1270
  204. data/vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/interface/assert.js +0 -1080
  205. data/vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/interface/expect.js +0 -12
  206. data/vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/interface/should.js +0 -76
  207. data/vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/addChainableMethod.js +0 -94
  208. data/vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/addMethod.js +0 -37
  209. data/vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/addProperty.js +0 -40
  210. data/vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/eql.js +0 -129
  211. data/vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/flag.js +0 -32
  212. data/vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/getActual.js +0 -19
  213. data/vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/getEnumerableProperties.js +0 -25
  214. data/vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/getMessage.js +0 -49
  215. data/vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/getName.js +0 -20
  216. data/vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/getPathValue.js +0 -102
  217. data/vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/getProperties.js +0 -35
  218. data/vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/index.js +0 -108
  219. data/vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/inspect.js +0 -320
  220. data/vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/objDisplay.js +0 -48
  221. data/vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/overwriteMethod.js +0 -51
  222. data/vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/overwriteProperty.js +0 -54
  223. data/vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/test.js +0 -26
  224. data/vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/transferFlags.js +0 -44
  225. data/vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/type.js +0 -45
  226. data/vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai.js +0 -80
  227. data/vendor/components/indefinido-indemma/components/component-bind/component.json +0 -14
  228. data/vendor/components/indefinido-indemma/components/component-bind/index.js +0 -24
  229. data/vendor/components/indefinido-indemma/components/component-jquery/component.json +0 -14
  230. data/vendor/components/indefinido-indemma/components/component-jquery/index.js +0 -9601
  231. data/vendor/components/indefinido-indemma/components/component-type/component.json +0 -18
  232. data/vendor/components/indefinido-indemma/components/component-type/index.js +0 -32
  233. data/vendor/components/indefinido-indemma/components/indefinido-advisable/component.json +0 -21
  234. data/vendor/components/indefinido-indemma/components/indefinido-advisable/index.js +0 -1
  235. data/vendor/components/indefinido-indemma/components/indefinido-advisable/lib/advisable.js +0 -60
  236. data/vendor/components/indefinido-indemma/components/indefinido-observable/component.json +0 -25
  237. data/vendor/components/indefinido-indemma/components/indefinido-observable/components/cjohansen-sinon/sinon.js +0 -4290
  238. data/vendor/components/indefinido-indemma/components/indefinido-observable/index.js +0 -1
  239. data/vendor/components/indefinido-indemma/components/indefinido-observable/lib/adapters/rivets.js +0 -26
  240. data/vendor/components/indefinido-indemma/components/indefinido-observable/lib/observable.js +0 -323
  241. data/vendor/components/indefinido-indemma/components/indefinido-observable/vendor/shims/accessors-legacy.js +0 -92
  242. data/vendor/components/indefinido-indemma/components/indefinido-observable/vendor/shims/accessors.js +0 -173
  243. data/vendor/components/indefinido-indemma/components/indefinido-observable/vendor/shims/array.indexOf.js +0 -8
  244. data/vendor/components/indefinido-indemma/components/indefinido-observable/vendor/shims/object.create.js +0 -77
  245. data/vendor/components/indefinido-indemma/components/kapit-observe-utils/component.json +0 -13
  246. data/vendor/components/indefinido-indemma/components/pluma-assimilate/component.json +0 -25
  247. data/vendor/components/indefinido-indemma/components/pluma-assimilate/dist/assimilate.js +0 -87
  248. data/vendor/components/indefinido-indemma/karma.conf.js +0 -86
  249. data/vendor/components/indefinido-indemma/lib/record/errors.js +0 -1
  250. data/vendor/components/indefinido-indemma/spec/record/associable_spec.js +0 -76
  251. data/vendor/components/indefinido-indemma/spec/record/resource_spec.js +0 -90
  252. data/vendor/components/indefinido-indemma/spec/record/rest_spec.js +0 -32
  253. data/vendor/components/indefinido-indemma/spec/record/restfulable_spec.js +0 -232
  254. data/vendor/components/indefinido-indemma/spec/record/scopable_spec.js +0 -201
  255. data/vendor/components/indefinido-indemma/spec/record/translationable.js +0 -28
  256. data/vendor/components/indefinido-indemma/spec/record/validatable_spec.js +0 -111
  257. data/vendor/components/indefinido-indemma/spec/record/validations/associated_spec.js +0 -43
  258. data/vendor/components/indefinido-indemma/spec/record/validations/confirmation_spec.js +0 -36
  259. data/vendor/components/indefinido-indemma/spec/record/validations/cpf_spec.js +0 -35
  260. data/vendor/components/indefinido-indemma/spec/record/validations/presence_spec.js +0 -28
  261. data/vendor/components/indefinido-indemma/spec/record/validations/remote_spec.js +0 -86
  262. data/vendor/components/indefinido-indemma/spec/record/validations/type_spec.js +0 -48
  263. data/vendor/components/indefinido-indemma/spec/record_spec.js +0 -37
  264. data/vendor/components/indefinido-indemma/spec/spec_helper.js +0 -11
  265. data/vendor/components/indefinido-indemma/spec/support/value_objects/phone.js +0 -45
  266. data/vendor/components/indefinido-indemma/src/lib/extensions/rivets.coffee +0 -17
  267. data/vendor/components/indefinido-indemma/src/lib/record/associable.coffee +0 -173
  268. data/vendor/components/indefinido-indemma/src/lib/record/errors.coffee +0 -20
  269. data/vendor/components/indefinido-indemma/src/lib/record/maid.coffee +0 -16
  270. data/vendor/components/indefinido-indemma/src/lib/record/resource.coffee +0 -103
  271. data/vendor/components/indefinido-indemma/src/lib/record/rest.coffee +0 -28
  272. data/vendor/components/indefinido-indemma/src/lib/record/restfulable.coffee +0 -314
  273. data/vendor/components/indefinido-indemma/src/lib/record/scopable.coffee +0 -266
  274. data/vendor/components/indefinido-indemma/src/lib/record/translationable.coffee +0 -18
  275. data/vendor/components/indefinido-indemma/src/lib/record/validatable.coffee +0 -209
  276. data/vendor/components/indefinido-indemma/src/lib/record/validations/associated.coffee +0 -32
  277. data/vendor/components/indefinido-indemma/src/lib/record/validations/confirmation.coffee +0 -19
  278. data/vendor/components/indefinido-indemma/src/lib/record/validations/cpf.coffee +0 -58
  279. data/vendor/components/indefinido-indemma/src/lib/record/validations/presence.coffee +0 -19
  280. data/vendor/components/indefinido-indemma/src/lib/record/validations/remote.coffee +0 -65
  281. data/vendor/components/indefinido-indemma/src/lib/record/validations/type.coffee +0 -32
  282. data/vendor/components/indefinido-indemma/src/lib/record.coffee +0 -123
  283. data/vendor/components/indefinido-indemma/src/spec/record/associable_spec.coffee +0 -63
  284. data/vendor/components/indefinido-indemma/src/spec/record/resource_spec.coffee +0 -64
  285. data/vendor/components/indefinido-indemma/src/spec/record/rest_spec.coffee +0 -22
  286. data/vendor/components/indefinido-indemma/src/spec/record/restfulable_spec.coffee +0 -164
  287. data/vendor/components/indefinido-indemma/src/spec/record/scopable_spec.coffee +0 -181
  288. data/vendor/components/indefinido-indemma/src/spec/record/translationable.coffee +0 -19
  289. data/vendor/components/indefinido-indemma/src/spec/record/validatable_spec.coffee +0 -100
  290. data/vendor/components/indefinido-indemma/src/spec/record/validations/associated_spec.coffee +0 -35
  291. data/vendor/components/indefinido-indemma/src/spec/record/validations/confirmation_spec.coffee +0 -25
  292. data/vendor/components/indefinido-indemma/src/spec/record/validations/cpf_spec.coffee +0 -28
  293. data/vendor/components/indefinido-indemma/src/spec/record/validations/presence_spec.coffee +0 -24
  294. data/vendor/components/indefinido-indemma/src/spec/record/validations/remote_spec.coffee +0 -72
  295. data/vendor/components/indefinido-indemma/src/spec/record/validations/type_spec.coffee +0 -33
  296. data/vendor/components/indefinido-indemma/src/spec/record_spec.coffee +0 -23
  297. data/vendor/components/indefinido-indemma/src/spec/spec_helper.coffee +0 -9
  298. data/vendor/components/indefinido-indemma/src/spec/support/value_objects/phone.coffee +0 -30
  299. data/vendor/components/indefinido-indemma/vendor/owl/pluralize.js +0 -190
@@ -0,0 +1,19 @@
1
+ {
2
+ "name": "classes",
3
+ "version": "1.1.2",
4
+ "description": "Cross-browser element class list",
5
+ "keywords": [
6
+ "dom",
7
+ "html",
8
+ "classList",
9
+ "class",
10
+ "ui"
11
+ ],
12
+ "scripts": [
13
+ "index.js"
14
+ ],
15
+ "dependencies": {
16
+ "component/indexof": "*"
17
+ },
18
+ "repo": "https://raw.github.com/component/classes"
19
+ }
@@ -0,0 +1,165 @@
1
+
2
+ /**
3
+ * Module dependencies.
4
+ */
5
+
6
+ var index = require('indexof');
7
+
8
+ /**
9
+ * Whitespace regexp.
10
+ */
11
+
12
+ var re = /\s+/;
13
+
14
+ /**
15
+ * toString reference.
16
+ */
17
+
18
+ var toString = Object.prototype.toString;
19
+
20
+ /**
21
+ * Wrap `el` in a `ClassList`.
22
+ *
23
+ * @param {Element} el
24
+ * @return {ClassList}
25
+ * @api public
26
+ */
27
+
28
+ module.exports = function(el){
29
+ return new ClassList(el);
30
+ };
31
+
32
+ /**
33
+ * Initialize a new ClassList for `el`.
34
+ *
35
+ * @param {Element} el
36
+ * @api private
37
+ */
38
+
39
+ function ClassList(el) {
40
+ this.el = el;
41
+ this.list = el.classList;
42
+ }
43
+
44
+ /**
45
+ * Add class `name` if not already present.
46
+ *
47
+ * @param {String} name
48
+ * @return {ClassList}
49
+ * @api public
50
+ */
51
+
52
+ ClassList.prototype.add = function(name){
53
+ // classList
54
+ if (this.list) {
55
+ this.list.add(name);
56
+ return this;
57
+ }
58
+
59
+ // fallback
60
+ var arr = this.array();
61
+ var i = index(arr, name);
62
+ if (!~i) arr.push(name);
63
+ this.el.className = arr.join(' ');
64
+ return this;
65
+ };
66
+
67
+ /**
68
+ * Remove class `name` when present, or
69
+ * pass a regular expression to remove
70
+ * any which match.
71
+ *
72
+ * @param {String|RegExp} name
73
+ * @return {ClassList}
74
+ * @api public
75
+ */
76
+
77
+ ClassList.prototype.remove = function(name){
78
+ if ('[object RegExp]' == toString.call(name)) {
79
+ return this.removeMatching(name);
80
+ }
81
+
82
+ // classList
83
+ if (this.list) {
84
+ this.list.remove(name);
85
+ return this;
86
+ }
87
+
88
+ // fallback
89
+ var arr = this.array();
90
+ var i = index(arr, name);
91
+ if (~i) arr.splice(i, 1);
92
+ this.el.className = arr.join(' ');
93
+ return this;
94
+ };
95
+
96
+ /**
97
+ * Remove all classes matching `re`.
98
+ *
99
+ * @param {RegExp} re
100
+ * @return {ClassList}
101
+ * @api private
102
+ */
103
+
104
+ ClassList.prototype.removeMatching = function(re){
105
+ var arr = this.array();
106
+ for (var i = 0; i < arr.length; i++) {
107
+ if (re.test(arr[i])) {
108
+ this.remove(arr[i]);
109
+ }
110
+ }
111
+ return this;
112
+ };
113
+
114
+ /**
115
+ * Toggle class `name`.
116
+ *
117
+ * @param {String} name
118
+ * @return {ClassList}
119
+ * @api public
120
+ */
121
+
122
+ ClassList.prototype.toggle = function(name){
123
+ // classList
124
+ if (this.list) {
125
+ this.list.toggle(name);
126
+ return this;
127
+ }
128
+
129
+ // fallback
130
+ if (this.has(name)) {
131
+ this.remove(name);
132
+ } else {
133
+ this.add(name);
134
+ }
135
+ return this;
136
+ };
137
+
138
+ /**
139
+ * Return an array of classes.
140
+ *
141
+ * @return {Array}
142
+ * @api public
143
+ */
144
+
145
+ ClassList.prototype.array = function(){
146
+ var str = this.el.className.replace(/^\s+|\s+$/g, '');
147
+ var arr = str.split(re);
148
+ if ('' === arr[0]) arr.shift();
149
+ return arr;
150
+ };
151
+
152
+ /**
153
+ * Check if class `name` is present.
154
+ *
155
+ * @param {String} name
156
+ * @return {ClassList}
157
+ * @api public
158
+ */
159
+
160
+ ClassList.prototype.has =
161
+ ClassList.prototype.contains = function(name){
162
+ return this.list
163
+ ? this.list.contains(name)
164
+ : !! ~index(this.array(), name);
165
+ };
@@ -0,0 +1,18 @@
1
+ {
2
+ "name": "css",
3
+ "repo": "component/css",
4
+ "description": "DOM element css helper",
5
+ "version": "0.0.2",
6
+ "keywords": [
7
+ "css",
8
+ "style",
9
+ "stylesheet",
10
+ "utility"
11
+ ],
12
+ "dependencies": {},
13
+ "development": {},
14
+ "license": "MIT",
15
+ "scripts": [
16
+ "index.js"
17
+ ]
18
+ }
@@ -0,0 +1,34 @@
1
+
2
+ /**
3
+ * Properties to ignore appending "px".
4
+ */
5
+
6
+ var ignore = {
7
+ columnCount: true,
8
+ fillOpacity: true,
9
+ fontWeight: true,
10
+ lineHeight: true,
11
+ opacity: true,
12
+ orphans: true,
13
+ widows: true,
14
+ zIndex: true,
15
+ zoom: true
16
+ };
17
+
18
+ /**
19
+ * Set `el` css values.
20
+ *
21
+ * @param {Element} el
22
+ * @param {Object} obj
23
+ * @return {Element}
24
+ * @api public
25
+ */
26
+
27
+ module.exports = function(el, obj){
28
+ for (var key in obj) {
29
+ var val = obj[key];
30
+ if ('number' == typeof val && !ignore[key]) val += 'px';
31
+ el.style[key] = val;
32
+ }
33
+ return el;
34
+ };
@@ -2,7 +2,7 @@
2
2
  "name": "delegate",
3
3
  "repo": "component/delegate",
4
4
  "description": "Event delegation component",
5
- "version": "0.2.1",
5
+ "version": "0.1.0",
6
6
  "keywords": [
7
7
  "event",
8
8
  "events",
@@ -10,7 +10,7 @@
10
10
  "delegation"
11
11
  ],
12
12
  "dependencies": {
13
- "discore/closest": "*",
13
+ "component/matches-selector": "*",
14
14
  "component/event": "*"
15
15
  },
16
16
  "scripts": [
@@ -1,8 +1,9 @@
1
+
1
2
  /**
2
3
  * Module dependencies.
3
4
  */
4
5
 
5
- var closest = require('closest')
6
+ var matches = require('matches-selector')
6
7
  , event = require('event');
7
8
 
8
9
  /**
@@ -21,10 +22,9 @@ var closest = require('closest')
21
22
 
22
23
  exports.bind = function(el, selector, type, fn, capture){
23
24
  return event.bind(el, type, function(e){
24
- var target = e.target || e.srcElement;
25
- e.delegateTarget = closest(target, selector, true, el);
26
- if (e.delegateTarget) fn.call(el, e);
25
+ if (matches(e.target, selector)) fn(e);
27
26
  }, capture);
27
+ return callback;
28
28
  };
29
29
 
30
30
  /**
@@ -0,0 +1,23 @@
1
+ {
2
+ "name": "dialog",
3
+ "description": "Dialog component",
4
+ "version": "0.0.7",
5
+ "keywords": [
6
+ "dialog",
7
+ "ui",
8
+ "modal"
9
+ ],
10
+ "dependencies": {
11
+ "component/emitter": "1.0.0",
12
+ "component/jquery": "*",
13
+ "component/overlay": "0.1.1"
14
+ },
15
+ "scripts": [
16
+ "index.js",
17
+ "template.js"
18
+ ],
19
+ "styles": [
20
+ "dialog.css"
21
+ ],
22
+ "repo": "https://raw.github.com/component/dialog"
23
+ }
@@ -0,0 +1,92 @@
1
+ #dialog {
2
+ position: fixed;
3
+ left: 50%;
4
+ top: 150px;
5
+ max-width: 600px;
6
+ min-width: 250px;
7
+ border: 1px solid #eee;
8
+ background: white;
9
+ z-index: 1000;
10
+ }
11
+
12
+ #dialog .content {
13
+ padding: 15px 20px;
14
+ }
15
+
16
+ #dialog h1 {
17
+ margin: 0 0 5px 0;
18
+ font-size: 16px;
19
+ font-weight: normal;
20
+ }
21
+
22
+ #dialog p {
23
+ margin: 0;
24
+ padding: 0;
25
+ font-size: .9em;
26
+ }
27
+
28
+ /* close */
29
+
30
+ #dialog .close {
31
+ position: absolute;
32
+ top: 3px;
33
+ right: 10px;
34
+ text-decoration: none;
35
+ color: #888;
36
+ font-size: 16px;
37
+ font-weight: bold;
38
+ display: none;
39
+ }
40
+
41
+ #dialog .close em {
42
+ display: none;
43
+ }
44
+
45
+ #dialog.closable .close {
46
+ display: block;
47
+ }
48
+
49
+ #dialog .close:hover {
50
+ color: black;
51
+ }
52
+
53
+ #dialog .close:active {
54
+ margin-top: 1px;
55
+ }
56
+
57
+ /* slide */
58
+
59
+ #dialog.slide {
60
+ -webkit-transition: opacity 300ms, top 300ms;
61
+ -moz-transition: opacity 300ms, top 300ms;
62
+ }
63
+
64
+ #dialog.slide.hide {
65
+ opacity: 0;
66
+ top: -500px;
67
+ }
68
+
69
+ /* fade */
70
+
71
+ #dialog.fade {
72
+ -webkit-transition: opacity 300ms;
73
+ -moz-transition: opacity 300ms;
74
+ }
75
+
76
+ #dialog.fade.hide {
77
+ opacity: 0;
78
+ }
79
+
80
+ /* scale */
81
+
82
+ #dialog.scale {
83
+ -webkit-transition: -webkit-transform 300ms;
84
+ -moz-transition: -moz-transform 300ms;
85
+ -webkit-transform: scale(1);
86
+ -moz-transform: scale(1);
87
+ }
88
+
89
+ #dialog.scale.hide {
90
+ -webkit-transform: scale(0);
91
+ -moz-transform: scale(0);
92
+ }
@@ -0,0 +1,292 @@
1
+
2
+ /**
3
+ * Module dependencies.
4
+ */
5
+
6
+ var Emitter = require('emitter')
7
+ , overlay = require('overlay')
8
+ , o = require('jquery');
9
+
10
+ /**
11
+ * Active dialog.
12
+ */
13
+
14
+ var active;
15
+
16
+ /**
17
+ * Expose `dialog()`.
18
+ */
19
+
20
+ exports = module.exports = dialog;
21
+
22
+ /**
23
+ * Expose `Dialog`.
24
+ */
25
+
26
+ exports.Dialog = Dialog;
27
+
28
+ /**
29
+ * Return a new `Dialog` with the given
30
+ * (optional) `title` and `msg`.
31
+ *
32
+ * @param {String} title or msg
33
+ * @param {String} msg
34
+ * @return {Dialog}
35
+ * @api public
36
+ */
37
+
38
+ function dialog(title, msg){
39
+ switch (arguments.length) {
40
+ case 2:
41
+ return new Dialog({ title: title, message: msg });
42
+ case 1:
43
+ return new Dialog({ message: title });
44
+ }
45
+ };
46
+
47
+ /**
48
+ * Initialize a new `Dialog`.
49
+ *
50
+ * Options:
51
+ *
52
+ * - `title` dialog title
53
+ * - `message` a message to display
54
+ *
55
+ * Emits:
56
+ *
57
+ * - `show` when visible
58
+ * - `hide` when hidden
59
+ *
60
+ * @param {Object} options
61
+ * @api public
62
+ */
63
+
64
+ function Dialog(options) {
65
+ Emitter.call(this);
66
+ options = options || {};
67
+ this.template = require('./template');
68
+ this.el = o(this.template);
69
+ this.render(options);
70
+ if (active && !active.hiding) active.hide();
71
+ if (exports.effect) this.effect(exports.effect);
72
+ this.on('escape', this.hide.bind(this));
73
+ active = this;
74
+ };
75
+
76
+ /**
77
+ * Inherit from `Emitter.prototype`.
78
+ */
79
+
80
+ Dialog.prototype = new Emitter;
81
+
82
+ /**
83
+ * Render with the given `options`.
84
+ *
85
+ * @param {Object} options
86
+ * @api public
87
+ */
88
+
89
+ Dialog.prototype.render = function(options){
90
+ var el = this.el
91
+ , title = options.title
92
+ , msg = options.message
93
+ , self = this;
94
+
95
+ el.find('.close').click(function(){
96
+ self.emit('close');
97
+ self.hide();
98
+ return false;
99
+ });
100
+
101
+ el.find('.title').text(title);
102
+ if (!title) el.find('.title').remove();
103
+
104
+ // message
105
+ if ('string' == typeof msg) {
106
+ el.find('p').text(msg);
107
+ } else if (msg) {
108
+ el.find('p').replaceWith(msg.el || msg);
109
+ }
110
+
111
+ setTimeout(function(){
112
+ el.removeClass('hide');
113
+ }, 0);
114
+ };
115
+
116
+ /**
117
+ * Enable the dialog close link.
118
+ *
119
+ * @return {Dialog} for chaining
120
+ * @api public
121
+ */
122
+
123
+ Dialog.prototype.closable = function(){
124
+ this.el.addClass('closable');
125
+ return this;
126
+ };
127
+
128
+ /**
129
+ * Add class `name`.
130
+ *
131
+ * @param {String} name
132
+ * @return {Dialog}
133
+ * @api public
134
+ */
135
+
136
+ Dialog.prototype.addClass = function(name){
137
+ this.el.addClass(name);
138
+ return this;
139
+ };
140
+
141
+ /**
142
+ * Set the effect to `type`.
143
+ *
144
+ * @param {String} type
145
+ * @return {Dialog} for chaining
146
+ * @api public
147
+ */
148
+
149
+ Dialog.prototype.effect = function(type){
150
+ this._effect = type;
151
+ this.addClass(type);
152
+ return this;
153
+ };
154
+
155
+ /**
156
+ * Make it modal!
157
+ *
158
+ * @return {Dialog} for chaining
159
+ * @api public
160
+ */
161
+
162
+ Dialog.prototype.modal = function(){
163
+ this._overlay = overlay();
164
+ return this;
165
+ };
166
+
167
+ /**
168
+ * Add an overlay.
169
+ *
170
+ * @return {Dialog} for chaining
171
+ * @api public
172
+ */
173
+
174
+ Dialog.prototype.overlay = function(){
175
+ var self = this;
176
+ var o = overlay({ closable: true });
177
+ o.on('hide', function(){
178
+ self._overlay = null;
179
+ self.hide();
180
+ });
181
+ this._overlay = o;
182
+ return this;
183
+ };
184
+
185
+ /**
186
+ * Close the dialog when the escape key is pressed.
187
+ *
188
+ * @api private
189
+ */
190
+
191
+ Dialog.prototype.escapable = function(){
192
+ var self = this;
193
+ o(document).bind('keydown.dialog', function(e){
194
+ if (27 != e.which) return;
195
+ self.emit('escape');
196
+ });
197
+ };
198
+
199
+ /**
200
+ * Show the dialog.
201
+ *
202
+ * Emits "show" event.
203
+ *
204
+ * @return {Dialog} for chaining
205
+ * @api public
206
+ */
207
+
208
+ Dialog.prototype.show = function(){
209
+ var overlay = this._overlay;
210
+
211
+ // overlay
212
+ if (overlay) {
213
+ overlay.show();
214
+ this.el.addClass('modal');
215
+ }
216
+
217
+ // escape
218
+ if (!overlay || overlay.closable) this.escapable();
219
+
220
+ // position
221
+ this.el.appendTo('body');
222
+ this.el.css({ marginLeft: -(this.el.width() / 2) + 'px' });
223
+
224
+ this.emit('show');
225
+ return this;
226
+ };
227
+
228
+ /**
229
+ * Hide the overlay.
230
+ *
231
+ * @api private
232
+ */
233
+
234
+ Dialog.prototype.hideOverlay = function(){
235
+ if (!this._overlay) return;
236
+ this._overlay.remove();
237
+ this._overlay = null;
238
+ };
239
+
240
+ /**
241
+ * Hide the dialog with optional delay of `ms`,
242
+ * otherwise the dialog is removed immediately.
243
+ *
244
+ * Emits "hide" event.
245
+ *
246
+ * @return {Number} ms
247
+ * @return {Dialog} for chaining
248
+ * @api public
249
+ */
250
+
251
+ Dialog.prototype.hide = function(ms){
252
+ var self = this;
253
+ o(document).unbind('keydown.dialog');
254
+
255
+ // prevent thrashing
256
+ this.hiding = true;
257
+
258
+ // duration
259
+ if (ms) {
260
+ setTimeout(function(){
261
+ self.hide();
262
+ }, ms);
263
+ return this;
264
+ }
265
+
266
+ // hide / remove
267
+ this.el.addClass('hide');
268
+ if (this._effect) {
269
+ setTimeout(function(){
270
+ self.remove();
271
+ }, 500);
272
+ } else {
273
+ self.remove();
274
+ }
275
+
276
+ // overlay
277
+ this.hideOverlay();
278
+
279
+ return this;
280
+ };
281
+ /**
282
+ * Hide the dialog without potential animation.
283
+ *
284
+ * @return {Dialog} for chaining
285
+ * @api public
286
+ */
287
+
288
+ Dialog.prototype.remove = function(){
289
+ this.emit('hide');
290
+ this.el.remove();
291
+ return this;
292
+ };
@@ -0,0 +1 @@
1
+ module.exports = '<div id="dialog" class="hide">\n <div class="content">\n <span class="title">Title</span>\n <a href="#" class="close">× <em>close</em></a>\n <div class="body">\n <p>Message</p>\n </div>\n </div>\n</div>';