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.
Files changed (73) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/concerns/glib/json/new_dynamic_text.rb +0 -0
  3. data/app/helpers/glib/app_feature_support_helper.rb +0 -0
  4. data/app/helpers/glib/dynamic_texts_helper.rb +0 -0
  5. data/app/helpers/glib/json_ui/abstract_builder.rb +1 -1
  6. data/app/helpers/glib/json_ui/action_builder/popovers.rb +2 -2
  7. data/app/helpers/glib/json_ui/analytics_helper.rb +0 -0
  8. data/app/helpers/glib/json_ui/generic_builders.rb +0 -0
  9. data/app/models/glib/active_storage/attachment.rb +0 -0
  10. data/app/models/glib/active_storage/blob.rb +0 -0
  11. data/app/models/glib/dynamic_text_record.rb +0 -0
  12. data/app/models/glib/text.rb +0 -0
  13. data/app/validators/email_typo_validator.rb +0 -0
  14. data/app/validators/email_validator.rb +0 -0
  15. data/app/validators/url_validator.rb +0 -0
  16. data/app/views/json_ui/garage/actions/dialogs_oauth_post.json.jbuilder +0 -0
  17. data/app/views/json_ui/garage/forms/bulk_edit_post.json.jbuilder +0 -0
  18. data/app/views/json_ui/garage/forms/generic_post.json.jbuilder +0 -0
  19. data/app/views/json_ui/garage/forms/show_hide.json.jbuilder +4 -4
  20. data/app/views/json_ui/garage/forms/submission_flow.json.jbuilder +0 -0
  21. data/app/views/json_ui/garage/forms/submission_flow_post.json.jbuilder +0 -0
  22. data/app/views/json_ui/garage/forms/submission_indicator.json.jbuilder +0 -0
  23. data/app/views/json_ui/garage/forms/submission_indicator_post.json.jbuilder +0 -0
  24. data/app/views/json_ui/garage/home/blank.json.jbuilder +0 -0
  25. data/app/views/json_ui/garage/home/slow.json.jbuilder +0 -0
  26. data/app/views/json_ui/garage/lists/autoload_all.json.jbuilder +0 -0
  27. data/app/views/json_ui/garage/lists/autoload_as_needed.json.jbuilder +0 -0
  28. data/app/views/json_ui/garage/lists/chat_ui.json.jbuilder +0 -0
  29. data/app/views/json_ui/garage/lists/fab.json.jbuilder +0 -0
  30. data/app/views/json_ui/garage/notifications/web_socket.json.jbuilder +0 -0
  31. data/app/views/json_ui/garage/pages/custom_style_class.json.jbuilder +0 -0
  32. data/app/views/json_ui/garage/pages/full_width.json.jbuilder +0 -0
  33. data/app/views/json_ui/garage/pages/full_width_height.json.jbuilder +0 -0
  34. data/app/views/json_ui/garage/pages/layout.json.jbuilder +0 -0
  35. data/app/views/json_ui/garage/pages/loading_indicator.json.jbuilder +0 -0
  36. data/app/views/json_ui/garage/pages/nested_scroll.json.jbuilder +0 -0
  37. data/app/views/json_ui/garage/pages/redirect_onload.json.jbuilder +0 -0
  38. data/app/views/json_ui/garage/panels/_styled.json.jbuilder +0 -0
  39. data/app/views/json_ui/garage/panels/card.json.jbuilder +0 -0
  40. data/app/views/json_ui/garage/panels/custom.json.jbuilder +0 -0
  41. data/app/views/json_ui/garage/panels/outlined.json.jbuilder +0 -0
  42. data/app/views/json_ui/garage/services/dynamic_text.json.jbuilder +0 -0
  43. data/app/views/json_ui/garage/services/image.json.jbuilder +0 -0
  44. data/app/views/json_ui/garage/services/index.json.jbuilder +0 -0
  45. data/app/views/json_ui/garage/tables/_autoload_section.json.jbuilder +0 -0
  46. data/app/views/json_ui/garage/tables/autoload_all.json.jbuilder +0 -0
  47. data/app/views/json_ui/garage/tables/autoload_as_needed.json.jbuilder +0 -0
  48. data/app/views/json_ui/garage/tables/export_import.json.jbuilder +0 -0
  49. data/app/views/json_ui/garage/tables/index.json.jbuilder +0 -0
  50. data/app/views/json_ui/garage/views/calendar_data.json.jbuilder +0 -0
  51. data/app/views/json_ui/garage/views/controls.json.jbuilder +27 -9
  52. data/app/views/json_ui/garage/views/map_data.json.jbuilder +0 -0
  53. data/app/views/json_ui/garage/views/multimedia.json.jbuilder +0 -0
  54. data/app/views/layouts/json_ui/no_custom.html.erb +0 -0
  55. data/lib/generators/glib/install_generator.rb +0 -0
  56. data/lib/generators/templates/20191017062519_create_texts.rb +0 -0
  57. data/lib/generators/templates/20191024063257_add_scope_to_texts.rb +0 -0
  58. data/lib/generators/templates/20191112095018_add_lang_to_texts.rb +0 -0
  59. data/lib/generators/templates/20191126071051_create_active_storage_tables.active_storage.rb +0 -0
  60. data/lib/generators/templates/database.yml +0 -0
  61. data/lib/generators/templates/dynamic_text.rb +0 -0
  62. data/lib/glib/dynamic_text/config.rb +0 -0
  63. data/lib/glib/dynamic_text.rb +0 -0
  64. data/lib/glib/json_crawler/action_crawler.rb +0 -0
  65. data/lib/glib/json_crawler/action_crawlers/action_http.rb +0 -0
  66. data/lib/glib/json_crawler/action_crawlers/dialogs_alert.rb +0 -0
  67. data/lib/glib/json_crawler/action_crawlers/menu.rb +0 -0
  68. data/lib/glib/json_crawler/action_crawlers/run_multiple.rb +0 -0
  69. data/lib/glib/json_crawler/action_crawlers/windows_open.rb +0 -0
  70. data/lib/glib/json_crawler/coverage.rb +0 -0
  71. data/lib/glib/value.rb +0 -0
  72. data/lib/glib/version.rb +0 -0
  73. metadata +3 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 873643856c8f5b10c09c843e46207ecac1c053adf7cf0e00663302a112f2e4c7
