glib-web 6.10.3 → 7.0.0.beta1

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 (87) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/concerns/glib/auth/policy.rb +1 -5
  3. data/app/helpers/glib/json_ui/action_builder/bottom_banners.rb +0 -1
  4. data/app/helpers/glib/json_ui/action_builder/components.rb +1 -16
  5. data/app/helpers/glib/json_ui/action_builder/logics.rb +1 -2
  6. data/app/helpers/glib/json_ui/action_builder/snackbars.rb +0 -16
  7. data/app/helpers/glib/json_ui/response_helper.rb +0 -12
  8. data/app/helpers/glib/json_ui/view_builder/fields.rb +4 -133
  9. data/app/views/json_ui/garage/actions/_components.json.jbuilder +2 -2
  10. data/app/views/json_ui/garage/forms/bulk_edit_post.json.jbuilder +1 -1
  11. data/app/views/json_ui/garage/forms/checkboxes.json.jbuilder +3 -3
  12. data/app/views/json_ui/garage/forms/selects.json.jbuilder +5 -5
  13. data/app/views/json_ui/garage/forms/update_options.json.jbuilder +1 -1
  14. data/app/views/json_ui/garage/panels/flow.json.jbuilder +6 -6
  15. data/app/views/json_ui/garage/panels/horizontal.json.jbuilder +10 -10
  16. data/app/views/json_ui/garage/panels/responsive.json.jbuilder +10 -10
  17. data/app/views/json_ui/garage/panels/ul.json.jbuilder +2 -2
  18. data/app/views/json_ui/garage/panels/vertical.json.jbuilder +10 -10
  19. data/app/views/json_ui/garage/tables/bulk_edit.json.jbuilder +8 -8
  20. data/app/views/json_ui/garage/test_page/_header.json.jbuilder +0 -1
  21. data/app/views/json_ui/garage/test_page/calendar.json.jbuilder +6 -6
  22. data/app/views/json_ui/garage/test_page/carousel.json.jbuilder +4 -4
  23. data/app/views/json_ui/garage/test_page/charts.json.jbuilder +4 -4
  24. data/app/views/json_ui/garage/test_page/column.json.jbuilder +3 -3
  25. data/app/views/json_ui/garage/test_page/components.json.jbuilder +7 -7
  26. data/app/views/json_ui/garage/test_page/custom.json.jbuilder +3 -3
  27. data/app/views/json_ui/garage/test_page/dialog.json.jbuilder +0 -21
  28. data/app/views/json_ui/garage/test_page/fields_creditCard.json.jbuilder +6 -6
  29. data/app/views/json_ui/garage/test_page/fields_date_time.json.jbuilder +8 -8
  30. data/app/views/json_ui/garage/test_page/fields_dynamicSelect.json.jbuilder +8 -8
  31. data/app/views/json_ui/garage/test_page/fields_location.json.jbuilder +6 -6
  32. data/app/views/json_ui/garage/test_page/fields_otp.json.jbuilder +8 -8
  33. data/app/views/json_ui/garage/test_page/fields_phone.json.jbuilder +9 -9
  34. data/app/views/json_ui/garage/test_page/fields_radio.json.jbuilder +4 -4
  35. data/app/views/json_ui/garage/test_page/fields_rating.json.jbuilder +10 -10
  36. data/app/views/json_ui/garage/test_page/fields_richText.json.jbuilder +10 -10
  37. data/app/views/json_ui/garage/test_page/fields_select.json.jbuilder +8 -8
  38. data/app/views/json_ui/garage/test_page/fields_sign.json.jbuilder +8 -56
  39. data/app/views/json_ui/garage/test_page/fields_stripeExternalAccount.json.jbuilder +6 -6
  40. data/app/views/json_ui/garage/test_page/fields_stripeToken.json.jbuilder +6 -6
  41. data/app/views/json_ui/garage/test_page/fields_text.json.jbuilder +5 -5
  42. data/app/views/json_ui/garage/test_page/fields_timer.json.jbuilder +6 -6
  43. data/app/views/json_ui/garage/test_page/flow.json.jbuilder +6 -6
  44. data/app/views/json_ui/garage/test_page/form.json.jbuilder +9 -9
  45. data/app/views/json_ui/garage/test_page/grid.json.jbuilder +4 -4
  46. data/app/views/json_ui/garage/test_page/horizontal.json.jbuilder +5 -5
  47. data/app/views/json_ui/garage/test_page/image.json.jbuilder +9 -9
  48. data/app/views/json_ui/garage/test_page/lifecycle.json.jbuilder +6 -6
  49. data/app/views/json_ui/garage/test_page/list.json.jbuilder +6 -6
  50. data/app/views/json_ui/garage/test_page/multimedia_docx.json.jbuilder +5 -5
  51. data/app/views/json_ui/garage/test_page/multimedia_video.json.jbuilder +6 -6
  52. data/app/views/json_ui/garage/test_page/pagination.json.jbuilder +6 -6
  53. data/app/views/json_ui/garage/test_page/panels_bulkEdit2.json.jbuilder +13 -13
  54. data/app/views/json_ui/garage/test_page/panels_bulkEdit3.json.jbuilder +1 -1
  55. data/app/views/json_ui/garage/test_page/progressCircle.json.jbuilder +8 -8
  56. data/app/views/json_ui/garage/test_page/responsive.json.jbuilder +4 -4
  57. data/app/views/json_ui/garage/test_page/scroll.json.jbuilder +5 -5
  58. data/app/views/json_ui/garage/test_page/split.json.jbuilder +1 -1
  59. data/app/views/json_ui/garage/test_page/table.json.jbuilder +5 -5
  60. data/app/views/json_ui/garage/test_page/timeline.json.jbuilder +5 -5
  61. data/app/views/json_ui/garage/test_page/ul.json.jbuilder +4 -4
  62. data/app/views/json_ui/garage/test_page/vertical.json.jbuilder +5 -5
  63. data/app/views/json_ui/garage/test_page/web.json.jbuilder +5 -5
  64. data/app/views/json_ui/garage/views/_expand_shrink_ex.json.jbuilder +4 -4
  65. data/app/views/json_ui/garage/views/controls.json.jbuilder +4 -4
  66. data/app/views/json_ui/garage/views/{components_set.json.jbuilder → logics_set.json.jbuilder} +2 -2
  67. data/lib/glib/engine.rb +0 -32
  68. data/lib/glib/json_crawler/router.rb +0 -24
  69. data/lib/glib/json_ui/config.rb +1 -1
  70. data/lib/glib/test/changed_files_rubocop.rb +55 -0
  71. data/lib/glib/test_helpers.rb +6 -9
  72. data/lib/glib-web.rb +2 -4
  73. metadata +5 -37
  74. data/app/controllers/concerns/glib/auth/token_authenticatable.rb +0 -37
  75. data/app/controllers/glib/api_controller.rb +0 -52
  76. data/app/jobs/glib/purge_unattached_job.rb +0 -32
  77. data/app/models/concerns/glib/snapshot_v2.rb +0 -485
  78. data/app/models/glib/model.rb +0 -40
  79. data/app/models/glib/plain_model.rb +0 -23
  80. data/app/models/snapshot_blob_reference.rb +0 -20
  81. data/app/views/json_ui/garage/test_page/fields_change_trigger.json.jbuilder +0 -128
  82. data/lib/generators/glib/snapshot_v2_generator.rb +0 -54
  83. data/lib/generators/templates/snapshot_v2/add_snapshot_v2_columns.rb +0 -18
  84. data/lib/generators/templates/snapshot_v2/create_snapshot_blob_references.rb +0 -10
  85. data/lib/glib/purge_unattached/config.rb +0 -38
  86. data/lib/glib/test/full_suite_rubocop.rb +0 -87
  87. data/lib/glib/test/rubocop_guards.rb +0 -42
