app_rail-steps 0.2.9 → 0.2.10
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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/app_rail/steps/core/stack.rb +9 -3
- data/lib/app_rail/steps/core_forms/form.rb +4 -0
- data/lib/app_rail/steps/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d5fba719c7fcaba7cf8b1e18177ce7ec359927de8827208939589d6c6edfb79b
|
|
4
|
+
data.tar.gz: 4031c6d33e27f2644364dd8f89fdd4f1c396ad0e607afeaf9417bfa863a7f772
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 52574338b664bbd3e95607227fb0f3d215685debb49822f688bdd8e5cfef68ba3334b7d43093f554511467c935480d3b0aca6fd8aafaa547e7d8f43447d190e8
|
|
7
|
+
data.tar.gz: 9ff0bd79331d79e5863d57b5729652f06e66b3ba45a3925c3905a99cb722221b25c6af8aac1afec2a9f094f7e9c6c040d177cdce9a61bee0216e104eade0a80b
|
data/Gemfile.lock
CHANGED
|
@@ -7,11 +7,17 @@ module AppRail
|
|
|
7
7
|
CONTENT_MODE_OPTIONS = %i[scale_aspect_fill scale_aspect_fit].freeze
|
|
8
8
|
IMAGE_STYLE_OPTIONS = %i[full_width profile].freeze
|
|
9
9
|
|
|
10
|
-
def ar_core_stack_text(text:, label: nil)
|
|
11
|
-
{
|
|
10
|
+
def ar_core_stack_text(text:, label: nil, sf_symbol_name: nil, material_icon_name: nil)
|
|
11
|
+
{
|
|
12
|
+
type: :text,
|
|
13
|
+
label: label,
|
|
14
|
+
text: text.to_s,
|
|
15
|
+
sfSymbolName: sf_symbol_name,
|
|
16
|
+
materialIconName: material_icon_name
|
|
17
|
+
}.compact
|
|
12
18
|
end
|
|
13
19
|
|
|
14
|
-
def ar_core_stack_image(preview_url:, attachment_url
|
|
20
|
+
def ar_core_stack_image(preview_url:, attachment_url: preview_url, image_style: :full_width, content_mode: :scale_aspect_fill)
|
|
15
21
|
validate_content_mode!(content_mode)
|
|
16
22
|
validate_image_style!(image_style)
|
|
17
23
|
|
|
@@ -4,6 +4,10 @@ module AppRail
|
|
|
4
4
|
module Steps
|
|
5
5
|
module CoreForms
|
|
6
6
|
module Form
|
|
7
|
+
#
|
|
8
|
+
# MBS - Note - ID on forms should be the value on the customOutput in the app.json for this field
|
|
9
|
+
#
|
|
10
|
+
|
|
7
11
|
def ar_core_forms_form_section(label:, id:)
|
|
8
12
|
raise "Missing label" if label.nil?
|
|
9
13
|
raise "Missing id" if id.nil?
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: app_rail-steps
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.10
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Matt Brooke-Smith
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-
|
|
11
|
+
date: 2022-05-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description:
|
|
14
14
|
email:
|