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,71 @@
1
+
2
+ /**
3
+ * Expose `parse`.
4
+ */
5
+
6
+ module.exports = parse;
7
+
8
+ /**
9
+ * Wrap map from jquery.
10
+ */
11
+
12
+ var map = {
13
+ option: [1, '<select multiple="multiple">', '</select>'],
14
+ optgroup: [1, '<select multiple="multiple">', '</select>'],
15
+ legend: [1, '<fieldset>', '</fieldset>'],
16
+ thead: [1, '<table>', '</table>'],
17
+ tbody: [1, '<table>', '</table>'],
18
+ tfoot: [1, '<table>', '</table>'],
19
+ colgroup: [1, '<table>', '</table>'],
20
+ caption: [1, '<table>', '</table>'],
21
+ tr: [2, '<table><tbody>', '</tbody></table>'],
22
+ td: [3, '<table><tbody><tr>', '</tr></tbody></table>'],
23
+ th: [3, '<table><tbody><tr>', '</tr></tbody></table>'],
24
+ col: [2, '<table><tbody></tbody><colgroup>', '</colgroup></table>'],
25
+ _default: [0, '', '']
26
+ };
27
+
28
+ /**
29
+ * Parse `html` and return the children.
30
+ *
31
+ * @param {String} html
32
+ * @return {Array}
33
+ * @api private
34
+ */
35
+
36
+ function parse(html) {
37
+ if ('string' != typeof html) throw new TypeError('String expected');
38
+
39
+ // tag name
40
+ var m = /<([\w:]+)/.exec(html);
41
+ if (!m) throw new Error('No elements were generated.');
42
+ var tag = m[1];
43
+
44
+ // body support
45
+ if (tag == 'body') {
46
+ var el = document.createElement('html');
47
+ el.innerHTML = html;
48
+ return el.removeChild(el.lastChild);
49
+ }
50
+
51
+ // wrap map
52
+ var wrap = map[tag] || map._default;
53
+ var depth = wrap[0];
54
+ var prefix = wrap[1];
55
+ var suffix = wrap[2];
56
+ var el = document.createElement('div');
57
+ el.innerHTML = prefix + html + suffix;
58
+ while (depth--) el = el.lastChild;
59
+
60
+ var els = el.children;
61
+ if (1 == els.length) {
62
+ return el.removeChild(els[0]);
63
+ }
64
+
65
+ var fragment = document.createDocumentFragment();
66
+ while (els.length) {
67
+ fragment.appendChild(el.removeChild(els[0]));
68
+ }
69
+
70
+ return fragment;
71
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "name": "emitter",
3
+ "description": "Event emitter",
4
+ "keywords": [
5
+ "emitter",
6
+ "events"
7
+ ],
8
+ "version": "1.0.0",
9
+ "scripts": [
10
+ "index.js"
11
+ ],
12
+ "repo": "https://raw.github.com/component/emitter"
13
+ }
@@ -0,0 +1,156 @@
1
+
2
+ /**
3
+ * Expose `Emitter`.
4
+ */
5
+
6
+ module.exports = Emitter;
7
+
8
+ /**
9
+ * Initialize a new `Emitter`.
10
+ *
11
+ * @api public
12
+ */
13
+
14
+ function Emitter(obj) {
15
+ if (obj) return mixin(obj);
16
+ };
17
+
18
+ /**
19
+ * Mixin the emitter properties.
20
+ *
21
+ * @param {Object} obj
22
+ * @return {Object}
23
+ * @api private
24
+ */
25
+
26
+ function mixin(obj) {
27
+ for (var key in Emitter.prototype) {
28
+ obj[key] = Emitter.prototype[key];
29
+ }
30
+ return obj;
31
+ }
32
+
33
+ /**
34
+ * Listen on the given `event` with `fn`.
35
+ *
36
+ * @param {String} event
37
+ * @param {Function} fn
38
+ * @return {Emitter}
39
+ * @api public
40
+ */
41
+
42
+ Emitter.prototype.on = function(event, fn){
43
+ this._callbacks = this._callbacks || {};
44
+ (this._callbacks[event] = this._callbacks[event] || [])
45
+ .push(fn);
46
+ return this;
47
+ };
48
+
49
+ /**
50
+ * Adds an `event` listener that will be invoked a single
51
+ * time then automatically removed.
52
+ *
53
+ * @param {String} event
54
+ * @param {Function} fn
55
+ * @return {Emitter}
56
+ * @api public
57
+ */
58
+
59
+ Emitter.prototype.once = function(event, fn){
60
+ var self = this;
61
+ this._callbacks = this._callbacks || {};
62
+
63
+ function on() {
64
+ self.off(event, on);
65
+ fn.apply(this, arguments);
66
+ }
67
+
68
+ fn._off = on;
69
+ this.on(event, on);
70
+ return this;
71
+ };
72
+
73
+ /**
74
+ * Remove the given callback for `event` or all
75
+ * registered callbacks.
76
+ *
77
+ * @param {String} event
78
+ * @param {Function} fn
79
+ * @return {Emitter}
80
+ * @api public
81
+ */
82
+
83
+ Emitter.prototype.off =
84
+ Emitter.prototype.removeListener =
85
+ Emitter.prototype.removeAllListeners = function(event, fn){
86
+ this._callbacks = this._callbacks || {};
87
+
88
+ // all
89
+ if (0 == arguments.length) {
90
+ this._callbacks = {};
91
+ return this;
92
+ }
93
+
94
+ // specific event
95
+ var callbacks = this._callbacks[event];
96
+ if (!callbacks) return this;
97
+
98
+ // remove all handlers
99
+ if (1 == arguments.length) {
100
+ delete this._callbacks[event];
101
+ return this;
102
+ }
103
+
104
+ // remove specific handler
105
+ var i = callbacks.indexOf(fn._off || fn);
106
+ if (~i) callbacks.splice(i, 1);
107
+ return this;
108
+ };
109
+
110
+ /**
111
+ * Emit `event` with the given args.
112
+ *
113
+ * @param {String} event
114
+ * @param {Mixed} ...
115
+ * @return {Emitter}
116
+ */
117
+
118
+ Emitter.prototype.emit = function(event){
119
+ this._callbacks = this._callbacks || {};
120
+ var args = [].slice.call(arguments, 1)
121
+ , callbacks = this._callbacks[event];
122
+
123
+ if (callbacks) {
124
+ callbacks = callbacks.slice(0);
125
+ for (var i = 0, len = callbacks.length; i < len; ++i) {
126
+ callbacks[i].apply(this, args);
127
+ }
128
+ }
129
+
130
+ return this;
131
+ };
132
+
133
+ /**
134
+ * Return array of callbacks for `event`.
135
+ *
136
+ * @param {String} event
137
+ * @return {Array}
138
+ * @api public
139
+ */
140
+
141
+ Emitter.prototype.listeners = function(event){
142
+ this._callbacks = this._callbacks || {};
143
+ return this._callbacks[event] || [];
144
+ };
145
+
146
+ /**
147
+ * Check if this emitter has `event` handlers.
148
+ *
149
+ * @param {String} event
150
+ * @return {Boolean}
151
+ * @api public
152
+ */
153
+
154
+ Emitter.prototype.hasListeners = function(event){
155
+ return !! this.listeners(event).length;
156
+ };
@@ -1,3 +1,6 @@
1
+ var bind = (window.addEventListener !== undefined) ? 'addEventListener' : 'attachEvent',
2
+ unbind = (window.removeEventListener !== undefined) ? 'removeEventListener' : 'detachEvent',
3
+ prefix = (bind !== 'addEventListener') ? 'on' : '';
1
4
 
