glib-web 2.5.0 → 2.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (102) 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/forms_helper.rb +0 -0
  6. data/app/helpers/glib/json_ui/action_builder/sheets.rb +0 -0
  7. data/app/helpers/glib/json_ui/action_builder/snackbars.rb +0 -0
  8. data/app/helpers/glib/json_ui/analytics_helper.rb +0 -0
  9. data/app/helpers/glib/json_ui/generic_builders.rb +0 -0
  10. data/app/helpers/glib/json_ui/list_builders.rb +2 -4
  11. data/app/helpers/glib/json_ui/table_builders.rb +0 -0
  12. data/app/helpers/glib/json_ui/view_builder/fields.rb +2 -0
  13. data/app/helpers/glib/json_ui/view_builder/panels.rb +2 -0
  14. data/app/helpers/glib/urls_helper.rb +0 -0
  15. data/app/models/glib/active_storage/attachment.rb +0 -0
  16. data/app/models/glib/active_storage/blob.rb +0 -0
  17. data/app/models/glib/dynamic_text_record.rb +0 -0
  18. data/app/models/glib/text.rb +0 -0
  19. data/app/validators/email_typo_validator.rb +0 -0
  20. data/app/validators/email_validator.rb +0 -0
  21. data/app/validators/url_validator.rb +0 -0
  22. data/app/views/json_ui/garage/actions/_panels.json.jbuilder +0 -0
  23. data/app/views/json_ui/garage/actions/_reload.json.jbuilder +0 -0
  24. data/app/views/json_ui/garage/actions/_sheets.json.jbuilder +0 -0
  25. data/app/views/json_ui/garage/actions/_snackbars.json.jbuilder +0 -0
  26. data/app/views/json_ui/garage/actions/dialogs_oauth_post.json.jbuilder +0 -0
  27. data/app/views/json_ui/garage/forms/dynamic_group.json.jbuilder +0 -0
  28. data/app/views/json_ui/garage/forms/dynamic_select_data.json.jbuilder +0 -0
  29. data/app/views/json_ui/garage/forms/floating_submit.json.jbuilder +0 -0
  30. data/app/views/json_ui/garage/forms/generic_post.json.jbuilder +0 -0
  31. data/app/views/json_ui/garage/forms/selects.json.jbuilder +7 -1
  32. data/app/views/json_ui/garage/forms/submission_flow.json.jbuilder +0 -0
  33. data/app/views/json_ui/garage/forms/submission_flow_post.json.jbuilder +0 -0
  34. data/app/views/json_ui/garage/forms/submission_indicator.json.jbuilder +0 -0
  35. data/app/views/json_ui/garage/forms/submission_indicator_post.json.jbuilder +0 -0
  36. data/app/views/json_ui/garage/home/blank.json.jbuilder +0 -0
  37. data/app/views/json_ui/garage/home/slow.json.jbuilder +0 -0
  38. data/app/views/json_ui/garage/lists/_autoload_section.json.jbuilder +1 -3
  39. data/app/views/json_ui/garage/lists/autoload_all.json.jbuilder +0 -0
  40. data/app/views/json_ui/garage/lists/autoload_as_needed.json.jbuilder +0 -0
  41. data/app/views/json_ui/garage/lists/chat_ui.json.jbuilder +0 -0
  42. data/app/views/json_ui/garage/lists/fab.json.jbuilder +0 -0
  43. data/app/views/json_ui/garage/lists/reordering.json.jbuilder +7 -1
  44. data/app/views/json_ui/garage/lists/templating.json.jbuilder +16 -0
  45. data/app/views/json_ui/garage/notifications/web_socket.json.jbuilder +0 -0
  46. data/app/views/json_ui/garage/pages/custom_style_class.json.jbuilder +0 -0
  47. data/app/views/json_ui/garage/pages/full_width.json.jbuilder +0 -0
  48. data/app/views/json_ui/garage/pages/full_width_height.json.jbuilder +0 -0
  49. data/app/views/json_ui/garage/pages/index.json.jbuilder +0 -0
  50. data/app/views/json_ui/garage/pages/layout.json.jbuilder +0 -0
  51. data/app/views/json_ui/garage/pages/lifecycle_hooks.json.jbuilder +0 -0
  52. data/app/views/json_ui/garage/pages/loading_indicator.json.jbuilder +0 -0
  53. data/app/views/json_ui/garage/pages/nested_scroll.json.jbuilder +0 -0
  54. data/app/views/json_ui/garage/pages/redirect_onload.json.jbuilder +0 -0
  55. data/app/views/json_ui/garage/panels/_styled.json.jbuilder +0 -0
  56. data/app/views/json_ui/garage/panels/_timeline_content.json.jbuilder +0 -1
  57. data/app/views/json_ui/garage/panels/card.json.jbuilder +0 -0
  58. data/app/views/json_ui/garage/panels/custom.json.jbuilder +0 -0
  59. data/app/views/json_ui/garage/panels/horizontal.json.jbuilder +13 -0
  60. data/app/views/json_ui/garage/panels/outlined.json.jbuilder +0 -0
  61. data/app/views/json_ui/garage/panels/split.json.jbuilder +1 -1
  62. data/app/views/json_ui/garage/panels/ul.json.jbuilder +6 -3
  63. data/app/views/json_ui/garage/services/dynamic_text.json.jbuilder +0 -0
  64. data/app/views/json_ui/garage/services/image.json.jbuilder +0 -0
  65. data/app/views/json_ui/garage/services/index.json.jbuilder +0 -0
  66. data/app/views/json_ui/garage/tables/_autoload_section.json.jbuilder +0 -0
  67. data/app/views/json_ui/garage/tables/autoload_all.json.jbuilder +0 -0
  68. data/app/views/json_ui/garage/tables/autoload_as_needed.json.jbuilder +0 -0
  69. data/app/views/json_ui/garage/tables/export_import.json.jbuilder +0 -0
  70. data/app/views/json_ui/garage/tables/index.json.jbuilder +0 -0
  71. data/app/views/json_ui/garage/views/calendar_data.json.jbuilder +0 -0
  72. data/app/views/json_ui/garage/views/links.json.jbuilder +0 -0
  73. data/app/views/json_ui/garage/views/map_data.json.jbuilder +0 -0
  74. data/app/views/json_ui/garage/views/multimedia.json.jbuilder +0 -0
  75. data/config/routes.rb +0 -0
  76. data/lib/generators/glib/install_generator.rb +0 -0
  77. data/lib/generators/templates/20191017062519_create_texts.rb +0 -0
  78. data/lib/generators/templates/20191024063257_add_scope_to_texts.rb +0 -0
  79. data/lib/generators/templates/20191112095018_add_lang_to_texts.rb +0 -0
  80. data/lib/generators/templates/20191126071051_create_active_storage_tables.active_storage.rb +0 -0
  81. data/lib/generators/templates/database.yml +0 -0
  82. data/lib/generators/templates/dynamic_text.rb +0 -0
  83. data/lib/glib/crypt/utils.rb +0 -0
  84. data/lib/glib/crypt.rb +0 -0
  85. data/lib/glib/dynamic_text/config.rb +0 -0
  86. data/lib/glib/dynamic_text.rb +0 -0
  87. data/lib/glib/engine.rb +0 -0
  88. data/lib/glib/json_crawler/action_crawler.rb +0 -0
  89. data/lib/glib/json_crawler/action_crawlers/action_http.rb +0 -0
  90. data/lib/glib/json_crawler/action_crawlers/dialogs_alert.rb +0 -0
  91. data/lib/glib/json_crawler/action_crawlers/forms_submit.rb +0 -0
  92. data/lib/glib/json_crawler/action_crawlers/menu.rb +0 -0
  93. data/lib/glib/json_crawler/action_crawlers/run_multiple.rb +0 -0
  94. data/lib/glib/json_crawler/action_crawlers/windows_open.rb +0 -0
  95. data/lib/glib/json_crawler/coverage.rb +0 -0
  96. data/lib/glib/json_crawler.rb +0 -0
  97. data/lib/glib/mailer_tester.rb +0 -0
  98. data/lib/glib/value.rb +0 -0
  99. data/lib/glib/version.rb +0 -0
  100. data/lib/glib-web.rb +0 -0
  101. data/lib/tasks/db.rake +0 -0
  102. metadata +3 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: deb5d59ee387f197f53b7f3fa024db36aabb41cf5e81a0f477a7a5a867d1a679
