avo 1.24.2 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of avo might be problematic. Click here for more details.

Files changed (715) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +11 -2
  3. data/Gemfile.lock +21 -6
  4. data/README.md +33 -28
  5. data/app/assets/stylesheets/avo.css +7 -2
  6. data/app/assets/stylesheets/css/breadcrumbs.css +6 -2
  7. data/app/assets/stylesheets/css/buttons.css +16 -0
  8. data/app/assets/stylesheets/css/fonts.css +42 -16
  9. data/app/assets/stylesheets/css/pagination.css +9 -9
  10. data/app/assets/stylesheets/css/search.css +18 -7
  11. data/app/assets/stylesheets/css/tooltips.css +1 -0
  12. data/app/assets/stylesheets/css/typography.css +4 -2
  13. data/app/assets/svgs/bell.svg +3 -0
  14. data/app/assets/svgs/dashboards-icon.svg +6 -0
  15. data/app/assets/svgs/detach.svg +8 -0
  16. data/app/assets/svgs/edit.svg +5 -1
  17. data/app/assets/svgs/grid-empty-state.svg +37 -0
  18. data/app/assets/svgs/grid-view-type.svg +5 -0
  19. data/app/assets/svgs/heroicons/outline/academic-cap.svg +5 -0
  20. data/app/assets/svgs/heroicons/outline/adjustments.svg +3 -0
  21. data/app/assets/svgs/heroicons/outline/annotation.svg +3 -0
  22. data/app/assets/svgs/heroicons/outline/archive.svg +3 -0
  23. data/app/assets/svgs/heroicons/outline/arrow-circle-down.svg +3 -0
  24. data/app/assets/svgs/heroicons/outline/arrow-circle-left.svg +3 -0
  25. data/app/assets/svgs/heroicons/outline/arrow-circle-right.svg +3 -0
  26. data/app/assets/svgs/heroicons/outline/arrow-circle-up.svg +3 -0
  27. data/app/assets/svgs/heroicons/outline/arrow-down.svg +3 -0
  28. data/app/assets/svgs/heroicons/outline/arrow-left.svg +3 -0
  29. data/app/assets/svgs/heroicons/outline/arrow-narrow-down.svg +3 -0
  30. data/app/assets/svgs/heroicons/outline/arrow-narrow-left.svg +3 -0
  31. data/app/assets/svgs/heroicons/outline/arrow-narrow-right.svg +3 -0
  32. data/app/assets/svgs/heroicons/outline/arrow-narrow-up.svg +3 -0
  33. data/app/assets/svgs/heroicons/outline/arrow-right.svg +3 -0
  34. data/app/assets/svgs/heroicons/outline/arrow-sm-down.svg +3 -0
  35. data/app/assets/svgs/heroicons/outline/arrow-sm-left.svg +3 -0
  36. data/app/assets/svgs/heroicons/outline/arrow-sm-right.svg +3 -0
  37. data/app/assets/svgs/heroicons/outline/arrow-sm-up.svg +3 -0
  38. data/app/assets/svgs/heroicons/outline/arrow-up.svg +3 -0
  39. data/app/assets/svgs/heroicons/outline/arrows-expand.svg +3 -0
  40. data/app/assets/svgs/heroicons/outline/at-symbol.svg +3 -0
  41. data/app/assets/svgs/heroicons/outline/backspace.svg +3 -0
  42. data/app/assets/svgs/heroicons/outline/badge-check.svg +3 -0
  43. data/app/assets/svgs/heroicons/outline/ban.svg +3 -0
  44. data/app/assets/svgs/heroicons/outline/beaker.svg +3 -0
  45. data/app/assets/svgs/heroicons/outline/bell.svg +3 -0
  46. data/app/assets/svgs/heroicons/outline/book-open.svg +3 -0
  47. data/app/assets/svgs/heroicons/outline/bookmark-alt.svg +3 -0
  48. data/app/assets/svgs/heroicons/outline/bookmark.svg +3 -0
  49. data/app/assets/svgs/heroicons/outline/briefcase.svg +3 -0
  50. data/app/assets/svgs/heroicons/outline/cake.svg +3 -0
  51. data/app/assets/svgs/heroicons/outline/calculator.svg +3 -0
  52. data/app/assets/svgs/heroicons/outline/calendar.svg +3 -0
  53. data/app/assets/svgs/heroicons/outline/camera.svg +4 -0
  54. data/app/assets/svgs/heroicons/outline/cash.svg +3 -0
  55. data/app/assets/svgs/heroicons/outline/chart-bar.svg +3 -0
  56. data/app/assets/svgs/heroicons/outline/chart-pie.svg +4 -0
  57. data/app/assets/svgs/heroicons/outline/chart-square-bar.svg +3 -0
  58. data/app/assets/svgs/heroicons/outline/chat-alt-2.svg +3 -0
  59. data/app/assets/svgs/heroicons/outline/chat-alt.svg +3 -0
  60. data/app/assets/svgs/heroicons/outline/chat.svg +3 -0
  61. data/app/assets/svgs/heroicons/outline/check-circle.svg +3 -0
  62. data/app/assets/svgs/heroicons/outline/check.svg +3 -0
  63. data/app/assets/svgs/heroicons/outline/chevron-double-down.svg +3 -0
  64. data/app/assets/svgs/heroicons/outline/chevron-double-left.svg +3 -0
  65. data/app/assets/svgs/heroicons/outline/chevron-double-right.svg +3 -0
  66. data/app/assets/svgs/heroicons/outline/chevron-double-up.svg +3 -0
  67. data/app/assets/svgs/heroicons/outline/chevron-down.svg +3 -0
  68. data/app/assets/svgs/heroicons/outline/chevron-left.svg +3 -0
  69. data/app/assets/svgs/heroicons/outline/chevron-right.svg +3 -0
  70. data/app/assets/svgs/heroicons/outline/chevron-up.svg +3 -0
  71. data/app/assets/svgs/heroicons/outline/chip.svg +3 -0
  72. data/app/assets/svgs/heroicons/outline/clipboard-check.svg +3 -0
  73. data/app/assets/svgs/heroicons/outline/clipboard-copy.svg +3 -0
  74. data/app/assets/svgs/heroicons/outline/clipboard-list.svg +3 -0
  75. data/app/assets/svgs/heroicons/outline/clipboard.svg +3 -0
  76. data/app/assets/svgs/heroicons/outline/clock.svg +3 -0
  77. data/app/assets/svgs/heroicons/outline/cloud-download.svg +3 -0
  78. data/app/assets/svgs/heroicons/outline/cloud-upload.svg +3 -0
  79. data/app/assets/svgs/heroicons/outline/cloud.svg +3 -0
  80. data/app/assets/svgs/heroicons/outline/code.svg +3 -0
  81. data/app/assets/svgs/heroicons/outline/cog.svg +4 -0
  82. data/app/assets/svgs/heroicons/outline/collection.svg +3 -0
  83. data/app/assets/svgs/heroicons/outline/color-swatch.svg +3 -0
  84. data/app/assets/svgs/heroicons/outline/credit-card.svg +3 -0
  85. data/app/assets/svgs/heroicons/outline/cube-transparent.svg +3 -0
  86. data/app/assets/svgs/heroicons/outline/cube.svg +3 -0
  87. data/app/assets/svgs/heroicons/outline/currency-bangladeshi.svg +3 -0
  88. data/app/assets/svgs/heroicons/outline/currency-dollar.svg +3 -0
  89. data/app/assets/svgs/heroicons/outline/currency-euro.svg +3 -0
  90. data/app/assets/svgs/heroicons/outline/currency-pound.svg +3 -0
  91. data/app/assets/svgs/heroicons/outline/currency-rupee.svg +3 -0
  92. data/app/assets/svgs/heroicons/outline/currency-yen.svg +3 -0
  93. data/app/assets/svgs/heroicons/outline/cursor-click.svg +3 -0
  94. data/app/assets/svgs/heroicons/outline/database.svg +3 -0
  95. data/app/assets/svgs/heroicons/outline/desktop-computer.svg +3 -0
  96. data/app/assets/svgs/heroicons/outline/device-mobile.svg +3 -0
  97. data/app/assets/svgs/heroicons/outline/device-tablet.svg +3 -0
  98. data/app/assets/svgs/heroicons/outline/document-add.svg +3 -0
  99. data/app/assets/svgs/heroicons/outline/document-download.svg +3 -0
  100. data/app/assets/svgs/heroicons/outline/document-duplicate.svg +3 -0
  101. data/app/assets/svgs/heroicons/outline/document-remove.svg +3 -0
  102. data/app/assets/svgs/heroicons/outline/document-report.svg +3 -0
  103. data/app/assets/svgs/heroicons/outline/document-search.svg +3 -0
  104. data/app/assets/svgs/heroicons/outline/document-text.svg +3 -0
  105. data/app/assets/svgs/heroicons/outline/document.svg +3 -0
  106. data/app/assets/svgs/heroicons/outline/dots-circle-horizontal.svg +3 -0
  107. data/app/assets/svgs/heroicons/outline/dots-horizontal.svg +3 -0
  108. data/app/assets/svgs/heroicons/outline/dots-vertical.svg +3 -0
  109. data/app/assets/svgs/heroicons/outline/download.svg +3 -0
  110. data/app/assets/svgs/heroicons/outline/duplicate.svg +3 -0
  111. data/app/assets/svgs/heroicons/outline/emoji-happy.svg +3 -0
  112. data/app/assets/svgs/heroicons/outline/emoji-sad.svg +3 -0
  113. data/app/assets/svgs/heroicons/outline/exclamation-circle.svg +3 -0
  114. data/app/assets/svgs/heroicons/outline/exclamation.svg +3 -0
  115. data/app/assets/svgs/heroicons/outline/external-link.svg +3 -0
  116. data/app/assets/svgs/heroicons/outline/eye-off.svg +3 -0
  117. data/app/assets/svgs/heroicons/outline/eye.svg +4 -0
  118. data/app/assets/svgs/heroicons/outline/fast-forward.svg +3 -0
  119. data/app/assets/svgs/heroicons/outline/film.svg +3 -0
  120. data/app/assets/svgs/heroicons/outline/filter.svg +3 -0
  121. data/app/assets/svgs/heroicons/outline/finger-print.svg +3 -0
  122. data/app/assets/svgs/heroicons/outline/fire.svg +4 -0
  123. data/app/assets/svgs/heroicons/outline/flag.svg +3 -0
  124. data/app/assets/svgs/heroicons/outline/folder-add.svg +3 -0
  125. data/app/assets/svgs/heroicons/outline/folder-download.svg +3 -0
  126. data/app/assets/svgs/heroicons/outline/folder-open.svg +3 -0
  127. data/app/assets/svgs/heroicons/outline/folder-remove.svg +3 -0
  128. data/app/assets/svgs/heroicons/outline/folder.svg +3 -0
  129. data/app/assets/svgs/heroicons/outline/gift.svg +3 -0
  130. data/app/assets/svgs/heroicons/outline/globe-alt.svg +3 -0
  131. data/app/assets/svgs/heroicons/outline/globe.svg +3 -0
  132. data/app/assets/svgs/heroicons/outline/hand.svg +3 -0
  133. data/app/assets/svgs/heroicons/outline/hashtag.svg +3 -0
  134. data/app/assets/svgs/heroicons/outline/heart.svg +3 -0
  135. data/app/assets/svgs/heroicons/outline/home.svg +3 -0
  136. data/app/assets/svgs/heroicons/outline/identification.svg +3 -0
  137. data/app/assets/svgs/heroicons/outline/inbox-in.svg +3 -0
  138. data/app/assets/svgs/heroicons/outline/inbox.svg +3 -0
  139. data/app/assets/svgs/heroicons/outline/information-circle.svg +3 -0
  140. data/app/assets/svgs/heroicons/outline/key.svg +3 -0
  141. data/app/assets/svgs/heroicons/outline/library.svg +3 -0
  142. data/app/assets/svgs/heroicons/outline/light-bulb.svg +3 -0
  143. data/app/assets/svgs/heroicons/outline/lightning-bolt.svg +3 -0
  144. data/app/assets/svgs/heroicons/outline/link.svg +3 -0
  145. data/app/assets/svgs/heroicons/outline/location-marker.svg +4 -0
  146. data/app/assets/svgs/heroicons/outline/lock-closed.svg +3 -0
  147. data/app/assets/svgs/heroicons/outline/lock-open.svg +3 -0
  148. data/app/assets/svgs/heroicons/outline/login.svg +3 -0
  149. data/app/assets/svgs/heroicons/outline/logout.svg +3 -0
  150. data/app/assets/svgs/heroicons/outline/mail-open.svg +3 -0
  151. data/app/assets/svgs/heroicons/outline/mail.svg +3 -0
  152. data/app/assets/svgs/heroicons/outline/map.svg +3 -0
  153. data/app/assets/svgs/heroicons/outline/menu-alt-1.svg +3 -0
  154. data/app/assets/svgs/heroicons/outline/menu-alt-2.svg +3 -0
  155. data/app/assets/svgs/heroicons/outline/menu-alt-3.svg +3 -0
  156. data/app/assets/svgs/heroicons/outline/menu-alt-4.svg +3 -0
  157. data/app/assets/svgs/heroicons/outline/menu.svg +3 -0
  158. data/app/assets/svgs/heroicons/outline/microphone.svg +3 -0
  159. data/app/assets/svgs/heroicons/outline/minus-circle.svg +3 -0
  160. data/app/assets/svgs/heroicons/outline/minus-sm.svg +3 -0
  161. data/app/assets/svgs/heroicons/outline/minus.svg +3 -0
  162. data/app/assets/svgs/heroicons/outline/moon.svg +3 -0
  163. data/app/assets/svgs/heroicons/outline/music-note.svg +3 -0
  164. data/app/assets/svgs/heroicons/outline/newspaper.svg +3 -0
  165. data/app/assets/svgs/heroicons/outline/office-building.svg +3 -0
  166. data/app/assets/svgs/heroicons/outline/paper-airplane.svg +3 -0
  167. data/app/assets/svgs/heroicons/outline/paper-clip.svg +3 -0
  168. data/app/assets/svgs/heroicons/outline/pause.svg +3 -0
  169. data/app/assets/svgs/heroicons/outline/pencil-alt.svg +3 -0
  170. data/app/assets/svgs/heroicons/outline/pencil.svg +3 -0
  171. data/app/assets/svgs/heroicons/outline/phone-incoming.svg +3 -0
  172. data/app/assets/svgs/heroicons/outline/phone-missed-call.svg +3 -0
  173. data/app/assets/svgs/heroicons/outline/phone-outgoing.svg +3 -0
  174. data/app/assets/svgs/heroicons/outline/phone.svg +3 -0
  175. data/app/assets/svgs/heroicons/outline/photograph.svg +3 -0
  176. data/app/assets/svgs/heroicons/outline/play.svg +4 -0
  177. data/app/assets/svgs/heroicons/outline/plus-circle.svg +3 -0
  178. data/app/assets/svgs/heroicons/outline/plus-sm.svg +3 -0
  179. data/app/assets/svgs/heroicons/outline/plus.svg +3 -0
  180. data/app/assets/svgs/heroicons/outline/presentation-chart-bar.svg +3 -0
  181. data/app/assets/svgs/heroicons/outline/presentation-chart-line.svg +3 -0
  182. data/app/assets/svgs/heroicons/outline/printer.svg +3 -0
  183. data/app/assets/svgs/heroicons/outline/puzzle.svg +3 -0
  184. data/app/assets/svgs/heroicons/outline/qrcode.svg +3 -0
  185. data/app/assets/svgs/heroicons/outline/question-mark-circle.svg +3 -0
  186. data/app/assets/svgs/heroicons/outline/receipt-refund.svg +3 -0
  187. data/app/assets/svgs/heroicons/outline/receipt-tax.svg +3 -0
  188. data/app/assets/svgs/heroicons/outline/refresh.svg +3 -0
  189. data/app/assets/svgs/heroicons/outline/reply.svg +3 -0
  190. data/app/assets/svgs/heroicons/outline/rewind.svg +3 -0
  191. data/app/assets/svgs/heroicons/outline/rss.svg +3 -0
  192. data/app/assets/svgs/heroicons/outline/save-as.svg +3 -0
  193. data/app/assets/svgs/heroicons/outline/save.svg +3 -0
  194. data/app/assets/svgs/heroicons/outline/scale.svg +3 -0
  195. data/app/assets/svgs/heroicons/outline/scissors.svg +3 -0
  196. data/app/assets/svgs/heroicons/outline/search-circle.svg +3 -0
  197. data/app/assets/svgs/heroicons/outline/search.svg +3 -0
  198. data/app/assets/svgs/heroicons/outline/selector.svg +3 -0
  199. data/app/assets/svgs/heroicons/outline/server.svg +3 -0
  200. data/app/assets/svgs/heroicons/outline/share.svg +3 -0
  201. data/app/assets/svgs/heroicons/outline/shield-check.svg +3 -0
  202. data/app/assets/svgs/heroicons/outline/shield-exclamation.svg +3 -0
  203. data/app/assets/svgs/heroicons/outline/shopping-bag.svg +3 -0
  204. data/app/assets/svgs/heroicons/outline/shopping-cart.svg +3 -0
  205. data/app/assets/svgs/heroicons/outline/sort-ascending.svg +3 -0
  206. data/app/assets/svgs/heroicons/outline/sort-descending.svg +3 -0
  207. data/app/assets/svgs/heroicons/outline/sparkles.svg +3 -0
  208. data/app/assets/svgs/heroicons/outline/speakerphone.svg +3 -0
  209. data/app/assets/svgs/heroicons/outline/star.svg +3 -0
  210. data/app/assets/svgs/heroicons/outline/status-offline.svg +3 -0
  211. data/app/assets/svgs/heroicons/outline/status-online.svg +3 -0
  212. data/app/assets/svgs/heroicons/outline/stop.svg +4 -0
  213. data/app/assets/svgs/heroicons/outline/sun.svg +3 -0
  214. data/app/assets/svgs/heroicons/outline/support.svg +3 -0
  215. data/app/assets/svgs/heroicons/outline/switch-horizontal.svg +3 -0
  216. data/app/assets/svgs/heroicons/outline/switch-vertical.svg +3 -0
  217. data/app/assets/svgs/heroicons/outline/table.svg +3 -0
  218. data/app/assets/svgs/heroicons/outline/tag.svg +3 -0
  219. data/app/assets/svgs/heroicons/outline/template.svg +3 -0
  220. data/app/assets/svgs/heroicons/outline/terminal.svg +3 -0
  221. data/app/assets/svgs/heroicons/outline/thumb-down.svg +3 -0
  222. data/app/assets/svgs/heroicons/outline/thumb-up.svg +3 -0
  223. data/app/assets/svgs/heroicons/outline/ticket.svg +3 -0
  224. data/app/assets/svgs/heroicons/outline/translate.svg +3 -0
  225. data/app/assets/svgs/heroicons/outline/trash.svg +3 -0
  226. data/app/assets/svgs/heroicons/outline/trending-down.svg +3 -0
  227. data/app/assets/svgs/heroicons/outline/trending-up.svg +3 -0
  228. data/app/assets/svgs/heroicons/outline/truck.svg +4 -0
  229. data/app/assets/svgs/heroicons/outline/upload.svg +3 -0
  230. data/app/assets/svgs/heroicons/outline/user-add.svg +3 -0
  231. data/app/assets/svgs/heroicons/outline/user-circle.svg +3 -0
  232. data/app/assets/svgs/heroicons/outline/user-group.svg +3 -0
  233. data/app/assets/svgs/heroicons/outline/user-remove.svg +3 -0
  234. data/app/assets/svgs/heroicons/outline/user.svg +3 -0
  235. data/app/assets/svgs/heroicons/outline/users.svg +3 -0
  236. data/app/assets/svgs/heroicons/outline/variable.svg +3 -0
  237. data/app/assets/svgs/heroicons/outline/video-camera.svg +3 -0
  238. data/app/assets/svgs/heroicons/outline/view-boards.svg +3 -0
  239. data/app/assets/svgs/heroicons/outline/view-grid-add.svg +3 -0
  240. data/app/assets/svgs/heroicons/outline/view-grid.svg +3 -0
  241. data/app/assets/svgs/heroicons/outline/view-list.svg +3 -0
  242. data/app/assets/svgs/heroicons/outline/volume-off.svg +4 -0
  243. data/app/assets/svgs/heroicons/outline/volume-up.svg +3 -0
  244. data/app/assets/svgs/heroicons/outline/wifi.svg +3 -0
  245. data/app/assets/svgs/heroicons/outline/x-circle.svg +3 -0
  246. data/app/assets/svgs/heroicons/outline/x.svg +3 -0
  247. data/app/assets/svgs/heroicons/outline/zoom-in.svg +3 -0
  248. data/app/assets/svgs/heroicons/outline/zoom-out.svg +3 -0
  249. data/app/assets/svgs/heroicons/solid/academic-cap.svg +3 -0
  250. data/app/assets/svgs/heroicons/solid/adjustments.svg +3 -0
  251. data/app/assets/svgs/heroicons/solid/annotation.svg +3 -0
  252. data/app/assets/svgs/heroicons/solid/archive.svg +4 -0
  253. data/app/assets/svgs/heroicons/solid/arrow-circle-down.svg +3 -0
  254. data/app/assets/svgs/heroicons/solid/arrow-circle-left.svg +3 -0
  255. data/app/assets/svgs/heroicons/solid/arrow-circle-right.svg +3 -0
  256. data/app/assets/svgs/heroicons/solid/arrow-circle-up.svg +3 -0
  257. data/app/assets/svgs/heroicons/solid/arrow-down.svg +3 -0
  258. data/app/assets/svgs/heroicons/solid/arrow-left.svg +3 -0
  259. data/app/assets/svgs/heroicons/solid/arrow-narrow-down.svg +3 -0
  260. data/app/assets/svgs/heroicons/solid/arrow-narrow-left.svg +3 -0
  261. data/app/assets/svgs/heroicons/solid/arrow-narrow-right.svg +3 -0
  262. data/app/assets/svgs/heroicons/solid/arrow-narrow-up.svg +3 -0
  263. data/app/assets/svgs/heroicons/solid/arrow-right.svg +3 -0
  264. data/app/assets/svgs/heroicons/solid/arrow-sm-down.svg +3 -0
  265. data/app/assets/svgs/heroicons/solid/arrow-sm-left.svg +3 -0
  266. data/app/assets/svgs/heroicons/solid/arrow-sm-right.svg +3 -0
  267. data/app/assets/svgs/heroicons/solid/arrow-sm-up.svg +3 -0
  268. data/app/assets/svgs/heroicons/solid/arrow-up.svg +3 -0
  269. data/app/assets/svgs/heroicons/solid/arrows-expand.svg +3 -0
  270. data/app/assets/svgs/heroicons/solid/at-symbol.svg +3 -0
  271. data/app/assets/svgs/heroicons/solid/backspace.svg +3 -0
  272. data/app/assets/svgs/heroicons/solid/badge-check.svg +3 -0
  273. data/app/assets/svgs/heroicons/solid/ban.svg +3 -0
  274. data/app/assets/svgs/heroicons/solid/beaker.svg +3 -0
  275. data/app/assets/svgs/heroicons/solid/bell.svg +3 -0
  276. data/app/assets/svgs/heroicons/solid/book-open.svg +3 -0
  277. data/app/assets/svgs/heroicons/solid/bookmark-alt.svg +3 -0
  278. data/app/assets/svgs/heroicons/solid/bookmark.svg +3 -0
  279. data/app/assets/svgs/heroicons/solid/briefcase.svg +4 -0
  280. data/app/assets/svgs/heroicons/solid/cake.svg +3 -0
  281. data/app/assets/svgs/heroicons/solid/calculator.svg +3 -0
  282. data/app/assets/svgs/heroicons/solid/calendar.svg +3 -0
  283. data/app/assets/svgs/heroicons/solid/camera.svg +3 -0
  284. data/app/assets/svgs/heroicons/solid/cash.svg +3 -0
  285. data/app/assets/svgs/heroicons/solid/chart-bar.svg +3 -0
  286. data/app/assets/svgs/heroicons/solid/chart-pie.svg +4 -0
  287. data/app/assets/svgs/heroicons/solid/chart-square-bar.svg +3 -0
  288. data/app/assets/svgs/heroicons/solid/chat-alt-2.svg +4 -0
  289. data/app/assets/svgs/heroicons/solid/chat-alt.svg +3 -0
  290. data/app/assets/svgs/heroicons/solid/chat.svg +3 -0
  291. data/app/assets/svgs/heroicons/solid/check-circle.svg +3 -0
  292. data/app/assets/svgs/heroicons/solid/check.svg +3 -0
  293. data/app/assets/svgs/heroicons/solid/chevron-double-down.svg +3 -0
  294. data/app/assets/svgs/heroicons/solid/chevron-double-left.svg +3 -0
  295. data/app/assets/svgs/heroicons/solid/chevron-double-right.svg +4 -0
  296. data/app/assets/svgs/heroicons/solid/chevron-double-up.svg +3 -0
  297. data/app/assets/svgs/heroicons/solid/chevron-down.svg +3 -0
  298. data/app/assets/svgs/heroicons/solid/chevron-left.svg +3 -0
  299. data/app/assets/svgs/heroicons/solid/chevron-right.svg +3 -0
  300. data/app/assets/svgs/heroicons/solid/chevron-up.svg +3 -0
  301. data/app/assets/svgs/heroicons/solid/chip.svg +4 -0
  302. data/app/assets/svgs/heroicons/solid/clipboard-check.svg +4 -0
  303. data/app/assets/svgs/heroicons/solid/clipboard-copy.svg +4 -0
  304. data/app/assets/svgs/heroicons/solid/clipboard-list.svg +4 -0
  305. data/app/assets/svgs/heroicons/solid/clipboard.svg +4 -0
  306. data/app/assets/svgs/heroicons/solid/clock.svg +3 -0
  307. data/app/assets/svgs/heroicons/solid/cloud-download.svg +3 -0
  308. data/app/assets/svgs/heroicons/solid/cloud-upload.svg +4 -0
  309. data/app/assets/svgs/heroicons/solid/cloud.svg +3 -0
  310. data/app/assets/svgs/heroicons/solid/code.svg +3 -0
  311. data/app/assets/svgs/heroicons/solid/cog.svg +3 -0
  312. data/app/assets/svgs/heroicons/solid/collection.svg +3 -0
  313. data/app/assets/svgs/heroicons/solid/color-swatch.svg +3 -0
  314. data/app/assets/svgs/heroicons/solid/credit-card.svg +4 -0
  315. data/app/assets/svgs/heroicons/solid/cube-transparent.svg +3 -0
  316. data/app/assets/svgs/heroicons/solid/cube.svg +3 -0
  317. data/app/assets/svgs/heroicons/solid/currency-bangladeshi.svg +3 -0
  318. data/app/assets/svgs/heroicons/solid/currency-dollar.svg +4 -0
  319. data/app/assets/svgs/heroicons/solid/currency-euro.svg +3 -0
  320. data/app/assets/svgs/heroicons/solid/currency-pound.svg +3 -0
  321. data/app/assets/svgs/heroicons/solid/currency-rupee.svg +3 -0
  322. data/app/assets/svgs/heroicons/solid/currency-yen.svg +3 -0
  323. data/app/assets/svgs/heroicons/solid/cursor-click.svg +3 -0
  324. data/app/assets/svgs/heroicons/solid/database.svg +5 -0
  325. data/app/assets/svgs/heroicons/solid/desktop-computer.svg +3 -0
  326. data/app/assets/svgs/heroicons/solid/device-mobile.svg +3 -0
  327. data/app/assets/svgs/heroicons/solid/device-tablet.svg +3 -0
  328. data/app/assets/svgs/heroicons/solid/document-add.svg +3 -0
  329. data/app/assets/svgs/heroicons/solid/document-download.svg +3 -0
  330. data/app/assets/svgs/heroicons/solid/document-duplicate.svg +4 -0
  331. data/app/assets/svgs/heroicons/solid/document-remove.svg +3 -0
  332. data/app/assets/svgs/heroicons/solid/document-report.svg +3 -0
  333. data/app/assets/svgs/heroicons/solid/document-search.svg +4 -0
  334. data/app/assets/svgs/heroicons/solid/document-text.svg +3 -0
  335. data/app/assets/svgs/heroicons/solid/document.svg +3 -0
  336. data/app/assets/svgs/heroicons/solid/dots-circle-horizontal.svg +3 -0
  337. data/app/assets/svgs/heroicons/solid/dots-horizontal.svg +3 -0
  338. data/app/assets/svgs/heroicons/solid/dots-vertical.svg +3 -0
  339. data/app/assets/svgs/heroicons/solid/download.svg +3 -0
  340. data/app/assets/svgs/heroicons/solid/duplicate.svg +4 -0
  341. data/app/assets/svgs/heroicons/solid/emoji-happy.svg +3 -0
  342. data/app/assets/svgs/heroicons/solid/emoji-sad.svg +3 -0
  343. data/app/assets/svgs/heroicons/solid/exclamation-circle.svg +3 -0
  344. data/app/assets/svgs/heroicons/solid/exclamation.svg +3 -0
  345. data/app/assets/svgs/heroicons/solid/external-link.svg +4 -0
  346. data/app/assets/svgs/heroicons/solid/eye-off.svg +4 -0
  347. data/app/assets/svgs/heroicons/solid/eye.svg +4 -0
  348. data/app/assets/svgs/heroicons/solid/fast-forward.svg +3 -0
  349. data/app/assets/svgs/heroicons/solid/film.svg +3 -0
  350. data/app/assets/svgs/heroicons/solid/filter.svg +3 -0
  351. data/app/assets/svgs/heroicons/solid/finger-print.svg +5 -0
  352. data/app/assets/svgs/heroicons/solid/fire.svg +3 -0
  353. data/app/assets/svgs/heroicons/solid/flag.svg +3 -0
  354. data/app/assets/svgs/heroicons/solid/folder-add.svg +3 -0
  355. data/app/assets/svgs/heroicons/solid/folder-download.svg +3 -0
  356. data/app/assets/svgs/heroicons/solid/folder-open.svg +4 -0
  357. data/app/assets/svgs/heroicons/solid/folder-remove.svg +3 -0
  358. data/app/assets/svgs/heroicons/solid/folder.svg +3 -0
  359. data/app/assets/svgs/heroicons/solid/gift.svg +4 -0
  360. data/app/assets/svgs/heroicons/solid/globe-alt.svg +3 -0
  361. data/app/assets/svgs/heroicons/solid/globe.svg +3 -0
  362. data/app/assets/svgs/heroicons/solid/hand.svg +3 -0
  363. data/app/assets/svgs/heroicons/solid/hashtag.svg +3 -0
  364. data/app/assets/svgs/heroicons/solid/heart.svg +3 -0
  365. data/app/assets/svgs/heroicons/solid/home.svg +3 -0
  366. data/app/assets/svgs/heroicons/solid/identification.svg +3 -0
  367. data/app/assets/svgs/heroicons/solid/inbox-in.svg +4 -0
  368. data/app/assets/svgs/heroicons/solid/inbox.svg +3 -0
  369. data/app/assets/svgs/heroicons/solid/information-circle.svg +3 -0
  370. data/app/assets/svgs/heroicons/solid/key.svg +3 -0
  371. data/app/assets/svgs/heroicons/solid/library.svg +3 -0
  372. data/app/assets/svgs/heroicons/solid/light-bulb.svg +3 -0
  373. data/app/assets/svgs/heroicons/solid/lightning-bolt.svg +3 -0
  374. data/app/assets/svgs/heroicons/solid/link.svg +3 -0
  375. data/app/assets/svgs/heroicons/solid/location-marker.svg +3 -0
  376. data/app/assets/svgs/heroicons/solid/lock-closed.svg +3 -0
  377. data/app/assets/svgs/heroicons/solid/lock-open.svg +3 -0
  378. data/app/assets/svgs/heroicons/solid/login.svg +3 -0
  379. data/app/assets/svgs/heroicons/solid/logout.svg +3 -0
  380. data/app/assets/svgs/heroicons/solid/mail-open.svg +3 -0
  381. data/app/assets/svgs/heroicons/solid/mail.svg +4 -0
  382. data/app/assets/svgs/heroicons/solid/map.svg +3 -0
  383. data/app/assets/svgs/heroicons/solid/menu-alt-1.svg +3 -0
  384. data/app/assets/svgs/heroicons/solid/menu-alt-2.svg +3 -0
  385. data/app/assets/svgs/heroicons/solid/menu-alt-3.svg +3 -0
  386. data/app/assets/svgs/heroicons/solid/menu-alt-4.svg +3 -0
  387. data/app/assets/svgs/heroicons/solid/menu.svg +3 -0
  388. data/app/assets/svgs/heroicons/solid/microphone.svg +3 -0
  389. data/app/assets/svgs/heroicons/solid/minus-circle.svg +3 -0
  390. data/app/assets/svgs/heroicons/solid/minus-sm.svg +3 -0
  391. data/app/assets/svgs/heroicons/solid/minus.svg +3 -0
  392. data/app/assets/svgs/heroicons/solid/moon.svg +3 -0
  393. data/app/assets/svgs/heroicons/solid/music-note.svg +3 -0
  394. data/app/assets/svgs/heroicons/solid/newspaper.svg +4 -0
  395. data/app/assets/svgs/heroicons/solid/office-building.svg +3 -0
  396. data/app/assets/svgs/heroicons/solid/paper-airplane.svg +3 -0
  397. data/app/assets/svgs/heroicons/solid/paper-clip.svg +3 -0
  398. data/app/assets/svgs/heroicons/solid/pause.svg +3 -0
  399. data/app/assets/svgs/heroicons/solid/pencil-alt.svg +4 -0
  400. data/app/assets/svgs/heroicons/solid/pencil.svg +3 -0
  401. data/app/assets/svgs/heroicons/solid/phone-incoming.svg +4 -0
  402. data/app/assets/svgs/heroicons/solid/phone-missed-call.svg +4 -0
  403. data/app/assets/svgs/heroicons/solid/phone-outgoing.svg +4 -0
  404. data/app/assets/svgs/heroicons/solid/phone.svg +3 -0
  405. data/app/assets/svgs/heroicons/solid/photograph.svg +3 -0
  406. data/app/assets/svgs/heroicons/solid/play.svg +3 -0
  407. data/app/assets/svgs/heroicons/solid/plus-circle.svg +3 -0
  408. data/app/assets/svgs/heroicons/solid/plus-sm.svg +3 -0
  409. data/app/assets/svgs/heroicons/solid/plus.svg +3 -0
  410. data/app/assets/svgs/heroicons/solid/presentation-chart-bar.svg +3 -0
  411. data/app/assets/svgs/heroicons/solid/presentation-chart-line.svg +3 -0
  412. data/app/assets/svgs/heroicons/solid/printer.svg +3 -0
  413. data/app/assets/svgs/heroicons/solid/puzzle.svg +3 -0
  414. data/app/assets/svgs/heroicons/solid/qrcode.svg +4 -0
  415. data/app/assets/svgs/heroicons/solid/question-mark-circle.svg +3 -0
  416. data/app/assets/svgs/heroicons/solid/receipt-refund.svg +3 -0
  417. data/app/assets/svgs/heroicons/solid/receipt-tax.svg +3 -0
  418. data/app/assets/svgs/heroicons/solid/refresh.svg +3 -0
  419. data/app/assets/svgs/heroicons/solid/reply.svg +3 -0
  420. data/app/assets/svgs/heroicons/solid/rewind.svg +3 -0
  421. data/app/assets/svgs/heroicons/solid/rss.svg +4 -0
  422. data/app/assets/svgs/heroicons/solid/save-as.svg +4 -0
  423. data/app/assets/svgs/heroicons/solid/save.svg +3 -0
  424. data/app/assets/svgs/heroicons/solid/scale.svg +3 -0
  425. data/app/assets/svgs/heroicons/solid/scissors.svg +4 -0
  426. data/app/assets/svgs/heroicons/solid/search-circle.svg +4 -0
  427. data/app/assets/svgs/heroicons/solid/search.svg +3 -0
  428. data/app/assets/svgs/heroicons/solid/selector.svg +3 -0
  429. data/app/assets/svgs/heroicons/solid/server.svg +3 -0
  430. data/app/assets/svgs/heroicons/solid/share.svg +3 -0
  431. data/app/assets/svgs/heroicons/solid/shield-check.svg +3 -0
  432. data/app/assets/svgs/heroicons/solid/shield-exclamation.svg +3 -0
  433. data/app/assets/svgs/heroicons/solid/shopping-bag.svg +3 -0
  434. data/app/assets/svgs/heroicons/solid/shopping-cart.svg +3 -0
  435. data/app/assets/svgs/heroicons/solid/sort-ascending.svg +3 -0
  436. data/app/assets/svgs/heroicons/solid/sort-descending.svg +3 -0
  437. data/app/assets/svgs/heroicons/solid/sparkles.svg +3 -0
  438. data/app/assets/svgs/heroicons/solid/speakerphone.svg +3 -0
  439. data/app/assets/svgs/heroicons/solid/star.svg +3 -0
  440. data/app/assets/svgs/heroicons/solid/status-offline.svg +3 -0
  441. data/app/assets/svgs/heroicons/solid/status-online.svg +3 -0
  442. data/app/assets/svgs/heroicons/solid/stop.svg +3 -0
  443. data/app/assets/svgs/heroicons/solid/sun.svg +3 -0
  444. data/app/assets/svgs/heroicons/solid/support.svg +3 -0
  445. data/app/assets/svgs/heroicons/solid/switch-horizontal.svg +3 -0
  446. data/app/assets/svgs/heroicons/solid/switch-vertical.svg +3 -0
  447. data/app/assets/svgs/heroicons/solid/table.svg +3 -0
  448. data/app/assets/svgs/heroicons/solid/tag.svg +3 -0
  449. data/app/assets/svgs/heroicons/solid/template.svg +3 -0
  450. data/app/assets/svgs/heroicons/solid/terminal.svg +3 -0
  451. data/app/assets/svgs/heroicons/solid/thumb-down.svg +3 -0
  452. data/app/assets/svgs/heroicons/solid/thumb-up.svg +3 -0
  453. data/app/assets/svgs/heroicons/solid/ticket.svg +3 -0
  454. data/app/assets/svgs/heroicons/solid/translate.svg +3 -0
  455. data/app/assets/svgs/heroicons/solid/trash.svg +3 -0
  456. data/app/assets/svgs/heroicons/solid/trending-down.svg +3 -0
  457. data/app/assets/svgs/heroicons/solid/trending-up.svg +3 -0
  458. data/app/assets/svgs/heroicons/solid/truck.svg +4 -0
  459. data/app/assets/svgs/heroicons/solid/upload.svg +3 -0
  460. data/app/assets/svgs/heroicons/solid/user-add.svg +3 -0
  461. data/app/assets/svgs/heroicons/solid/user-circle.svg +3 -0
  462. data/app/assets/svgs/heroicons/solid/user-group.svg +3 -0
  463. data/app/assets/svgs/heroicons/solid/user-remove.svg +3 -0
  464. data/app/assets/svgs/heroicons/solid/user.svg +3 -0
  465. data/app/assets/svgs/heroicons/solid/users.svg +3 -0
  466. data/app/assets/svgs/heroicons/solid/variable.svg +3 -0
  467. data/app/assets/svgs/heroicons/solid/video-camera.svg +3 -0
  468. data/app/assets/svgs/heroicons/solid/view-boards.svg +3 -0
  469. data/app/assets/svgs/heroicons/solid/view-grid-add.svg +3 -0
  470. data/app/assets/svgs/heroicons/solid/view-grid.svg +3 -0
  471. data/app/assets/svgs/heroicons/solid/view-list.svg +3 -0
  472. data/app/assets/svgs/heroicons/solid/volume-off.svg +3 -0
  473. data/app/assets/svgs/heroicons/solid/volume-up.svg +3 -0
  474. data/app/assets/svgs/heroicons/solid/wifi.svg +3 -0
  475. data/app/assets/svgs/{x-circle-sm.svg → heroicons/solid/x-circle.svg} +2 -2
  476. data/app/assets/svgs/heroicons/solid/x.svg +3 -0
  477. data/app/assets/svgs/heroicons/solid/zoom-in.svg +4 -0
  478. data/app/assets/svgs/heroicons/solid/zoom-out.svg +4 -0
  479. data/app/assets/svgs/logout.svg +3 -0
  480. data/app/assets/svgs/menu-back.svg +4 -0
  481. data/app/assets/svgs/menu.svg +3 -0
  482. data/app/assets/svgs/resources-icon.svg +13 -0
  483. data/app/assets/svgs/save.svg +8 -1
  484. data/app/assets/svgs/table-empty-state.svg +57 -0
  485. data/app/assets/svgs/table-view-type.svg +6 -0
  486. data/app/assets/svgs/three-dots.svg +5 -0
  487. data/app/assets/svgs/tools-icon.svg +3 -0
  488. data/app/assets/svgs/trash.svg +7 -1
  489. data/app/assets/svgs/user-circle.svg +3 -0
  490. data/app/components/avo/actions_component.html.erb +43 -0
  491. data/app/components/avo/actions_component.rb +14 -0
  492. data/app/components/avo/alert_component.html.erb +25 -1
  493. data/app/components/avo/alert_component.rb +24 -0
  494. data/app/components/avo/blank_field_component.html.erb +0 -0
  495. data/app/components/avo/blank_field_component.rb +4 -0
  496. data/app/components/avo/button_component.html.erb +1 -0
  497. data/app/components/avo/button_component.rb +143 -0
  498. data/app/components/avo/card_component.html.erb +40 -0
  499. data/app/components/avo/card_component.rb +11 -0
  500. data/app/components/avo/common_field_wrapper_component.html.erb +15 -0
  501. data/app/components/avo/common_field_wrapper_component.rb +20 -0
  502. data/app/components/avo/dashboards/divider_component.html.erb +9 -0
  503. data/app/components/avo/dashboards/divider_component.rb +19 -0
  504. data/app/components/avo/edit/field_wrapper_component.html.erb +10 -19
  505. data/app/components/avo/edit/field_wrapper_component.rb +0 -8
  506. data/app/components/avo/empty_state_component.html.erb +12 -0
  507. data/app/components/avo/empty_state_component.rb +24 -0
  508. data/app/components/avo/fields/badge_field/index_component.html.erb +1 -1
  509. data/app/components/avo/fields/belongs_to_field/autocomplete_component.html.erb +1 -1
  510. data/app/components/avo/fields/belongs_to_field/autocomplete_component.rb +10 -2
  511. data/app/components/avo/fields/belongs_to_field/edit_component.html.erb +2 -1
  512. data/app/components/avo/fields/boolean_field/edit_component.html.erb +1 -1
  513. data/app/components/avo/fields/boolean_field/index_component.html.erb +1 -1
  514. data/app/components/avo/fields/boolean_group_field/edit_component.html.erb +1 -1
  515. data/app/components/avo/fields/common/boolean_check_component.html.erb +4 -4
  516. data/app/components/avo/fields/common/boolean_group_component.html.erb +2 -2
  517. data/app/components/avo/fields/common/files_list_viewer_component.html.erb +2 -2
  518. data/app/components/avo/fields/common/gravatar_viewer_component.html.erb +1 -1
  519. data/app/components/avo/fields/common/heading_component.html.erb +2 -2
  520. data/app/components/avo/fields/common/key_value_component.html.erb +2 -2
  521. data/app/components/avo/fields/common/single_file_viewer_component.html.erb +42 -23
  522. data/app/components/avo/fields/common/single_file_viewer_component.rb +34 -6
  523. data/app/components/avo/fields/common/status_viewer_component.html.erb +2 -2
  524. data/app/components/avo/fields/external_image_field/index_component.html.erb +2 -3
  525. data/app/components/avo/fields/file_field/edit_component.html.erb +1 -1
  526. data/app/components/avo/fields/file_field/index_component.html.erb +3 -3
  527. data/app/components/avo/fields/file_field/index_component.rb +11 -0
  528. data/app/components/avo/fields/file_field/show_component.html.erb +1 -1
  529. data/app/components/avo/fields/gravatar_field/index_component.html.erb +1 -1
  530. data/app/components/avo/fields/has_many_field/show_component.html.erb +1 -1
  531. data/app/components/avo/fields/has_one_field/show_component.html.erb +4 -4
  532. data/app/components/avo/fields/heading_field/edit_component.html.erb +1 -1
  533. data/app/components/avo/fields/heading_field/show_component.html.erb +1 -1
  534. data/app/components/avo/fields/progress_bar_field/index_component.html.erb +1 -1
  535. data/app/components/avo/fields/trix_field/edit_component.html.erb +1 -0
  536. data/app/components/avo/filters_component.html.erb +37 -0
  537. data/app/components/avo/filters_component.rb +14 -0
  538. data/app/components/avo/{alerts_component.html.erb → flash_alerts_component.html.erb} +1 -1
  539. data/app/components/avo/flash_alerts_component.rb +9 -0
  540. data/app/components/avo/index/field_wrapper_component.html.erb +8 -2
  541. data/app/components/avo/index/field_wrapper_component.rb +13 -1
  542. data/app/components/avo/index/grid_item_component.html.erb +13 -10
  543. data/app/components/avo/index/ordering/buttons_component.rb +2 -0
  544. data/app/components/avo/index/resource_controls_component.html.erb +11 -6
  545. data/app/components/avo/index/resource_grid_component.html.erb +3 -3
  546. data/app/components/avo/index/resource_table_component.html.erb +10 -14
  547. data/app/components/avo/index/table_row_component.html.erb +1 -1
  548. data/app/components/avo/modal_component.html.erb +9 -7
  549. data/app/{views/avo/partials/_paginator.html.erb → components/avo/paginator_component.html.erb} +16 -16
  550. data/app/components/avo/paginator_component.rb +17 -0
  551. data/app/components/avo/panel_component.html.erb +29 -17
  552. data/app/components/avo/panel_component.rb +17 -2
  553. data/app/components/avo/profile_item_component.html.erb +3 -0
  554. data/app/components/avo/profile_item_component.rb +11 -0
  555. data/app/components/avo/referrer_params_component.html.erb +4 -0
  556. data/app/components/avo/referrer_params_component.rb +9 -0
  557. data/app/components/avo/resource_component.rb +1 -1
  558. data/app/components/avo/show/field_wrapper_component.html.erb +8 -15
  559. data/app/components/avo/show/field_wrapper_component.rb +0 -4
  560. data/app/components/avo/sidebar_component.html.erb +51 -0
  561. data/app/components/avo/sidebar_component.rb +21 -0
  562. data/app/components/avo/sidebar_heading_component.html.erb +3 -0
  563. data/app/components/avo/sidebar_heading_component.rb +11 -0
  564. data/app/components/avo/sidebar_item_component.html.erb +3 -0
  565. data/app/components/avo/sidebar_item_component.rb +10 -0
  566. data/app/components/avo/sidebar_profile_component.html.erb +36 -0
  567. data/app/components/avo/sidebar_profile_component.rb +43 -0
  568. data/app/components/avo/turbo_frame_wrapper_component.html.erb +8 -9
  569. data/app/components/avo/views/resource_edit_component.html.erb +27 -17
  570. data/app/components/avo/views/resource_index_component.html.erb +44 -35
  571. data/app/components/avo/views/resource_new_component.html.erb +31 -16
  572. data/app/components/avo/views/resource_show_component.html.erb +37 -34
  573. data/app/components/avo/views/resource_show_component.rb +2 -3
  574. data/app/controllers/avo/application_controller.rb +44 -13
  575. data/app/controllers/avo/{relations_controller.rb → associations_controller.rb} +15 -7
  576. data/app/controllers/avo/attachments_controller.rb +1 -5
  577. data/app/controllers/avo/base_controller.rb +75 -49
  578. data/app/controllers/avo/dashboards_controller.rb +28 -0
  579. data/app/controllers/avo/private_controller.rb +8 -0
  580. data/app/controllers/avo/search_controller.rb +5 -1
  581. data/app/helpers/avo/application_helper.rb +29 -47
  582. data/app/helpers/avo/resources_helper.rb +2 -2
  583. data/app/helpers/avo/url_helpers.rb +3 -3
  584. data/app/javascript/avo.js +26 -5
  585. data/app/javascript/js/application.js +2 -1
  586. data/app/javascript/js/controllers/actions_picker_controller.js +12 -10
  587. data/app/javascript/js/controllers/dashboard_card_controller.js +33 -0
  588. data/app/javascript/js/controllers/item_selector_controller.js +8 -4
  589. data/app/javascript/js/controllers/mobile_controller.js +9 -0
  590. data/app/javascript/js/controllers/select_controller.js +23 -0
  591. data/app/javascript/js/controllers.js +6 -0
  592. data/app/views/avo/actions/show.html.erb +23 -17
  593. data/app/views/avo/associations/new.html.erb +45 -0
  594. data/app/views/avo/base/_multiple_select_filter.html.erb +5 -1
  595. data/app/views/avo/base/_text_filter.html.erb +3 -1
  596. data/app/views/avo/base/show.html.erb +1 -1
  597. data/app/views/avo/dashboards/_chartkick_card.html.erb +3 -0
  598. data/app/views/avo/dashboards/_metric_card.html.erb +5 -0
  599. data/app/views/avo/dashboards/card.html.erb +3 -0
  600. data/app/views/avo/dashboards/show.html.erb +35 -0
  601. data/app/views/avo/home/failed_to_load.html.erb +21 -1
  602. data/app/views/avo/home/index.html.erb +1 -5
  603. data/app/views/avo/partials/_custom_tools_alert.html.erb +2 -2
  604. data/app/views/avo/partials/_global_search.html.erb +3 -3
  605. data/app/views/avo/partials/_header.html.erb +1 -1
  606. data/app/views/avo/partials/_logo.html.erb +1 -1
  607. data/app/views/avo/partials/_navbar.html.erb +11 -0
  608. data/app/views/avo/partials/_resource_search.html.erb +1 -1
  609. data/app/views/avo/partials/_sortable_component.html.erb +1 -1
  610. data/app/views/avo/partials/_table_header.html.erb +4 -4
  611. data/app/views/avo/partials/_view_toggle_button.html.erb +36 -16
  612. data/app/views/avo/private/_links_and_buttons.html.erb +57 -0
  613. data/app/views/avo/private/design.html.erb +27 -0
  614. data/app/views/layouts/avo/application.html.erb +26 -30
  615. data/avo.gemspec +4 -2
  616. data/bin/dev +7 -6
  617. data/config/routes.rb +19 -11
  618. data/lib/avo/app.rb +38 -4
  619. data/lib/avo/base_action.rb +4 -4
  620. data/lib/avo/base_resource.rb +36 -15
  621. data/lib/avo/configuration.rb +2 -0
  622. data/lib/avo/dashboards/base_card.rb +151 -0
  623. data/lib/avo/dashboards/base_dashboard.rb +71 -0
  624. data/lib/avo/dashboards/base_divider.rb +23 -0
  625. data/lib/avo/dashboards/chartkick_card.rb +77 -0
  626. data/lib/avo/dashboards/metric_card.rb +9 -0
  627. data/lib/avo/dashboards/partial_card.rb +7 -0
  628. data/lib/avo/dynamic_router.rb +3 -0
  629. data/lib/avo/engine.rb +5 -1
  630. data/lib/avo/fields/base_field.rb +20 -7
  631. data/lib/avo/fields/belongs_to_field.rb +2 -2
  632. data/lib/avo/fields/external_image_field.rb +2 -2
  633. data/lib/avo/fields/gravatar_field.rb +2 -2
  634. data/lib/avo/fields/has_base_field.rb +24 -1
  635. data/lib/avo/hosts/dashboard_card.rb +21 -0
  636. data/lib/avo/hosts/dashboard_visibility.rb +19 -0
  637. data/lib/avo/hosts/ordering.rb +1 -1
  638. data/lib/avo/licensing/license.rb +4 -2
  639. data/lib/avo/licensing/pro_license.rb +3 -1
  640. data/lib/avo/version.rb +1 -1
  641. data/lib/avo.rb +24 -0
  642. data/lib/generators/avo/chartkick_card_generator.rb +16 -0
  643. data/lib/generators/avo/dashboard_generator.rb +16 -0
  644. data/lib/generators/avo/metric_card_generator.rb +16 -0
  645. data/lib/generators/avo/partial_card_generator.rb +17 -0
  646. data/lib/generators/avo/templates/cards/chartkick_card.tt +16 -0
  647. data/lib/generators/avo/templates/cards/chartkick_card_sample.tt +26 -0
  648. data/lib/generators/avo/templates/cards/metric_card.tt +8 -0
  649. data/lib/generators/avo/templates/cards/metric_card_sample.tt +38 -0
  650. data/lib/generators/avo/templates/cards/partial_card.tt +8 -0
  651. data/lib/generators/avo/templates/cards/partial_card_partial.tt +8 -0
  652. data/lib/generators/avo/templates/cards/partial_card_sample.tt +8 -0
  653. data/lib/generators/avo/templates/dashboards/dashboard.tt +12 -0
  654. data/lib/generators/avo/templates/locales/avo.en.yml +11 -4
  655. data/lib/generators/avo/templates/locales/avo.nb-NO.yml +5 -2
  656. data/lib/generators/avo/templates/locales/avo.pt-BR.yml +4 -2
  657. data/lib/generators/avo/templates/locales/avo.ro.yml +4 -1
  658. data/lib/generators/avo/templates/tool/sidebar_item.tt +1 -1
  659. data/public/avo-assets/avo.css +1321 -1126
  660. data/public/avo-assets/avo.js +349 -88688
  661. data/public/avo-assets/avo.js.map +3 -3
  662. data/public/avo-assets/fonts/inter-v7-latin-500.eot +0 -0
  663. data/public/avo-assets/fonts/inter-v7-latin-500.svg +351 -0
  664. data/public/avo-assets/fonts/inter-v7-latin-500.ttf +0 -0
  665. data/public/avo-assets/fonts/inter-v7-latin-500.woff +0 -0
  666. data/public/avo-assets/fonts/inter-v7-latin-500.woff2 +0 -0
  667. data/public/avo-assets/fonts/inter-v7-latin-600.eot +0 -0
  668. data/public/avo-assets/fonts/inter-v7-latin-600.svg +351 -0
  669. data/public/avo-assets/fonts/inter-v7-latin-600.ttf +0 -0
  670. data/public/avo-assets/fonts/inter-v7-latin-600.woff +0 -0
  671. data/public/avo-assets/fonts/inter-v7-latin-600.woff2 +0 -0
  672. data/public/avo-assets/fonts/inter-v7-latin-700.eot +0 -0
  673. data/public/avo-assets/fonts/inter-v7-latin-700.svg +352 -0
  674. data/public/avo-assets/fonts/inter-v7-latin-700.ttf +0 -0
  675. data/public/avo-assets/fonts/inter-v7-latin-700.woff +0 -0
  676. data/public/avo-assets/fonts/inter-v7-latin-700.woff2 +0 -0
  677. data/public/avo-assets/fonts/inter-v7-latin-regular.eot +0 -0
  678. data/public/avo-assets/fonts/inter-v7-latin-regular.svg +351 -0
  679. data/public/avo-assets/fonts/inter-v7-latin-regular.ttf +0 -0
  680. data/public/avo-assets/fonts/inter-v7-latin-regular.woff +0 -0
  681. data/public/avo-assets/fonts/inter-v7-latin-regular.woff2 +0 -0
  682. data/public/avo-assets/logo-on-white.png +0 -0
  683. data/public/avo-assets/logo.png +0 -0
  684. metadata +584 -42
  685. data/app/assets/images/avo/logo.png +0 -0
  686. data/app/assets/svgs/check-circle-sm.svg +0 -3
  687. data/app/components/avo/alerts_component.rb +0 -5
  688. data/app/components/avo/fields/common/multiple_file_viewer_component.html.erb +0 -35
  689. data/app/components/avo/fields/common/multiple_file_viewer_component.rb +0 -15
  690. data/app/components/avo/navigation_heading_component.html.erb +0 -3
  691. data/app/components/avo/navigation_heading_component.rb +0 -7
  692. data/app/components/avo/navigation_link_component.html.erb +0 -3
  693. data/app/components/avo/navigation_link_component.rb +0 -11
  694. data/app/javascript/js/toastr.js +0 -10
  695. data/app/views/avo/attachments/show.html.erb +0 -14
  696. data/app/views/avo/base/_actions.html.erb +0 -36
  697. data/app/views/avo/base/_filters.html.erb +0 -34
  698. data/app/views/avo/partials/_a_button.html.erb +0 -7
  699. data/app/views/avo/partials/_a_link.html.erb +0 -7
  700. data/app/views/avo/partials/_empty_state.html.erb +0 -17
  701. data/app/views/avo/partials/_failed_state.html.erb +0 -16
  702. data/app/views/avo/partials/_profile_dropdown.html.erb +0 -25
  703. data/app/views/avo/relations/new.html.erb +0 -31
  704. data/app/views/avo/sidebar/_sidebar.html.erb +0 -31
  705. data/lib/avo/services/panel_service.rb +0 -27
  706. data/public/avo-assets/fonts/nunito-v16-latin-700.eot +0 -0
  707. data/public/avo-assets/fonts/nunito-v16-latin-700.svg +0 -388
  708. data/public/avo-assets/fonts/nunito-v16-latin-700.ttf +0 -0
  709. data/public/avo-assets/fonts/nunito-v16-latin-700.woff +0 -0
  710. data/public/avo-assets/fonts/nunito-v16-latin-700.woff2 +0 -0
  711. data/public/avo-assets/fonts/nunito-v16-latin-regular.eot +0 -0
  712. data/public/avo-assets/fonts/nunito-v16-latin-regular.svg +0 -380
  713. data/public/avo-assets/fonts/nunito-v16-latin-regular.ttf +0 -0
  714. data/public/avo-assets/fonts/nunito-v16-latin-regular.woff +0 -0
  715. data/public/avo-assets/fonts/nunito-v16-latin-regular.woff2 +0 -0