2
5
  /**
3
6
  * Bind `el` event `type` to `fn`.
@@ -11,11 +14,8 @@
11
14
  */
12
15
 
13
16
  exports.bind = function(el, type, fn, capture){
14
- if (el.addEventListener) {
15
- el.addEventListener(type, fn, capture || false);
16
- } else {
17
- el.attachEvent('on' + type, fn);
18
- }
17
+ el[bind](prefix + type, fn, capture || false);
18
+
19
19
  return fn;
20
20
  };
21
21
 
@@ -31,10 +31,7 @@ exports.bind = function(el, type, fn, capture){
31
31
  */
32
32
 
33
33
  exports.unbind = function(el, type, fn, capture){
34
- if (el.removeEventListener) {
35
- el.removeEventListener(type, fn, capture || false);
36
- } else {
37
- el.detachEvent('on' + type, fn);
38
- }
34
+ el[unbind](prefix + type, fn, capture || false);
35
+
39
36
  return fn;
40
- };
37
+ };
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "indexof",
3
+ "description": "Microsoft sucks",
4
+ "version": "0.0.1",
5
+ "keywords": [
6
+ "index",
7
+ "array",
8
+ "indexOf"
9
+ ],
10
+ "dependencies": {},
11
+ "scripts": [
12
+ "index.js"
13
+ ],
14
+ "repo": "https://raw.github.com/component/indexof"
15
+ }
@@ -0,0 +1,10 @@
1
+
2
+ var indexOf = [].indexOf;
3
+
4
+ module.exports = function(arr, obj){
5
+ if (indexOf) return arr.indexOf(obj);
6
+ for (var i = 0; i < arr.length; ++i) {
7
+ if (arr[i] === obj) return i;
8
+ }
9
+ return -1;
10
+ };
@@ -0,0 +1,22 @@
1
+ {
2
+ "name": "overlay",
3
+ "description": "Overlay component",
4
+ "version": "0.1.1",
5
+ "keywords": [
6
+ "overlay",
7
+ "ui"
8
+ ],
9
+ "dependencies": {
10
+ "component/emitter": "1.0.0",
11
+ "component/dom": "0.7.1"
12
+ },
13
+ "scripts": [
14
+ "index.js",
15
+ "template.js"
16
+ ],
17
+ "styles": [
18
+ "overlay.css"
19
+ ],
20
+ "license": "MIT",
21
+ "repo": "https://raw.github.com/component/overlay"
22
+ }
@@ -0,0 +1,111 @@
1
+
2
+ /**
3
+ * Module dependencies.
4
+ */
5
+
6
+ var Emitter = require('emitter');
7
+ var tmpl = require('./template');
8
+ var o = require('dom');
9
+
10
+ /**
11
+ * Expose `overlay()`.
12
+ */
13
+
14
+ exports = module.exports = overlay;
15
+
16
+ /**
17
+ * Expose `Overlay`.
18
+ */
19
+
20
+ exports.Overlay = Overlay;
21
+
22
+ /**
23
+ * Return a new `Overlay` with the given `options`.
24
+ *
25
+ * @param {Object|Element} options
26
+ * @return {Overlay}
27
+ * @api public
28
+ */
29
+
30
+ function overlay(options){
31
+ options = options || {};
32
+
33
+ // element
34
+ if (options.nodeName) {
35
+ options = { target: options };
36
+ }
37
+
38
+ return new Overlay(options);
39
+ };
40
+
41
+ /**
42
+ * Initialize a new `Overlay`.
43
+ *
44
+ * @param {Object} options
45
+ * @api public
46
+ */
47
+
48
+ function Overlay(options) {
49
+ Emitter.call(this);
50
+ options = options || {};
51
+ this.target = options.target || 'body';
52
+ this.closable = options.closable;
53
+ this.el = o(tmpl);
54
+ this.el.appendTo(this.target);
55
+ if (this.closable) this.el.on('click', this.hide.bind(this));
56
+ }
57
+
58
+ /**
59
+ * Mixin emitter.
60
+ */
61
+
62
+ Emitter(Overlay.prototype);
63
+
64
+ /**
65
+ * Show the overlay.
66
+ *
67
+ * Emits "show" event.
68
+ *
69
+ * @return {Overlay}
70
+ * @api public
71
+ */
72
+
73
+ Overlay.prototype.show = function(){
74
+ this.emit('show');
75
+ this.el.removeClass('hide');
76
+ return this;
77
+ };
78
+
79
+ /**
80
+ * Hide the overlay.
81
+ *
82
+ * Emits "hide" event.
83
+ *
84
+ * @return {Overlay}
85
+ * @api public
86
+ */
87
+
88
+ Overlay.prototype.hide = function(){
89
+ this.emit('hide');
90
+ return this.remove();
91
+ };
92
+
93
+ /**
94
+ * Hide the overlay without emitting "hide".
95
+ *
96
+ * Emits "close" event.
97
+ *
98
+ * @return {Overlay}
99
+ * @api public
100
+ */
101
+
102
+ Overlay.prototype.remove = function(){
103
+ var self = this;
104
+ this.emit('close');
105
+ this.el.addClass('hide');
106
+ setTimeout(function(){
107
+ self.el.remove();
108
+ }, 2000);
109
+ return this;
110
+ };
111
+
@@ -0,0 +1,19 @@
1
+
2
+ .overlay {
3
+ position: absolute;
4
+ top: 0;
5
+ left: 0;
6
+ opacity: 1;
7
+ width: 100%;
8
+ height: 100%;
9
+ background: rgba(0,0,0,.75);
10
+ -webkit-transition: opacity 300ms;
11
+ -moz-transition: opacity 300ms;
12
+ transition: opacity 300ms;
13
+ z-index: 500;
14
+ }
15
+
16
+ .overlay.hide {
17
+ pointer-events: none;
18
+ opacity: 0;
19
+ }
@@ -0,0 +1 @@
1
+ module.exports = '<div class="overlay hide"></div>\n';
@@ -12,7 +12,8 @@
12
12
  ],
