beyond_canvas 0.16.2.pre → 0.19.2.pre

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/config/beyond_canvas_manifest.js +1 -0
  3. data/app/assets/images/icons/arrow_right.svg +1 -0
  4. data/app/assets/images/icons/close.svg +1 -0
  5. data/app/assets/images/icons/home.svg +1 -0
  6. data/app/assets/javascripts/beyond_canvas/base.js +120 -246
  7. data/app/assets/stylesheets/beyond_canvas/base.scss +10 -1
  8. data/app/assets/stylesheets/beyond_canvas/components/_action_bar.scss +28 -0
  9. data/app/assets/stylesheets/beyond_canvas/components/_breadcrumbs.scss +29 -0
  10. data/app/assets/stylesheets/beyond_canvas/components/_buttons.scss +1 -1
  11. data/app/assets/stylesheets/beyond_canvas/components/_debug.scss +10 -0
  12. data/app/assets/stylesheets/beyond_canvas/components/_forms.scss +11 -14
  13. data/app/assets/stylesheets/beyond_canvas/components/_grids.scss +12 -0
  14. data/app/assets/stylesheets/beyond_canvas/components/_inputs.scss +5 -0
  15. data/app/assets/stylesheets/beyond_canvas/components/_main.scss +12 -13
  16. data/app/assets/stylesheets/beyond_canvas/components/_margins.scss +12 -0
  17. data/app/assets/stylesheets/beyond_canvas/components/_menu.scss +50 -0
  18. data/app/assets/stylesheets/beyond_canvas/components/_modals.scss +35 -0
  19. data/app/assets/stylesheets/beyond_canvas/components/_scrollbox.scss +35 -0
  20. data/app/assets/stylesheets/beyond_canvas/components/_sidebar.scss +53 -0
  21. data/app/assets/stylesheets/beyond_canvas/components/_texts.scss +8 -0
  22. data/app/assets/stylesheets/beyond_canvas/components/_titles.scss +7 -0
  23. data/app/assets/stylesheets/beyond_canvas/settings/_variables.scss +64 -9
  24. data/app/controllers/beyond_canvas/application_controller.rb +3 -0
  25. data/app/controllers/beyond_canvas/authentications_controller.rb +37 -30
  26. data/app/controllers/concerns/beyond_canvas/authentication.rb +1 -12
  27. data/app/controllers/concerns/beyond_canvas/locale_management.rb +5 -4
  28. data/app/form_builders/beyond_canvas/form_builder.rb +8 -6
  29. data/app/helpers/beyond_canvas/authentications_helper.rb +28 -0
  30. data/app/helpers/beyond_canvas/cockpit_app_helper.rb +17 -0
  31. data/app/helpers/beyond_canvas/controller_helper.rb +9 -0
  32. data/app/helpers/beyond_canvas/debug_helper.rb +9 -0
  33. data/app/helpers/beyond_canvas/locale_switch_helper.rb +5 -1
  34. data/app/javascript/beyond_canvas/base.js +3 -0
  35. data/app/javascript/beyond_canvas/initializers/buttons.js +65 -19
  36. data/app/javascript/beyond_canvas/initializers/flash.js +9 -2
  37. data/app/javascript/beyond_canvas/initializers/inputs.js +4 -1
  38. data/app/javascript/beyond_canvas/initializers/modals.js +14 -0
  39. data/app/views/beyond_canvas/authentications/new.html.erb +19 -10
  40. data/app/views/beyond_canvas/shared/_action_bar.html.erb +15 -0
  41. data/app/views/beyond_canvas/shared/_breadcrumbs.html.erb +14 -0
  42. data/app/views/beyond_canvas/shared/_flash.html.erb +22 -12
  43. data/app/views/beyond_canvas/shared/_locales.html.erb +8 -0
  44. data/app/views/beyond_canvas/shared/_menu.html.erb +31 -0
  45. data/app/views/beyond_canvas/shared/_modal.html.erb +6 -0
  46. data/app/views/beyond_canvas/shared/_sidebar.html.erb +16 -0
  47. data/app/views/layouts/beyond_canvas/application.html.erb +31 -0
  48. data/app/views/layouts/beyond_canvas/public.html.erb +11 -4
  49. data/config/locales/en.yml +5 -0
  50. data/config/routes.rb +5 -4
  51. data/lib/beyond_canvas.rb +12 -12
  52. data/lib/beyond_canvas/configuration.rb +11 -6
  53. data/lib/beyond_canvas/engine.rb +5 -6
  54. data/lib/beyond_canvas/menu_item_registration.rb +19 -0
  55. data/lib/beyond_canvas/parameter_sanitizer.rb +1 -1
  56. data/lib/beyond_canvas/rails/routes.rb +8 -7
  57. data/lib/beyond_canvas/version.rb +1 -1
  58. data/lib/generators/beyond_canvas/controller/controller_generator.rb +1 -6
  59. data/lib/generators/beyond_canvas/controller/templates/shops_controller.rb +20 -0
  60. data/lib/generators/beyond_canvas/custom_menu/custom_menu_generator.rb +13 -0
  61. data/lib/generators/beyond_canvas/custom_menu/templates/beyond_canvas_custom_menu.html.erb +32 -0
  62. data/lib/generators/beyond_canvas/custom_styles/custom_styles_generator.rb +1 -1
  63. data/lib/generators/beyond_canvas/custom_styles/templates/beyond_canvas_custom_styles.scss +55 -9
  64. data/lib/generators/beyond_canvas/install/install_generator.rb +3 -5
  65. data/lib/generators/beyond_canvas/install/templates/beyond_canvas.rb.erb +52 -14
  66. data/lib/generators/beyond_canvas/{auth_model/auth_model_generator.rb → model/model_generator.rb} +4 -5
  67. data/lib/generators/beyond_canvas/{auth_model → model}/templates/migration.erb +2 -4
  68. data/lib/generators/beyond_canvas/{auth_model → model}/templates/model.erb +0 -0
  69. data/lib/generators/beyond_canvas/views/views_generator.rb +4 -6
  70. data/lib/models/concerns/authentication.rb +57 -0
  71. data/lib/models/concerns/utils.rb +79 -0
  72. data/lib/models/shop.rb +12 -0
  73. metadata +73 -31
  74. data/app/controllers/concerns/beyond_canvas/resource_management.rb +0 -33
  75. data/app/javascript/beyond_canvas/initializers/functions.js +0 -41
  76. data/app/views/beyond_canvas/locales/_edit.html.erb +0 -8
  77. data/lib/beyond_canvas/models/authentication.rb +0 -66
  78. data/lib/beyond_canvas/models/shop.rb +0 -28
  79. data/lib/beyond_canvas/models/utils.rb +0 -55
  80. data/lib/generators/beyond_canvas/controller/templates/controller.erb +0 -37
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0a9c0a0bbb9fdb0af82711770d98bd04570b819e0b07c6b852bb54bf1ddf7cf1
4
- data.tar.gz: e2a26c8ec82740147e053c9b673476da0eb888d140ac1232b785868a5e917ab6
3
+ metadata.gz: 7e521c2269619436efc6e760472ab605213b315b3f14462661a65db7a615a93c
4
+ data.tar.gz: 146a2408feda96383da8def8d2647abd8b003e5dcef55a7b439325c4b1f38832
5
5
  SHA512:
6
- metadata.gz: 28b094f776e12fe674f67c36d8279a8fbc307345fbcf08a9d4f4f297a3568a09284bd9b5440b475650ab9a06f73b03e19e1dad668b21c29f4e61a09e0517dd78
7
- data.tar.gz: b531f83b2e0ea58260de71f9257d8e5839ca128d5b43059e3fda4080ce5d9c85c520277863a653b2c479a5ca1d37287089914b0b8075f6cb5991914e0bee17ba
6
+ metadata.gz: 34478929f6d039be913f94e7f9ce74544d0481534a8f3e25649ed4daed4f9f677e4b028835263f65e97066f76104b13aa92d8dd7d5ed520425de88d08f6e0df2
7
+ data.tar.gz: e434787b9ff264aa0a661b5c2d35fcb311ba199bdfec9408965a57e32118941ab0fb3d1564b2de5c02d297b7711695091a432663a4aad1d5f9f65e0d0931ce6b
@@ -1 +1,2 @@
1
1
  //= link_directory ../stylesheets .css
2
+ //= link_tree ../images
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" class="arrow-right"><path d="M5 3l3.057-3L20 12 8.057 24 5 21l9-9z"></path></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" title="dialog.closeButton.title"><path d="M23.954 21.03l-9.184-9.095 9.092-9.174L21.03-.046l-9.09 9.179L2.764.045l-2.81 2.81L9.14 11.96.045 21.144l2.81 2.81 9.112-9.192 9.18 9.1z"></path></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" class="home-icon"><path d="M12 9.185l7 6.514V22h-3v-5H8v5H5v-6.301l7-6.514zm0-2.732l-9 8.375V24h7v-5h4v5h7v-9.172l-9-8.375zm12 5.695L12 1 0 12.133l1.361 1.465L12 3.73l10.639 9.883L24 12.148z"></path></svg>
@@ -1,255 +1,129 @@
1
- /*!
2
- *
3
- * Warning: This file is auto-generated, do not modify. Instead, make your changes in 'app/javascript/beyond_canvas/' and run `yarn build`
4
- *
5
- * //= require jquery3
6
- * //= require_self
7
- *
1
+ /*
2
+ * Warning: This file is auto-generated, do not modify. Instead, make your changes in 'app/javascript/beyond_canvas/' and run `yarn build`
8
3
  */