4
- data.tar.gz: 910dece1f77237f42ca6fee5e9029f6f67aba38dc5a63383d8d1a29fa822d5b3
3
+ metadata.gz: f0d389754a1133b159974aeaa56aa3e4accfc8307b6b97cefbb2497fea7bfb8c
4
+ data.tar.gz: 13c62150593ffdfb6ff2777024e1bc87388084a4e44de0639de3ab8d88879f1e
5
5
  SHA512:
6
- metadata.gz: 195c5ec7f7835027d85b5f5fb90c8b78c1ebd92d450d6cb9559693fe428bbb17e47dd986bd77f8615857f9c89bf52b0c7e6c5848bb318c085c665a138184a7e0
7
- data.tar.gz: 8fc172c8e683c59858d6f3d2484576ea62282475b504bb05eb17fcca07eeadf993c7f7bc6de40ee45771555be6fa10d22aa08864c052b2593dc06c7dc373a050
6
+ metadata.gz: 2311300ae71398f14829508dc7ec1d99cc8de4d6747f11157dbbfcb92b81468212b5eeded5efa16c8956f40332366f3584fec2977ee8834872356c6de0c4b2ef
7
+ data.tar.gz: 5390d92bcb6e076141e17fca981a250a304f6fa9582e3bb6aab492a05d46027125c2a0bea8cc15a496cabbc8beb80dc60e1bb17f209c0bb92b84fd254ccdf57d
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -37,7 +37,7 @@ module Glib
37
37
  action :onLongPress
