ruflet_core 0.0.12 → 0.0.13

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 (130) hide show
  1. checksums.yaml +4 -4
  2. data/lib/ruflet/version.rb +1 -1
  3. data/lib/ruflet_protocol/ruflet/protocol.rb +50 -4
  4. data/lib/ruflet_ui/ruflet/control.rb +11 -4
  5. data/lib/ruflet_ui/ruflet/dsl.rb +229 -37
  6. data/lib/ruflet_ui/ruflet/events/gesture_events.rb +113 -9
  7. data/lib/ruflet_ui/ruflet/page.rb +820 -145
  8. data/lib/ruflet_ui/ruflet/types/animation.rb +110 -0
  9. data/lib/ruflet_ui/ruflet/ui/control_registry.rb +1 -0
  10. data/lib/ruflet_ui/ruflet/ui/controls/cupertinos/cupertinoactionsheet_control.rb +13 -0
  11. data/lib/ruflet_ui/ruflet/ui/controls/cupertinos/cupertinoactionsheetaction_control.rb +4 -0
  12. data/lib/ruflet_ui/ruflet/ui/controls/cupertinos/cupertinoactivityindicator_control.rb +4 -0
  13. data/lib/ruflet_ui/ruflet/ui/controls/cupertinos/cupertinoalertdialog_control.rb +17 -0
  14. data/lib/ruflet_ui/ruflet/ui/controls/cupertinos/cupertinoappbar_control.rb +3 -0
  15. data/lib/ruflet_ui/ruflet/ui/controls/cupertinos/cupertinobottomsheet_control.rb +4 -0
  16. data/lib/ruflet_ui/ruflet/ui/controls/cupertinos/cupertinobutton_control.rb +9 -0
  17. data/lib/ruflet_ui/ruflet/ui/controls/cupertinos/cupertinocheckbox_control.rb +6 -0
  18. data/lib/ruflet_ui/ruflet/ui/controls/cupertinos/cupertinocontextmenu_control.rb +11 -0
  19. data/lib/ruflet_ui/ruflet/ui/controls/cupertinos/cupertinocontextmenuaction_control.rb +4 -0
  20. data/lib/ruflet_ui/ruflet/ui/controls/cupertinos/cupertinodatepicker_control.rb +14 -0
  21. data/lib/ruflet_ui/ruflet/ui/controls/cupertinos/cupertinodialogaction_control.rb +4 -0
  22. data/lib/ruflet_ui/ruflet/ui/controls/cupertinos/cupertinofilledbutton_control.rb +9 -0
  23. data/lib/ruflet_ui/ruflet/ui/controls/cupertinos/cupertinolisttile_control.rb +12 -0
  24. data/lib/ruflet_ui/ruflet/ui/controls/cupertinos/cupertinonavigationbar_control.rb +11 -0
  25. data/lib/ruflet_ui/ruflet/ui/controls/cupertinos/cupertinopicker_control.rb +18 -0
  26. data/lib/ruflet_ui/ruflet/ui/controls/cupertinos/cupertinoradio_control.rb +6 -0
  27. data/lib/ruflet_ui/ruflet/ui/controls/cupertinos/cupertinosegmentedbutton_control.rb +2 -0
  28. data/lib/ruflet_ui/ruflet/ui/controls/cupertinos/cupertinoslider_control.rb +7 -0
  29. data/lib/ruflet_ui/ruflet/ui/controls/cupertinos/cupertinoslidingsegmentedbutton_control.rb +3 -0
  30. data/lib/ruflet_ui/ruflet/ui/controls/cupertinos/cupertinoswitch_control.rb +7 -1
  31. data/lib/ruflet_ui/ruflet/ui/controls/cupertinos/cupertinotextfield_control.rb +7 -0
  32. data/lib/ruflet_ui/ruflet/ui/controls/cupertinos/cupertinotimerpicker_control.rb +18 -0
  33. data/lib/ruflet_ui/ruflet/ui/controls/cupertinos/cupertinotintedbutton_control.rb +9 -0
  34. data/lib/ruflet_ui/ruflet/ui/controls/materials/alertdialog_control.rb +4 -0
  35. data/lib/ruflet_ui/ruflet/ui/controls/materials/appbar_control.rb +4 -0
  36. data/lib/ruflet_ui/ruflet/ui/controls/materials/audio_control.rb +35 -1
  37. data/lib/ruflet_ui/ruflet/ui/controls/materials/autocomplete_control.rb +4 -0
  38. data/lib/ruflet_ui/ruflet/ui/controls/materials/autocompletesuggestion_control.rb +26 -0
  39. data/lib/ruflet_ui/ruflet/ui/controls/materials/badge_control.rb +7 -0
  40. data/lib/ruflet_ui/ruflet/ui/controls/materials/banner_control.rb +11 -1
  41. data/lib/ruflet_ui/ruflet/ui/controls/materials/bottomappbar_control.rb +2 -0
  42. data/lib/ruflet_ui/ruflet/ui/controls/materials/bottomsheet_control.rb +5 -0
  43. data/lib/ruflet_ui/ruflet/ui/controls/materials/button_control.rb +2 -0
  44. data/lib/ruflet_ui/ruflet/ui/controls/materials/card_control.rb +4 -0
  45. data/lib/ruflet_ui/ruflet/ui/controls/materials/chip_control.rb +11 -0
  46. data/lib/ruflet_ui/ruflet/ui/controls/materials/circleavatar_control.rb +12 -0
  47. data/lib/ruflet_ui/ruflet/ui/controls/materials/contextmenu_control.rb +19 -0
  48. data/lib/ruflet_ui/ruflet/ui/controls/materials/datacell_control.rb +4 -0
  49. data/lib/ruflet_ui/ruflet/ui/controls/materials/datacolumn_control.rb +4 -0
  50. data/lib/ruflet_ui/ruflet/ui/controls/materials/datatable_control.rb +34 -0
  51. data/lib/ruflet_ui/ruflet/ui/controls/materials/datepicker_control.rb +18 -0
  52. data/lib/ruflet_ui/ruflet/ui/controls/materials/daterangepicker_control.rb +20 -0
  53. data/lib/ruflet_ui/ruflet/ui/controls/materials/divider_control.rb +9 -0
  54. data/lib/ruflet_ui/ruflet/ui/controls/materials/dropdown_control.rb +11 -0
  55. data/lib/ruflet_ui/ruflet/ui/controls/materials/dropdownoption_control.rb +5 -0
  56. data/lib/ruflet_ui/ruflet/ui/controls/materials/expansionpanel_control.rb +8 -0
  57. data/lib/ruflet_ui/ruflet/ui/controls/materials/expansionpanellist_control.rb +6 -0
  58. data/lib/ruflet_ui/ruflet/ui/controls/materials/expansiontile_control.rb +6 -0
  59. data/lib/ruflet_ui/ruflet/ui/controls/materials/filledbutton_control.rb +5 -0
  60. data/lib/ruflet_ui/ruflet/ui/controls/materials/fillediconbutton_control.rb +8 -0
  61. data/lib/ruflet_ui/ruflet/ui/controls/materials/filledtonalbutton_control.rb +5 -0
  62. data/lib/ruflet_ui/ruflet/ui/controls/materials/filledtonaliconbutton_control.rb +8 -0
  63. data/lib/ruflet_ui/ruflet/ui/controls/materials/floatingactionbutton_control.rb +20 -0
  64. data/lib/ruflet_ui/ruflet/ui/controls/materials/iconbutton_control.rb +4 -0
  65. data/lib/ruflet_ui/ruflet/ui/controls/materials/listtile_control.rb +4 -0
  66. data/lib/ruflet_ui/ruflet/ui/controls/materials/map_controls.rb +240 -0
  67. data/lib/ruflet_ui/ruflet/ui/controls/materials/menubar_control.rb +2 -0
  68. data/lib/ruflet_ui/ruflet/ui/controls/materials/menuitembutton_control.rb +6 -0
  69. data/lib/ruflet_ui/ruflet/ui/controls/materials/navigationbar_control.rb +11 -1
  70. data/lib/ruflet_ui/ruflet/ui/controls/materials/navigationbardestination_control.rb +2 -0
  71. data/lib/ruflet_ui/ruflet/ui/controls/materials/navigationdrawer_control.rb +12 -1
  72. data/lib/ruflet_ui/ruflet/ui/controls/materials/navigationdrawerdestination_control.rb +2 -0
  73. data/lib/ruflet_ui/ruflet/ui/controls/materials/navigationrail_control.rb +21 -0
  74. data/lib/ruflet_ui/ruflet/ui/controls/materials/navigationraildestination_control.rb +2 -0
  75. data/lib/ruflet_ui/ruflet/ui/controls/materials/outlinedbutton_control.rb +5 -0
  76. data/lib/ruflet_ui/ruflet/ui/controls/materials/outlinediconbutton_control.rb +8 -0
  77. data/lib/ruflet_ui/ruflet/ui/controls/materials/popupmenubutton_control.rb +4 -0
  78. data/lib/ruflet_ui/ruflet/ui/controls/materials/popupmenuitem_control.rb +6 -0
  79. data/lib/ruflet_ui/ruflet/ui/controls/materials/progressbar_control.rb +9 -0
  80. data/lib/ruflet_ui/ruflet/ui/controls/materials/progressring_control.rb +8 -0
  81. data/lib/ruflet_ui/ruflet/ui/controls/materials/rangeslider_control.rb +13 -0
  82. data/lib/ruflet_ui/ruflet/ui/controls/materials/ruflet_controls.rb +24 -0
  83. data/lib/ruflet_ui/ruflet/ui/controls/materials/searchbar_control.rb +28 -0
  84. data/lib/ruflet_ui/ruflet/ui/controls/materials/segment_control.rb +5 -0
  85. data/lib/ruflet_ui/ruflet/ui/controls/materials/segmentedbutton_control.rb +19 -0
  86. data/lib/ruflet_ui/ruflet/ui/controls/materials/selectionarea_control.rb +4 -0
  87. data/lib/ruflet_ui/ruflet/ui/controls/materials/snackbar_control.rb +5 -0
  88. data/lib/ruflet_ui/ruflet/ui/controls/materials/submenubutton_control.rb +8 -0
  89. data/lib/ruflet_ui/ruflet/ui/controls/materials/tab_control.rb +7 -0
  90. data/lib/ruflet_ui/ruflet/ui/controls/materials/tabbar_control.rb +4 -0
  91. data/lib/ruflet_ui/ruflet/ui/controls/materials/tabbarview_control.rb +7 -0
  92. data/lib/ruflet_ui/ruflet/ui/controls/materials/tabs_control.rb +6 -0
  93. data/lib/ruflet_ui/ruflet/ui/controls/materials/textbutton_control.rb +5 -0
  94. data/lib/ruflet_ui/ruflet/ui/controls/materials/verticaldivider_control.rb +9 -0
  95. data/lib/ruflet_ui/ruflet/ui/controls/materials/video_control.rb +86 -1
  96. data/lib/ruflet_ui/ruflet/ui/controls/ruflet_controls.rb +24 -0
  97. data/lib/ruflet_ui/ruflet/ui/controls/shared/animatedswitcher_control.rb +10 -0
  98. data/lib/ruflet_ui/ruflet/ui/controls/shared/browsercontextmenu_control.rb +12 -1
  99. data/lib/ruflet_ui/ruflet/ui/controls/shared/canvas_control.rb +14 -0
  100. data/lib/ruflet_ui/ruflet/ui/controls/shared/dismissible_control.rb +19 -0
  101. data/lib/ruflet_ui/ruflet/ui/controls/shared/draggable_control.rb +9 -0
  102. data/lib/ruflet_ui/ruflet/ui/controls/shared/dragtarget_control.rb +6 -0
  103. data/lib/ruflet_ui/ruflet/ui/controls/shared/gridview_control.rb +20 -0
  104. data/lib/ruflet_ui/ruflet/ui/controls/shared/image_control.rb +19 -1
  105. data/lib/ruflet_ui/ruflet/ui/controls/shared/interactiveviewer_control.rb +37 -0
  106. data/lib/ruflet_ui/ruflet/ui/controls/shared/listview_control.rb +17 -0
  107. data/lib/ruflet_ui/ruflet/ui/controls/shared/pageview_control.rb +13 -0
  108. data/lib/ruflet_ui/ruflet/ui/controls/shared/placeholder_control.rb +12 -0
  109. data/lib/ruflet_ui/ruflet/ui/controls/shared/reorderabledraghandle_control.rb +4 -0
  110. data/lib/ruflet_ui/ruflet/ui/controls/shared/responsiverow_control.rb +22 -0
  111. data/lib/ruflet_ui/ruflet/ui/controls/shared/safearea_control.rb +11 -0
  112. data/lib/ruflet_ui/ruflet/ui/controls/shared/semantics_control.rb +2 -0
  113. data/lib/ruflet_ui/ruflet/ui/controls/shared/stack_control.rb +3 -0
  114. data/lib/ruflet_ui/ruflet/ui/controls/shared/text_control.rb +20 -1
  115. data/lib/ruflet_ui/ruflet/ui/controls/shared/view_control.rb +8 -0
  116. data/lib/ruflet_ui/ruflet/ui/controls/shared/window_control.rb +16 -0
  117. data/lib/ruflet_ui/ruflet/ui/controls/shared/windowdragarea_control.rb +6 -0
  118. data/lib/ruflet_ui/ruflet/ui/cupertino_control_methods.rb +83 -6
  119. data/lib/ruflet_ui/ruflet/ui/material_control_methods.rb +513 -33
  120. data/lib/ruflet_ui/ruflet/ui/material_control_registry.rb +2 -0
  121. data/lib/ruflet_ui/ruflet/ui/services/ruflet/audio_recorder_control.rb +87 -0
  122. data/lib/ruflet_ui/ruflet/ui/services/ruflet/geolocator_control.rb +85 -0
  123. data/lib/ruflet_ui/ruflet/ui/services/ruflet/permissionhandler_control.rb +53 -0
  124. data/lib/ruflet_ui/ruflet/ui/services/ruflet/securestorage_control.rb +89 -0
  125. data/lib/ruflet_ui/ruflet/ui/services/ruflet/semanticsservice_control.rb +28 -0
  126. data/lib/ruflet_ui/ruflet/ui/services/ruflet/tester_control.rb +126 -0
  127. data/lib/ruflet_ui/ruflet/ui/services/ruflet_services.rb +16 -0
  128. data/lib/ruflet_ui/ruflet/ui/shared_control_forwarders.rb +230 -38
  129. data/lib/ruflet_ui.rb +4 -0
  130. metadata +9 -1
