glib-web 0.5.34 → 0.5.35

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: b59fad27046de460148c8944bc780f516a85783e9226c694e0f31e83970194ad
4
- data.tar.gz: e4d9cf6b52c361f41ea114fefd6fef9d1726af5231c8beb21a385063a02474f2
3
+ metadata.gz: 7ab027b2e06860edd4c9b20cee7936d370ef8ba92ebd15379ae6dbd8c20395de
4
+ data.tar.gz: 3d55b83d631e5c01e915cb4be80515c47e82314d8eb8ad38eb29d3e8e42785c9
5
5
  SHA512:
6
- metadata.gz: '052297f7cbf48213322253214e9bacebad001e58c39168cf0825ac006e9bc72a12218dab6b1901ce7f3562ca002639e272d1b6ea94414b66940aaaab060f2b10'
7
- data.tar.gz: 6c95b179be6b8ace6c0204e030edbc6f598e10a16073d3f75fb82be45365f2f01da44c468f1b362ce9b76c405b3dc81f5879e36a3741963da8f92f447f49269b
6
+ metadata.gz: 620795d7d88023f7f03a44991758a90a4fe7a3680ab09bbe4f37c3f6fc3cfdd24dba4bf09ba1ff134fdcf48325c51da8c142f8b72eb3cb35514717bb1c695c62
7
+ data.tar.gz: 51bd223aa3543323b3c2215a5a0258a25d3f52009e8e0c1b6b1865101e5180f3f43dff034016d974da39a45702e00e38cb34b4e10edce8afeed3f45c4e088e1e
@@ -90,11 +90,11 @@ module Glib
90
90
  builder
91
91
  end
92
92
 
93
- def rightNavButtons
94
- json.rightNavButtons do
95
- yield @menu_builder
96
- end
97
- end
93
+ # def rightNavButtons
94
+ # json.rightNavButtons do
95
+ # yield @menu_builder
96
+ # end
97
+ # end
98
98
 
99
99
  def template(template)
100
100
  json.template template
@@ -217,6 +217,7 @@ class Glib::JsonUi::ViewBuilder
217
217
  hash :latitudeField
218
218
  hash :longitudeField
219
219
  hash :zoomField
220
+ hash :autocompleteOptions
220
221
  end
221
222
 
222
223
  class StripeToken < AbstractField
@@ -35,6 +35,7 @@ json_ui_page json do |page|
35
35
  form.h2 text: 'Map'
36
36
  form.spacer height: 6
37
37
  form.fields_location name: 'user[address]', width: 'matchParent', label: 'Type an address', value: 'Sydney Harbour Bridge',
38
+ autocompleteOptions: { componentRestrictions: { country: 'au' }, types: ['(cities)'] },
38
39
  latitudeField: { view: 'fields/text', name: 'user[latitude]', label: 'Lat', value: -33.8523063, readOnly: true },
39
40
  longitudeField: { view: 'fields/text', name: 'user[longitude]', label: 'Long', value: 151.21078710000006, readOnly: true },
40
41
  zoomField: { view: 'fields/text', name: 'user[zoom]', label: 'Zoom' }
@@ -5,7 +5,7 @@ page = json_ui_page json
5
5
  render "#{@path_prefix}/nav_menu", json: json, page: page
6
6
 
7
7
  page.navBar backgroundColor: '#a8c4e3', color: '#ffffff', rightButtons: ->(menu) do
8
- menu.button icon: 'search', onClick: ->(action) do
8
+ menu.button icon: 'search', text: 'Search', onClick: ->(action) do
9
9
  action.dialogs_alert message: 'Perform some action'
10
10
  end
11
11
  menu.button icon: { name: 'star', badge: { text: '1', backgroundColor: '#ff0000' } }, onClick: ->(action) do
@@ -12,7 +12,7 @@ module Glib
12
12
  crawl json['body']&.[]('childViews')
13
13
  crawl json['footer']&.[]('childViews')
14
14
 
15
- json['rightNavButtons']&.each do |button|
15
+ json['rightButtons']&.each do |button|
16
16
  if button['buttons'].present?
17
17
  button['buttons'].each do |inner_button|
18
18
  click inner_button
@@ -82,7 +82,8 @@ module Glib
82
82
 
83
83
  def tear_down
84
84
  # NOTE: Experimental, to address issue where sometimes changes don't get saved.
85
- @logger.flush
85
+ # FINDING: Doesn't work
86
+ # @logger.flush
86
87
 
87
88
  @logger.close
88
89
  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.5.34
4
+ version: 0.5.35
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''