glib-web 4.16.0 → 4.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (77) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/concerns/glib/json/new_dynamic_text.rb +0 -0
  3. data/app/controllers/glib/home_controller.rb +2 -0
  4. data/app/helpers/glib/app_feature_support_helper.rb +0 -0
  5. data/app/helpers/glib/dynamic_texts_helper.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/helpers/glib/json_ui/view_builder/fields.rb +0 -2
  9. data/app/helpers/glib/json_ui/view_builder.rb +10 -0
  10. data/app/models/glib/active_storage/attachment.rb +0 -0
  11. data/app/models/glib/active_storage/blob.rb +0 -0
  12. data/app/models/glib/dynamic_text_record.rb +0 -0
  13. data/app/models/glib/text.rb +0 -0
  14. data/app/validators/email_typo_validator.rb +0 -0
  15. data/app/validators/email_validator.rb +0 -0
  16. data/app/validators/url_validator.rb +0 -0
  17. data/app/views/json_ui/garage/actions/dialogs_oauth_post.json.jbuilder +0 -0
  18. data/app/views/json_ui/garage/forms/bulk_edit_post.json.jbuilder +0 -0
  19. data/app/views/json_ui/garage/forms/dirty_prompt.json.jbuilder +0 -3
  20. data/app/views/json_ui/garage/forms/generic_post.json.jbuilder +0 -0
  21. data/app/views/json_ui/garage/forms/submission_flow.json.jbuilder +0 -0
  22. data/app/views/json_ui/garage/forms/submission_flow_post.json.jbuilder +0 -0
  23. data/app/views/json_ui/garage/forms/submission_indicator.json.jbuilder +0 -0
  24. data/app/views/json_ui/garage/forms/submission_indicator_post.json.jbuilder +0 -0
  25. data/app/views/json_ui/garage/home/blank.json.jbuilder +0 -0
  26. data/app/views/json_ui/garage/home/slow.json.jbuilder +0 -0
  27. data/app/views/json_ui/garage/lists/autoload_all.json.jbuilder +0 -0
  28. data/app/views/json_ui/garage/lists/autoload_as_needed.json.jbuilder +0 -0
  29. data/app/views/json_ui/garage/lists/chat_ui.json.jbuilder +0 -0
  30. data/app/views/json_ui/garage/lists/fab.json.jbuilder +0 -0
  31. data/app/views/json_ui/garage/notifications/web_socket.json.jbuilder +0 -0
  32. data/app/views/json_ui/garage/pages/custom_style_class.json.jbuilder +0 -0
  33. data/app/views/json_ui/garage/pages/full_width.json.jbuilder +0 -0
  34. data/app/views/json_ui/garage/pages/full_width_height.json.jbuilder +0 -0
  35. data/app/views/json_ui/garage/pages/layout.json.jbuilder +0 -0
  36. data/app/views/json_ui/garage/pages/loading_indicator.json.jbuilder +0 -0
  37. data/app/views/json_ui/garage/pages/nested_scroll.json.jbuilder +0 -0
  38. data/app/views/json_ui/garage/pages/redirect_onload.json.jbuilder +0 -0
  39. data/app/views/json_ui/garage/panels/_styled.json.jbuilder +0 -0
  40. data/app/views/json_ui/garage/panels/card.json.jbuilder +0 -0
  41. data/app/views/json_ui/garage/panels/custom.json.jbuilder +0 -0
  42. data/app/views/json_ui/garage/panels/outlined.json.jbuilder +0 -0
  43. data/app/views/json_ui/garage/services/dynamic_text.json.jbuilder +0 -0
  44. data/app/views/json_ui/garage/services/image.json.jbuilder +0 -0
  45. data/app/views/json_ui/garage/services/index.json.jbuilder +0 -0
  46. data/app/views/json_ui/garage/tables/_autoload_section.json.jbuilder +0 -0
  47. data/app/views/json_ui/garage/tables/autoload_all.json.jbuilder +0 -0
  48. data/app/views/json_ui/garage/tables/autoload_as_needed.json.jbuilder +0 -0
  49. data/app/views/json_ui/garage/tables/export_import.json.jbuilder +0 -0
  50. data/app/views/json_ui/garage/tables/index.json.jbuilder +0 -0
  51. data/app/views/json_ui/garage/test_page/_header.json.jbuilder +1 -1
  52. data/app/views/json_ui/garage/test_page/dirty_state.json.jbuilder +46 -0
  53. data/app/views/json_ui/garage/views/calendar_data.json.jbuilder +0 -0
  54. data/app/views/json_ui/garage/views/controls.json.jbuilder +3 -3
  55. data/app/views/json_ui/garage/views/map_data.json.jbuilder +0 -0
  56. data/app/views/json_ui/garage/views/multimedia.json.jbuilder +0 -0
  57. data/app/views/layouts/json_ui/no_custom.html.erb +0 -0
  58. data/lib/generators/glib/install_generator.rb +0 -0
  59. data/lib/generators/templates/20191017062519_create_texts.rb +0 -0
  60. data/lib/generators/templates/20191024063257_add_scope_to_texts.rb +0 -0
  61. data/lib/generators/templates/20191112095018_add_lang_to_texts.rb +0 -0
  62. data/lib/generators/templates/20191126071051_create_active_storage_tables.active_storage.rb +0 -0
  63. data/lib/generators/templates/database.yml +0 -0
  64. data/lib/generators/templates/dynamic_text.rb +0 -0
  65. data/lib/glib/dynamic_text/config.rb +0 -0
  66. data/lib/glib/dynamic_text.rb +0 -0
  67. data/lib/glib/json_crawler/action_crawler.rb +0 -0
  68. data/lib/glib/json_crawler/action_crawlers/action_http.rb +0 -0
  69. data/lib/glib/json_crawler/action_crawlers/dialogs_alert.rb +0 -0
  70. data/lib/glib/json_crawler/action_crawlers/menu.rb +0 -0
  71. data/lib/glib/json_crawler/action_crawlers/run_multiple.rb +0 -0
  72. data/lib/glib/json_crawler/action_crawlers/windows_open.rb +0 -0
  73. data/lib/glib/json_crawler/coverage.rb +0 -0
  74. data/lib/glib/value.rb +0 -0
  75. data/lib/glib/version.rb +0 -0
  76. metadata +3 -4
  77. data/app/views/json_ui/garage/forms/blank_get.json.jbuilder +0 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: abe3d2a42c86dbcd3164813a7a7361eaccf0c415e97469769192686076e850ec
