glib-web 4.11.3 → 4.11.4

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.
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/action_builder/sheets.rb +0 -0
  6. data/app/helpers/glib/json_ui/analytics_helper.rb +0 -0
  7. data/app/helpers/glib/json_ui/generic_builders.rb +0 -0
  8. data/app/models/glib/active_storage/attachment.rb +0 -0
  9. data/app/models/glib/active_storage/blob.rb +0 -0
  10. data/app/models/glib/dynamic_text_record.rb +0 -0
  11. data/app/models/glib/text.rb +0 -0
  12. data/app/validators/email_typo_validator.rb +0 -0
  13. data/app/validators/email_validator.rb +0 -0
  14. data/app/validators/url_validator.rb +0 -0
  15. data/app/views/json_ui/garage/actions/dialogs_oauth_post.json.jbuilder +0 -0
  16. data/app/views/json_ui/garage/forms/bulk_edit_post.json.jbuilder +0 -0
  17. data/app/views/json_ui/garage/forms/dynamic_group.json.jbuilder +51 -44
  18. data/app/views/json_ui/garage/forms/dynamic_select_data.json.jbuilder +0 -0
  19. data/app/views/json_ui/garage/forms/generic_post.json.jbuilder +0 -0
  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/icons.json.jbuilder +31 -3
  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: 909f15289f876cff26ef1f742d864fd58291b7e2b775ada6a946bd9d0335e5f6
4
- data.tar.gz: 4de45fc74a77622b05d3cd957d00c3af2f625948b3f82c48e050f951a3f8049e
3
+ metadata.gz: c6425e97b504cd239d61b88d1ca636fbb5da75d6ccc9bd72ed75905fb3d3d83f
4
+ data.tar.gz: a93a58d86b0a593a6b7ba5dd8fd9c0156754273317fd1844e182d1f2984ae61a
5
5
  SHA512:
6
- metadata.gz: 72e7c7106e83e247cba86d588ecbdfec6e67eeb4831009b88c1d008771bcbea319d1a5f3db8f910eca9a8d84ca72cb87528828f944dee6775630945cca7208e6
7
- data.tar.gz: f4543608557ee088e0271b856bb50d0e61096837daf2bda6f9c84b968921e5855659fbd857bad33585adc23b69ef22a0dc362aa2c0f68629ea7536595a3fc777
6
+ metadata.gz: 930d634554a8c80295757893b9eb5996d05469906673860ff3dac26705772bd453c52242c2e89ee37fb4e1565900a18c079ef4e86717828a681d6de42b7177d4
7
+ data.tar.gz: 174d1ec5746418db41d5f419d66147285d772e3f239706593966cbfb802bdb4b5dd855b21758d10ec30b64a898cb4f700cf0904ce880547812167baf29a7cb19
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
@@ -28,67 +28,74 @@ page.form url: json_ui_garage_url(path: 'forms/generic_post'), method: 'post', p
28
28
  template.fields_text width: 'matchParent', name: 'question', label: 'Question', placeholder: 'Question'
29
29
 
30
30
  form.panels_responsive id: 'responsive_{{entry_index}}', childViews: ->(column) do
31
- options = [:rating, :yes_no, :choices]
32
- template.fields_select \
33
- width: 'matchParent',
34
- name: 'type',
35
- label: 'Answer Type',
36
- placeholder: 'Answer Type',
37
- options: options.map { |o| { text: o.to_s.humanize, value: o } },
38
- onChangeAndLoad: ->(action) do
39
- action.runMultiple childActions: ->(multiple) do
40
- multiple.logics_set \
41
- cacheData: true, # This is so that the the new data is retained when the `dynamicGroup` gets re-rendered.
42
- debug: true,
43
- targetId: 'responsive_{{entry_index}}', dataBuilder: ->(set) do
44
- set.panels_responsive width: 'matchParent', accessory: ->(accessory) do
45
- accessory.footer childViews: ->(footer) do
46
- footer.fields_check \
47
- width: 'matchParent',
48
- id: 'check_{{entry_index}}',
49
- name: 'enabled',
50
- label: 'Enable',
51
- checkValue: true
31
+ options = [:rating, :yes_no, :choices]
32
+ template.fields_select \
33
+ width: 'matchParent',
34
+ name: 'type',
35
+ label: 'Answer Type',
36
+ placeholder: 'Answer Type',
37
+ options: options.map { |o| { text: o.to_s.humanize, value: o } },
38
+ onChangeAndLoad: ->(action) do
39
+ action.runMultiple childActions: ->(multiple) do
40
+ multiple.logics_set \
41
+ cacheData: true, # This is so that the the new data is retained when the `dynamicGroup` gets re-rendered.
42
+ debug: true,
43
+ targetId: 'responsive_{{entry_index}}', dataBuilder: ->(set) do
44
+ set.panels_responsive width: 'matchParent', accessory: ->(accessory) do
45
+ accessory.footer childViews: ->(footer) do
46
+ footer.fields_check \
47
+ width: 'matchParent',
48
+ id: 'check_{{entry_index}}',
49
+ name: 'enabled',
50
+ label: 'Enable',
51
+ checkValue: true
52
52
 
