mobile_workflow 0.6.28 → 0.6.29
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: 95b8a4e615993e80a85d0440c2a2d0233ac72a6c0b08ccf28b2b09ffd1113815
|
|
4
|
+
data.tar.gz: 63540e27a1e5cfcfcf85acec5d256750806e13b49ac2588b038ff422d42a4e76
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ad51b31fe398ca8197007d1f917469e2ccce6337e4700982ce2b5c37a94361f787a2ba8b9b668e4fecc6845000418b4c2b3fa2214a7840d1ee9e95b3df55e968
|
|
7
|
+
data.tar.gz: 0a4ef7514e5d137ac2c6e7017bc3f0fb87b09fe9884732b42700d9f9eb3f7b4af8e6ee474a3b24210e52e89ec4d3c76028e953da1feaaf28f62adf1e4a1531d0
|
|
@@ -8,14 +8,14 @@ module MobileWorkflow
|
|
|
8
8
|
CONTENT_MODE_OPTIONS = [:scale_aspect_fill, :scale_aspect_fit]
|
|
9
9
|
QUESTION_STYLES = [:single_choice, :multiple_choice]
|
|
10
10
|
|
|
11
|
-
def mw_list_item(id: self.id, text:, detail_text: nil, sf_symbol_name: nil, image_attachment: nil)
|
|
12
|
-
mw_list_item = {id: id, text: text, detailText: detail_text, sfSymbolName: sf_symbol_name}
|
|
13
|
-
mw_list_item[:imageURL] = preview_url(image_attachment, options: { resize_to_fill: [
|
|
11
|
+
def mw_list_item(id: self.id, text:, detail_text: nil, sf_symbol_name: nil, material_icon_name: nil, image_attachment: nil)
|
|
12
|
+
mw_list_item = {id: id, text: text, detailText: detail_text, sfSymbolName: sf_symbol_name, materialIconName: material_icon_name}
|
|
13
|
+
mw_list_item[:imageURL] = preview_url(image_attachment, options: { resize_to_fill: [200, 200] }) if image_attachment
|
|
14
14
|
mw_list_item.compact
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
-
def mw_list_search_suggestion(id
|
|
18
|
-
{id: id, text: text, sectionName: section_name, sfSymbolName: sf_symbol_name}.compact
|
|
17
|
+
def mw_list_search_suggestion(id: self.id, text:, section_name:, sf_symbol_name: nil)
|
|
18
|
+
{id: id.to_s, text: text, sectionName: section_name, sfSymbolName: sf_symbol_name}.compact
|
|
19
19
|
end
|
|
20
20
|
|
|
21
21
|
def mw_map_item(id: self.id, text:, detail_text: nil, latitude:, longitude:)
|
|
@@ -30,7 +30,7 @@ module MobileWorkflow
|
|
|
30
30
|
{type: :text, label: label, text: text.to_s}.compact
|
|
31
31
|
end
|
|
32
32
|
|
|
33
|
-
def mw_display_image(attachment, content_mode: :scale_aspect_fill, options: { resize_to_fill: [
|
|
33
|
+
def mw_display_image(attachment, content_mode: :scale_aspect_fill, options: { resize_to_fill: [1200, 600] })
|
|
34
34
|
validate_content_mode!(content_mode)
|
|
35
35
|
|
|
36
36
|
{type: :image, contentMode: content_mode.to_s.camelize(:lower), previewURL: preview_url(attachment, options: options), url: attachment_url(attachment)}
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mobile_workflow
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.6.
|
|
4
|
+
version: 0.6.29
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Matt Brooke-Smith
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-
|
|
11
|
+
date: 2021-06-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|