glimmer-dsl-opal 0.2.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (94) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +47 -0
  3. data/README.md +1022 -190
  4. data/VERSION +1 -1
  5. data/app/assets/images/glimmer/images/calendar.gif +0 -0
  6. data/app/assets/images/glimmer/images/ui-icons_222222_256x240.png +0 -0
  7. data/app/assets/images/glimmer/images/ui-icons_444444_256x240.png +0 -0
  8. data/app/assets/images/glimmer/images/ui-icons_555555_256x240.png +0 -0
  9. data/app/assets/images/glimmer/images/ui-icons_777620_256x240.png +0 -0
  10. data/app/assets/images/glimmer/images/ui-icons_777777_256x240.png +0 -0
  11. data/app/assets/images/glimmer/images/ui-icons_cc0000_256x240.png +0 -0
  12. data/app/assets/images/glimmer/images/ui-icons_ffffff_256x240.png +0 -0
  13. data/app/assets/stylesheets/glimmer.css +15 -0
  14. data/app/assets/stylesheets/glimmer/jquery-ui.css +1312 -0
  15. data/app/assets/stylesheets/glimmer/jquery-ui.structure.css +886 -0
  16. data/app/assets/stylesheets/glimmer/jquery-ui.theme.css +443 -0
  17. data/app/assets/stylesheets/glimmer/jquery.ui.timepicker.css +57 -0
  18. data/lib/glimmer-dsl-opal.rb +23 -8
  19. data/lib/glimmer-dsl-opal/ext/date.rb +48 -0
  20. data/lib/glimmer-dsl-opal/samples/hello/hello_checkbox.rb +85 -0
  21. data/lib/glimmer-dsl-opal/samples/hello/hello_checkbox_group.rb +68 -0
  22. data/lib/glimmer-dsl-opal/samples/hello/hello_combo.rb +5 -5
  23. data/lib/glimmer-dsl-opal/samples/hello/hello_custom_shell.rb +3 -3
  24. data/lib/glimmer-dsl-opal/samples/hello/hello_custom_widget.rb +3 -3
  25. data/lib/glimmer-dsl-opal/samples/hello/hello_date_time.rb +63 -0
  26. data/lib/glimmer-dsl-opal/samples/hello/hello_group.rb +104 -0
  27. data/lib/glimmer-dsl-opal/samples/hello/hello_list_single_selection.rb +1 -1
  28. data/lib/glimmer-dsl-opal/samples/hello/hello_radio.rb +108 -0
  29. data/lib/glimmer-dsl-opal/samples/hello/hello_radio_group.rb +84 -0
  30. data/lib/glimmer-dsl-opal/vendor/jquery-ui-timepicker/GPL-LICENSE.txt +278 -0
  31. data/lib/glimmer-dsl-opal/vendor/jquery-ui-timepicker/MIT-LICENSE.txt +20 -0
  32. data/lib/glimmer-dsl-opal/vendor/jquery-ui-timepicker/jquery.ui.timepicker.css +57 -0
  33. data/lib/glimmer-dsl-opal/vendor/jquery-ui-timepicker/jquery.ui.timepicker.js +1496 -0
  34. data/lib/glimmer-dsl-opal/vendor/jquery-ui/AUTHORS.txt +333 -0
  35. data/lib/glimmer-dsl-opal/vendor/jquery-ui/LICENSE.txt +43 -0
  36. data/lib/glimmer-dsl-opal/vendor/jquery-ui/images/ui-icons_444444_256x240.png +0 -0
  37. data/lib/glimmer-dsl-opal/vendor/jquery-ui/images/ui-icons_555555_256x240.png +0 -0
  38. data/lib/glimmer-dsl-opal/vendor/jquery-ui/images/ui-icons_777620_256x240.png +0 -0
  39. data/lib/glimmer-dsl-opal/vendor/jquery-ui/images/ui-icons_777777_256x240.png +0 -0
  40. data/lib/glimmer-dsl-opal/vendor/jquery-ui/images/ui-icons_cc0000_256x240.png +0 -0
  41. data/lib/glimmer-dsl-opal/vendor/jquery-ui/images/ui-icons_ffffff_256x240.png +0 -0
  42. data/lib/glimmer-dsl-opal/vendor/jquery-ui/jquery-ui.min.css +7 -0
  43. data/lib/glimmer-dsl-opal/vendor/jquery-ui/jquery-ui.min.js +13 -0
  44. data/lib/glimmer-dsl-opal/vendor/jquery-ui/jquery-ui.structure.min.css +5 -0
  45. data/lib/glimmer-dsl-opal/vendor/jquery-ui/jquery-ui.theme.min.css +5 -0
  46. data/lib/glimmer-dsl-opal/vendor/jquery-ui/package.json +74 -0
  47. data/lib/glimmer-dsl-swt.rb +37 -0
  48. data/lib/glimmer/data_binding/element_binding.rb +2 -1
  49. data/lib/glimmer/dsl/opal/async_exec_expression.rb +23 -7
  50. data/lib/glimmer/dsl/opal/checkbox_group_selection_data_binding_expression.rb +61 -0
  51. data/lib/glimmer/dsl/opal/custom_widget_expression.rb +42 -5
  52. data/lib/glimmer/dsl/opal/display_expression.rb +40 -0
  53. data/lib/glimmer/dsl/opal/dsl.rb +7 -0
  54. data/lib/glimmer/dsl/opal/exec_expression.rb +55 -0
  55. data/lib/glimmer/dsl/opal/layout_expression.rb +1 -1
  56. data/lib/glimmer/dsl/opal/property_expression.rb +4 -3
  57. data/lib/glimmer/dsl/opal/radio_group_selection_data_binding_expression.rb +61 -0
  58. data/lib/glimmer/dsl/opal/shell_expression.rb +23 -1
  59. data/lib/glimmer/dsl/opal/swt_expression.rb +1 -1
  60. data/lib/glimmer/dsl/opal/sync_exec_expression.rb +33 -0
  61. data/lib/glimmer/dsl/opal/widget_expression.rb +5 -0
  62. data/lib/glimmer/engine.rb +9 -0
  63. data/lib/glimmer/swt.rb +3 -3
  64. data/lib/glimmer/swt/button_proxy.rb +15 -1
  65. data/lib/glimmer/swt/checkbox_proxy.rb +81 -0
  66. data/lib/glimmer/swt/combo_proxy.rb +4 -4
  67. data/lib/glimmer/swt/custom/checkbox_group.rb +142 -0
  68. data/lib/glimmer/swt/custom/radio_group.rb +143 -0
  69. data/lib/glimmer/swt/date_time_proxy.rb +144 -0
  70. data/lib/glimmer/swt/display_proxy.rb +55 -1
  71. data/lib/glimmer/swt/fill_layout_proxy.rb +2 -2
  72. data/lib/glimmer/swt/grid_layout_proxy.rb +21 -10
  73. data/lib/glimmer/swt/group_proxy.rb +38 -0
  74. data/lib/glimmer/swt/label_proxy.rb +27 -7
  75. data/lib/glimmer/swt/layout_data_proxy.rb +59 -6
  76. data/lib/glimmer/swt/layout_proxy.rb +2 -1
  77. data/lib/glimmer/swt/list_proxy.rb +2 -2
  78. data/lib/glimmer/swt/make_shift_shell_proxy.rb +38 -0
  79. data/lib/glimmer/swt/message_box_proxy.rb +7 -7
  80. data/lib/glimmer/swt/radio_proxy.rb +82 -0
  81. data/lib/glimmer/swt/row_layout_proxy.rb +35 -12
  82. data/lib/glimmer/swt/scrolled_composite_proxy.rb +20 -0
  83. data/lib/glimmer/swt/shell_proxy.rb +25 -10
  84. data/lib/glimmer/swt/styled_text_proxy.rb +44 -0
  85. data/lib/glimmer/swt/tab_folder_proxy.rb +3 -3
  86. data/lib/glimmer/swt/table_proxy.rb +10 -10
  87. data/lib/glimmer/swt/text_proxy.rb +2 -2
  88. data/lib/glimmer/swt/widget_proxy.rb +67 -33
  89. data/lib/glimmer/ui/custom_shell.rb +21 -2
  90. data/lib/glimmer/ui/custom_widget.rb +3 -1
  91. data/lib/{glimmer-dsl-opal/missing/net → net}/http.rb +0 -0
  92. data/lib/uri.rb +64 -0
  93. metadata +57 -4
  94. data/lib/glimmer-dsl-opal/missing/uri.rb +0 -26
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.2.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - AndyMaleh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-12 00:00:00.000000000 Z
11
+ date: 2020-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: glimmer
@@ -209,10 +209,22 @@ files:
209
209
  - LICENSE.txt
