express_admin 1.3.2 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (182) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/stylesheets/express_admin/components/_definition.sass +1 -1
  3. data/app/assets/stylesheets/express_admin/components/_h_box.sass +1 -1
  4. data/app/assets/stylesheets/express_admin/components/_live_edit.sass +3 -0
  5. data/app/assets/stylesheets/express_admin/components/_v_box.sass +1 -1
  6. data/app/assets/stylesheets/express_admin/screen.sass +1 -0
  7. data/app/components/express_admin/definition_list.rb +29 -12
  8. data/app/components/express_admin/definition_table.rb +11 -43
  9. data/app/components/express_admin/{flash_message_component.rb → flash_messages.rb} +3 -2
  10. data/app/components/express_admin/icon.rb +9 -2
  11. data/app/components/express_admin/icon_link.rb +32 -25
  12. data/app/components/express_admin/layout_component.rb +2 -32
  13. data/app/components/express_admin/layout_components/h_box.rb +3 -6
  14. data/app/components/express_admin/layout_components/pane.rb +8 -16
  15. data/app/components/express_admin/layout_components/sidebar_region.rb +2 -6
  16. data/app/components/express_admin/layout_components/v_box.rb +3 -6
  17. data/app/components/express_admin/main_region.rb +2 -4
  18. data/app/components/express_admin/{mega_menu_component.rb → mega_menu.rb} +6 -19
  19. data/app/components/express_admin/{addon_sidebar_component.rb → module_sidebar.rb} +12 -10
  20. data/app/components/express_admin/page_header.rb +14 -0
  21. data/app/components/express_admin/smart_form.rb +30 -29
  22. data/app/components/express_admin/smart_table.rb +43 -30
  23. data/app/components/express_admin/widget_box.rb +11 -6
  24. data/app/views/layouts/express_admin/admin.html.et +2 -2
  25. data/app/views/shared/express_admin/_navigation_bar.html.et +3 -3
  26. data/lib/express_admin/version.rb +1 -1
  27. data/test/dummy/db/test.sqlite3 +0 -0
  28. data/test/dummy/test/components/smart_form_test.rb +6 -5
  29. data/vendor/gems/express_templates/Gemfile.lock +1 -1
  30. data/vendor/gems/express_templates/express_templates-0.8.0.gem +0 -0
  31. data/vendor/gems/express_templates/express_templates.gemspec +1 -1
  32. data/vendor/gems/express_templates/lib/express_templates/compiler.rb +0 -9
  33. data/vendor/gems/express_templates/lib/express_templates/components.rb +0 -1
  34. data/vendor/gems/express_templates/lib/express_templates/components/base.rb +62 -10
  35. data/vendor/gems/express_templates/lib/express_templates/components/capabilities/resourceful.rb +12 -0
  36. data/vendor/gems/express_templates/lib/express_templates/components/configurable.rb +143 -16
  37. data/vendor/gems/express_templates/lib/express_templates/components/forms/basic_fields.rb +11 -16
  38. data/vendor/gems/express_templates/lib/express_templates/components/forms/checkbox.rb +6 -6
  39. data/vendor/gems/express_templates/lib/express_templates/components/forms/express_form.rb +18 -26
  40. data/vendor/gems/express_templates/lib/express_templates/components/forms/form_component.rb +17 -16
  41. data/vendor/gems/express_templates/lib/express_templates/components/forms/radio.rb +14 -32
  42. data/vendor/gems/express_templates/lib/express_templates/components/forms/select.rb +18 -35
  43. data/vendor/gems/express_templates/lib/express_templates/components/forms/select_collection.rb +11 -17
  44. data/vendor/gems/express_templates/lib/express_templates/components/forms/submit.rb +18 -14
  45. data/vendor/gems/express_templates/lib/express_templates/components/tree_for.rb +11 -4
  46. data/vendor/gems/express_templates/lib/express_templates/renderer.rb +1 -3
  47. data/vendor/gems/express_templates/lib/express_templates/version.rb +1 -1
  48. data/vendor/gems/express_templates/test/components/base_test.rb +45 -24
  49. data/vendor/gems/express_templates/test/components/capabilities/resourceful_test.rb +1 -1
  50. data/vendor/gems/express_templates/test/components/configurable_test.rb +108 -30
  51. data/vendor/gems/express_templates/test/components/forms/basic_fields_test.rb +3 -3
  52. data/vendor/gems/express_templates/test/components/forms/express_form_test.rb +4 -1
  53. data/vendor/gems/express_templates/test/components/forms/radio_test.rb +3 -3
  54. data/vendor/gems/express_templates/test/components/forms/submit_test.rb +3 -3
  55. data/vendor/gems/express_templates/test/components/tree_for_test.rb +1 -1
  56. data/vendor/gems/express_templates/test/core_extensions/proc_test.rb +10 -0
  57. data/vendor/gems/express_templates/test/dummy/log/test.log +1240 -20959
  58. data/vendor/gems/express_templates/test/test_helper.rb +3 -0
  59. metadata +22 -248
  60. data/app/components/express_admin/page_header_component.rb +0 -29
  61. data/app/components/express_admin/setting_form.rb +0 -48
  62. data/test/dummy/log/development.log +0 -35
  63. data/test/dummy/log/test.log +0 -51433
  64. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/0fNukwCUjSC_GRsVIMtSMVdZkd5bq5eShMcGCrCVolc.cache +0 -0
  65. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/0zehLcbCZ34CdyBVctEOnsyyyFlqjtTI-VkIje9xdCQ.cache +0 -1
  66. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/1EoyfDwFVtgMAOjo7HPkor8TQbVaioOFx9hildx_DTQ.cache +0 -0
  67. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/1c4REJHKdQH9bwZhZ7Ixshmy_1jAzXc3-9OiDCDyRlk.cache +0 -0
  68. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/1rKHSaJsgLcnfIJRWYdYy7IimMCKcdI-I_ABekUargk.cache +0 -0
  69. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/2kMk5s4FKAOWE1z_MvFIKHmdvNDzyoknoi39xL7KwJw.cache +0 -0
  70. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/2oGeKB_QtwWpX3sJNHocsJiBZT60x_cwV_nSGh_HS-A.cache +0 -0
  71. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/2rQDWRzFxOlBnczJ1BLfE2yCPVvrhgLGfAI7VSM54wk.cache +0 -0
  72. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/3S9nnUmEIG4-hDY6cVc82GFUUWicNxtpFfWwJAmJSkI.cache +0 -2
  73. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/4OPIkynisipUm8vKo57HUhBMWFSHBno_IH6OdpK29IA.cache +0 -1
  74. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/4WErFdugnc8uWYwUE9vVfw4xxCgknECdpWhn8teZbLk.cache +0 -1
  75. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/4a7epNa5R1jeKCtFsJKTdVqMEQm5p0clABRPIiKegMo.cache +0 -0
  76. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/4hK1AdPGHbXGkebvk-nSvhxtCdOSlMYNWvA43CvQKhI.cache +0 -0
  77. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/57pjjkzReNE1L9yodewGebfd0AwnfQb33rtJjSTNpLc.cache +0 -0
  78. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/6c0H20s6oHf45XogeDELaojxa0PX1NmirTTWV1ClcRw.cache +0 -0
  79. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/7vpDV8GyXVfyuFIkRrrkOwUXyIaCmf22tBPDpvhCUUc.cache +0 -0
  80. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/89d4LukQv0MLDc35wfIlQZps-IyoMSdlaSZjBF4U5Qs.cache +0 -1
  81. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/9QvwPXfTSVmgQX6tdK9GuCn0--MZ8Z8eJJbHpUEq1p8.cache +0 -1
  82. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/BoKdGhgi5NHfGTc42p9nltpEIYj_BBUxVdv7YhpBmmA.cache +0 -0
  83. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/Cpj6WyqdggDUkeQl_Ut3P9sUtPHPXXwkmZ92TfIJGJ8.cache +0 -0
  84. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/DwepgSdLiEklsJWIJItEY_ZW-nOjjeHqcdQwBtu0mus.cache +0 -0
  85. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/FOJpwMQCx9V9wfhJQKFa2f7BjfP7vyS7M3o6VX0nAI0.cache +0 -1
  86. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/GJGMlSyTg1AvPCV_6PaLOTVEKbHeVKY1jhCoaKuRlxM.cache +0 -1
  87. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/GStmpiXE4g01i-UTlSKq8B9yS69WpAp0YH7vWyESBwI.cache +0 -0
  88. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/H0aD5KRj-4fhORkqWcWZfKPOQfu_ggvt4OmYOl4S5mw.cache +0 -0
  89. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/H53ZZ50FwJjYUOMH60F7cpINgkh9tOF4R3L6ANoH6tU.cache +0 -1
  90. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/HY86Fwn8VPlIysY56uV-wu90bISxrXeiCtwDXg94Glg.cache +0 -0
  91. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/IBLgVNsKBbJxN8NQnh6zTc3bC_OG-8BhtA3xCNDV6ks.cache +0 -1
  92. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/IcNDN_pmsAcLAMv6CST75OwOucmYm3q2099jn4tB0H8.cache +0 -2
  93. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/JpdfSFVzivQn6TFSivlys3nV3VzD8cT0ET8uqbptxV4.cache +0 -1
  94. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/KLD96-U_D5wyyJMO4CJwhXydNwVp3GnQ_Pcu9fqMWwk.cache +0 -1
  95. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/KRkc9MoVFNfI2aJI6sncnC92a1RmZyYM_CbJoa01saw.cache +0 -0
  96. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/KYe0_GIi-cNX0eRteBB0aixVATrVRo7Z3BaWFCgc7yg.cache +0 -1
  97. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/LsiO4sLQfM0GvyEYhaC2E54rCurTkewg7YJX-sWBctI.cache +0 -0
  98. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/MczkmkaXLyXg8mAnmpTt-Rhvlf_OGFUEr-Ut9BuWo6g.cache +0 -0
  99. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/NDViKg4-yspkY1tX9IQWnh1-LkiKqIohBqtRlYZZQcs.cache +0 -2
  100. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/OXsmreTQ3MNzGsrV1eEoW72VZQ52hQ0HiuTr0ImnqHA.cache +0 -0
  101. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/Po8q4NrWy9Kymnz_HbOk-WbdGY_KuuXc6urGogTHe7U.cache +0 -0
  102. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/PuMvTyv89E8wfRqbWNMhTH3PAE61uCCHgpEsgdOzMXQ.cache +0 -0
  103. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/Pvp8CVIKYjspNrgzEvgleujifrrdfATzWbwALDzQNE4.cache +0 -2
  104. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/PzcOUndLc-O-VBR2SDM2rFkiqh-iqknTEgEAXDLKfdc.cache +0 -0
  105. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/QbX1HRM7KX85_PeVHcd6VJM6sqzUCWXEEYZX7CAG0eA.cache +0 -1
  106. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/UDHqQKrYSSvXfCbiJjXzmJh2Q6T5hLO80aaPvs9n-74.cache +0 -0
  107. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/UFtISk01WwcjjWcPLyjeHX3bgBqZHGQcb0Z4KFNmduA.cache +0 -0
  108. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/UWvG-0WgVYHVxrtLU32uumROQuSjJv_M_svW1B8YxhY.cache +0 -1
  109. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/UruI7_ZpuzDnmNir9hzUa_r8oiuuIfVTco19ACdxwRw.cache +0 -2
  110. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/V1aP9G-CVtOLR5PTnHleid8WC9TSfFAT1DzAygp_5CQ.cache +0 -1
  111. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/VQ2-2HlkGd1XVIHlwRGcgDsjto3oE-50-4E3HGdt8uU.cache +0 -1
  112. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/VezioHwyk87G6TWkkYX88tBHC6QToVGOU5geZ54Ts5A.cache +0 -1
  113. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/WG06sI8kg0TrFKDQh2slScD0xqYK5UF0gPF1Ri6APG0.cache +0 -0
  114. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/WfQ-xKbnwqaKy-UQa8spczc9qocIL_jZE4cyRZftjfA.cache +0 -2
  115. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/WhePtBvZPmF1Jhdcc4glsjhxBJQo9Qw0CDgy_F8lClY.cache +0 -0
  116. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/X2i4W-0ADnY8zQKnn3oh3P61cDw_n1B26D2JPcgWBTY.cache +0 -2
  117. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/XPpCqlT8yHTnQNHKRxjnilUBvAs6klpgWXneFU15U78.cache +0 -0
  118. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/XXTM8o6vkSxhxxm8P_orbeCZvxb8nMk7cjdwvUNL1io.cache +0 -0
  119. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/XyRQXY_oj8GLw9z8lj2dknGu45jbX5lK8ko7TePosPE.cache +0 -2
  120. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/Y7zGDJM6L5VhKbRWRU6vonJVe-DGxBuOhE_qGM8zJ0o.cache +0 -1
  121. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/YDMOayx363vI7odbkHMVI-_RxkOoVP2Hb7FX0mFVFE0.cache +0 -1
  122. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/Z88gJS67lNABJgUB18JzXrnGkVbYfXQvjqm7mSJIv3o.cache +0 -1
  123. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/ZAIAu3UIaGRI3RknA2lbuZ8Y6AZ12VB84mQRg-q0vFs.cache +0 -1
  124. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/_2bn753sv7A0CDBODs7rO8SWdQ1OMi2vbzSas5co4TE.cache +0 -0
  125. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/_FyeE-ad3bA2IH6ZwZOn6J4qaW857Rjv4FBs_HIPiqM.cache +0 -0
  126. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/_k4X14Cc-2Y4gc47s7PaWtAaG_zcq1ICJInTYNp6bI4.cache +0 -2
  127. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/_kr_dP4VVnM8s8ZMdiNBSpuPqkQVx46FUdCTDH4XR70.cache +0 -0
  128. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/_y-BPEZTh3iXcaPJkcP9-krjw-V8LMhop4VGxUEUDsY.cache +0 -1
  129. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/afi__XQzjsqMT3svcCGlVD_YrHEWQZAEbJt4CgYaCkw.cache +0 -1
  130. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/bdqS7lHa0nBN-mqdSomfMK-S6ct2TAn0z9kVzFBwQPM.cache +0 -0
  131. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/c4lC2GnsHBJ0BpWF3Nlgfk2FLPkhA7GCIiMMjnMTWE8.cache +0 -0
  132. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/csH89NDps1_QU4E0p0HHZti2XLd_etKYDqM9cPsNpps.cache +0 -0
  133. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/dVokuKbK8HbOtvPIksKGBAYE8x44l372dQ0gEISqbdo.cache +0 -0
  134. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/ePtEu-AuU0iZ2J02ZafF9yOJVd8VVdV2KSheiJYlXzA.cache +0 -1
  135. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/eTRff0YXBw-Tx9VEMxb-Es8NwqjHCXiaosBLxijl3I8.cache +0 -1
  136. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/fRkrxaDYzRDIvxEUGZBFbW5ocAlmDQNg8_LRcOJJOzI.cache +0 -1
  137. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/goVFgqSk0CBOXpbwLNd-enc31BvXm1S8cMSJ3zbxRYI.cache +0 -1
  138. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/hPH6lLkPX0EzSG_eBprMMUnmFs9y89AOarfyhGoAFGc.cache +0 -0
  139. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/hgfrt0FmGrYD5SJVJhlsUPtL9usJvw3vZrW4dqQq16Y.cache +0 -1
  140. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/hiZg7FLw7SFa7S-BQ8CKWdAqFVUZy2HVb2chmQijM-g.cache +0 -0
  141. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/iKb8yzw0EdFpNkayUbc16U7olK7iwE2xIs_6b_xIEtI.cache +0 -1
  142. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/iY03Ztj2YhBWadK8LHOKR3Hj1W7PLss0v85Q6Nj7E3Q.cache +0 -0
  143. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/ipLhCJrCCVwH7l_p1quUi2xS6POFlVHfZCqIymk8CoI.cache +0 -0
  144. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/ipTot5AshDPhFtCBNfXROxutQlCrYkvsXsy3fcVT0Nw.cache +0 -0
  145. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/j5CxYBAeuD-bGDZUBh-pA0mEPCSVFDZsJm3x7QED4g0.cache +0 -1
  146. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/jr4uhEONyFYm0QhfEOMqv05S-BeUP7gw1gQl3GIFyAI.cache +0 -0
  147. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/kDj0mxTRTc51sKL3YhP09H-N_wvNoeTMq4ZZXxWk00U.cache +0 -0
  148. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/kGO7_IQtBwpe93nSTKj6cCWGm0fZ_NoXltdw8E_74CQ.cache +0 -2
  149. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/le9WohG3eSGbBMySdKkdvkHXW8yipO8w4iQZCCCQb3M.cache +0 -1
  150. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/mtmR_XlvnlYbOPmP1EkOj96q2Z5OQNv4HkeFj9DwEXQ.cache +0 -2
  151. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/nU1obIDVHUhN-3yRA6B9U5aO8wsd6zh1tyVtSROJewk.cache +0 -2
  152. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/nk1B0AsQ24ck-r1vlAmaG2ZkDkzOfoIi6b5u-5BNFTQ.cache +0 -1
  153. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/oN1zSGeSEz4KhkAuUF_yFDsCVPkulfFjomEAjFzGdPc.cache +0 -0
  154. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/oZ6SMNNft5SCbvNtWXkGQwKQPVwXoJRMV7VUJfWHc2k.cache +0 -2
  155. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/orzlNSAVLprBGJNkJc1USpGtVMhktfj0hR1igXbs5fA.cache +0 -1
  156. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/oygs10cGTBBo7Mj97CjFRTrSrFR7Qi3MnHNR_WQvIps.cache +0 -0
  157. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/p0Gnpai0VYzEsAXH_5t9huZ3dO0v6JKRH0PIH--q-XA.cache +0 -2
  158. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/p0VpILMLAmqpH1IIuA6MfyLrqT7ltiDJqYqZSLr_k3I.cache +0 -0
  159. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/pWOcH5cfG1n9XqxJljnSwciDeLoaTkoUxp1zlOo0WTk.cache +0 -1
  160. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/pu9xM8T2O07hU3PafxbOLjg2vJxbbHE3qnIK9JHqVhA.cache +0 -1
  161. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/qEHftZrJ-Da_nsvX4UOaALyIt0mwnOuE2TdtBPGAWEw.cache +0 -0
  162. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/qIeSoker4TjM7JYRQTOjgRd4nN0WeHnNY1GMK7Zpe8M.cache +0 -0
  163. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/rtdpq5fxIYMKM43QyOIluEECg2NP5OA-7Zi8yuowZSI.cache +0 -1
  164. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/tTFLM1bjKSeg4nyH7GWbTY6JVvuYhNKFFvsOMS9h8O0.cache +0 -0
  165. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/tzX-HHF4F70o-aSB9Z_duoPxFGDv3auYnrpko9SYafU.cache +0 -1
  166. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/ujFa5Hu76zd1O6nO2G7WcgnOWZyTOMKLajazyMXAL_I.cache +0 -0
  167. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/uovLHiJZBoVnD7CXYj2WZYmAbBcqGLQOzu4Voz5Fx8c.cache +0 -0
  168. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/uyHm0KHsHpJhn-wv69exuuyU4kyJtW3DDQLP7tCD7e4.cache +0 -0
  169. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/v50nc5cuqpLxjepk7XsBmomcmFARYlHQRtq8yOv8AY0.cache +0 -0
  170. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/vAh5eTPxI929yxRCyXgbKTWat5cZiVSOyX0UeTveXGE.cache +0 -1
  171. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/vKiuNu1fQitE151bh0Tr2Ufkc80jWzchPjxaHkpjQL8.cache +0 -1
  172. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/vMbWbI1SO5bEaiu2pRvV8NDmms_j5flYoRvCSJavhdU.cache +0 -0
  173. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/vZBxpTbv5C70_MrcmWyk0z6yDwcZ-yjr7fo16bQaLhY.cache +0 -0
  174. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/x-3lyh5i4qS-Q9E3X2uj2LthTOxsndFTrFXBsPPo6hI.cache +0 -2
  175. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/x3xQgAyjbrGTXy2FX2UzGG77agJgt_xsyNBuofrvY_E.cache +0 -0
  176. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/xQqBwKYWFPxZm5tidxsRKk23Z3q-OLRmKQUlMjRev_c.cache +0 -0
  177. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/yZNo-6dzWGUNCJDnmqm7X5YB5FOxjYp_l8aKS6KaZOg.cache +0 -0
  178. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/yfh4w2OYe-sHC9BwdeUb4FtXVEH59KeRr6P7V_lJ7Uc.cache +0 -1
  179. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/ypZCDLo54Pz2ZoUxrxSEUjT5FYMAq8Ozp8OTOYDRdAE.cache +0 -0
  180. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/zV58Nou0R2EJG875wLND6wF9ES4diVi1fP7B_B6eCzw.cache +0 -1
  181. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/zxPFYKpkfNJtui1ekitdNMaGAo39fefm-oJCnILEEQ8.cache +0 -1
  182. data/vendor/gems/express_templates/lib/express_templates/components/form_rails_support.rb +0 -21
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 08a300847280a336c1ee0753d701955851c44c8e
4
- data.tar.gz: e818d3b36531e5c2caf75b09da27b70dd5100eda
3
+ metadata.gz: 0a190e90573d9c12ff7c11bcc7b76cefd69dba9a
4
+ data.tar.gz: 35a76a7c344eed3eb01c36effc0cfc688c8f985e
5
5
  SHA512:
6
- metadata.gz: 92f0c5c5d554682c2059a8d2b3e5f548625680dcd21e4ee8bd053ac7481517170cced4f65e20c834deecb970d517c1bf510dfa9fca052bf89f0fc6826263ab09
7
- data.tar.gz: c05c929de0d91d51cb7e4b49184501f6ceb3f35f3564612f92d245f97ba943262fa49d27725e8564bc44e56498c968c165e01e6382041261c7fd08902e290914
6
+ metadata.gz: f4148a027c4f50991fa88831e8d7dc236511482b80c3e9e625170a2a5e6cddb2503fb1f8acdd06923ac2775fdbbfa4bd03297af85028f52ea04b96e8d52584a0
7
+ data.tar.gz: 8a065074bf4b8ade0a4436b1e506a46df9b238482afa1989d606299944f0182cdb011d04977db5e58ca17dc5737d7a794f36b107e2c6b7256d5a6725a98f6def
@@ -1,4 +1,4 @@
1
- table.definitions
1
+ table.definitions-table
2
2
  margin: 1em
3
3
 
4
4
  th
@@ -1,2 +1,2 @@
1
- .h_box
1
+ .h-box
2
2
  @include grid-block
@@ -0,0 +1,3 @@
1
+ .live-edit
2
+ &:hover
3
+ background-color: rgba(255,0,0,0.2)
@@ -1,2 +1,2 @@
1
- .v_box
1
+ .v-box
2
2
  @include grid-block($orientation: vertical)