4
- data.tar.gz: 6e052b16d934acfeca10e8cd0ad621100a8f0ea9bbce7964a73cf4b38848ca26
3
+ metadata.gz: 4b09283a44453982b74ec17941ae1d9ba3d764beb0e5152671c25309c33b03ce
4
+ data.tar.gz: 67ccedb988fa1241b94224e4c0d452b002eec9056fb7b30cab761be68c59142b
5
5
  SHA512:
6
- metadata.gz: 1698cac156bda8914494aa76ed90c0bdf82411c57dc2ab6262aa85b8a819db1be2b8567ecc3ff72d84ca217132f5bc16b5eb2f1eca902aaf2a7fcee2d23778fa
7
- data.tar.gz: e1d9a080b6c5eed0a66a53aea657a54b2e66a9b0dfd973d127456fc29a426d6632cdcc836a7285fb66d5dbf01e78f9e1cb2132e3c964596a9ac7a220db8414b6
6
+ metadata.gz: ce53046753706806f836a5278bd5a94e4ff27ac6b8fc32ee397448ac9fd12f609e58cc9356d0cebad24ba10e273c7512c08d29dce6f9d2ecf9ba1e6c5e18a087
7
+ data.tar.gz: 7f3a889e5a39f51fc79d4b85c396b253546ddd705294b020caaf5c1b820f262d0a690b2e72a764b5398a50ed3842de5c2b347ff62a4a231b1baa7aed0915c29f
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].blank?
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
- bool :overlay
14
- # singleton_array :styleClass, :styleClasses
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
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
@@ -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
- overlay: true,
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 padding: glib_json_padding_body, childViews: ->(view) do
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: 'Item 3', styleClass: 'popover-menu-item', onClick: ->(saction) do
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: 'menu',
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: 'menu'
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: 'menu'
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: 'menu'
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
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.0
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
- rubygems_version: 3.4.6
406
+ rubyforge_project:
407
+ rubygems_version: 2.7.6
407
408
  signing_key:
408
409
  specification_version: 4
409
410
  summary: ''