210
210
  - README.md
211
211
  - VERSION
212
+ - app/assets/images/glimmer/images/calendar.gif
213
+ - app/assets/images/glimmer/images/ui-icons_222222_256x240.png
214
+ - app/assets/images/glimmer/images/ui-icons_444444_256x240.png
215
+ - app/assets/images/glimmer/images/ui-icons_555555_256x240.png
216
+ - app/assets/images/glimmer/images/ui-icons_777620_256x240.png
217
+ - app/assets/images/glimmer/images/ui-icons_777777_256x240.png
218
+ - app/assets/images/glimmer/images/ui-icons_cc0000_256x240.png
219
+ - app/assets/images/glimmer/images/ui-icons_ffffff_256x240.png
220
+ - app/assets/stylesheets/glimmer.css
221
+ - app/assets/stylesheets/glimmer/jquery-ui.css
222
+ - app/assets/stylesheets/glimmer/jquery-ui.structure.css
223
+ - app/assets/stylesheets/glimmer/jquery-ui.theme.css
224
+ - app/assets/stylesheets/glimmer/jquery.ui.timepicker.css
212
225
  - lib/glimmer-dsl-opal.rb
226
+ - lib/glimmer-dsl-opal/ext/date.rb
213
227
  - lib/glimmer-dsl-opal/ext/exception.rb