13
13
  "dependencies": {},
14
14
  "development": {
15
- "component/assert": "*"
15
+ "component/assert": "*",
16
+ "component/zest": "*"
16
17
  },
17
18
  "license": "MIT",
18
19
  "scripts": [
@@ -0,0 +1,20 @@
1
+ {
2
+ "name": "sort",
3
+ "repo": "component/sort",
4
+ "description": "Sort DOM elements",
5
+ "version": "0.0.3",
6
+ "keywords": [
7
+ "sort",
8
+ "dom",
9
+ "sorting",
10
+ "element",
11
+ "elements",
12
+ "utility"
13
+ ],
14
+ "dependencies": {},
15
+ "development": {},
16
+ "license": "MIT",
17
+ "scripts": [
18
+ "index.js"
19
+ ]
20
+ }
@@ -0,0 +1,43 @@
1
+
2
+ /**
3
+ * Expose `sort`.
4
+ */
5
+
6
+ exports = module.exports = sort;
7
+
8
+ /**
9
+ * Sort `el`'s children with the given `fn(a, b)`.
10
+ *
11
+ * @param {Element} el
12
+ * @param {Function} fn
13
+ * @api public
14
+ */
15
+
16
+ function sort(el, fn) {
17
+ var arr = [].slice.call(el.children).sort(fn);
18
+ var frag = document.createDocumentFragment();
19
+ for (var i = 0; i < arr.length; i++) {
20
+ frag.appendChild(arr[i]);
21
+ }
22
+ el.appendChild(frag);
23
+ };
24
+
25
+ /**
26
+ * Sort descending.
27
+ *
28
+ * @param {Element} el
29
+ * @param {Function} fn
30
+ * @api public
31
+ */
32
+
33
+ exports.desc = function(el, fn){
34
+ sort(el, function(a, b){
35
+ return ~fn(a, b) + 1;
36
+ });
37
+ };
38
+
39
+ /**
40
+ * Sort ascending.
41
+ */
42
+
43
+ exports.asc = sort;
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "value",
3
+ "repo": "component/value",
4
+ "description": "Set form input values",
5
+ "version": "1.1.0",
6
+ "keywords": [
7
+ "form",
8
+ "input",
9
+ "field",
10
+ "val",
11
+ "value"
12
+ ],
13
+ "dependencies": {
14
+ "component/type": "*"
15
+ },
16
+ "development": {
17
+ "component/dom": "*",
18
+ "component/assert": "*"
19
+ },
20
+ "license": "MIT",
21
+ "main": "index.js",
22
+ "scripts": [
23
+ "index.js"
24
+ ]
25
+ }
@@ -0,0 +1,95 @@
1
+
2
+ /**
3
+ * Module dependencies.
4
+ */
5
+
6
+ var typeOf = require('type');
7
+
8
+ /**
9
+ * Set or get `el`'s' value.
10
+ *
11
+ * @param {Element} el
12
+ * @param {Mixed} val
13
+ * @return {Mixed}
14
+ * @api public
15
+ */
16
+
17
+ module.exports = function(el, val){
18
+ if (2 == arguments.length) return set(el, val);
19
+ return get(el);
20
+ };
21
+
22
+ /**
23
+ * Get `el`'s value.
24
+ */
25
+
26
+ function get(el) {
27
+ switch (type(el)) {
28
+ case 'checkbox':
29
+ case 'radio':
30
+ if (el.checked) {
31
+ var attr = el.getAttribute('value');
32
+ return null == attr ? true : attr;
33
+ } else {
34
+ return false;
35
+ }
36
+ case 'radiogroup':
37
+ for (var i = 0, radio; radio = el[i]; i++) {
38
+ if (radio.checked) return radio.value;
39
+ }
40
+ break;
41
+ case 'select':
42
+ for (var i = 0, option; option = el.options[i]; i++) {
43
+ if (option.selected) return option.value;
44
+ }
45
+ break;
46
+ default:
47
+ return el.value;
48
+ }
49
+ }
50
+
51
+ /**
52
+ * Set `el`'s value.
53
+ */
54
+
55
+ function set(el, val) {
56
+ switch (type(el)) {
57
+ case 'checkbox':
58
+ case 'radio':
59
+ if (val) {
60
+ el.checked = true;
61
+ } else {
62
+ el.checked = false;
63
+ }
64
+ break;
65
+ case 'radiogroup':
66
+ for (var i = 0, radio; radio = el[i]; i++) {
67
+ radio.checked = radio.value === val;
68
+ }
69
+ break;
70
+ case 'select':
71
+ for (var i = 0, option; option = el.options[i]; i++) {
72
+ option.selected = option.value === val;
73
+ }
74
+ break;
75
+ default:
76
+ el.value = val;
77
+ }
78
+ }
79
+
80
+ /**
81
+ * Element type.
82
+ */
83
+
84
+ function type(el) {
85
+ var group = 'array' == typeOf(el) || 'object' == typeOf(el);
86
+ if (group) el = el[0];
87
+ var name = el.nodeName.toLowerCase();
88
+ var type = el.getAttribute('type');
89
+
90
+ if (group && type && 'radio' == type.toLowerCase()) return 'radiogroup';
91
+ if ('input' == name && type && 'checkbox' == type.toLowerCase()) return 'checkbox';
92
+ if ('input' == name && type && 'radio' == type.toLowerCase()) return 'radio';
93
+ if ('select' == name) return 'select';
94
+ return name;
95
+ }
@@ -2,7 +2,7 @@
2
2
  "name": "indemma",
