avo 1.19.1.pre.4 → 1.19.1.pre.5

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

Potentially problematic release.


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

Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +2 -2
  3. data/app/assets/builds/avo.css +388 -275
  4. data/app/assets/builds/avo.js +14 -3
  5. data/app/assets/builds/avo.js.map +2 -2
  6. data/app/assets/stylesheets/avo.css +8 -0
  7. data/app/assets/stylesheets/css/search.css +1 -1
  8. data/app/components/avo/edit/field_wrapper_component.html.erb +1 -1
  9. data/app/components/avo/fields/common/files_list_viewer_component.html.erb +1 -1
  10. data/app/components/avo/fields/common/heading_component.html.erb +1 -1
  11. data/app/components/avo/index/field_wrapper_component.html.erb +1 -1
  12. data/app/components/avo/index/table_row_component.html.erb +1 -1
  13. data/app/components/avo/show/field_wrapper_component.html.erb +1 -1
  14. data/app/helpers/avo/application_helper.rb +2 -2
  15. data/app/javascript/avo.js +12 -0
  16. data/app/views/avo/actions/show.html.erb +1 -1
  17. data/app/views/avo/base/_actions.html.erb +1 -1
  18. data/app/views/avo/base/_filters.html.erb +3 -3
  19. data/app/views/avo/home/_actions.html.erb +1 -1
  20. data/app/views/avo/home/_filters.html.erb +1 -1
  21. data/app/views/avo/home/_resources.html.erb +2 -2
  22. data/app/views/avo/partials/_footer.html.erb +1 -1
  23. data/app/views/avo/partials/_global_search.html.erb +4 -1
  24. data/app/views/avo/partials/_paginator.html.erb +3 -3
  25. data/app/views/avo/partials/_table_header.html.erb +2 -2
  26. data/app/views/layouts/avo/application.html.erb +2 -2
  27. data/bin/test +1 -1
  28. data/lib/avo/configuration.rb +6 -0
  29. data/lib/avo/version.rb +1 -1
  30. data/lib/generators/avo/filter_generator.rb +2 -0
  31. data/lib/generators/avo/templates/filters/text_filter.tt +8 -0
  32. data/public/avo-assets/avo.css +376 -263
  33. data/public/avo-assets/avo.js +14 -3
  34. data/public/avo-assets/avo.js.map +2 -2
  35. metadata +3 -2
@@ -59793,7 +59793,7 @@
59793
59793
  require_xml2();
59794
59794
  var CodeMirrorSpellChecker = require_spell_checker();
59795
59795
  var marked = require_marked();
59796
- var isMac = /Mac/.test(navigator.platform);
59796
+ var isMac2 = /Mac/.test(navigator.platform);
59797
59797
  var bindings = {
59798
59798
  "toggleBold": toggleBold,
59799
59799
  "toggleItalic": toggleItalic,
@@ -59851,7 +59851,7 @@
59851
59851
  return check;
59852
59852
  };
59853
59853
  function fixShortcut(name) {
59854
- if (isMac) {
59854
+ if (isMac2) {
59855
59855
  name = name.replace("Ctrl", "Cmd");
59856
59856
  } else {
59857
59857
  name = name.replace("Cmd", "Ctrl");
@@ -59864,7 +59864,7 @@
59864
59864
  enableTooltips = enableTooltips == void 0 ? true : enableTooltips;
59865
59865
  if (options.title && enableTooltips) {
59866
59866
  el.title = createTootlip(options.title, options.action, shortcuts2);
59867
- if (isMac) {
59867
+ if (isMac2) {
59868
59868
  el.title = el.title.replace("Ctrl", "\u2318");
59869
59869
  el.title = el.title.replace("Alt", "\u2325");
59870
59870
  }
@@ -87661,6 +87661,16 @@
87661
87661
  import_ujs.default.start();
87662
87662
  window.Turbolinks = turbo_es2017_esm_exports;
87663
87663
  Mousetrap2.bind("r r r", () => turbo_es2017_esm_exports.visit(window.location.href, { action: "replace" }));
87664
+ function isMac() {
87665
+ const isMac2 = window.navigator.userAgent.indexOf("Mac OS X");
87666
+ if (isMac2) {
87667
+ document.body.classList.add("os-mac");
87668
+ document.body.classList.remove("os-pc");
87669
+ } else {
87670
+ document.body.classList.add("os-pc");
87671
+ document.body.classList.remove("os-mac");
87672
+ }
87673
+ }
87664
87674
  function initTippy() {
87665
87675
  tippy_esm_default('[data-tippy="tooltip"]', {
87666
87676
  theme: "light",
@@ -87676,6 +87686,7 @@
87676
87686
  document.addEventListener("turbo:load", () => {
87677
87687
  document.body.classList.remove("turbo-loading");
87678
87688
  initTippy();
87689
+ isMac();
87679
87690
  });
87680
87691
  document.addEventListener("turbo:before-fetch-response", (e2) => {
87681
87692
  if (e2.detail.fetchResponse.response.status === 500) {