214
- - lib/glimmer-dsl-opal/missing/net/http.rb
215
- - lib/glimmer-dsl-opal/missing/uri.rb
216
228
  - lib/glimmer-dsl-opal/samples/elaborate/contact_manager.rb
217
229
  - lib/glimmer-dsl-opal/samples/elaborate/contact_manager/contact.rb
218
230
  - lib/glimmer-dsl-opal/samples/elaborate/contact_manager/contact_manager_presenter.rb
@@ -222,16 +234,40 @@ files:
222
234
  - lib/glimmer-dsl-opal/samples/elaborate/tic_tac_toe/board.rb
223
235
  - lib/glimmer-dsl-opal/samples/elaborate/tic_tac_toe/cell.rb
224
236
  - lib/glimmer-dsl-opal/samples/hello/hello_browser.rb
237
+ - lib/glimmer-dsl-opal/samples/hello/hello_checkbox.rb
238
+ - lib/glimmer-dsl-opal/samples/hello/hello_checkbox_group.rb
225
239
  - lib/glimmer-dsl-opal/samples/hello/hello_combo.rb
226
240
  - lib/glimmer-dsl-opal/samples/hello/hello_computed.rb
227
241
  - lib/glimmer-dsl-opal/samples/hello/hello_computed/contact.rb
228
242
  - lib/glimmer-dsl-opal/samples/hello/hello_custom_shell.rb
229
243
  - lib/glimmer-dsl-opal/samples/hello/hello_custom_widget.rb
244
+ - lib/glimmer-dsl-opal/samples/hello/hello_date_time.rb
245
+ - lib/glimmer-dsl-opal/samples/hello/hello_group.rb
230
246
  - lib/glimmer-dsl-opal/samples/hello/hello_list_multi_selection.rb
231
247
  - lib/glimmer-dsl-opal/samples/hello/hello_list_single_selection.rb
248
+ - lib/glimmer-dsl-opal/samples/hello/hello_radio.rb
249
+ - lib/glimmer-dsl-opal/samples/hello/hello_radio_group.rb
232
250
  - lib/glimmer-dsl-opal/samples/hello/hello_tab.rb