@@ -14,14 +14,14 @@ page.body childViews: ->(body) do
14
14
  method: 'post',
15
15
  childViews: ->(form) do
16
16
  form.panels_flow innerPadding: { bottom: 0 }, width: 'matchParent', childViews: ->(hori) do
17
- hori.button text: 'components/set', onClick: ->(action) do
17
+ hori.button text: 'logics/set', onClick: ->(action) do
18
18
  action.runMultiple childActions: ->(saction) do
19
- saction.components_set targetId: 'textarea', data: { value: 'The quick brown fox jumps over the lazy dog' }
19
+ saction.logics_set targetId: 'textarea', data: { value: 'The quick brown fox jumps over the lazy dog' }
20
20
  new_options = [{ text: 'Option99', value: 'option99' }]
21
21
 
22
- saction.components_set targetId: 'select', data: { options: new_options, value: 'option99' }
22
+ saction.logics_set targetId: 'select', data: { options: new_options, value: 'option99' }
23
23
 
24
- saction.components_set targetId: 'chip_group', data: { options: new_options, value: 0 }
24
+ saction.logics_set targetId: 'chip_group', data: { options: new_options, value: 0 }
25
25
  end
26
26
  end
27
27
  hori.spacer width: 4
@@ -48,22 +48,22 @@ page.body childViews: ->(body) do
48
48
  hori.button text: 'hide select', onClick: ->(action) do
49
49
  action.runMultiple childActions: ->(saction) do
50
50
  ['select', 'select1', 'select2', 'select3'].each do |id|
51
- saction.components_set targetId: id, data: { displayed: false }
51
+ saction.logics_set targetId: id, data: { displayed: false }
52
52
  end
53
53
  end
54
54
  end
55
55
  hori.spacer height: 4
56
56
  hori.button text: 'hide jack', onClick: ->(action) do
57
57
  action.runMultiple childActions: ->(saction) do
58
- saction.components_set targetId: 'ver', data: { displayed: true }
59
- saction.components_set targetId: 'ver1', data: { displayed: false }
58
+ saction.logics_set targetId: 'ver', data: { displayed: true }
59
+ saction.logics_set targetId: 'ver1', data: { displayed: false }
60
60
  end
