marty 10.0.0 → 10.0.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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b5d6d6cf461151669f3685da2c7a4b55564e571f16b2dfb94a500ee7229ebd25
|
4
|
+
data.tar.gz: f1b8b7d2a8ee38da6c96ec0fc16917b0b9b6d57837fc6f772adcf7b55a10c23c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 381605ae8add5c23b97c06190ebfa5b2bf8c6f3e958fcbb44dc64a5dafd5b709aa608f7e7321b3fd3bdcee6a3ed067c7232e8226e611f4410c859f06b756138d
|
7
|
+
data.tar.gz: 150f1fe10f330f81c91211428ef0921c5ffd401dd550655549cbe56b619f940008e839ec94eee0ec59d959628f8f43069f29ef95987fd33f33f9136ba12a59a7
|
@@ -253,10 +253,18 @@ class Marty::BaseRuleView < Marty::McflyGridPanel
|
|
253
253
|
end
|
254
254
|
|
255
255
|
def form_items_results
|
256
|
-
[
|
257
|
-
|
258
|
-
|
259
|
-
|
256
|
+
[
|
257
|
+
jsonb_field(
|
258
|
+
:results,
|
259
|
+
{
|
260
|
+
getter: jsonb_simple_getter(:results),
|
261
|
+
setter: jsonb_simple_setter(:results),
|
262
|
+
min_height: 150,
|
263
|
+
height: nil, # must be nil to allow the field to resize automatically
|
264
|
+
grow: true,
|
265
|
+
}
|
266
|
+
)
|
267
|
+
]
|
260
268
|
end
|
261
269
|
|
262
270
|
def default_form_items_guards
|
@@ -0,0 +1,31 @@
|
|
1
|
+
module Marty
|
2
|
+
module ComponentUtil
|
3
|
+
def self.extended(klass)
|
4
|
+
klass.client_class do |c|
|
5
|
+
c.include :component_util
|
6
|
+
end
|
7
|
+
end
|
8
|
+
|
9
|
+
def self.simple_html_table_gen(what, data)
|
10
|
+
return "No #{what}" if data.blank?
|
11
|
+
|
12
|
+
xm = Builder::XmlMarkup.new(indent: 2)
|
13
|
+
xm.style(
|
14
|
+
'table.simple_popup { border-spacing: 10px 10px; }
|
15
|
+
tr.simple_popup_gray { background-color: rgb(220,220,220); }
|
16
|
+
td.simple_popup { padding: 5px 20px 5px 20px; }'
|
17
|
+
)
|
18
|
+
xm.table(class: 'simple_popup') do
|
19
|
+
xm.tr { data[0].keys.each { |key| xm.th(key, class: 'simple_popup') } }
|
20
|
+
data.each do |row|
|
21
|
+
xm.tr do
|
22
|
+
row.values.each do |value|
|
23
|
+
xm.td(value, class: 'simple_popup')
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
xm.target!
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
({
|
2
|
+
createPopupWindow(html_to_show, title_to_show, height_to_use, width_to_use) {
|
3
|
+
Ext.create("Ext.Window", {
|
4
|
+
height: height_to_use,
|
5
|
+
minWidth: width_to_use,
|
6
|
+
autoWidth: true,
|
7
|
+
layout: "fit",
|
8
|
+
modal: false,
|
9
|
+
autoScroll: true,
|
10
|
+
html: html_to_show,
|
11
|
+
title: title_to_show
|
12
|
+
}).show();
|
13
|
+
}
|
14
|
+
});
|
@@ -172,6 +172,8 @@ module Layout
|
|
172
172
|
def range_setter(name, json_field = nil)
|
173
173
|
if json_field
|
174
174
|
lambda do |r, v|
|
175
|
+
v = nil if v.blank?
|
176
|
+
|
175
177
|
cookedv = v && v.present? && (Marty::Util.human_to_pg_range(v) rescue v)
|
176
178
|
h = r.send(json_field)
|
177
179
|
if cookedv
|
@@ -183,6 +185,8 @@ module Layout
|
|
183
185
|
end
|
184
186
|
else
|
185
187
|
lambda do |r, v|
|
188
|
+
next r.send("#{name}=", nil) if v.blank?
|
189
|
+
|
186
190
|
r.send("#{name}=", v && (Marty::Util.human_to_pg_range(v) rescue v))
|
187
191
|
end
|
188
192
|
end
|
data/lib/marty/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: marty
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 10.0.
|
4
|
+
version: 10.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Arman Bostani
|
@@ -14,7 +14,7 @@ authors:
|
|
14
14
|
autorequire:
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
|
-
date: 2020-03-
|
17
|
+
date: 2020-03-17 00:00:00.000000000 Z
|
18
18
|
dependencies:
|
19
19
|
- !ruby/object:Gem::Dependency
|
20
20
|
name: actioncable
|
@@ -321,6 +321,8 @@ files:
|
|
321
321
|
- app/components/marty/background_job/schedule_jobs_logs.rb
|
322
322
|
- app/components/marty/base_rule_view.rb
|
323
323
|
- app/components/marty/base_rule_view/client/base_rule_view.js
|
324
|
+
- app/components/marty/component_util.rb
|
325
|
+
- app/components/marty/component_util/client/component_util.js
|
324
326
|
- app/components/marty/config_view.rb
|
325
327
|
- app/components/marty/data_grid_user_view.rb
|
326
328
|
- app/components/marty/data_grid_view.rb
|