@@ -6,59 +6,220 @@ module Ruflet
6
6
  def control(type, **props, &block) = control_delegate.control(type, **props, &block)
7
7
  def widget(type, **props, &block) = control_delegate.widget(type, **props, &block)
8
8
  def service(type, **props, &block) = control_delegate.service(type, **props, &block)
9
- def view(**props, &block) = control_delegate.view(**props, &block)
10
- def column(**props, &block) = control_delegate.column(**props, &block)
9
+ def view(children = nil, **props, &block) = control_delegate.view(children, **props, &block)
10
+ def column(children = nil, **props, &block) = control_delegate.column(children, **props, &block)
11
11
  def center(**props, &block) = control_delegate.center(**props, &block)
12
- def row(**props, &block) = control_delegate.row(**props, &block)
13
- def stack(**props, &block) = control_delegate.stack(**props, &block)
14
- def grid_view(**props, &block) = control_delegate.grid_view(**props, &block)
15
- def gridview(**props, &block) = control_delegate.gridview(**props, &block)
12
+ def row(children = nil, **props, &block) = control_delegate.row(children, **props, &block)
13
+ def stack(children = nil, **props, &block) = control_delegate.stack(children, **props, &block)
14
+ def grid_view(children = nil, **props, &block) = control_delegate.grid_view(children, **props, &block)
15
+ def gridview(children = nil, **props, &block) = control_delegate.gridview(children, **props, &block)
16
16
  def container(**props, &block) = control_delegate.container(**props, &block)