3
3
  "repo": "indefinido/indemma",
4
4
  "description": "Indemma (mind picture = memory), client side ES5 observable REST model",
5
- "version": "0.1.4",
5
+ "version": "0.1.2",
6
6
  "keywords": [],
7
7
  "dependencies": {
8
8
  "pluma/assimilate": "*",
@@ -18,7 +18,6 @@
18
18
  "index.js",
19
19
  "vendor/stampit.js",
20
20
  "vendor/sinon.js",
21
- "vendor/owl/pluralize.js",
22
21
  "lib/record.js",
23
22
  "lib/record/associable.js",
24
23
  "lib/record/resource.js",
@@ -36,4 +35,4 @@
36
35
  "lib/record/validatable.js",
37
36
  "lib/extensions/rivets.js"
38
37
  ]
39
- }
38
+ }
@@ -2,8 +2,6 @@ var model, resource, resourceable, stampit;
2
2
 
3
3
  stampit = require('../../vendor/stampit');
4
4
 
5
- require('../../vendor/owl/pluralize');
6
-
7
5
  resource = stampit({
8
6
  toString: function() {
9
7
  return this.name;
@@ -26,12 +24,12 @@ resource = stampit({
26
24
  });
27
25
 
28
26
  resourceable = {
29
- pluralize: function(word, count, plural) {
27
+ pluralize: function(word) {
30
28
  if (!(word && word.length)) {
31
29
  throw new TypeError("Invalid string passed to pluralize '" + word + "'");
32
30
  }
33
31
  if (word.indexOf('s') !== word.length - 1) {
34
- return owl.pluralize(word, count, plural);
32
+ return word + 's';
35
33
  } else {
36
34
  return word;
37
35
  }