9
- (function(e, a) { for(var i in a) e[i] = a[i]; }(window, /******/ (function(modules) { // webpackBootstrap
10
- /******/ // The module cache
11
- /******/ var installedModules = {};
12
- /******/
13
- /******/ // The require function
14
- /******/ function __webpack_require__(moduleId) {
15
- /******/
16
- /******/ // Check if module is in cache
17
- /******/ if(installedModules[moduleId]) {
18
- /******/ return installedModules[moduleId].exports;
19
- /******/ }
20
- /******/ // Create a new module (and put it into the cache)
21
- /******/ var module = installedModules[moduleId] = {
22
- /******/ i: moduleId,
23
- /******/ l: false,
24
- /******/ exports: {}
25
- /******/ };
26
- /******/
27
- /******/ // Execute the module function
28
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
29
- /******/
30
- /******/ // Flag the module as loaded
31
- /******/ module.l = true;
32
- /******/
33
- /******/ // Return the exports of the module
34
- /******/ return module.exports;
35
- /******/ }
36
- /******/
37
- /******/
38
- /******/ // expose the modules object (__webpack_modules__)
39
- /******/ __webpack_require__.m = modules;
40
- /******/
41
- /******/ // expose the module cache
42
- /******/ __webpack_require__.c = installedModules;
43
- /******/
44
- /******/ // define getter function for harmony exports
45
- /******/ __webpack_require__.d = function(exports, name, getter) {
46
- /******/ if(!__webpack_require__.o(exports, name)) {
47
- /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
48
- /******/ }
49
- /******/ };
50
- /******/
51
- /******/ // define __esModule on exports
52
- /******/ __webpack_require__.r = function(exports) {
53
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
54
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
55
- /******/ }
56
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
57
- /******/ };
58
- /******/
59
- /******/ // create a fake namespace object
60
- /******/ // mode & 1: value is a module id, require it
61
- /******/ // mode & 2: merge all properties of value into the ns
62
- /******/ // mode & 4: return value when already ns object
63
- /******/ // mode & 8|1: behave like require
64
- /******/ __webpack_require__.t = function(value, mode) {
65
- /******/ if(mode & 1) value = __webpack_require__(value);
66
- /******/ if(mode & 8) return value;
67
- /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
68
- /******/ var ns = Object.create(null);
69
- /******/ __webpack_require__.r(ns);
70
- /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
71
- /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
72
- /******/ return ns;
73
- /******/ };
74
- /******/
75
- /******/ // getDefaultExport function for compatibility with non-harmony modules
76
- /******/ __webpack_require__.n = function(module) {
77
- /******/ var getter = module && module.__esModule ?
78
- /******/ function getDefault() { return module['default']; } :
79
- /******/ function getModuleExports() { return module; };
80
- /******/ __webpack_require__.d(getter, 'a', getter);
81
- /******/ return getter;
82
- /******/ };
83
- /******/
84
- /******/ // Object.prototype.hasOwnProperty.call
85
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
86
- /******/
87
- /******/ // __webpack_public_path__
88
- /******/ __webpack_require__.p = "";
89
- /******/
90
- /******/
91
- /******/ // Load entry module and return exports
92
- /******/ return __webpack_require__(__webpack_require__.s = 1);
93
- /******/ })
94
- /************************************************************************/
95
- /******/ ([
96
- /* 0 */
97
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
98
-
99
- "use strict";
100
- __webpack_require__.r(__webpack_exports__);
101
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "showSpinner", function() { return showSpinner; });
102
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hideSpinner", function() { return hideSpinner; });
103
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "disableActionElements", function() { return disableActionElements; });
104
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "enableActionElements", function() { return enableActionElements; });
105
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "closeAlert", function() { return closeAlert; });
106
- var SPINNER_ANIMATION_TIMEOUT = 125;
107
- function showSpinner(button) {
108
- // Adjust the width of the button
109
- button.width(button.width() + $('.spinner').outerWidth(true)); // Show the spinner
110
-
111
- setTimeout(function () {
112
- button.find('.spinner').css('display', 'flex');
113
- }, SPINNER_ANIMATION_TIMEOUT);
114
- }
115
- function hideSpinner() {
116
- $('button[class^="button"]').each(function (_, button) {
117
- setTimeout(function () {
118
- // Hide the spinner
119
- $(button).find('.spinner').hide(); // Adjust the width of the button
120
-
121
- $(button).width($(button).data('oldWidth'));
122
- }, SPINNER_ANIMATION_TIMEOUT);
123
- });
124
- }
125
- function disableActionElements() {
126
- $('a, input[type="submit"], input[type="button"], input[type="reset"], button').each(function (_, button) {
127
- $(button).addClass('actions--disabled');
128
- });
129
- }
130
- function enableActionElements() {
131
- $('a, input[type="submit"], input[type="button"], input[type="reset"], button').each(function (_, button) {
132
- $(button).removeClass('actions--disabled');
133
- });
134
- }
135
- function closeAlert() {
136
- $('.flash').removeClass('flash--shown').delay(700).queue(function () {
137
- $(this).remove();
138
- });
139
- }
140
-
141
- /***/ }),
142
- /* 1 */
143
- /***/ (function(module, exports, __webpack_require__) {
144
-
145
- __webpack_require__(3);
146
- module.exports = __webpack_require__(0);
147
-
148
-
149
- /***/ }),
150
- /* 2 */
151
- /***/ (function(module, exports) {
152
-
153
- (function ($) {
154
- var onDOMReady = function onDOMReady() {
155
- $('input[type="file"]').each(function () {
156
- var $input = $(this),
157
- $label = $(".input__file__text." + $input.attr('id')),
158
- labelVal = $label.html();
159
- $input.on('change', function (e) {
160
- var fileName = '';
161
- 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();
162
- 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);
163
- }); // Firefox bug fix
164
-
165
- $input.on('focus', function () {
166
- $input.addClass('has-focus');
167
- }).on('blur', function () {
168
- $input.removeClass('has-focus');
4
+ //= require jquery3
5
+ //= require_self
6
+
7
+ (function(factory) {
8
+ typeof define === "function" && define.amd ? define([ "jquery" ], factory) : factory();
9
+ })(function() {
10
+ "use strict";
11
+ var SPINNER_ANIMATION_TIMEOUT = 125;
12
+ var BUTTON_SELECTORS = '[class^="button"]';
13
+ (function($) {
14
+ var onDOMReady = function onDOMReady(e) {
15
+ var inputs = $("input, textarea, select").not(":input[type=button], :input[type=submit], :input[type=reset]");
16
+ inputs.each(function() {
17
+ var input = $(this);
18
+ input.bind("invalid", function(e) {
19
+ if ($(input).is(":hidden")) {
20
+ e.preventDefault();
21
+ }
22
+ $.restoreActionElements();
23
+ });
169
24
  });
170
- });
171
- };
172
-
173
- $(document).on('ready page:load turbolinks:load', onDOMReady);
174
- })(jQuery);
175
-
176
- /***/ }),
177
- /* 3 */
178
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
179
-
180
- "use strict";
181
- // ESM COMPAT FLAG
182
- __webpack_require__.r(__webpack_exports__);
183
-
184
- // EXTERNAL MODULE: ./app/javascript/beyond_canvas/initializers/functions.js
185
- var functions = __webpack_require__(0);
186
-
187
- // CONCATENATED MODULE: ./app/javascript/beyond_canvas/initializers/buttons.js
188
-
189
-
190
- (function ($) {
191
- var onDOMReady = function onDOMReady() {
192
- var inputs = $('input, textarea, select').not(':input[type=button], :input[type=submit], :input[type=reset]');
193
- inputs.each(function () {
194
- var input = $(this);
195
- input.bind('invalid', function (e) {
196
- if ($(input).is(':hidden')) {
197
- e.preventDefault();
25
+ $(BUTTON_SELECTORS).each(function() {
26
+ var button = $(this);
27
+ button.width(button.width());
28
+ button.data("oldWidth", button.width());
29
+ if (button.find(".spinner").length == 0) {
30
+ button.prepend('\n <div class="spinner">\n <div class="bounce1"></div>\n <div class="bounce2"></div>\n <div class="bounce3"></div>\n </div>');
198
31
  }
199
-
200
- Object(functions["hideSpinner"])();
201
- Object(functions["enableActionElements"])();
32
+ button.closest("form").on("ajax:success", function() {
33
+ $.restoreActionElements();
34
+ }).on("ajax:error", function() {
35
+ $.restoreActionElements();
36
+ });
202
37
  });
38
+ };
39
+ $(document).on("confirm:complete", function() {
40
+ $.restoreActionElements();
203
41
  });
204
- $('button[class^="button"]').each(function () {
205
- var button = $(this); // Add width attribute and save old width
206
-
207
- button.width(button.width());
208
- button.data('oldWidth', button.width()); // Add the spinner
209
-
210
- button.prepend("\n <div class=\"spinner\">\n <div class=\"bounce1\"></div>\n <div class=\"bounce2\"></div>\n <div class=\"bounce3\"></div>\n </div>"); // Bind ajax:success and ajax:error to the form the button belongs to
211
-
212
- button.closest('form').on('ajax:success', function () {
213
- Object(functions["hideSpinner"])();
214
- Object(functions["enableActionElements"])();
215
- }).on('ajax:error', function () {
216
- Object(functions["hideSpinner"])();
217
- Object(functions["enableActionElements"])();
218
- });
42
+ $(document).on("click", BUTTON_SELECTORS, function() {
43
+ $.disableActionElements();
44
+ $(this).showSpinner();
219
45
  });
220
- };
221
-
222
- $(document).on('click', '[class^="button"]', function () {
223
- Object(functions["disableActionElements"])();
224
- Object(functions["showSpinner"])($(this));
46
+ $(document).on("ready page:load turbolinks:load", onDOMReady);
47
+ })(jQuery);
48
+ $.extend({
49
+ restoreActionElements: function restoreActionElements() {
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
+ },
60
+ disableActionElements: function disableActionElements() {
61
+ $('a, input[type="submit"], input[type="button"], input[type="reset"], button').each(function() {
62
+ $(this).addClass("actions--disabled");
63
+ });
64
+ }
225
65
  });
226
- $(document).on('ready page:load turbolinks:load', onDOMReady);
227
- })(jQuery);
228
- // CONCATENATED MODULE: ./app/javascript/beyond_canvas/initializers/flash.js
229
-
230
-
231
- (function ($) {
232
- var onDOMReady = function onDOMReady() {
233
- $('.flash').each(function () {
234
- $(this).css('right', -$(this).width() + 'px');
66
+ $.fn.extend({
67
+ showSpinner: function showSpinner() {
68
+ var button = $(this);
69
+ button.width(button.width() + $(".spinner").outerWidth(true));
70
+ setTimeout(function() {
71
+ button.find(".spinner").css("display", "inline-flex");
72
+ }, SPINNER_ANIMATION_TIMEOUT);
73
+ }
74
+ });
75
+ (function($) {
76
+ var onDOMReady = function onDOMReady() {
77
+ $(".flash").each(function() {
78
+ $(this).css("right", -$(this).width() + "px");
79
+ });
80
+ setTimeout(function() {
81
+ $(".flash").addClass("flash--shown");
82
+ }, 100);
83
+ };
84
+ $(document).on("click", ".flash", function() {
85
+ closeAlert();
235
86
  });
236
- setTimeout(function () {
237
- $('.flash').addClass('flash--shown');
238
- }, 100);
239
- };
240
-
241
- $(document).on('click', '.flash', function () {
242
- Object(functions["closeAlert"])();
87
+ $(document).on("ready page:load turbolinks:load", onDOMReady);
88
+ })(jQuery);
89
+ function closeAlert() {
90
+ $(".flash").removeClass("flash--shown").delay(700).queue(function() {
91
+ $(this).remove();
92
+ });
93
+ }
94
+ (function($) {
95
+ var onDOMReady = function onDOMReady() {
96
+ $('input[type="file"]').each(function() {
97
+ var $input = $(this), $label = $(".input__file__text." + $input.attr("id")), labelVal = $label.html();
98
+ $input.on("change", function(e) {
99
+ var fileName = "";
100
+ 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();
101
+ 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);
102
+ });
103
+ $input.on("focus", function() {
104
+ $input.addClass("has-focus");
105
+ }).on("blur", function() {
106
+ $input.removeClass("has-focus");
107
+ });
108
+ });
109
+ };
110
+ $(document).on("ready page:load turbolinks:load", onDOMReady);
111
+ })(jQuery);
112
+ $.extend({
113
+ displayModal: function displayModal(content, options) {
114
+ if (options === void 0) {
115
+ options = {};
116
+ }
117
+ $("#modal").find("#modal__content").html(content);
118
+ $("#modal").css("display", "flex");
119
+ $.restoreActionElements();
120
+ $(document).trigger("modal:opened", options["extraEventParameters"]);
121
+ },
122
+ closeModal: function closeModal() {
123
+ $("#modal").find("#modal__content").empty();
124
+ $("#modal").css("display", "none");
125
+ $.restoreActionElements();
126
+ $(document).trigger("modal:closed");
127
+ }
243
128
  });
244
- $(document).on('ready page:load turbolinks:load', onDOMReady);
245
- })(jQuery);
246
- // EXTERNAL MODULE: ./app/javascript/beyond_canvas/initializers/inputs.js
247
- var initializers_inputs = __webpack_require__(2);
248
-
249
- // CONCATENATED MODULE: ./app/javascript/beyond_canvas/base.js
250
-
251
-
252
-
253
-
254
- /***/ })
255
- /******/ ])));
129
+ });
@@ -9,20 +9,29 @@
9
9
  @import "utilities/mixins";
10
10
 
11
11
  @import "components/actions";
12
+ @import "components/breadcrumbs";
12
13
  @import "components/buttons";
13
14
  @import "components/cards";
14
15
  @import "components/comments";
15
16
  @import "components/containers";
17
+ @import "components/debug";
16
18
  @import "components/flash";
17
19
  @import "components/forms";
20
+ @import "components/grids";
18
21
  @import "components/inputs";
19
22
  @import "components/layouts";
20
23
  @import "components/links";
21
24
  @import "components/main";
22
25
  @import "components/margins";
23
26
  @import "components/markdown";
27
+ @import "components/action_bar";
28
+ @import "components/modals";
24
29
  @import "components/notices";
25
30
  @import "components/relative";
26
- @import "components/tables";
31
+ @import "components/scrollbox";
32
+ @import "components/sidebar";
27
33
  @import "components/spinner";
34
+ @import "components/menu";
35
+ @import "components/tables";
36
+ @import "components/titles";
28
37
  @import "components/texts";
@@ -0,0 +1,28 @@
1
+ .action_bar {
2
+ width: 100%;
3
+ height: $action-bar-height;
4
+ background-color: $action-bar-background;
5
+ border-bottom: $action-bar-shadow;
6
+ padding: 0 25px;
7
+ box-sizing: border-box;
8
+ display: flex;
9
+ align-items: center;
10
+ justify-content: space-between;
11
+ position: sticky;
12
+ top: 0;
13
+ z-index: 999;
14
+
15
+ &--menu {
16
+ top: $menu-height;
17
+ }
18
+
19
+ &--left {
20
+ display: flex;
21
+ justify-content: flex-start;
22
+ }
23
+
24
+ &--right {
25
+ display: flex;
26
+ justify-content: flex-end;
27
+ }
28
+ }