17
+ def animated_switcher(content = nil, **props) = control_delegate.animated_switcher(content, **props)
18
+ def animatedswitcher(content = nil, **props) = control_delegate.animatedswitcher(content, **props)
19
+ def animation(duration = nil, **props) = control_delegate.animation(duration, **props)
20
+ def animation_style(**props) = control_delegate.animation_style(**props)
21
+ def audio(**props) = control_delegate.audio(**props)
22
+ def auto_complete(suggestions = nil, **props) = control_delegate.auto_complete(suggestions, **props)
23
+ def autocomplete(suggestions = nil, **props) = control_delegate.autocomplete(suggestions, **props)
24
+ def auto_complete_suggestion(key = nil, **props) = control_delegate.auto_complete_suggestion(key, **props)
25
+ def autocomplete_suggestion(key = nil, **props) = control_delegate.autocomplete_suggestion(key, **props)
26
+ def autocompletesuggestion(key = nil, **props) = control_delegate.autocompletesuggestion(key, **props)
27
+ def context_menu(content = nil, **props) = control_delegate.context_menu(content, **props)
28
+ def contextmenu(content = nil, **props) = control_delegate.contextmenu(content, **props)
29
+ def keyboard_listener(content = nil, **props) = control_delegate.keyboard_listener(content, **props)
30
+ def keyboardlistener(content = nil, **props) = control_delegate.keyboardlistener(content, **props)
17
31
  def gesture_detector(**props, &block) = control_delegate.gesture_detector(**props, &block)
18
32
  def gesturedetector(**props, &block) = control_delegate.gesturedetector(**props, &block)
