avo 1.25.0 → 2.0.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.
- checksums.yaml +4 -4
- data/Gemfile +9 -0
- data/Gemfile.lock +16 -1
- data/README.md +33 -28
- data/app/assets/stylesheets/avo.css +7 -2
- 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/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/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/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 +1 -1
- data/app/components/avo/fields/file_field/edit_component.html.erb +1 -1
- data/app/components/avo/fields/file_field/show_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/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 +2 -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 +6 -5
- 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 +21 -17
- data/app/components/avo/panel_component.rb +8 -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/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 +19 -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 +16 -19
- data/app/components/avo/views/resource_index_component.html.erb +44 -35
- data/app/components/avo/views/resource_new_component.html.erb +18 -16
- data/app/components/avo/views/resource_show_component.html.erb +36 -34
- data/app/components/avo/views/resource_show_component.rb +2 -3
- data/app/controllers/avo/application_controller.rb +43 -12
- 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 +20 -24
- data/app/controllers/avo/dashboards_controller.rb +28 -0
- data/app/controllers/avo/private_controller.rb +8 -0
- 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 +22 -2
- 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 +22 -17
- data/app/views/avo/{relations → associations}/new.html.erb +16 -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/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 +20 -31
- data/avo.gemspec +4 -2
- data/config/routes.rb +19 -11
- data/lib/avo/app.rb +30 -3
- data/lib/avo/base_resource.rb +5 -3
- data/lib/avo/dashboards/base_card.rb +151 -0
- data/lib/avo/dashboards/base_dashboard.rb +54 -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/gravatar_field.rb +2 -2
- data/lib/avo/hosts/dashboard_card.rb +21 -0
- data/lib/avo/hosts/ordering.rb +1 -1
- data/lib/avo/licensing/license.rb +4 -2
- data/lib/avo/licensing/pro_license.rb +2 -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 +9 -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 +1300 -1121
- data/public/avo-assets/avo.js +345 -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 +579 -41
- 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/_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,7 +1,7 @@
|
|
1
1
|
<%= edit_field_wrapper field: @field, index: @index, form: @form, resource: @resource, displayed_in_modal: @displayed_in_modal do %>
|
2
2
|
<% if @field.value.present? %>
|
3
3
|
<div class="mb-2">
|
4
|
-
<%= render Avo::Fields::Common::SingleFileViewerComponent.new resource: @resource,
|
4
|
+
<%= render Avo::Fields::Common::SingleFileViewerComponent.new resource: @resource, field: @field %>
|
5
5
|
</div>
|
6
6
|
<% end %>
|
7
7
|
|
@@ -1,3 +1,3 @@
|
|
1
1
|
<%= show_field_wrapper field: @field do %>
|
2
|
-
<%= render Avo::Fields::Common::SingleFileViewerComponent.new resource: @resource,
|
2
|
+
<%= render Avo::Fields::Common::SingleFileViewerComponent.new resource: @resource, field: @field %>
|
3
3
|
<% end %>
|
@@ -1,20 +1,20 @@
|
|
1
1
|
<% if @field.value %>
|
2
|
-
<turbo-frame id="<%= @field.turbo_frame %>" src="<%= @field.frame_url %>" target="_top">
|
2
|
+
<turbo-frame id="<%= @field.turbo_frame %>" src="<%= @field.frame_url %>" target="_top" class="block">
|
3
3
|
<%= render(Avo::LoadingComponent.new(title: @field.name)) %>
|
4
4
|
</turbo-frame>
|
5
5
|
<% else %>
|
6
6
|
<%= render Avo::PanelComponent.new(title: @field.id.capitalize) do |c| %>
|
7
7
|
<% c.tools do %>
|
8
8
|
<% if !@field.readonly && can_attach? %>
|
9
|
-
<%= a_link attach_path,
|
10
|
-
<%=
|
9
|
+
<%= a_link attach_path, icon: 'heroicons/outline/link', color: :primary, 'data-turbo-frame': 'attach_modal' do %>
|
10
|
+
<%= t('avo.attach_item', item: @field.id).capitalize %>
|
11
11
|
<% end %>
|
12
12
|
<% end %>
|
13
13
|
<% end %>
|
14
14
|
|
15
15
|
<% c.body do %>
|
16
16
|
<div class="py-8 flex justify-center items-center">
|
17
|
-
<%= empty_state @field.id %>
|
17
|
+
<%= empty_state resource_name: @field.id, related_name: params[:related_name] %>
|
18
18
|
</div>
|
19
19
|
<% end %>
|
20
20
|
<% end %>
|
@@ -1,3 +1,3 @@
|
|
1
|
-
<div <% if @index == 0 %> class="overflow-hidden rounded-t
|
1
|
+
<div <% if @index == 0 %> class="overflow-hidden rounded-t" <% end %> data-field-id="<%= @field.id %>">
|
2
2
|
<%= render Avo::Fields::Common::HeadingComponent.new value: @field.name, as_html: @field.as_html %>
|
3
3
|
</div>
|
@@ -1,3 +1,3 @@
|
|
1
|
-
<div <% if @index == 0 %> class="overflow-hidden rounded-t
|
1
|
+
<div <% if @index == 0 %> class="overflow-hidden rounded-t" <% end %> data-field-id="<%= @field.id %>">
|
2
2
|
<%= render Avo::Fields::Common::HeadingComponent.new value: @field.name, as_html: @field.as_html %>
|
3
3
|
</div>
|
@@ -9,6 +9,7 @@
|
|
9
9
|
data-hide-attachment-filename="<%= @field.hide_attachment_filename %>"
|
10
10
|
data-hide-attachment-filesize="<%= @field.hide_attachment_filesize %>"
|
11
11
|
data-hide-attachment-url="<%= @field.hide_attachment_url %>"
|
12
|
+
class="relative block overflow-x-auto max-w-full"
|
12
13
|
>
|
13
14
|
<% trix_id = "trix_#{@resource.name.underscore}_#{@field.id}" %>
|
14
15
|
<trix-editor data-trix-field-target="editor" input="<%= trix_id %>" placeholder="<%= @field.placeholder %>"><%== @field.value %></trix-editor>
|
@@ -0,0 +1,37 @@
|
|
1
|
+
<div data-controller="toggle-panel">
|
2
|
+
<div class="relative w-full flex justify-between z-30">
|
3
|
+
<%= a_button class: 'focus:outline-none',
|
4
|
+
color: :primary,
|
5
|
+
size: :sm,
|
6
|
+
icon: 'filter',
|
7
|
+
title: t('avo.click_to_reveal_filters'),
|
8
|
+
'data-button': 'resource-filters',
|
9
|
+
'data-action': 'click->toggle-panel#togglePanel',
|
10
|
+
'data-tippy': 'tooltip' do
|
11
|
+
%>
|
12
|
+
<%= t 'avo.filters' %>
|
13
|
+
<% if params[:filters].present? %>
|
14
|
+
<span class="ml-1">(<%=JSON.parse(Base64.decode64(params[:filters])).count%> applied)</span>
|
15
|
+
<% end %>
|
16
|
+
<% end %>
|
17
|
+
<div
|
18
|
+
class="absolute block inset-auto sm:right-0 top-full bg-white min-w-[300px] mt-2 z-20 shadow-modal rounded hidden divide-y divide-gray-300"
|
19
|
+
data-toggle-panel-target="panel"
|
20
|
+
>
|
21
|
+
<% @filters.each do |filter| %>
|
22
|
+
<%= render partial: filter.class.template, locals: {filter: filter} %>
|
23
|
+
<% end %>
|
24
|
+
<div class="p-4 border-gray-300 border-t">
|
25
|
+
<% if params[:filters].present? %>
|
26
|
+
<%= a_link helpers.resources_path(resource: @resource, filters: nil, keep_query_params: true), color: :gray, size: :sm, class: 'w-full justify-center' do %>
|
27
|
+
<%= t('avo.reset_filters') %>
|
28
|
+
<% end %>
|
29
|
+
<% else %>
|
30
|
+
<%= a_button class: 'w-full justify-center', disabled: true do %>
|
31
|
+
<%= t('avo.reset_filters') %>
|
32
|
+
<% end %>
|
33
|
+
<% end %>
|
34
|
+
</div>
|
35
|
+
</div>
|
36
|
+
</div>
|
37
|
+
</div>
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
class Avo::FiltersComponent < ViewComponent::Base
|
4
|
+
include Avo::ApplicationHelper
|
5
|
+
|
6
|
+
def initialize(filters: [], resource: nil)
|
7
|
+
@filters = filters
|
8
|
+
@resource = resource
|
9
|
+
end
|
10
|
+
|
11
|
+
def render?
|
12
|
+
@filters.present?
|
13
|
+
end
|
14
|
+
end
|
@@ -1,7 +1,13 @@
|
|
1
|
-
<td class="px-4 py-
|
1
|
+
<td class="min-h-[3rem] px-4 py-3 leading-tight whitespace-nowrap h-full text-slate-800 <%= @classes %>" data-field-id="<%= @field.id %>" data-field-type="<%= @field.type %>">
|
2
2
|
<% if @field.value.blank? && @dash_if_blank %>
|
3
3
|
—
|
4
4
|
<% else %>
|
5
|
-
|
5
|
+
<% if @center_content %>
|
6
|
+
<div class="flex items-center justify-center">
|
7
|
+
<%= content %>
|
8
|
+
</div>
|
9
|
+
<% else %>
|
10
|
+
<%= content %>
|
11
|
+
<% end %>
|
6
12
|
<% end %>
|
7
13
|
</td>
|
@@ -1,9 +1,10 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
class Avo::Index::FieldWrapperComponent < ViewComponent::Base
|
4
|
-
def initialize(field: nil, dash_if_blank: true, **args)
|
4
|
+
def initialize(field: nil, dash_if_blank: true, center_content: false, **args)
|
5
5
|
@field = field
|
6
6
|
@dash_if_blank = dash_if_blank
|
7
|
+
@center_content = center_content
|
7
8
|
@classes = args[:class].present? ? args[:class] : ""
|
8
9
|
@args = args
|
9
10
|
end
|
@@ -1,20 +1,24 @@
|
|
1
|
-
<div
|
1
|
+
<div
|
2
|
+
class="relative bg-white rounded shadow-modal flex flex-col group"
|
2
3
|
<%== item_selector_init @resource %>
|
3
4
|
>
|
4
|
-
<div class="relative w-full pb-3/4 rounded-t
|
5
|
+
<div class="relative w-full pb-3/4 rounded-t overflow-hidden">
|
5
6
|
<%== item_selector_input floating: true, size: :lg %>
|
6
|
-
|
7
7
|
<% if cover.blank? %>
|
8
|
-
<%=
|
8
|
+
<%= link_to cover.link_to_resource do %>
|
9
|
+
<%= render Avo::Index::GridCoverEmptyStateComponent.new %>
|
10
|
+
<% end %>
|
9
11
|
<% elsif cover.respond_to?(:to_image) && cover.to_image.present? %>
|
10
12
|
<%= link_to_if cover.link_to_resource, image_tag(cover.to_image, class: 'absolute h-full w-full object-cover'), helpers.resource_path(model: @resource.model, resource: @resource), class: 'absolute h-full w-full object-cover', title: title.value %>
|
11
13
|
<% elsif cover.type == 'file' %>
|
12
14
|
<% if cover.value.attached? && cover.value.representable? %>
|
13
15
|
<%= link_to_if cover.link_to_resource, image_tag(helpers.main_app.url_for(cover.value.variant(resize_to_limit: [480, 480])), class: 'absolute h-full w-full object-cover'), helpers.resource_path(model: @resource.model, resource: @resource), class: 'absolute h-full w-full object-cover', title: title.value %>
|
14
16
|
<% else %>
|
15
|
-
|
16
|
-
|
17
|
-
|
17
|
+
<%= link_to @resource.record_path do %>
|
18
|
+
<div class="absolute bg-gray-100 w-full h-full">
|
19
|
+
<%= helpers.svg 'avocado', class: 'relative transform -translate-x-1/2 -translate-y-1/2 h-20 text-gray-400 inset-auto top-1/2 left-1/2' %>
|
20
|
+
</div>
|
21
|
+
<% end %>
|
18
22
|
<% end %>
|
19
23
|
<% elsif cover.value.present? %>
|
20
24
|
<%= link_to_if cover.link_to_resource, image_tag(cover.value, class: 'absolute h-full w-full object-cover'), helpers.resource_path(model: @resource.model, resource: @resource), class: 'absolute h-full w-full object-cover', title: title.value %>
|
@@ -23,11 +27,11 @@
|
|
23
27
|
<% end %>
|
24
28
|
</div>
|
25
29
|
<div class="grid grid-cols-1 place-content-between p-4 h-full">
|
26
|
-
<div class="mb-4">
|
30
|
+
<div class="mb-4 h-full flex flex-col space-between">
|
27
31
|
<div class="grid font-semibold leading-tight text-lg mb-2">
|
28
32
|
<%= link_to_if title.link_to_resource, title.value, helpers.resource_path(model: @resource.model, resource: @resource) if title.present? %>
|
29
33
|
</div>
|
30
|
-
<div class="text-sm break-words">
|
34
|
+
<div class="text-sm break-words text-gray-500">
|
31
35
|
<%= body.value if body.present? %>
|
32
36
|
</div>
|
33
37
|
</div>
|
@@ -36,4 +40,3 @@
|
|
36
40
|
</div>
|
37
41
|
</div>
|
38
42
|
</div>
|
39
|
-
|
@@ -1,8 +1,9 @@
|
|
1
|
-
<div class="space-x-2 flex flex-row justify-around
|
1
|
+
<div class="space-x-2 flex flex-row justify-around w-full">
|
2
|
+
<% button_classes = "text-gray-600 h-6 hover:text-gray-600" %>
|
2
3
|
<%= render Avo::Index::Ordering::ButtonsComponent.new resource: @resource, reflection: @reflection, view_type: @view_type %>
|
3
4
|
|
4
5
|
<% if can_view? %>
|
5
|
-
<%= link_to helpers.svg('eye', class:
|
6
|
+
<%= link_to helpers.svg('eye', class: button_classes),
|
6
7
|
show_path,
|
7
8
|
title: t('avo.view_item', item: singular_resource_name).capitalize,
|
8
9
|
data: {
|
@@ -14,7 +15,7 @@
|
|
14
15
|
<% end %>
|
15
16
|
|
16
17
|
<% if can_edit? %>
|
17
|
-
<%= link_to helpers.svg('edit', class:
|
18
|
+
<%= link_to helpers.svg('edit', class: button_classes),
|
18
19
|
edit_path,
|
19
20
|
title: t('avo.edit_item', item: singular_resource_name).capitalize,
|
20
21
|
data: {
|
@@ -30,7 +31,7 @@
|
|
30
31
|
<%= form_with url: helpers.resource_detach_path(params[:resource_name], params[:id], params[:related_name], @resource.model.id), method: :delete, html: {
|
31
32
|
'data-turbo-frame': params[:turbo_frame]
|
32
33
|
} do |form| %>
|
33
|
-
<%= form.button helpers.svg('
|
34
|
+
<%= form.button helpers.svg('detach', class: button_classes),
|
34
35
|
title: t('avo.detach_item', item: singular_resource_name).capitalize,
|
35
36
|
type: :submit,
|
36
37
|
data: {
|
@@ -53,7 +54,7 @@
|
|
53
54
|
html: {
|
54
55
|
'data-turbo-frame': params[:turbo_frame]
|
55
56
|
} do |form| %>
|
56
|
-
<%= form.button helpers.svg('trash', class:
|
57
|
+
<%= form.button helpers.svg('trash', class: button_classes),
|
57
58
|
title: t('avo.delete_item', item: singular_resource_name).capitalize,
|
58
59
|
type: :submit,
|
59
60
|
data: {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<% if @resources.present?%>
|
2
|
-
<div class="w-full grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 2xl:grid-cols-6 gap-6">
|
2
|
+
<div class="w-full grid grid-cols-1 xs:grid-cols-2 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-3 xl:grid-cols-4 2xl:grid-cols-6 gap-6 mt-8">
|
3
3
|
<% @resources.each_with_index do |resource, index| %>
|
4
4
|
<% cache_if Avo.configuration.cache_resources_on_index_view, resource.cache_hash(@parent_model) do %>
|
5
5
|
<%= render(Avo::Index::GridItemComponent.new(resource: resource, reflection: @reflection, parent_model: @parent_model)) %>
|
@@ -7,7 +7,7 @@
|
|
7
7
|
<% end %>
|
8
8
|
</div>
|
9
9
|
<% else %>
|
10
|
-
<div class="bg-white rounded
|
11
|
-
<%= helpers.empty_state @resource.name.downcase.pluralize %>
|
10
|
+
<div class="bg-white rounded shadow-panel">
|
11
|
+
<%= helpers.empty_state resource_name: @resource.name.downcase.pluralize, related_name: params[:related_name], view_type: :grid %>
|
12
12
|
</div>
|
13
13
|
<% end %>
|
@@ -1,16 +1,12 @@
|
|
1
|
-
<div class="w-full">
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
<%
|
7
|
-
|
8
|
-
<%= render Avo::Index::TableRowComponent.new(resource: resource, reflection: @reflection, parent_model: @parent_model) %>
|
9
|
-
<% end %>
|
1
|
+
<div class="w-full ">
|
2
|
+
<table class="w-full px-4 bg-white rounded" data-resource-name='<%= @resource.model_key %>' data-controller='item-select-all'>
|
3
|
+
<%= render partial: 'avo/partials/table_header', locals: {fields: @resource.get_fields(reflection: @reflection)} %>
|
4
|
+
<tbody class="divide-y">
|
5
|
+
<% @resources.each_with_index do |resource, index| %>
|
6
|
+
<% cache_if Avo.configuration.cache_resources_on_index_view, resource.cache_hash(@parent_model) do %>
|
7
|
+
<%= render Avo::Index::TableRowComponent.new(resource: resource, reflection: @reflection, parent_model: @parent_model) %>
|
10
8
|
<% end %>
|
11
|
-
|
12
|
-
</
|
13
|
-
|
14
|
-
<%= helpers.empty_state @resource.name.downcase.pluralize %>
|
15
|
-
<% end %>
|
9
|
+
<% end %>
|
10
|
+
</tbody>
|
11
|
+
</table>
|
16
12
|
</div>
|
@@ -1,17 +1,19 @@
|
|
1
|
-
<div class="modal-container fixed inset-0 w-full min-h-screen z-
|
1
|
+
<div class="modal-container fixed inset-0 w-full min-h-screen z-[100] flex justify-center items-center"
|
2
2
|
data-controller="modal"
|
3
3
|
data-modal-target="modal"
|
4
4
|
>
|
5
5
|
<div aria-expanded="true" class="modal-overlay absolute w-full h-full bg-opacity-25 bg-gray-800 flex justify-center items-center" data-action="click->modal#close"></div>
|
6
|
-
<div aria-expanded="true" role="dialog" aria-modal="true" class="modal-body rounded-
|
6
|
+
<div aria-expanded="true" role="dialog" aria-modal="true" class="modal-body rounded-lg overflow-hidden inset-auto w-11/12 lg:w-1/2 sm:max-w-168 min-h-1/4 bg-white flex z-50 relative shadow-modal">
|
7
7
|
<div class="flex-1 flex flex-col justify-between">
|
8
|
-
<div class="p-4 my-4 text-lg tracking-wide font-bold text-center text-gray-700">
|
9
|
-
<%= heading %>
|
10
|
-
</div>
|
11
8
|
<div>
|
12
|
-
|
9
|
+
<div class="p-6 text-2xl tracking-normal font-semibold text-black">
|
10
|
+
<%= heading %>
|
11
|
+
</div>
|
12
|
+
<div class="px-6 text-base text-gray-500">
|
13
|
+
<%= content %>
|
14
|
+
</div>
|
13
15
|
</div>
|
14
|
-
<div class="flex justify-end items-baseline space-x-4 p-4 bg-gray-
|
16
|
+
<div class="flex justify-end items-baseline space-x-4 p-4 bg-gray-100">
|
15
17
|
<%= controls %>
|
16
18
|
</div>
|
17
19
|
</div>
|
data/app/{views/avo/partials/_paginator.html.erb → components/avo/paginator_component.html.erb}
RENAMED
@@ -1,24 +1,21 @@
|
|
1
1
|
<%
|
2
|
-
per_page_options = [*Avo.configuration.per_page_steps, Avo.configuration.per_page.to_i,
|
2
|
+
per_page_options = [*Avo.configuration.per_page_steps, Avo.configuration.per_page.to_i, index_params[:per_page].to_i]
|
3
3
|
|
4
|
-
if
|
4
|
+
if parent_resource.present?
|
5
5
|
per_page_options.prepend Avo.configuration.via_per_page
|
6
6
|
end
|
7
7
|
|
8
8
|
per_page_options = per_page_options.sort.uniq
|
9
9
|
%>
|
10
|
-
|
11
|
-
<div class="
|
12
|
-
<div class="hidden sm:flex-2 sm:flex sm:items-center sm:justify-between">
|
10
|
+
<div class="flex flex-col sm:flex-row items-center justify-between aborder-t aborder-slate-200 rounded-xl space-y-2 sm:space-y-0">
|
11
|
+
<div class="flex-2 sm:flex sm:items-center sm:justify-between">
|
13
12
|
<div>
|
14
13
|
<div class="text-sm leading-5 text-slate-600 flex items-center">
|
15
|
-
<div class="mr-2"><%== pagy_info @pagy %></div>
|
16
|
-
|
17
14
|
<div data-controller="per-page">
|
18
15
|
<div class="flex items-center">
|
19
16
|
<%= select_tag 'per_page',
|
20
|
-
options_for_select(per_page_options,
|
21
|
-
class: 'appearance-none inline-flex bg-
|
17
|
+
options_for_select(per_page_options, index_params[:per_page]),
|
18
|
+
class: 'appearance-none inline-flex bg-white-100 disabled:bg-white-400 disabled:cursor-not-allowed focus:bg-white text-slate-700 disabled:text-slate-600 rounded-md py-1 px-2 leading-tight border border-slate-300 outline-none focus:border-slate-400 outline w-16 mr-1 text-sm',
|
22
19
|
data: {
|
23
20
|
'turbo-frame': turbo_frame,
|
24
21
|
'per-page-target': 'selector',
|
@@ -26,12 +23,11 @@
|
|
26
23
|
}
|
27
24
|
%> <%= t('avo.per_page').downcase %>
|
28
25
|
</div>
|
29
|
-
|
30
26
|
<% per_page_options.each do |option| %>
|
31
|
-
<% if
|
32
|
-
<%= link_to "Change to #{option} items per page", related_resources_path(
|
27
|
+
<% if parent_resource.present? %>
|
28
|
+
<%= link_to "Change to #{option} items per page", helpers.related_resources_path(parent_resource.model_class, resource.model_class, per_page: option, keep_query_params: true), class: 'hidden', 'data-per-page-option': option, 'data-turbo-frame': turbo_frame %>
|
33
29
|
<% else %>
|
34
|
-
<%= link_to "Change to #{option} items per page", resources_path(resource:
|
30
|
+
<%= link_to "Change to #{option} items per page", helpers.resources_path(resource: resource, per_page: option, keep_query_params: true), class: 'hidden', 'data-per-page-option': option, 'data-turbo-frame': turbo_frame %>
|
35
31
|
<% end %>
|
36
32
|
<% end %>
|
37
33
|
</div>
|
@@ -39,10 +35,14 @@
|
|
39
35
|
</div>
|
40
36
|
</div>
|
41
37
|
<div class="flex">
|
42
|
-
<div class="flex-2 sm:flex sm:items-center sm:justify-between">
|
43
|
-
|
38
|
+
<div class="flex-2 sm:flex sm:items-center sm:justify-between space-y-2 sm:space-y-0 text-center sm:text-left">
|
39
|
+
<% if @pagy.count > 0 %>
|
40
|
+
<div class="text-sm text-slate-600 mr-4"><%== helpers.pagy_info @pagy %></div>
|
41
|
+
<% end %>
|
42
|
+
|
44
43
|
<% if @pagy.pages > 1 %>
|
45
|
-
|
44
|
+
<%# @todo: add first & last page. make the first and last buttons rounded %>
|
45
|
+
<%== helpers.pagy_nav @pagy %>
|
46
46
|
<% end %>
|
47
47
|
</div>
|
48
48
|
</div>
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
class Avo::PaginatorComponent < ViewComponent::Base
|
4
|
+
attr_reader :pagy
|
5
|
+
attr_reader :turbo_frame
|
6
|
+
attr_reader :index_params
|
7
|
+
attr_reader :resource
|
8
|
+
attr_reader :parent_resource
|
9
|
+
|
10
|
+
def initialize(resource: nil, parent_resource: nil, pagy:, turbo_frame:, index_params:)
|
11
|
+
@pagy = pagy
|
12
|
+
@turbo_frame = turbo_frame
|
13
|
+
@index_params = index_params
|
14
|
+
@resource = resource
|
15
|
+
@parent_resource = parent_resource
|
16
|
+
end
|
17
|
+
end
|
@@ -1,31 +1,35 @@
|
|
1
1
|
<div <%== data_attributes %>>
|
2
|
-
|
3
|
-
<div>
|
4
|
-
|
5
|
-
|
6
|
-
|
2
|
+
<% if render_header? %>
|
3
|
+
<div class="bg-white rounded shadow 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 bg-white rounded
|
28
|
+
<div class="relative bg-white rounded shadow <%= @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
|
|
@@ -1,6 +1,8 @@
|
|
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
|
@@ -24,12 +26,16 @@ class Avo::PanelComponent < ViewComponent::Base
|
|
24
26
|
end
|
25
27
|
|
26
28
|
def display_breadcrumbs?
|
27
|
-
@display_breadcrumbs
|
29
|
+
@display_breadcrumbs == true && Avo.configuration.display_breadcrumbs == true
|
28
30
|
end
|
29
31
|
|
30
32
|
def description
|
31
33
|
return @description if @description.present?
|
32
34
|
|
33
|
-
|
35
|
+
""
|
36
|
+
end
|
37
|
+
|
38
|
+
def render_header?
|
39
|
+
@title.present? || description.present? || tools.present? || display_breadcrumbs?
|
34
40
|
end
|
35
41
|
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
|
@@ -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 %>
|