61
61
  end
62
62
  hori.spacer height: 4
63
63
  hori.button text: 'show jack', onClick: ->(action) do
64
64
  action.runMultiple childActions: ->(saction) do
65
- saction.components_set targetId: 'ver', data: { displayed: false }
66
- saction.components_set targetId: 'ver1', data: { displayed: true }
65
+ saction.logics_set targetId: 'ver', data: { displayed: false }
66
+ saction.logics_set targetId: 'ver1', data: { displayed: true }
67
67
  end
68
68
  end
69
69
  end
@@ -30,11 +30,11 @@ page.body childViews: ->(body) do
30
30
  res.spacer height: 8
31
31
  res.panels_flow innerPadding: { bottom: 0 }, childViews: ->(flow) do
32
32
  flow.button text: 'Small boxes', onClick: ->(action) do
33
- action.components_set targetId: 'grid_main', data: { boxMinWidth: 100, columnGap: 8, rowGap: 8 }
33
+ action.logics_set targetId: 'grid_main', data: { boxMinWidth: 100, columnGap: 8, rowGap: 8 }
34
34
  end
35
35
  flow.spacer width: 4
36
36
  flow.button text: 'Large boxes', onClick: ->(action) do
37
- action.components_set targetId: 'grid_main', data: { boxMinWidth: 180, columnGap: 16, rowGap: 16 }
37
+ action.logics_set targetId: 'grid_main', data: { boxMinWidth: 180, columnGap: 16, rowGap: 16 }
38
38
  end
39
39
  end
40
40
 
@@ -46,9 +46,9 @@ page.body childViews: ->(body) do
46
46
  res.label id: 'grid_action_status', text: 'Hover status: idle'
47
47
  res.spacer height: 6
48
48
  res.panels_grid width: 'matchParent', boxMinWidth: 120, columnGap: 8, rowGap: 8, onMouseEnter: ->(action) do
49
- action.components_set targetId: 'grid_action_status', data: { text: 'Hover status: entered' }
49
+ action.logics_set targetId: 'grid_action_status', data: { text: 'Hover status: entered' }
50
50
  end, onMouseLeave: ->(action) do
51
- action.components_set targetId: 'grid_action_status', data: { text: 'Hover status: left' }
51
+ action.logics_set targetId: 'grid_action_status', data: { text: 'Hover status: left' }
52
52
  end, childViews: ->(box) do
53
53
  (1..4).each do |index|
54
54
  box.panels_vertical height: 50, backgroundColor: '#e6e6e6', align: 'center', childViews: ->(panel) do
@@ -28,19 +28,19 @@ page.body childViews: ->(body) do
28
28
  res.spacer height: 8
29
29
  res.panels_flow innerPadding: { bottom: 0 }, childViews: ->(flow) do
30
30
  flow.button text: 'Fill equally', onClick: ->(action) do
31
- action.components_set targetId: 'horizontal_main', data: { width: 300, distribution: 'fillEqually' }
31
+ action.logics_set targetId: 'horizontal_main', data: { width: 300, distribution: 'fillEqually' }
32
32
  end
33
33
  flow.spacer width: 4
34
34
  flow.button text: 'Space equally', onClick: ->(action) do
35
- action.components_set targetId: 'horizontal_main', data: { width: 300, distribution: 'spaceEqually' }
35
+ action.logics_set targetId: 'horizontal_main', data: { width: 300, distribution: 'spaceEqually' }
36
36
  end
37
37
  flow.spacer width: 4
38
38
  flow.button text: 'Overlap 3', onClick: ->(action) do
39
- action.components_set targetId: 'horizontal_main', data: { distribution: 'overlap-3' }
39
+ action.logics_set targetId: 'horizontal_main', data: { distribution: 'overlap-3' }
40
40
  end
41
41
  flow.spacer width: 4
42
42
  flow.button text: 'Align middle', onClick: ->(action) do
43
- action.components_set targetId: 'horizontal_main', data: { align: 'middle' }
43
+ action.logics_set targetId: 'horizontal_main', data: { align: 'middle' }
44
44
  end
45
45
  end
46
46
 
@@ -52,7 +52,7 @@ page.body childViews: ->(body) do
52
52
  res.label id: 'horizontal_action_status', text: 'Click status: idle'
53
53
  res.spacer height: 6
54
54
  res.panels_horizontal width: 180, height: 60, align: 'middle', backgroundColor: '#e6e6e6', onClick: ->(action) do
55
- action.components_set targetId: 'horizontal_action_status', data: { text: 'Click status: clicked' }
55
+ action.logics_set targetId: 'horizontal_action_status', data: { text: 'Click status: clicked' }
56
56
  end, childViews: ->(panel) do
57
57
  panel.label text: 'Click panel'
58
58
  end