data/lib/avo/engine.rb CHANGED
@@ -24,7 +24,9 @@ module Avo
24
24
  ["app", "avo", "fields"],
25
25
  ["app", "avo", "filters"],
26
26
  ["app", "avo", "actions"],
27
- ["app", "avo", "resources"]
27
+ ["app", "avo", "resources"],
28
+ ["app", "avo", "dashboards"],
29
+ ["app", "avo", "cards"]
28
30
  ].each do |path_params|
29
31
  path = Rails.root.join(*path_params)
30
32
 
@@ -42,6 +44,8 @@ module Avo
42
44
  initializer "avo.reload_avo_files" do |app|
43
45
  if Avo::IN_DEVELOPMENT && ENV["RELOAD_AVO_FILES"]
44
46
  avo_root_path = Avo::Engine.root.to_s
47
+ # This should only be happening when ENV["RELOAD_AVO_FILES"] is true because it loads all the files into memory on every change and makes rails sluggish.
48
+ app.config.autoload_paths += [Avo::Engine.root.join("lib", "avo").to_s]
45
49
  # Register reloader
46
50
  app.reloaders << app.config.file_watcher.new([], {
47
51
  Avo::Engine.root.join("lib", "avo").to_s => ["rb"]
@@ -7,9 +7,10 @@ module Avo
7
7
  include ActionView::Helpers::UrlHelper
8
8
  include Avo::Fields::FieldExtensions::VisibleInDifferentViews
9
9
 
10
- delegate :view_context, to: 'Avo::App'
10
+ delegate :view_context, to: "Avo::App"
11
11
  delegate :main_app, to: :view_context
12
12
  delegate :avo, to: :view_context
13
+ delegate :t, to: ::I18n
13
14
 
14
15
  attr_reader :id
15
16
  attr_reader :block
@@ -48,7 +49,7 @@ module Avo
48
49
  @id = id
49
50
  @name = args[:name]
50
51
  @translation_key = args[:translation_key]
51
- @translation_enabled = false
52
+ @translation_enabled = ::Avo::App.translation_enabled
52
53
  @block = block
53
54
  @required = args[:required] || false
54
55
  @readonly = args[:readonly] || false
@@ -94,18 +95,26 @@ module Avo
94
95
  @translation_key
95
96
  end
96
97
 
98
+ # Getting the name of the resource (user/users, post/posts)
99
+ # We'll first check to see if the user passed a name
100
+ # Secondly we'll try to find a translation key
101
+ # We'll fallback to humanizing the id
97
102
  def name
103
+ default = @id.to_s.humanize(keep_id_suffix: true)
104
+
98
105
  return @name if @name.present?
99
106
 
100
- return I18n.t(translation_key, count: 1).capitalize if translation_key
107
+ return t(translation_key, count: 1, default: default).capitalize if @translation_key
101
108
 
102
- @id.to_s.humanize(keep_id_suffix: true)
109
+ default
103
110
  end
104
111
 
105
112
  def plural_name
106
- return I18n.t(translation_key, count: 2).capitalize if translation_key
113
+ default = name.pluralize
114
+
115
+ return t(translation_key, count: 2, default: default).capitalize if @translation_key
107
116
 
108
- name.pluralize
117
+ default
109
118
  end
110
119
 
111
120
  def placeholder
@@ -181,8 +190,12 @@ module Avo
181
190
  "#{type.camelize}Field"
182
191
  end
183
192
 
193
+ # Try and build the component class or fallback to a blank one
184
194
  def component_for_view(view = :index)
185
- "Avo::Fields::#{view_component_name}::#{view.to_s.camelize}Component".safe_constantize
195
+ component_class = "::Avo::Fields::#{view_component_name}::#{view.to_s.camelize}Component"
196
+ component_class.constantize
197
+ rescue
198
+ ::Avo::BlankFieldComponent
186
199
  end
187
200
 
188
201
  def model_errors
@@ -70,11 +70,11 @@ module Avo
70
70
  @searchable = args[:searchable] == true
71
71
  @polymorphic_as = args[:polymorphic_as]
72
72
  @types = args[:types]
73
- @relation_method = name.to_s.parameterize.underscore
73
+ @relation_method = id.to_s.parameterize.underscore
74
74
  end
75
75
 
76
76
  def searchable
77
- @searchable && ::Avo::App.license.has_with_trial(:searchable_belongs_to)
77
+ @searchable && ::Avo::App.license.has_with_trial(:searchable_associations)
78
78
  end
79
79
 
80
80
  def value
@@ -11,8 +11,8 @@ module Avo
11
11
 
12
12
  @link_to_resource = args[:link_to_resource].present? ? args[:link_to_resource] : false
13
13
 
14
- @width = args[:width].present? ? args[:width] : 32
15
- @height = args[:height].present? ? args[:height] : 32
14
+ @width = args[:width].present? ? args[:width] : 40
15
+ @height = args[:height].present? ? args[:height] : 40
16
16
  @radius = args[:radius].present? ? args[:radius] : 0
17
17
  end
18
18
 
@@ -17,8 +17,8 @@ module Avo
17
17
  hide_on [:edit, :new]
18
18
 
19
19
  @link_to_resource = args[:link_to_resource].present? ? args[:link_to_resource] : false
20
- @rounded = args[:rounded].present? ? args[:rounded] : true
21
- @size = args[:size].present? ? args[:size].to_i : 40
20
+ @rounded = args[:rounded].nil? ? true : args[:rounded]
21
+ @size = args[:size].present? ? args[:size].to_i : 32
22
22
  @default = args[:default].present? ? ERB::Util.url_encode(args[:default]).to_s : ""
23
23
  end
24
24
 
@@ -7,8 +7,13 @@ module Avo
7
7
  def initialize(id, **args, &block)
8
8
  super(id, **args, &block)
9
9
 
10
- @display = args[:display].present? ? args[:display] : :show
11
10
  @scope = args[:scope].present? ? args[:scope] : nil
11
+ @display = args[:display].present? ? args[:display] : :show
12
+ @searchable = args[:searchable] == true
13
+ end
14
+
15
+ def searchable
16
+ @searchable && ::Avo::App.license.has_with_trial(:searchable_associations)
12
17
  end
13
18
 
14
19
  def resource
@@ -23,6 +28,20 @@ module Avo
23
28
  "#{@resource.record_path}/#{id}?turbo_frame=#{turbo_frame}"
24
29
  end
25
30
 
31
+ # The value
32
+ def field_value
33
+ value.send(database_value)
34
+ rescue
35
+ nil
36
+ end
37
+
38
+ # What the user sees in the text field
39
+ def field_label
40
+ value.send(target_resource.class.title)
41
+ rescue
42
+ nil
43
+ end
44
+
26
45
  def target_resource
27
46
  if @model._reflections[id.to_s].klass.present?
28
47
  Avo::App.get_resource_by_model_name @model._reflections[id.to_s].klass.to_s
@@ -32,6 +51,10 @@ module Avo
32
51
  Avo::App.get_resource_by_name id.to_s
33
52
  end
34
53
  end
54
+
55
+ def placeholder
56
+ @placeholder || I18n.t("avo.choose_an_option")
57
+ end
35
58
  end
36
59
  end
37
60
  end
@@ -0,0 +1,21 @@
1
+ require "dry-initializer"
2
+
3
+ module Avo
4
+ module Hosts
5
+ class DashboardCard
6
+ extend Dry::Initializer
7
+
8
+ option :context
9
+ option :range
10
+ option :dashboard
11
+ option :card
12
+ option :params
13
+
14
+ delegate :result, to: :card
15
+
16
+ def compute_result
17
+ instance_exec(&card.query_block)
18
+ end
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,19 @@
1
+ require "dry-initializer"
2
+
3
+ module Avo
4
+ module Hosts
5
+ class DashboardVisibility
6
+ extend Dry::Initializer
7
+
8
+ option :block, default: proc { proc {} }
9
+ option :current_user, default: proc { ::Avo::App.current_user }
10
+ option :context, default: proc { ::Avo::App.context }
11
+ option :dashboard
12
+ option :params, default: proc { ::Avo::App.params }
13
+
14
+ def handle
15
+ instance_exec(&block)
16
+ end
17
+ end
18
+ end
19
+ end
@@ -1,4 +1,4 @@
1
- require 'dry-initializer'
1
+ require "dry-initializer"
2
2
 
3
3
  module Avo
4
4
  module Hosts
@@ -50,12 +50,14 @@ module Avo
50
50
 
51
51
  # Returns if has ability and if is a valid license or app is in development.
52
52
  def has_with_trial(ability)
53
- can(ability) && (valid? || Rails.env.development? || Rails.env.test?)
53
+ return can(ability) && valid? if Rails.env.production?
54
+
55
+ true
54
56
  end
55
57
 
56
58
  # Returns if lacks ability and if is a valid license or app is in development.
57
59
  def lacks_with_trial(ability)
58
- !can(ability) && (valid? || Rails.env.development? || Rails.env.test?)
60
+ !has_with_trial ability
59
61
  end
60
62
  end
61
63
  end
@@ -4,12 +4,14 @@ module Avo
4
4
  def abilities
5
5
  [
6
6
  :authorization,
7
+ :localization,
7
8
  :custom_tools,
8
9
  :custom_fields,
9
10
  :global_search,
10
11
  :enhanced_search_results,
11
- :searchable_belongs_to,
12
+ :searchable_associations,
12
13
  :resource_ordering,
14
+ :dashboards
13
15
  ]
14
16
  end
15
17
  end
data/lib/avo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Avo
2
- VERSION = "1.24.2"
2
+ VERSION = "2.1.0"
3
3
  end
data/lib/avo.rb CHANGED
@@ -5,6 +5,30 @@ require_relative "avo/engine" if defined?(Rails)
5
5
  loader = Zeitwerk::Loader.for_gem
6
6
  loader.setup
7
7
 
8
+ # .//*,,.....,,*/(*
9
+ # **,,..............,*#.
10
+ # ,*,,..... .....*/#.
11
+ # **,,.... ....,*/%%
12
+ # ,**,,....... . ....*/#&%
13
+ # **,,,...... . . ....*/#&&%
14
+ # **,,........ . . ...,//#&&&.
15
+ # */*,,..*//***,,,,*/(,.. .. .....*//%&%&*
16
+ # ,/**,..**/******,,***/(###,...........,//(%&&%.
17
+ # /**,,..((//*****////((##%%%%%*.........*//%%&&%
18
+ # ****,...#/**,,,*,*/(#%##%%%%&&&(*,.....,*/(%&&&/
19
+ # /**,....(/*,,,,,,,*(##%%%%%&&&&&(,.....,*(#&&&&.
20
+ # ,//*,.....(/*,,**//(##%%%%&&&&@&&%/,....,*((&&&&*
21
+ # .//*,,.....(((//(((##%%%&&&&&&&&@#/,....,*/#%&&&#
22
+ # (/**,,......###%%%%%&&&&&&&&&&@#/,,...,,*/#&&&&&
23
+ # (/**,,........%%%%%&&&&&&&&@%(*,...,,,*//(&&&&%.
24
+ # ///*,,,.........,*#&&&&#(/,,.....,,,*//(%&&&&%*
25
+ # (//**,,,.....................,,,,*//(%&&&&&&*
26
+ # *(///**,,,,............,,,,,,**/((&&&&&&&%.
27
+ # ((///*****,,,,,,,,,,,,***//((&&&&&%&%&#
28
+ # .((((////********///(((%&%&&&&%%%%%
29
+ # (############%%%%%%%%%%%%%%%*
30
+ # ,(############%%%%%#*
31
+
8
32
  module Avo
9
33
  ROOT_PATH = Pathname.new(File.join(__dir__, ".."))
10
34
  IN_DEVELOPMENT = ENV["AVO_IN_DEVELOPMENT"] == "1"
@@ -0,0 +1,16 @@
1
+ require "rails/generators"
2
+
3
+ module Generators
4
+ module Avo
5
+ class ChartkickCardGenerator < ::Rails::Generators::NamedBase
6
+ source_root File.expand_path("templates", __dir__)
7
+
8
+ namespace "avo:card:chartkick"
9
+ desc "Add a chartkick card for your Avo dashboard."
10
+
11
+ def handle
12
+ template "cards/chartkick_card_sample.tt", "app/avo/cards/#{name.underscore}.rb"
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,16 @@
1
+ require "rails/generators"
2
+
3
+ module Generators
4
+ module Avo
5
+ class DashboardGenerator < ::Rails::Generators::NamedBase
6
+ source_root File.expand_path("templates", __dir__)
7
+
8
+ namespace "avo:dashboard"
9
+ desc "Add an Avo dashboard to your project."
10
+
11
+ def handle
12
+ template "dashboards/dashboard.tt", "app/avo/dashboards/#{name.underscore}.rb"
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,16 @@
1
+ require "rails/generators"
2
+
3
+ module Generators
4
+ module Avo
5
+ class MetricCardGenerator < ::Rails::Generators::NamedBase
6
+ source_root File.expand_path("templates", __dir__)
7
+
8
+ namespace "avo:card:metric"
9
+ desc "Add a metric card for your Avo dashboard."
10
+
11
+ def handle
12
+ template "cards/metric_card_sample.tt", "app/avo/cards/#{name.underscore}.rb"
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,17 @@
1
+ require "rails/generators"
2
+
3
+ module Generators
4
+ module Avo
5
+ class PartialCardGenerator < ::Rails::Generators::NamedBase
6
+ source_root File.expand_path("templates", __dir__)
7
+
8
+ namespace "avo:card:partial"
9
+ desc "Add a partial card for your Avo dashboard."
10
+
11
+ def handle
12
+ template "cards/partial_card_sample.tt", "app/avo/cards/#{name.underscore}.rb"
13
+ template "cards/partial_card_partial.tt", "app/views/avo/cards/_#{name.underscore}.html.erb"
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,16 @@
1
+ class <%= class_name.camelize %> < Avo::Dashboards::ChartkickCard
2
+ self.id = "<%= name.underscore %>"
3
+ self.label = "<%= name.underscore.humanize %>"
4
+ self.chart_type = :area_chart
5
+
6
+ query do
7
+ data = 3.times.map do |index|
8
+ {
9
+ name: "Batch #{index}",
10
+ data: 17.times.map { |i| [i, Random.rand(32)] }
11
+ }
12
+ end
13
+
14
+ result data
15
+ end
16
+ end
@@ -0,0 +1,26 @@
1
+ class <%= class_name.camelize %> < Avo::Dashboards::ChartkickCard
2
+ self.id = "<%= name.underscore %>"
3
+ self.label = "<%= name.underscore.humanize %>"
4
+ self.chart_type = :area_chart
5
+ # self.description = "Some tiny description"
6
+ # self.cols = 2
7
+ # self.initial_range = 30
8
+ # self.ranges = [7, 30, 60, 365, "TODAY", "MTD", "QTD", "YTD", "ALL"]
9
+ # self.chart_options = { library: { plugins: { legend: { display: true } } } }
10
+ # self.flush = true
11
+
12
+ query do
13
+ points = 16
14
+ i = Time.new.year.to_i - points
15
+ base_data = Array.new(points).map do
16
+ i += 1
17
+ [i.to_s, rand(0..20)]
18
+ end.to_h
19
+
20
+ result [
21
+ { name: "batch 1", data: base_data.map { |k, v| [k, rand(0..20)] }.to_h },
22
+ { name: "batch 2", data: base_data.map { |k, v| [k, rand(0..40)] }.to_h },
23
+ { name: "batch 3", data: base_data.map { |k, v| [k, rand(0..10)] }.to_h }
24
+ ]
25
+ end
26
+ end
@@ -0,0 +1,8 @@
1
+ class <%= class_name.camelize %> < Avo::Dashboards::MetricCard
2
+ self.id = "<%= name.underscore %>"
3
+ self.label = "<%= name.underscore.humanize %>"
4
+
5
+ query do
6
+ result 101
7
+ end
8
+ end
@@ -0,0 +1,38 @@
1
+ class <%= class_name.camelize %> < Avo::Dashboards::MetricCard
2
+ self.id = "<%= name.underscore %>"
3
+ self.label = "<%= name.underscore.humanize %>"
4
+ # self.description = "Some description"
5
+ # self.cols = 1
6
+ # self.initial_range = 30
7
+ # self.ranges = [7, 30, 60, 365, "TODAY", "MTD", "QTD", "YTD", "ALL"]
8
+ # self.prefix = ""
9
+ # self.suffix = ""
10
+
11
+ query do
12
+ # from = Date.today.midnight - 1.week
13
+ # to = DateTime.current
14
+
15
+ # if range.present?
16
+ # if range.to_s == range.to_i.to_s
17
+ # from = DateTime.current - range.to_i.days
18
+ # else
19
+ # case range
20
+ # when "TODAY"
21
+ # from = DateTime.current.beginning_of_day
22
+ # when "MTD"
23
+ # from = DateTime.current.beginning_of_month
24
+ # when "QTD"
25
+ # from = DateTime.current.beginning_of_quarter
26
+ # when "YTD"
27
+ # from = DateTime.current.beginning_of_year
28
+ # when "ALL"
29
+ # from = Time.at(0)
30
+ # end
31
+ # end
32
+ # end
33
+
34
+ # result User.where(created_at: from..to).count
35
+
36
+ result 101
37
+ end
38
+ end
@@ -0,0 +1,8 @@
1
+ class <%= class_name.camelize %> < Avo::Dashboards::PartialCard
2
+ self.id = "<%= name.underscore %>"
3
+ self.label = "<%= name.underscore.humanize %>"
4
+ self.partial = "avo/cards/<%= name.underscore %>"
5
+ # self.display_header = true
6
+ # self.cols = 1
7
+ # self.rows = 1
8
+ end
@@ -0,0 +1,8 @@
1
+ <div class="flex-1 flex p-4">
2
+ <div class="place-self-end">
3
+ Dashboard ID: <%%= @dashboard.id %>
4
+ <br />
5
+ <br />
6
+ Customize this partial under <code class='p-1 rounded bg-gray-500 text-white text-sm'>app/views/avo/cards/_<%= name.underscore %>.html.erb</code>
7
+ </div>
8
+ </div>
@@ -0,0 +1,8 @@
1
+ class <%= class_name.camelize %> < Avo::Dashboards::PartialCard
2
+ self.id = "<%= name.underscore %>"
3
+ self.label = "<%= name.underscore.humanize %>"
4
+ self.partial = "avo/cards/<%= name.underscore %>"
5
+ # self.display_header = true
6
+ # self.cols = 1
7
+ # self.rows = 1
8
+ end
@@ -0,0 +1,12 @@
1
+ class <%= class_name.camelize %> < Avo::Dashboards::BaseDashboard
2
+ self.id = "<%= name.underscore %>"
3
+ self.name = "<%= name.underscore.humanize %>"
4
+ # self.description = "Tiny dashboard description"
5
+ # self.grid_cols = 3
6
+ # self.visible = -> do
7
+ # true
8
+ # end
9
+
10
+ # cards go here
11
+ # card UsersCount
12
+ end
@@ -1,6 +1,7 @@
1
1
  en:
2
2
  avo:
3
3
  dashboard: 'Dashboard'
4
+ dashboards: 'Dashboards'
4
5
  choose_a_country: 'Choose a country'
5
6
  choose_an_option: 'Choose an option'
6
7
  are_you_sure_you_want_to_run_this_option: 'Are you sure you want to run this action?'
@@ -8,16 +9,15 @@ en:
8
9
  run: 'Run'
9
10
  cancel: 'Cancel'
10
11
  action_ran_successfully: 'Action ran successfully!'
11
- resource_details: '%{item} details: %{title}'
12
- update_item: 'update %{item}: %{title}'
12
+ details: "details"
13
13
  unauthorized: 'Unauthorized'
14
14
  attachment_class_attached: '%{attachment_class} attached.'
15
15
  attachment_class_detached: '%{attachment_class} detached.'
16
16
  resource_updated: 'Resource updated'
17
17
  resource_created: 'Resource created'
18
18
  resource_destroyed: 'Resource destroyed'
19
- switch_to_view: 'Switch to %{view_type} view'
20
- click_to_reveal_filters: 'Click to reveal filters'
19
+ switch_to_view: "Switch to %{view_type} view"
20
+ click_to_reveal_filters: "Click to reveal filters"
21
21
  attachment_destroyed: 'Attachment destroyed'
22
22
  failed_to_find_attachment: 'Failed to find attachment'
23
23
  you_missed_something_check_form: 'You might have missed something. Please check the form.'
@@ -44,6 +44,7 @@ en:
44
44
  per_page: 'Per page'
45
45
  more: 'More'
46
46
  attach: 'Attach'
47
+ cancel: 'Cancel'
47
48
  save: 'Save'
48
49
  attach_and_attach_another: 'Attach & Attach another'
49
50
  hide_content: 'Hide content'
@@ -73,6 +74,10 @@ en:
73
74
  zero: 'files'
74
75
  one: 'file'
75
76
  other: 'files'
77
+ people:
78
+ zero: 'peeps'
79
+ one: 'peep'
80
+ other: 'peeps'
76
81
  resource_translations:
77
82
  user:
78
83
  zero: 'users'
@@ -101,3 +106,5 @@ en:
101
106
  lower: Move record lower
102
107
  to_top: Move record to top
103
108
  to_bottom: Move record to bottom
109
+ empty_dashboard_message: Add cards to this dashboard
110
+ no_cards_present: 'No cards present'
@@ -1,6 +1,7 @@
1
1
  nb-NO:
2
2
  avo:
3
3
  dashboard: 'Dashboard'
4
+ dashboards: 'Dashboards'
4
5
  choose_a_country: 'Velg et land'
5
6
  choose_an_option: 'Velg et alternativ'
6
7
  are_you_sure_you_want_to_run_this_option: 'Er du sikker?'
@@ -8,8 +9,7 @@ nb-NO:
8
9
  run: 'Kjør'
9
10
  cancel: 'Avslutt'
10
11
  action_ran_successfully: 'Suksess!'
11
- resource_details: "%{item} detaljer: %{title}"
12
- update_item: 'Oppdatert %{item}: %{title}'
12
+ details: "detaljer"
13
13
  unauthorized: 'Ikke autorisert'
14
14
  attachment_class_attached: '%{attachment_class} lagt til.'
15
15
  attachment_class_detached: '%{attachment_class} fjernet.'
@@ -82,3 +82,6 @@ nb-NO:
82
82
  search_cancel_button: 'Avbryt'
83
83
  sign_out: 'Logg ut'
84
84
  tools: Redskapene
85
+ empty_dashboard_message: Legg til kort i dette dashbordet
86
+ no_cards_present: 'Ingen kort til stede'
87
+
@@ -1,6 +1,7 @@
1
1
  pt-BR:
2
2
  avo:
3
3
  dashboard: 'Painel'
4
+ dashboards: 'Painéis'
4
5
  choose_a_country: 'Escolha um país'
5
6
  choose_an_option: 'Escolha uma opção'
6
7
  are_you_sure_you_want_to_run_this_option: 'Você tem certeza que deseja executar esta ação?'
@@ -8,8 +9,7 @@ pt-BR:
8
9
  run: 'Executar'
9
10
  cancel: 'Cancelar'
10
11
  action_ran_successfully: 'Ação executada com sucesso!'
11
- resource_details: "Detalhe %{item}: %{title}"
12
- update_item: 'atualizar %{item}: %{title}'
12
+ details: "detalhe"
13
13
  unauthorized: 'Não autorizado'
14
14
  attachment_class_attached: '%{attachment_class} anexado.'
15
15
  attachment_class_detached: '%{attachment_class} separado.'
@@ -84,3 +84,5 @@ pt-BR:
84
84
  cancel_button: 'Cancelar'
85
85
  sign_out: 'sair'
86
86
  tools: Ferramentas
87
+ empty_dashboard_message: Adicionar cartões a este painel
88
+ no_cards_present: 'Nenhum cartão presente'
@@ -1,13 +1,14 @@
1
1
  ro:
2
2
  avo:
3
3
  dashboard: 'Panou de control'
4
+ dashboards: 'Panouri de control'
4
5
  choose_a_country: 'Alege o tara'
5
6
  choose_an_option: 'Alege o optiune'
6
7
  are_you_sure_you_want_to_run_this_option: 'Esti sigur ca vrei sa rulezi aceasta actiune?'
7
8
  run: 'Ruleaza'
8
9
  cancel: 'Anuleaza'
9
10
  action_ran_successfully: 'Actiunea a rulat cu succes!'
10
- resource_details: 'Detalii %{item}'
11
+ details: "detalii"
11
12
  unauthorized: 'Neautorizat'
12
13
  attachment_class_attached: '%{attachment_class} anexat.'
13
14
  attachment_class_detached: '%{attachment_class} separat.'
@@ -79,3 +80,5 @@ ro:
79
80
  was_successfully_created: 'a fost creat'
80
81
  was_successfully_updated: 'a fost actualizat'
81
82
  tools: Instrumente
83
+ empty_dashboard_message: Adauga carduri in acest dashboard
84
+ no_cards_present: 'Niciun card disponibil'
@@ -1 +1 @@
1
- <%%= render Avo::NavigationLinkComponent.new label: '<%= human_name %>', path: "#{avo.root_path}<%= file_name %>" %>
1
+ <%%= render Avo::SidebarItemComponent.new label: '<%= human_name %>', path: "#{avo.root_path}<%= file_name %>" %>