beyond_canvas 0.22.0.pre → 0.23.0.pre

Sign up to get free protection for your applications and to get access to all the features.
Files changed (77) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/images/icons/adblocker.svg +5 -0
  3. data/app/assets/images/icons/checkbox_checked.svg +1 -1
  4. data/app/assets/images/icons/checkbox_unchecked.svg +1 -1
  5. data/app/assets/images/icons/external_link.svg +1 -0
  6. data/app/assets/images/icons/toggle.svg +1 -0
  7. data/app/assets/images/icons/toggle_checked.svg +3 -0
  8. data/app/assets/images/icons/toggle_unchecked.svg +3 -0
  9. data/app/assets/javascripts/beyond_canvas/base.js +77 -31
  10. data/app/assets/stylesheets/beyond_canvas/base.scss +19 -18
  11. data/app/assets/stylesheets/beyond_canvas/components/_action_bar.scss +11 -6
  12. data/app/assets/stylesheets/beyond_canvas/components/_breadcrumbs.scss +5 -5
  13. data/app/assets/stylesheets/beyond_canvas/components/_buttons.scss +45 -95
  14. data/app/assets/stylesheets/beyond_canvas/components/_cards.scss +20 -12
  15. data/app/assets/stylesheets/beyond_canvas/components/_collapse.scss +6 -3
  16. data/app/assets/stylesheets/beyond_canvas/components/_flash.scss +11 -11
  17. data/app/assets/stylesheets/beyond_canvas/components/_forms.scss +2 -2
  18. data/app/assets/stylesheets/beyond_canvas/components/_inputs.scss +182 -40
  19. data/app/assets/stylesheets/beyond_canvas/components/_links.scss +51 -3
  20. data/app/assets/stylesheets/beyond_canvas/components/_main.scss +3 -3
  21. data/app/assets/stylesheets/beyond_canvas/components/_menu.scss +13 -0
  22. data/app/assets/stylesheets/beyond_canvas/components/_modals.scss +48 -18
  23. data/app/assets/stylesheets/beyond_canvas/components/_notices.scss +11 -11
  24. data/app/assets/stylesheets/beyond_canvas/components/_scrollbox.scss +5 -4
  25. data/app/assets/stylesheets/beyond_canvas/components/_select2.scss +13 -13
  26. data/app/assets/stylesheets/beyond_canvas/components/_statuses.scss +9 -8
  27. data/app/assets/stylesheets/beyond_canvas/components/_step_list.scss +67 -0
  28. data/app/assets/stylesheets/beyond_canvas/components/_tables.scss +10 -5
  29. data/app/assets/stylesheets/beyond_canvas/components/_titles.scss +1 -1
  30. data/app/assets/stylesheets/beyond_canvas/mailer.scss +2 -1
  31. data/app/assets/stylesheets/beyond_canvas/settings/_base_variables.scss +241 -0
  32. data/app/assets/stylesheets/beyond_canvas/settings/{_variables.scss → _constant_variables.scss} +30 -64
  33. data/app/assets/stylesheets/beyond_canvas/settings/_custom_variables.scss +233 -0
  34. data/app/assets/stylesheets/beyond_canvas/settings/_typography.scss +7 -3
  35. data/app/assets/stylesheets/beyond_canvas/utilities/_mixins.scss +30 -3
  36. data/app/controllers/beyond_canvas/authentications_controller.rb +18 -2
  37. data/app/controllers/beyond_canvas/system_controller.rb +3 -1
  38. data/app/controllers/beyond_canvas/webhooks_controller.rb +49 -0
  39. data/app/controllers/concerns/beyond_canvas/add_blocker_check.rb +17 -0
  40. data/app/controllers/concerns/beyond_canvas/custom_styles.rb +54 -0
  41. data/app/controllers/concerns/beyond_canvas/locale_management.rb +31 -8
  42. data/app/controllers/concerns/beyond_canvas/request_validation.rb +6 -0
  43. data/app/form_builders/beyond_canvas/form_builder.rb +62 -49
  44. data/app/helpers/beyond_canvas/application_helper.rb +27 -4
  45. data/app/helpers/beyond_canvas/form_tag_helper.rb +130 -0
  46. data/app/javascript/beyond_canvas/base.js +0 -1
  47. data/app/javascript/beyond_canvas/initializers/buttons.js +10 -2
  48. data/app/javascript/beyond_canvas/initializers/flash.js +32 -10
  49. data/app/javascript/beyond_canvas/initializers/inputs.js +9 -4
  50. data/app/javascript/beyond_canvas/initializers/modals.js +46 -10
  51. data/app/views/beyond_canvas/mailer/_header.html.erb +2 -2
  52. data/app/views/beyond_canvas/shared/_flash.html.erb +14 -10
  53. data/app/views/beyond_canvas/shared/_head.html.erb +4 -0
  54. data/app/views/beyond_canvas/shared/_locales.html.erb +1 -1
  55. data/app/views/layouts/beyond_canvas/application.html.erb +0 -1
  56. data/app/views/layouts/beyond_canvas/public.html.erb +1 -1
  57. data/config/initializers/beyond_canvas/constants.rb +13 -0
  58. data/config/initializers/beyond_canvas/session_store.rb +8 -0
  59. data/lib/beyond_canvas/configuration.rb +9 -1
  60. data/lib/beyond_canvas/engine.rb +7 -0
  61. data/lib/beyond_canvas/rails/routes.rb +27 -7
  62. data/lib/beyond_canvas/version.rb +1 -1
  63. data/lib/beyond_canvas/webhook_event_registration.rb +19 -0
  64. data/lib/beyond_canvas.rb +6 -4
  65. data/lib/generators/beyond_canvas/install/install_generator.rb +6 -0
  66. data/lib/generators/beyond_canvas/install/templates/beyond_canvas.rb.erb +38 -1
  67. data/lib/generators/beyond_canvas/model/model_generator.rb +3 -0
  68. data/lib/generators/beyond_canvas/webhook/templates/webhooks_controller.rb +22 -0
  69. data/lib/generators/beyond_canvas/webhook/webhook_generator.rb +15 -0
  70. data/lib/models/concerns/authentication.rb +10 -3
  71. data/lib/models/concerns/utils.rb +1 -1
  72. data/lib/models/concerns/webhook.rb +123 -0
  73. data/lib/models/shop.rb +1 -0
  74. metadata +68 -39
  75. data/app/assets/stylesheets/beyond_canvas/components/_comments.scss +0 -6
  76. data/app/views/beyond_canvas/shared/_modal.html.erb +0 -6
  77. data/config/routes.rb +0 -12
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7a4ead3a43e09b4b3e09f2b34189ae10000390b92cc9114311229b3b7564cdd7
4
- data.tar.gz: b1f7cf8af577809cff6869bb70e5dae13b79ba9af101e462e41b1ab6bafa3d8d
3
+ metadata.gz: b1de2d82164f7101979a0becd0510d4ba32071d9033b6a52fa7994c89884c0c7
4
+ data.tar.gz: 9d78929e71b97c887814da55ae64722be0ac5aa6f835167c9516df056ad99f4b
5
5
  SHA512:
6
- metadata.gz: 53c3c8df6355da6859e55458b3cec85b6caaf1dac8fcce848e5dd590636d42c1018f9765fd5f8b8e478bc2d79c6d503b9fa8211fdccb317b9af1ab509cf26a51
7
- data.tar.gz: a29c6b62aae56c8a3dc379252a22c6b84f8c014a38011669b5b2d3939009927631eae03f2b2663b688703c17b736e0cf2431fcc10003641e404cc97998128144
6
+ metadata.gz: abeafe5140b724a90a4c156d909dc4c2a06d9a5e757be3ff4a4e1d92c36454181fe584776bceb84fbdd4149cb9483e7494325a21e606dd0a5cc5bbb06ac57051
7
+ data.tar.gz: e738177bf4e47df314ab879242279aa28edb2b128d08a4789936bab37d5a049dc769d57acfe21c1f3ccdc3165a3ef744ef2e99cf1cf717e9a283a81362c43427
@@ -0,0 +1,5 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 265 265">
2
+ <polygon class="surface" points="160.21 93.5 116.18 93.5 85.05 124.63 85.05 168.66 116.18 199.79 132.95 199.79 132.95 259.83 139.95 259.83 139.95 199.79 160.21 199.79 191.34 168.66 191.34 124.63 160.21 93.5"/>
3
+ <path class="bubbles" d="M68.8,38.6a4.46,4.46,0,0,1-4.4-4.5,4.53,4.53,0,0,1,4.5-4.4,4.45,4.45,0,1,1-.1,8.9ZM130.6,1a2.26,2.26,0,0,0-2.3,2.3,2.3,2.3,0,0,0,4.6,0A2.26,2.26,0,0,0,130.6,1ZM54.8,138.6a2.3,2.3,0,1,0,2.3,2.3A2.26,2.26,0,0,0,54.8,138.6Zm56.7-94.4a2.3,2.3,0,1,0-4.6,0,2.2,2.2,0,0,0,2.3,2.3A2.26,2.26,0,0,0,111.5,44.2Zm-39,25.6a2.35,2.35,0,1,0,2.3,2.4A2.23,2.23,0,0,0,72.5,69.8ZM69,105.4a2.3,2.3,0,1,0,2.3,2.3A2.33,2.33,0,0,0,69,105.4ZM30.59,65a2.35,2.35,0,0,0,2.4-2.3,2.23,2.23,0,0,0-2.3-2.4,2.35,2.35,0,1,0-.1,4.7ZM45.2,8a2.35,2.35,0,1,0,2.3,2.4A2.23,2.23,0,0,0,45.2,8Zm-16,92.37a4.45,4.45,0,1,0-4.4-4.5A4.34,4.34,0,0,0,29.2,100.4Zm0,69.5a5.91,5.91,0,0,0-5.9,5.9,5.9,5.9,0,0,0,11.8,0A6,6,0,0,0,29.2,169.9ZM7.7,134.6a2.3,2.3,0,1,0,2.3,2.3A2.26,2.26,0,0,0,7.7,134.6ZM114.8,65.42a4.7,4.7,0,1,0,4.7,4.7A4.69,4.69,0,0,0,114.8,65.42ZM239.5,164a5.9,5.9,0,1,0,5.8,5.9A5.83,5.83,0,0,0,239.5,164Zm-14.72-61.17a4.8,4.8,0,0,0-4.8,4.8,4.8,4.8,0,0,0,9.6,0A4.8,4.8,0,0,0,224.78,102.83ZM257.3,74.5a2.3,2.3,0,1,0,2.3,2.3A2.26,2.26,0,0,0,257.3,74.5Zm-2.63,49.76a2.3,2.3,0,1,0,2.3,2.3A2.26,2.26,0,0,0,254.67,124.26Zm-5.56-92.44a2.3,2.3,0,1,0,2.3,2.3A2.26,2.26,0,0,0,249.11,31.82Zm-27,106.58a2.3,2.3,0,1,0,2.3,2.3A2.2,2.2,0,0,0,222.1,138.4ZM158.8,74.5a2.3,2.3,0,1,0,2.3,2.3A2.33,2.33,0,0,0,158.8,74.5Zm52.31-60.73a2.35,2.35,0,1,0,2.3,2.4A2.23,2.23,0,0,0,211.11,13.77ZM165.7,12.1a4.1,4.1,0,1,0,4.1,4.1A4.12,4.12,0,0,0,165.7,12.1Zm-7.6,33a2.33,2.33,0,0,0-2.3-2.3,2.3,2.3,0,1,0,2.3,2.3Zm46,0a4.7,4.7,0,1,0,4.7,4.7A4.69,4.69,0,0,0,204.1,45.1Zm.38,34.58a2.3,2.3,0,1,0,2.3,2.3A2.33,2.33,0,0,0,204.48,79.68Z" transform="translate(0 -1)"/>
4
+ <path class="outline" d="M144.37,125.34h-7.5V122h-9v6.67h-7.5v14.76h-6.9l-.34,20.28L124,181.85h24.41l3.43-25.75V134.72h-7.5Zm6,10.88V156l-3.25,24.35H124.87l-10.24-17,.32-18.38h5.4v12.35h1.52V130.18h6v22.34h1.5v-29h6v30.21h1.5V126.84h6V156.1h1.5V136.22ZM137.25,263.71V205.82h17.57l31.57-31.57V129.61L154.82,98H110.18L78.61,129.61v44.64l31.57,31.57h17.57v57.89H0v1.5H265v-1.5ZM97.93,191.46,114.7,174.7l-1.06-1.06L96.87,190.4,94.46,188l16.76-16.76-1.06-1.06L93.4,186.92,80.11,173.63v-43.4L110.8,99.54h43.4l13.41,13.4-15.34,15.33,1.06,1.06L168.67,114l2.41,2.42-15.33,15.33,1.06,1.06,15.33-15.33,12.75,12.75v43.4L154.2,204.32H110.8Zm31.32,72.25V205.82h6.5v57.89Z" transform="translate(0 -1)"/>
5
+ </svg>
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" style="background: #ffffff;" width="16" height="16" viewBox="0 0 24 24"><path fill="#97C344" d="M0 0v24h24V0H0zm9.6 18.4l-5.8-5.6 2-2.1 3.7 3.6L18 5.6l2.1 2.1L9.6 18.4z"></path></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24"><path d="M0 0v24h24V0H0zm9.6 18.4l-5.8-5.6 2-2.1 3.7 3.6L18 5.6l2.1 2.1L9.6 18.4z"></path></svg>
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" style="background: #ffff;" width="16" height="16" viewBox="0 0 24 24"><path fill="#c2bf9d" d="M0 0v24h24V0H0zm21.5 21.5h-19v-19h19v19z"></path></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24"><path d="M0 0v24h24V0H0zm21.5 21.5h-19v-19h19v19z"></path></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg"><rect x="1" y="1" width="44" height="24" rx="12" ry="12"></rect><path d="M13.3 2.9c-5.6 0-10 4.4-10 10s4.4 10 10 10 10-4.4 10-10-4.4-10-10-10zm-.6 13.5l-1.8 1.9-1.8-1.8L6.6 14l1.8-1.8 2.5 2.6 6.9-6.9 1.8 1.8-6.9 6.7z"></path><path d="M13.3 2.9c-5.6 0-10 4.4-10 10s4.4 10 10 10 10-4.4 10-10-4.5-10-10-10zm5.3 13.4l-1.8 1.8-3.4-3.4-3.4 3.4-1.8-1.8 3.4-3.4-3.4-3.4L10 7.7l3.4 3.4 3.4-3.4 1.8 1.8-3.5 3.4 3.5 3.4z"></path></svg>
@@ -0,0 +1,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="3.3 2.9 20 20">
2
+ <path d="M13.3 2.9c-5.6 0-10 4.4-10 10s4.4 10 10 10 10-4.4 10-10-4.4-10-10-10zm-.6 13.5l-1.8 1.9-1.8-1.8L6.6 14l1.8-1.8 2.5 2.6 6.9-6.9 1.8 1.8-6.9 6.7z"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="3.3 2.9 20 20">
2
+ <path d="M13.3 2.9c-5.6 0-10 4.4-10 10s4.4 10 10 10 10-4.4 10-10-4.5-10-10-10zm5.3 13.4l-1.8 1.8-3.4-3.4-3.4 3.4-1.8-1.8 3.4-3.4-3.4-3.4L10 7.7l3.4 3.4 3.4-3.4 1.8 1.8-3.5 3.4 3.5 3.4z"/>
3
+ </svg>
@@ -2,6 +2,7 @@
2
2
  * Warning: This file is auto-generated, do not modify. Instead, make your changes in 'app/javascript/beyond_canvas/' and run `yarn build`
