avo 1.25.2 → 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 +10 -1
- data/Gemfile.lock +19 -6
- 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 +5 -9
- 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 +6 -8
- 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/date_field.rb +1 -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 -1
- 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 +348 -88688
- 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 -50
- data/app/assets/builds/action_cable.js +0 -2
- data/app/assets/builds/action_cable.js.map +0 -7
- data/app/assets/builds/application.js +0 -2
- data/app/assets/builds/application.js.map +0 -7
- data/app/assets/builds/avo.css +0 -8610
- data/app/assets/builds/avo.js +0 -88762
- data/app/assets/builds/avo.js.map +0 -7
- data/app/assets/builds/avo_custom.js +0 -6
- data/app/assets/builds/avo_custom.js.map +0 -7
- 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
|
require_dependency "avo/base_controller"
|
2
2
|
|
3
3
|
module Avo
|
4
|
-
class
|
4
|
+
class AssociationsController < BaseController
|
5
5
|
before_action :set_model, only: [:show, :index, :new, :create, :destroy, :order]
|
6
6
|
before_action :set_related_resource_name
|
7
7
|
before_action :set_related_resource, only: [:show, :index, :new, :create, :destroy, :order]
|
@@ -61,10 +61,8 @@ module Avo
|
|
61
61
|
respond_to do |format|
|
62
62
|
if @model.save
|
63
63
|
format.html { redirect_to resource_path(model: @model, resource: @resource), notice: t("avo.attachment_class_attached", attachment_class: @related_resource.name) }
|
64
|
-
format.json { render :show, status: :created, location: resource_path(model: @model, resource: @resource) }
|
65
64
|
else
|
66
65
|
format.html { render :new }
|
67
|
-
format.json { render json: @model.errors, status: :unprocessable_entity }
|
68
66
|
end
|
69
67
|
end
|
70
68
|
end
|
@@ -17,12 +17,8 @@ module Avo
|
|
17
17
|
}
|
18
18
|
end
|
19
19
|
|
20
|
-
def show
|
21
|
-
end
|
22
|
-
|
23
20
|
def destroy
|
24
|
-
|
25
|
-
attachment = blob.attachments.find_by record_id: params[:id], record_type: @model.class.to_s
|
21
|
+
attachment = ActiveStorage::Attachment.find(params[:attachment_id])
|
26
22
|
path = resource_path(model: @model, resource: @resource)
|
27
23
|
|
28
24
|
if attachment.present?
|
@@ -13,14 +13,14 @@ module Avo
|
|
13
13
|
before_action :cache_applied_filters, only: :index
|
14
14
|
|
15
15
|
def index
|
16
|
-
@page_title =
|
17
|
-
add_breadcrumb
|
16
|
+
@page_title = @resource.plural_name.humanize
|
17
|
+
add_breadcrumb @resource.plural_name.humanize
|
18
18
|
|
19
19
|
set_index_params
|
20
20
|
set_filters
|
21
21
|
set_actions
|
22
22
|
|
23
|
-
# If we don't get a query object predefined from a child controller like
|
23
|
+
# If we don't get a query object predefined from a child controller like associations, just spin one up
|
24
24
|
unless defined? @query
|
25
25
|
@query = @resource.class.query_scope
|
26
26
|
end
|
@@ -30,7 +30,7 @@ module Avo
|
|
30
30
|
@query = @query.unscoped
|
31
31
|
end
|
32
32
|
|
33
|
-
# Eager load the
|
33
|
+
# Eager load the associations
|
34
34
|
if @resource.includes.present?
|
35
35
|
@query = @query.includes(*@resource.includes)
|
36
36
|
end
|
@@ -62,9 +62,9 @@ module Avo
|
|
62
62
|
def show
|
63
63
|
set_actions
|
64
64
|
|
65
|
-
@resource
|
65
|
+
@resource.hydrate(model: @model, view: :show, user: _current_user, params: params)
|
66
66
|
|
67
|
-
@page_title = @resource.default_panel_name
|
67
|
+
@page_title = @resource.default_panel_name.to_s
|
68
68
|
|
69
69
|
# If we're accessing this resource via another resource add the parent to the breadcrumbs.
|
70
70
|
if params[:via_resource_class].present? && params[:via_resource_id].present?
|
@@ -75,25 +75,26 @@ module Avo
|
|
75
75
|
add_breadcrumb via_resource.plural_name, resources_path(resource: via_resource)
|
76
76
|
add_breadcrumb via_resource.model_title, resource_path(model: via_model, resource: via_resource)
|
77
77
|
else
|
78
|
-
add_breadcrumb
|
78
|
+
add_breadcrumb @resource.plural_name.humanize, resources_path(resource: @resource)
|
79
79
|
end
|
80
80
|
|
81
81
|
add_breadcrumb @resource.model_title
|
82
|
+
add_breadcrumb I18n.t("avo.details").upcase_first
|
82
83
|
end
|
83
84
|
|
84
85
|
def new
|
85
86
|
@model = @resource.model_class.new
|
86
87
|
@resource = @resource.hydrate(model: @model, view: :new, user: _current_user)
|
87
88
|
|
88
|
-
@page_title = @resource.default_panel_name
|
89
|
-
add_breadcrumb
|
89
|
+
@page_title = @resource.default_panel_name.to_s
|
90
|
+
add_breadcrumb @resource.plural_name.humanize, resources_path(resource: @resource)
|
90
91
|
add_breadcrumb t("avo.new").humanize
|
91
92
|
end
|
92
93
|
|
93
94
|
def edit
|
94
95
|
@resource = @resource.hydrate(model: @model, view: :edit, user: _current_user)
|
95
96
|
|
96
|
-
@page_title = @resource.default_panel_name
|
97
|
+
@page_title = @resource.default_panel_name.to_s
|
97
98
|
|
98
99
|
# If we're accessing this resource via another resource add the parent to the breadcrumbs.
|
99
100
|
if params[:via_resource_class].present? && params[:via_resource_id].present?
|
@@ -104,7 +105,7 @@ module Avo
|
|
104
105
|
add_breadcrumb via_resource.plural_name, resources_path(resource: @resource)
|
105
106
|
add_breadcrumb via_resource.model_title, resource_path(model: via_model, resource: via_resource)
|
106
107
|
else
|
107
|
-
add_breadcrumb
|
108
|
+
add_breadcrumb @resource.plural_name.humanize, resources_path(resource: @resource)
|
108
109
|
end
|
109
110
|
|
110
111
|
add_breadcrumb @resource.model_title, resource_path(model: @resource.model, resource: @resource)
|
@@ -155,11 +156,9 @@ module Avo
|
|
155
156
|
end
|
156
157
|
|
157
158
|
format.html { redirect_to redirect_path, notice: "#{@model.class.name} #{t("avo.was_successfully_created")}." }
|
158
|
-
format.json { render :show, status: :created, location: @model }
|
159
159
|
else
|
160
|
-
flash[:error] = t "avo.you_missed_something_check_form"
|
160
|
+
flash.now[:error] = t "avo.you_missed_something_check_form"
|
161
161
|
format.html { render :new, status: :unprocessable_entity }
|
162
|
-
format.json { render json: @model.errors, status: :unprocessable_entity }
|
163
162
|
end
|
164
163
|
end
|
165
164
|
end
|
@@ -172,11 +171,9 @@ module Avo
|
|
172
171
|
respond_to do |format|
|
173
172
|
if saved
|
174
173
|
format.html { redirect_to params[:referrer] || resource_path(model: @model, resource: @resource), notice: "#{@model.class.name} #{t("avo.was_successfully_updated")}." }
|
175
|
-
format.json { render :show, status: :ok, location: @model }
|
176
174
|
else
|
177
|
-
flash[:error] = t "avo.you_missed_something_check_form"
|
175
|
+
flash.now[:error] = t "avo.you_missed_something_check_form"
|
178
176
|
format.html { render :edit, status: :unprocessable_entity }
|
179
|
-
format.json { render json: @model.errors, status: :unprocessable_entity }
|
180
177
|
end
|
181
178
|
end
|
182
179
|
end
|
@@ -291,13 +288,12 @@ module Avo
|
|
291
288
|
model = @resource.class.find_scope.find params[:resource_id]
|
292
289
|
end
|
293
290
|
|
294
|
-
@actions =
|
295
|
-
|
296
|
-
|
297
|
-
.
|
298
|
-
|
299
|
-
|
300
|
-
.select { |action| action.visible_in_view }
|
291
|
+
@actions = @resource
|
292
|
+
.get_actions
|
293
|
+
.map do |action|
|
294
|
+
action.new(model: model, resource: @resource, view: @view)
|
295
|
+
end
|
296
|
+
.select { |action| action.visible_in_view }
|
301
297
|
end
|
302
298
|
|
303
299
|
def applied_filters
|
@@ -0,0 +1,28 @@
|
|
1
|
+
require_dependency "avo/application_controller"
|
2
|
+
|
3
|
+
module Avo
|
4
|
+
class DashboardsController < ApplicationController
|
5
|
+
before_action :set_dashboard
|
6
|
+
|
7
|
+
def show
|
8
|
+
end
|
9
|
+
|
10
|
+
def card
|
11
|
+
@card = @dashboard.items.find do |item|
|
12
|
+
next unless item.is_card?
|
13
|
+
|
14
|
+
item.id.to_s == params[:card_id]
|
15
|
+
end.tap do |card|
|
16
|
+
card.hydrate(dashboard: @dashboard, params: params)
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
private
|
21
|
+
|
22
|
+
def set_dashboard
|
23
|
+
@dashboard = Avo::App.get_dashboard_by_id params[:dashboard_id]
|
24
|
+
|
25
|
+
raise ActionController::RoutingError.new("Not Found") if @dashboard.nil?
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -16,8 +16,8 @@ module Avo
|
|
16
16
|
}
|
17
17
|
end
|
18
18
|
|
19
|
-
def empty_state(
|
20
|
-
render
|
19
|
+
def empty_state(**args)
|
20
|
+
render Avo::EmptyStateComponent.new **args
|
21
21
|
end
|
22
22
|
|
23
23
|
def turbo_frame_wrap(name, &block)
|
@@ -26,56 +26,26 @@ module Avo
|
|
26
26
|
end
|
27
27
|
end
|
28
28
|
|
29
|
-
def a_button(
|
30
|
-
|
31
|
-
|
32
|
-
args[:"data-controller"] = "loading-button"
|
33
|
-
end
|
34
|
-
|
35
|
-
locals = {
|
36
|
-
label: label,
|
37
|
-
args: args
|
38
|
-
}
|
39
|
-
|
40
|
-
if block
|
41
|
-
render layout: "avo/partials/a_button", locals: locals do
|
42
|
-
capture(&block)
|
43
|
-
end
|
44
|
-
else
|
45
|
-
render partial: "avo/partials/a_button", locals: locals
|
29
|
+
def a_button(**args, &block)
|
30
|
+
render Avo::ButtonComponent.new(is_link: false, **args) do
|
31
|
+
capture(&block) if block_given?
|
46
32
|
end
|
47
33
|
end
|
48
34
|
|
49
|
-
def a_link(
|
50
|
-
|
51
|
-
|
52
|
-
if block
|
53
|
-
url = label
|
54
|
-
end
|
55
|
-
|
56
|
-
locals = {
|
57
|
-
label: label,
|
58
|
-
url: url,
|
59
|
-
args: args
|
60
|
-
}
|
61
|
-
|
62
|
-
if block
|
63
|
-
render layout: "avo/partials/a_link", locals: locals do
|
64
|
-
capture(&block)
|
65
|
-
end
|
66
|
-
else
|
67
|
-
render partial: "avo/partials/a_link", locals: locals
|
35
|
+
def a_link(path = nil, **args, &block)
|
36
|
+
render Avo::ButtonComponent.new(path, is_link: true, **args) do
|
37
|
+
capture(&block) if block_given?
|
68
38
|
end
|
69
39
|
end
|
70
40
|
|
71
|
-
def button_classes(extra_classes = nil, color: nil, variant: nil, size: :md)
|
72
|
-
classes = "inline-flex flex-grow-0 items-center text-sm font-
|
41
|
+
def button_classes(extra_classes = nil, color: nil, variant: nil, size: :md, active: false)
|
42
|
+
classes = "inline-flex flex-grow-0 items-center text-sm font-semibold leading-6 fill-current whitespace-nowrap transition duration-100 rounded transform transition duration-100 active:translate-x-px active:translate-y-px cursor-pointer disabled:cursor-not-allowed #{extra_classes}"
|
73
43
|
|
74
44
|
if color.present?
|
75
45
|
if variant.present? && (variant.to_sym == :outlined)
|
76
46
|
classes += " bg-white border"
|
77
47
|
|
78
|
-
classes += " hover:border-#{color}-700 border-#{color}-
|
48
|
+
classes += " hover:border-#{color}-700 border-#{color}-500 text-#{color}-600 hover:text-#{color}-700 disabled:border-gray-300 disabled:text-gray-600"
|
79
49
|
else
|
80
50
|
classes += " text-white bg-#{color}-500 hover:bg-#{color}-600 disabled:bg-#{color}-300"
|
81
51
|
end
|
@@ -88,9 +58,11 @@ module Avo
|
|
88
58
|
when :xs
|
89
59
|
" p-2 py-1"
|
90
60
|
when :sm
|
91
|
-
"
|
61
|
+
" py-1 px-4"
|
92
62
|
when :md
|
93
|
-
"
|
63
|
+
" py-2 px-4"
|
64
|
+
when :xl
|
65
|
+
" py-3 px-4"
|
94
66
|
else
|
95
67
|
" p-4"
|
96
68
|
end
|
@@ -100,9 +72,19 @@ module Avo
|
|
100
72
|
|
101
73
|
def svg(file_name, **args)
|
102
74
|
options = {}
|
103
|
-
options[:class] = args[:class].present? ? args[:class] : "
|
75
|
+
options[:class] = args[:class].present? ? args[:class] : ""
|
104
76
|
options[:class] += args[:extra_class].present? ? " #{args[:extra_class]}" : ""
|
105
77
|
|
78
|
+
if args[:'data-target'].present?
|
79
|
+
options[:'data-target'] = args[:'data-target']
|
80
|
+
end
|
81
|
+
if args[:'data-tippy'].present?
|
82
|
+
options[:'data-tippy'] = args[:'data-tippy']
|
83
|
+
end
|
84
|
+
if args[:title].present?
|
85
|
+
options[:title] = args[:title]
|
86
|
+
end
|
87
|
+
|
106
88
|
# Create the path to the svgs directory
|
107
89
|
file_path = "#{Avo::Engine.root}/app/assets/svgs/#{file_name}"
|
108
90
|
file_path = "#{file_path}.svg" unless file_path.end_with? ".svg"
|
@@ -110,7 +92,7 @@ module Avo
|
|
110
92
|
# Create a cache hash
|
111
93
|
hash = Digest::MD5.hexdigest "#{file_path.underscore}_#{options}"
|
112
94
|
|
113
|
-
svg_content = Avo::App.cache_store.fetch "svg_file_#{hash}", expires_in: 1.
|
95
|
+
svg_content = Avo::App.cache_store.fetch "svg_file_#{hash}", expires_in: 1.week, cache_nils: false do
|
114
96
|
if File.exist?(file_path)
|
115
97
|
file = File.read(file_path)
|
116
98
|
|
@@ -134,12 +116,12 @@ module Avo
|
|
134
116
|
end
|
135
117
|
|
136
118
|
def input_classes(extra_classes = "", has_error: false)
|
137
|
-
classes = "appearance-none inline-flex bg-
|
119
|
+
classes = "appearance-none inline-flex bg-gray-100 disabled:cursor-not-allowed text-gray-600 disabled:opacity-50 rounded py-2 px-3 leading-tight border focus:border-gray-600 focus-visible:ring-0 focus:text-gray-700"
|
138
120
|
|
139
121
|
classes += if has_error
|
140
122
|
" border-red-600"
|
141
123
|
else
|
142
|
-
" border-
|
124
|
+
" border-gray-200"
|
143
125
|
end
|
144
126
|
|
145
127
|
classes += " #{extra_classes}"
|
@@ -47,7 +47,7 @@ module Avo
|
|
47
47
|
|
48
48
|
def item_selector_input(floating: false, size: :md)
|
49
49
|
"<input type='checkbox'
|
50
|
-
class='mx-3 #{"absolute inset-auto left-0 mt-2 z-10 hidden group-hover:block checked:block" if floating} #{size.to_sym == :lg ? "w-5 h-5" : "w-4 h-4"}'
|
50
|
+
class='mx-3 rounded #{"absolute inset-auto left-0 mt-2 z-10 hidden group-hover:block checked:block" if floating} #{size.to_sym == :lg ? "w-5 h-5" : "w-4 h-4"}'
|
51
51
|
data-action='input->item-selector#toggle input->item-select-all#update'
|
52
52
|
data-item-select-all-target='itemCheckbox'
|
53
53
|
name='#{t "avo.select_item"}'
|
@@ -58,7 +58,7 @@ module Avo
|
|
58
58
|
|
59
59
|
def item_select_all_input
|
60
60
|
"<input type='checkbox'
|
61
|
-
class='mx-3 w-4 h-4'
|
61
|
+
class='mx-3 rounded w-4 h-4'
|
62
62
|
data-action='input->item-select-all#toggle'
|
63
63
|
data-item-select-all-target='checkbox'
|
64
64
|
name='#{t "avo.select_all"}'
|
@@ -4,20 +4,16 @@ module Avo
|
|
4
4
|
return if resource.nil?
|
5
5
|
|
6
6
|
existing_params = {}
|
7
|
-
|
8
|
-
|
7
|
+
if keep_query_params
|
8
|
+
begin
|
9
9
|
existing_params =
|
10
10
|
Addressable::URI.parse(request.fullpath).query_values.symbolize_keys
|
11
|
+
rescue
|
11
12
|
end
|
12
|
-
rescue
|
13
13
|
end
|
14
14
|
|
15
|
-
#
|
16
|
-
#
|
17
|
-
route_key = resource.model_key
|
18
|
-
route_key << "_index" if resource.model_name.singular == resource.model_name.plural
|
19
|
-
|
20
|
-
avo.send :"resources_#{route_key}_path", **existing_params, **args
|
15
|
+
# This entry uses `route_key` instead of `model_key` because it's rails that needs `fish_index` to build the correct path
|
16
|
+
avo.send :"resources_#{resource.route_key}_path", **existing_params, **args
|
21
17
|
end
|
22
18
|
|
23
19
|
def resource_path(
|
data/app/javascript/avo.js
CHANGED
@@ -8,16 +8,23 @@ import { Turbo } from '@hotwired/turbo-rails'
|
|
8
8
|
import Rails from '@rails/ujs'
|
9
9
|
import tippy from 'tippy.js'
|
10
10
|
|
11
|
+
import 'chartkick/chart.js/chart.esm'
|
12
|
+
|
11
13
|
// Toastr alerts
|
12
14
|
import './js/active-storage'
|
13
15
|
import './js/controllers'
|
14
|
-
import './js/toastr'
|
15
16
|
|
16
17
|
Rails.start()
|
17
18
|
|
18
19
|
window.Turbolinks = Turbo
|
19
20
|
|
20
|
-
|
21
|
+
let scrollTop = null
|
22
|
+
Mousetrap.bind('r r r', () => {
|
23
|
+
// Cpture scroll position
|
24
|
+
scrollTop = document.scrollingElement.scrollTop
|
25
|
+
|
26
|
+
Turbo.visit(window.location.href, { action: 'replace' })
|
27
|
+
})
|
21
28
|
|
22
29
|
function isMac() {
|
23
30
|
const isMac = window.navigator.userAgent.indexOf('Mac OS X')
|
@@ -36,6 +43,7 @@ function initTippy() {
|
|
36
43
|
content(reference) {
|
37
44
|
const title = reference.getAttribute('title')
|
38
45
|
reference.removeAttribute('title')
|
46
|
+
reference.removeAttribute('data-tippy')
|
39
47
|
|
40
48
|
return title
|
41
49
|
},
|
@@ -49,6 +57,18 @@ document.addEventListener('turbo:load', () => {
|
|
49
57
|
document.body.classList.remove('turbo-loading')
|
50
58
|
initTippy()
|
51
59
|
isMac()
|
60
|
+
|
61
|
+
// Restore scroll position after r r r turbo reload
|
62
|
+
if (scrollTop) {
|
63
|
+
setTimeout(() => {
|
64
|
+
document.scrollingElement.scrollTo(0, scrollTop)
|
65
|
+
scrollTop = 0
|
66
|
+
}, 50)
|
67
|
+
}
|
68
|
+
})
|
69
|
+
|
70
|
+
document.addEventListener('turbo:frame-load', () => {
|
71
|
+
initTippy()
|
52
72
|
})
|
53
73
|
|
54
74
|
document.addEventListener('turbo:before-fetch-response', (e) => {
|
@@ -1,5 +1,5 @@
|
|
1
|
+
import { Alert, Popover } from 'tailwindcss-stimulus-components'
|
1
2
|
import { Application } from '@hotwired/stimulus'
|
2
|
-
import { Popover } from 'tailwindcss-stimulus-components'
|
3
3
|
|
4
4
|
const application = Application.start()
|
5
5
|
|
@@ -8,6 +8,7 @@ application.debug = false
|
|
8
8
|
window.Stimulus = application
|
9
9
|
|
10
10
|
// Register stimulus-components controller
|
11
|
+
application.register('alert', Alert)
|
11
12
|
application.register('popover', Popover)
|
12
13
|
|
13
14
|
export { application }
|
@@ -4,30 +4,32 @@ import { Controller } from '@hotwired/stimulus'
|
|
4
4
|
export default class extends Controller {
|
5
5
|
static targets = ['resourceAction', 'standaloneAction']
|
6
6
|
|
7
|
+
static classes = ['enabled', 'disabled']
|
8
|
+
|
7
9
|
target = {}
|
8
10
|
|
11
|
+
get targetIsDisabled() {
|
12
|
+
return this.target.dataset.disabled === 'true'
|
13
|
+
}
|
14
|
+
|
9
15
|
enableTarget() {
|
10
|
-
if (this.targetIsDisabled
|
11
|
-
this.target.classList.remove(
|
12
|
-
this.target.classList.add(
|
16
|
+
if (this.targetIsDisabled) {
|
17
|
+
this.target.classList.remove(...this.disabledClasses)
|
18
|
+
this.target.classList.add(...this.enabledClasses)
|
13
19
|
this.target.dataset.disabled = false
|
14
20
|
}
|
15
21
|
}
|
16
22
|
|
17
23
|
disableTarget() {
|
18
|
-
this.target.classList.
|
19
|
-
this.target.classList.
|
24
|
+
this.target.classList.remove(...this.enabledClasses)
|
25
|
+
this.target.classList.add(...this.disabledClasses)
|
20
26
|
this.target.dataset.disabled = true
|
21
27
|
}
|
22
28
|
|
23
|
-
targetIsDisabled() {
|
24
|
-
return this.target.dataset.disabled === 'true'
|
25
|
-
}
|
26
|
-
|
27
29
|
visitAction(event) {
|
28
30
|
this.target = event.target
|
29
31
|
|
30
|
-
if (this.targetIsDisabled
|
32
|
+
if (this.targetIsDisabled) {
|
31
33
|
event.preventDefault()
|
32
34
|
|
33
35
|
return
|
@@ -0,0 +1,33 @@
|
|
1
|
+
import { Controller } from '@hotwired/stimulus'
|
2
|
+
|
3
|
+
export default class extends Controller {
|
4
|
+
static targets = ['card'];
|
5
|
+
|
6
|
+
interval;
|
7
|
+
|
8
|
+
get parentTurboFrame() {
|
9
|
+
return this.context.scope.element.closest('turbo-frame')
|
10
|
+
}
|
11
|
+
|
12
|
+
get refreshInterval() {
|
13
|
+
if (this.cardTarget.dataset.refreshEvery) {
|
14
|
+
return parseInt(this.cardTarget.dataset.refreshEvery, 10) * 1000
|
15
|
+
}
|
16
|
+
|
17
|
+
return undefined
|
18
|
+
}
|
19
|
+
|
20
|
+
connect() {
|
21
|
+
if (this.refreshInterval) {
|
22
|
+
this.interval = setInterval(() => {
|
23
|
+
this.parentTurboFrame.reload()
|
24
|
+
}, this.refreshInterval)
|
25
|
+
}
|
26
|
+
}
|
27
|
+
|
28
|
+
cardTargetDisconnected() {
|
29
|
+
if (this.interval) {
|
30
|
+
clearInterval(this.interval)
|
31
|
+
}
|
32
|
+
}
|
33
|
+
}
|
@@ -5,6 +5,10 @@ export default class extends Controller {
|
|
5
5
|
|
6
6
|
checkbox = {};
|
7
7
|
|
8
|
+
enabledClasses = ['text-black', 'hover:bg-blue-500', 'hover:text-white']
|
9
|
+
|
10
|
+
disabledClasses = ['text-gray-500']
|
11
|
+
|
8
12
|
get actionsPanelPresent() {
|
9
13
|
return this.actionsButtonElement !== null
|
10
14
|
}
|
@@ -72,8 +76,8 @@ export default class extends Controller {
|
|
72
76
|
|
73
77
|
enableResourceActions() {
|
74
78
|
this.actionLinks.forEach((link) => {
|
75
|
-
link.classList.add(
|
76
|
-
link.classList.remove(
|
79
|
+
link.classList.add(...this.enabledClasses)
|
80
|
+
link.classList.remove(...this.disabledClasses)
|
77
81
|
link.setAttribute('data-href', link.getAttribute('href'))
|
78
82
|
link.dataset.disabled = false
|
79
83
|
})
|
@@ -81,8 +85,8 @@ export default class extends Controller {
|
|
81
85
|
|
82
86
|
disableResourceActions() {
|
83
87
|
this.actionLinks.forEach((link) => {
|
84
|
-
link.classList.remove(
|
85
|
-
link.classList.add(
|
88
|
+
link.classList.remove(...this.enabledClasses)
|
89
|
+
link.classList.add(...this.disabledClasses)
|
86
90
|
link.setAttribute('href', link.getAttribute('data-href'))
|
87
91
|
link.dataset.disabled = true
|
88
92
|
})
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { Controller } from '@hotwired/stimulus'
|
2
|
+
import URI from 'urijs'
|
3
|
+
|
4
|
+
export default class extends Controller {
|
5
|
+
static targets = ['select']
|
6
|
+
|
7
|
+
get parentTurboFrame() {
|
8
|
+
return this.context.scope.element.closest('turbo-frame')
|
9
|
+
}
|
10
|
+
|
11
|
+
onChange(e) {
|
12
|
+
if (!this.parentTurboFrame.src) return
|
13
|
+
|
14
|
+
// Get the frame URL
|
15
|
+
const url = new URI(this.parentTurboFrame.src)
|
16
|
+
// update the url with the new range param
|
17
|
+
url.search({ ...url.query(true), range: e.currentTarget.value })
|
18
|
+
// change the src of the frame
|
19
|
+
this.parentTurboFrame.src = url.toString()
|
20
|
+
// reload the frame with new range
|
21
|
+
this.parentTurboFrame.reload()
|
22
|
+
}
|
23
|
+
}
|
@@ -7,6 +7,7 @@ import AttachmentsController from './controllers/attachments_controller'
|
|
7
7
|
import BelongsToFieldController from './controllers/fields/belongs_to_field_controller'
|
8
8
|
import BooleanFilterController from './controllers/boolean_filter_controller'
|
9
9
|
import CodeFieldController from './controllers/fields/code_field_controller'
|
10
|
+
import DashboardCardController from './controllers/dashboard_card_controller'
|
10
11
|
import DateFieldController from './controllers/fields/date_field_controller'
|
11
12
|
import FilterController from './controllers/filter_controller'
|
12
13
|
import HiddenInputController from './controllers/hidden_input_controller'
|
@@ -14,10 +15,12 @@ import ItemSelectAllController from './controllers/item_select_all_controller'
|
|
14
15
|
import ItemSelectorController from './controllers/item_selector_controller'
|
15
16
|
import KeyValueController from './controllers/fields/key_value_controller'
|
16
17
|
import LoadingButtonController from './controllers/loading_button_controller'
|
18
|
+
import MobileController from './controllers/mobile_controller'
|
17
19
|
import ModalController from './controllers/modal_controller'
|
18
20
|
import MultipleSelectFilterController from './controllers/multiple_select_filter_controller'
|
19
21
|
import PerPageController from './controllers/per_page_controller'
|
20
22
|
import SearchController from './controllers/search_controller'
|
23
|
+
import SelectController from './controllers/select_controller'
|
21
24
|
import SelectFilterController from './controllers/select_filter_controller'
|
22
25
|
import SimpleMdeController from './controllers/fields/simple_mde_controller'
|
23
26
|
import TextFilterController from './controllers/text_filter_controller'
|
@@ -30,15 +33,18 @@ application.register('actions-picker', ActionsPickerController)
|
|
30
33
|
application.register('alerts', AlertsController)
|
31
34
|
application.register('attachments', AttachmentsController)
|
32
35
|
application.register('boolean-filter', BooleanFilterController)
|
36
|
+
application.register('dashboard-card', DashboardCardController)
|
33
37
|
application.register('filter', FilterController)
|
34
38
|
application.register('hidden-input', HiddenInputController)
|
35
39
|
application.register('item-select-all', ItemSelectAllController)
|
36
40
|
application.register('item-selector', ItemSelectorController)
|
37
41
|
application.register('loading-button', LoadingButtonController)
|
42
|
+
application.register('mobile', MobileController)
|
38
43
|
application.register('modal', ModalController)
|
39
44
|
application.register('multiple-select-filter', MultipleSelectFilterController)
|
40
45
|
application.register('per-page', PerPageController)
|
41
46
|
application.register('search', SearchController)
|
47
|
+
application.register('select', SelectController)
|
42
48
|
application.register('select-filter', SelectFilterController)
|
43
49
|
application.register('text-filter', TextFilterController)
|
44
50
|
application.register('tippy', TippyController)
|