glib-web 0.5.42 → 0.5.43
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/view_builder.rb +1 -0
 - data/app/helpers/glib/json_ui/view_builder/panels.rb +1 -1
 - data/app/views/json_ui/garage/actions/index.json.jbuilder +19 -20
 - data/app/views/json_ui/garage/forms/basic.json.jbuilder +13 -14
 - data/app/views/json_ui/garage/forms/checkboxes.json.jbuilder +34 -35
 - data/app/views/json_ui/garage/views/map_cluster_data.json.jbuilder +3 -0
 - data/app/views/json_ui/garage/views/maps.json.jbuilder +0 -0
 - metadata +1 -1
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 0b8d44468bb10a4b5bd570d12d233ea3a0057be5e666466575204e7e445de360
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 3f9d79903871a7a8f59a786c637d42f7e33bba1dfccc8c652544201e9df77ae9
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 5dbedf4e29bc182bce5af77d0c9b392100e030a21fd8ed03dcd56bf1bb2c1c70f3f5d72cda358454e0058a88df16e1a2e83017bf983f42083c57da0f9187f1db
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 1d80db9408c05b6ce3a2a9356e0aa01aa3f6489276424543996f0f248afe2366b687fc3127c4eda8f3e336d92b3479c88225f619d69df7ed1c9b2c52e1f921db
         
     | 
| 
         @@ -1,23 +1,22 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            json.title 'Actions'
         
     | 
| 
       2 
2 
     | 
    
         | 
| 
       3 
     | 
    
         
            -
            json_ui_page json 
     | 
| 
       4 
     | 
    
         
            -
             
     | 
| 
      
 3 
     | 
    
         
            +
            page = json_ui_page json
         
     | 
| 
      
 4 
     | 
    
         
            +
            render "#{@path_prefix}/nav_menu", json: json, page: page, top_nav: true
         
     | 
| 
       5 
5 
     | 
    
         | 
| 
       6 
     | 
    
         
            -
             
     | 
| 
       7 
     | 
    
         
            -
             
     | 
| 
       8 
     | 
    
         
            -
             
     | 
| 
       9 
     | 
    
         
            -
             
     | 
| 
       10 
     | 
    
         
            -
             
     | 
| 
       11 
     | 
    
         
            -
             
     | 
| 
       12 
     | 
    
         
            -
             
     | 
| 
       13 
     | 
    
         
            -
             
     | 
| 
       14 
     | 
    
         
            -
             
     | 
| 
       15 
     | 
    
         
            -
             
     | 
| 
       16 
     | 
    
         
            -
             
     | 
| 
       17 
     | 
    
         
            -
             
     | 
| 
       18 
     | 
    
         
            -
             
     | 
| 
       19 
     | 
    
         
            -
             
     | 
| 
       20 
     | 
    
         
            -
             
     | 
| 
       21 
     | 
    
         
            -
             
     | 
| 
       22 
     | 
    
         
            -
             
     | 
| 
       23 
     | 
    
         
            -
            end
         
     | 
| 
      
 6 
     | 
    
         
            +
            page.list sections: [
         
     | 
| 
      
 7 
     | 
    
         
            +
              ->(section) do
         
     | 
| 
      
 8 
     | 
    
         
            +
                render "#{@path_prefix}/actions/reload", section: section
         
     | 
| 
      
 9 
     | 
    
         
            +
              end, ->(section) do
         
     | 
| 
      
 10 
     | 
    
         
            +
                render "#{@path_prefix}/actions/dialogs", section: section
         
     | 
| 
      
 11 
     | 
    
         
            +
              end, ->(section) do
         
     | 
| 
      
 12 
     | 
    
         
            +
                render "#{@path_prefix}/actions/snackbars", section: section
         
     | 
| 
      
 13 
     | 
    
         
            +
              end, ->(section) do
         
     | 
| 
      
 14 
     | 
    
         
            +
                render "#{@path_prefix}/actions/sheets", section: section
         
     | 
| 
      
 15 
     | 
    
         
            +
              end, ->(section) do
         
     | 
| 
      
 16 
     | 
    
         
            +
                render "#{@path_prefix}/actions/windows", section: section
         
     | 
| 
      
 17 
     | 
    
         
            +
              end, ->(section) do
         
     | 
| 
      
 18 
     | 
    
         
            +
                render "#{@path_prefix}/actions/timeouts", section: section
         
     | 
| 
      
 19 
     | 
    
         
            +
              end, ->(section) do
         
     | 
| 
      
 20 
     | 
    
         
            +
                render "#{@path_prefix}/actions/http", section: section
         
     | 
| 
      
 21 
     | 
    
         
            +
              end
         
     | 
| 
      
 22 
     | 
    
         
            +
            ]
         
     | 
