glib-web 4.14.1 → 4.15.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (79) 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/action_builder/components.rb +2 -0
  6. data/app/helpers/glib/json_ui/action_builder/sheets.rb +12 -1
  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/helpers/glib/json_ui/page_helper.rb +1 -1
  10. data/app/helpers/glib/json_ui/view_builder/fields.rb +3 -2
  11. data/app/helpers/glib/json_ui/view_builder.rb +1 -0
  12. data/app/models/glib/active_storage/attachment.rb +0 -0
  13. data/app/models/glib/active_storage/blob.rb +0 -0
  14. data/app/models/glib/dynamic_text_record.rb +0 -0
  15. data/app/models/glib/text.rb +0 -0
  16. data/app/validators/email_typo_validator.rb +0 -0
  17. data/app/validators/email_validator.rb +0 -0
  18. data/app/validators/url_validator.rb +0 -0
  19. data/app/views/json_ui/garage/actions/_sheets.json.jbuilder +1 -1
  20. data/app/views/json_ui/garage/actions/dialogs_oauth_post.json.jbuilder +0 -0
  21. data/app/views/json_ui/garage/forms/bulk_edit_post.json.jbuilder +0 -0
  22. data/app/views/json_ui/garage/forms/checkboxes.json.jbuilder +1 -1
  23. data/app/views/json_ui/garage/forms/dynamic_group.json.jbuilder +16 -0
  24. data/app/views/json_ui/garage/forms/generic_post.json.jbuilder +0 -0
  25. data/app/views/json_ui/garage/forms/selects.json.jbuilder +18 -18
  26. data/app/views/json_ui/garage/forms/submission_flow.json.jbuilder +0 -0
  27. data/app/views/json_ui/garage/forms/submission_flow_post.json.jbuilder +0 -0
  28. data/app/views/json_ui/garage/forms/submission_indicator.json.jbuilder +0 -0
  29. data/app/views/json_ui/garage/forms/submission_indicator_post.json.jbuilder +0 -0
  30. data/app/views/json_ui/garage/home/blank.json.jbuilder +0 -0
  31. data/app/views/json_ui/garage/home/slow.json.jbuilder +0 -0
  32. data/app/views/json_ui/garage/lists/autoload_all.json.jbuilder +0 -0
  33. data/app/views/json_ui/garage/lists/autoload_as_needed.json.jbuilder +0 -0
  34. data/app/views/json_ui/garage/lists/chat_ui.json.jbuilder +0 -0
  35. data/app/views/json_ui/garage/lists/fab.json.jbuilder +0 -0
  36. data/app/views/json_ui/garage/notifications/web_socket.json.jbuilder +0 -0
  37. data/app/views/json_ui/garage/pages/custom_style_class.json.jbuilder +0 -0
  38. data/app/views/json_ui/garage/pages/full_width.json.jbuilder +0 -0
  39. data/app/views/json_ui/garage/pages/full_width_height.json.jbuilder +0 -0
  40. data/app/views/json_ui/garage/pages/layout.json.jbuilder +0 -0
  41. data/app/views/json_ui/garage/pages/loading_indicator.json.jbuilder +0 -0
  42. data/app/views/json_ui/garage/pages/nested_scroll.json.jbuilder +0 -0
  43. data/app/views/json_ui/garage/pages/redirect_onload.json.jbuilder +0 -0
  44. data/app/views/json_ui/garage/panels/_styled.json.jbuilder +0 -0
  45. data/app/views/json_ui/garage/panels/card.json.jbuilder +0 -0
  46. data/app/views/json_ui/garage/panels/custom.json.jbuilder +0 -0
  47. data/app/views/json_ui/garage/panels/outlined.json.jbuilder +0 -0
  48. data/app/views/json_ui/garage/services/dynamic_text.json.jbuilder +0 -0
  49. data/app/views/json_ui/garage/services/image.json.jbuilder +0 -0
  50. data/app/views/json_ui/garage/services/index.json.jbuilder +0 -0
  51. data/app/views/json_ui/garage/tables/_autoload_section.json.jbuilder +0 -0
  52. data/app/views/json_ui/garage/tables/autoload_all.json.jbuilder +0 -0
  53. data/app/views/json_ui/garage/tables/autoload_as_needed.json.jbuilder +0 -0
  54. data/app/views/json_ui/garage/tables/export_import.json.jbuilder +0 -0
  55. data/app/views/json_ui/garage/tables/index.json.jbuilder +0 -0
  56. data/app/views/json_ui/garage/tables/panel_content.json.jbuilder +1 -1
  57. data/app/views/json_ui/garage/views/calendar_data.json.jbuilder +0 -0
  58. data/app/views/json_ui/garage/views/map_data.json.jbuilder +0 -0
  59. data/app/views/json_ui/garage/views/multimedia.json.jbuilder +0 -0
  60. data/app/views/layouts/json_ui/no_custom.html.erb +0 -0
  61. data/lib/generators/glib/install_generator.rb +0 -0
  62. data/lib/generators/templates/20191017062519_create_texts.rb +0 -0
  63. data/lib/generators/templates/20191024063257_add_scope_to_texts.rb +0 -0
  64. data/lib/generators/templates/20191112095018_add_lang_to_texts.rb +0 -0
  65. data/lib/generators/templates/20191126071051_create_active_storage_tables.active_storage.rb +0 -0
  66. data/lib/generators/templates/database.yml +0 -0
  67. data/lib/generators/templates/dynamic_text.rb +0 -0
  68. data/lib/glib/dynamic_text/config.rb +0 -0
  69. data/lib/glib/dynamic_text.rb +0 -0
  70. data/lib/glib/json_crawler/action_crawler.rb +0 -0
  71. data/lib/glib/json_crawler/action_crawlers/action_http.rb +0 -0
  72. data/lib/glib/json_crawler/action_crawlers/dialogs_alert.rb +0 -0
  73. data/lib/glib/json_crawler/action_crawlers/menu.rb +0 -0
  74. data/lib/glib/json_crawler/action_crawlers/run_multiple.rb +0 -0
  75. data/lib/glib/json_crawler/action_crawlers/windows_open.rb +0 -0
  76. data/lib/glib/json_crawler/coverage.rb +0 -0
  77. data/lib/glib/value.rb +0 -0
  78. data/lib/glib/version.rb +0 -0
  79. metadata +2 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ea3a6a872d72ef4615ceccc100d875a9cbf21bee429fed02c205e0812089abbc
