zuora_connect_ui 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: abca5d85a8819e71129d508fa71dd79364931d4e
|
4
|
+
data.tar.gz: 256ca1f1dee18cf8ebbc5a2d1369f95904ea0d1f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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"
|
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
|
@@ -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="<%=
|
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='<%=
|
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"]
|
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"]
|
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"]
|
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 %>
|
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.
|
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-
|
11
|
+
date: 2019-05-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bootstrap-sass
|