38
38
  icon :icon
39
39
  bool :avatar
40
- action :onReorder
40
+ # action :onReorder
41
41
  string :paramNameForFormData
42
42
  string :paramNameForNewAbsoluteIndex
43
43
  string :paramNameForNewSectionIndex
@@ -46,9 +46,7 @@ module Glib
46
46
  string :id # Deprecated
47
47
  string :paramNameForNewIndex # Deprecated
48
48
 
49
- # # NOTE: Experimental. Still deciding whether this needs to be a full blown panel or
50
- # # an array of badges (with relevant properties, e.g. text, color, etc)
51
- # views :accessoryViews
49
+ panels_builder :accessory, :header, :body, :footer
52
50
  end
53
51
 
54
52
  class Featured < Standard
File without changes
@@ -76,6 +76,7 @@ class Glib::JsonUi::ViewBuilder
76
76
  class Text < AbstractField
77
77
  int :maxLength
78
78
  icon :leftIcon
79
+ icon :rightIcon
79
80
  string :leftText
80
81
  string :rightText
81
82
  action :onTypeStart
@@ -114,6 +115,7 @@ class Glib::JsonUi::ViewBuilder
114
115
  class Submit < AbstractField
115
116
  string :text
116
117
  color :color
118
+ icon :icon
117
119
  end
118
120
 
119
121
  class CheckGroup < AbstractField
@@ -140,6 +140,7 @@ class Glib::JsonUi::ViewBuilder
140
140
  action :onScrollToBottom
141
141
 
142
142
  int :responsiveCols
143
+ hash :dragSupport
143
144
 
144
145
  def firstSection(block)
145
146
  json.sections [1] do
@@ -242,6 +243,7 @@ class Glib::JsonUi::ViewBuilder
242
243
  string :distribution
243
244
  string :align
244
245
  action :onClick
246
+ hash :dragSupport
245
247
  end
246
248
 
247
249
  class Flow < View
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -15,7 +15,13 @@ page.form url: json_ui_garage_url(path: 'forms/generic_post'), method: 'post', p
15
15
  'melbourne' => 'Melbourne',
16
16
  'sydney' => 'Sydney',
17
17
  }
18
- form.fields_select name: 'user[city]', width: 'matchParent', label: 'City', options: languages.map { |k, v| { value: k, text: v } }, value: 'canberra'
18
+ form.fields_select \
19
+ name: 'user[city]',
20
+ width: 'matchParent',
21
+ label: 'City1',
22
+ placeholder: 'This is a placeholder',
23
+ options: languages.map { |k, v| { value: k, text: v } },
24
+ value: 'canberra'
19
25
  form.fields_select name: 'user[cities][]', width: 'matchParent', label: 'Cities', options: languages.map { |k, v| { value: k, text: v } }, value: ['melbourne', 'sydney'], multiple: true
20
26
 
21
27
  form.spacer height: 20
File without changes
File without changes
@@ -11,9 +11,7 @@ section.rows builder: ->(row) do
11
11
  array.each do |i|
12
12
  index = page_index * batch_count + i
13
13
  if local_assigns[:reorder]
14
- row.thumbnail title: "Item #{index}", onReorder: ->(action) do
15
- action.dialogs_notification title: "Item #{index}"
16
- end, paramNameForFormData: 'message', paramNameForNewIndex: 'new_index'
14
+ row.thumbnail title: "Item #{index}"
17
15
  else
18
16
  row.thumbnail title: "Item #{index}", subtitle: "Sub Item #{index}", subsubtitle: "Sub Sub Item #{index}"
19
17
  end
File without changes
File without changes
@@ -30,5 +30,11 @@ else
30
30
  end
31
31
  render 'json_ui/garage/lists/autoload_section', page: page, page_index: page_index, reorder: true
32
32
  end
33
- ]
33
+ ], dragSupport: {
34
+ onDrop: {
35
+ action: 'dialogs/alert'
36
+ },
37
+ paramNameForFormData: 'message',
38
+ paramNameForNewIndex: 'new_index'
39
+ }
34
40
  end
@@ -11,6 +11,22 @@ json_ui_page json do |page|
11
11
  section.rows builder: ->(template) do
12
12
  template.thumbnail title: 'Click me', onClick: ->(action) do
13
13
  action.windows_open url: json_ui_garage_url(path: 'home/blank')