4
- data.tar.gz: 89b39a261fb479cfbf3a764d4c331ba585cfd58537625df9da8ac3cb2151c7cb
3
+ metadata.gz: 873643856c8f5b10c09c843e46207ecac1c053adf7cf0e00663302a112f2e4c7
4
+ data.tar.gz: 6e052b16d934acfeca10e8cd0ad621100a8f0ea9bbce7964a73cf4b38848ca26
5
5
  SHA512:
6
- metadata.gz: c0e4878546dcc84d715a073f1cbae6bee081b695f80cb880c7eac39fafeef0397c78afa37f61ad32bae15df86a93e871e350aca95f5cb318930be7acef43d2b0
7
- data.tar.gz: 873fde1069443f0b6965f52fa26c6b4503a7995818f60c83857c8e07379748b75b6416fb63487f2e55baa2937e1ab92354cf5ef4456a0961b42c9e1d4a0798bb
6
+ metadata.gz: 1698cac156bda8914494aa76ed90c0bdf82411c57dc2ab6262aa85b8a819db1be2b8567ecc3ff72d84ca217132f5bc16b5eb2f1eca902aaf2a7fcee2d23778fa
7
+ data.tar.gz: e1d9a080b6c5eed0a66a53aea657a54b2e66a9b0dfd973d127456fc29a426d6632cdcc836a7285fb66d5dbf01e78f9e1cb2132e3c964596a9ac7a220db8414b6
File without changes
File without changes
@@ -3,6 +3,8 @@ class Glib::JsonUi::ActionBuilder
3
3
  class Invoke < Action
4
4
  string :name
5
5
  hash :arguments
6
+ action :onTrue
7
+ action :onFalse
6
8
  end
7
9
 
8
10
  class Find < Action
@@ -3,13 +3,24 @@ class Glib::JsonUi::ActionBuilder
3
3
 
4
4
  class Select < Action
5
5
  string :message
6
- bool :overlay
6
+
7
+ def overlay(value)
8
+ @overlay = value
9
+ end
7
10
 
8
11
  def buttons(block)
9
12
  json.buttons do
