iugu-ux 0.8.0 → 0.8.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (213) hide show
  1. data/README.md +2 -0
  2. data/lib/iugu-ux/version.rb +1 -1
  3. data/sandbox/app/assets/javascripts/web-app/presenters/main-view.jst.eco +31 -12
  4. data/sandbox/app/assets/javascripts/web-app/usecode/root-view.coffee +0 -2
  5. data/sandbox/app/controllers/ui_library_controller.rb +0 -3
  6. data/sandbox/app/views/layouts/ui.html.haml +0 -1
  7. data/sandbox/app/views/ui_library/boiler.html.haml +2 -4
  8. data/sandbox/config/routes.rb +0 -1
  9. data/sandbox/log/development.log +20329 -0
  10. data/sandbox/tmp/cache/assets/BE9/020/sprockets%2Fe93a611416f4149c006c589432090903 +0 -0
  11. data/sandbox/tmp/cache/assets/C24/5F0/sprockets%2Fcb3028925f1090968337df085236f532 +0 -0
  12. data/sandbox/tmp/cache/assets/C3E/260/sprockets%2F4262142496540e6691d5bc0260a21eb5 +0 -0
  13. data/sandbox/tmp/cache/assets/C45/3F0/sprockets%2F0a178290fa722133d544643d13708fc6 +0 -0
  14. data/sandbox/tmp/cache/assets/C48/D00/sprockets%2F4a51b39094a347e3e325005c7847551c +0 -0
  15. data/sandbox/tmp/cache/assets/C49/3B0/sprockets%2F405c7112191eed23e8b860254281e763 +0 -0
  16. data/sandbox/tmp/cache/assets/C4F/3A0/sprockets%2F41918e8d7b402652a5649e4b7134d620 +0 -0
  17. data/sandbox/tmp/cache/assets/C53/BD0/sprockets%2F00196765c6f95bc1b670b0941172f829 +0 -0
  18. data/sandbox/tmp/cache/assets/C55/1B0/sprockets%2F413864885359794c0b415c5c012fd8b4 +0 -0
  19. data/sandbox/tmp/cache/assets/C5E/340/sprockets%2Fcaec1317015c08109f31f190314243b2 +0 -0
  20. data/sandbox/tmp/cache/assets/C60/360/sprockets%2Fb7a62e5a9315f80120493f865587d982 +0 -0
  21. data/sandbox/tmp/cache/assets/C62/3A0/sprockets%2Fad550974fd1050311169d4c5004a2e20 +0 -0
  22. data/sandbox/tmp/cache/assets/C6B/870/sprockets%2Fa90a46599772a03198988b6d444a678f +0 -0
  23. data/sandbox/tmp/cache/assets/C75/E10/sprockets%2Fb04a483530140d3348c160f58dc56d49 +0 -0
  24. data/sandbox/tmp/cache/assets/C7A/440/sprockets%2F3828a635611b4f542d38731a1e308f4e +0 -0
  25. data/sandbox/tmp/cache/assets/C7A/7B0/sprockets%2Fb5fc25d37349717a231120228a0e8d99 +0 -0
  26. data/sandbox/tmp/cache/assets/C7A/F30/sprockets%2F70249181577b261a3ea8851b530f1e7c +0 -0
  27. data/sandbox/tmp/cache/assets/C7F/4D0/sprockets%2F8e4b454014428723ac77c713ebf49613 +0 -0
  28. data/sandbox/tmp/cache/assets/C91/150/sprockets%2F084d158b90125d3acd60b07300f3324a +0 -0
  29. data/sandbox/tmp/cache/assets/CA2/760/sprockets%2Fb298c140b2372622351f1ef6b0815f3e +0 -0
  30. data/sandbox/tmp/cache/assets/CA3/610/sprockets%2F06183b0fa253d1afbf76a29801554914 +0 -0
  31. data/sandbox/tmp/cache/assets/CAB/2A0/sprockets%2F35a28a06551a3891e0582ee18e880d0d +0 -0
  32. data/sandbox/tmp/cache/assets/CAC/060/sprockets%2Fe72c3ba435988731c168b6441f1bc622 +0 -0
  33. data/sandbox/tmp/cache/assets/CB4/F00/sprockets%2Fb95d8a0b377ead5c5c59405670734228 +0 -0
  34. data/sandbox/tmp/cache/assets/CB9/9D0/sprockets%2F893272529e62fea11982e442c0df4c49 +0 -0
  35. data/sandbox/tmp/cache/assets/CBA/6A0/sprockets%2F964d3e9f13da420a6098981857d20c8b +0 -0
  36. data/sandbox/tmp/cache/assets/CBB/3F0/sprockets%2Feed6910664fe0a469ee6355e91212395 +0 -0
  37. data/sandbox/tmp/cache/assets/CBB/AA0/sprockets%2F34b613f862555697eb944a2ff6ac3526 +0 -0
  38. data/sandbox/tmp/cache/assets/CBB/E20/sprockets%2F00b2c2691b3a8da5553b13d123137c0c +0 -0
  39. data/sandbox/tmp/cache/assets/CBD/650/sprockets%2F1774801e748257cd49a236d458ce44fd +0 -0
  40. data/sandbox/tmp/cache/assets/CBF/870/sprockets%2F9de5a39e373d70d1455989c3a1c16676 +0 -0
  41. data/sandbox/tmp/cache/assets/CC7/EB0/sprockets%2F079d3b368c9e843b78c90079f26d628b +0 -0
  42. data/sandbox/tmp/cache/assets/CC8/510/sprockets%2F868a1670f8822e6b7847dd22e747a66f +0 -0
  43. data/sandbox/tmp/cache/assets/CCA/850/sprockets%2F1d05d32f046ec7313b0d3619a232d73f +0 -0
  44. data/sandbox/tmp/cache/assets/CCB/400/sprockets%2F1530d5680131ba31d7175dcb56e235ce +0 -0
  45. data/sandbox/tmp/cache/assets/CD0/590/sprockets%2F34362b49bb86e23a636817b55bab30c0 +0 -0
  46. data/sandbox/tmp/cache/assets/CD1/920/sprockets%2F570c0b1741c64e149720c9a70ef31a5e +0 -0
  47. data/sandbox/tmp/cache/assets/CD3/7E0/sprockets%2Fe1da4188365b15d4e56321fe11aa3476 +0 -0
  48. data/sandbox/tmp/cache/assets/CD7/0E0/sprockets%2Fb7291915fd78d50026c443b2c63fa6b0 +0 -0
  49. data/sandbox/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953 +0 -0
  50. data/sandbox/tmp/cache/assets/CDB/E30/sprockets%2F918458a88fec2cd01991c003b2318ab7 +0 -0
  51. data/sandbox/tmp/cache/assets/CDE/5C0/sprockets%2F794c70924436be60f2ec52426aa8cd61 +0 -0
  52. data/sandbox/tmp/cache/assets/CDF/2A0/sprockets%2Faceafc712241955028dc5b137364e869 +0 -0
  53. data/sandbox/tmp/cache/assets/CDF/EC0/sprockets%2Fa90760fc2f137785c7b810dcb9a40196 +0 -0
  54. data/sandbox/tmp/cache/assets/CE3/1C0/sprockets%2Ff617335dbdd40d03704f3d1249939f9c +0 -0
  55. data/sandbox/tmp/cache/assets/CE6/910/sprockets%2F4f1ef52dd511139b0d3f12f3879f6648 +0 -0
  56. data/sandbox/tmp/cache/assets/CE8/0F0/sprockets%2F12795deec07b2046d9467dd3f2e25809 +0 -0
  57. data/sandbox/tmp/cache/assets/CEA/5C0/sprockets%2Ff07ef674251629759e234ea642a3cc8e +0 -0
  58. data/sandbox/tmp/cache/assets/CED/340/sprockets%2F2f33f5d63e037a9f9b859f6c25139e30 +0 -0
  59. data/sandbox/tmp/cache/assets/CF1/CD0/sprockets%2Ff604c432d2de9f942882ecd8462578f0 +0 -0
  60. data/sandbox/tmp/cache/assets/CF5/E20/sprockets%2Ff31c0130a87c513e0e5ecea55135117c +0 -0
  61. data/sandbox/tmp/cache/assets/CFA/EE0/sprockets%2Fd95b64bc8b83485c8f3960c625885dc6 +0 -0
  62. data/sandbox/tmp/cache/assets/CFD/6C0/sprockets%2F1203d4bbdfe1aac02f896e2447006951 +0 -0
  63. data/sandbox/tmp/cache/assets/D05/8E0/sprockets%2F58046c1329c03b4cc2e5fa962f431ca8 +0 -0
  64. data/sandbox/tmp/cache/assets/D05/F60/sprockets%2Fb2725d240fe20257dc6a9e0b6a22399d +0 -0
  65. data/sandbox/tmp/cache/assets/D08/ED0/sprockets%2Fcb1aee736d3b287a872298b7741b012b +0 -0
  66. data/sandbox/tmp/cache/assets/D09/DB0/sprockets%2F21a7ee2fd49111e1378c6f7118fd230e +0 -0
  67. data/sandbox/tmp/cache/assets/D10/6D0/sprockets%2F966130263a0cbcd9c69c2f06789ad3d3 +0 -0
  68. data/sandbox/tmp/cache/assets/D10/8C0/sprockets%2F5d1e20d279d209b6fc1606d7de41f728 +0 -0
  69. data/sandbox/tmp/cache/assets/D10/E50/sprockets%2F86dbab9960f9195090301e2c42e1eeb8 +0 -0
  70. data/sandbox/tmp/cache/assets/D18/2F0/sprockets%2Fcc2e1640b5601b34eb61a4c333a2e31b +0 -0
  71. data/sandbox/tmp/cache/assets/D1A/B70/sprockets%2F47ae92dd9d034b32098b19bf8f2475a9 +0 -0
  72. data/sandbox/tmp/cache/assets/D1B/8C0/sprockets%2Fa2e16c5e5e97e98b526e7a6516f4622a +0 -0
  73. data/sandbox/tmp/cache/assets/D1E/7C0/sprockets%2Fb590b97f48766ae095ccf7b821361c6d +0 -0
  74. data/sandbox/tmp/cache/assets/D26/0C0/sprockets%2F44ba33f7338d8b57eb37f98e8c861e08 +0 -0
  75. data/sandbox/tmp/cache/assets/D2B/9B0/sprockets%2F4de45f7ee4e3076777bd571c66f8666b +0 -0
  76. data/sandbox/tmp/cache/assets/D2D/8C0/sprockets%2F6403fb17fb855b2dd047b010fbf8204d +0 -0
  77. data/sandbox/tmp/cache/assets/D2D/AF0/sprockets%2Fff24230f8cf22d156618240bb72ddb2a +0 -0
  78. data/sandbox/tmp/cache/assets/D2E/9D0/sprockets%2F9c0a2445ab6c0967470b5b22d4b1f8ba +0 -0
  79. data/sandbox/tmp/cache/assets/D2F/500/sprockets%2F4b69a31fdeabf6b46a1656d06b036043 +0 -0
  80. data/sandbox/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
  81. data/sandbox/tmp/cache/assets/D34/280/sprockets%2F0fcf69c7e8fd9961e1158d70583e8f95 +0 -0
  82. data/sandbox/tmp/cache/assets/D34/3E0/sprockets%2F46a73c17c9a561115944df004dbbdd7b +0 -0
  83. data/sandbox/tmp/cache/assets/D35/AC0/sprockets%2F67d23b05f2a7bc455d0f5f408ca6d523 +0 -0
  84. data/sandbox/tmp/cache/assets/D36/930/sprockets%2Fc2a0ff7004c8ff6a483b33c8d17c2417 +0 -0
  85. data/sandbox/tmp/cache/assets/D37/1E0/sprockets%2Fc42800bd200fbf8edbdf9410949590a4 +0 -0
  86. data/sandbox/tmp/cache/assets/D37/B30/sprockets%2F9e0ec117e9064c55401b50c2abb8ff76 +0 -0
  87. data/sandbox/tmp/cache/assets/D39/880/sprockets%2F30ace94e10312e02fdf5d4a398393f8b +0 -0
  88. data/sandbox/tmp/cache/assets/D39/E50/sprockets%2F2e903f41216c9a5bfde3b77d1b9c1390 +0 -0
  89. data/sandbox/tmp/cache/assets/D3B/BC0/sprockets%2F19510a763bd1521ff5fc70ffe0d837d3 +0 -0
  90. data/sandbox/tmp/cache/assets/D3D/B80/sprockets%2F75df7c9d480cfbe1f976999e7647d771 +0 -0
  91. data/sandbox/tmp/cache/assets/D40/6C0/sprockets%2F5331b2ee1f23f57b9b2a96fd0a85b577 +0 -0
  92. data/sandbox/tmp/cache/assets/D40/8A0/sprockets%2F4483a17992b57cddb5dee15e327d30e3 +0 -0
  93. data/sandbox/tmp/cache/assets/D44/320/sprockets%2F27989e358a4a57b48c5e4062bff2aa4a +0 -0
  94. data/sandbox/tmp/cache/assets/D46/650/sprockets%2Fba1459a80d8874a816f88ffec22019ac +0 -0
  95. data/sandbox/tmp/cache/assets/D47/BA0/sprockets%2F6d287a845e176586f4aaa3f6b5f6ab51 +0 -0
  96. data/sandbox/tmp/cache/assets/D47/FD0/sprockets%2F279dd54295ff5a0e283a0e5730fff28c +0 -0
  97. data/sandbox/tmp/cache/assets/D48/370/sprockets%2Fb654fd37f9f63ec202a3636e29b94ef0 +0 -0
  98. data/sandbox/tmp/cache/assets/D4A/1A0/sprockets%2Fb746360a8b3ce79c57e74a9c15309fdd +0 -0
  99. data/sandbox/tmp/cache/assets/D4D/5C0/sprockets%2F66eaa47a7875ec8a24a5dbe465e75753 +0 -0
  100. data/sandbox/tmp/cache/assets/D4D/9B0/sprockets%2Febcc4e9d10b747864a29d16c13f5d899 +0 -0
  101. data/sandbox/tmp/cache/assets/D4F/810/sprockets%2Fa10070d6497ba2b4ea552d4a1bb444cb +0 -0
  102. data/sandbox/tmp/cache/assets/D55/310/sprockets%2F2b9be79ca64ec7d294d4825e21696ce9 +0 -0
  103. data/sandbox/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6 +0 -0
  104. data/sandbox/tmp/cache/assets/D5C/200/sprockets%2Fcd323e6f7545cee0b3ba1e84d7520b00 +0 -0
  105. data/sandbox/tmp/cache/assets/D5D/310/sprockets%2F5bbf50c40bff0ad1722051c86fe680e2 +0 -0
  106. data/sandbox/tmp/cache/assets/D5E/290/sprockets%2F22fb620af04e31f058ba64ec4386bb8a +0 -0
  107. data/sandbox/tmp/cache/assets/D62/490/sprockets%2Fd7c71cd09b0f551a237150dae69ca93a +0 -0
  108. data/sandbox/tmp/cache/assets/D62/690/sprockets%2F11532c31a6be258097db31bbeb9ff35d +0 -0
  109. data/sandbox/tmp/cache/assets/D66/BB0/sprockets%2F190ee4571dbbf206b6b26007fd9be9a2 +0 -0
  110. data/sandbox/tmp/cache/assets/D6A/ED0/sprockets%2Ff5d445fff783322a14283beb4eb5bc33 +0 -0
  111. data/sandbox/tmp/cache/assets/D6B/0F0/sprockets%2F3609df3f470bd24af26a51de476cef05 +0 -0
  112. data/sandbox/tmp/cache/assets/D6C/110/sprockets%2F2d5d9cd3d0adf965d07e64a3049d106e +0 -0
  113. data/sandbox/tmp/cache/assets/D6D/AA0/sprockets%2F1cb4a75912d38d0bdde6ee6770644d0f +0 -0
  114. data/sandbox/tmp/cache/assets/D6E/AE0/sprockets%2Fe193ea7b03f186ad2a9515fc78fa8c21 +0 -0
  115. data/sandbox/tmp/cache/assets/D6F/690/sprockets%2F1aa0aa2e0ecc490b1b0ede43013535c1 +0 -0
  116. data/sandbox/tmp/cache/assets/D70/320/sprockets%2Fb81a3eab4ea93cf21fd7585436b8a169 +0 -0
  117. data/sandbox/tmp/cache/assets/D70/5D0/sprockets%2F2ff973bae9120e8358ccbaa6395c2b19 +0 -0
  118. data/sandbox/tmp/cache/assets/D72/250/sprockets%2F68bd0a6d091ef3ba0a64b9762794d6de +0 -0
  119. data/sandbox/tmp/cache/assets/D72/680/sprockets%2F56c41c78c49d45b9ca0c358adea917f0 +0 -0
  120. data/sandbox/tmp/cache/assets/D74/0A0/sprockets%2Fc1392b79af6b88250b634479cbf2bcfc +0 -0
  121. data/sandbox/tmp/cache/assets/D79/5A0/sprockets%2Feb399a6f39a8dcd0bf011768e7153d8d +0 -0
  122. data/sandbox/tmp/cache/assets/D7A/D40/sprockets%2F4d2bc08f2787a3870ff93e0e0f7bc67e +0 -0
  123. data/sandbox/tmp/cache/assets/D7C/270/sprockets%2Fc15bcc081286a12c1751bfad1ac2f2a4 +0 -0
  124. data/sandbox/tmp/cache/assets/D7D/2C0/sprockets%2Fdc76b19d5f8ce4e6e4e9c735c223091f +0 -0
  125. data/sandbox/tmp/cache/assets/D88/B70/sprockets%2F9b378be843af782b809c5ce3d6f6d47f +0 -0
  126. data/sandbox/tmp/cache/assets/D89/670/sprockets%2Fbf838afe9adf908d9ec59bc552833285 +0 -0
  127. data/sandbox/tmp/cache/assets/D8C/D40/sprockets%2Fc4a00154a0e1c15a495ce4d49c9f0ccf +0 -0
  128. data/sandbox/tmp/cache/assets/D96/460/sprockets%2F510545dac5cc61f17bc4d1e8e740fec5 +0 -0
  129. data/sandbox/tmp/cache/assets/D96/940/sprockets%2F6a2c3af22b173eb975f382b4cdcd8c41 +0 -0
  130. data/sandbox/tmp/cache/assets/D96/E90/sprockets%2F0d5f451deca7e6811663f30afc3a4fd4 +0 -0
  131. data/sandbox/tmp/cache/assets/D97/180/sprockets%2F933323d1c368cfeda7a0cacdbd295933 +0 -0
  132. data/sandbox/tmp/cache/assets/D9E/000/sprockets%2F1e365d6ecdad349c6f900a3aa829cf18 +0 -0
  133. data/sandbox/tmp/cache/assets/D9F/020/sprockets%2Fd21cfdfa8182a8866e0ba904ef6561ea +0 -0
  134. data/sandbox/tmp/cache/assets/DA5/EA0/sprockets%2Fc2e6b41187b059dbddd8dbd7cb884482 +0 -0
  135. data/sandbox/tmp/cache/assets/DA7/DE0/sprockets%2Ff022dcf0c3c5fd7de3989f600dc7585c +0 -0
  136. data/sandbox/tmp/cache/assets/DA9/420/sprockets%2F4be564f02ffc16e32df33e92e43fb8f9 +0 -0
  137. data/sandbox/tmp/cache/assets/DAD/190/sprockets%2Fbee62a5d7a8cd35a33763f1cd879de59 +0 -0
  138. data/sandbox/tmp/cache/assets/DB5/EC0/sprockets%2Fde17edd0f2eca28280c1a27ac5c510c3 +0 -0
  139. data/sandbox/tmp/cache/assets/DBE/5E0/sprockets%2F7663abb4baaadfc7e6a48f1150f32b62 +0 -0
  140. data/sandbox/tmp/cache/assets/DBE/A00/sprockets%2F266ad056a1ae59c1b2934fcd2cad6cf0 +0 -0
  141. data/sandbox/tmp/cache/assets/DCA/FD0/sprockets%2F0b59a77adfc61bb863e708ba262ce6bd +0 -0
  142. data/sandbox/tmp/cache/assets/DCB/100/sprockets%2Fd313bd7561b538fb7f2c4ab89dba5b7b +0 -0
  143. data/sandbox/tmp/cache/assets/DCD/930/sprockets%2F6fd2f59e45a7f3c88a183ee00d1cccd0 +0 -0
  144. data/sandbox/tmp/cache/assets/DD0/140/sprockets%2Ff9c3eeef5e04c483a3d2e3fbf458a413 +0 -0
  145. data/sandbox/tmp/cache/assets/DD5/040/sprockets%2F8b8bc1dd8d844edda81c52b7bd29a926 +0 -0
  146. data/sandbox/tmp/cache/assets/DD6/B70/sprockets%2F2f433efcb60c276ccd93cfdce59687a1 +0 -0
  147. data/sandbox/tmp/cache/assets/DD7/9B0/sprockets%2F9f2c0826bd7ae7b745ae8da6db48c26e +0 -0
  148. data/sandbox/tmp/cache/assets/DD8/3B0/sprockets%2Fef4ddeef4487be0bf8c6412714f61e8a +0 -0
  149. data/sandbox/tmp/cache/assets/DE5/390/sprockets%2F24a1cda6893cebd53997dc859def67cd +0 -0
  150. data/sandbox/tmp/cache/assets/DF5/EF0/sprockets%2Fd1e83d1a6f55fafac76b4a2ac8541fd1 +0 -0
  151. data/sandbox/tmp/cache/assets/DFC/890/sprockets%2F2a2c6a1ea98a0cd7b5f7ff4ef7264b3c +0 -0
  152. data/sandbox/tmp/cache/assets/E05/2E0/sprockets%2F92ecbfa92baf6e394ce6c39d731b7cd2 +0 -0
  153. data/sandbox/tmp/cache/assets/E12/710/sprockets%2F7e9ee2069eafc7ddd7aff731dc9186d2 +0 -0
  154. data/sandbox/tmp/cache/assets/E38/420/sprockets%2Fd5e6ba266c8ebddcbf04b3099cf747ff +0 -0
  155. data/sandbox/tmp/cache/assets/E3F/FE0/sprockets%2Fbbbb6f82edbdac31a0c71ce0b04718ac +0 -0
  156. data/sandbox/tmp/cache/assets/E40/840/sprockets%2F0b2c9ee1f1fe00aad3bec06cbd08cd15 +0 -0
  157. data/sandbox/tmp/cache/assets/EC9/D10/sprockets%2F8dfe5ddb2cf1a7f77098fd9eb4ddbcab +0 -0
  158. data/sandbox/tmp/cache/sass/8e0849d701bca2f5a178ed1215813b1316068a4d/components.sassc +0 -0
  159. data/sandbox/tmp/cache/sass/8e0849d701bca2f5a178ed1215813b1316068a4d/reset.sassc +0 -0
  160. data/sandbox/tmp/cache/sass/8e0849d701bca2f5a178ed1215813b1316068a4d/variables.sassc +0 -0
  161. data/sandbox/tmp/cache/sass/e18337f0c19dfad20daa699fa9a096f70c37cd66/experiment.sassc +0 -0
  162. data/vendor/assets/javascripts/iugu-ux/components/base_resource.js.coffee +21 -0
  163. data/vendor/assets/javascripts/iugu-ux/components/base_resources.js.coffee +65 -0
  164. data/vendor/assets/javascripts/iugu-ux/components/iugu-ux-components.js +7 -1
  165. data/vendor/assets/javascripts/iugu-ux/components/iugu-ux-main.js.coffee +4 -2
  166. data/vendor/assets/javascripts/iugu-ux/components/presenters/iugu-ui-alert.jst.eco +6 -0
  167. data/vendor/assets/javascripts/iugu-ux/components/presenters/iugu-ui-dataset-record.jst.eco +6 -0
  168. data/vendor/assets/javascripts/iugu-ux/components/presenters/iugu-ui-dataset.jst.eco +2 -0
  169. data/vendor/assets/javascripts/iugu-ux/components/presenters/iugu-ui-navigator.jst.eco +6 -0
  170. data/vendor/assets/javascripts/iugu-ux/components/presenters/iugu-ui-paginator.jst.eco +19 -0
  171. data/vendor/assets/javascripts/iugu-ux/components/presenters/iugu-ui-responsive-box.jst.eco +2 -0
  172. data/vendor/assets/javascripts/iugu-ux/components/presenters/iugu-ui-scrollable-container.jst.eco +4 -0
  173. data/vendor/assets/javascripts/iugu-ux/components/presenters/iugu-ui-search-filter.jst.eco +15 -0
  174. data/vendor/assets/javascripts/iugu-ux/components/presenters/iugu-ui-search-range.jst.eco +5 -0
  175. data/vendor/assets/javascripts/iugu-ux/components/presenters/iugu-ui-search.jst.eco +3 -0
  176. data/vendor/assets/javascripts/iugu-ux/components/presenters/iugu-ui-table-row.jst.eco +3 -0
  177. data/vendor/assets/javascripts/iugu-ux/components/presenters/iugu-ui-table.jst.eco +19 -0
  178. data/vendor/assets/javascripts/iugu-ux/components/usecode/// +83 -0
  179. data/vendor/assets/javascripts/iugu-ux/components/usecode/iugu-ui-alert.js.coffee +17 -0
  180. data/vendor/assets/javascripts/iugu-ux/components/usecode/iugu-ui-base.js.coffee +83 -0
  181. data/vendor/assets/javascripts/iugu-ux/components/usecode/iugu-ui-dataset-record.js.coffee +17 -0
  182. data/vendor/assets/javascripts/iugu-ux/components/usecode/iugu-ui-dataset.js.coffee +47 -0
  183. data/vendor/assets/javascripts/iugu-ux/components/usecode/iugu-ui-navigator.js.coffee +47 -0
  184. data/vendor/assets/javascripts/iugu-ux/components/usecode/iugu-ui-paginator.js.coffee +58 -0
  185. data/vendor/assets/javascripts/iugu-ux/components/usecode/iugu-ui-responsive-box.js.coffee +83 -0
  186. data/vendor/assets/javascripts/iugu-ux/components/usecode/iugu-ui-scrollable-content.js.coffee +13 -0
  187. data/vendor/assets/javascripts/iugu-ux/components/usecode/iugu-ui-search-filter.js.coffee +55 -0
  188. data/vendor/assets/javascripts/iugu-ux/components/usecode/iugu-ui-search-range.js.coffee +35 -0
  189. data/vendor/assets/javascripts/iugu-ux/components/usecode/iugu-ui-search.js.coffee +28 -0
  190. data/vendor/assets/javascripts/iugu-ux/components/usecode/iugu-ui-table.js.coffee +39 -0
  191. data/vendor/assets/javascripts/iugu-ux/components/usecode/iugu-ui-view.js.coffee +78 -0
  192. data/vendor/assets/javascripts/iugu-ux/iugu-ui-helpers.js.coffee +52 -0
  193. data/vendor/assets/javascripts/iugu-ux/iugu-ux.js +0 -1
  194. data/vendor/assets/javascripts/iugu-ux/web-app.js +5 -1
  195. data/vendor/assets/javascripts/vendor.js +5 -0
  196. data/vendor/assets/javascripts/vendor/async.js +700 -0
  197. data/vendor/assets/javascripts/vendor/backbone.paginator.js +833 -0
  198. data/vendor/assets/javascripts/vendor/backbone.validation.js +538 -0
  199. data/vendor/assets/javascripts/vendor/rivets.js +583 -0
  200. data/vendor/assets/javascripts/vendor/tasks.js.coffee +16 -0
  201. data/vendor/assets/javascripts/web-app/config.js.erb +2 -0
  202. data/vendor/assets/javascripts/web-app/helpers.coffee +5 -0
  203. data/vendor/assets/stylesheets/iugu-ux/components.sass +186 -0
  204. data/vendor/assets/stylesheets/iugu-ux/reset.sass +5 -0
  205. data/vendor/assets/stylesheets/iugu-ux/variables.sass +28 -0
  206. metadata +260 -44
  207. data/sandbox/app/assets/stylesheets/application.css +0 -3
  208. data/sandbox/app/assets/stylesheets/default-sprites.sass +0 -12
  209. data/sandbox/app/assets/stylesheets/experiment.sass +0 -181
  210. data/sandbox/app/assets/stylesheets/mq-styles.sass +0 -50
  211. data/sandbox/app/assets/stylesheets/mqtest.css +0 -6
  212. data/sandbox/app/assets/stylesheets/sandbox-sprites.css +0 -6
  213. data/sandbox/app/views/ui_library/mediaquery.html.haml +0 -5