19
- def draggable(**props, &block) = control_delegate.draggable(**props, &block)
20
- def drag_target(**props, &block) = control_delegate.drag_target(**props, &block)
21
- def dragtarget(**props, &block) = control_delegate.dragtarget(**props, &block)
33
+ def canvas(shapes = nil, **props) = control_delegate.canvas(shapes, **props)
34
+ def line(**props) = control_delegate.line(**props)
35
+ def circle(**props) = control_delegate.circle(**props)
36
+ def arc(**props) = control_delegate.arc(**props)
37
+ def color(**props) = control_delegate.color(**props)
38
+ def canvas_color(**props) = control_delegate.canvas_color(**props)
39
+ def fill(**props) = control_delegate.fill(**props)
40
+ def oval(**props) = control_delegate.oval(**props)
41
+ def points(**props) = control_delegate.points(**props)
42
+ def rect(**props) = control_delegate.rect(**props)
43
+ def path(**props) = control_delegate.path(**props)
44
+ def shadow(**props) = control_delegate.shadow(**props)
45
+ def paint(**props) = control_delegate.paint(**props)
46
+ def path_move_to(x = nil, y = nil, **props) = control_delegate.path_move_to(x, y, **props)
47
+ def path_line_to(x = nil, y = nil, **props) = control_delegate.path_line_to(x, y, **props)
48
+ def path_arc(**props) = control_delegate.path_arc(**props)
49
+ def path_arc_to(**props) = control_delegate.path_arc_to(**props)
50
+ def path_oval(**props) = control_delegate.path_oval(**props)
51
+ def path_rect(**props) = control_delegate.path_rect(**props)
52
+ def path_quadratic_to(**props) = control_delegate.path_quadratic_to(**props)
53
+ def path_cubic_to(**props) = control_delegate.path_cubic_to(**props)
54
+ def path_sub_path(**props) = control_delegate.path_sub_path(**props)
55
+ def path_close(**props) = control_delegate.path_close(**props)
56
+ def draggable(content = nil, **props, &block) = control_delegate.draggable(content, **props, &block)
57
+ def dismissible(content = nil, **props) = control_delegate.dismissible(content, **props)
58
+ def drag_target(content = nil, **props, &block) = control_delegate.drag_target(content, **props, &block)
59
+ def dragtarget(content = nil, **props, &block) = control_delegate.dragtarget(content, **props, &block)
60
+ def card(content = nil, **props) = control_delegate.card(content, **props)
61
+ def list_tile(**props) = control_delegate.list_tile(**props)
62
+ def listtile(**props) = control_delegate.listtile(**props)
63
+ def map(layers = nil, **props) = control_delegate.map(layers, **props)
64
+ def tile_layer(**props) = control_delegate.tile_layer(**props)
65
+ def tilelayer(**props) = control_delegate.tilelayer(**props)
66
+ def marker_layer(markers = nil, **props) = control_delegate.marker_layer(markers, **props)
67
+ def markerlayer(markers = nil, **props) = control_delegate.markerlayer(markers, **props)
68
+ def marker(content = nil, **props) = control_delegate.marker(content, **props)
69
+ def circle_layer(circles = nil, **props) = control_delegate.circle_layer(circles, **props)
70
+ def circlelayer(circles = nil, **props) = control_delegate.circlelayer(circles, **props)
71
+ def circle_marker(**props) = control_delegate.circle_marker(**props)
72
+ def circlemarker(**props) = control_delegate.circlemarker(**props)
73
+ def polyline_layer(polylines = nil, **props) = control_delegate.polyline_layer(polylines, **props)
74
+ def polylinelayer(polylines = nil, **props) = control_delegate.polylinelayer(polylines, **props)
75
+ def polyline_marker(**props) = control_delegate.polyline_marker(**props)
76
+ def polylinemarker(**props) = control_delegate.polylinemarker(**props)
77
+ def polygon_layer(polygons = nil, **props) = control_delegate.polygon_layer(polygons, **props)
78
+ def polygonlayer(polygons = nil, **props) = control_delegate.polygonlayer(polygons, **props)
79
+ def polygon_marker(**props) = control_delegate.polygon_marker(**props)
80
+ def polygonmarker(**props) = control_delegate.polygonmarker(**props)
81
+ def simple_attribution(**props) = control_delegate.simple_attribution(**props)
82
+ def simpleattribution(**props) = control_delegate.simpleattribution(**props)
83
+ def list_view(children = nil, **props) = control_delegate.list_view(children, **props)
84
+ def listview(children = nil, **props) = control_delegate.listview(children, **props)
85
+ def menu_bar(children = nil, **props) = control_delegate.menu_bar(children, **props)
86
+ def menubar(children = nil, **props) = control_delegate.menubar(children, **props)
87
+ def menu_item_button(content = nil, **props) = control_delegate.menu_item_button(content, **props)
88
+ def menuitembutton(content = nil, **props) = control_delegate.menuitembutton(content, **props)
89
+ def merge_semantics(content = nil, **props) = control_delegate.merge_semantics(content, **props)
90
+ def mergesemantics(content = nil, **props) = control_delegate.mergesemantics(content, **props)
91
+ def submenu_button(children = nil, **props) = control_delegate.submenu_button(children, **props)
92
+ def submenubutton(children = nil, **props) = control_delegate.submenubutton(children, **props)
93
+ def divider(**props) = control_delegate.divider(**props)
94
+ def vertical_divider(**props) = control_delegate.vertical_divider(**props)
95
+ def verticaldivider(**props) = control_delegate.verticaldivider(**props)
96
+ def window_drag_area(content = nil, **props) = control_delegate.window_drag_area(content, **props)
97
+ def windowdragarea(content = nil, **props) = control_delegate.windowdragarea(content, **props)
98
+ def date_picker(**props) = control_delegate.date_picker(**props)
99
+ def datepicker(**props) = control_delegate.datepicker(**props)
100
+ def date_range_picker(**props) = control_delegate.date_range_picker(**props)
101
+ def daterangepicker(**props) = control_delegate.daterangepicker(**props)
102
+ def data_table(columns = nil, **props) = control_delegate.data_table(columns, **props)
103
+ def datatable(columns = nil, **props) = control_delegate.datatable(columns, **props)
104
+ def data_column(label = nil, **props) = control_delegate.data_column(label, **props)
105
+ def datacolumn(label = nil, **props) = control_delegate.datacolumn(label, **props)
106
+ def data_row(cells = nil, **props) = control_delegate.data_row(cells, **props)
107
+ def datarow(cells = nil, **props) = control_delegate.datarow(cells, **props)
108
+ def data_cell(content = nil, **props) = control_delegate.data_cell(content, **props)
109
+ def datacell(content = nil, **props) = control_delegate.datacell(content, **props)
110
+ def expansion_tile(children = nil, **props) = control_delegate.expansion_tile(children, **props)
111
+ def expansiontile(children = nil, **props) = control_delegate.expansiontile(children, **props)
112
+ def expansion_panel(**props) = control_delegate.expansion_panel(**props)
113
+ def expansionpanel(**props) = control_delegate.expansionpanel(**props)
114
+ def expansion_panel_list(children = nil, **props) = control_delegate.expansion_panel_list(children, **props)
115
+ def expansionpanellist(children = nil, **props) = control_delegate.expansionpanellist(children, **props)
116
+ def dropdown(options = nil, **props) = control_delegate.dropdown(options, **props)
117
+ def dropdown_option(key = nil, **props) = control_delegate.dropdown_option(key, **props)
118
+ def dropdownoption(key = nil, **props) = control_delegate.dropdownoption(key, **props)
119
+ def dropdown_m2(options = nil, **props) = control_delegate.dropdown_m2(options, **props)
120
+ def dropdownm2(options = nil, **props) = control_delegate.dropdownm2(options, **props)
121
+ def progress_bar(**props) = control_delegate.progress_bar(**props)
122
+ def progressbar(**props) = control_delegate.progressbar(**props)
123
+ def placeholder(content = nil, **props) = control_delegate.placeholder(content, **props)
124
+ def page_view(children = nil, **props) = control_delegate.page_view(children, **props)
125
+ def pageview(children = nil, **props) = control_delegate.pageview(children, **props)
126
+ def progress_ring(**props) = control_delegate.progress_ring(**props)
127
+ def progressring(**props) = control_delegate.progressring(**props)
128
+ def range_slider(**props) = control_delegate.range_slider(**props)
129
+ def rangeslider(**props) = control_delegate.rangeslider(**props)
130
+ def responsive_row(children = nil, **props, &block) = control_delegate.responsive_row(children, **props, &block)
131
+ def responsiverow(children = nil, **props, &block) = control_delegate.responsiverow(children, **props, &block)
132
+ def reorderable_drag_handle(content = nil, **props) = control_delegate.reorderable_drag_handle(content, **props)
133
+ def reorderabledraghandle(content = nil, **props) = control_delegate.reorderabledraghandle(content, **props)
134
+ def reorderable_list_view(children = nil, **props) = control_delegate.reorderable_list_view(children, **props)
135
+ def reorderablelistview(children = nil, **props) = control_delegate.reorderablelistview(children, **props)
136
+ def safe_area(content = nil, **props) = control_delegate.safe_area(content, **props)
137
+ def safearea(content = nil, **props) = control_delegate.safearea(content, **props)
138
+ def segment(value = nil, **props) = control_delegate.segment(value, **props)
139
+ def segmented_button(segments = nil, **props) = control_delegate.segmented_button(segments, **props)
140
+ def segmentedbutton(segments = nil, **props) = control_delegate.segmentedbutton(segments, **props)
141
+ def selection_area(content = nil, **props) = control_delegate.selection_area(content, **props)
142
+ def selectionarea(content = nil, **props) = control_delegate.selectionarea(content, **props)
143
+ def search_bar(children = nil, **props) = control_delegate.search_bar(children, **props)
144
+ def searchbar(children = nil, **props) = control_delegate.searchbar(children, **props)
145
+ def semantics(content = nil, **props) = control_delegate.semantics(content, **props)
146
+ def time_picker(**props) = control_delegate.time_picker(**props)
147
+ def timepicker(**props) = control_delegate.timepicker(**props)
148
+ def badge(label = nil, **props) = control_delegate.badge(label, **props)
149
+ def chip(label = nil, **props) = control_delegate.chip(label, **props)
150
+ def circle_avatar(content = nil, **props) = control_delegate.circle_avatar(content, **props)
151
+ def circleavatar(content = nil, **props) = control_delegate.circleavatar(content, **props)
152
+ def banner(content = nil, **props) = control_delegate.banner(content, **props)
153
+ def bottom_app_bar(content = nil, **props) = control_delegate.bottom_app_bar(content, **props)
154
+ def bottomappbar(content = nil, **props) = control_delegate.bottomappbar(content, **props)
22
155
  def text(value = nil, **props) = control_delegate.text(value, **props)