14
+ end,
15
+ accessory: ->(accessory) do
16
+ accessory.header \
17
+ width: 'matchParent',
18
+ backgroundColor: '#b3bac2',
19
+ padding: { top: 10, bottom: 10, left: 10, right: 10 },
20
+ childViews: ->(bottom) do
21
+ bottom.label text: 'Custom row header'
22
+ end
23
+ accessory.footer \
24
+ width: 'matchParent',
25
+ backgroundColor: '#b3bac2',
26
+ padding: { top: 10, bottom: 10, left: 10, right: 10 },
27
+ childViews: ->(bottom) do
28
+ bottom.label text: 'Custom row footer'
29
+ end
14
30
  end
15
31
  template.thumbnail title: 'Item with icon and subtitle', subtitle: 'Item subtitle', icon: 'facebook'
16
32
  template.thumbnail title: 'Item with chips', chips: ->(menu) do
File without changes
File without changes
@@ -1,7 +1,6 @@
1
1
  progress = params[:progress]&.to_i&.between?(0, 5) ? params[:progress].to_i : 0
2
2
 
3
3
  tview.panels_responsive \
4
- width: 400,
5
4
  childViews: ->(res) do
6
5
  res.panels_column sm: { cols: 11 }, childViews: ->(subcolumn) do
7
6
  subcolumn.panels_column sm: { cols: 2, padding: { right: 10 } }, childViews: ->(inner_column) do
File without changes
File without changes
@@ -127,6 +127,19 @@ json_ui_page json do |page|
127
127
  action.windows_open url: json_ui_garage_url(path: 'home/blank')
128
128
  end
129
129
 
130
+ scroll.spacer height: 20
131
+ scroll.h1 text: 'Drag-and-drop support'
132
+ scroll.panels_horizontal backgroundColor: '#b3bac2', width: 300, distribution: 'spaceEqually', childViews: ->(panel) do
133
+ panel.button id: 'button1', text: '1'
134
+ panel.button id: 'button2', text: '2'
135
+ panel.button id: 'button3', text: '3'
136
+ end, dragSupport: {
137
+ onDrop: {
138
+ action: 'dialogs/alert',
139
+ },
140
+ paramNameForFormData: 'message'
141
+ }
142
+
130
143
  scroll.label text: "\n"
131
144
  end
132
145
  end
@@ -72,7 +72,7 @@ json_ui_page json do |page|
72
72
  left.button text: '1'
73
73
  end
74
74
  content.center childViews: ->(center) do
75
- center.label text: 'a very very very very very very very very very very very very very very very very very very very very very very very very very very very very long text'
75
+ center.label text: 'a very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very long text'
76
76
  end
77
77
  content.right childViews: ->(right) do
78
78
  right.button text: '2'
@@ -26,7 +26,7 @@ page.scroll padding: glib_json_padding_body, childViews: ->(scroll) do
26
26
  end
27
27
 
28
28
  scroll.spacer height: 14
29
- scroll.h2 text: 'Breadcrumbs'
29
+ scroll.h2 text: 'Breadcrumbs (experimental)'
30
30
  scroll.spacer height: 6
31
31
  scroll.panels_ul \
32
32
  width: 'matchParent',
@@ -37,8 +37,11 @@ page.scroll padding: glib_json_padding_body, childViews: ->(scroll) do
37
37
  ul.button text: 'Level 1', styleClass: 'link', onClick: ->(action) do
38
38
  action.windows_open url: json_ui_garage_url(path: 'home/blank')
39
39
  end
40
- ul.button text: 'Level 2', styleClass: 'link', onClick: ->(action) do
41
- action.windows_open url: json_ui_garage_url(path: 'home/blank')
40
+
41
+ ul.button icon: 'keyboard_arrow_down', text: 'Level 2', styleClass: 'link', childButtons: ->(menu) do
42
+ menu.button text: 'Dropdown item 1'
43
+ menu.button text: 'Dropdown item 2'
44
+ menu.button text: 'Dropdown item 3'
42
45
  end
43
46
  ul.label text: 'Level 3'
44
47
  end
File without changes
File without changes
data/config/routes.rb CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
data/lib/glib/crypt.rb CHANGED
File without changes
File without changes
File without changes
data/lib/glib/engine.rb CHANGED
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
data/lib/glib-web.rb CHANGED
File without changes
data/lib/tasks/db.rake 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: 2.5.0
4
+ version: 2.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''
@@ -313,7 +313,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
313
313
  - !ruby/object:Gem::Version
314
314
  version: '0'
315
315
  requirements: []
316
- rubygems_version: 3.1.6
316
+ rubyforge_project:
317
+ rubygems_version: 2.7.6
317
318
  signing_key:
318
319
  specification_version: 4
319
320
  summary: ''