glib-web 0.5.48 → 0.5.49

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: '096278d9b11151bcb169ba83f5c62c080471bb076f8ea3d34913e898a9537382'
4
- data.tar.gz: bb831b31d185198292f251cbc3e9ab4536b1c4f3e3a28ceb32a5c7b76c25cba6
3
+ metadata.gz: de169b420305a05364d54456a0673cd84551e04ada3db96d93fd68c3b0e7fff5
4
+ data.tar.gz: 7c51e166d6e95ca1edb404c4faaf900b6a28a6f5ca940cabe7f534eddbfa8720
5
5
  SHA512:
6
- metadata.gz: fcbb3bded93e840d4db717c74a78bd16537e405bdc2262343274604f9940d0b768256e6df5e01225d9f699d422693f5030e0156e5b9a596a4b685575355e8347
7
- data.tar.gz: 99c46875985b061cea7e7932bb2a86c7b1d0f613c205ec15207cf212f1703df44eb6a03bffd81a5dfbd64e5b5a89b09d5f18ca830d48b2d95b6e8260bca065e0
6
+ metadata.gz: f00a06fe4f39340bc75b19553e19ce2f65f0d5f6bf64ea2287357b7e68475cc774062417cbd854e727905f7c3d434a0705f5322f083c22f4ace99dce79be7cc6
7
+ data.tar.gz: fe0894ee4fd7580f86c603e9cd3572ff0550fb772ace25cc63f5a74002fe1a3ec5a9aecd5446b04d2c8823a7de9a8a19f4e82c7fe4f8dc2816b23eafee9dd1e8
@@ -73,6 +73,11 @@ module Glib::Json::Traversal
73
73
  traverse_vertical_content view['center'], block
74
74
  traverse_vertical_content view['right'], block
75
75
 
76
+ # List template
77
+ traverse_multiple view['editButtons'], block
78
+ traverse_multiple view['leftButtons'], block
79
+ traverse_multiple view['rightButtons'], block
80
+
76
81
  # TODO: crawl header and footer
77
82
  # Table/List
78
83
  if (sections = view['sections']).is_a? Array
@@ -38,7 +38,11 @@ module Glib
38
38
  bool :avatar
39
39
  action :onReorder
40
40
  string :paramNameForFormData
41
- string :paramNameForNewIndex
41
+ string :paramNameForNewAbsoluteIndex
42
+ string :paramNameForNewSectionIndex
43
+ string :paramNameForNewSectionedRowIndex
44
+
45
+ string :paramNameForNewIndex # Deprecated
42
46
 
43
47
  # # NOTE: Experimental. Still deciding whether this needs to be a full blown panel or
44
48
  # # an array of badges (with relevant properties, e.g. text, color, etc)
@@ -18,7 +18,17 @@ else
18
18
 
19
19
  render "#{@path_prefix}/nav_menu", json: json, page: page
20
20
 
21
- page.list nextPage: next_page, firstSection: ->(section) do
22
- render 'json_ui/garage/lists/autoload_section', page: page, page_index: page_index, reorder: true
23
- end
21
+ page.list nextPage: next_page, sections: [
22
+ ->(section) do
23
+ section.header padding: glib_json_padding_list, childViews: ->(header) do
24
+ header.h3 text: 'Section One'
25
+ end
26
+ end,
27
+ ->(section) do
28
+ section.header padding: glib_json_padding_list, childViews: ->(header) do
29
+ header.h3 text: 'Section Two'
30
+ end
31
+ render 'json_ui/garage/lists/autoload_section', page: page, page_index: page_index, reorder: true
32
+ end
33
+ ]
24
34
  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.48
4
+ version: 0.5.49
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''