23
- def button(**props) = control_delegate.button(**props)
24
- def elevated_button(**props) = control_delegate.elevated_button(**props)
25
- def text_button(**props) = control_delegate.text_button(**props)
26
- def textbutton(**props) = control_delegate.textbutton(**props)
27
- def filled_button(**props) = control_delegate.filled_button(**props)
28
- def filledbutton(**props) = control_delegate.filledbutton(**props)
29
- def icon_button(**props) = control_delegate.icon_button(**props)
30
- def iconbutton(**props) = control_delegate.iconbutton(**props)
31
- def text_field(**props) = control_delegate.text_field(**props)
32
- def textfield(**props) = control_delegate.textfield(**props)
156
+ def button(content = nil, **props) = control_delegate.button(content, **props)
157
+ def elevated_button(content = nil, **props) = control_delegate.elevated_button(content, **props)
158
+ def text_button(content = nil, **props) = control_delegate.text_button(content, **props)
159
+ def textbutton(content = nil, **props) = control_delegate.textbutton(content, **props)
160
+ def filled_button(content = nil, **props) = control_delegate.filled_button(content, **props)
161
+ def filledbutton(content = nil, **props) = control_delegate.filledbutton(content, **props)
162
+ def filled_icon_button(icon = nil, **props) = control_delegate.filled_icon_button(icon, **props)
163
+ def fillediconbutton(icon = nil, **props) = control_delegate.fillediconbutton(icon, **props)
164
+ def filled_tonal_button(content = nil, **props) = control_delegate.filled_tonal_button(content, **props)
165
+ def filledtonalbutton(content = nil, **props) = control_delegate.filledtonalbutton(content, **props)
166
+ def filled_tonal_icon_button(icon = nil, **props) = control_delegate.filled_tonal_icon_button(icon, **props)
167
+ def filledtonaliconbutton(icon = nil, **props) = control_delegate.filledtonaliconbutton(icon, **props)
168
+ def outlined_button(content = nil, **props) = control_delegate.outlined_button(content, **props)
169
+ def outlinedbutton(content = nil, **props) = control_delegate.outlinedbutton(content, **props)
170
+ def outlined_icon_button(icon = nil, **props) = control_delegate.outlined_icon_button(icon, **props)
171
+ def outlinediconbutton(icon = nil, **props) = control_delegate.outlinediconbutton(icon, **props)
172
+ def icon_button(icon = nil, **props) = control_delegate.icon_button(icon, **props)
173
+ def iconbutton(icon = nil, **props) = control_delegate.iconbutton(icon, **props)
174
+ def popup_menu_button(items = nil, **props) = control_delegate.popup_menu_button(items, **props)
175
+ def popupmenubutton(items = nil, **props) = control_delegate.popupmenubutton(items, **props)
176
+ def popup_menu_item(content = nil, **props) = control_delegate.popup_menu_item(content, **props)
177
+ def popupmenuitem(content = nil, **props) = control_delegate.popupmenuitem(content, **props)
178
+ def text_field(value = nil, **props) = control_delegate.text_field(value, **props)
179
+ def textfield(value = nil, **props) = control_delegate.textfield(value, **props)
33
180
  def checkbox(**props) = control_delegate.checkbox(**props)