233
251
  - lib/glimmer-dsl-opal/samples/hello/hello_world.rb
252
+ - lib/glimmer-dsl-opal/vendor/jquery-ui-timepicker/GPL-LICENSE.txt
253
+ - lib/glimmer-dsl-opal/vendor/jquery-ui-timepicker/MIT-LICENSE.txt
254
+ - lib/glimmer-dsl-opal/vendor/jquery-ui-timepicker/jquery.ui.timepicker.css
255
+ - lib/glimmer-dsl-opal/vendor/jquery-ui-timepicker/jquery.ui.timepicker.js
256
+ - lib/glimmer-dsl-opal/vendor/jquery-ui/AUTHORS.txt
257
+ - lib/glimmer-dsl-opal/vendor/jquery-ui/LICENSE.txt
258
+ - lib/glimmer-dsl-opal/vendor/jquery-ui/images/ui-icons_444444_256x240.png
259
+ - lib/glimmer-dsl-opal/vendor/jquery-ui/images/ui-icons_555555_256x240.png
260
+ - lib/glimmer-dsl-opal/vendor/jquery-ui/images/ui-icons_777620_256x240.png
261
+ - lib/glimmer-dsl-opal/vendor/jquery-ui/images/ui-icons_777777_256x240.png
262
+ - lib/glimmer-dsl-opal/vendor/jquery-ui/images/ui-icons_cc0000_256x240.png
263
+ - lib/glimmer-dsl-opal/vendor/jquery-ui/images/ui-icons_ffffff_256x240.png
264
+ - lib/glimmer-dsl-opal/vendor/jquery-ui/jquery-ui.min.css
265
+ - lib/glimmer-dsl-opal/vendor/jquery-ui/jquery-ui.min.js
266
+ - lib/glimmer-dsl-opal/vendor/jquery-ui/jquery-ui.structure.min.css
267
+ - lib/glimmer-dsl-opal/vendor/jquery-ui/jquery-ui.theme.min.css
268
+ - lib/glimmer-dsl-opal/vendor/jquery-ui/package.json
234
269
  - lib/glimmer-dsl-opal/vendor/jquery.js
270
+ - lib/glimmer-dsl-swt.rb
235
271
  - lib/glimmer/data_binding/element_binding.rb
236
272
  - lib/glimmer/data_binding/ext/observable_model.rb
237
273
  - lib/glimmer/data_binding/list_selection_binding.rb
@@ -239,12 +275,15 @@ files:
239
275
  - lib/glimmer/data_binding/table_items_binding.rb
240
276
  - lib/glimmer/dsl/opal/async_exec_expression.rb
241
277
  - lib/glimmer/dsl/opal/bind_expression.rb
278
+ - lib/glimmer/dsl/opal/checkbox_group_selection_data_binding_expression.rb
242
279
  - lib/glimmer/dsl/opal/color_expression.rb
243
280
  - lib/glimmer/dsl/opal/column_properties_expression.rb
244
281
  - lib/glimmer/dsl/opal/combo_selection_data_binding_expression.rb
245
282
  - lib/glimmer/dsl/opal/custom_widget_expression.rb
246
283
  - lib/glimmer/dsl/opal/data_binding_expression.rb
284
+ - lib/glimmer/dsl/opal/display_expression.rb
247
285
  - lib/glimmer/dsl/opal/dsl.rb
286
+ - lib/glimmer/dsl/opal/exec_expression.rb
248
287
  - lib/glimmer/dsl/opal/font_expression.rb
249
288
  - lib/glimmer/dsl/opal/layout_data_expression.rb
250
289
  - lib/glimmer/dsl/opal/layout_expression.rb
@@ -252,36 +291,48 @@ files:
252
291
  - lib/glimmer/dsl/opal/message_box_expression.rb
253
292
  - lib/glimmer/dsl/opal/observe_expression.rb
254
293
  - lib/glimmer/dsl/opal/property_expression.rb
294
+ - lib/glimmer/dsl/opal/radio_group_selection_data_binding_expression.rb
255
295
  - lib/glimmer/dsl/opal/rgb_expression.rb
256
296
  - lib/glimmer/dsl/opal/rgba_expression.rb