10
13
  block.call page.menu_builder
11
14
  end
12
15
  end
16
+
17
+ def created
18
+ if @overlay.nil?
19
+ @overlay = true
20
+ end
21
+
22
+ json.overlay @overlay
23
+ end
13
24
  end
14
25
 
15
26
  end
File without changes
File without changes
@@ -169,7 +169,7 @@ module Glib
169
169
 
170
170
  def leftDrawer(options = {})
171
171
  json.leftDrawer do
172
- [:styleClasses, :backgroundColor].each do |name|
172
+ [:styleClasses, :backgroundColor, :drawerWidth].each do |name|
173
173
  if (value = options.delete(name))
174
174
  json.set! name, value
175
175
  end
@@ -12,6 +12,7 @@ class Glib::JsonUi::ViewBuilder
12
12
  action :onChangeAndLoad
13
13
  string :paramNameForFormData
14
14
  string :paramNameForFieldName
15
+ bool :rounded
15
16
 
16
17
  def default_url_options
17
18
  { only_path: true }
@@ -163,7 +164,7 @@ class Glib::JsonUi::ViewBuilder
163
164
  class CheckGroup < AbstractField
164
165
  views :childViews
165
166
  string :uncheckValue
166
- bool :watchNoneOfAbove
167
+ string :valueForDisableAll
167
168
  end
168
169
 
169
170
  class Check < Text
@@ -204,7 +205,7 @@ class Glib::JsonUi::ViewBuilder
204
205
 
205
206
  panels_builder :accessory, :header, :footer
206
207
  bool :clearable
207
- bool :watchNoneOfAbove
208
+ string :valueForDisableAll
208
209
  bool :prependSelectAll
209
210
  # bool :csvMode
210
211
 
@@ -320,6 +320,7 @@ module Glib
320
320
  int :value # from 0 to 100
321
321
  color :color
322
322
  string :text
323
+ bool :indeterminate
323
324
  end
324
325
 
325
326
  class ShareButton < View
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -5,7 +5,7 @@ end
5
5
 
6
6
  section.rows builder: ->(template) do
7
7
  template.thumbnail title: 'sheets/select', onClick: ->(action) do
8
- action.sheets_select overlay: true, message: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed rutrum vel nisi in pharetra. Aenean mollis feugiat elementum. Donec tempor arcu fringilla risus finibus cursus. Donec eleifend ex sit amet odio rutrum, vitae ornare nunc congue. In hac habitasse platea dictumst. Curabitur at velit et odio ornare vestibulum sit amet vitae ex. Proin tincidunt rutrum libero vitae tempus.', buttons: ->(menu) do
8
+ action.sheets_select message: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed rutrum vel nisi in pharetra. Aenean mollis feugiat elementum. Donec tempor arcu fringilla risus finibus cursus. Donec eleifend ex sit amet odio rutrum, vitae ornare nunc congue. In hac habitasse platea dictumst. Curabitur at velit et odio ornare vestibulum sit amet vitae ex. Proin tincidunt rutrum libero vitae tempus.', buttons: ->(menu) do
9
9
  menu.button text: 'Option1', onClick: ->(subaction) do
10
10
  subaction.dialogs_alert message: 'Option 1'
11
11
  end
@@ -47,7 +47,7 @@ page.scroll childViews: ->(scroll) do
47
47
  form.spacer height: 20
48
48
  form.h2 text: 'Checkboxes with none_of_above'
49
49
  form.fields_checkGroup \
50
- watchNoneOfAbove: true,
50
+ valueForDisableAll: 'none_of_above',
51
51
  name: 'user[favorite_fruits][]',
52
52
  value: 'grape',
53
53
  uncheckValue: 1,
@@ -16,15 +16,18 @@ page.form url: json_ui_garage_url(path: 'forms/generic_post'), method: 'post', p
16
16
  { name: 'question', value: 'Quality of work' },
17
17
  { name: 'type', value: 'rating' },
18
18
  { name: 'enabled', value: '1' },
19
+ { name: 'error_message', value: 'Wrong answer' }
19
20
  ],
20
21
  [
21
22
  { name: 'question', value: 'Satisfied?' },
22
23
  { name: 'type', value: 'yes_no' },
24
+ { name: 'error_message', value: 'Incompatible selection' }
23
25
  ]