181
+ def switch(**props) = control_delegate.switch(**props)
182
+ def slider(**props) = control_delegate.slider(**props)
183
+ def transparent_pointer(content = nil, **props) = control_delegate.transparent_pointer(content, **props)
184
+ def transparentpointer(content = nil, **props) = control_delegate.transparentpointer(content, **props)
34
185
  def radio(**props) = control_delegate.radio(**props)
35
- def radio_group(**props) = control_delegate.radio_group(**props)
36
- def radiogroup(**props) = control_delegate.radiogroup(**props)
186
+ def radio_group(content = nil, **props) = control_delegate.radio_group(content, **props)
187
+ def radiogroup(content = nil, **props) = control_delegate.radiogroup(content, **props)
37
188
  def alert_dialog(**props) = control_delegate.alert_dialog(**props)
38
189
  def alertdialog(**props) = control_delegate.alertdialog(**props)
39
- def snack_bar(**props) = control_delegate.snack_bar(**props)
40
- def snackbar(**props) = control_delegate.snackbar(**props)
41
- def bottom_sheet(**props) = control_delegate.bottom_sheet(**props)
42
- def bottomsheet(**props) = control_delegate.bottomsheet(**props)
190
+ def snack_bar(content = nil, **props) = control_delegate.snack_bar(content, **props)
191
+ def snackbar(content = nil, **props) = control_delegate.snackbar(content, **props)
192
+ def bottom_sheet(content = nil, **props) = control_delegate.bottom_sheet(content, **props)
193
+ def bottomsheet(content = nil, **props) = control_delegate.bottomsheet(content, **props)
43
194
  def markdown(value = nil, **props) = control_delegate.markdown(value, **props)
44
- def icon(**props) = control_delegate.icon(**props)
195
+ def icon(icon = nil, **props) = control_delegate.icon(icon, **props)
45
196
  def image(src = nil, **props) = control_delegate.image(src, **props)
46
197
  def fab(content = nil, **props) = control_delegate.fab(content, **props)
198
+ def interactive_viewer(content = nil, **props) = control_delegate.interactive_viewer(content, **props)
199
+ def interactiveviewer(content = nil, **props) = control_delegate.interactiveviewer(content, **props)
47
200
  def app_bar(**props) = control_delegate.app_bar(**props)
48
201
  def appbar(**props) = control_delegate.appbar(**props)
49
202
  def clipboard(**props) = control_delegate.clipboard(**props)
50
203
  def floating_action_button(**props) = control_delegate.floating_action_button(**props)
51
204
  def floatingactionbutton(**props) = control_delegate.floatingactionbutton(**props)
52
- def tabs(**props, &block) = control_delegate.tabs(**props, &block)
53
- def tab(**props, &block) = control_delegate.tab(**props, &block)
54
- def tab_bar(**props, &block) = control_delegate.tab_bar(**props, &block)
55
- def tabbar(**props, &block) = control_delegate.tabbar(**props, &block)
56
- def tab_bar_view(**props, &block) = control_delegate.tab_bar_view(**props, &block)
57
- def tabbarview(**props, &block) = control_delegate.tabbarview(**props, &block)
205
+ def tabs(content = nil, **props, &block) = control_delegate.tabs(content, **props, &block)
206
+ def tab(label = nil, **props, &block) = control_delegate.tab(label, **props, &block)
207
+ def tab_bar(tabs = nil, **props, &block) = control_delegate.tab_bar(tabs, **props, &block)
208
+ def tabbar(tabs = nil, **props, &block) = control_delegate.tabbar(tabs, **props, &block)
209
+ def tab_bar_view(children = nil, **props, &block) = control_delegate.tab_bar_view(children, **props, &block)
210
+ def tabbarview(children = nil, **props, &block) = control_delegate.tabbarview(children, **props, &block)
58
211
  def navigation_bar(**props, &block) = control_delegate.navigation_bar(**props, &block)
59
212
  def navigationbar(**props, &block) = control_delegate.navigationbar(**props, &block)
60
213
  def navigation_bar_destination(**props, &block) = control_delegate.navigation_bar_destination(**props, &block)
61
214
  def navigationbardestination(**props, &block) = control_delegate.navigationbardestination(**props, &block)
215
+ def navigation_rail(**props, &block) = control_delegate.navigation_rail(**props, &block)
216
+ def navigationrail(**props, &block) = control_delegate.navigationrail(**props, &block)
217
+ def navigation_rail_destination(**props, &block) = control_delegate.navigation_rail_destination(**props, &block)
218
+ def navigationraildestination(**props, &block) = control_delegate.navigationraildestination(**props, &block)
219
+ def navigation_drawer(children = nil, **props) = control_delegate.navigation_drawer(children, **props)
220
+ def navigationdrawer(children = nil, **props) = control_delegate.navigationdrawer(children, **props)
221
+ def navigation_drawer_destination(**props) = control_delegate.navigation_drawer_destination(**props)
222
+ def navigationdrawerdestination(**props) = control_delegate.navigationdrawerdestination(**props)
62
223
  def bar_chart(**props) = control_delegate.bar_chart(**props)
63
224
  def barchart(**props) = control_delegate.barchart(**props)