@@ -0,0 +1,583 @@
1
+ // rivets.js
2
+ // version: 0.4.0
3
+ // author: Michael Richards
4
+ // license: MIT
5
+ (function() {
6
+ var Rivets, bindEvent, getInputValue, rivets, unbindEvent,
7
+ __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; },
8
+ __slice = [].slice,
9
+ __indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };
10
+
11
+ Rivets = {};
12
+
13
+ if (!String.prototype.trim) {
14
+ String.prototype.trim = function() {
15
+ return this.replace(/^\s+|\s+$/g, '');
16
+ };
17
+ }
18
+
19
+ Rivets.Binding = (function() {
20
+
21
+ function Binding(el, type, model, keypath, options) {
22
+ var identifier, regexp, value, _ref;
23
+ this.el = el;
24
+ this.type = type;
25
+ this.model = model;
26
+ this.keypath = keypath;
27
+ this.options = options != null ? options : {};
28
+ this.unbind = __bind(this.unbind, this);
29
+
30
+ this.bind = __bind(this.bind, this);
31
+
32
+ this.publish = __bind(this.publish, this);
33
+
34
+ this.sync = __bind(this.sync, this);
35
+
36
+ this.set = __bind(this.set, this);
37
+
38
+ this.formattedValue = __bind(this.formattedValue, this);
39
+
40
+ if (!(this.binder = Rivets.binders[type])) {
41
+ _ref = Rivets.binders;
42
+ for (identifier in _ref) {
43
+ value = _ref[identifier];
44
+ if (identifier !== '*' && identifier.indexOf('*') !== -1) {
45
+ regexp = new RegExp("^" + (identifier.replace('*', '.+')) + "$");
46
+ if (regexp.test(type)) {
47
+ this.binder = value;
48
+ this.args = new RegExp("^" + (identifier.replace('*', '(.+)')) + "$").exec(type);
49
+ this.args.shift();
50
+ }
51
+ }
52
+ }
53
+ }
54
+ this.binder || (this.binder = Rivets.binders['*']);
55
+ if (this.binder instanceof Function) {
56
+ this.binder = {
57
+ routine: this.binder
58
+ };
59
+ }
60
+ this.formatters = this.options.formatters || [];
61
+ }
62
+
63
+ Binding.prototype.formattedValue = function(value) {
64
+ var args, formatter, id, _i, _len, _ref, _ref1, _ref2;
65
+ _ref = this.formatters;
66
+ for (_i = 0, _len = _ref.length; _i < _len; _i++) {
67
+ formatter = _ref[_i];
68
+ args = formatter.split(/\s+/);
69
+ id = args.shift();
70
+ value = this.model[id] instanceof Function ? (_ref1 = this.model)[id].apply(_ref1, [value].concat(__slice.call(args))) : Rivets.formatters[id] ? (_ref2 = Rivets.formatters)[id].apply(_ref2, [value].concat(__slice.call(args))) : void 0;
71
+ }
72
+ return value;
73
+ };
74
+
75
+ Binding.prototype.set = function(value) {
76
+ var _ref;
77
+ value = value instanceof Function && !this.binder["function"] ? this.formattedValue(value.call(this.model)) : this.formattedValue(value);
78
+ return (_ref = this.binder.routine) != null ? _ref.call(this, this.el, value) : void 0;
79
+ };
80
+
81
+ Binding.prototype.sync = function() {
82
+ return this.set(this.options.bypass ? this.model[this.keypath] : Rivets.config.adapter.read(this.model, this.keypath));
83
+ };
84
+
85
+ Binding.prototype.publish = function() {
86
+ return Rivets.config.adapter.publish(this.model, this.keypath, getInputValue(this.el));
87
+ };
88
+
89
+ Binding.prototype.bind = function() {
90
+ var dependency, keypath, model, _i, _len, _ref, _ref1, _ref2, _results;
91
+ if (this.options.bypass) {
92
+ this.sync();
93
+ } else {
94
+ if ((_ref = this.binder.bind) != null) {
95
+ _ref.call(this, this.el);
96
+ }
97
+ Rivets.config.adapter.subscribe(this.model, this.keypath, this.sync);
98
+ if (Rivets.config.preloadData) {
99
+ this.sync();
100
+ }
101
+ }
102
+ if ((_ref1 = this.options.dependencies) != null ? _ref1.length : void 0) {
103
+ _ref2 = this.options.dependencies;
104
+ _results = [];
105
+ for (_i = 0, _len = _ref2.length; _i < _len; _i++) {
106
+ dependency = _ref2[_i];
107
+ if (/^\./.test(dependency)) {
108
+ model = this.model;
109
+ keypath = dependency.substr(1);
110
+ } else {
111
+ dependency = dependency.split('.');
112
+ model = this.view.models[dependency.shift()];
113
+ keypath = dependency.join('.');
114
+ }
115
+ _results.push(Rivets.config.adapter.subscribe(model, keypath, this.sync));
116
+ }
117
+ return _results;
118
+ }
119
+ };
120
+
121
+ Binding.prototype.unbind = function() {
122
+ var keypath, _i, _len, _ref, _ref1, _ref2, _results;
123
+ if (!this.options.bypass) {
124
+ if ((_ref = this.binder.unbind) != null) {
125
+ _ref.call(this, this.el);
126
+ }
127
+ Rivets.config.adapter.unsubscribe(this.model, this.keypath, this.sync);
128
+ }
129
+ if ((_ref1 = this.options.dependencies) != null ? _ref1.length : void 0) {
130
+ _ref2 = this.options.dependencies;
131
+ _results = [];
132
+ for (_i = 0, _len = _ref2.length; _i < _len; _i++) {
133
+ keypath = _ref2[_i];
134
+ _results.push(Rivets.config.adapter.unsubscribe(this.model, keypath, this.sync));
135
+ }
136
+ return _results;
137
+ }
138
+ };
139
+
140
+ return Binding;
141
+
142
+ })();
143
+
144
+ Rivets.View = (function() {
145
+
146
+ function View(els, models) {
147
+ this.els = els;
148
+ this.models = models;
149
+ this.publish = __bind(this.publish, this);
150
+
151
+ this.sync = __bind(this.sync, this);
152
+
153
+ this.unbind = __bind(this.unbind, this);
154
+
155
+ this.bind = __bind(this.bind, this);
156
+
157
+ this.select = __bind(this.select, this);
158
+
159
+ this.build = __bind(this.build, this);
160
+
161
+ this.bindingRegExp = __bind(this.bindingRegExp, this);
162
+
163
+ if (!(this.els.jquery || this.els instanceof Array)) {
164
+ this.els = [this.els];
165
+ }
166
+ this.build();
167
+ }
168
+
169
+ View.prototype.bindingRegExp = function() {
170
+ var prefix;
171
+ prefix = Rivets.config.prefix;
172
+ if (prefix) {
173
+ return new RegExp("^data-" + prefix + "-");
174
+ } else {
175
+ return /^data-/;
176
+ }
177
+ };
178
+
179
+ View.prototype.build = function() {
180
+ var bindingRegExp, el, node, parseNode, skipNodes, _i, _j, _len, _len1, _ref, _ref1,
181
+ _this = this;
182
+ this.bindings = [];
183
+ skipNodes = [];
184
+ bindingRegExp = this.bindingRegExp();
185
+ parseNode = function(node) {
186
+ var attribute, attributes, binder, binding, context, ctx, dependencies, identifier, keypath, model, n, options, path, pipe, pipes, regexp, splitPath, type, value, _i, _j, _k, _len, _len1, _len2, _ref, _ref1, _ref2, _ref3;
187
+ if (__indexOf.call(skipNodes, node) < 0) {
188
+ _ref = node.attributes;
189
+ for (_i = 0, _len = _ref.length; _i < _len; _i++) {
190
+ attribute = _ref[_i];
191
+ if (bindingRegExp.test(attribute.name)) {
192
+ type = attribute.name.replace(bindingRegExp, '');
193
+ if (!(binder = Rivets.binders[type])) {
194
+ _ref1 = Rivets.binders;
195
+ for (identifier in _ref1) {
196
+ value = _ref1[identifier];
197
+ if (identifier !== '*' && identifier.indexOf('*') !== -1) {
198
+ regexp = new RegExp("^" + (identifier.replace('*', '.+')) + "$");
199
+ if (regexp.test(type)) {
200
+ binder = value;
201
+ }
202
+ }
203
+ }
204
+ }
205
+ binder || (binder = Rivets.binders['*']);
206
+ if (binder.block) {
207
+ _ref2 = node.getElementsByTagName('*');
208
+ for (_j = 0, _len1 = _ref2.length; _j < _len1; _j++) {
209
+ n = _ref2[_j];
210
+ skipNodes.push(n);
211
+ }
212
+ attributes = [attribute];
213
+ }
214
+ }
215
+ }
216
+ _ref3 = attributes || node.attributes;
217
+ for (_k = 0, _len2 = _ref3.length; _k < _len2; _k++) {
218
+ attribute = _ref3[_k];
219
+ if (bindingRegExp.test(attribute.name)) {
220
+ options = {};
221
+ type = attribute.name.replace(bindingRegExp, '');
222
+ pipes = (function() {
223
+ var _l, _len3, _ref4, _results;
224
+ _ref4 = attribute.value.split('|');
225
+ _results = [];
226
+ for (_l = 0, _len3 = _ref4.length; _l < _len3; _l++) {
227
+ pipe = _ref4[_l];
228
+ _results.push(pipe.trim());
229
+ }
230
+ return _results;
231
+ })();
232
+ context = (function() {
233
+ var _l, _len3, _ref4, _results;
234
+ _ref4 = pipes.shift().split('<');
235
+ _results = [];
236
+ for (_l = 0, _len3 = _ref4.length; _l < _len3; _l++) {
237
+ ctx = _ref4[_l];
238
+ _results.push(ctx.trim());
239
+ }
240
+ return _results;
241
+ })();
242
+ path = context.shift();
243
+ splitPath = path.split(/\.|:/);
244
+ options.formatters = pipes;
245
+ options.bypass = path.indexOf(':') !== -1;
246
+ if (splitPath[0]) {
247
+ model = _this.models[splitPath.shift()];
248
+ } else {
249
+ model = _this.models;
250
+ splitPath.shift();
251
+ }
252
+ keypath = splitPath.join('.');
253
+ if (model) {
254
+ if (dependencies = context.shift()) {
255
+ options.dependencies = dependencies.split(/\s+/);
256
+ }
257
+ binding = new Rivets.Binding(node, type, model, keypath, options);
258
+ binding.view = _this;
259
+ _this.bindings.push(binding);
260
+ }
261
+ }
262
+ }
263
+ if (attributes) {
264
+ attributes = null;
265
+ }
266
+ }
267
+ };
268
+ _ref = this.els;
269
+ for (_i = 0, _len = _ref.length; _i < _len; _i++) {
270
+ el = _ref[_i];
271
+ parseNode(el);
272
+ _ref1 = el.getElementsByTagName('*');
273
+ for (_j = 0, _len1 = _ref1.length; _j < _len1; _j++) {
274
+ node = _ref1[_j];
275
+ parseNode(node);
276
+ }
277
+ }
278
+ };
279
+
280
+ View.prototype.select = function(fn) {
281
+ var binding, _i, _len, _ref, _results;
282
+ _ref = this.bindings;
283
+ _results = [];
284
+ for (_i = 0, _len = _ref.length; _i < _len; _i++) {
285
+ binding = _ref[_i];
286
+ if (fn(binding)) {
287
+ _results.push(binding);
288
+ }
289
+ }
290
+ return _results;
291
+ };
292
+
293
+ View.prototype.bind = function() {
294
+ var binding, _i, _len, _ref, _results;
295
+ _ref = this.bindings;
296
+ _results = [];
297
+ for (_i = 0, _len = _ref.length; _i < _len; _i++) {
298
+ binding = _ref[_i];
299
+ _results.push(binding.bind());
300
+ }
301
+ return _results;
302
+ };
303
+
304
+ View.prototype.unbind = function() {
305
+ var binding, _i, _len, _ref, _results;
306
+ _ref = this.bindings;
307
+ _results = [];
308
+ for (_i = 0, _len = _ref.length; _i < _len; _i++) {
309
+ binding = _ref[_i];
310
+ _results.push(binding.unbind());
311
+ }
312
+ return _results;
313
+ };
314
+
315
+ View.prototype.sync = function() {
316
+ var binding, _i, _len, _ref, _results;
317
+ _ref = this.bindings;
318
+ _results = [];
319
+ for (_i = 0, _len = _ref.length; _i < _len; _i++) {
320
+ binding = _ref[_i];
321
+ _results.push(binding.sync());
322
+ }
323
+ return _results;
324
+ };
325
+
326
+ View.prototype.publish = function() {
327
+ var binding, _i, _len, _ref, _results;
328
+ _ref = this.select(function(b) {
329
+ return b.binder.publishes;
330
+ });
331
+ _results = [];
332
+ for (_i = 0, _len = _ref.length; _i < _len; _i++) {
333
+ binding = _ref[_i];
334
+ _results.push(binding.publish());
335
+ }
336
+ return _results;
337
+ };
338
+
339
+ return View;
340
+
341
+ })();
342
+
343
+ bindEvent = function(el, event, handler, context) {
344
+ var fn;
345
+ fn = function(e) {
346
+ return handler.call(context, e);
347
+ };
348
+ if (window.jQuery != null) {
349
+ el = jQuery(el);
350
+ if (el.on != null) {
351
+ el.on(event, fn);
352
+ } else {
353
+ el.bind(event, fn);
354
+ }
355
+ } else if (window.addEventListener != null) {
356
+ el.addEventListener(event, fn, false);
357
+ } else {
358
+ event = 'on' + event;
359
+ el.attachEvent(event, fn);
360
+ }
361
+ return fn;
362
+ };
363
+
364
+ unbindEvent = function(el, event, fn) {
365
+ if (window.jQuery != null) {
366
+ el = jQuery(el);
367
+ if (el.off != null) {
368
+ return el.off(event, fn);
369
+ } else {
370
+ return el.unbind(event, fn);
371
+ }
372
+ } else if (window.removeEventListener) {
373
+ return el.removeEventListener(event, fn, false);
374
+ } else {
375
+ event = 'on' + event;
376
+ return el.detachEvent(event, fn);
377
+ }
378
+ };
379
+
380
+ getInputValue = function(el) {
381
+ var o, _i, _len, _results;
382
+ switch (el.type) {
383
+ case 'checkbox':
384
+ return el.checked;
385
+ case 'select-multiple':
386
+ _results = [];
387
+ for (_i = 0, _len = el.length; _i < _len; _i++) {
388
+ o = el[_i];
389
+ if (o.selected) {
390
+ _results.push(o.value);
391
+ }
392
+ }
393
+ return _results;
394
+ break;
395
+ default:
396
+ return el.value;
397
+ }
398
+ };
399
+
400
+ Rivets.binders = {
401
+ enabled: function(el, value) {
402
+ return el.disabled = !value;
403
+ },
404
+ disabled: function(el, value) {
405
+ return el.disabled = !!value;
406
+ },
407
+ checked: {
408
+ publishes: true,
409
+ bind: function(el) {
410
+ return bindEvent(el, 'change', this.publish);
411
+ },
412
+ unbind: function(el) {
413
+ return unbindEvent(el, 'change', this.publish);
414
+ },
415
+ routine: function(el, value) {
416
+ if (el.type === 'radio') {
417
+ return el.checked = el.value === value;
418
+ } else {
419
+ return el.checked = !!value;
420
+ }
421
+ }
422
+ },
423
+ unchecked: {
424
+ publishes: true,
425
+ bind: function(el) {
426
+ return bindEvent(el, 'change', this.publish);
427
+ },
428
+ unbind: function(el) {
429
+ return unbindEvent(el, 'change', this.publish);
430
+ },
431
+ routine: function(el, value) {
432
+ if (el.type === 'radio') {
433
+ return el.checked = el.value !== value;
434
+ } else {
435
+ return el.checked = !value;
436
+ }
437
+ }
438
+ },
439
+ show: function(el, value) {
440
+ return el.style.display = value ? '' : 'none';
441
+ },
442
+ hide: function(el, value) {
443
+ return el.style.display = value ? 'none' : '';
444
+ },
445
+ html: function(el, value) {
446
+ return el.innerHTML = value != null ? value : '';
447
+ },
448
+ value: {
449
+ publishes: true,
450
+ bind: function(el) {
451
+ return bindEvent(el, 'change', this.publish);
452
+ },
453
+ unbind: function(el) {
454
+ return unbindEvent(el, 'change', this.publish);
455
+ },
456
+ routine: function(el, value) {
457
+ var o, _i, _len, _ref, _results;
458
+ if (el.type === 'select-multiple') {
459
+ if (value != null) {
460
+ _results = [];
461
+ for (_i = 0, _len = el.length; _i < _len; _i++) {
462
+ o = el[_i];
463
+ _results.push(o.selected = (_ref = o.value, __indexOf.call(value, _ref) >= 0));
464
+ }
465
+ return _results;
466
+ }
467
+ } else {
468
+ return el.value = value != null ? value : '';
469
+ }
470
+ }
471
+ },
472
+ text: function(el, value) {
473
+ if (el.innerText != null) {
474
+ return el.innerText = value != null ? value : '';
475
+ } else {
476
+ return el.textContent = value != null ? value : '';
477
+ }
478
+ },
479
+ "on-*": {
480
+ "function": true,
481
+ routine: function(el, value) {
482
+ if (this.currentListener) {
483
+ unbindEvent(el, this.args[0], this.currentListener);
484
+ }
485
+ return this.currentListener = bindEvent(el, this.args[0], value, this.model);
486
+ }
487
+ },
488
+ "each-*": {
489
+ block: true,
490
+ bind: function(el, collection) {
491
+ return el.removeAttribute(['data', rivets.config.prefix, this.type].join('-').replace('--', '-'));
492
+ },
493
+ routine: function(el, collection) {
494
+ var data, e, item, itemEl, m, n, previous, view, _i, _j, _k, _len, _len1, _len2, _ref, _ref1, _ref2, _ref3, _results;
495
+ if (this.iterated != null) {
496
+ _ref = this.iterated;
497
+ for (_i = 0, _len = _ref.length; _i < _len; _i++) {
498
+ view = _ref[_i];
499
+ view.unbind();
500
+ _ref1 = view.els;
501
+ for (_j = 0, _len1 = _ref1.length; _j < _len1; _j++) {
502
+ e = _ref1[_j];
503
+ e.parentNode.removeChild(e);
504
+ }
505
+ }
506
+ } else {
507
+ this.marker = document.createComment(" rivets: " + this.type + " ");
508
+ el.parentNode.insertBefore(this.marker, el);
509
+ el.parentNode.removeChild(el);
510
+ }
511
+ this.iterated = [];
512
+ _results = [];
513
+ for (_k = 0, _len2 = collection.length; _k < _len2; _k++) {
514
+ item = collection[_k];
515
+ data = {};
516
+ _ref2 = this.view.models;
517
+ for (n in _ref2) {
518
+ m = _ref2[n];
519
+ data[n] = m;
520
+ }
521
+ data[this.args[0]] = item;
522
+ itemEl = el.cloneNode(true);
523
+ previous = this.iterated[this.iterated.length - 1] || this.marker;
524
+ this.marker.parentNode.insertBefore(itemEl, (_ref3 = previous.nextSibling) != null ? _ref3 : null);
525
+ _results.push(this.iterated.push(rivets.bind(itemEl, data)));
526
+ }
527
+ return _results;
528
+ }
529
+ },
530
+ "class-*": function(el, value) {
531
+ var elClass;
532
+ elClass = " " + el.className + " ";
533
+ if (!value === (elClass.indexOf(" " + this.args[0] + " ") !== -1)) {
534
+ return el.className = value ? "" + el.className + " " + this.args[0] : elClass.replace(" " + this.args[0] + " ", ' ').trim();
535
+ }
536
+ },
537
+ "*": function(el, value) {
538
+ if (value) {
539
+ return el.setAttribute(this.type, value);
540
+ } else {
541
+ return el.removeAttribute(this.type);
542
+ }
543
+ }
544
+ };
545
+
546
+ Rivets.config = {
547
+ preloadData: true
548
+ };
549
+
550
+ Rivets.formatters = {};
551
+
552
+ rivets = {
553
+ binders: Rivets.binders,
554
+ formatters: Rivets.formatters,
555
+ config: Rivets.config,
556
+ configure: function(options) {
557
+ var property, value;
558
+ if (options == null) {
559
+ options = {};
560
+ }
561
+ for (property in options) {
562
+ value = options[property];
563
+ Rivets.config[property] = value;
564
+ }
565
+ },
566
+ bind: function(el, models) {
567
+ var view;
568
+ if (models == null) {
569
+ models = {};
570
+ }
571
+ view = new Rivets.View(el, models);
572
+ view.bind();
573
+ return view;
574
+ }
575
+ };
576
+
577
+ if (typeof module !== "undefined" && module !== null) {
578
+ module.exports = rivets;
579
+ } else {
580
+ this.rivets = rivets;
581
+ }
582
+
583
+ }).call(this);