| 
         @@ -1,22 +1,21 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            json.title 'Forms'
         
     | 
| 
       2 
2 
     | 
    
         | 
| 
       3 
     | 
    
         
            -
            json_ui_page json 
     | 
| 
       4 
     | 
    
         
            -
             
     | 
| 
      
 3 
     | 
    
         
            +
            page = json_ui_page json
         
     | 
| 
      
 4 
     | 
    
         
            +
            render "#{@path_prefix}/nav_menu", json: json, page: page
         
     | 
| 
       5 
5 
     | 
    
         | 
| 
       6 
     | 
    
         
            -
             
     | 
| 
       7 
     | 
    
         
            -
             
     | 
| 
       8 
     | 
    
         
            -
             
     | 
| 
      
 6 
     | 
    
         
            +
            page.form url: json_ui_garage_url(path: 'forms/basic_post'), method: 'post', padding: glib_json_padding_body, childViews: ->(form) do
         
     | 
| 
      
 7 
     | 
    
         
            +
              form.fields_text name: 'user[name]', width: 'matchParent', label: 'Name'
         
     | 
| 
      
 8 
     | 
    
         
            +
              form.fields_password name: 'user[password]', width: 'matchParent', label: 'Password'
         
     | 
| 
       9 
9 
     | 
    
         | 
| 
       10 
     | 
    
         
            -
             
     | 
| 
       11 
     | 
    
         
            -
             
     | 
| 
       12 
     | 
    
         
            -
             
     | 
| 
       13 
     | 
    
         
            -
             
     | 
| 
       14 
     | 
    
         
            -
                    end
         
     | 
| 
       15 
     | 
    
         
            -
                  end
         
     | 
| 
       16 
     | 
    
         
            -
                  split.right childViews: ->(right) do
         
     | 
| 
       17 
     | 
    
         
            -
                    # right.button text: 'Submit', onClick: ->(action) { action.forms_submit }
         
     | 
| 
       18 
     | 
    
         
            -
                    right.fields_submit text: 'Submit'
         
     | 
| 
      
 10 
     | 
    
         
            +
              form.panels_split width: 'matchParent', content: ->(split) do
         
     | 
| 
      
 11 
     | 
    
         
            +
                split.left childViews: ->(left) do
         
     | 
| 
      
 12 
     | 
    
         
            +
                  if params[:mode] == 'dialog'
         
     | 
| 
      
 13 
     | 
    
         
            +
                    left.button styleClass: 'link', text: 'cancel', onClick: ->(action) { action.dialogs_close }
         
     | 
| 
       19 
14 
     | 
    
         
             
                  end
         
     | 
| 
       20 
15 
     | 
    
         
             
                end
         
     | 
| 
      
 16 
     | 
    
         
            +
                split.right childViews: ->(right) do
         
     | 
| 
      
 17 
     | 
    
         
            +
                  # right.button text: 'Submit', onClick: ->(action) { action.forms_submit }
         
     | 
| 
      
 18 
     | 
    
         
            +
                  right.fields_submit text: 'Submit'
         
     | 
| 
      
 19 
     | 
    
         
            +
                end
         
     | 
| 
       21 
20 
     | 
    
         
             
              end
         
     | 
| 
       22 
21 
     | 
    
         
             
            end
         
     | 
| 
         @@ -1,44 +1,43 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            json.title 'Forms'
         
     | 
| 
       2 
2 
     | 
    
         | 
| 
       3 
     | 
    
         
            -
            json_ui_page json 
     | 
| 
       4 
     | 
    
         
            -
             
     | 
