glimmer-dsl-opal 0.0.2 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +704 -40
  3. data/VERSION +1 -1
  4. data/lib/glimmer-dsl-opal.rb +3 -2
  5. data/lib/glimmer/data_binding/element_binding.rb +1 -1
  6. data/lib/glimmer/data_binding/ext/observable_model.rb +40 -0
  7. data/lib/glimmer/data_binding/list_selection_binding.rb +51 -0
  8. data/lib/glimmer/dsl/opal/async_exec_expression.rb +17 -0
  9. data/lib/glimmer/dsl/opal/browser_expression.rb +17 -0
  10. data/lib/glimmer/dsl/opal/button_expression.rb +1 -0
  11. data/lib/glimmer/dsl/opal/dsl.rb +15 -1
  12. data/lib/glimmer/dsl/opal/grid_layout_expression.rb +17 -0
  13. data/lib/glimmer/dsl/opal/layout_data_expression.rb +17 -0
  14. data/lib/glimmer/dsl/opal/list_expression.rb +17 -0
  15. data/lib/glimmer/dsl/opal/list_selection_data_binding_expression.rb +42 -0
  16. data/lib/glimmer/dsl/opal/message_box_expression.rb +20 -0
  17. data/lib/glimmer/dsl/opal/observe_expression.rb +32 -0
  18. data/lib/glimmer/dsl/opal/property_expression.rb +6 -2
  19. data/lib/glimmer/dsl/opal/tab_folder_expression.rb +17 -0
  20. data/lib/glimmer/dsl/opal/tab_item_expression.rb +17 -0
  21. data/lib/glimmer/dsl/opal/text_expression.rb +22 -0
  22. data/lib/glimmer/opal/display_proxy.rb +23 -0
  23. data/lib/glimmer/opal/div_proxy.rb +9 -1
  24. data/lib/glimmer/opal/document_proxy.rb +131 -5
  25. data/lib/glimmer/opal/element_proxy.rb +246 -11
  26. data/lib/glimmer/opal/grid_layout_proxy.rb +54 -0
  27. data/lib/glimmer/opal/iframe_proxy.rb +23 -0
  28. data/lib/glimmer/opal/input_proxy.rb +16 -1
  29. data/lib/glimmer/opal/label_proxy.rb +2 -1
  30. data/lib/glimmer/opal/layout_data_proxy.rb +31 -0
  31. data/lib/glimmer/opal/list_proxy.rb +80 -0
  32. data/lib/glimmer/opal/modal.rb +94 -0
  33. data/lib/glimmer/opal/point.rb +5 -0
  34. data/lib/glimmer/opal/property_owner.rb +22 -0
  35. data/lib/glimmer/opal/select_proxy.rb +2 -1
  36. data/lib/glimmer/opal/tab_folder.rb +46 -0
  37. data/lib/glimmer/opal/tab_item.rb +98 -0
  38. data/lib/samples/elaborate/login.rb +0 -1
  39. data/lib/samples/elaborate/tic_tac_toe.rb +5 -5
  40. data/lib/samples/hello/hello_tab.rb +2 -2
  41. metadata +25 -2
@@ -1,4 +1,3 @@
1
- require "java"
2
1
  require "observer"
3
2
 
4
3
  #Presents login screen data
@@ -37,11 +37,11 @@ class TicTacToe
37
37
  display_game_over_message("Draw!")
38
38
  end
39
39
 
40
- def display_game_over_message(message)
41
- message_box = MessageBox.new(@shell.swt_widget)
42
- message_box.setText("Game Over")
43
- message_box.setMessage(message)
44
- message_box.open
40
+ def display_game_over_message(message_text)
41
+ message_box(@shell) {
42
+ text 'Game Over'
43
+ message message_text
44
+ }.open
45
45
  @tic_tac_toe_board.reset
46
46
  end
47
47
 
@@ -2,7 +2,7 @@ class HelloTab
2
2
  include Glimmer
3
3
  def launch