257
297
  - lib/glimmer/dsl/opal/shell_expression.rb
258
298
  - lib/glimmer/dsl/opal/swt_expression.rb
299
+ - lib/glimmer/dsl/opal/sync_exec_expression.rb
259
300
  - lib/glimmer/dsl/opal/table_column_expression.rb
260
301
  - lib/glimmer/dsl/opal/table_expression.rb
261
302
  - lib/glimmer/dsl/opal/table_items_data_binding_expression.rb
262
303
  - lib/glimmer/dsl/opal/widget_expression.rb
263
304
  - lib/glimmer/dsl/opal/widget_listener_expression.rb
305
+ - lib/glimmer/engine.rb
264
306
  - lib/glimmer/swt.rb
265
307
  - lib/glimmer/swt/browser_proxy.rb
266
308
  - lib/glimmer/swt/button_proxy.rb
309
+ - lib/glimmer/swt/checkbox_proxy.rb
267
310
  - lib/glimmer/swt/color_proxy.rb
268
311
  - lib/glimmer/swt/combo_proxy.rb
269
312
  - lib/glimmer/swt/composite_proxy.rb
313
+ - lib/glimmer/swt/custom/checkbox_group.rb
314
+ - lib/glimmer/swt/custom/radio_group.rb
315
+ - lib/glimmer/swt/date_time_proxy.rb
270
316
  - lib/glimmer/swt/display_proxy.rb
271
317
  - lib/glimmer/swt/event_listener_proxy.rb
272
318
  - lib/glimmer/swt/fill_layout_proxy.rb
273
319
  - lib/glimmer/swt/font_proxy.rb
274
320
  - lib/glimmer/swt/grid_layout_proxy.rb
321
+ - lib/glimmer/swt/group_proxy.rb
275
322
  - lib/glimmer/swt/label_proxy.rb
276
323
  - lib/glimmer/swt/layout_data_proxy.rb
277
324
  - lib/glimmer/swt/layout_proxy.rb
278
325
  - lib/glimmer/swt/list_proxy.rb
326
+ - lib/glimmer/swt/make_shift_shell_proxy.rb
279
327
  - lib/glimmer/swt/message_box_proxy.rb
280
328
  - lib/glimmer/swt/point.rb
281
329
  - lib/glimmer/swt/property_owner.rb
330
+ - lib/glimmer/swt/radio_proxy.rb
282
331
  - lib/glimmer/swt/row_layout_proxy.rb
332
+ - lib/glimmer/swt/scrolled_composite_proxy.rb
283
333
  - lib/glimmer/swt/shell_proxy.rb
284
334
  - lib/glimmer/swt/style_constantizable.rb
335
+ - lib/glimmer/swt/styled_text_proxy.rb
285
336
  - lib/glimmer/swt/swt_proxy.rb
286
337
  - lib/glimmer/swt/tab_folder_proxy.rb
287
338
  - lib/glimmer/swt/tab_item_proxy.rb
@@ -293,6 +344,8 @@ files:
293
344
  - lib/glimmer/ui/custom_shell.rb
294
345
  - lib/glimmer/ui/custom_widget.rb
295
346
  - lib/glimmer/util/proc_tracker.rb
347
+ - lib/net/http.rb
348
+ - lib/uri.rb
296
349
  homepage: http://github.com/AndyObtiva/glimmer-dsl-opal
297
350
  licenses:
298
351
  - MIT
@@ -1,26 +0,0 @@
1
- # Missing URI module class features
2
-
3
- module URI
4
- class HTTP
5
- REGEX = /([^:]+):\/\/([^\/])\/([^?]*)\??(.*)/
6
-
7
- def initialize(url)
8
- @url = url
9
- uri_match = url.match(REGEX)
10
- @scheme = uri_match[1]
11
- @host = uri_match[2]
12
- @path = uri_match[3]
13
- @query = uri_match[4]
14
- # TODO fragment
15
- end
16
-
17
- def to_s
18
- url
19
- end
20
- end
21
- end
22
- module Kernel
23
- def URI(url)
24
- URI::HTTP.new(url)
25
- end
26
- end