4
- data.tar.gz: f910eab20e9e61d5de1fd3f11308e8d0c2ff78af09fcb7752e671cff1be34f7a
3
+ metadata.gz: ef11a5ce52461fa118abf8e4fbc32331d993b5377b0848d581d90839a8b593f9
4
+ data.tar.gz: 31526b9747c9db566b289279638d861c4a75c4ae918ad41d6cce14cf4ee49350
5
5
  SHA512:
6
- metadata.gz: 63f350f57eb8087f134c5c2eace7ceca9d92f0ddee46723425fac5899d6fcefb193620c99e69da7f82cfd55d46709aab493e67556bb3d9f24ce01c34858f6980
7
- data.tar.gz: 468f401cede2d610b6275a7a91bebe93d59d515369f0d1e18060991b1e1f9ba8b253eb54781a1f36ecb2ce884d734cc4e673d1933e36bb51924d989f63c97c62
6
+ metadata.gz: db769bbb2e4b7beabd4bc5f753e92eb962c4608eca2cd0646796b0e243e4fd2c15078af6d53e30f95a4179251a6b4f2a8cc58e4164584037863a448310d27833
7
+ data.tar.gz: 8e70533b7e2e64677284ccc85d635c147d01e796c502b89fb4dbf944258c53d07b9431a2597c07acb38f468eef8cd2b478c6fd8eb5e2ccc536cb8838fc81661d
@@ -15,6 +15,8 @@ module Glib
15
15
  @path_prefix = 'json_ui/garage'