@@ -44,7 +44,7 @@ page.body(
44
44
  flow.button(
45
45
  text: 'Default',
46
46
  onClick: ->(action) do
47
- action.components_set(
47
+ action.logics_set(
48
48
  targetId: 'image_main',
49
49
  data: {
50
50
  width: 320,
@@ -61,7 +61,7 @@ page.body(
61
61
  flow.button(
62
62
  text: 'Crop square',
63
63
  onClick: ->(action) do
64
- action.components_set(
64
+ action.logics_set(
65
65
  targetId: 'image_main',
66
66
  data: { width: 160, height: 160, url: small_image_url, fit: :crop }
67
67
  )
@@ -71,7 +71,7 @@ page.body(
71
71
  flow.button(
72
72
  text: 'Full width',
73
73
  onClick: ->(action) do
74
- action.components_set(
74
+ action.logics_set(
75
75
  targetId: 'image_main',
76
76
  data: { width: 'matchParent', height: 220, url: glib_json_image_standard_url, fit: :clip }
77
77
  )
@@ -81,7 +81,7 @@ page.body(
81
81
  flow.button(
82
82
  text: 'Tall crop',
83
83
  onClick: ->(action) do
84
- action.components_set(
84
+ action.logics_set(
85
85
  targetId: 'image_main',
86
86
  data: { width: 200, height: 320, url: glib_json_image_standard_url, fit: :crop }
87
87
  )
@@ -91,7 +91,7 @@ page.body(
91
91
  flow.button(
92
92
  text: 'Height clip',
93
93
  onClick: ->(action) do
94
- action.components_set(
94
+ action.logics_set(
95
95
  targetId: 'image_main',
96
96
  data: { width: nil, height: 200, url: glib_json_image_standard_url, fit: :clip }
97
97
  )
@@ -101,7 +101,7 @@ page.body(
101
101
  flow.button(
102
102
  text: 'Height crop',
103
103
  onClick: ->(action) do
104
- action.components_set(
104
+ action.logics_set(
105
105
  targetId: 'image_main',
106
106
  data: { width: nil, height: 160, url: small_image_url, fit: :crop }
107
107
  )
@@ -123,7 +123,7 @@ page.body(
123
123
  flow.button(
124
124
  text: 'Show badge',
125
125
  onClick: ->(action) do
126
- action.components_set(
126
+ action.logics_set(
127
127
  targetId: 'image_main',
128
128
  data: { badge: { text: '3', backgroundColor: '#2B3A67' } }
129
129
  )
@@ -145,7 +145,7 @@ page.body(
145
145
  flow.button(
146
146
  text: 'Tiny thumbnail',
147
147
  onClick: ->(action) do
148
- action.components_set(
148
+ action.logics_set(
149
149
  targetId: 'image_main',
150
150
  data: { width: 64, height: 64, url: small_image_url, fit: :crop }
151
151
  )
@@ -155,7 +155,7 @@ page.body(
155
155
  flow.button(
156
156
  text: 'Restore size',
157
157
  onClick: ->(action) do
158
- action.components_set(
158
+ action.logics_set(
159
159
  targetId: 'image_main',
160
160
  data: { width: 320, height: 200, url: glib_json_image_standard_url, fit: :clip }
161
161
  )
@@ -23,10 +23,10 @@ page.body childViews: ->(body) do
23
23
  id: 'button',
24
24
  text: 'you should not see this',
25
25
  onLoad: ->(action) do
26
- action.components_set targetId: 'button', data: { text: 'onLoad' }
26
+ action.logics_set targetId: 'button', data: { text: 'onLoad' }
27
27
  end,
28
28
  onRerender: ->(action) do
29
- action.components_set targetId: 'button', data: { text: 'onRerender' }
29
+ action.logics_set targetId: 'button', data: { text: 'onRerender' }
30
30
  end
31
31
  res.spacer height: 8
32
32
  res.chip \
@@ -34,22 +34,22 @@ page.body childViews: ->(body) do
34
34
  text: 'hover me',
35
35
  tooltip: { text: 'you should not see this' },
36
36
  onLoad: ->(action) do
37
- action.components_set targetId: 'chip', data: { 'tooltip.text' => 'onLoad' }
37
+ action.logics_set targetId: 'chip', data: { 'tooltip.text' => 'onLoad' }
38
38
  end,
39
39
  onRerender: ->(action) do
40
- action.components_set targetId: 'chip', data: { 'tooltip.text' => 'onRerender' }
40
+ action.logics_set targetId: 'chip', data: { 'tooltip.text' => 'onRerender' }
41
41
  end
42
42
  res.spacer height: 8
43
43
  res.icon \
44
44
  id: 'icon',
45
45
  name: 'autorenew',
46
46
  onLoad: ->(action) do
47
- action.components_set targetId: 'icon', data: {
47
+ action.logics_set targetId: 'icon', data: {
48
48
  'material.name' => 'home'
49
49
  }
50
50
  end,
51
51
  onRerender: ->(action) do
52
- action.components_set targetId: 'icon', data: {
52
+ action.logics_set targetId: 'icon', data: {
53
53
  'material.name' => 'person'
54
54
  }
55
55
  end
@@ -37,28 +37,28 @@ page.body(
37
37
  flow.button(
38
38
  text: 'One column',
39
39
  onClick: ->(action) do
40
- action.components_set targetId: 'list_main', data: { responsiveCols: 1 }
40
+ action.logics_set targetId: 'list_main', data: { responsiveCols: 1 }
41
41
  end
42
42
  )
43
43
  flow.spacer width: 4
44
44
  flow.button(
45
45
  text: 'Three columns',
46
46
  onClick: ->(action) do
47
- action.components_set targetId: 'list_main', data: { responsiveCols: 3 }
47
+ action.logics_set targetId: 'list_main', data: { responsiveCols: 3 }
48
48
  end
49
49
  )
50
50
  flow.spacer width: 4
51
51
  flow.button(
52
52
  text: 'Card style',
53
53
  onClick: ->(action) do
54
- action.components_set targetId: 'list_main', data: { styleClasses: ['card'], padding: glib_json_padding_list }
54
+ action.logics_set targetId: 'list_main', data: { styleClasses: ['card'], padding: glib_json_padding_list }
55
55
  end
56
56
  )
57
57
  flow.spacer width: 4
58
58
  flow.button(
59
59
  text: 'Clear style',
60
60
  onClick: ->(action) do
61
- action.components_set targetId: 'list_main', data: { styleClasses: nil, padding: nil }
61
+ action.logics_set targetId: 'list_main', data: { styleClasses: nil, padding: nil }
62
62
  end
63
63
  )
64
64
  end
@@ -73,10 +73,10 @@ page.body(
73
73
  id: 'list_events',
74
74
  height: 180,
75
75
  onScrollToTop: ->(action) do
76
- action.components_set targetId: 'list_event_status', data: { text: 'Scroll events: top reached' }
76
+ action.logics_set targetId: 'list_event_status', data: { text: 'Scroll events: top reached' }
77
77
  end,
78
78
  onScrollToBottom: ->(action) do
79
- action.components_set targetId: 'list_event_status', data: { text: 'Scroll events: bottom reached' }
79
+ action.logics_set targetId: 'list_event_status', data: { text: 'Scroll events: bottom reached' }
80
80
  end,
81
81
  firstSection: ->(section) do
82
82
  section.rows(
@@ -42,7 +42,7 @@ page.body(
42
42
  flow.button(
43
43
  text: 'Sample',
44
44
  onClick: ->(action) do
45
- action.components_set(
45
+ action.logics_set(
46
46
  targetId: 'multimedia_docx_main',
47
47
  data: { url: sample_url }
48
48
  )
@@ -52,7 +52,7 @@ page.body(
52
52
  flow.button(
53
53
  text: 'Reload same',
54
54
  onClick: ->(action) do
55
- action.components_set(
55
+ action.logics_set(
56
56
  targetId: 'multimedia_docx_main',
57
57
  data: { url: alt_url }
58
58
  )
@@ -71,7 +71,7 @@ page.body(
71
71
  flow.button(
72
72
  text: 'No URL',
73
73
  onClick: ->(action) do
74
- action.components_set(
74
+ action.logics_set(
75
75
  targetId: 'multimedia_docx_main',
76
76
  data: { url: nil }
77
77
  )
@@ -81,7 +81,7 @@ page.body(
81
81
  flow.button(
82
82
  text: 'Broken URL',
83
83
  onClick: ->(action) do
84
- action.components_set(
84
+ action.logics_set(
85
85
  targetId: 'multimedia_docx_main',
86
86
  data: { url: missing_url }
87
87
  )
@@ -91,7 +91,7 @@ page.body(
91
91
  flow.button(
92
92
  text: 'Custom messages',
93
93
  onClick: ->(action) do
94
- action.components_set(
94
+ action.logics_set(
95
95
  targetId: 'multimedia_docx_main',
96
96
  data: {
97
97
  url: missing_url,
@@ -36,7 +36,7 @@ page.body(
36
36
  flow.button(
37
37
  text: 'Default size',
38
38
  onClick: ->(action) do
39
- action.components_set(
39
+ action.logics_set(
40
40
  targetId: 'multimedia_video_main',
41
41
  data: {
42
42
  width: 560,
@@ -50,7 +50,7 @@ page.body(
50
50
  flow.button(
51
51
  text: 'Short URL',
52
52
  onClick: ->(action) do
53
- action.components_set(
53
+ action.logics_set(
54
54
  targetId: 'multimedia_video_main',
55
55
  data: { url: 'https://youtu.be/ATnpEOo3GJA' }
56
56
  )
@@ -60,7 +60,7 @@ page.body(
60
60
  flow.button(
61
61
  text: 'Match parent',
62
62
  onClick: ->(action) do
63
- action.components_set(
63
+ action.logics_set(
64
64
  targetId: 'multimedia_video_main',
65
65
  data: { width: 'matchParent', height: 240 }
66
66
  )
@@ -70,7 +70,7 @@ page.body(
70
70
  flow.button(
71
71
  text: 'Compact',
72
72
  onClick: ->(action) do
73
- action.components_set(
73
+ action.logics_set(
74
74
  targetId: 'multimedia_video_main',
75
75
  data: { width: 360, height: 200 }
76
76
  )
@@ -96,7 +96,7 @@ page.body(
96
96
  flow.button(
97
97
  text: 'Wide 16:9',
98
98
  onClick: ->(action) do
99
- action.components_set(
99
+ action.logics_set(
100
100
  targetId: 'multimedia_video_main',
101
101
  data: { width: 640, height: 360 }
102
102
  )
@@ -106,7 +106,7 @@ page.body(
106
106
  flow.button(
107
107
  text: 'Tall',
108
108
  onClick: ->(action) do
109
- action.components_set(
109
+ action.logics_set(
110
110
  targetId: 'multimedia_video_main',
111
111
  data: { width: 360, height: 480 }
112
112
  )
@@ -16,7 +16,7 @@ page.body childViews: ->(body) do
16
16
  res.h2 text: 'Basic'
17
17
  res.spacer height: 8
18
18
  res.panels_pagination id: 'pagination_main', length: 10, value: 1, onChange: ->(action) do
19
- action.components_set targetId: 'pagination_status', data: { text: 'Page changed' }
19
+ action.logics_set targetId: 'pagination_status', data: { text: 'Page changed' }
20
20
  end
21
21
  res.label id: 'pagination_status', text: 'Page status: idle'
22
22
 
@@ -27,19 +27,19 @@ page.body childViews: ->(body) do
27
27
  res.spacer height: 8
28
28
  res.panels_flow innerPadding: { bottom: 0 }, childViews: ->(flow) do
29
29
  flow.button text: 'Page 1', onClick: ->(action) do
30
- action.components_set targetId: 'pagination_main', data: { value: 1 }
30
+ action.logics_set targetId: 'pagination_main', data: { value: 1 }
31
31
  end
32
32
  flow.spacer width: 4
33
33
  flow.button text: 'Page 5', onClick: ->(action) do
34
- action.components_set targetId: 'pagination_main', data: { value: 5 }
34
+ action.logics_set targetId: 'pagination_main', data: { value: 5 }
35
35
  end
36
36
  flow.spacer width: 4
37
37
  flow.button text: 'Show 3', onClick: ->(action) do
38
- action.components_set targetId: 'pagination_main', data: { totalVisible: 3 }
38
+ action.logics_set targetId: 'pagination_main', data: { totalVisible: 3 }
39
39
  end
40
40
  flow.spacer width: 4
41
41
  flow.button text: 'Show 7', onClick: ->(action) do
42
- action.components_set targetId: 'pagination_main', data: { totalVisible: 7 }
42
+ action.logics_set targetId: 'pagination_main', data: { totalVisible: 7 }
43
43
  end
44
44
  end
45
45
 
@@ -51,7 +51,7 @@ page.body childViews: ->(body) do
51
51
  res.label id: 'pagination_action_status', text: 'Change status: idle'
52
52
  res.spacer height: 6
53
53
  res.panels_pagination length: 4, value: 1, onChange: ->(action) do
54
- action.components_set targetId: 'pagination_action_status', data: { text: 'Change status: changed' }
54
+ action.logics_set targetId: 'pagination_action_status', data: { text: 'Change status: changed' }
55
55
  end
56
56
 
57
57
  res.spacer height: 12
@@ -95,18 +95,18 @@ page.body(
95
95
  onSubmitStart: ->(action) do
96
96
  action.runMultiple(
97
97
  childActions: ->(multiple) do
98
- multiple.components_set targetId: 'bulk_edit_submit_top', data: { disabled: true }
99
- multiple.components_set targetId: 'bulk_edit_submit_bottom', data: { disabled: true }
100
- multiple.components_set targetId: 'bulk_edit_cancel', data: { displayed: true }
98
+ multiple.logics_set targetId: 'bulk_edit_submit_top', data: { disabled: true }
99
+ multiple.logics_set targetId: 'bulk_edit_submit_bottom', data: { disabled: true }
100
+ multiple.logics_set targetId: 'bulk_edit_cancel', data: { displayed: true }
101
101
  end
102
102
  )
103
103
  end,
104
104
  onSubmitEnd: ->(action) do
105
105
  action.runMultiple(
106
106
  childActions: ->(multiple) do
107
- multiple.components_set targetId: 'bulk_edit_submit_top', data: { disabled: false }
108
- multiple.components_set targetId: 'bulk_edit_submit_bottom', data: { disabled: false }
109
- multiple.components_set targetId: 'bulk_edit_cancel', data: { displayed: false }
107
+ multiple.logics_set targetId: 'bulk_edit_submit_top', data: { disabled: false }
108
+ multiple.logics_set targetId: 'bulk_edit_submit_bottom', data: { disabled: false }
109
+ multiple.logics_set targetId: 'bulk_edit_cancel', data: { displayed: false }
110
110
  end
111
111
  )
112
112
  end,
@@ -124,8 +124,8 @@ page.body(
124
124
  text: { "count": [{ "var": 'data.loadedRows' }] }
125
125
  }
126
126
  )
127
- multiple.components_set targetId: 'bulk_edit_submit_top', data: { displayed: true }
128
- multiple.components_set targetId: 'bulk_edit_submit_bottom', data: { displayed: true }
127
+ multiple.logics_set targetId: 'bulk_edit_submit_top', data: { displayed: true }
128
+ multiple.logics_set targetId: 'bulk_edit_submit_bottom', data: { displayed: true }
129
129
  end
130
130
  )
131
131
  end,
@@ -196,18 +196,18 @@ page.body(
196
196
  # res.spacer height: 8
197
197
  # res.panels_flow innerPadding: { bottom: 0 }, childViews: ->(flow) do
198
198
  # flow.button text: 'Default columns', onClick: ->(action) do
199
- # action.components_set targetId: 'bulk_edit_main', data: { viewHeaders: default_headers, viewCells: default_cells }
199
+ # action.logics_set targetId: 'bulk_edit_main', data: { viewHeaders: default_headers, viewCells: default_cells }
200
200
  # end
201
201
  # flow.spacer width: 8
202
202
  # flow.button text: 'Compact columns', onClick: ->(action) do
203
- # action.components_set targetId: 'bulk_edit_main', data: { viewHeaders: compact_headers, viewCells: compact_cells }
203
+ # action.logics_set targetId: 'bulk_edit_main', data: { viewHeaders: compact_headers, viewCells: compact_cells }
204
204
  # end
205
205
  # flow.spacer width: 8
206
206
  # flow.button text: 'Reset counts', onClick: ->(action) do
207
207
  # action.runMultiple childActions: ->(multiple) do
208
- # multiple.components_set targetId: 'bulk_edit_loaded_count', data: { text: '0' }
209
- # multiple.components_set targetId: 'bulk_edit_selected_count', data: { text: '0' }
210
- # multiple.components_set targetId: 'bulk_edit_succeeded_count', data: { text: 'Uploaded: 0', displayed: false }
208
+ # multiple.logics_set targetId: 'bulk_edit_loaded_count', data: { text: '0' }
209
+ # multiple.logics_set targetId: 'bulk_edit_selected_count', data: { text: '0' }
210
+ # multiple.logics_set targetId: 'bulk_edit_succeeded_count', data: { text: 'Uploaded: 0', displayed: false }
211
211
  # end
212
212
  # end
213
213
  # end
@@ -236,7 +236,7 @@ page.body(
236
236
  action.runMultiple(
237
237
  fieldName: 'data',
238
238
  childActions: ->(multiple) do
239
- multiple.components_set targetId: 'bulk_edit3_skipped_counter', data: { displayed: true }
239
+ multiple.logics_set targetId: 'bulk_edit3_skipped_counter', data: { displayed: true }
240
240
  multiple.logics_set(
241
241
  targetId: 'bulk_edit3_skipped_count',
242
242
  paramName: 'variables',
@@ -39,7 +39,7 @@ page.body(
39
39
  flow.button(
40
40
  text: '35% default',
41
41
  onClick: ->(action) do
42
- action.components_set(
42
+ action.logics_set(
43
43
  targetId: 'progress_circle_main',
44
44
  data: { value: 35, size: 160, width: 16, color: '#4B56D2', half: nil, text: nil }
45
45
  )
@@ -49,21 +49,21 @@ page.body(
49
49
  flow.button(
50
50
  text: '65%',
51
51
  onClick: ->(action) do
52
- action.components_set targetId: 'progress_circle_main', data: { value: 65 }
52
+ action.logics_set targetId: 'progress_circle_main', data: { value: 65 }
53
53
  end
54
54
  )
55
55
  flow.spacer width: 6
56
56
  flow.button(
57
57
  text: 'Thick stroke',
58
58
  onClick: ->(action) do
59
- action.components_set targetId: 'progress_circle_main', data: { width: 28 }
59
+ action.logics_set targetId: 'progress_circle_main', data: { width: 28 }
60
60
  end
61
61
  )
62
62
  flow.spacer width: 6
63
63
  flow.button(
64
64
  text: 'Small size',
65
65
  onClick: ->(action) do
66
- action.components_set targetId: 'progress_circle_main', data: { size: 110 }
66
+ action.logics_set targetId: 'progress_circle_main', data: { size: 110 }
67
67
  end
68
68
  )
69
69
  end
@@ -82,7 +82,7 @@ page.body(
82
82
  flow.button(
83
83
  text: 'Half circle + label',
84
84
  onClick: ->(action) do
85
- action.components_set(
85
+ action.logics_set(
86
86
  targetId: 'progress_circle_main',
87
87
  data: { value: 80, half: true, text: 'Section A', color: '#9E0A0A', width: 22 }
88
88
  )
@@ -92,7 +92,7 @@ page.body(
92
92
  flow.button(
93
93
  text: 'Accent color',
94
94
  onClick: ->(action) do
95
- action.components_set targetId: 'progress_circle_main', data: { color: '#F9C80E', half: nil, text: nil }
95
+ action.logics_set targetId: 'progress_circle_main', data: { color: '#F9C80E', half: nil, text: nil }
96
96
  end
97
97
  )
98
98
  end
@@ -111,14 +111,14 @@ page.body(
111
111
  flow.button(
112
112
  text: '0%',
113
113
  onClick: ->(action) do
114
- action.components_set targetId: 'progress_circle_main', data: { value: '0', half: nil, text: nil }
114
+ action.logics_set targetId: 'progress_circle_main', data: { value: '0', half: nil, text: nil }
115
115
  end
116
116
  )
117
117
  flow.spacer width: 6
118
118
  flow.button(
119
119
  text: '100%',
120
120
  onClick: ->(action) do
121
- action.components_set targetId: 'progress_circle_main', data: { value: 100, half: nil, text: nil }
121
+ action.logics_set targetId: 'progress_circle_main', data: { value: 100, half: nil, text: nil }
122
122
  end
123
123
  )
124
124
  end
@@ -32,21 +32,21 @@ page.body(
32
32
  flow.button(
33
33
  text: 'Align left',
34
34
  onClick: ->(action) do
35
- action.components_set targetId: 'responsive_main', data: { align: 'left' }
35
+ action.logics_set targetId: 'responsive_main', data: { align: 'left' }
36
36
  end
37
37
  )
38
38
  flow.spacer width: 4
39
39
  flow.button(
40
40
  text: 'Align center',
41
41
  onClick: ->(action) do
42
- action.components_set targetId: 'responsive_main', data: { align: 'center' }
42
+ action.logics_set targetId: 'responsive_main', data: { align: 'center' }
43
43
  end
44
44
  )
45
45
  flow.spacer width: 4
46
46
  flow.button(
47
47
  text: 'Align right',
48
48
  onClick: ->(action) do
49
- action.components_set targetId: 'responsive_main', data: { align: 'right' }
49
+ action.logics_set targetId: 'responsive_main', data: { align: 'right' }
50
50
  end
51
51
  )
52
52
  end
@@ -59,7 +59,7 @@ page.body(
59
59
  res.spacer height: 6
60
60
  res.panels_responsive(
61
61
  onClick: ->(action) do
62
- action.components_set targetId: 'responsive_action_status', data: { text: 'Click status: clicked' }
62
+ action.logics_set targetId: 'responsive_action_status', data: { text: 'Click status: clicked' }
63
63
  end,
64
64
  styleClasses: ['card'],
65
65
  padding: { all: 12 },
@@ -28,19 +28,19 @@ page.body childViews: ->(body) do
28
28
  res.spacer height: 8
29
29
  res.panels_flow innerPadding: { bottom: 0 }, childViews: ->(flow) do
30
30
  flow.button text: 'Short', onClick: ->(action) do
31
- action.components_set targetId: 'scroll_main', data: { height: 120 }
31
+ action.logics_set targetId: 'scroll_main', data: { height: 120 }
32
32
  end
33
33
  flow.spacer width: 4
34
34
  flow.button text: 'Tall', onClick: ->(action) do
35
- action.components_set targetId: 'scroll_main', data: { height: 240 }
35
+ action.logics_set targetId: 'scroll_main', data: { height: 240 }
36
36
  end
37
37
  flow.spacer width: 4
38
38
  flow.button text: 'Add padding', onClick: ->(action) do
39
- action.components_set targetId: 'scroll_main', data: { padding: { all: 12 } }
39
+ action.logics_set targetId: 'scroll_main', data: { padding: { all: 12 } }
40
40
  end
41
41
  flow.spacer width: 4
42
42
  flow.button text: 'Clear padding', onClick: ->(action) do
43
- action.components_set targetId: 'scroll_main', data: { padding: nil }
43
+ action.logics_set targetId: 'scroll_main', data: { padding: nil }
44
44
  end
45
45
  end
46
46
 
@@ -52,7 +52,7 @@ page.body childViews: ->(body) do
52
52
  res.label id: 'scroll_status', text: 'Scroll status: idle'
53
53
  res.spacer height: 6
54
54
  res.panels_scroll height: 120, onLoad: ->(action) do
55
- action.components_set targetId: 'scroll_status', data: { text: 'Scroll status: loaded' }
55
+ action.logics_set targetId: 'scroll_status', data: { text: 'Scroll status: loaded' }
56
56
  end, childViews: ->(scroll) do
57
57
  (1..8).each do |index|
58
58
  scroll.label text: "Load item #{index}"
@@ -50,7 +50,7 @@ page.body(
50
50
  left.button(
51
51
  text: 'Update status',
52
52
  onClick: ->(action) do
53
- action.components_set targetId: 'split_action_status', data: { text: 'Action status: clicked' }
53
+ action.logics_set targetId: 'split_action_status', data: { text: 'Action status: clicked' }
54
54
  end
55
55
  )
56
56
  end