zuora_connect_ui 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e86be4d2dac34f4bd0733825b1deedd572723131
4
- data.tar.gz: 416b989b93c9aef362ab67b57d0c62285d408e79
3
+ metadata.gz: abca5d85a8819e71129d508fa71dd79364931d4e
4
+ data.tar.gz: 256ca1f1dee18cf8ebbc5a2d1369f95904ea0d1f
5
5
  SHA512:
6
- metadata.gz: 2a4a0e3cd45f1ee70ae877f7ae0b73adaa28dac29f48d8f12850ced27e2efe545a32fb1c01cb118a6f38ddc4a718161b7496a31820e2a8b023c272a09cf62554
7
- data.tar.gz: effa211a3fd1e31c3bb11d433a0cb34ce539f4ef29b63b08e113fe8d238a7de76d89b4e36013d661121f54d9e3bb5cb34d3f3421600842a52921e8564f203917
6
+ metadata.gz: a067863c186d1d5b9bb69be442cd2e72adff0d24362c72052cb70a18c0c48e574fb6ff75440ac07bc6b1176f4ab52237df3b08bd021bf6bd670a38802d77c569
7
+ data.tar.gz: 03b2e0111b5a0282d6256650f334e70616ac8595dcf93c5c7d9de2d03f29c830aa4565314f6baf54bfd36f7c9fdc6dcb03b818a5a05170b7c64b3f65cb746adc
@@ -2,7 +2,12 @@ $(document).on("hidden.bs.modal shown.bs.modal shown.bs.tab", resize_iframe);
2
2
 
3
3
  let height_prev;
4
4
  function resize_iframe() {
5
- if (typeof(hallwayPrefix) !== "undefined" && hallwayPrefix == "") {
5
+ if (typeof(hallwayPrefix) !== "undefined") {
6
+ workflow_canvas = document.getElementById('canvas');
7
+ if (workflow_canvas !== null) {
8
+ height = window.innerHeight - $(".new_navbar").height() - $("#breadcrumbs").height() - $(".nav.tab-header").height() - $(".green-header").height() - $(".new_navbar_footer").height() - 35;
9
+ workflow_canvas.setAttribute("style", "height: " + height + "px;");
10
+ }
6
11
  return;
7
12
  }
8
13
  var height = 0;
@@ -3,6 +3,15 @@
3
3
  module ZuoraConnectUi
4
4
  # General helpers for application level
5
5
  module ApplicationHelper
6
+
7
+ def zuo_parameterize(string)
8
+ if Rails::VERSION::STRING.start_with? '5'
9
+ string.parameterize(separator: '_')
10
+ else
11
+ string.parameterize('_')
12
+ end
13
+ end
14
+
6
15
  def zuo_include_tag
7
16
  JAVASCRIPT_INCLUDE
8
17
  end
@@ -1,4 +1,4 @@
1
- <% filter_name = table_filter["name"].parameterize('_') %>
1
+ <% filter_name = zuo_parameterize(table_filter["name"]) %>
2
2
  <% prompt = table_filter.fetch("prompt", "") %>
3
3
 
4
4
  <div class="table-filter">
@@ -4,7 +4,7 @@
4
4
 
5
5
  <div id="<%= table_name %>_content">
6
6
  <div class="table-header">
7
- <div class="table-header-left">
7
+ <div class="table-header-left zuo-flex zuo-flex--center">
8
8
  <% if defined?(table_filters) %>
9
9
  <% table_filters.each do |table_filter| %>
10
10
  <%= render(:partial=>"partials/filters", locals: {:table_filter => table_filter, :filter_count => table_filters.size, :table_name => table_name}, :formats => [:html]) %>
@@ -16,7 +16,7 @@
16
16
  <% if defined?(table_actions) && table_actions.present? %>
17
17
  <% if table_actions.class == Hash %>
18
18
  <div class="btn-group">
19
- <span id="<%= table_name %>_actions" class="table-btn" data-items="<%= raw(table_actions.to_json) %>">
19
+ <span id="<%= table_name %>_actions" class="table-btn" data-items="<%= table_actions.to_json %>">
20
20
  <i class='fa fa-object-ungroup'></i>
21
21
  </span>
22
22
  </div>
@@ -26,7 +26,7 @@
26
26
  <% end %>
27
27
  <% if defined?(table_group_actions) && table_group_actions.present? %>
28
28
  <div class="btn-group">
29
- <span id="<%= table_name %>_group_actions" class="hidden table-btn" data-items='<%= raw(table_group_actions.to_json) %>'>
29
+ <span id="<%= table_name %>_group_actions" class="hidden table-btn" data-items='<%= table_group_actions.to_json %>'>
30
30
  <i class='fa fa-object-ungroup'></i>
31
31
  </span>
32
32
  </div>
@@ -151,11 +151,11 @@
151
151
  <% if defined?(table_filters) %>
152
152
  <% table_filters.each do |table_filter| %>
153
153
  <% if table_filter["type"] == "checkbox" %>
154
- aoData.push({ "name": "<%= table_filter["name"].parameterize('_') %>", "value": $('#<%= table_name %>_content input[name="<%= table_filter["name"].parameterize('_') %>[]"]:checked').map(function(_, el) { return $(el).val()}).get() });
154
+ aoData.push({ "name": "<%= zuo_parameterize(table_filter["name"]) %>", "value": $('#<%= table_name %>_content input[name="<%= zuo_parameterize(table_filter["name"]) %>[]"]:checked').map(function(_, el) { return $(el).val()}).get() });
155
155
  <% elsif table_filter["type"] == "boolean" %>
156
- aoData.push({ "name": "<%= table_filter["name"].parameterize('_') %>", "value": $('#<%= table_name %>_content input[name="<%= table_filter["name"].parameterize('_') %>"]:checked').val() });
156
+ aoData.push({ "name": "<%= zuo_parameterize(table_filter["name"]) %>", "value": $('#<%= table_name %>_content input[name="<%= zuo_parameterize(table_filter["name"]) %>"]:checked').val() });
157
157
  <% elsif ["select", "group-select"].include?(table_filter["type"]) %>
158
- aoData.push({ "name": "<%= table_filter["name"].parameterize('_') %>", "value": $('#<%= table_name %>_content select[name="<%= table_filter["name"].parameterize('_') %>"]').val() });
158
+ aoData.push({ "name": "<%= zuo_parameterize(table_filter["name"]) %>", "value": $('#<%= table_name %>_content select[name="<%= zuo_parameterize(table_filter["name"]) %>"]').val() });
159
159
  <% end %>
160
160
  <% end %>
161
161
  <% end %>
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ZuoraConnectUi
4
- VERSION = '0.3.1'
4
+ VERSION = '0.3.2'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zuora_connect_ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Connect Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-30 00:00:00.000000000 Z
11
+ date: 2019-05-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bootstrap-sass