64
225
  def bar_chart_group(**props) = control_delegate.bar_chart_group(**props)
@@ -99,24 +260,55 @@ module Ruflet
99
260
  def chartaxislabel(**props) = control_delegate.chartaxislabel(**props)
100
261
  def web_view(**props) = control_delegate.web_view(**props)
101
262
  def webview(**props) = control_delegate.webview(**props)
102
- def cupertino_button(**props) = control_delegate.cupertino_button(**props)
103
- def cupertinobutton(**props) = control_delegate.cupertinobutton(**props)
104
- def cupertino_filled_button(**props) = control_delegate.cupertino_filled_button(**props)
105
- def cupertinofilledbutton(**props) = control_delegate.cupertinofilledbutton(**props)
106
- def cupertino_text_field(**props) = control_delegate.cupertino_text_field(**props)
107
- def cupertinotextfield(**props) = control_delegate.cupertinotextfield(**props)
263
+ def video(**props) = control_delegate.video(**props)
264
+ def cupertino_button(content = nil, **props) = control_delegate.cupertino_button(content, **props)
265
+ def cupertinobutton(content = nil, **props) = control_delegate.cupertinobutton(content, **props)
266
+ def cupertino_filled_button(content = nil, **props) = control_delegate.cupertino_filled_button(content, **props)
267
+ def cupertinofilledbutton(content = nil, **props) = control_delegate.cupertinofilledbutton(content, **props)
268
+ def cupertino_tinted_button(content = nil, **props) = control_delegate.cupertino_tinted_button(content, **props)
269
+ def cupertinotintedbutton(content = nil, **props) = control_delegate.cupertinotintedbutton(content, **props)
270
+ def cupertino_checkbox(**props) = control_delegate.cupertino_checkbox(**props)
271
+ def cupertinocheckbox(**props) = control_delegate.cupertinocheckbox(**props)
272
+ def cupertino_text_field(value = nil, **props) = control_delegate.cupertino_text_field(value, **props)
273
+ def cupertinotextfield(value = nil, **props) = control_delegate.cupertinotextfield(value, **props)
274
+ def cupertino_timer_picker(**props) = control_delegate.cupertino_timer_picker(**props)
275
+ def cupertinotimerpicker(**props) = control_delegate.cupertinotimerpicker(**props)
108
276
  def cupertino_switch(**props) = control_delegate.cupertino_switch(**props)
109
277
  def cupertinoswitch(**props) = control_delegate.cupertinoswitch(**props)
110
278
  def cupertino_slider(**props) = control_delegate.cupertino_slider(**props)
111
279
  def cupertinoslider(**props) = control_delegate.cupertinoslider(**props)
280
+ def cupertino_radio(**props) = control_delegate.cupertino_radio(**props)
281
+ def cupertinoradio(**props) = control_delegate.cupertinoradio(**props)
112
282
  def cupertino_alert_dialog(**props) = control_delegate.cupertino_alert_dialog(**props)
113
283
  def cupertinoalertdialog(**props) = control_delegate.cupertinoalertdialog(**props)
114
284
  def cupertino_action_sheet(**props) = control_delegate.cupertino_action_sheet(**props)
115
285
  def cupertinoactionsheet(**props) = control_delegate.cupertinoactionsheet(**props)
286
+ def cupertino_action_sheet_action(**props) = control_delegate.cupertino_action_sheet_action(**props)
287
+ def cupertinoactionsheetaction(**props) = control_delegate.cupertinoactionsheetaction(**props)
288
+ def cupertino_activity_indicator(**props) = control_delegate.cupertino_activity_indicator(**props)
289
+ def cupertinoactivityindicator(**props) = control_delegate.cupertinoactivityindicator(**props)
290
+ def cupertino_app_bar(**props) = control_delegate.cupertino_app_bar(**props)
291
+ def cupertinoappbar(**props) = control_delegate.cupertinoappbar(**props)
292
+ def cupertino_bottom_sheet(content = nil, **props) = control_delegate.cupertino_bottom_sheet(content, **props)
293
+ def cupertinobottomsheet(content = nil, **props) = control_delegate.cupertinobottomsheet(content, **props)
294
+ def cupertino_date_picker(**props) = control_delegate.cupertino_date_picker(**props)
295
+ def cupertinodatepicker(**props) = control_delegate.cupertinodatepicker(**props)
116
296
  def cupertino_dialog_action(**props) = control_delegate.cupertino_dialog_action(**props)
117
297
  def cupertinodialogaction(**props) = control_delegate.cupertinodialogaction(**props)
298
+ def cupertino_context_menu(**props) = control_delegate.cupertino_context_menu(**props)
299
+ def cupertinocontextmenu(**props) = control_delegate.cupertinocontextmenu(**props)
300
+ def cupertino_context_menu_action(**props) = control_delegate.cupertino_context_menu_action(**props)
301
+ def cupertinocontextmenuaction(**props) = control_delegate.cupertinocontextmenuaction(**props)
302
+ def cupertino_list_tile(**props) = control_delegate.cupertino_list_tile(**props)
303
+ def cupertinolisttile(**props) = control_delegate.cupertinolisttile(**props)
118
304
  def cupertino_navigation_bar(**props) = control_delegate.cupertino_navigation_bar(**props)
119
305
  def cupertinonavigationbar(**props) = control_delegate.cupertinonavigationbar(**props)
306
+ def cupertino_picker(children = nil, **props) = control_delegate.cupertino_picker(children, **props)
307
+ def cupertinopicker(children = nil, **props) = control_delegate.cupertinopicker(children, **props)
308
+ def cupertino_segmented_button(children = nil, **props) = control_delegate.cupertino_segmented_button(children, **props)
309
+ def cupertinosegmentedbutton(children = nil, **props) = control_delegate.cupertinosegmentedbutton(children, **props)
310
+ def cupertino_sliding_segmented_button(children = nil, **props) = control_delegate.cupertino_sliding_segmented_button(children, **props)
311
+ def cupertinoslidingsegmentedbutton(children = nil, **props) = control_delegate.cupertinoslidingsegmentedbutton(children, **props)
120
312
  def duration(**parts) = control_delegate.duration(**parts)
121
313
 
122
314
  private