4
4
  shell {
5
- text "Hello Tab"
5
+ text "Hello, Tab!"
6
6
  tab_folder {
7
7
  tab_item {
8
8
  text "English"
@@ -13,7 +13,7 @@ class HelloTab
13
13
  tab_item {
14
14
  text "French"
15
15
  label {
16
- text "Bonjour Univers!"
16
+ text "Bonjour, Univers!"
17
17
  }
18
18
  }
19
19
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glimmer-dsl-opal
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - AndyMaleh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-17 00:00:00.000000000 Z
11
+ date: 2020-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: glimmer
@@ -170,33 +170,56 @@ files:
170
170
  - lib/glimmer-dsl-opal.rb
171
171
  - lib/glimmer/config.rb
172
172
  - lib/glimmer/data_binding/element_binding.rb
173
+ - lib/glimmer/data_binding/ext/observable_model.rb
174
+ - lib/glimmer/data_binding/list_selection_binding.rb
173
175
  - lib/glimmer/data_binding/observable_element.rb
174
176
  - lib/glimmer/dsl/engine.rb
175
177
  - lib/glimmer/dsl/expression.rb
176
178
  - lib/glimmer/dsl/expression_handler.rb
179
+ - lib/glimmer/dsl/opal/async_exec_expression.rb
177
180
  - lib/glimmer/dsl/opal/bind_expression.rb
181
+ - lib/glimmer/dsl/opal/browser_expression.rb
178
182
  - lib/glimmer/dsl/opal/button_expression.rb
179
183
  - lib/glimmer/dsl/opal/combo_expression.rb
180
184
  - lib/glimmer/dsl/opal/combo_selection_data_binding_expression.rb
181
185
  - lib/glimmer/dsl/opal/composite_expression.rb
182
186
  - lib/glimmer/dsl/opal/data_binding_expression.rb
183
187
  - lib/glimmer/dsl/opal/dsl.rb
188
+ - lib/glimmer/dsl/opal/grid_layout_expression.rb
184
189
  - lib/glimmer/dsl/opal/label_expression.rb
190
+ - lib/glimmer/dsl/opal/layout_data_expression.rb
191
+ - lib/glimmer/dsl/opal/list_expression.rb
192
+ - lib/glimmer/dsl/opal/list_selection_data_binding_expression.rb
193
+ - lib/glimmer/dsl/opal/message_box_expression.rb
194
+ - lib/glimmer/dsl/opal/observe_expression.rb
185
195
  - lib/glimmer/dsl/opal/property_expression.rb
186
196
  - lib/glimmer/dsl/opal/shell_expression.rb
197
+ - lib/glimmer/dsl/opal/tab_folder_expression.rb
198
+ - lib/glimmer/dsl/opal/tab_item_expression.rb
199
+ - lib/glimmer/dsl/opal/text_expression.rb
187
200
  - lib/glimmer/dsl/opal/widget_listener_expression.rb
188
201
  - lib/glimmer/dsl/parent_expression.rb
189
202
  - lib/glimmer/dsl/static_expression.rb
190
203
  - lib/glimmer/dsl/top_level_expression.rb
191
204
  - lib/glimmer/error.rb
192
205
  - lib/glimmer/invalid_keyword_error.rb
206
+ - lib/glimmer/opal/display_proxy.rb
193
207
  - lib/glimmer/opal/div_proxy.rb
194
208
  - lib/glimmer/opal/document_proxy.rb
195
209
  - lib/glimmer/opal/element_proxy.rb
196
210
  - lib/glimmer/opal/event_listener_proxy.rb
211
+ - lib/glimmer/opal/grid_layout_proxy.rb
212
+ - lib/glimmer/opal/iframe_proxy.rb
197
213
  - lib/glimmer/opal/input_proxy.rb
198
214
  - lib/glimmer/opal/label_proxy.rb
215
+ - lib/glimmer/opal/layout_data_proxy.rb
216
+ - lib/glimmer/opal/list_proxy.rb
217
+ - lib/glimmer/opal/modal.rb
218
+ - lib/glimmer/opal/point.rb
219
+ - lib/glimmer/opal/property_owner.rb
199
220
  - lib/glimmer/opal/select_proxy.rb
221
+ - lib/glimmer/opal/tab_folder.rb
222
+ - lib/glimmer/opal/tab_item.rb
200
223
  - lib/samples/elaborate/contact_manager.rb
201
224
  - lib/samples/elaborate/contact_manager/contact.rb
202
225
  - lib/samples/elaborate/contact_manager/contact_manager_presenter.rb