53
- footer.panels_split width: 'matchParent', content: ->(split) do
54
- split.right childViews: ->(right) do
55
- right.label text: 'This should be right-aligned'
53
+ footer.panels_split width: 'matchParent', content: ->(split) do
54
+ split.right childViews: ->(right) do
55
+ right.label text: 'This should be right-aligned'
56
+ end
56
57
  end
57
58
  end
58
59
  end
59
- end
60
- end, onSet: ->(subaction) do
61
- subaction.logics_set \
62
- targetId: 'check_{{entry_index}}',
63
- conditionalData: {
64
- value: {
65
- "==": [{ "var": 'user[evaluation][{{entry_index}}][type]' }, 'rating']
60
+ end, onSet: ->(subaction) do
61
+ subaction.logics_set \
62
+ targetId: 'check_{{entry_index}}',
63
+ conditionalData: {
64
+ value: {
65
+ "==": [{ "var": 'user[evaluation][{{entry_index}}][type]' }, 'rating']
66
+ }
66
67
  }
67
- }
68
- end
68
+ end
69
69
 
70
- multiple.logics_set \
71
- targetId: 'choices_panel',
72
- debug: true,
73
- conditionalData: {
74
- displayed: {
75
- "==": [{ "var": 'user[evaluation][{{entry_index}}][type]' }, 'choices']
70
+ multiple.logics_set \
71
+ targetId: 'choices_panel_{{entry_index}}',
72
+ debug: true,
73
+ conditionalData: {
74
+ displayed: {
75
+ "==": [{ "var": 'user[evaluation][{{entry_index}}][type]' }, 'choices']
76
+ }
76
77
  }
77
- }
78
+ end
78
79
  end
79
- end
80
80
  end, accessory: ->(accessory) do
81
81
  accessory.footer childViews: ->(footer) do
82
82
 
83
83
  end
84
84
  end
85
85
 
86
- template.panels_vertical id: 'choices_panel', childViews: ->(vertical) do
86
+ template.panels_vertical id: 'choices_panel_{{entry_index}}', childViews: ->(vertical) do
87
87
  (1..5).each do |i|
88
88
  vertical.fields_text \
89
+ id: "input_choice_{{entry_index}}_#{i}",
89
90
  width: 'matchParent',
90
- name: "choices[#{i}]",
91
- label: "Choice #{i}"
91
+ name: "choices_#{i}",
92
+ label: "Choice #{i}",
93
+ displayed: i <= 1,
94
+ onChange: ->(action) do
95
+ action.logics_set targetId: "input_choice_{{entry_index}}_#{i + 1}", conditionalData: {
96
+ displayed: { "isPresent": [{ "var": "user[evaluation][{{entry_index}}][choices_#{i}]" }] }
97
+ }
98
+ end
92
99
  end
93
100
  end
94
101
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -3,14 +3,28 @@ json.title 'Views'
3
3
  page = json_ui_page json
4
4
  render "#{@path_prefix}/nav_menu", json: json, page: page
5
5
 
6
- page.scroll padding: glib_json_padding_body, childViews: ->(scroll) do
6
+ page.form padding: glib_json_padding_body, childViews: ->(scroll) do
7
7
  scroll.h2 text: 'Icon'
8
8
  # scroll.icon spec: { name: 'home' }
9
9
  scroll.icon name: 'home'
10
10
 
11
11
  scroll.spacer height: 20
12
12
  scroll.h2 text: 'Icon with color'
13
- scroll.icon name: 'home', color: '#9370DB'
13
+ scroll.fields_select \
14
+ name: 'input_icon',
15
+ value: 'verified',
16
+ options: ['pending', 'verified', 'cancel'].map { |icon_name| { text: icon_name, value: icon_name } }
17
+ scroll.button text: 'update', onClick: ->(action) do
18
+ action.logics_set \
19
+ targetId: 'icon1',
20
+ conditionalData: {
21
+ 'material.name': { "var": 'input_icon' }
22
+ },
23
+ data: {
24
+ 'tooltip.text': 'TEST123'
25
+ }
26
+ end
27
+ scroll.icon id: 'icon1', name: 'home', color: '#9370DB'
14
28
  scroll.icon name: 'home', color: '#9370DB80'
15
29
 
16
30
  scroll.spacer height: 20
@@ -19,5 +33,19 @@ page.scroll padding: glib_json_padding_body, childViews: ->(scroll) do
19
33
 
20
34
  scroll.spacer height: 20
21
35
  scroll.h2 text: 'Icon with styleClasses'
22
- scroll.icon name: 'home', styleClasses: ['small']
36
+ scroll.icon id: 'icon2', name: 'home', styleClasses: ['small']
37
+
38
+ scroll.button text: 'Hide icon', onClick: ->(action) do
39
+ action.logics_set targetId: 'icon2', data: {
40
+ displayed: false
41
+ }
42
+ end
43
+
44
+ scroll.spacer height: 20
45
+ scroll.h2 text: 'Icon with onLoad'
46
+ scroll.icon id: 'icon3', name: 'home', onLoad: ->(action) do
47
+ action.logics_set targetId: 'icon3', data: {
48
+ 'material.name': 'info'
49
+ }
50
+ end
23
51
  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.11.3
4
+ version: 4.11.4
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: ''