data/lib/ruflet_ui.rb CHANGED
@@ -5,6 +5,7 @@ require_relative "ruflet_ui/ruflet/colors"
5
5
  require_relative "ruflet_ui/ruflet/icon_data"
6
6
  require_relative "ruflet_ui/ruflet/icons/material/material_icons"
7
7
  require_relative "ruflet_ui/ruflet/icons/cupertino/cupertino_icons"
8
+ require_relative "ruflet_ui/ruflet/types/animation"
8
9
  require_relative "ruflet_ui/ruflet/types/text_style"
9
10
  require_relative "ruflet_ui/ruflet/types/geometry"
10
11
  require_relative "ruflet_ui/ruflet/control"
@@ -26,6 +27,9 @@ module Ruflet
26
27
  TextDecorationStyle = UI::Types::TextDecorationStyle
27
28
  Offset = UI::Types::Offset
28
29
  Duration = UI::Types::Duration
30
+ Animation = UI::Types::Animation
31
+ AnimationStyle = UI::Types::AnimationStyle
32
+ AnimationCurve = UI::Types::AnimationCurve
29
33
 
30
34
  module MainAxisAlignment
31
35
  CENTER = "center"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruflet_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - AdamMusa
@@ -37,6 +37,7 @@ files:
37
37
  - lib/ruflet_ui/ruflet/icons/material/material_icons.rb
38
38
  - lib/ruflet_ui/ruflet/icons/material_icon_lookup.rb
39
39
  - lib/ruflet_ui/ruflet/page.rb
40
+ - lib/ruflet_ui/ruflet/types/animation.rb
40
41
  - lib/ruflet_ui/ruflet/types/geometry.rb
41
42
  - lib/ruflet_ui/ruflet/types/text_style.rb
42
43
  - lib/ruflet_ui/ruflet/ui/control_factory.rb
@@ -71,6 +72,7 @@ files:
71
72
  - lib/ruflet_ui/ruflet/ui/controls/materials/appbar_control.rb
72
73
  - lib/ruflet_ui/ruflet/ui/controls/materials/audio_control.rb
73
74
  - lib/ruflet_ui/ruflet/ui/controls/materials/autocomplete_control.rb
75
+ - lib/ruflet_ui/ruflet/ui/controls/materials/autocompletesuggestion_control.rb
74
76
  - lib/ruflet_ui/ruflet/ui/controls/materials/badge_control.rb
75
77
  - lib/ruflet_ui/ruflet/ui/controls/materials/banner_control.rb
76
78
  - lib/ruflet_ui/ruflet/ui/controls/materials/bottomappbar_control.rb
@@ -103,6 +105,7 @@ files:
103
105
  - lib/ruflet_ui/ruflet/ui/controls/materials/floatingactionbutton_control.rb
104
106
  - lib/ruflet_ui/ruflet/ui/controls/materials/iconbutton_control.rb
105
107
  - lib/ruflet_ui/ruflet/ui/controls/materials/listtile_control.rb
108
+ - lib/ruflet_ui/ruflet/ui/controls/materials/map_controls.rb
106
109
  - lib/ruflet_ui/ruflet/ui/controls/materials/menubar_control.rb
107
110
  - lib/ruflet_ui/ruflet/ui/controls/materials/menuitembutton_control.rb
108
111
  - lib/ruflet_ui/ruflet/ui/controls/materials/navigationbar_control.rb
@@ -201,6 +204,7 @@ files:
201
204
  - lib/ruflet_ui/ruflet/ui/material_control_methods.rb
202
205
  - lib/ruflet_ui/ruflet/ui/material_control_registry.rb
203
206
  - lib/ruflet_ui/ruflet/ui/services/ruflet/accelerometer_control.rb
207
+ - lib/ruflet_ui/ruflet/ui/services/ruflet/audio_recorder_control.rb
204
208
  - lib/ruflet_ui/ruflet/ui/services/ruflet/barometer_control.rb
205
209
  - lib/ruflet_ui/ruflet/ui/services/ruflet/battery_control.rb
206
210
  - lib/ruflet_ui/ruflet/ui/services/ruflet/camera_control.rb
@@ -208,16 +212,20 @@ files:
208
212
  - lib/ruflet_ui/ruflet/ui/services/ruflet/connectivity_control.rb
209
213
  - lib/ruflet_ui/ruflet/ui/services/ruflet/filepicker_control.rb
210
214
  - lib/ruflet_ui/ruflet/ui/services/ruflet/flashlight_control.rb
215
+ - lib/ruflet_ui/ruflet/ui/services/ruflet/geolocator_control.rb
211
216
  - lib/ruflet_ui/ruflet/ui/services/ruflet/gyroscope_control.rb
212
217
  - lib/ruflet_ui/ruflet/ui/services/ruflet/hapticfeedback_control.rb
213
218
  - lib/ruflet_ui/ruflet/ui/services/ruflet/magnetometer_control.rb
219
+ - lib/ruflet_ui/ruflet/ui/services/ruflet/permissionhandler_control.rb
214
220
  - lib/ruflet_ui/ruflet/ui/services/ruflet/screenbrightness_control.rb
215
221
  - lib/ruflet_ui/ruflet/ui/services/ruflet/screenshot_control.rb
222
+ - lib/ruflet_ui/ruflet/ui/services/ruflet/securestorage_control.rb
216
223
  - lib/ruflet_ui/ruflet/ui/services/ruflet/semanticsservice_control.rb
217
224
  - lib/ruflet_ui/ruflet/ui/services/ruflet/shakedetector_control.rb
218
225
  - lib/ruflet_ui/ruflet/ui/services/ruflet/share_control.rb
219
226
  - lib/ruflet_ui/ruflet/ui/services/ruflet/sharedpreferences_control.rb
220
227
  - lib/ruflet_ui/ruflet/ui/services/ruflet/storagepaths_control.rb
228
+ - lib/ruflet_ui/ruflet/ui/services/ruflet/tester_control.rb
221
229
  - lib/ruflet_ui/ruflet/ui/services/ruflet/urllauncher_control.rb
222
230
  - lib/ruflet_ui/ruflet/ui/services/ruflet/useraccelerometer_control.rb
223
231
  - lib/ruflet_ui/ruflet/ui/services/ruflet/wakelock_control.rb