glib-web 3.25.1 → 3.27.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/concerns/glib/json/new_dynamic_text.rb +0 -0
- data/app/controllers/glib/home_controller.rb +4 -0
- data/app/helpers/glib/app_feature_support_helper.rb +0 -0
- data/app/helpers/glib/dynamic_texts_helper.rb +0 -0
- data/app/helpers/glib/json_ui/action_builder/bottom_banners.rb +14 -0
- data/app/helpers/glib/json_ui/action_builder/global_states.rb +14 -0
- data/app/helpers/glib/json_ui/action_builder/sheets.rb +0 -0
- data/app/helpers/glib/json_ui/action_builder/snackbars.rb +1 -0
- data/app/helpers/glib/json_ui/action_builder.rb +1 -0
- data/app/helpers/glib/json_ui/analytics_helper.rb +0 -0
- data/app/helpers/glib/json_ui/builder/mouse_events.rb +2 -0
- data/app/helpers/glib/json_ui/generic_builders.rb +0 -0
- data/app/helpers/glib/json_ui/page_helper.rb +1 -0
- data/app/helpers/glib/json_ui/styling_helper.rb +0 -11
- data/app/helpers/glib/json_ui/view_builder/fields.rb +2 -0
- data/app/helpers/glib/json_ui/view_builder.rb +2 -1
- data/app/models/glib/active_storage/attachment.rb +0 -0
- data/app/models/glib/active_storage/blob.rb +0 -0
- data/app/models/glib/dynamic_text_record.rb +0 -0
- data/app/models/glib/text.rb +0 -0
- data/app/validators/email_typo_validator.rb +0 -0
- data/app/validators/email_validator.rb +0 -0
- data/app/validators/url_validator.rb +0 -0
- data/app/views/json_ui/garage/actions/_snackbars.json.jbuilder +8 -2
- data/app/views/json_ui/garage/actions/_windows.json.jbuilder +4 -4
- data/app/views/json_ui/garage/actions/dialogs_oauth_post.json.jbuilder +0 -0
- data/app/views/json_ui/garage/forms/dynamic_select_data.json.jbuilder +0 -0
- data/app/views/json_ui/garage/forms/generic_post.json.jbuilder +0 -0
- data/app/views/json_ui/garage/forms/submission_flow.json.jbuilder +0 -0
- data/app/views/json_ui/garage/forms/submission_flow_post.json.jbuilder +0 -0
- data/app/views/json_ui/garage/forms/submission_indicator.json.jbuilder +0 -0
- data/app/views/json_ui/garage/forms/submission_indicator_post.json.jbuilder +0 -0
- data/app/views/json_ui/garage/home/blank.json.jbuilder +0 -0
- data/app/views/json_ui/garage/home/slow.json.jbuilder +0 -0
- data/app/views/json_ui/garage/lists/autoload_all.json.jbuilder +0 -0
- data/app/views/json_ui/garage/lists/autoload_as_needed.json.jbuilder +0 -0
- data/app/views/json_ui/garage/lists/chat_ui.json.jbuilder +0 -0
- data/app/views/json_ui/garage/lists/fab.json.jbuilder +0 -0
- data/app/views/json_ui/garage/multistep_form/step1.json.jbuilder +15 -0
- data/app/views/json_ui/garage/multistep_form/step2.json.jbuilder +13 -0
- data/app/views/json_ui/garage/notifications/web_socket.json.jbuilder +0 -0
- data/app/views/json_ui/garage/pages/custom_style_class.json.jbuilder +0 -0
- data/app/views/json_ui/garage/pages/full_width.json.jbuilder +0 -0
- data/app/views/json_ui/garage/pages/full_width_height.json.jbuilder +0 -0
- data/app/views/json_ui/garage/pages/layout.json.jbuilder +0 -0
- data/app/views/json_ui/garage/pages/lifecycle_hooks.json.jbuilder +0 -0
- data/app/views/json_ui/garage/pages/loading_indicator.json.jbuilder +0 -0
- data/app/views/json_ui/garage/pages/nested_scroll.json.jbuilder +0 -0
- data/app/views/json_ui/garage/pages/redirect_onload.json.jbuilder +0 -0
- data/app/views/json_ui/garage/panels/_styled.json.jbuilder +0 -0
- data/app/views/json_ui/garage/panels/card.json.jbuilder +0 -0
- data/app/views/json_ui/garage/panels/custom.json.jbuilder +0 -0
- data/app/views/json_ui/garage/panels/outlined.json.jbuilder +0 -0
- data/app/views/json_ui/garage/services/dynamic_text.json.jbuilder +0 -0
- data/app/views/json_ui/garage/services/image.json.jbuilder +0 -0
- data/app/views/json_ui/garage/services/index.json.jbuilder +0 -0
- data/app/views/json_ui/garage/tables/_autoload_section.json.jbuilder +0 -0
- data/app/views/json_ui/garage/tables/autoload_all.json.jbuilder +0 -0
- data/app/views/json_ui/garage/tables/autoload_as_needed.json.jbuilder +0 -0
- data/app/views/json_ui/garage/tables/export_import.json.jbuilder +0 -0
- data/app/views/json_ui/garage/tables/index.json.jbuilder +0 -0
- data/app/views/json_ui/garage/views/calendar_data.json.jbuilder +0 -0
- data/app/views/json_ui/garage/views/charts.json.jbuilder +25 -7
- data/app/views/json_ui/garage/views/links.json.jbuilder +0 -0
- data/app/views/json_ui/garage/views/map_data.json.jbuilder +0 -0
- data/app/views/json_ui/garage/views/multimedia.json.jbuilder +0 -0
- data/app/views/layouts/json_ui/no_custom.html.erb +0 -0
- data/lib/generators/glib/install_generator.rb +0 -0
- data/lib/generators/templates/20191017062519_create_texts.rb +0 -0
- data/lib/generators/templates/20191024063257_add_scope_to_texts.rb +0 -0
- data/lib/generators/templates/20191112095018_add_lang_to_texts.rb +0 -0
- data/lib/generators/templates/20191126071051_create_active_storage_tables.active_storage.rb +0 -0
- data/lib/generators/templates/database.yml +0 -0
- data/lib/generators/templates/dynamic_text.rb +0 -0
- data/lib/glib/dynamic_text/config.rb +0 -0
- data/lib/glib/dynamic_text.rb +0 -0
- data/lib/glib/json_crawler/action_crawler.rb +0 -0
- data/lib/glib/json_crawler/action_crawlers/action_http.rb +0 -0
- data/lib/glib/json_crawler/action_crawlers/dialogs_alert.rb +0 -0
- data/lib/glib/json_crawler/action_crawlers/menu.rb +0 -0
- data/lib/glib/json_crawler/action_crawlers/run_multiple.rb +0 -0
- data/lib/glib/json_crawler/action_crawlers/windows_open.rb +0 -0
- data/lib/glib/json_crawler/coverage.rb +0 -0
- data/lib/glib/value.rb +0 -0
- data/lib/glib/version.rb +0 -0
- metadata +7 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce0abd2e16afb07a3fd1a273acc664bde10d9355fb66e5aec0e26cb1fc568e9f
|
4
|
+
data.tar.gz: e2c72cf8ff18e4ca3e711f8481a81fd7c03e5f3cea5b86da916bf6675a990af5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b82ab5f93bf800bd5436c05e7e7ea1e54d3a9bf269a3d691f8a8591c31ab785bf6ed6d22b2992a0dee1de87b6efcc65358aaf4ac2a7de9804f5c056d6e7053a
|
7
|
+
data.tar.gz: 594cfd8502b6d515bcab04423c8d327ffc5fddab9ce879d88f34a3ded04dcf500f77581f7865641b83877be90b2c5e29672a69e41888501f31de3b9569fc476b
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -50,17 +50,6 @@ module Glib
|
|
50
50
|
|
51
51
|
###
|
52
52
|
|
53
|
-
### Chart
|
54
|
-
|
55
|
-
def glib_chart_tooltip_template(options)
|
56
|
-
%{
|
57
|
-
<div style="border: 1px solid gray; border-radius: 6px;">
|
58
|
-
<div style="border-radius: 6px 6px 0 0; background-color: gray; padding: 4px; color: white;">#{options[:title]}</div>
|
59
|
-
<div style="border-radius: 0 0 6px 6px; background-color: white; padding: 4px" color: black;>#{options[:content]}</div>
|
60
|
-
</div>
|
61
|
-
}
|
62
|
-
end
|
63
|
-
|
64
53
|
end
|
65
54
|
end
|
66
55
|
end
|
@@ -331,6 +331,8 @@ class Glib::JsonUi::ViewBuilder
|
|
331
331
|
string :uploadTitle
|
332
332
|
string :uploadFailedText # deprecated
|
333
333
|
action :onFinishUpload
|
334
|
+
string :strategy # can be "delegate" or "dropUpload"
|
335
|
+
string :url # http post end point if you don't want to use onFinishUpload
|
334
336
|
|
335
337
|
required :accepts, :directUploadUrl
|
336
338
|
|
File without changes
|
File without changes
|
File without changes
|
data/app/models/glib/text.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -5,8 +5,14 @@ end
|
|
5
5
|
|
6
6
|
section.rows builder: ->(template) do
|
7
7
|
template.thumbnail title: 'snackbars/alert', onClick: ->(action) do
|
8
|
-
action.snackbars_alert message: 'This is an alert snackbar', onClose: ->(
|
9
|
-
|
8
|
+
action.snackbars_alert message: 'This is an alert snackbar. It closes automatically, so it should not display a close button.', onClose: ->(subaction) do
|
9
|
+
subaction.dialogs_alert message: 'Closed'
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
template.thumbnail title: 'snackbars/alert with no timeout', onClick: ->(action) do
|
14
|
+
action.snackbars_alert timeout: -1, message: 'This is a persistent alert snackbar', onClose: ->(subaction) do
|
15
|
+
subaction.dialogs_alert message: 'Closed'
|
10
16
|
end
|
11
17
|
end
|
12
18
|
|
@@ -9,16 +9,16 @@ section.rows builder: ->(template) do
|
|
9
9
|
subaction.dialogs_alert message: 'Previous window closed'
|
10
10
|
end
|
11
11
|
end
|
12
|
-
end
|
13
12
|
|
14
|
-
section.rows builder: ->(template) do
|
15
13
|
template.thumbnail title: 'windows/open', onClick: ->(action) do
|
16
14
|
action.windows_open url: json_ui_garage_url(path: 'home/blank')
|
17
15
|
end
|
18
|
-
end
|
19
16
|
|
20
|
-
section.rows builder: ->(template) do
|
21
17
|
template.thumbnail title: 'windows/openWeb', onClick: ->(action) do
|
22
18
|
action.windows_openWeb url: 'http://www.google.com'
|
23
19
|
end
|
20
|
+
|
21
|
+
template.thumbnail title: 'multistep form', onClick: ->(action) do
|
22
|
+
action.windows_open url: json_ui_garage_url(path: 'multistep_form/step1')
|
23
|
+
end
|
24
24
|
end
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,15 @@
|
|
1
|
+
json.title 'Multistep form'
|
2
|
+
|
3
|
+
page = json_ui_page json
|
4
|
+
|
5
|
+
render "#{@path_prefix}/nav_menu", json: json, page: page, top_nav: false
|
6
|
+
|
7
|
+
page.scroll padding: glib_json_padding_body, childViews: ->(scroll) do
|
8
|
+
scroll.p text: 'Go to next page without pushing state to history'
|
9
|
+
scroll.spacer height: 4
|
10
|
+
scroll.markdown text: '`action.windows_reload url: url`'
|
11
|
+
scroll.spacer height: 8
|
12
|
+
scroll.button text: 'Next', onClick: ->(action) do
|
13
|
+
action.windows_reload url: json_ui_garage_url(path: 'multistep_form/step2')
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
json.title 'Multistep form'
|
2
|
+
|
3
|
+
page = json_ui_page json
|
4
|
+
|
5
|
+
render "#{@path_prefix}/nav_menu", json: json, page: page, top_nav: false
|
6
|
+
|
7
|
+
page.scroll padding: glib_json_padding_body, childViews: ->(scroll) do
|
8
|
+
scroll.p text: 'Clicking browser back button will bring you to index page. Clicking button bellow will bring you to step 1'
|
9
|
+
scroll.spacer height: 8
|
10
|
+
scroll.button text: 'Back', onClick: ->(action) do
|
11
|
+
action.windows_reload url: json_ui_garage_url(path: 'multistep_form/step1')
|
12
|
+
end
|
13
|
+
end
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -75,15 +75,33 @@ else
|
|
75
75
|
'Mar' => 70,
|
76
76
|
'Apr' => 62,
|
77
77
|
}
|
78
|
-
prev = points['Jan']
|
79
78
|
|
79
|
+
prev = ''
|
80
|
+
json.points do
|
81
|
+
points.each do |k, v|
|
82
|
+
prev = points['Jan']
|
83
|
+
content = v >= prev ? "▲ #{v - prev}" : "▼ #{prev - v}"
|
84
|
+
json.child! do
|
85
|
+
json.x k
|
86
|
+
json.y v
|
87
|
+
json.tooltip do
|
88
|
+
json.childViews do
|
89
|
+
scroll.panels_responsive \
|
90
|
+
padding: { top: 8, right: 8, left: 8, bottom: 8 },
|
91
|
+
backgroundColor: '#EDE4E3',
|
92
|
+
styleClasses: ['rounded-corner'],
|
93
|
+
childViews: ->(sview) do
|
94
|
+
sview.label text: "Delta #{k}", color: '#6C6A61'
|
95
|
+
sview.spacer height: 4
|
96
|
+
sview.label text: content, color: '#6C6A61'
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|
100
|
+
prev = k
|
101
|
+
end
|
102
|
+
end
|
103
|
+
end
|
80
104
|
|
81
|
-
json.points points.map { |k, v|
|
82
|
-
delta = prev - v
|
83
|
-
tooltip = v < prev ? "<div>Delta</div><div>▼ #{delta}</div>" : "<div>Delta</div><div>▲ #{delta}</div>"
|
84
|
-
prev = v
|
85
|
-
{ x: k, y: v, tooltip: glib_chart_tooltip_template(title: "Summary #{k}", content: tooltip) }
|
86
|
-
}
|
87
105
|
end
|
88
106
|
]
|
89
107
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/lib/glib/dynamic_text.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/lib/glib/value.rb
CHANGED
File without changes
|
data/lib/glib/version.rb
CHANGED
File without changes
|
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.
|
4
|
+
version: 3.27.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ''
|
@@ -95,10 +95,12 @@ files:
|
|
95
95
|
- app/helpers/glib/forms_helper.rb
|
96
96
|
- app/helpers/glib/json_ui/abstract_builder.rb
|
97
97
|
- app/helpers/glib/json_ui/action_builder.rb
|
98
|
+
- app/helpers/glib/json_ui/action_builder/bottom_banners.rb
|
98
99
|
- app/helpers/glib/json_ui/action_builder/commands.rb
|
99
100
|
- app/helpers/glib/json_ui/action_builder/components.rb
|
100
101
|
- app/helpers/glib/json_ui/action_builder/dialogs.rb
|
101
102
|
- app/helpers/glib/json_ui/action_builder/fields.rb
|
103
|
+
- app/helpers/glib/json_ui/action_builder/global_states.rb
|
102
104
|
- app/helpers/glib/json_ui/action_builder/http.rb
|
103
105
|
- app/helpers/glib/json_ui/action_builder/iap.rb
|
104
106
|
- app/helpers/glib/json_ui/action_builder/panels.rb
|
@@ -221,6 +223,8 @@ files:
|
|
221
223
|
- app/views/json_ui/garage/lists/index.json.jbuilder
|
222
224
|
- app/views/json_ui/garage/lists/reordering.json.jbuilder
|
223
225
|
- app/views/json_ui/garage/lists/templating.json.jbuilder
|
226
|
+
- app/views/json_ui/garage/multistep_form/step1.json.jbuilder
|
227
|
+
- app/views/json_ui/garage/multistep_form/step2.json.jbuilder
|
224
228
|
- app/views/json_ui/garage/notifications/action_cable.json.jbuilder
|
225
229
|
- app/views/json_ui/garage/notifications/android_post.json.jbuilder
|
226
230
|
- app/views/json_ui/garage/notifications/index.json.jbuilder
|
@@ -346,7 +350,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
346
350
|
- !ruby/object:Gem::Version
|
347
351
|
version: '0'
|
348
352
|
requirements: []
|
349
|
-
|
353
|
+
rubyforge_project:
|
354
|
+
rubygems_version: 2.7.6
|
350
355
|
signing_key:
|
351
356
|
specification_version: 4
|
352
357
|
summary: ''
|