| 
       5 
     | 
    
         
            -
              
         
     | 
| 
       6 
     | 
    
         
            -
              page.scroll childViews: ->(scroll) do
         
     | 
| 
      
 3 
     | 
    
         
            +
            page = json_ui_page json
         
     | 
| 
      
 4 
     | 
    
         
            +
            render "#{@path_prefix}/nav_menu", json: json, page: page
         
     | 
| 
       7 
5 
     | 
    
         | 
| 
       8 
     | 
    
         
            -
             
     | 
| 
       9 
     | 
    
         
            -
             
     | 
| 
       10 
     | 
    
         
            -
             
     | 
| 
       11 
     | 
    
         
            -
             
     | 
| 
       12 
     | 
    
         
            -
             
     | 
| 
       13 
     | 
    
         
            -
             
     | 
| 
       14 
     | 
    
         
            -
             
     | 
| 
       15 
     | 
    
         
            -
                   
     | 
| 
      
 6 
     | 
    
         
            +
            page.scroll childViews: ->(scroll) do
         
     | 
| 
      
 7 
     | 
    
         
            +
             
     | 
| 
      
 8 
     | 
    
         
            +
              scroll.panels_form url: json_ui_garage_url(path: 'forms/generic_post'), method: 'post', padding: glib_json_padding_body, childViews: ->(form) do
         
     | 
| 
      
 9 
     | 
    
         
            +
                form.spacer height: 20
         
     | 
| 
      
 10 
     | 
    
         
            +
                form.h2 text: 'Check Group'
         
     | 
| 
      
 11 
     | 
    
         
            +
                form.fields_checkGroup name: 'user[skills][]', uncheckValue: 1, childViews: ->(group) do
         
     | 
| 
      
 12 
     | 
    
         
            +
                  form.fields_check value: 2, label: 'Game Development'
         
     | 
| 
      
 13 
     | 
    
         
            +
                  form.fields_check value: 3, label: 'Web Development'
         
     | 
| 
      
 14 
     | 
    
         
            +
                  form.fields_check value: 4, label: 'Mobile Development'
         
     | 
| 
      
 15 
     | 
    
         
            +
                end
         
     | 
| 
       16 
16 
     | 
    
         | 
| 
       17 
     | 
    
         
            -
             
     | 
| 
       18 
     | 
    
         
            -
             
     | 
| 
       19 
     | 
    
         
            -
             
     | 
| 
       20 
     | 
    
         
            -
             
     | 
| 
       21 
     | 
    
         
            -
             
     | 
| 
       22 
     | 
    
         
            -
             
     | 
| 
       23 
     | 
    
         
            -
             
     | 
| 
       24 
     | 
    
         
            -
             
     | 
| 
       25 
     | 
    
         
            -
             
     | 
| 
       26 
     | 
    
         
            -
             
     | 
| 
       27 
     | 
    
         
            -
                    end
         
     | 
| 
      
 17 
     | 
    
         
            +
                form.spacer height: 20
         
     | 
| 
      
 18 
     | 
    
         
            +
                form.h2 text: 'Rating'
         
     | 
| 
      
 19 
     | 
    
         
            +
                form.spacer height: 6
         
     | 
| 
      
 20 
     | 
    
         
            +
                form.fields_radioGroup name: 'user[rating1][]', iconOfSelected: 'star', iconOfBeforeSelected: 'star', iconOfAfterSelected: 'star_border', childViews: ->(panel) do
         
     | 
| 
      
 21 
     | 
    
         
            +
                  panel.panels_horizontal childViews: ->(panel) do
         
     | 
| 
      
 22 
     | 
    
         
            +
                    panel.fields_radio value: 1
         
     | 
| 
      
 23 
     | 
    
         
            +
                    panel.fields_radio value: 2
         
     | 
| 
      
 24 
     | 
    
         
            +
                    panel.fields_radio value: 3
         
     | 
| 
      
 25 
     | 
    
         
            +
                    panel.fields_radio value: 4
         
     | 
| 
      
 26 
     | 
    
         
            +
                    panel.fields_radio value: 5
         
     | 
| 
       28 
27 
     | 
    
         
             
                  end
         
     | 
