glib-web 3.0.5 → 3.2.0
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/app/helpers/glib/json_ui/action_builder/dialogs.rb +6 -3
- data/app/helpers/glib/json_ui/action_builder/panels.rb +4 -1
- data/app/helpers/glib/json_ui/view_builder.rb +1 -0
- data/app/views/json_ui/garage/actions/_panels.json.jbuilder +8 -3
- data/app/views/json_ui/garage/forms/_partial_update_execute.json.jbuilder +2 -0
- data/app/views/json_ui/garage/forms/partial_update.json.jbuilder +1 -0
- 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: 7582120728da9ff799f1e96c09441e9901c382dff1f6cc8f75915bcc4a001bc3
|
4
|
+
data.tar.gz: d3416f026945a4394b53c75fabac68bfe0221891ce799dcc8e69df17c6bfb103
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 51b62f4e1432cb3282677e709f8e87f0d20f4fbb7b9e016b9ab704fed340664ee60fcf4c8ac34032bf74705da09cf5e576749c8944ff237f07b0110eab38ed8b
|
7
|
+
data.tar.gz: e62724ed3687f6f8905740c05655a1f797caafd5b4125b0d9bb770552a8c0b804b45a89134a57c5cd1f049f5125979b1ee5f8acccdbf0bf8cfa85f33efb0c064
|
@@ -26,7 +26,8 @@ class Glib::JsonUi::ActionBuilder
|
|
26
26
|
|
27
27
|
class Show < Action
|
28
28
|
panels_builder :content, :body
|
29
|
-
bool :showClose
|
29
|
+
bool :showClose # deprecated
|
30
|
+
bool :disableCloseButton
|
30
31
|
string :fullscreen # mobile, always
|
31
32
|
length :width
|
32
33
|
bool :closeOnBlur
|
@@ -43,7 +44,8 @@ class Glib::JsonUi::ActionBuilder
|
|
43
44
|
|
44
45
|
class Open < Action
|
45
46
|
string :url, cache: true
|
46
|
-
bool :showClose
|
47
|
+
bool :showClose # deprecated
|
48
|
+
bool :disableCloseButton
|
47
49
|
string :fullscreen
|
48
50
|
length :width
|
49
51
|
length :height
|
@@ -53,7 +55,8 @@ class Glib::JsonUi::ActionBuilder
|
|
53
55
|
class Reload < Action
|
54
56
|
panels_builder :content, :body
|
55
57
|
string :url, cache: true
|
56
|
-
bool :showClose
|
58
|
+
bool :showClose # deprecated
|
59
|
+
bool :disableCloseButton
|
57
60
|
string :fullscreen # mobile, always
|
58
61
|
length :width
|
59
62
|
end
|
@@ -10,8 +10,11 @@ class Glib::JsonUi::ActionBuilder
|
|
10
10
|
string :viewId
|
11
11
|
action :onScroll
|
12
12
|
bool :animate
|
13
|
-
string :placement
|
13
|
+
string :placement # `top` or `bottom`
|
14
14
|
string :panelId
|
15
|
+
|
16
|
+
# Scroll even when the target component is already in view.
|
17
|
+
bool :force
|
15
18
|
end
|
16
19
|
end
|
17
20
|
end
|
@@ -11,8 +11,13 @@ section.rows builder: ->(template) do
|
|
11
11
|
end
|
12
12
|
|
13
13
|
template.thumbnail title: 'panels/scrollTo', onClick: ->(action) do
|
14
|
-
action.panels_scrollTo
|
15
|
-
|
16
|
-
|
14
|
+
action.panels_scrollTo \
|
15
|
+
viewId: 'scroll_anchor',
|
16
|
+
force: true,
|
17
|
+
animate: true,
|
18
|
+
placement: 'top',
|
19
|
+
onScroll: ->(subaction) do
|
20
|
+
subaction.dialogs_alert message: 'Component becomes in view'
|
21
|
+
end
|
17
22
|
end
|
18
23
|
end
|
@@ -1,6 +1,8 @@
|
|
1
1
|
name = params[:name]
|
2
2
|
action.components_update targetId: 'greeting', views: ->(update) do
|
3
3
|
update.panels_vertical childViews: ->(vertical) do
|
4
|
+
name = params[:name]
|
5
|
+
vertical.fields_hidden name: 'name', value: name
|
4
6
|
vertical.label text: "Hello #{name},"
|
5
7
|
vertical.spacer height: 8
|
6
8
|
vertical.label text: 'Nice to meet you'
|
@@ -12,6 +12,7 @@ page.scroll childViews: ->(scroll) do
|
|
12
12
|
scroll.label text: 'The updated content should be committed to the page history as the user navigates back and forward.'
|
13
13
|
scroll.spacer height: 18
|
14
14
|
scroll.panels_vertical id: 'greeting', childViews: ->(inner) do
|
15
|
+
inner.fields_hidden name: 'name', value: '<uninitialized>'
|
15
16
|
inner.label text: 'Hello'
|
16
17
|
end
|
17
18
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: glib-web
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0
|
4
|
+
version: 3.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ''
|
@@ -318,7 +318,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
318
318
|
- !ruby/object:Gem::Version
|
319
319
|
version: '0'
|
320
320
|
requirements: []
|
321
|
-
rubygems_version: 3.1.
|
321
|
+
rubygems_version: 3.1.4
|
322
322
|
signing_key:
|
323
323
|
specification_version: 4
|
324
324
|
summary: ''
|