glib-web 3.0.5 → 3.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d3f624adbe86289ed5fef01de2ab91d3aae2483757a0b0d1eebaf5e365a70759
4
- data.tar.gz: 2a0ed75e29dca8e1a4699a842ee40d05635025929ca1acc996082856a25c3dda
3
+ metadata.gz: 7582120728da9ff799f1e96c09441e9901c382dff1f6cc8f75915bcc4a001bc3
4
+ data.tar.gz: d3416f026945a4394b53c75fabac68bfe0221891ce799dcc8e69df17c6bfb103
5
5
  SHA512:
6
- metadata.gz: 17ab8fcca93781dfd9ed0a0017d89cfd21dd6123d58f6bf1f9e901776159192bf8d85c50a91c6df3ca23bc9b7ab7ca1c20a52a6c8fd8485e17316527745e83c2
7
- data.tar.gz: 83fc2e67890bbe9cab32499faadbea302cd46990999eeb5622fba9920d549813ce1c710572e4786fe506584d9bcca5ee0040ec64d4eb429e486832ea4b114662
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
@@ -195,6 +195,7 @@ module Glib
195
195
  color :color
196
196
  bool :disabled
197
197
 
198
+ # TODO: This should be deprecated in favour of `popovers/open`
198
199
  def childButtons(block)
199
200
  json.childButtons do
200
201
  block.call page.menu_builder
@@ -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 viewId: 'scroll_anchor', animate: true, onScroll: ->(subaction) do
15
- subaction.dialogs_alert message: 'Bottom reached'
16
- end
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.5
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.6
321
+ rubygems_version: 3.1.4
322
322
  signing_key:
323
323
  specification_version: 4
324
324
  summary: ''