| 
       29 
     | 
    
         
            -
             
     | 
| 
       30 
     | 
    
         
            -
             
     | 
| 
       31 
     | 
    
         
            -
             
     | 
| 
       32 
     | 
    
         
            -
             
     | 
| 
       33 
     | 
    
         
            -
             
     | 
| 
       34 
     | 
    
         
            -
             
     | 
| 
       35 
     | 
    
         
            -
             
     | 
| 
       36 
     | 
    
         
            -
                     
     | 
| 
      
 28 
     | 
    
         
            +
                end
         
     | 
| 
      
 29 
     | 
    
         
            +
                form.fields_radioGroup name: 'user[rating2][]', iconOfSelected: 'star', iconOfBeforeSelected: 'star', iconOfAfterSelected: 'star_border', value: 1, childViews: ->(panel) do
         
     | 
| 
      
 30 
     | 
    
         
            +
                  panel.panels_horizontal childViews: ->(panel) do
         
     | 
| 
      
 31 
     | 
    
         
            +
                    panel.fields_radio value: 1
         
     | 
| 
      
 32 
     | 
    
         
            +
                    panel.fields_radio value: 2
         
     | 
| 
      
 33 
     | 
    
         
            +
                    panel.fields_radio value: 3
         
     | 
| 
      
 34 
     | 
    
         
            +
                    panel.fields_radio value: 4
         
     | 
| 
      
 35 
     | 
    
         
            +
                    panel.fields_radio value: 5
         
     | 
| 
       37 
36 
     | 
    
         
             
                  end
         
     | 
| 
       38 
     | 
    
         
            -
              
         
     | 
| 
       39 
     | 
    
         
            -
                  form.spacer height: 20
         
     | 
| 
       40 
     | 
    
         
            -
                  form.button text: 'Submit', onClick: ->(action) { action.forms_submit }
         
     | 
| 
       41 
37 
     | 
    
         
             
                end
         
     | 
| 
       42 
     | 
    
         
            -
             
     | 
| 
      
 38 
     | 
    
         
            +
             
     | 
| 
      
 39 
     | 
    
         
            +
                form.spacer height: 20
         
     | 
| 
      
 40 
     | 
    
         
            +
                form.button text: 'Submit', onClick: ->(action) { action.forms_submit }
         
     | 
| 
       43 
41 
     | 
    
         
             
              end
         
     | 
| 
      
 42 
     | 
    
         
            +
             
     | 
| 
       44 
43 
     | 
    
         
             
            end
         
     | 
| 
         @@ -24,12 +24,15 @@ json.pins do 
     | 
|
| 
       24 
24 
     | 
    
         
             
                { lat: -42.734358, lng: 147.501315 },
         
     | 
| 
       25 
25 
     | 
    
         
             
                { lat: -42.735258, lng: 147.438 },
         
     | 
| 
       26 
26 
     | 
    
         
             
                { lat: -43.999792, lng: 170.463352 },
         
     | 
| 
      
 27 
     | 
    
         
            +
                { lat: 49.003109, lng: 108.490479, size: 3500000 },
         
     | 
| 
      
 28 
     | 
    
         
            +
                { lat: -6.611423, lng: 141.922091, size: 3700 },
         
     | 
| 
       27 
29 
     | 
    
         
             
              ];
         
     | 
| 
       28 
30 
     | 
    
         | 
| 
       29 
31 
     | 
    
         
             
              locations.each do |location|
         
     | 
| 
       30 
32 
     | 
    
         
             
                json.child! do
         
     | 
| 
       31 
33 
     | 
    
         
             
                  json.latitude location[:lat]
         
     | 
| 
       32 
34 
     | 
    
         
             
                  json.longitude location[:lng]
         
     | 
| 
      
 35 
     | 
    
         
            +
                  json.clusterSize location[:size]
         
     | 
| 
       33 
36 
     | 
    
         
             
                  json.infoWindow do
         
     | 
| 
       34 
37 
     | 
    
         
             
                    json.title "TEST #{rand(1000)}"
         
     | 
| 
       35 
38 
     | 
    
         
             
                  end
         
     | 
| 
         
            File without changes
         
     |