24
26
  ]
25
27
  form.fields_dynamicGroup id: 'form_dynamic_group', width: 'matchParent', name: 'user[evaluation]', groupFieldProperties: properties, titlePrefix: 'Entry', content: ->(group) do
26
28
  group.template padding: { left: 32 }, childViews: ->(template) do
27
29
  template.spacer height: 10
30
+ template.fields_hidden name: 'error_message'
28
31
  template.fields_text width: 'matchParent', name: 'question', label: 'Question', placeholder: 'Question'
29
32
 
30
33
  form.panels_responsive id: 'responsive_{{entry_index}}', childViews: ->(column) do
@@ -84,6 +87,19 @@ page.form url: json_ui_garage_url(path: 'forms/generic_post'), method: 'post', p
84
87
  end
85
88
  end
86
89
 
90
+ template.icon \
91
+ id: 'error_icon_{{entry_index}}',
92
+ name: 'error',
93
+ onLoad: ->(action) do
94
+ action.logics_set debug: true, targetId: 'error_icon_{{entry_index}}', conditionalData: {
95
+ displayed: {
96
+ "!!": [
97
+ { 'var': '{{entry_prefix}}[error_message]' }
98
+ ]
99
+ },
100
+ 'tooltip.text': { 'var': '{{entry_prefix}}[error_message]' }
101
+ }
102
+ end
87
103
  template.panels_vertical id: 'choices_panel_{{entry_index}}', childViews: ->(vertical) do
88
104
  (1..5).each do |i|
89
105
  vertical.fields_text \
@@ -53,27 +53,27 @@ page.form url: json_ui_garage_url(path: 'forms/generic_post'), method: 'post', p
53
53
  options = languages.map { |k, v| { value: k, text: v } }
54
54
  options << { value: 'none_of_above', text: 'None of the above' }
55
55
  form.fields_select \
56
- watchNoneOfAbove: true,
57
- name: 'user[cities][]',
58
- width: 'matchParent',
59
- label: 'Cities',
60
- options: options,
61
- value: ['melbourne', 'sydney'],
62
- multiple: true,
63
- onChange: ->(action) do
64
- action.dialogs_alert message: 'Options selected'
65
- end
56
+ valueForDisableAll: 'none_of_above',
57
+ name: 'user[cities][]',
58
+ width: 'matchParent',
59
+ label: 'Cities',
60
+ options: options,
61
+ value: ['melbourne', 'sydney'],
62
+ multiple: true,
63
+ onChange: ->(action) do
64
+ action.dialogs_alert message: 'Options selected'
65
+ end
66
66
 
67
67
  form.spacer height: 6
68
68
  form.fields_select \
69
- watchNoneOfAbove: true,
70
- prependSelectAll: true,
71
- name: 'user[cities2][]',
72
- width: 'matchParent',
73
- label: 'Cities',
74
- options: options[0..-2],
75
- value: ['melbourne', 'sydney'],
76
- multiple: true
69
+ valueForDisableAll: 'none_of_above',
70
+ prependSelectAll: true,
71
+ name: 'user[cities2][]',
72
+ width: 'matchParent',
73
+ label: 'Cities',
74
+ options: options[0..-2],
75
+ value: ['melbourne', 'sydney'],
76
+ multiple: true
77
77
 
78
78
  form.spacer height: 20
79
79
  form.h2 text: 'Select fields with grouping'
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -29,7 +29,7 @@ page.scroll padding: glib_json_padding_body, childViews: ->(scroll) do
29
29
  header.label text: 'Unordered List'
30
30
  end
31
31
 
32
- items = [1, 2, 3]
32
+ items = [1]
33
33
  section.rows objects: items, builder: ->(row, item, index) do
34
34
  row.default colStyles: [{ width: 200, backgroundColor: '#eeeeee' }], cellViews: ->(cell) do
35
35
  cell.panels_horizontal childViews: ->(horizontal) do
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.14.1
4
+ version: 4.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''
@@ -403,8 +403,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
403
403
  - !ruby/object:Gem::Version
404
404
  version: '0'
405
405
  requirements: []
406
- rubyforge_project:
407
- rubygems_version: 2.7.6
406
+ rubygems_version: 3.4.6
408
407
  signing_key:
409
408
  specification_version: 4
410
409
  summary: ''