glib-web 4.15.0 → 4.15.1
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/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/abstract_builder.rb +1 -1
- data/app/helpers/glib/json_ui/action_builder/popovers.rb +2 -2
- data/app/helpers/glib/json_ui/analytics_helper.rb +0 -0
- data/app/helpers/glib/json_ui/generic_builders.rb +0 -0
- 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/dialogs_oauth_post.json.jbuilder +0 -0
- data/app/views/json_ui/garage/forms/bulk_edit_post.json.jbuilder +0 -0
- data/app/views/json_ui/garage/forms/generic_post.json.jbuilder +0 -0
- data/app/views/json_ui/garage/forms/show_hide.json.jbuilder +4 -4
- 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/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/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/controls.json.jbuilder +27 -9
- 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 +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4b09283a44453982b74ec17941ae1d9ba3d764beb0e5152671c25309c33b03ce
|
4
|
+
data.tar.gz: 67ccedb988fa1241b94224e4c0d452b002eec9056fb7b30cab761be68c59142b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce53046753706806f836a5278bd5a94e4ff27ac6b8fc32ee397448ac9fd12f609e58cc9356d0cebad24ba10e273c7512c08d29dce6f9d2ecf9ba1e6c5e18a087
|
7
|
+
data.tar.gz: 7f3a889e5a39f51fc79d4b85c396b253546ddd705294b020caaf5c1b820f262d0a690b2e72a764b5398a50ed3842de5c2b347ff62a4a231b1baa7aed0915c29f
|
File without changes
|
File without changes
|
File without changes
|
@@ -289,7 +289,7 @@ module Glib
|
|
289
289
|
optional = options[:optional] || []
|
290
290
|
|
291
291
|
required.each do |req|
|
292
|
-
raise ArgumentError, "Hash property: '#{req}' is required" if value[req.to_s].
|
292
|
+
raise ArgumentError, "Hash property: '#{req}' is required" if value[req.to_s].nil?
|
293
293
|
end
|
294
294
|
|
295
295
|
if optional.present?
|
@@ -10,8 +10,8 @@ class Glib::JsonUi::ActionBuilder
|
|
10
10
|
int :offset
|
11
11
|
int :width
|
12
12
|
bool :persistent
|
13
|
-
|
14
|
-
|
13
|
+
hash :overlay, required: [:closeOnFocus]
|
14
|
+
singleton_array :styleClass, :styleClasses
|
15
15
|
end
|
16
16
|
|
17
17
|
class Close < Action
|
File without changes
|
File without changes
|
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
|
File without changes
|
File without changes
|
File without changes
|
@@ -126,19 +126,19 @@ page.form \
|
|
126
126
|
end,
|
127
127
|
childViews: ->(group) do
|
128
128
|
group.panels_responsive width: 'matchParent', childViews: ->(res) do
|
129
|
-
|
130
|
-
res.panels_column width: 'matchParent', lg: { cols: 4 }, childViews: ->(column) do
|
129
|
+
res.panels_column width: 'matchParent', height: 'matchParent', lg: { cols: 4, padding: { x: 10 } }, childViews: ->(column) do
|
131
130
|
column.fields_radio\
|
132
131
|
width: 'matchParent',
|
132
|
+
height: 'matchParent',
|
133
133
|
value: 'yes', label: 'Yes', icon: { template: 'featured', name: 'edit', size: 40, color: '#d1d1d1' },
|
134
134
|
onClick: ->(action) do
|
135
135
|
action.windows_openWeb url: 'http://www.google.com'
|
136
136
|
end
|
137
137
|
end
|
138
|
-
res.panels_column width: 'matchParent', lg: { cols: 4 }, childViews: ->(column) do
|
138
|
+
res.panels_column width: 'matchParent', lg: { cols: 4, padding: { x: 10 } }, childViews: ->(column) do
|
139
139
|
column.fields_radio\
|
140
140
|
width: 'matchParent',
|
141
|
-
value: 'no', label: 'No',
|
141
|
+
value: 'no', label: 'No (very very very very very very very very very very very long description)',
|
142
142
|
image: { template: 'featured', url: 'https://cdn.pixabay.com/photo/2020/08/05/13/12/eco-5465432_1280.png', width: 80, height: 80 },
|
143
143
|
onClick: ->(action) do
|
144
144
|
action.windows_openWeb url: 'http://www.google.com'
|
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
|
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
|
@@ -4,7 +4,7 @@ page = json_ui_page json
|
|
4
4
|
render "#{@path_prefix}/nav_menu", json: json, page: page
|
5
5
|
|
6
6
|
page.scroll padding: glib_json_padding_body, childViews: ->(scroll) do
|
7
|
-
scroll.h2 text: 'Button'
|
7
|
+
scroll.h2 text: 'Button', id: 'button'
|
8
8
|
scroll.spacer height: 20
|
9
9
|
|
10
10
|
scroll.button text: 'Button', onClick: ->(action) do
|
@@ -34,10 +34,13 @@ page.scroll padding: glib_json_padding_body, childViews: ->(scroll) do
|
|
34
34
|
|
35
35
|
action.popovers_show \
|
36
36
|
key: 'menu',
|
37
|
-
|
37
|
+
targetId: '_self',
|
38
|
+
overlay: { closeOnFocus: false },
|
38
39
|
placement: 'left',
|
40
|
+
styleClass: 'popover-container',
|
41
|
+
offset: 24,
|
39
42
|
content: ->(dialog) do
|
40
|
-
dialog.body
|
43
|
+
dialog.body childViews: ->(view) do
|
41
44
|
view.panels_responsive styleClass: 'popover-menu', width: 200, childViews: ->(res) do
|
42
45
|
res.label text: 'Item 1', styleClass: 'popover-menu-item', onClick: ->(saction) do
|
43
46
|
saction.windows_open url: json_ui_garage_url(path: 'pages/index')
|
@@ -45,7 +48,7 @@ page.scroll padding: glib_json_padding_body, childViews: ->(scroll) do
|
|
45
48
|
res.label text: 'Item 2', styleClass: 'popover-menu-item', onClick: ->(saction) do
|
46
49
|
saction.windows_open url: json_ui_garage_url(path: 'home/blank')
|
47
50
|
end
|
48
|
-
res.label text: '
|
51
|
+
res.label text: 'close', styleClass: 'popover-menu-item', onClick: ->(saction) do
|
49
52
|
saction.popovers_close key: 'menu'
|
50
53
|
end
|
51
54
|
end
|
@@ -59,20 +62,19 @@ page.scroll padding: glib_json_padding_body, childViews: ->(scroll) do
|
|
59
62
|
tooltip: { text: 'Tooltip 1' },
|
60
63
|
onClick: ->(action) do
|
61
64
|
action.popovers_show \
|
62
|
-
key: '
|
65
|
+
key: 'menu2',
|
63
66
|
placement: 'bottom-start',
|
64
|
-
overlay: true,
|
65
67
|
width: 200,
|
66
68
|
content: ->(dialog) do
|
67
69
|
dialog.body styleClass: 'popover-menu', padding: glib_json_padding_body, childViews: ->(res) do
|
68
70
|
res.label text: 'Item 1', styleClass: 'popover-menu-item', onClick: ->(saction) do
|
69
|
-
saction.popovers_close key: '
|
71
|
+
saction.popovers_close key: 'menu2'
|
70
72
|
end
|
71
73
|
res.label text: 'Item 2', styleClass: 'popover-menu-item', onClick: ->(saction) do
|
72
|
-
saction.popovers_close key: '
|
74
|
+
saction.popovers_close key: 'menu2'
|
73
75
|
end
|
74
76
|
res.label text: 'Item 3 with very very very very very long name', styleClass: 'popover-menu-item', onClick: ->(saction) do
|
75
|
-
saction.popovers_close key: '
|
77
|
+
saction.popovers_close key: 'menu2'
|
76
78
|
end
|
77
79
|
end
|
78
80
|
end
|
@@ -127,5 +129,21 @@ page.scroll padding: glib_json_padding_body, childViews: ->(scroll) do
|
|
127
129
|
onDisabled: ->(action) do
|
128
130
|
action.dialogs_alert message: 'Disabled'
|
129
131
|
end
|
132
|
+
scroll.spacer height: 20
|
133
|
+
|
134
|
+
scroll.h2 text: 'Highlight'
|
135
|
+
scroll.button text: 'Highlight', onClick: ->(action) do
|
136
|
+
action.popovers_show \
|
137
|
+
targetId: 'button',
|
138
|
+
key: 'menu',
|
139
|
+
placement: 'right',
|
140
|
+
offset: 24,
|
141
|
+
overlay: { closeOnFocus: true },
|
142
|
+
content: ->(dialog) do
|
143
|
+
dialog.body padding: glib_json_padding_body, styleClass: 'popover-menu', childViews: ->(res) do
|
144
|
+
res.label text: 'Hello world'
|
145
|
+
end
|
146
|
+
end
|
147
|
+
end
|
130
148
|
|
131
149
|
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
|
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: 4.15.
|
4
|
+
version: 4.15.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ''
|
@@ -403,7 +403,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
403
403
|
- !ruby/object:Gem::Version
|
404
404
|
version: '0'
|
405
405
|
requirements: []
|
406
|
-
|
406
|
+
rubyforge_project:
|
407
|
+
rubygems_version: 2.7.6
|
407
408
|
signing_key:
|
408
409
|
specification_version: 4
|
409
410
|
summary: ''
|