@@ -14,6 +14,7 @@
14
14
  @import 'sections/sidebar_region'
15
15
 
16
16
  @import 'components/main_menu'
17
+ @import 'components/live_edit'
17
18
  @import 'components/sub_menu'
18
19
  @import 'components/module_sidebar'
19
20
  @import 'components/widget_box'
@@ -2,19 +2,27 @@ module ExpressAdmin
2
2
  class DefinitionList < ExpressTemplates::Components::Configurable
3
3
  include ExpressTemplates::Components::Capabilities::Resourceful
4
4
 
5
- emits -> {
6
- dl {
7
- definitions.each do |label, content|
8
- dt { label }
9
- dd { content }
10
- end
11
- }
5
+ tag :dl
6
+
7
+ list_types = {}
8
+ list_types[:array] = {description: "List of fields on the current resource",
9
+ options: -> {resource.columns.map(&:name)}}
10
+ list_types[:hash] = {description: "List of terms and definitions."}
11
+
12
+ has_argument :list, "A list of things to define, presented as <label>: <definition>.",
13
+ as: :list, type: list_types
14
+
15
+ contains -> {
16
+ definitions.each do |label, content|
17
+ dt { label }
18
+ dd { content }
19
+ end
12
20
  }
13
21
 
14
22
  def definitions
15
- if @args.first.kind_of?(Array)
23
+ if config[:list].kind_of?(Array)
16
24
  definitions_from_array(@args.first)
17
- elsif @args.first.kind_of?(Hash)
25
+ elsif config[:list].kind_of?(Hash)
18
26
  definitions_from_hash(@args.first)
19
27
  end
20
28
  end
@@ -22,17 +30,26 @@ module ExpressAdmin
22
30
  def definitions_from_hash(hash)
23
31
  processed = hash.map do |k,v|
24
32
  if v.kind_of? Symbol
25
- [k, resource.send(v)]
33
+ [promptify(k), resource.send(v)]
26
34
  else
27
- [k, v]
35
+ [promptify(k), helpers.instance_eval("(#{v.source}).call(resource).to_s").html_safe]
28
36
  end
29
37
  end
30
38
  Hash[processed]
31
39
  end
32
40
 
33
41
  def definitions_from_array(fields)
34
- Hash[fields.map {|field| ["#{field.to_s.titleize}:", resource.send(field)]}]
42
+ Hash[fields.map {|field| ["#{field.to_s.titleize}:", "{{resource.#{field}}}"]}]
35
43
  end
36
44
 
45
+ private
46
+ def promptify(k)
47
+ if k.kind_of?(Symbol)
48
+ k.to_s.promptify
49
+ else
50
+ k.to_s
51
+ end
52
+ end
53
+
37
54
  end
38
55
  end
@@ -1,51 +1,19 @@
1
1
  module ExpressAdmin
2
- class DefinitionTable < ExpressTemplates::Components::Configurable
2
+ class DefinitionTable < DefinitionList
3
3
  include ExpressTemplates::Components::Capabilities::Resourceful
4
4
 
5
- emits -> {
6
- table(class: 'definitions') {
7
- tbody {
8
- definitions.each do |label, content|
9
- tr {
10
- th(align: "right") { label }
11
- td { content }
12
- }
13
- end
14
- }
15
- }
16
- }
17
-
18
- def definitions
19
- if @args.nil?
20
- definitions_from_hash(config)
21
- elsif @args.first.try(:kind_of?, Array)
22
- definitions_from_array(@args.first)
23
- end
24
- end
25
-
26
- def definitions_from_hash(hash)
27
- processed = hash.map do |k,v|
28
- if v.kind_of? Symbol
29
- [promptify(k), resource.send(v)]
30
- else
31
- [promptify(k), helpers.instance_eval("(#{v.source}).call(resource).to_s").html_safe]
32
- end
33
- end
34
- Hash[processed]
35
- end
36
-
37
- def definitions_from_array(fields)
38
- Hash[fields.map {|field| ["#{field.to_s.titleize}:", "{{resource.#{field}}}"]}]
39
- end
5
+ tag :table
40
6
 
41
- private
42
- def promptify(k)
43
- if k.kind_of?(Symbol)
44
- k.to_s.promptify
45
- else
46
- k.to_s
7
+ contains -> {
8
+ tbody {
9
+ definitions.each do |label, content|
10
+ tr {
11
+ th(align: "right") { label }
12
+ td { content }
13
+ }
47
14
  end
48
- end
15
+ }
16
+ }
49
17
 
50
18
  end
51
19
  end
@@ -1,7 +1,7 @@
1
1
  module ExpressAdmin
2
- class FlashMessageComponent < ExpressTemplates::Components::Base
2
+ class Flash < ExpressTemplates::Components::Base
3
3
 
4
- emits -> {
4
+ contains -> {
5
5
  helpers.flash.each do |flash_message|
6
6
  div(class:"flash nav-alert alert-box ", data: {alert: ''}) {
7
7
  span flash_message[1]
@@ -9,5 +9,6 @@ module ExpressAdmin
9
9
  }
10
10
  end
11
11
  }
12
+
12
13
  end
13
14
  end
@@ -1,7 +1,14 @@
1
1
  module ExpressAdmin
2
2
  class Icon < ExpressTemplates::Components::Configurable
3
- emits -> {
4
- i(class: "icon ion-#{config[:id]}")
3
+
4
+ tag :i
5
+
6
+ has_argument :id, "The name of the ionic icon withouth the ion- prefix. See http://ionicons.com/cheatsheet.html",
7
+ as: :name,
8
+ type: [:symbol, :string]
9
+
10
+ before_build {
11
+ add_class("ion-#{config[:name]}")
5
12
  }
6
13
  end
7
14
  end
@@ -1,34 +1,41 @@
1
1
  module ExpressAdmin
2
2
  class IconLink < ExpressTemplates::Components::Configurable
3
3
 
4
- emits -> {
4
+ tag :a
5
+
6
+ has_argument :id, "The name of the ionic icon withouth the ion- prefix. See http://ionicons.com/cheatsheet.html",
7
+ as: :icon_name,
8
+ type: [:symbol, :string]
9
+
10
+ has_option :text, "Link text to accompany the icon."
11
+
12
+ has_option :right, "Aligns the icon to the right of the text.",
13
+ default: false
14
+ has_option :href, "Link path, URL or anchor.",
15
+ required: true, attribute: true
16
+ has_option :title, "Title text for accessibility; appears on mouse hover.",
17
+ attribute: true
18
+ has_option :confirm, "Should trigger a confirm message.",
19
+ type: :boolean
20
+ has_option :delete, "Should perform a delete action.",
21
+ type: :boolean
22
+ has_option :target, "The link target attribute. Set to open in a new window or tab.",
23
+ attribute: true
24
+
25
+ before_build -> {
26
+ set_attribute 'data-delete', config[:delete] if config[:delete]
27
+ set_attribute 'data-confirm', config[:confirm] if config[:confirm]
28
+ }
29
+
30
+ contains -> {
5
31
  if config[:right]
6
- a(anchor_args) {
7
- text_node config[:text]
8
- icon(config[:icon_name].to_sym)
9
- }
32
+ text_node config[:text]
33
+ icon(config[:icon_name].to_sym)
10
34
  else
11
- a(anchor_args) {
12
- icon(config[:icon_name].to_sym)
13
- text_node config[:text]
14
- }
35
+ icon(config[:icon_name].to_sym)
36
+ text_node config[:text]
15
37
  end
16
38
  }
17
39
 
18
- def anchor_args
19
- args = {class: class_list,
20
- href: config[:href]}
21
- args[:id] = config[:id] if config[:id]
22
- args[:target] = config[:target] if config[:target]
23
- args['data-delete'] = config[:delete] if config[:delete]
24
- args['data-confirm'] = config[:confirm] if config[:confirm]
25
- args[:title] = config[:title] if config[:title]
26
- args
27
- end
28
-
29
- def icon_options
30
- [:icon_name, :text, :right]
31
- end
32
-
33
40
  end
34
- end
41
+ end
@@ -1,44 +1,14 @@
1
1
  module ExpressAdmin
2
2
  class LayoutComponent < ExpressTemplates::Components::Configurable
3
3
 
4
- def dom_id
5
- config.try(:[], :id)
6
- end
7
-
8
- def component_options
9
- [:id, :class, :style] + supported_style_options
10
- end
11
-
12
- def component_classes
13
- add_class config[:id].to_s
14
- add_class config[:class]
15
- class_names
16
- end
17
-
18
- def supported_style_options
19
- [:height, :width]
20
- end
21
-
22
- def provided_style_attributes
23
- config.select {|k,v| supported_style_options.include?(k) }
24
- end
4
+ has_option :style, 'Add inline styles to the element'
25
5
 
26
6
  def style_attributes
27
7
  attribs = config[:style] || {}
28
- attribs.merge(provided_style_attributes).map do |k, v|
8
+ attribs.map do |k, v|
29
9
  "#{k}: #{v}"
30
10
  end.join('; ')
31
11
  end
32
12
 
33
- def pass_along_attributes
34
- config.reject {|k,v| component_options.include?(k) }
35
- end
36
-
37
- def container_div_attributes
38
- pass_along_attributes
39
- .merge(id: dom_id, class: component_classes)
40
- .merge(style: style_attributes)
41
- end
42
-
43
13
  end
44
14
  end
@@ -1,10 +1,7 @@
1
1
  module ExpressAdmin
2
2
  class HBox < LayoutComponent
3
-
4
- emits -> (contents) {
5
- div(container_div_attributes) {
6
- contents.call(self) if contents
7
- }
3
+ contains -> (&block) {
4
+ block.call(self) if block
8
5
  }
9
6
  end
10
- end
7
+ end
@@ -1,11 +1,12 @@
1
1
  module ExpressAdmin
2
2
  class Pane < LayoutComponent
3
3
 
4
- emits -> (block) {
5
- div(container_div_attributes) {
6
- heading if title || status
7
- block.call(self) if block
8
- }
4
+ has_option :title, 'The title of the pane', default: ''
5
+ has_option :status, 'Status of the pane'
6
+
7
+ contains -> (&block) {
8
+ heading if title || status
9
+ block.call(self) if block
9
10
  }
10
11
 
11
12
  def heading
@@ -17,21 +18,12 @@ module ExpressAdmin
17
18
  }
18
19
  end
19
20
 
20
- def dom_id
21
- nil
22
- end
23
-
24
21
  def title
25
- config[:title] || ''
22
+ config[:title]
26
23
  end
27
24
 
28
25
  def status
29
- config[:status] || nil
30
- end
31
-
32
- def component_options
33
- super +
34
- [:title, :status]
26
+ config[:status]
35
27
  end
36
28
 
37
29
  end
@@ -1,11 +1,7 @@
1
1
  module ExpressAdmin
2
2
  class SidebarRegion < LayoutComponent
3
- emits -> (block) {
4
- add_class('sidebar-region')
5
- add_class(config.try(:[], :class))
6
- div(id: dom_id, class: class_names) {
7
- block.call(self) if block
8
- }
3
+ contains -> (&block) {
4
+ block.call(self) if block
9
5
  }
10
6
  end
11
7
  end
@@ -1,10 +1,7 @@
1
1
  module ExpressAdmin
2
2
  class VBox < LayoutComponent
3
-
4
- emits -> (contents) {
5
- div(container_div_attributes) {
6
- contents.call(self) if contents
7
- }
3
+ contains -> (&block) {
4
+ block.call(self) if block
8
5
  }
9
6
  end
10
- end
7
+ end
@@ -1,9 +1,7 @@
1
1
  module ExpressAdmin
2
2
  class MainRegion < ExpressTemplates::Components::Configurable
3
- emits -> (block) {
4
- div(class: 'main-region') {
5
- block.call(self) if block
6
- }
3
+ contains -> (&block) {
4
+ block.call(self) if block
7
5
  }
8
6
  end
9
7
  end
@@ -1,24 +1,12 @@
1
1
  module ExpressAdmin
2
- class MegaMenuComponent < ExpressTemplates::Components::Base
3
- # %h1 "Modules"
2
+ class MegaMenu < ExpressTemplates::Components::Base
3
+ tag :li
4
4
 
5
- # - if admin_menus.any?
6
- # %nav
7
- # %ul
8
- # - admin_menus.each do |menu|
9
- # %li
10
- # = link_to eval(menu.main.path) do
11
- # %i.icon{class: "icon-express_#{menu.main.title.downcase}"}
12
- # %span= menu.main.title
13
- # - else
14
- # .empty-state-wrapper
15
- # %p.lead.text-muted No modules added yet.
16
- # %p
17
- # = link_to app_express.addons_path, class: 'button success radius' do
18
- # %span.icon.ion-plus
19
- # Add Module
5
+ before_build -> {
6
+ add_class('has-sub-menu')
7
+ }
20
8
 
21
- emits -> {
9
+ contains -> {
22
10
  menu_wrapper {
23
11
  if helpers.admin_menus.any?
24
12
  helpers.admin_menus.each do |menu|
@@ -62,6 +50,5 @@ module ExpressAdmin
62
50
  }
63
51
  }
64
52
  end
65
-
66
53
  end
67
54
  end