3
3
  */
4
4
  //= require jquery3
5
+ //= require rails-ujs
5
6
  //= require_self
6
7
 
7
8
  (function(factory) {
@@ -11,7 +12,7 @@
11
12
  var SPINNER_ANIMATION_TIMEOUT = 125;
12
13
  var BUTTON_SELECTORS = '[class^="button"]';
13
14
  (function($) {
14
- var onDOMReady = function onDOMReady(e) {
15
+ var onDOMReady = function onDOMReady() {
15
16
  var inputs = $("input, textarea, select").not(":input[type=button], :input[type=submit], :input[type=reset]");
16
17
  inputs.each(function() {
17
18
  var input = $(this);
@@ -29,26 +30,33 @@
29
30
  $(document).on("confirm:complete", function() {
30
31
  $.restoreActionElements();
31
32
  });
32
- $(document).on("click", BUTTON_SELECTORS, function() {
33
+ $(document).on("click", BUTTON_SELECTORS, function(e) {
34
+ var _e$target$attributes$;
33
35
  var button = $(this);
36
+ if (((_e$target$attributes$ = e.target.attributes.getNamedItem("target")) == null ? void 0 : _e$target$attributes$.value) === "_blank") return;
34
37
  $.disableActionElements();
35
38
  if (!button.hasClass("button--no-spinner")) {
36
39
  $(this).showSpinner();
37
40
  }
38
41
  });
39
42
  $(document).on("ready page:load turbolinks:load", onDOMReady);
43
+ $(document).on("beforeunload turbolinks:before-visit", function() {
44
+ $.restoreActionElements();
45
+ });
40
46
  })(jQuery);
41
47
  $.extend({
42
48
  restoreActionElements: function restoreActionElements() {
43
- $(BUTTON_SELECTORS).each(function(_, button) {
44
- setTimeout(function() {
45
- $(button).find(".spinner").hide();
46
- $(button).width($(button).data("oldWidth"));
47
- }, SPINNER_ANIMATION_TIMEOUT);
48
- });
49
- $('a, input[type="submit"], input[type="button"], input[type="reset"], button').each(function() {
50
- $(this).removeClass("actions--disabled");
51
- });
49
+ setTimeout(function() {
50
+ $(BUTTON_SELECTORS).each(function(_, button) {
51
+ setTimeout(function() {
52
+ $(button).find(".spinner").hide();
53
+ $(button).width($(button).data("oldWidth"));
54
+ }, SPINNER_ANIMATION_TIMEOUT);
55
+ });
56
+ $('a, input[type="submit"], input[type="button"], input[type="reset"], button').each(function() {
57
+ $(this).removeClass("actions--disabled");
58
+ });
59
+ }, 100);
52
60
  },
53
61
  disableActionElements: function disableActionElements() {
54
62
  $('a, input[type="submit"], input[type="button"], input[type="reset"], button').each(function() {
@@ -99,22 +107,32 @@
99
107
  }, 100);
100
108
  };
101
109
  $(document).on("click", ".flash__close", function() {
102
- closeAlert();
110
+ $.closeAlert();
103
111
  });
104
- $(document).on("ready page:load turbolinks:load", onDOMReady);
112
+ $(document).on("ready page:load turbolinks:load bc.flash.shown", onDOMReady);
105
113
  })(jQuery);
106
- function closeAlert() {
107
- $(".flash").removeClass("flash--shown").delay(700).queue(function() {
108
- $(this).remove();
109
- });
110
- }
114
+ $.extend({
115
+ showFlash: function showFlash(status, message) {
116
+ var flash = '\n <div class="flash">\n <div class="flash__icon flash__icon--' + status + '">\n <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm6 16.538l-4.592-4.548 4.546-4.587-1.416-1.403-4.545 4.589-4.588-4.543-1.405 1.405 4.593 4.552-4.547 4.592 1.405 1.405 4.555-4.596 4.591 4.55 1.403-1.416z"></path></svg>\n </div>\n <div class="flash__message">\n ' + message + '\n </div>\n <div class="flash__close">\n <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M24 20.188l-8.315-8.209 8.2-8.282-3.697-3.697-8.212 8.318-8.31-8.203-3.666 3.666 8.321 8.24-8.206 8.313 3.666 3.666 8.237-8.318 8.285 8.203z"></path></svg>\n </div>\n </div>';
117
+ $(document).trigger("bc.flash.show");
118
+ $("#flash").html(flash);
119
+ $(document).trigger("bc.flash.shown");
120
+ },
121
+ closeAlert: function closeAlert() {
122
+ $(document).trigger("bc.flash.hide");
123
+ $(".flash").removeClass("flash--shown").delay(700).queue(function() {
124
+ $(this).remove();
125
+ });
126
+ $(document).trigger("bc.flash.hidden");
127
+ }
128
+ });
111
129
  (function($) {
112
130
  var onDOMReady = function onDOMReady() {
113
131
  $('input[type="file"]').each(function() {
114
132
  var $input = $(this), $label = $(".input__file__text." + $input.attr("id")), labelVal = $label.html();
115
133
  $input.on("change", function(e) {
116
134
  var fileName = "";
117
- if (this.files && this.files.length > 1) fileName = (this.getAttribute("data-multiple-caption") || "").replace("{count}", this.files.length); else if (e.target.value) fileName = e.target.value.split("\\").pop();
135
+ if (this.files && this.files.length > 1) fileName = (this.getAttribute("data-multiple-caption") || "{count} files selected").replace("{count}", this.files.length); else if (e.target.value) fileName = e.target.value.split("\\").pop();
118
136
  if (fileName) $label.html('<svg class="input__file__icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M15 2v5h5v15h-16v-20h11zm1-2h-14v24h20v-18l-6-6z"/></svg>' + fileName); else $label.html(labelVal);
119
137
  });
120
138
  $input.on("focus", function() {
@@ -124,23 +142,51 @@
124
142
  });
125
143
  });
126
144
  };
145
+ $(document).on("ready page:load turbolinks:load", function() {
146
+ var observer = new MutationObserver(function() {
147
+ return onDOMReady();
148
+ });
149
+ onDOMReady();
150
+ observer.observe(document.body, {
151
+ childList: true,
152
+ subtree: true
153
+ });
154
+ });
155
+ })(jQuery);
156
+ (function($) {
157
+ var onDOMReady = function onDOMReady() {
158
+ $(".modal").each(function() {
159
+ $(this).hide().css("visibility", "visible");
160
+ });
161
+ };
162
+ $(document).on("click", '[data-toggle="modal"]', function(e) {
163
+ e.preventDefault();
164
+ var dataTarget = $(this).attr("data-target");
165
+ $.restoreActionElements();
166
+ $(dataTarget).showModal();
167
+ });
168
+ $(document).on("click", '[data-dismiss="modal"]', function(e) {
169
+ e.preventDefault();
170
+ var dataTarget = $(this).closest(".modal");
171
+ $.restoreActionElements();
172
+ $(dataTarget).hideModal();
173
+ });
127
174
  $(document).on("ready page:load turbolinks:load", onDOMReady);
128
175
  })(jQuery);
129
- $.extend({
130
- displayModal: function displayModal(content, options) {
131
- if (options === void 0) {
132
- options = {};
133
- }
134
- $("#modal").find("#modal__content").html(content);
135
- $("#modal").css("display", "flex");
176
+ $.fn.extend({
177
+ showModal: function showModal() {
178
+ var modal = $(this);
179
+ modal.trigger("bc.modal.show");
136
180
  $.restoreActionElements();
137
- $(document).trigger("modal:opened", options["extraEventParameters"]);
181
+ modal.css("display", "flex");
182
+ modal.trigger("bc.modal.shown");
138
183
  },
139
- closeModal: function closeModal() {
140
- $("#modal").find("#modal__content").empty();
141
- $("#modal").css("display", "none");
184
+ hideModal: function hideModal() {
185
+ var modal = $(this);
186
+ modal.trigger("bc.modal.hide");
142
187
  $.restoreActionElements();
143
- $(document).trigger("modal:closed");
188
+ modal.hide();
189
+ modal.trigger("bc.modal.hidden");
144
190
  }
145
191
  });
146
192
  });
@@ -1,39 +1,40 @@
1
1
  @import "bourbon";
2
2
 
3
3
  @import "settings/breakpoints";
4
- @import "settings/variables";
4
+ @import "settings/constant_variables";
5
+ @import "settings/base_variables";
5
6
  @import "settings/reset_css";
6
7
  @import "settings/typography";
7
8
 
8
9
  @import "utilities/functions";
9
10
  @import "utilities/mixins";
10
11
 
11
- @import "components/action_bar";
12
- @import "components/actions";
13
- @import "components/breadcrumbs";
12
+ @import "components/action_bar"; // Done
13
+ @import "components/actions"; // Done
14
+ @import "components/breadcrumbs"; // Done
14
15
  @import "components/buttons";
15
16
  @import "components/cards";
16
17
  @import "components/collapse";
17
- @import "components/comments";
18
18
  @import "components/debug";
19
- @import "components/flash";
20
- @import "components/forms";
19
+ @import "components/flash"; // Done
20
+ @import "components/forms"; // Done
21
21
  @import "components/grids";
22
22
  @import "components/inputs";
23
- @import "components/layouts";
23
+ @import "components/layouts"; // Done
24
24
  @import "components/links";
25
25
  @import "components/main";
26
- @import "components/margins";
26
+ @import "components/margins"; // Done
27
27
  @import "components/markdown";
28
28
  @import "components/menu";
29
- @import "components/modals";
30
- @import "components/notices";
31
- @import "components/relative";
29
+ @import "components/modals"; // Done
30
+ @import "components/notices"; // Done
31
+ @import "components/relative"; // Done
32
32
  @import "components/scrollbox";
33
- @import "components/select2";
33
+ @import "components/select2"; // Done
34
34
  @import "components/sidebar";
35
- @import "components/spinner";
36
- @import "components/statuses";
37
- @import "components/tables";
38
- @import "components/texts";
39
- @import "components/titles";
35
+ @import "components/spinner"; // Done
36
+ @import "components/statuses"; // Done
37
+ @import "components/step_list"; // Done
38
+ @import "components/tables"; // Done
39
+ @import "components/texts"; // Done
40
+ @import "components/titles"; // Done
@@ -1,8 +1,8 @@
1
1
  .action_bar {
2
2
  width: 100%;
3
- height: $action-bar-height;
4
- background-color: $action-bar-background;
5
- border-bottom: $action-bar-shadow;
3
+ height: var(--header-bar-height);
4
+ background-color: var(--workspace-toolbar-background);
5
+ border-bottom: var(--workspace-toolbar-border);
6
6
  padding: 0 25px;
7
7
  box-sizing: border-box;
8
8
  display: flex;
@@ -13,16 +13,21 @@
13
13
  z-index: 999;
14
14
 
15
15
  &--menu {
16
- top: $menu-height;
16
+ top: var(--menu-height);
17
17
  }
18
18
 
19
- &--left {
19
+ &--left,
20
+ &--right {
20
21
  display: flex;
22
+ align-items: center;
23
+ min-width: 50%;
24
+ }
25
+
26
+ &--left {
21
27
  justify-content: flex-start;
22
28
  }
23
29
 
24
30
  &--right {
25
- display: flex;
26
31
  justify-content: flex-end;
27
32
  }
28
33
  }
@@ -5,7 +5,7 @@
5
5
  .home-icon {
6
6
  width: 12px;
7
7
  height: 12px;
8
- fill: $breadcrum-color-current;
8
+ fill: var(--breadcrumb-icon);
9
9
  }
10
10
 
11
11
  .arrow-right {
@@ -13,20 +13,20 @@
13
13
  height: 8px;
14
14
  margin-left: 7px;
15
15
  margin-right: 7px;
16
- fill: $breadcrum-color;
16
+ fill: var(--breadcrumb-text);
17
17
  }
18
18
  }
19
19
 
20
20
  .breadcrumb {
21
21
  &__item {
22
- color: $breadcrum-color-current;
22
+ color: var(--breadcrumb-link);
23
23
 
24
24
  &:hover {
25
- color: $breadcrum-color-hover
25
+ color: var(--breadcrumb-link-hover);
26
26
  }
27
27
 
28
28
  &--current {
29
- color: $breadcrum-color;
29
+ color: var(--breadcrumb-text);
30
30
  pointer-events: none;
31
31
  }
32
32
  }
@@ -1,75 +1,62 @@
1
1
  %button {
2
- @include padding($button-padding);
3
-
4
- @if $button-box-shadow != true {
5
- padding-top: 7px;
6
- }
7
-
8
2
  align-items: center;
9
- border-radius: $button-border-radius;
10
- border-width: 1px;
11
- border-style: solid;
3
+ border-radius: var(--button-borderRadius);
4
+ border-width: 0;
12
5
  cursor: pointer;
13
6
  display: inline-flex;
14
- font-weight: $button-font-weight;
7
+ font-weight: 700;
15
8
  justify-content: flex-end;
16
9
  line-height: 1;
17
10
  outline: none;
11
+ padding: var(--button-horizontal-padding) 12px;
18
12
  transition: $main-transition;
13
+ white-space: nowrap;
19
14
  }
20
15
 
21
16
  %button_disabled {
22
- border-color: $button-disabled-background;
23
- background-color: $button-disabled-background;
17
+ border-color: var(--button-disabled-background);
18
+ background-color: var(--button-disabled-background);
24
19
  pointer-events: none;
25
- color: $button-disabled-color;
26
- text-shadow: $button-disabled-text-shadow;
20
+ color: var(--button-disabled-text);
21
+ text-shadow: var(--button-disabled-textShadow);
27
22
  border-bottom-color: #aaaaaa;
28
23
  }
29
24
 
25
+ @mixin button-border-bottom($border-bottom-color) {
26
+ border-bottom: var(--button-borderBottom-width) solid var(#{$border-bottom-color});
27
+ }
30
28
 
31
- @mixin button-solid($background, $color) {
32
- @include background-color-darken($background, 10%);
33
-
34
- color: $color;
35
-
36
- .spinner {
37
- display: none;
29
+ @mixin button-solid($background, $background-hover, $color) {
30
+ @include spinner($color);
38
31
 
39
- > div {
40
- background-color: $color;
41
- }
42
- }
32
+ background-color: var(#{$background});
33
+ color: var(#{$color});
43
34
 
44
35
  &:hover {
45
- border-color: darken($background, 10%);
36
+ background-color: var(#{$background-hover});
46
37
  }
47
38
  }
48
39
 
49
- @mixin button-transparent($background) {
50
- background-color: transparent;
51
- border-color: $background;
52
- color: $background;
40
+ @mixin button-transparent($background, $background-hover, $color) {
41
+ @include spinner($color);
53
42
 
54
- .spinner {
55
- display: none;
56
-
57
- > div {
58
- background-color: $background;
59
- }
60
- }
43
+ background-color: var(#{$background});
44
+ color: var(#{$color});
45
+ padding: calc(var(--button-horizontal-padding) - var(--button-outline-border-width)) 12px var(--button-horizontal-padding);
46
+ border: var(--button-outline-border-width) solid var(--button-outline-border-color);
61
47
 
62
48
  &:hover {
63
- background-color: lighten($background, 40%);
49
+ background-color: var(#{$background-hover});
64
50
  }
65
51
  }
66
52
 
67
- @mixin button-border($background) {
68
- border-color: $background;
53
+ @mixin spinner($background) {
54
+ .spinner {
55
+ display: none;
69
56
 
70
- @if $button-box-shadow == true {
71
- border-bottom-width: 2px;
72
- border-bottom-color: darken($background, 10%);
57
+ > div {
58
+ background-color: var(#{$background});
59
+ }
73
60
  }
74
61
  }
75
62
 
@@ -77,42 +64,34 @@ input[type=file][disabled] ~ .button__transparent--primary {
77
64
  @extend %button_disabled;
78
65
  }
79
66
 
67
+ [class^='button__'] {
68
+ &:disabled,
69
+ &[disabled] {
70
+ @extend %button_disabled;
71
+ }
72
+ }
73
+
80
74
  .button {
81
75
  &__solid {
82
76
  &--primary {
83
77
  @extend %button;
84
78
 
85
- @include button-solid($button-primary-background, $button-primary-color);
86
- @include button-border($button-primary-background);
87
-
88
- &:disabled,
89
- &[disabled] {
90
- @extend %button_disabled;
91
- }
79
+ @include button-solid(--button-primary-background, --button-primary-background-hover, --button-text);
80
+ @include button-border-bottom(--button-primary-borderBottom-color);
92
81
  }
93
82
 
94
83
  &--secondary {
95
84
  @extend %button;
96
85
 
97
- @include button-solid($button-secondary-background, $button-secondary-color);
98
- @include button-border($button-secondary-background);
99
-
100
- &:disabled,
101
- &[disabled] {
102
- @extend %button_disabled;
103
- }
86
+ @include button-solid(--button-default-background, --button-default-background-hover, --button-text);
87
+ @include button-border-bottom(--button-default-borderBottom-color);
104
88
  }
105
89
 
106
90
  &--danger {
107
91
  @extend %button;
108
92
 
109
- @include button-solid($button-danger-background, $button-danger-color);
110
- @include button-border($button-danger-background);
111
-
112
- &:disabled,
113
- &[disabled] {
114
- @extend %button_disabled;
115
- }
93
+ @include button-solid(--button-danger-background, --button-danger-background-hover, --button-text);
94
+ @include button-border-bottom(--button-danger-borderBottom-color);
116
95
  }
117
96
  }
118
97
 
@@ -120,37 +99,8 @@ input[type=file][disabled] ~ .button__transparent--primary {
120
99
  &--primary {
121
100
  @extend %button;
122
101
 
123
- @include button-transparent($button-primary-background);
124
- @include button-border($button-primary-background);
125
-
126
- &:disabled,
127
- &[disabled] {
128
- @extend %button_disabled;
129
- }
130
- }
131
-
132
- &--secondary {
133
- @extend %button;
134
-
135
- @include button-transparent($button-secondary-background);
136
- @include button-border($button-secondary-background);
137
-
138
- &:disabled,
139
- &[disabled] {
140
- @extend %button_disabled;
141
- }
142
- }
143
-
144
- &--danger {
145
- @extend %button;
146
-
147
- @include button-transparent($button-danger-background);
148
- @include button-border($button-danger-background);
149
-
150
- &:disabled,
151
- &[disabled] {
152
- @extend %button_disabled;
153
- }
102
+ @include button-transparent(--button-outline-background, --button-outline-background-hover, --button-outline-text);
103
+ @include button-border-bottom(--button-primary-borderBottom-color);
154
104
  }
155
105
  }
156
106
  }