16
16
 
17
17
  @__glib_head_code =<<-eos
18
+ <script type="text/javascript" src="https://js.stripe.com/v3/"></script>
19
+
18
20
  <style>
19
21
  .custom-container .pages-body > div > .panels-responsive {
20
22
  max-width: 800px;
File without changes
File without changes
File without changes
File without changes
@@ -202,8 +202,6 @@ class Glib::JsonUi::ViewBuilder
202
202
  bool :multiple, cache: true
203
203
  # bool :manualEntry
204
204
  icon :leftIcon
205
-
206
- # TODO: Change to appendIcon
207
205
  hash :append, optional: [:icon]
208
206
 
209
207
  panels_builder :accessory, :header, :footer
@@ -312,6 +312,16 @@ module Glib
312
312
  color :color
313
313
  color :backgroundColor
314
314
  bool :reversed
315
+
316
+ def rounded(value)
317
+ @rounded = value
318
+ end
319
+
320
+ def create
321
+ @rounded = true if @rounded.nil?
322
+
323
+ json.rounded @rounded
324
+ end
315
325
  end
316
326
 
317
327
  class ProgressCircle < View
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -11,9 +11,6 @@ page.form \
11
11
  method: 'post',
12
12
  padding: glib_json_padding_body,
13
13
  childViews: ->(form) do
14
- form.spacer height: 14
15
- form.label text: 'This page will not show a dirty prompt even when the form field content has changed'
16
- form.spacer height: 14
17
14
  form.h3 text: "Hello #{ data[:name] }"
18
15
  form.spacer height: 4
19
16
  form.fields_text name: 'user[dirty_check_enabled]', width: 'matchParent', label: 'Dirty check enabled'
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,4 +1,4 @@
1
- navs = ['form', 'dialog', 'form_dynamic', 'auto_validate', 'multiupload']
1
+ navs = ['form', 'dialog', 'form_dynamic', 'auto_validate', 'multiupload', 'dirty_state']
2
2
 
3
3
  view.panels_flow innerPadding: { bottom: 0 }, styleClass: 'align-right', width: 'matchParent', childViews: ->(res) do
4
4
  navs.each_with_index do |nav, index|
@@ -0,0 +1,46 @@
1
+
2
+
3
+ json.title 'Test Page (Dirty state)'
4
+
5
+ page = json_ui_page json
6
+
7
+ page.body childViews: ->(body) do
8
+ render 'json_ui/garage/test_page/header', view: body
9
+
10
+ body.panels_form padding: glib_json_padding_body, childViews: ->(form) do
11
+ form.h2 text: 'Dirty state'
12
+ form.spacer height: 8
13
+
14
+ form.fields_text name: 'user[dirty_check_disabled]', width: 'matchParent', label: 'Dirty check disabled', disableDirtyCheck: true
15
+ form.spacer height: 14
16
+
17
+ form.h3 text: 'Radio'
18
+ form.spacer height: 14
19
+ form.fields_radioGroup name: 'user[gender]', value: 'F', childViews: ->(group) do
20
+ group.fields_radio value: '', label: 'Unknown'
21
+ group.fields_radio value: 'M', label: 'Male'
22
+ group.fields_radio value: 'F', label: 'Female'
23
+ end
24
+
25
+ form.h3 text: 'Check group'
26
+ form.spacer height: 14
27
+ form.fields_check name: 'user[check][]', checkValue: 'choice1', label: 'choice1', value: 'choice2'
28
+ form.fields_check name: 'user[check][]', checkValue: 'choice2', label: 'choice2'
29
+ form.fields_check name: 'user[check][]', checkValue: 'choice2', label: 'choice3', value: 'choice2'
30
+
31
+ form.spacer height: 24
32
+ form.panels_split width: 'matchParent', content: ->(split) do
33
+ split.left childViews: ->(left) do
34
+ left.panels_horizontal height: 'matchParent', align: 'middle', childViews: ->(horizontal) do
35
+ horizontal.label text: 'Dialog Form', onClick: ->(action) do
36
+ action.dialogs_open url: json_ui_garage_url(path: 'forms/basic', mode: 'dialog')
37
+ end
38
+ end
39
+ end
40
+
41
+ split.right childViews: ->(right) do
42
+ right.fields_submit text: 'Submit'
43
+ end
44
+ end
45
+ end
46
+ end
@@ -42,11 +42,11 @@ page.scroll padding: glib_json_padding_body, childViews: ->(scroll) do
42
42
  content: ->(dialog) do
43
43
  dialog.body childViews: ->(view) do
44
44
  view.panels_responsive styleClass: 'popover-menu', width: 200, childViews: ->(res) do
45
- res.label text: 'Item 1', styleClass: 'popover-menu-item', onClick: ->(saction) do
45
+ res.label text: 'GOTO pages/index', styleClass: 'popover-menu-item', onClick: ->(saction) do
46
46
  saction.windows_open url: json_ui_garage_url(path: 'pages/index')
47
47
  end
48
- res.label text: 'Item 2', styleClass: 'popover-menu-item', onClick: ->(saction) do
49
- saction.windows_open url: json_ui_garage_url(path: 'home/blank')
48
+ res.label text: 'closeAllWithOpen', styleClass: 'popover-menu-item', onClick: ->(saction) do
49
+ saction.windows_closeAllWithOpen url: json_ui_garage_url(path: 'home/blank')
50
50
  end
51
51
  res.label text: 'close', styleClass: 'popover-menu-item', onClick: ->(saction) do
52
52
  saction.popovers_close key: 'menu'
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.16.0
4
+ version: 4.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''
@@ -203,7 +203,6 @@ files:
203
203
  - app/views/json_ui/garage/forms/_read_more_text.json.jbuilder
204
204
  - app/views/json_ui/garage/forms/basic.json.jbuilder
205
205
  - app/views/json_ui/garage/forms/basic_post.json.jbuilder
206
- - app/views/json_ui/garage/forms/blank_get.json.jbuilder
207
206
  - app/views/json_ui/garage/forms/bulk_edit_post.json.jbuilder
208
207
  - app/views/json_ui/garage/forms/bulk_edit_post2.json.jbuilder
209
208
  - app/views/json_ui/garage/forms/checkboxes.json.jbuilder
@@ -319,6 +318,7 @@ files:
319
318
  - app/views/json_ui/garage/test_page/auto_validate.json.jbuilder
320
319
  - app/views/json_ui/garage/test_page/dialog.json.jbuilder
321
320
  - app/views/json_ui/garage/test_page/dialog_open.json.jbuilder
321
+ - app/views/json_ui/garage/test_page/dirty_state.json.jbuilder
322
322
  - app/views/json_ui/garage/test_page/form.json.jbuilder
323
323
  - app/views/json_ui/garage/test_page/form_dynamic.json.jbuilder
324
324
  - app/views/json_ui/garage/test_page/multiupload.json.jbuilder
@@ -404,8 +404,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
404
404
  - !ruby/object:Gem::Version
405
405
  version: '0'
406
406
  requirements: []
407
- rubyforge_project:
408
- rubygems_version: 2.7.6
407
+ rubygems_version: 3.4.6
409
408
  signing_key:
410
409
  specification_version: 4
411
410
  summary: ''
@@ -1,8 +0,0 @@
1
- json_ui_response json do |action|
2
- action.logics_set targetId: 'heading', data: {
3
- text: "Dynamic Group #{DateTime.current.to_i}"
4
- }
5
- end
6
- # json_ui_response_with_view json do |action|
7
- # render 'form_response', action: action
8
- # end