glib-web 0.14.4 → 0.14.5

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: 70fc63dd92b73c7e8ec24fd30759f420777cefe7dccf0780bbf262cd86a7d476
4
- data.tar.gz: ff5b356ab3df79a89a11bc9fd6929488ddf3fb238a00feff85181222bbaeea59
3
+ metadata.gz: 8a62b186979dd157da8572e5b70ff225c19ea7c17e1e8bc5e09f2112f2badc11
4
+ data.tar.gz: ebbc9e67417afb0a0543f018cef6f57b2010ee500c751ff7119a14fc1a73939b
5
5
  SHA512:
6
- metadata.gz: 802f3c3ab05b7882f4d54a0b741ec60610d6f0df08978eefa607c5c39efaf5dbd9b3a728723ba7929439e4f934807c3ad83eaa164eb1ee02fde77aa9e0f82340
7
- data.tar.gz: 156aa764c02ac706d627ede33cead263d532f5b485e4d2ed1ac71919572f738f8b83f7a5648c1caca7cc9bd6ea50b1ee3ec21e22112a433dd8b60ceeef4b1e2a
6
+ metadata.gz: 3fb285f688abaf2ce2836665a5705d30d35f5b1be67c477bf5b7f6e15aac58b059f44d2723a710512385d95eae0d51c8c95add3bd320aef542fb6e90f25557e0
7
+ data.tar.gz: 2c835ce86a20ffe1b571953cc7950f9e2c3abb8ebb328f3467803e4a2d9e739da203c47e7e4fd67013741ce81df73a3e6ae0b1feadaccb0f1a7ac876a3825d46
@@ -26,6 +26,8 @@ class Glib::JsonUi::ActionBuilder
26
26
  class Show < Action
27
27
  panels_builder :content, :body
28
28
  bool :showClose
29
+ string :fullscreen # mobile, always
30
+ length :width
29
31
 
30
32
  # Future plan
31
33
  # panels_builder :content, :body, :footer
@@ -34,12 +36,16 @@ class Glib::JsonUi::ActionBuilder
34
36
  class Open < Action
35
37
  string :url, cache: true
36
38
  bool :showClose
39
+ string :fullscreen
40
+ length :width
37
41
  end
38
42
 
39
43
  class Reload < Action
40
44
  panels_builder :content, :body
41
45
  string :url, cache: true
42
46
  bool :showClose
47
+ string :fullscreen # mobile, always
48
+ length :width
43
49
  end
44
50
 
45
51
  class Close < Action
@@ -59,7 +59,11 @@ section.rows builder: ->(template) do
59
59
  end
60
60
 
61
61
  template.thumbnail title: 'dialogs/open', onClick: ->(action) do
62
- action.dialogs_open url: json_ui_garage_url(path: 'forms/basic', mode: 'dialog')
62
+ action.dialogs_open width: 950, url: json_ui_garage_url(path: 'forms/basic', mode: 'dialog')
63
+ end
64
+
65
+ template.thumbnail title: 'dialogs/open (fullscreen on mobile)', onClick: ->(action) do
66
+ action.dialogs_open fullscreen: 'mobile', url: json_ui_garage_url(path: 'forms/basic', mode: 'dialog')
63
67
  end
64
68
 
65
69
  template.thumbnail title: 'dialogs/oauth', onClick: ->(action) do
@@ -13,7 +13,7 @@ action.send "dialogs_#{dialog_mode}", showClose: true, content: ->(dialog) do
13
13
  split.left childViews: ->(left) do
14
14
  left.panels_horizontal height: 'matchParent', align: 'middle', childViews: ->(horizontal) do
15
15
  horizontal.label text: 'Open current', onClick: ->(subaction) do
16
- subaction.dialogs_reload url: json_ui_garage_url(path: 'forms/basic', mode: 'dialog_reload')
16
+ subaction.dialogs_reload width: 900, fullscreen: 'mobile', url: json_ui_garage_url(path: 'forms/basic', mode: 'dialog_reload')
17
17
  end
18
18
  end
19
19
  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: 0.14.4
4
+ version: 0.14.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''