avo 1.25.0 → 2.1.1
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.
- checksums.yaml +4 -4
- data/Gemfile +10 -1
- data/Gemfile.lock +18 -3
- data/README.md +33 -28
- data/app/assets/stylesheets/avo.css +8 -3
- data/app/assets/stylesheets/css/breadcrumbs.css +6 -2
- data/app/assets/stylesheets/css/buttons.css +16 -0
- data/app/assets/stylesheets/css/fonts.css +42 -16
- data/app/assets/stylesheets/css/pagination.css +9 -9
- data/app/assets/stylesheets/css/search.css +18 -7
- data/app/assets/stylesheets/css/tooltips.css +1 -0
- data/app/assets/stylesheets/css/typography.css +4 -2
- data/app/assets/svgs/bell.svg +3 -0
- data/app/assets/svgs/dashboards-icon.svg +6 -0
- data/app/assets/svgs/detach.svg +8 -0
- data/app/assets/svgs/edit.svg +5 -1
- data/app/assets/svgs/grid-empty-state.svg +37 -0
- data/app/assets/svgs/grid-view-type.svg +5 -0
- data/app/assets/svgs/heroicons/outline/academic-cap.svg +5 -0
- data/app/assets/svgs/heroicons/outline/adjustments.svg +3 -0
- data/app/assets/svgs/heroicons/outline/annotation.svg +3 -0
- data/app/assets/svgs/heroicons/outline/archive.svg +3 -0
- data/app/assets/svgs/heroicons/outline/arrow-circle-down.svg +3 -0
- data/app/assets/svgs/heroicons/outline/arrow-circle-left.svg +3 -0
- data/app/assets/svgs/heroicons/outline/arrow-circle-right.svg +3 -0
- data/app/assets/svgs/heroicons/outline/arrow-circle-up.svg +3 -0
- data/app/assets/svgs/heroicons/outline/arrow-down.svg +3 -0
- data/app/assets/svgs/heroicons/outline/arrow-left.svg +3 -0
- data/app/assets/svgs/heroicons/outline/arrow-narrow-down.svg +3 -0
- data/app/assets/svgs/heroicons/outline/arrow-narrow-left.svg +3 -0
- data/app/assets/svgs/heroicons/outline/arrow-narrow-right.svg +3 -0
- data/app/assets/svgs/heroicons/outline/arrow-narrow-up.svg +3 -0
- data/app/assets/svgs/heroicons/outline/arrow-right.svg +3 -0
- data/app/assets/svgs/heroicons/outline/arrow-sm-down.svg +3 -0
- data/app/assets/svgs/heroicons/outline/arrow-sm-left.svg +3 -0
- data/app/assets/svgs/heroicons/outline/arrow-sm-right.svg +3 -0
- data/app/assets/svgs/heroicons/outline/arrow-sm-up.svg +3 -0
- data/app/assets/svgs/heroicons/outline/arrow-up.svg +3 -0
- data/app/assets/svgs/heroicons/outline/arrows-expand.svg +3 -0
- data/app/assets/svgs/heroicons/outline/at-symbol.svg +3 -0
- data/app/assets/svgs/heroicons/outline/backspace.svg +3 -0
- data/app/assets/svgs/heroicons/outline/badge-check.svg +3 -0
- data/app/assets/svgs/heroicons/outline/ban.svg +3 -0
- data/app/assets/svgs/heroicons/outline/beaker.svg +3 -0
- data/app/assets/svgs/heroicons/outline/bell.svg +3 -0
- data/app/assets/svgs/heroicons/outline/book-open.svg +3 -0
- data/app/assets/svgs/heroicons/outline/bookmark-alt.svg +3 -0
- data/app/assets/svgs/heroicons/outline/bookmark.svg +3 -0
- data/app/assets/svgs/heroicons/outline/briefcase.svg +3 -0
- data/app/assets/svgs/heroicons/outline/cake.svg +3 -0
- data/app/assets/svgs/heroicons/outline/calculator.svg +3 -0
- data/app/assets/svgs/heroicons/outline/calendar.svg +3 -0
- data/app/assets/svgs/heroicons/outline/camera.svg +4 -0
- data/app/assets/svgs/heroicons/outline/cash.svg +3 -0
- data/app/assets/svgs/heroicons/outline/chart-bar.svg +3 -0
- data/app/assets/svgs/heroicons/outline/chart-pie.svg +4 -0
- data/app/assets/svgs/heroicons/outline/chart-square-bar.svg +3 -0
- data/app/assets/svgs/heroicons/outline/chat-alt-2.svg +3 -0
- data/app/assets/svgs/heroicons/outline/chat-alt.svg +3 -0
- data/app/assets/svgs/heroicons/outline/chat.svg +3 -0
- data/app/assets/svgs/heroicons/outline/check-circle.svg +3 -0
- data/app/assets/svgs/heroicons/outline/check.svg +3 -0
- data/app/assets/svgs/heroicons/outline/chevron-double-down.svg +3 -0
- data/app/assets/svgs/heroicons/outline/chevron-double-left.svg +3 -0
- data/app/assets/svgs/heroicons/outline/chevron-double-right.svg +3 -0
- data/app/assets/svgs/heroicons/outline/chevron-double-up.svg +3 -0
- data/app/assets/svgs/heroicons/outline/chevron-down.svg +3 -0
- data/app/assets/svgs/heroicons/outline/chevron-left.svg +3 -0
- data/app/assets/svgs/heroicons/outline/chevron-right.svg +3 -0
- data/app/assets/svgs/heroicons/outline/chevron-up.svg +3 -0
- data/app/assets/svgs/heroicons/outline/chip.svg +3 -0
- data/app/assets/svgs/heroicons/outline/clipboard-check.svg +3 -0
- data/app/assets/svgs/heroicons/outline/clipboard-copy.svg +3 -0
- data/app/assets/svgs/heroicons/outline/clipboard-list.svg +3 -0
- data/app/assets/svgs/heroicons/outline/clipboard.svg +3 -0
- data/app/assets/svgs/heroicons/outline/clock.svg +3 -0
- data/app/assets/svgs/heroicons/outline/cloud-download.svg +3 -0
- data/app/assets/svgs/heroicons/outline/cloud-upload.svg +3 -0
- data/app/assets/svgs/heroicons/outline/cloud.svg +3 -0
- data/app/assets/svgs/heroicons/outline/code.svg +3 -0
- data/app/assets/svgs/heroicons/outline/cog.svg +4 -0
- data/app/assets/svgs/heroicons/outline/collection.svg +3 -0
- data/app/assets/svgs/heroicons/outline/color-swatch.svg +3 -0
- data/app/assets/svgs/heroicons/outline/credit-card.svg +3 -0
- data/app/assets/svgs/heroicons/outline/cube-transparent.svg +3 -0
- data/app/assets/svgs/heroicons/outline/cube.svg +3 -0
- data/app/assets/svgs/heroicons/outline/currency-bangladeshi.svg +3 -0
- data/app/assets/svgs/heroicons/outline/currency-dollar.svg +3 -0
- data/app/assets/svgs/heroicons/outline/currency-euro.svg +3 -0
- data/app/assets/svgs/heroicons/outline/currency-pound.svg +3 -0
- data/app/assets/svgs/heroicons/outline/currency-rupee.svg +3 -0
- data/app/assets/svgs/heroicons/outline/currency-yen.svg +3 -0
- data/app/assets/svgs/heroicons/outline/cursor-click.svg +3 -0
- data/app/assets/svgs/heroicons/outline/database.svg +3 -0
- data/app/assets/svgs/heroicons/outline/desktop-computer.svg +3 -0
- data/app/assets/svgs/heroicons/outline/device-mobile.svg +3 -0
- data/app/assets/svgs/heroicons/outline/device-tablet.svg +3 -0
- data/app/assets/svgs/heroicons/outline/document-add.svg +3 -0
- data/app/assets/svgs/heroicons/outline/document-download.svg +3 -0
- data/app/assets/svgs/heroicons/outline/document-duplicate.svg +3 -0
- data/app/assets/svgs/heroicons/outline/document-remove.svg +3 -0
- data/app/assets/svgs/heroicons/outline/document-report.svg +3 -0
- data/app/assets/svgs/heroicons/outline/document-search.svg +3 -0
- data/app/assets/svgs/heroicons/outline/document-text.svg +3 -0
- data/app/assets/svgs/heroicons/outline/document.svg +3 -0
- data/app/assets/svgs/heroicons/outline/dots-circle-horizontal.svg +3 -0
- data/app/assets/svgs/heroicons/outline/dots-horizontal.svg +3 -0
- data/app/assets/svgs/heroicons/outline/dots-vertical.svg +3 -0
- data/app/assets/svgs/heroicons/outline/download.svg +3 -0
- data/app/assets/svgs/heroicons/outline/duplicate.svg +3 -0
- data/app/assets/svgs/heroicons/outline/emoji-happy.svg +3 -0
- data/app/assets/svgs/heroicons/outline/emoji-sad.svg +3 -0
- data/app/assets/svgs/heroicons/outline/exclamation-circle.svg +3 -0
- data/app/assets/svgs/heroicons/outline/exclamation.svg +3 -0
- data/app/assets/svgs/heroicons/outline/external-link.svg +3 -0
- data/app/assets/svgs/heroicons/outline/eye-off.svg +3 -0
- data/app/assets/svgs/heroicons/outline/eye.svg +4 -0
- data/app/assets/svgs/heroicons/outline/fast-forward.svg +3 -0
- data/app/assets/svgs/heroicons/outline/film.svg +3 -0
- data/app/assets/svgs/heroicons/outline/filter.svg +3 -0
- data/app/assets/svgs/heroicons/outline/finger-print.svg +3 -0
- data/app/assets/svgs/heroicons/outline/fire.svg +4 -0
- data/app/assets/svgs/heroicons/outline/flag.svg +3 -0
- data/app/assets/svgs/heroicons/outline/folder-add.svg +3 -0
- data/app/assets/svgs/heroicons/outline/folder-download.svg +3 -0
- data/app/assets/svgs/heroicons/outline/folder-open.svg +3 -0
- data/app/assets/svgs/heroicons/outline/folder-remove.svg +3 -0
- data/app/assets/svgs/heroicons/outline/folder.svg +3 -0
- data/app/assets/svgs/heroicons/outline/gift.svg +3 -0
- data/app/assets/svgs/heroicons/outline/globe-alt.svg +3 -0
- data/app/assets/svgs/heroicons/outline/globe.svg +3 -0
- data/app/assets/svgs/heroicons/outline/hand.svg +3 -0
- data/app/assets/svgs/heroicons/outline/hashtag.svg +3 -0
- data/app/assets/svgs/heroicons/outline/heart.svg +3 -0
- data/app/assets/svgs/heroicons/outline/home.svg +3 -0
- data/app/assets/svgs/heroicons/outline/identification.svg +3 -0
- data/app/assets/svgs/heroicons/outline/inbox-in.svg +3 -0
- data/app/assets/svgs/heroicons/outline/inbox.svg +3 -0
- data/app/assets/svgs/heroicons/outline/information-circle.svg +3 -0
- data/app/assets/svgs/heroicons/outline/key.svg +3 -0
- data/app/assets/svgs/heroicons/outline/library.svg +3 -0
- data/app/assets/svgs/heroicons/outline/light-bulb.svg +3 -0
- data/app/assets/svgs/heroicons/outline/lightning-bolt.svg +3 -0
- data/app/assets/svgs/heroicons/outline/link.svg +3 -0
- data/app/assets/svgs/heroicons/outline/location-marker.svg +4 -0
- data/app/assets/svgs/heroicons/outline/lock-closed.svg +3 -0
- data/app/assets/svgs/heroicons/outline/lock-open.svg +3 -0
- data/app/assets/svgs/heroicons/outline/login.svg +3 -0
- data/app/assets/svgs/heroicons/outline/logout.svg +3 -0
- data/app/assets/svgs/heroicons/outline/mail-open.svg +3 -0
- data/app/assets/svgs/heroicons/outline/mail.svg +3 -0
- data/app/assets/svgs/heroicons/outline/map.svg +3 -0
- data/app/assets/svgs/heroicons/outline/menu-alt-1.svg +3 -0
- data/app/assets/svgs/heroicons/outline/menu-alt-2.svg +3 -0
- data/app/assets/svgs/heroicons/outline/menu-alt-3.svg +3 -0
- data/app/assets/svgs/heroicons/outline/menu-alt-4.svg +3 -0
- data/app/assets/svgs/heroicons/outline/menu.svg +3 -0
- data/app/assets/svgs/heroicons/outline/microphone.svg +3 -0
- data/app/assets/svgs/heroicons/outline/minus-circle.svg +3 -0
- data/app/assets/svgs/heroicons/outline/minus-sm.svg +3 -0
- data/app/assets/svgs/heroicons/outline/minus.svg +3 -0
- data/app/assets/svgs/heroicons/outline/moon.svg +3 -0
- data/app/assets/svgs/heroicons/outline/music-note.svg +3 -0
- data/app/assets/svgs/heroicons/outline/newspaper.svg +3 -0
- data/app/assets/svgs/heroicons/outline/office-building.svg +3 -0
- data/app/assets/svgs/heroicons/outline/paper-airplane.svg +3 -0
- data/app/assets/svgs/heroicons/outline/paper-clip.svg +3 -0
- data/app/assets/svgs/heroicons/outline/pause.svg +3 -0
- data/app/assets/svgs/heroicons/outline/pencil-alt.svg +3 -0
- data/app/assets/svgs/heroicons/outline/pencil.svg +3 -0
- data/app/assets/svgs/heroicons/outline/phone-incoming.svg +3 -0
- data/app/assets/svgs/heroicons/outline/phone-missed-call.svg +3 -0
- data/app/assets/svgs/heroicons/outline/phone-outgoing.svg +3 -0
- data/app/assets/svgs/heroicons/outline/phone.svg +3 -0
- data/app/assets/svgs/heroicons/outline/photograph.svg +3 -0
- data/app/assets/svgs/heroicons/outline/play.svg +4 -0
- data/app/assets/svgs/heroicons/outline/plus-circle.svg +3 -0
- data/app/assets/svgs/heroicons/outline/plus-sm.svg +3 -0
- data/app/assets/svgs/heroicons/outline/plus.svg +3 -0
- data/app/assets/svgs/heroicons/outline/presentation-chart-bar.svg +3 -0
- data/app/assets/svgs/heroicons/outline/presentation-chart-line.svg +3 -0
- data/app/assets/svgs/heroicons/outline/printer.svg +3 -0
- data/app/assets/svgs/heroicons/outline/puzzle.svg +3 -0
- data/app/assets/svgs/heroicons/outline/qrcode.svg +3 -0
- data/app/assets/svgs/heroicons/outline/question-mark-circle.svg +3 -0
- data/app/assets/svgs/heroicons/outline/receipt-refund.svg +3 -0
- data/app/assets/svgs/heroicons/outline/receipt-tax.svg +3 -0
- data/app/assets/svgs/heroicons/outline/refresh.svg +3 -0
- data/app/assets/svgs/heroicons/outline/reply.svg +3 -0
- data/app/assets/svgs/heroicons/outline/rewind.svg +3 -0
- data/app/assets/svgs/heroicons/outline/rss.svg +3 -0
- data/app/assets/svgs/heroicons/outline/save-as.svg +3 -0
- data/app/assets/svgs/heroicons/outline/save.svg +3 -0
- data/app/assets/svgs/heroicons/outline/scale.svg +3 -0
- data/app/assets/svgs/heroicons/outline/scissors.svg +3 -0
- data/app/assets/svgs/heroicons/outline/search-circle.svg +3 -0
- data/app/assets/svgs/heroicons/outline/search.svg +3 -0
- data/app/assets/svgs/heroicons/outline/selector.svg +3 -0
- data/app/assets/svgs/heroicons/outline/server.svg +3 -0
- data/app/assets/svgs/heroicons/outline/share.svg +3 -0
- data/app/assets/svgs/heroicons/outline/shield-check.svg +3 -0
- data/app/assets/svgs/heroicons/outline/shield-exclamation.svg +3 -0
- data/app/assets/svgs/heroicons/outline/shopping-bag.svg +3 -0
- data/app/assets/svgs/heroicons/outline/shopping-cart.svg +3 -0
- data/app/assets/svgs/heroicons/outline/sort-ascending.svg +3 -0
- data/app/assets/svgs/heroicons/outline/sort-descending.svg +3 -0
- data/app/assets/svgs/heroicons/outline/sparkles.svg +3 -0
- data/app/assets/svgs/heroicons/outline/speakerphone.svg +3 -0
- data/app/assets/svgs/heroicons/outline/star.svg +3 -0
- data/app/assets/svgs/heroicons/outline/status-offline.svg +3 -0
- data/app/assets/svgs/heroicons/outline/status-online.svg +3 -0
- data/app/assets/svgs/heroicons/outline/stop.svg +4 -0
- data/app/assets/svgs/heroicons/outline/sun.svg +3 -0
- data/app/assets/svgs/heroicons/outline/support.svg +3 -0
- data/app/assets/svgs/heroicons/outline/switch-horizontal.svg +3 -0
- data/app/assets/svgs/heroicons/outline/switch-vertical.svg +3 -0
- data/app/assets/svgs/heroicons/outline/table.svg +3 -0
- data/app/assets/svgs/heroicons/outline/tag.svg +3 -0
- data/app/assets/svgs/heroicons/outline/template.svg +3 -0
- data/app/assets/svgs/heroicons/outline/terminal.svg +3 -0
- data/app/assets/svgs/heroicons/outline/thumb-down.svg +3 -0
- data/app/assets/svgs/heroicons/outline/thumb-up.svg +3 -0
- data/app/assets/svgs/heroicons/outline/ticket.svg +3 -0
- data/app/assets/svgs/heroicons/outline/translate.svg +3 -0
- data/app/assets/svgs/heroicons/outline/trash.svg +3 -0
- data/app/assets/svgs/heroicons/outline/trending-down.svg +3 -0
- data/app/assets/svgs/heroicons/outline/trending-up.svg +3 -0
- data/app/assets/svgs/heroicons/outline/truck.svg +4 -0
- data/app/assets/svgs/heroicons/outline/upload.svg +3 -0
- data/app/assets/svgs/heroicons/outline/user-add.svg +3 -0
- data/app/assets/svgs/heroicons/outline/user-circle.svg +3 -0
- data/app/assets/svgs/heroicons/outline/user-group.svg +3 -0
- data/app/assets/svgs/heroicons/outline/user-remove.svg +3 -0
- data/app/assets/svgs/heroicons/outline/user.svg +3 -0
- data/app/assets/svgs/heroicons/outline/users.svg +3 -0
- data/app/assets/svgs/heroicons/outline/variable.svg +3 -0
- data/app/assets/svgs/heroicons/outline/video-camera.svg +3 -0
- data/app/assets/svgs/heroicons/outline/view-boards.svg +3 -0
- data/app/assets/svgs/heroicons/outline/view-grid-add.svg +3 -0
- data/app/assets/svgs/heroicons/outline/view-grid.svg +3 -0
- data/app/assets/svgs/heroicons/outline/view-list.svg +3 -0
- data/app/assets/svgs/heroicons/outline/volume-off.svg +4 -0
- data/app/assets/svgs/heroicons/outline/volume-up.svg +3 -0
- data/app/assets/svgs/heroicons/outline/wifi.svg +3 -0
- data/app/assets/svgs/heroicons/outline/x-circle.svg +3 -0
- data/app/assets/svgs/heroicons/outline/x.svg +3 -0
- data/app/assets/svgs/heroicons/outline/zoom-in.svg +3 -0
- data/app/assets/svgs/heroicons/outline/zoom-out.svg +3 -0
- data/app/assets/svgs/heroicons/solid/academic-cap.svg +3 -0
- data/app/assets/svgs/heroicons/solid/adjustments.svg +3 -0
- data/app/assets/svgs/heroicons/solid/annotation.svg +3 -0
- data/app/assets/svgs/heroicons/solid/archive.svg +4 -0
- data/app/assets/svgs/heroicons/solid/arrow-circle-down.svg +3 -0
- data/app/assets/svgs/heroicons/solid/arrow-circle-left.svg +3 -0
- data/app/assets/svgs/heroicons/solid/arrow-circle-right.svg +3 -0
- data/app/assets/svgs/heroicons/solid/arrow-circle-up.svg +3 -0
- data/app/assets/svgs/heroicons/solid/arrow-down.svg +3 -0
- data/app/assets/svgs/heroicons/solid/arrow-left.svg +3 -0
- data/app/assets/svgs/heroicons/solid/arrow-narrow-down.svg +3 -0
- data/app/assets/svgs/heroicons/solid/arrow-narrow-left.svg +3 -0
- data/app/assets/svgs/heroicons/solid/arrow-narrow-right.svg +3 -0
- data/app/assets/svgs/heroicons/solid/arrow-narrow-up.svg +3 -0
- data/app/assets/svgs/heroicons/solid/arrow-right.svg +3 -0
- data/app/assets/svgs/heroicons/solid/arrow-sm-down.svg +3 -0
- data/app/assets/svgs/heroicons/solid/arrow-sm-left.svg +3 -0
- data/app/assets/svgs/heroicons/solid/arrow-sm-right.svg +3 -0
- data/app/assets/svgs/heroicons/solid/arrow-sm-up.svg +3 -0
- data/app/assets/svgs/heroicons/solid/arrow-up.svg +3 -0
- data/app/assets/svgs/heroicons/solid/arrows-expand.svg +3 -0
- data/app/assets/svgs/heroicons/solid/at-symbol.svg +3 -0
- data/app/assets/svgs/heroicons/solid/backspace.svg +3 -0
- data/app/assets/svgs/heroicons/solid/badge-check.svg +3 -0
- data/app/assets/svgs/heroicons/solid/ban.svg +3 -0
- data/app/assets/svgs/heroicons/solid/beaker.svg +3 -0
- data/app/assets/svgs/heroicons/solid/bell.svg +3 -0
- data/app/assets/svgs/heroicons/solid/book-open.svg +3 -0
- data/app/assets/svgs/heroicons/solid/bookmark-alt.svg +3 -0
- data/app/assets/svgs/heroicons/solid/bookmark.svg +3 -0
- data/app/assets/svgs/heroicons/solid/briefcase.svg +4 -0
- data/app/assets/svgs/heroicons/solid/cake.svg +3 -0
- data/app/assets/svgs/heroicons/solid/calculator.svg +3 -0
- data/app/assets/svgs/heroicons/solid/calendar.svg +3 -0
- data/app/assets/svgs/heroicons/solid/camera.svg +3 -0
- data/app/assets/svgs/heroicons/solid/cash.svg +3 -0
- data/app/assets/svgs/heroicons/solid/chart-bar.svg +3 -0
- data/app/assets/svgs/heroicons/solid/chart-pie.svg +4 -0
- data/app/assets/svgs/heroicons/solid/chart-square-bar.svg +3 -0
- data/app/assets/svgs/heroicons/solid/chat-alt-2.svg +4 -0
- data/app/assets/svgs/heroicons/solid/chat-alt.svg +3 -0
- data/app/assets/svgs/heroicons/solid/chat.svg +3 -0
- data/app/assets/svgs/heroicons/solid/check-circle.svg +3 -0
- data/app/assets/svgs/heroicons/solid/check.svg +3 -0
- data/app/assets/svgs/heroicons/solid/chevron-double-down.svg +3 -0
- data/app/assets/svgs/heroicons/solid/chevron-double-left.svg +3 -0
- data/app/assets/svgs/heroicons/solid/chevron-double-right.svg +4 -0
- data/app/assets/svgs/heroicons/solid/chevron-double-up.svg +3 -0
- data/app/assets/svgs/heroicons/solid/chevron-down.svg +3 -0
- data/app/assets/svgs/heroicons/solid/chevron-left.svg +3 -0
- data/app/assets/svgs/heroicons/solid/chevron-right.svg +3 -0
- data/app/assets/svgs/heroicons/solid/chevron-up.svg +3 -0
- data/app/assets/svgs/heroicons/solid/chip.svg +4 -0
- data/app/assets/svgs/heroicons/solid/clipboard-check.svg +4 -0
- data/app/assets/svgs/heroicons/solid/clipboard-copy.svg +4 -0
- data/app/assets/svgs/heroicons/solid/clipboard-list.svg +4 -0
- data/app/assets/svgs/heroicons/solid/clipboard.svg +4 -0
- data/app/assets/svgs/heroicons/solid/clock.svg +3 -0
- data/app/assets/svgs/heroicons/solid/cloud-download.svg +3 -0
- data/app/assets/svgs/heroicons/solid/cloud-upload.svg +4 -0
- data/app/assets/svgs/heroicons/solid/cloud.svg +3 -0
- data/app/assets/svgs/heroicons/solid/code.svg +3 -0
- data/app/assets/svgs/heroicons/solid/cog.svg +3 -0
- data/app/assets/svgs/heroicons/solid/collection.svg +3 -0
- data/app/assets/svgs/heroicons/solid/color-swatch.svg +3 -0
- data/app/assets/svgs/heroicons/solid/credit-card.svg +4 -0
- data/app/assets/svgs/heroicons/solid/cube-transparent.svg +3 -0
- data/app/assets/svgs/heroicons/solid/cube.svg +3 -0
- data/app/assets/svgs/heroicons/solid/currency-bangladeshi.svg +3 -0
- data/app/assets/svgs/heroicons/solid/currency-dollar.svg +4 -0
- data/app/assets/svgs/heroicons/solid/currency-euro.svg +3 -0
- data/app/assets/svgs/heroicons/solid/currency-pound.svg +3 -0
- data/app/assets/svgs/heroicons/solid/currency-rupee.svg +3 -0
- data/app/assets/svgs/heroicons/solid/currency-yen.svg +3 -0
- data/app/assets/svgs/heroicons/solid/cursor-click.svg +3 -0
- data/app/assets/svgs/heroicons/solid/database.svg +5 -0
- data/app/assets/svgs/heroicons/solid/desktop-computer.svg +3 -0
- data/app/assets/svgs/heroicons/solid/device-mobile.svg +3 -0
- data/app/assets/svgs/heroicons/solid/device-tablet.svg +3 -0
- data/app/assets/svgs/heroicons/solid/document-add.svg +3 -0
- data/app/assets/svgs/heroicons/solid/document-download.svg +3 -0
- data/app/assets/svgs/heroicons/solid/document-duplicate.svg +4 -0
- data/app/assets/svgs/heroicons/solid/document-remove.svg +3 -0
- data/app/assets/svgs/heroicons/solid/document-report.svg +3 -0
- data/app/assets/svgs/heroicons/solid/document-search.svg +4 -0
- data/app/assets/svgs/heroicons/solid/document-text.svg +3 -0
- data/app/assets/svgs/heroicons/solid/document.svg +3 -0
- data/app/assets/svgs/heroicons/solid/dots-circle-horizontal.svg +3 -0
- data/app/assets/svgs/heroicons/solid/dots-horizontal.svg +3 -0
- data/app/assets/svgs/heroicons/solid/dots-vertical.svg +3 -0
- data/app/assets/svgs/heroicons/solid/download.svg +3 -0
- data/app/assets/svgs/heroicons/solid/duplicate.svg +4 -0
- data/app/assets/svgs/heroicons/solid/emoji-happy.svg +3 -0
- data/app/assets/svgs/heroicons/solid/emoji-sad.svg +3 -0
- data/app/assets/svgs/heroicons/solid/exclamation-circle.svg +3 -0
- data/app/assets/svgs/heroicons/solid/exclamation.svg +3 -0
- data/app/assets/svgs/heroicons/solid/external-link.svg +4 -0
- data/app/assets/svgs/heroicons/solid/eye-off.svg +4 -0
- data/app/assets/svgs/heroicons/solid/eye.svg +4 -0
- data/app/assets/svgs/heroicons/solid/fast-forward.svg +3 -0
- data/app/assets/svgs/heroicons/solid/film.svg +3 -0
- data/app/assets/svgs/heroicons/solid/filter.svg +3 -0
- data/app/assets/svgs/heroicons/solid/finger-print.svg +5 -0
- data/app/assets/svgs/heroicons/solid/fire.svg +3 -0
- data/app/assets/svgs/heroicons/solid/flag.svg +3 -0
- data/app/assets/svgs/heroicons/solid/folder-add.svg +3 -0
- data/app/assets/svgs/heroicons/solid/folder-download.svg +3 -0
- data/app/assets/svgs/heroicons/solid/folder-open.svg +4 -0
- data/app/assets/svgs/heroicons/solid/folder-remove.svg +3 -0
- data/app/assets/svgs/heroicons/solid/folder.svg +3 -0
- data/app/assets/svgs/heroicons/solid/gift.svg +4 -0
- data/app/assets/svgs/heroicons/solid/globe-alt.svg +3 -0
- data/app/assets/svgs/heroicons/solid/globe.svg +3 -0
- data/app/assets/svgs/heroicons/solid/hand.svg +3 -0
- data/app/assets/svgs/heroicons/solid/hashtag.svg +3 -0
- data/app/assets/svgs/heroicons/solid/heart.svg +3 -0
- data/app/assets/svgs/heroicons/solid/home.svg +3 -0
- data/app/assets/svgs/heroicons/solid/identification.svg +3 -0
- data/app/assets/svgs/heroicons/solid/inbox-in.svg +4 -0
- data/app/assets/svgs/heroicons/solid/inbox.svg +3 -0
- data/app/assets/svgs/heroicons/solid/information-circle.svg +3 -0
- data/app/assets/svgs/heroicons/solid/key.svg +3 -0
- data/app/assets/svgs/heroicons/solid/library.svg +3 -0
- data/app/assets/svgs/heroicons/solid/light-bulb.svg +3 -0
- data/app/assets/svgs/heroicons/solid/lightning-bolt.svg +3 -0
- data/app/assets/svgs/heroicons/solid/link.svg +3 -0
- data/app/assets/svgs/heroicons/solid/location-marker.svg +3 -0
- data/app/assets/svgs/heroicons/solid/lock-closed.svg +3 -0
- data/app/assets/svgs/heroicons/solid/lock-open.svg +3 -0
- data/app/assets/svgs/heroicons/solid/login.svg +3 -0
- data/app/assets/svgs/heroicons/solid/logout.svg +3 -0
- data/app/assets/svgs/heroicons/solid/mail-open.svg +3 -0
- data/app/assets/svgs/heroicons/solid/mail.svg +4 -0
- data/app/assets/svgs/heroicons/solid/map.svg +3 -0
- data/app/assets/svgs/heroicons/solid/menu-alt-1.svg +3 -0
- data/app/assets/svgs/heroicons/solid/menu-alt-2.svg +3 -0
- data/app/assets/svgs/heroicons/solid/menu-alt-3.svg +3 -0
- data/app/assets/svgs/heroicons/solid/menu-alt-4.svg +3 -0
- data/app/assets/svgs/heroicons/solid/menu.svg +3 -0
- data/app/assets/svgs/heroicons/solid/microphone.svg +3 -0
- data/app/assets/svgs/heroicons/solid/minus-circle.svg +3 -0
- data/app/assets/svgs/heroicons/solid/minus-sm.svg +3 -0
- data/app/assets/svgs/heroicons/solid/minus.svg +3 -0
- data/app/assets/svgs/heroicons/solid/moon.svg +3 -0
- data/app/assets/svgs/heroicons/solid/music-note.svg +3 -0
- data/app/assets/svgs/heroicons/solid/newspaper.svg +4 -0
- data/app/assets/svgs/heroicons/solid/office-building.svg +3 -0
- data/app/assets/svgs/heroicons/solid/paper-airplane.svg +3 -0
- data/app/assets/svgs/heroicons/solid/paper-clip.svg +3 -0
- data/app/assets/svgs/heroicons/solid/pause.svg +3 -0
- data/app/assets/svgs/heroicons/solid/pencil-alt.svg +4 -0
- data/app/assets/svgs/heroicons/solid/pencil.svg +3 -0
- data/app/assets/svgs/heroicons/solid/phone-incoming.svg +4 -0
- data/app/assets/svgs/heroicons/solid/phone-missed-call.svg +4 -0
- data/app/assets/svgs/heroicons/solid/phone-outgoing.svg +4 -0
- data/app/assets/svgs/heroicons/solid/phone.svg +3 -0
- data/app/assets/svgs/heroicons/solid/photograph.svg +3 -0
- data/app/assets/svgs/heroicons/solid/play.svg +3 -0
- data/app/assets/svgs/heroicons/solid/plus-circle.svg +3 -0
- data/app/assets/svgs/heroicons/solid/plus-sm.svg +3 -0
- data/app/assets/svgs/heroicons/solid/plus.svg +3 -0
- data/app/assets/svgs/heroicons/solid/presentation-chart-bar.svg +3 -0
- data/app/assets/svgs/heroicons/solid/presentation-chart-line.svg +3 -0
- data/app/assets/svgs/heroicons/solid/printer.svg +3 -0
- data/app/assets/svgs/heroicons/solid/puzzle.svg +3 -0
- data/app/assets/svgs/heroicons/solid/qrcode.svg +4 -0
- data/app/assets/svgs/heroicons/solid/question-mark-circle.svg +3 -0
- data/app/assets/svgs/heroicons/solid/receipt-refund.svg +3 -0
- data/app/assets/svgs/heroicons/solid/receipt-tax.svg +3 -0
- data/app/assets/svgs/heroicons/solid/refresh.svg +3 -0
- data/app/assets/svgs/heroicons/solid/reply.svg +3 -0
- data/app/assets/svgs/heroicons/solid/rewind.svg +3 -0
- data/app/assets/svgs/heroicons/solid/rss.svg +4 -0
- data/app/assets/svgs/heroicons/solid/save-as.svg +4 -0
- data/app/assets/svgs/heroicons/solid/save.svg +3 -0
- data/app/assets/svgs/heroicons/solid/scale.svg +3 -0
- data/app/assets/svgs/heroicons/solid/scissors.svg +4 -0
- data/app/assets/svgs/heroicons/solid/search-circle.svg +4 -0
- data/app/assets/svgs/heroicons/solid/search.svg +3 -0
- data/app/assets/svgs/heroicons/solid/selector.svg +3 -0
- data/app/assets/svgs/heroicons/solid/server.svg +3 -0
- data/app/assets/svgs/heroicons/solid/share.svg +3 -0
- data/app/assets/svgs/heroicons/solid/shield-check.svg +3 -0
- data/app/assets/svgs/heroicons/solid/shield-exclamation.svg +3 -0
- data/app/assets/svgs/heroicons/solid/shopping-bag.svg +3 -0
- data/app/assets/svgs/heroicons/solid/shopping-cart.svg +3 -0
- data/app/assets/svgs/heroicons/solid/sort-ascending.svg +3 -0
- data/app/assets/svgs/heroicons/solid/sort-descending.svg +3 -0
- data/app/assets/svgs/heroicons/solid/sparkles.svg +3 -0
- data/app/assets/svgs/heroicons/solid/speakerphone.svg +3 -0
- data/app/assets/svgs/heroicons/solid/star.svg +3 -0
- data/app/assets/svgs/heroicons/solid/status-offline.svg +3 -0
- data/app/assets/svgs/heroicons/solid/status-online.svg +3 -0
- data/app/assets/svgs/heroicons/solid/stop.svg +3 -0
- data/app/assets/svgs/heroicons/solid/sun.svg +3 -0
- data/app/assets/svgs/heroicons/solid/support.svg +3 -0
- data/app/assets/svgs/heroicons/solid/switch-horizontal.svg +3 -0
- data/app/assets/svgs/heroicons/solid/switch-vertical.svg +3 -0
- data/app/assets/svgs/heroicons/solid/table.svg +3 -0
- data/app/assets/svgs/heroicons/solid/tag.svg +3 -0
- data/app/assets/svgs/heroicons/solid/template.svg +3 -0
- data/app/assets/svgs/heroicons/solid/terminal.svg +3 -0
- data/app/assets/svgs/heroicons/solid/thumb-down.svg +3 -0
- data/app/assets/svgs/heroicons/solid/thumb-up.svg +3 -0
- data/app/assets/svgs/heroicons/solid/ticket.svg +3 -0
- data/app/assets/svgs/heroicons/solid/translate.svg +3 -0
- data/app/assets/svgs/heroicons/solid/trash.svg +3 -0
- data/app/assets/svgs/heroicons/solid/trending-down.svg +3 -0
- data/app/assets/svgs/heroicons/solid/trending-up.svg +3 -0
- data/app/assets/svgs/heroicons/solid/truck.svg +4 -0
- data/app/assets/svgs/heroicons/solid/upload.svg +3 -0
- data/app/assets/svgs/heroicons/solid/user-add.svg +3 -0
- data/app/assets/svgs/heroicons/solid/user-circle.svg +3 -0
- data/app/assets/svgs/heroicons/solid/user-group.svg +3 -0
- data/app/assets/svgs/heroicons/solid/user-remove.svg +3 -0
- data/app/assets/svgs/heroicons/solid/user.svg +3 -0
- data/app/assets/svgs/heroicons/solid/users.svg +3 -0
- data/app/assets/svgs/heroicons/solid/variable.svg +3 -0
- data/app/assets/svgs/heroicons/solid/video-camera.svg +3 -0
- data/app/assets/svgs/heroicons/solid/view-boards.svg +3 -0
- data/app/assets/svgs/heroicons/solid/view-grid-add.svg +3 -0
- data/app/assets/svgs/heroicons/solid/view-grid.svg +3 -0
- data/app/assets/svgs/heroicons/solid/view-list.svg +3 -0
- data/app/assets/svgs/heroicons/solid/volume-off.svg +3 -0
- data/app/assets/svgs/heroicons/solid/volume-up.svg +3 -0
- data/app/assets/svgs/heroicons/solid/wifi.svg +3 -0
- data/app/assets/svgs/{x-circle-sm.svg → heroicons/solid/x-circle.svg} +2 -2
- data/app/assets/svgs/heroicons/solid/x.svg +3 -0
- data/app/assets/svgs/heroicons/solid/zoom-in.svg +4 -0
- data/app/assets/svgs/heroicons/solid/zoom-out.svg +4 -0
- data/app/assets/svgs/logout.svg +3 -0
- data/app/assets/svgs/menu-back.svg +4 -0
- data/app/assets/svgs/menu.svg +3 -0
- data/app/assets/svgs/resources-icon.svg +13 -0
- data/app/assets/svgs/save.svg +8 -1
- data/app/assets/svgs/table-empty-state.svg +57 -0
- data/app/assets/svgs/table-view-type.svg +6 -0
- data/app/assets/svgs/three-dots.svg +5 -0
- data/app/assets/svgs/tools-icon.svg +3 -0
- data/app/assets/svgs/trash.svg +7 -1
- data/app/assets/svgs/user-circle.svg +3 -0
- data/app/components/avo/actions_component.html.erb +43 -0
- data/app/components/avo/actions_component.rb +14 -0
- data/app/components/avo/alert_component.html.erb +25 -1
- data/app/components/avo/alert_component.rb +24 -0
- data/app/components/avo/blank_field_component.html.erb +0 -0
- data/app/components/avo/blank_field_component.rb +4 -0
- data/app/components/avo/button_component.html.erb +1 -0
- data/app/components/avo/button_component.rb +143 -0
- data/app/components/avo/card_component.html.erb +40 -0
- data/app/components/avo/card_component.rb +11 -0
- data/app/components/avo/common_field_wrapper_component.html.erb +15 -0
- data/app/components/avo/common_field_wrapper_component.rb +20 -0
- data/app/components/avo/dashboards/divider_component.html.erb +9 -0
- data/app/components/avo/dashboards/divider_component.rb +19 -0
- data/app/components/avo/edit/field_wrapper_component.html.erb +10 -19
- data/app/components/avo/edit/field_wrapper_component.rb +0 -8
- data/app/components/avo/empty_state_component.html.erb +12 -0
- data/app/components/avo/empty_state_component.rb +24 -0
- data/app/components/avo/fields/badge_field/index_component.html.erb +1 -1
- data/app/components/avo/fields/belongs_to_field/edit_component.html.erb +2 -1
- data/app/components/avo/fields/boolean_field/edit_component.html.erb +1 -1
- data/app/components/avo/fields/boolean_field/index_component.html.erb +1 -1
- data/app/components/avo/fields/boolean_group_field/edit_component.html.erb +1 -1
- data/app/components/avo/fields/common/boolean_check_component.html.erb +4 -4
- data/app/components/avo/fields/common/boolean_group_component.html.erb +2 -2
- data/app/components/avo/fields/common/files_list_viewer_component.html.erb +2 -2
- data/app/components/avo/fields/common/gravatar_viewer_component.html.erb +1 -1
- data/app/components/avo/fields/common/heading_component.html.erb +2 -2
- data/app/components/avo/fields/common/key_value_component.html.erb +2 -2
- data/app/components/avo/fields/common/single_file_viewer_component.html.erb +42 -23
- data/app/components/avo/fields/common/single_file_viewer_component.rb +34 -6
- data/app/components/avo/fields/common/status_viewer_component.html.erb +2 -2
- data/app/components/avo/fields/external_image_field/index_component.html.erb +2 -3
- data/app/components/avo/fields/file_field/edit_component.html.erb +1 -1
- data/app/components/avo/fields/file_field/index_component.html.erb +3 -3
- data/app/components/avo/fields/file_field/index_component.rb +11 -0
- data/app/components/avo/fields/file_field/show_component.html.erb +1 -1
- data/app/components/avo/fields/gravatar_field/index_component.html.erb +1 -1
- data/app/components/avo/fields/has_many_field/show_component.html.erb +1 -1
- data/app/components/avo/fields/has_one_field/show_component.html.erb +4 -4
- data/app/components/avo/fields/heading_field/edit_component.html.erb +1 -1
- data/app/components/avo/fields/heading_field/show_component.html.erb +1 -1
- data/app/components/avo/fields/progress_bar_field/index_component.html.erb +1 -1
- data/app/components/avo/fields/trix_field/edit_component.html.erb +1 -0
- data/app/components/avo/filters_component.html.erb +37 -0
- data/app/components/avo/filters_component.rb +14 -0
- data/app/components/avo/{alerts_component.html.erb → flash_alerts_component.html.erb} +1 -1
- data/app/components/avo/flash_alerts_component.rb +9 -0
- data/app/components/avo/index/field_wrapper_component.html.erb +8 -2
- data/app/components/avo/index/field_wrapper_component.rb +13 -1
- data/app/components/avo/index/grid_item_component.html.erb +13 -10
- data/app/components/avo/index/ordering/buttons_component.rb +2 -0
- data/app/components/avo/index/resource_controls_component.html.erb +11 -6
- data/app/components/avo/index/resource_grid_component.html.erb +3 -3
- data/app/components/avo/index/resource_table_component.html.erb +10 -14
- data/app/components/avo/index/table_row_component.html.erb +1 -1
- data/app/components/avo/modal_component.html.erb +9 -7
- data/app/{views/avo/partials/_paginator.html.erb → components/avo/paginator_component.html.erb} +16 -16
- data/app/components/avo/paginator_component.rb +17 -0
- data/app/components/avo/panel_component.html.erb +29 -17
- data/app/components/avo/panel_component.rb +17 -2
- data/app/components/avo/profile_item_component.html.erb +3 -0
- data/app/components/avo/profile_item_component.rb +11 -0
- data/app/components/avo/referrer_params_component.html.erb +4 -0
- data/app/components/avo/referrer_params_component.rb +9 -0
- data/app/components/avo/resource_component.rb +1 -1
- data/app/components/avo/show/field_wrapper_component.html.erb +8 -15
- data/app/components/avo/show/field_wrapper_component.rb +0 -4
- data/app/components/avo/sidebar_component.html.erb +51 -0
- data/app/components/avo/sidebar_component.rb +21 -0
- data/app/components/avo/sidebar_heading_component.html.erb +3 -0
- data/app/components/avo/sidebar_heading_component.rb +11 -0
- data/app/components/avo/sidebar_item_component.html.erb +3 -0
- data/app/components/avo/sidebar_item_component.rb +10 -0
- data/app/components/avo/sidebar_profile_component.html.erb +36 -0
- data/app/components/avo/sidebar_profile_component.rb +43 -0
- data/app/components/avo/turbo_frame_wrapper_component.html.erb +8 -9
- data/app/components/avo/views/resource_edit_component.html.erb +27 -17
- data/app/components/avo/views/resource_index_component.html.erb +44 -35
- data/app/components/avo/views/resource_new_component.html.erb +31 -16
- data/app/components/avo/views/resource_show_component.html.erb +37 -34
- data/app/components/avo/views/resource_show_component.rb +2 -3
- data/app/controllers/avo/application_controller.rb +44 -13
- data/app/controllers/avo/{relations_controller.rb → associations_controller.rb} +1 -3
- data/app/controllers/avo/attachments_controller.rb +1 -5
- data/app/controllers/avo/base_controller.rb +75 -49
- data/app/controllers/avo/dashboards_controller.rb +28 -0
- data/app/controllers/avo/private_controller.rb +8 -0
- data/app/controllers/avo/search_controller.rb +5 -1
- data/app/helpers/avo/application_helper.rb +29 -47
- data/app/helpers/avo/resources_helper.rb +2 -2
- data/app/helpers/avo/url_helpers.rb +3 -3
- data/app/javascript/avo.js +26 -5
- data/app/javascript/js/application.js +2 -1
- data/app/javascript/js/controllers/actions_picker_controller.js +12 -10
- data/app/javascript/js/controllers/dashboard_card_controller.js +33 -0
- data/app/javascript/js/controllers/item_selector_controller.js +8 -4
- data/app/javascript/js/controllers/mobile_controller.js +9 -0
- data/app/javascript/js/controllers/select_controller.js +23 -0
- data/app/javascript/js/controllers.js +6 -0
- data/app/views/avo/actions/show.html.erb +23 -17
- data/app/views/avo/{relations → associations}/new.html.erb +17 -6
- data/app/views/avo/base/_multiple_select_filter.html.erb +5 -1
- data/app/views/avo/base/_text_filter.html.erb +3 -1
- data/app/views/avo/base/show.html.erb +1 -1
- data/app/views/avo/dashboards/_chartkick_card.html.erb +3 -0
- data/app/views/avo/dashboards/_metric_card.html.erb +5 -0
- data/app/views/avo/dashboards/card.html.erb +3 -0
- data/app/views/avo/dashboards/show.html.erb +35 -0
- data/app/views/avo/home/failed_to_load.html.erb +21 -1
- data/app/views/avo/home/index.html.erb +1 -5
- data/app/views/avo/partials/_custom_tools_alert.html.erb +2 -2
- data/app/views/avo/partials/_global_search.html.erb +3 -3
- data/app/views/avo/partials/_header.html.erb +1 -1
- data/app/views/avo/partials/_logo.html.erb +1 -1
- data/app/views/avo/partials/_navbar.html.erb +11 -0
- data/app/views/avo/partials/_resource_search.html.erb +1 -1
- data/app/views/avo/partials/_sortable_component.html.erb +1 -1
- data/app/views/avo/partials/_table_header.html.erb +4 -4
- data/app/views/avo/partials/_view_toggle_button.html.erb +36 -16
- data/app/views/avo/private/_links_and_buttons.html.erb +57 -0
- data/app/views/avo/private/design.html.erb +27 -0
- data/app/views/layouts/avo/application.html.erb +26 -30
- data/avo.gemspec +4 -2
- data/bin/dev +7 -6
- data/config/routes.rb +19 -11
- data/lib/avo/app.rb +38 -4
- data/lib/avo/base_action.rb +4 -4
- data/lib/avo/base_resource.rb +31 -10
- data/lib/avo/configuration.rb +2 -0
- data/lib/avo/dashboards/base_card.rb +151 -0
- data/lib/avo/dashboards/base_dashboard.rb +71 -0
- data/lib/avo/dashboards/base_divider.rb +23 -0
- data/lib/avo/dashboards/chartkick_card.rb +77 -0
- data/lib/avo/dashboards/metric_card.rb +9 -0
- data/lib/avo/dashboards/partial_card.rb +7 -0
- data/lib/avo/dynamic_router.rb +3 -0
- data/lib/avo/engine.rb +5 -1
- data/lib/avo/fields/base_field.rb +19 -6
- data/lib/avo/fields/belongs_to_field.rb +1 -1
- data/lib/avo/fields/external_image_field.rb +2 -2
- data/lib/avo/fields/gravatar_field.rb +2 -2
- data/lib/avo/hosts/dashboard_card.rb +21 -0
- data/lib/avo/hosts/dashboard_visibility.rb +19 -0
- data/lib/avo/hosts/ordering.rb +1 -1
- data/lib/avo/licensing/license.rb +4 -2
- data/lib/avo/licensing/pro_license.rb +3 -1
- data/lib/avo/version.rb +1 -1
- data/lib/avo.rb +24 -0
- data/lib/generators/avo/chartkick_card_generator.rb +16 -0
- data/lib/generators/avo/dashboard_generator.rb +16 -0
- data/lib/generators/avo/metric_card_generator.rb +16 -0
- data/lib/generators/avo/partial_card_generator.rb +17 -0
- data/lib/generators/avo/templates/cards/chartkick_card.tt +16 -0
- data/lib/generators/avo/templates/cards/chartkick_card_sample.tt +26 -0
- data/lib/generators/avo/templates/cards/metric_card.tt +8 -0
- data/lib/generators/avo/templates/cards/metric_card_sample.tt +38 -0
- data/lib/generators/avo/templates/cards/partial_card.tt +8 -0
- data/lib/generators/avo/templates/cards/partial_card_partial.tt +8 -0
- data/lib/generators/avo/templates/cards/partial_card_sample.tt +8 -0
- data/lib/generators/avo/templates/dashboards/dashboard.tt +12 -0
- data/lib/generators/avo/templates/locales/avo.en.yml +11 -4
- data/lib/generators/avo/templates/locales/avo.nb-NO.yml +5 -2
- data/lib/generators/avo/templates/locales/avo.pt-BR.yml +4 -2
- data/lib/generators/avo/templates/locales/avo.ro.yml +4 -1
- data/lib/generators/avo/templates/tool/sidebar_item.tt +1 -1
- data/public/avo-assets/avo.css +1322 -1127
- data/public/avo-assets/avo.js +346 -88687
- data/public/avo-assets/avo.js.map +3 -3
- data/public/avo-assets/fonts/inter-v7-latin-500.eot +0 -0
- data/public/avo-assets/fonts/inter-v7-latin-500.svg +351 -0
- data/public/avo-assets/fonts/inter-v7-latin-500.ttf +0 -0
- data/public/avo-assets/fonts/inter-v7-latin-500.woff +0 -0
- data/public/avo-assets/fonts/inter-v7-latin-500.woff2 +0 -0
- data/public/avo-assets/fonts/inter-v7-latin-600.eot +0 -0
- data/public/avo-assets/fonts/inter-v7-latin-600.svg +351 -0
- data/public/avo-assets/fonts/inter-v7-latin-600.ttf +0 -0
- data/public/avo-assets/fonts/inter-v7-latin-600.woff +0 -0
- data/public/avo-assets/fonts/inter-v7-latin-600.woff2 +0 -0
- data/public/avo-assets/fonts/inter-v7-latin-700.eot +0 -0
- data/public/avo-assets/fonts/inter-v7-latin-700.svg +352 -0
- data/public/avo-assets/fonts/inter-v7-latin-700.ttf +0 -0
- data/public/avo-assets/fonts/inter-v7-latin-700.woff +0 -0
- data/public/avo-assets/fonts/inter-v7-latin-700.woff2 +0 -0
- data/public/avo-assets/fonts/inter-v7-latin-regular.eot +0 -0
- data/public/avo-assets/fonts/inter-v7-latin-regular.svg +351 -0
- data/public/avo-assets/fonts/inter-v7-latin-regular.ttf +0 -0
- data/public/avo-assets/fonts/inter-v7-latin-regular.woff +0 -0
- data/public/avo-assets/fonts/inter-v7-latin-regular.woff2 +0 -0
- data/public/avo-assets/logo-on-white.png +0 -0
- data/public/avo-assets/logo.png +0 -0
- metadata +584 -42
- data/app/assets/images/avo/logo.png +0 -0
- data/app/assets/svgs/check-circle-sm.svg +0 -3
- data/app/components/avo/alerts_component.rb +0 -5
- data/app/components/avo/fields/common/multiple_file_viewer_component.html.erb +0 -35
- data/app/components/avo/fields/common/multiple_file_viewer_component.rb +0 -15
- data/app/components/avo/navigation_heading_component.html.erb +0 -3
- data/app/components/avo/navigation_heading_component.rb +0 -7
- data/app/components/avo/navigation_link_component.html.erb +0 -3
- data/app/components/avo/navigation_link_component.rb +0 -11
- data/app/javascript/js/toastr.js +0 -10
- data/app/views/avo/attachments/show.html.erb +0 -14
- data/app/views/avo/base/_actions.html.erb +0 -36
- data/app/views/avo/base/_filters.html.erb +0 -34
- data/app/views/avo/partials/_a_button.html.erb +0 -7
- data/app/views/avo/partials/_a_link.html.erb +0 -7
- data/app/views/avo/partials/_empty_state.html.erb +0 -17
- data/app/views/avo/partials/_failed_state.html.erb +0 -16
- data/app/views/avo/partials/_profile_dropdown.html.erb +0 -25
- data/app/views/avo/sidebar/_sidebar.html.erb +0 -31
- data/lib/avo/services/panel_service.rb +0 -27
- data/public/avo-assets/fonts/nunito-v16-latin-700.eot +0 -0
- data/public/avo-assets/fonts/nunito-v16-latin-700.svg +0 -388
- data/public/avo-assets/fonts/nunito-v16-latin-700.ttf +0 -0
- data/public/avo-assets/fonts/nunito-v16-latin-700.woff +0 -0
- data/public/avo-assets/fonts/nunito-v16-latin-700.woff2 +0 -0
- data/public/avo-assets/fonts/nunito-v16-latin-regular.eot +0 -0
- data/public/avo-assets/fonts/nunito-v16-latin-regular.svg +0 -380
- data/public/avo-assets/fonts/nunito-v16-latin-regular.ttf +0 -0
- data/public/avo-assets/fonts/nunito-v16-latin-regular.woff +0 -0
- data/public/avo-assets/fonts/nunito-v16-latin-regular.woff2 +0 -0
@@ -1,34 +1,46 @@
|
|
1
1
|
<div <%== data_attributes %>>
|
2
|
-
|
3
|
-
<div>
|
4
|
-
|
5
|
-
|
6
|
-
|
2
|
+
<% if render_header? %>
|
3
|
+
<div class="<%= white_panel_classes %> p-4 flex-1 flex flex-col xl:flex-row justify-between mb-6">
|
4
|
+
<div class="overflow-hidden mr-4">
|
5
|
+
<% if display_breadcrumbs? %>
|
6
|
+
<div class="breadcrumbs truncate mb-2">
|
7
|
+
<%= helpers.render_breadcrumbs(separator: helpers.svg('chevron-right', class: 'inline-block h-3 stroke-current relative top-[-1px] ml-1' )) if Avo.configuration.display_breadcrumbs %>
|
8
|
+
</div>
|
9
|
+
<% end %>
|
10
|
+
|
11
|
+
<div class="text-2xl tracking-normal font-semibold text-gray-800 truncate" data-target="title">
|
12
|
+
<%= @title %>
|
7
13
|
</div>
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
+
|
15
|
+
<% if description.present? %>
|
16
|
+
<div class="text-base tracking-normal font-medium text-gray-600 truncate" data-target="description">
|
17
|
+
<%== description %>
|
18
|
+
</div>
|
19
|
+
<% end %>
|
14
20
|
</div>
|
15
|
-
</div>
|
16
21
|
|
17
|
-
|
18
|
-
<div class="flex justify-end space-x-2 mb-6">
|
22
|
+
<div class="flex-1 w-full flex flex-col sm:flex-row xl:justify-end sm:items-end space-y-2 sm:space-y-0 sm:space-x-2 mt-4 xl:mt-0">
|
19
23
|
<%= tools %>
|
20
24
|
</div>
|
21
25
|
</div>
|
22
|
-
|
26
|
+
<% end %>
|
23
27
|
|
24
|
-
<div class="relative
|
28
|
+
<div class="relative <%= white_panel_classes %> <%= @body_classes %>">
|
25
29
|
<%= body %>
|
26
30
|
</div>
|
27
31
|
|
28
|
-
<div class="relative
|
32
|
+
<div class="relative">
|
29
33
|
<%= bare_content %>
|
30
34
|
</div>
|
31
35
|
|
36
|
+
<% if footer_tools.present? %>
|
37
|
+
<div class="<%= white_panel_classes %> p-4 flex-1 flex flex-col xl:flex-row justify-between mt-6">
|
38
|
+
<div class="flex-1 w-full flex flex-col sm:flex-row xl:justify-end sm:items-end space-y-2 sm:space-y-0 sm:space-x-2 mt-4 xl:mt-0">
|
39
|
+
<%= footer_tools %>
|
40
|
+
</div>
|
41
|
+
</div>
|
42
|
+
<% end %>
|
43
|
+
|
32
44
|
<div class="flex justify-end w-full">
|
33
45
|
<div>
|
34
46
|
<%= footer %>
|
@@ -1,9 +1,12 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
class Avo::PanelComponent < ViewComponent::Base
|
4
|
+
attr_reader :title
|
5
|
+
|
4
6
|
renders_one :tools
|
5
7
|
renders_one :body
|
6
8
|
renders_one :bare_content
|
9
|
+
renders_one :footer_tools
|
7
10
|
renders_one :footer
|
8
11
|
|
9
12
|
def initialize(title: nil, description: nil, body_classes: nil, data: {}, display_breadcrumbs: false, index: nil)
|
@@ -17,6 +20,10 @@ class Avo::PanelComponent < ViewComponent::Base
|
|
17
20
|
|
18
21
|
private
|
19
22
|
|
23
|
+
def white_panel_classes
|
24
|
+
'bg-white rounded shadow'
|
25
|
+
end
|
26
|
+
|
20
27
|
def data_attributes
|
21
28
|
@data.merge({'panel-index': @index}).map do |key, value|
|
22
29
|
" data-#{key}=\"#{value}\""
|
@@ -24,12 +31,20 @@ class Avo::PanelComponent < ViewComponent::Base
|
|
24
31
|
end
|
25
32
|
|
26
33
|
def display_breadcrumbs?
|
27
|
-
@display_breadcrumbs
|
34
|
+
@display_breadcrumbs == true && Avo.configuration.display_breadcrumbs == true
|
28
35
|
end
|
29
36
|
|
30
37
|
def description
|
31
38
|
return @description if @description.present?
|
32
39
|
|
33
|
-
|
40
|
+
""
|
41
|
+
end
|
42
|
+
|
43
|
+
def render_header?
|
44
|
+
@title.present? || description.present? || tools.present? || display_breadcrumbs?
|
45
|
+
end
|
46
|
+
|
47
|
+
def render_footer_tools?
|
48
|
+
footer_tools.present?
|
34
49
|
end
|
35
50
|
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
class Avo::ProfileItemComponent < ViewComponent::Base
|
4
|
+
def initialize(label: nil, icon: nil, path: nil, active: :inclusive, target: nil)
|
5
|
+
@label = label
|
6
|
+
@icon = icon
|
7
|
+
@path = path
|
8
|
+
@active = active
|
9
|
+
@target = target
|
10
|
+
end
|
11
|
+
end
|
@@ -0,0 +1,4 @@
|
|
1
|
+
<%= hidden_field_tag :via_resource_class, params[:via_resource_class] if params[:via_resource_class] %>
|
2
|
+
<%= hidden_field_tag :via_resource_id, params[:via_resource_id] if params[:via_resource_id] %>
|
3
|
+
<%= hidden_field_tag :via_relation, params[:via_relation] if params[:via_relation] %>
|
4
|
+
<%= hidden_field_tag :referrer, back_path if params[:via_resource_class] %>
|
@@ -17,7 +17,7 @@ class Avo::ResourceComponent < Avo::BaseComponent
|
|
17
17
|
if @reflection.present?
|
18
18
|
reflection_resource = ::Avo::App.get_resource_by_model_name(@reflection.active_record.name)
|
19
19
|
reflection_resource.hydrate(model: @parent_model) if @parent_model.present?
|
20
|
-
association_name = params[
|
20
|
+
association_name = params["related_name"]
|
21
21
|
|
22
22
|
if association_name.present?
|
23
23
|
method_name = "#{policy_method}_#{association_name}?".to_sym
|
@@ -1,16 +1,9 @@
|
|
1
|
-
|
2
|
-
<div class="
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
<%= render Avo::CommonFieldWrapperComponent.new(field: @field, dash_if_blank: @dash_if_blank, full_width: @full_width) do %>
|
2
|
+
<div class="self-center <% if @full_width %> w-full <% else %> w-full md:w-8/12 <% end %>" data-slot="value">
|
3
|
+
<% if @field.value.blank? and @dash_if_blank %>
|
4
|
+
—
|
5
|
+
<% else %>
|
6
|
+
<%= content %>
|
7
|
+
<% end %>
|
6
8
|
</div>
|
7
|
-
|
8
|
-
<div class="px-6 py-3 self-center <% if @full_width %> w-full <% else %> w-8/12 <% end %>" data-slot="value">
|
9
|
-
<% if @field.value.blank? and @dash_if_blank %>
|
10
|
-
—
|
11
|
-
<% else %>
|
12
|
-
<%= content %>
|
13
|
-
<% end %>
|
14
|
-
</div>
|
15
|
-
</div>
|
16
|
-
</div>
|
9
|
+
<% end %>
|
@@ -0,0 +1,51 @@
|
|
1
|
+
<div class="fixed z-[60] application-sidebar hidden lg:flex h-full bg-white text-white w-64 border-r" data-mobile-target="sidebar">
|
2
|
+
<div class="flex flex-col w-full h-full">
|
3
|
+
<div class="flex justify-between">
|
4
|
+
<%= render partial: "avo/partials/logo" %>
|
5
|
+
<div class="flex items-center mr-4">
|
6
|
+
<%= helpers.a_button class: "lg:hidden", icon: 'menu-back', data: { action: 'click->mobile#toggleSidebar' } %>
|
7
|
+
</div>
|
8
|
+
</div>
|
9
|
+
<div class="flex-1 flex flex-col justify-between overflow-auto mt-3">
|
10
|
+
<div class="space-y-6">
|
11
|
+
<%= render Avo::SidebarItemComponent.new label: 'Get started', path: helpers.avo.root_path, active: :exclusive if Rails.env.development? && Avo.configuration.home_path.nil? %>
|
12
|
+
|
13
|
+
<% if dashboards.present? %>
|
14
|
+
<div>
|
15
|
+
<%= render Avo::SidebarHeadingComponent.new label: t('avo.dashboards'), icon: helpers.svg('dashboards-icon', class: 'h-4') %>
|
16
|
+
|
17
|
+
<div class="w-full space-y-1">
|
18
|
+
<% dashboards.sort_by { |r| r.navigation_label }.each do |dashboard| %>
|
19
|
+
<%= render Avo::SidebarItemComponent.new label: dashboard.navigation_label, path: dashboard.navigation_path %>
|
20
|
+
<% end %>
|
21
|
+
</div>
|
22
|
+
</div>
|
23
|
+
<% end %>
|
24
|
+
|
25
|
+
<div>
|
26
|
+
<%= render Avo::SidebarHeadingComponent.new label: t('avo.resources'), icon: helpers.svg('resources-icon', class: 'h-4') %>
|
27
|
+
|
28
|
+
<div class="w-full space-y-1">
|
29
|
+
<% resources.sort_by { |r| r.navigation_label }.each do |resource| %>
|
30
|
+
<%= render Avo::SidebarItemComponent.new label: resource.navigation_label, path: helpers.resources_path(resource: resource) %>
|
31
|
+
<% end %>
|
32
|
+
</div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<% if tools.present? %>
|
36
|
+
<div>
|
37
|
+
<%= render Avo::SidebarHeadingComponent.new label: t('avo.tools'), icon: helpers.svg('tools-icon', class: 'h-4') %>
|
38
|
+
|
39
|
+
<div class="w-full space-y-1">
|
40
|
+
<% tools.each do |partial| %>
|
41
|
+
<%= render partial: "/avo/sidebar/items/#{partial}" %>
|
42
|
+
<% end %>
|
43
|
+
</div>
|
44
|
+
</div>
|
45
|
+
<% end %>
|
46
|
+
</div>
|
47
|
+
</div>
|
48
|
+
<%= helpers.render_license_warnings %>
|
49
|
+
<%= render Avo::SidebarProfileComponent.new user: helpers._current_user %>
|
50
|
+
</div>
|
51
|
+
</div>
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
class Avo::SidebarComponent < ViewComponent::Base
|
4
|
+
def dashboards
|
5
|
+
return [] if Avo::App.license.lacks_with_trial(:dashboards)
|
6
|
+
|
7
|
+
Avo::App.get_dashboards(helpers._current_user).select do |dashboard|
|
8
|
+
dashboard.is_visible?
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
def resources
|
13
|
+
Avo::App.resources_navigation(helpers._current_user)
|
14
|
+
end
|
15
|
+
|
16
|
+
def tools
|
17
|
+
return [] if Avo::App.license.lacks_with_trial(:custom_tools)
|
18
|
+
|
19
|
+
Avo::App.get_sidebar_partials
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
<div class="text-black border-t border-gray-200 p-4 flex">
|
2
|
+
<div class="flex-1 flex space-x-4">
|
3
|
+
<div class="relative aspect-square w-10 h-10 overflow-hidden rounded">
|
4
|
+
<%= image_tag avatar, class: "object-cover min-w-full min-h-full h-full" %>
|
5
|
+
</div>
|
6
|
+
<div class="flex flex-col">
|
7
|
+
<div class="font-medium">
|
8
|
+
<%= name %>
|
9
|
+
</div>
|
10
|
+
<div class="text-xs text-gray-500 uppercase">
|
11
|
+
<%= title %>
|
12
|
+
</div>
|
13
|
+
</div>
|
14
|
+
</div>
|
15
|
+
<div class="relative" data-controller="toggle-panel">
|
16
|
+
<% if can_destroy_user? %>
|
17
|
+
<a class="flex items-center h-full cursor-pointer" data-control="profile-dots" data-action="click->toggle-panel#togglePanel">
|
18
|
+
<%= helpers.svg 'three-dots', class: 'h-4' %>
|
19
|
+
</a>
|
20
|
+
<div
|
21
|
+
class="hidden absolute flex flex-col inset-auto right-0 -mt-12 bg-white rounded min-w-[200px] shadow-context -translate-y-full"
|
22
|
+
data-toggle-panel-target="panel"
|
23
|
+
>
|
24
|
+
<%# Example link below %>
|
25
|
+
<%#= render Avo::ProfileItemComponent.new label: 'Profile', path: '/profile', icon: helpers.svg('user-circle', class: 'h-4 mr-1') %>
|
26
|
+
<%= button_to helpers.main_app.send(destroy_user_session_path),
|
27
|
+
method: :delete,
|
28
|
+
form: { "data-turbo" => "false" },
|
29
|
+
class: "flex-1 flex items-center justify-center bg-white text-left cursor-pointer text-red-600 font-semibold hover:bg-red-100 block px-4 py-1 w-full py-3 text-center rounded w-full",
|
30
|
+
form_class: 'flex-1' do %>
|
31
|
+
<%= helpers.svg 'logout', class: 'h-4 mr-1' %> <%= t('avo.sign_out') %>
|
32
|
+
<% end %>
|
33
|
+
</div>
|
34
|
+
<% end %>
|
35
|
+
</div>
|
36
|
+
</div>
|
@@ -0,0 +1,43 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
class Avo::SidebarProfileComponent < ViewComponent::Base
|
4
|
+
attr_reader :user
|
5
|
+
|
6
|
+
def initialize(user:)
|
7
|
+
@user = user
|
8
|
+
end
|
9
|
+
|
10
|
+
def avatar
|
11
|
+
if user.respond_to?(:avatar) && user.avatar.present?
|
12
|
+
user.avatar
|
13
|
+
else
|
14
|
+
""
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
def name
|
19
|
+
if user.respond_to?(:name) && user.name.present?
|
20
|
+
user.name
|
21
|
+
elsif user.respond_to?(:email) && user.email.present?
|
22
|
+
user.email
|
23
|
+
else
|
24
|
+
"Avo user"
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
def title
|
29
|
+
if user.respond_to?(:avo_title) && user.avo_title.present?
|
30
|
+
user.avo_title
|
31
|
+
else
|
32
|
+
""
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
def destroy_user_session_path
|
37
|
+
"destroy_#{Avo.configuration.current_user_resource_name}_session_path".to_sym
|
38
|
+
end
|
39
|
+
|
40
|
+
def can_destroy_user?
|
41
|
+
helpers.main_app.respond_to?(destroy_user_session_path)
|
42
|
+
end
|
43
|
+
end
|
@@ -1,11 +1,10 @@
|
|
1
1
|
<% if name.present? %><turbo-frame id="<%= name %>"><% end %>
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
<%= content %>
|
2
|
+
<%
|
3
|
+
# When rendering the frames the flashed content gets lost.
|
4
|
+
# We're appending it back if it's a turbo_frame_request.
|
5
|
+
%>
|
6
|
+
<% if helpers.turbo_frame_request? %>
|
7
|
+
<%= helpers.turbo_stream_action_tag :append, target: 'alerts', template: render(Avo::FlashAlertsComponent.new(flashes: helpers.flash)) %>
|
8
|
+
<% end %>
|
9
|
+
<%= content %>
|
11
10
|
<% if name.present? %></turbo-frame><% end %>
|
@@ -1,31 +1,41 @@
|
|
1
1
|
<div data-model-id="<%= @resource.model.id %>">
|
2
2
|
<% @resource.panels.each do |resource_panel| %>
|
3
3
|
<%= form_with model: @resource.model,
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
4
|
+
scope: @resource.form_scope,
|
5
|
+
url: helpers.resource_path(model: @resource.model, resource: @resource),
|
6
|
+
method: :put,
|
7
|
+
local: true,
|
8
|
+
multipart: true do |form| %>
|
9
|
+
<%= render Avo::ReferrerParamsComponent.new back_path: back_path %>
|
10
10
|
<%= render Avo::PanelComponent.new(title: resource_panel[:name], description: @resource.resource_description, display_breadcrumbs: true) do |c| %>
|
11
11
|
<% c.tools do %>
|
12
|
-
|
13
|
-
<%=
|
14
|
-
|
12
|
+
<%= a_link back_path, icon: 'arrow-left' do %>
|
13
|
+
<%= t('avo.cancel').capitalize %>
|
14
|
+
<% end %>
|
15
|
+
<% if can_see_the_save_button? %>
|
16
|
+
<%= a_button color: :green, spinner: true, type: :submit, icon: 'save' do %>
|
17
|
+
<%= t('avo.save').capitalize %>
|
18
|
+
<% end %>
|
19
|
+
<% end %>
|
20
|
+
<% end %>
|
21
|
+
<% if Avo.configuration.buttons_on_form_footers %>
|
22
|
+
<% c.footer_tools do %>
|
23
|
+
<%= a_link back_path, icon: 'arrow-left' do %>
|
24
|
+
<%= t('avo.cancel').capitalize %>
|
15
25
|
<% end %>
|
16
|
-
|
17
26
|
<% if can_see_the_save_button? %>
|
18
|
-
<%= a_button color:
|
19
|
-
<%=
|
27
|
+
<%= a_button color: :green, spinner: true, type: :submit, icon: 'save' do %>
|
28
|
+
<%= t('avo.save').capitalize %>
|
20
29
|
<% end %>
|
21
30
|
<% end %>
|
22
|
-
|
31
|
+
<% end %>
|
23
32
|
<% end %>
|
24
|
-
|
25
33
|
<% c.body do %>
|
26
|
-
|
27
|
-
|
28
|
-
|
34
|
+
<div class="divide-y">
|
35
|
+
<% @resource.get_fields.each_with_index do |field, index| %>
|
36
|
+
<%= render field.component_for_view(:edit).new(field: field, resource: @resource, index: index, form: form) unless field.computed %>
|
37
|
+
<% end %>
|
38
|
+
</div>
|
29
39
|
<% end %>
|
30
40
|
<% end %>
|
31
41
|
<% end %>
|
@@ -1,58 +1,67 @@
|
|
1
1
|
<div>
|
2
|
-
<%= render Avo::PanelComponent.new(title: title, description: description,
|
2
|
+
<%= render Avo::PanelComponent.new(title: title, description: description, data: { component: 'resources-index' }, display_breadcrumbs: @reflection.blank?) do |c| %>
|
3
3
|
<% c.tools do %>
|
4
4
|
<% if can_see_the_actions_button? %>
|
5
|
-
<%= render
|
5
|
+
<%= render Avo::ActionsComponent.new actions: @actions, resource: @resource %>
|
6
6
|
<% end %>
|
7
|
-
|
8
7
|
<% if can_see_the_create_button? %>
|
9
|
-
<%= a_link create_path, 'data-target': 'create' do %>
|
10
|
-
<%=
|
8
|
+
<%= a_link create_path, icon: 'heroicons/outline/plus', 'data-target': 'create', color: :primary do %>
|
9
|
+
<%= t('avo.create_new_item', item: singular_resource_name.downcase ) %>
|
11
10
|
<% end %>
|
12
11
|
<% end %>
|
13
|
-
|
14
12
|
<% if can_attach? %>
|
15
|
-
<%= a_link attach_path,
|
16
|
-
<%=
|
13
|
+
<%= a_link attach_path, icon: 'heroicons/outline/link', color: :primary, 'data-turbo-frame': 'attach_modal', 'data-target': 'attach' do %>
|
14
|
+
<%= t('avo.attach_item', item: singular_resource_name).capitalize %>
|
17
15
|
<% end %>
|
18
16
|
<% end %>
|
19
17
|
<% end %>
|
20
|
-
|
21
18
|
<% c.body do %>
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
</div>
|
40
|
-
|
41
|
-
<% if @models.present? %>
|
42
|
-
<div class="py-4">
|
43
|
-
<%= render partial: 'avo/partials/paginator', locals: { pagy: @pagy, turbo_frame: @turbo_frame || 'none' } %>
|
19
|
+
<% if @resource.search_query.present? || @filters.present? || available_view_types.count > 1 %>
|
20
|
+
<div class="flex flex-col xs:flex-row xs:justify-between space-y-2 xs:space-y-0 py-4"
|
21
|
+
data-selected-resources-name="<%= @resource.model_key %>"
|
22
|
+
data-selected-resources="[]"
|
23
|
+
>
|
24
|
+
<% if @resource.search_query.present? %>
|
25
|
+
<div class="flex items-center px-4 w-64">
|
26
|
+
<%= render partial: 'avo/partials/resource_search', locals: {resource: @resource.model_key} %>
|
27
|
+
</div>
|
28
|
+
<% else %>
|
29
|
+
<%# Offset for the space-y-2 property when the serach is missing %>
|
30
|
+
<div class="-mb-2"></div>
|
31
|
+
<% end %>
|
32
|
+
<% if @filters.present? || available_view_types.count > 1 %>
|
33
|
+
<div class="justify-self-end flex justify-start xs:justify-end items-center px-4 space-x-3">
|
34
|
+
<%= render Avo::FiltersComponent.new filters: @filters, resource: @resource %>
|
35
|
+
<%= render partial: 'avo/partials/view_toggle_button', locals: { available_view_types: available_view_types, view_type: view_type, turbo_frame: @turbo_frame } if available_view_types.count > 1 %>
|
44
36
|
</div>
|
45
37
|
<% end %>
|
46
38
|
</div>
|
47
39
|
<% end %>
|
40
|
+
<% if view_type.to_sym == :table %>
|
41
|
+
<% if @resources.present? %>
|
42
|
+
<div class="w-full overflow-auto flex flex-col mt-0">
|
43
|
+
<div class="relative flex-1 flex">
|
44
|
+
<%= render(Avo::Index::ResourceTableComponent.new(resources: @resources, resource: @resource, reflection: @reflection, parent_model: @parent_model)) %>
|
45
|
+
</div>
|
46
|
+
</div>
|
47
|
+
<% else %>
|
48
|
+
<%= helpers.empty_state resource_name: @resource.name.downcase.pluralize, related_name: params[:related_name], view_type: view_type, add_background: true %>
|
49
|
+
<% end %>
|
50
|
+
<% end %>
|
48
51
|
<% end %>
|
49
|
-
|
50
52
|
<% c.bare_content do %>
|
53
|
+
<% if view_type.to_sym == :table %>
|
54
|
+
<% if @models.present? %>
|
55
|
+
<div class="mt-8">
|
56
|
+
<%= render Avo::PaginatorComponent.new pagy: @pagy, turbo_frame: @turbo_frame || 'none', index_params: @index_params, resource: @resource, parent_resource: @parent_resource %>
|
57
|
+
</div>
|
58
|
+
<% end %>
|
59
|
+
<% end %>
|
60
|
+
|
51
61
|
<% if view_type.to_sym == :grid %>
|
52
62
|
<%= render Avo::Index::ResourceGridComponent.new(resources: @resources, resource: @resource, reflection: @reflection, parent_model: @parent_model) %>
|
53
|
-
|
54
|
-
|
55
|
-
<%= render partial: 'avo/partials/paginator', locals: { pagy: @pagy, turbo_frame: @turbo_frame || 'none' } %>
|
63
|
+
<div class="mt-14">
|
64
|
+
<%= render Avo::PaginatorComponent.new pagy: @pagy, turbo_frame: @turbo_frame || 'none', index_params: @index_params, resource: @resource, parent_resource: @parent_resource %>
|
56
65
|
</div>
|
57
66
|
<% end %>
|
58
67
|
<% end %>
|
@@ -1,33 +1,48 @@
|
|
1
1
|
<div>
|
2
2
|
<% @resource.panels.each do |resource_panel| %>
|
3
3
|
<%= form_with model: @resource.model,
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
4
|
+
scope: @resource.form_scope,
|
5
|
+
url: helpers.resources_path(
|
6
|
+
resource: @resource,
|
7
|
+
via_relation_class: params[:via_relation_class],
|
8
|
+
via_relation: params[:via_relation],
|
9
|
+
via_resource_id: params[:via_resource_id]
|
10
|
+
),
|
11
|
+
local: true,
|
12
|
+
multipart: true do |form| %>
|
13
|
+
<%= render Avo::ReferrerParamsComponent.new back_path: back_path %>
|
11
14
|
<%= render Avo::PanelComponent.new(title: resource_panel[:name], description: @resource.resource_description, display_breadcrumbs: true) do |c| %>
|
12
15
|
<% c.tools do %>
|
13
16
|
<div class="flex justify-end space-x-2">
|
14
|
-
<%= a_link back_path do %>
|
15
|
-
<%=
|
17
|
+
<%= a_link back_path, icon: 'arrow-left' do %>
|
18
|
+
<%= t('avo.cancel').capitalize %>
|
16
19
|
<% end %>
|
17
|
-
|
18
20
|
<% if can_see_the_save_button? %>
|
19
|
-
<%= a_button color: 'green', spinner: true, type: :submit do %>
|
20
|
-
<%=
|
21
|
+
<%= a_button color: 'green', spinner: true, type: :submit, icon: 'save' do %>
|
22
|
+
<%= t('avo.save').capitalize %>
|
21
23
|
<% end %>
|
22
24
|
<% end %>
|
23
25
|
</div>
|
24
26
|
<% end %>
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
27
|
+
<% if Avo.configuration.buttons_on_form_footers %>
|
28
|
+
<% c.footer_tools do %>
|
29
|
+
<%= a_link back_path, icon: 'arrow-left' do %>
|
30
|
+
<%= t('avo.cancel').capitalize %>
|
31
|
+
<% end %>
|
32
|
+
<% if can_see_the_save_button? %>
|
33
|
+
<%= a_button color: :green, spinner: true, type: :submit, icon: 'save' do %>
|
34
|
+
<%= t('avo.save').capitalize %>
|
35
|
+
<% end %>
|
36
|
+
<% end %>
|
29
37
|
<% end %>
|
30
38
|
<% end %>
|
39
|
+
<% c.body do %>
|
40
|
+
<div class="divide-y">
|
41
|
+
<% @resource.get_fields.each_with_index do |field, index| %>
|
42
|
+
<%= render field.component_for_view(:edit).new(field: field, resource: @resource, index: index, form: form) unless field.computed %>
|
43
|
+
<% end %>
|
44
|
+
</div>
|
45
|
+
<% end %>
|
31
46
|
<% end %>
|
32
47
|
<% end %>
|
33
48
|
<% end %>
|