ruflet 0.0.7 → 0.0.8
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.
- checksums.yaml +4 -4
- data/lib/ruflet/version.rb +1 -1
- data/lib/ruflet_ui/ruflet/app.rb +10 -14
- data/lib/ruflet_ui/ruflet/control.rb +120 -7
- data/lib/ruflet_ui/ruflet/dsl.rb +68 -4
- data/lib/ruflet_ui/ruflet/event.rb +15 -1
- data/lib/ruflet_ui/ruflet/events/gesture_events.rb +552 -0
- data/lib/ruflet_ui/ruflet/page.rb +558 -77
- data/lib/ruflet_ui/ruflet/types/geometry.rb +65 -0
- data/lib/ruflet_ui/ruflet/types/text_style.rb +191 -0
- data/lib/ruflet_ui/ruflet/ui/control_factory.rb +35 -5
- data/lib/ruflet_ui/ruflet/ui/control_methods.rb +1 -0
- data/lib/ruflet_ui/ruflet/ui/control_registry.rb +22 -2
- data/lib/ruflet_ui/ruflet/ui/controls/cupertinos/cupertinoactionsheet_control.rb +57 -0
- data/lib/ruflet_ui/ruflet/ui/controls/cupertinos/cupertinoactionsheetaction_control.rb +58 -0
- data/lib/ruflet_ui/ruflet/ui/controls/cupertinos/cupertinoactivityindicator_control.rb +57 -0
- data/lib/ruflet_ui/ruflet/ui/controls/cupertinos/cupertinoalertdialog_control.rb +39 -0
- data/lib/ruflet_ui/ruflet/ui/controls/cupertinos/cupertinoappbar_control.rb +44 -0
- data/lib/ruflet_ui/ruflet/ui/controls/cupertinos/cupertinobottomsheet_control.rb +38 -0
- data/lib/ruflet_ui/ruflet/ui/controls/cupertinos/cupertinobutton_control.rb +73 -0
- data/lib/ruflet_ui/ruflet/ui/controls/cupertinos/cupertinocheckbox_control.rb +70 -0
- data/lib/ruflet_ui/ruflet/ui/controls/cupertinos/cupertinocontextmenu_control.rb +34 -0
- data/lib/ruflet_ui/ruflet/ui/controls/cupertinos/cupertinocontextmenuaction_control.rb +36 -0
- data/lib/ruflet_ui/ruflet/ui/controls/cupertinos/cupertinodatepicker_control.rb +67 -0
- data/lib/ruflet_ui/ruflet/ui/controls/cupertinos/cupertinodialogaction_control.rb +35 -0
- data/lib/ruflet_ui/ruflet/ui/controls/cupertinos/cupertinofilledbutton_control.rb +73 -0
- data/lib/ruflet_ui/ruflet/ui/controls/cupertinos/cupertinolisttile_control.rb +67 -0
- data/lib/ruflet_ui/ruflet/ui/controls/cupertinos/cupertinonavigationbar_control.rb +61 -0
- data/lib/ruflet_ui/ruflet/ui/controls/cupertinos/cupertinopicker_control.rb +66 -0
- data/lib/ruflet_ui/ruflet/ui/controls/cupertinos/cupertinoradio_control.rb +66 -0
- data/lib/ruflet_ui/ruflet/ui/controls/cupertinos/cupertinosegmentedbutton_control.rb +63 -0
- data/lib/ruflet_ui/ruflet/ui/controls/cupertinos/cupertinoslider_control.rb +64 -0
- data/lib/ruflet_ui/ruflet/ui/controls/cupertinos/cupertinoslidingsegmentedbutton_control.rb +60 -0
- data/lib/ruflet_ui/ruflet/ui/controls/cupertinos/cupertinoswitch_control.rb +73 -0
- data/lib/ruflet_ui/ruflet/ui/controls/cupertinos/cupertinotextfield_control.rb +159 -0
- data/lib/ruflet_ui/ruflet/ui/controls/cupertinos/cupertinotimerpicker_control.rb +61 -0
- data/lib/ruflet_ui/ruflet/ui/controls/cupertinos/cupertinotintedbutton_control.rb +73 -0
- data/lib/ruflet_ui/ruflet/ui/controls/cupertinos/ruflet_controls.rb +89 -0
- data/lib/ruflet_ui/ruflet/ui/controls/materials/alertdialog_control.rb +58 -0
- data/lib/ruflet_ui/ruflet/ui/controls/materials/appbar_control.rb +53 -0
- data/lib/ruflet_ui/ruflet/ui/controls/materials/audio_control.rb +36 -0
- data/lib/ruflet_ui/ruflet/ui/controls/materials/autocomplete_control.rb +58 -0
- data/lib/ruflet_ui/ruflet/ui/controls/materials/badge_control.rb +31 -0
- data/lib/ruflet_ui/ruflet/ui/controls/materials/banner_control.rb +47 -0
- data/lib/ruflet_ui/ruflet/ui/controls/materials/bottomappbar_control.rb +62 -0
- data/lib/ruflet_ui/ruflet/ui/controls/materials/bottomsheet_control.rb +48 -0
- data/lib/ruflet_ui/ruflet/ui/controls/materials/button_control.rb +69 -0
- data/lib/ruflet_ui/ruflet/ui/controls/materials/card_control.rb +63 -0
- data/lib/ruflet_ui/ruflet/ui/controls/materials/chart_controls.rb +321 -0
- data/lib/ruflet_ui/ruflet/ui/controls/materials/checkbox_control.rb +76 -0
- data/lib/ruflet_ui/ruflet/ui/controls/materials/chip_control.rb +88 -0
- data/lib/ruflet_ui/ruflet/ui/controls/materials/circleavatar_control.rb +62 -0
- data/lib/ruflet_ui/ruflet/ui/controls/materials/container_control.rb +81 -0
- data/lib/ruflet_ui/ruflet/ui/controls/materials/contextmenu_control.rb +63 -0
- data/lib/ruflet_ui/ruflet/ui/controls/materials/datacell_control.rb +38 -0
- data/lib/ruflet_ui/ruflet/ui/controls/materials/datacolumn_control.rb +34 -0
- data/lib/ruflet_ui/ruflet/ui/controls/materials/datarow_control.rb +35 -0
- data/lib/ruflet_ui/ruflet/ui/controls/materials/datatable_control.rb +78 -0
- data/lib/ruflet_ui/ruflet/ui/controls/materials/datepicker_control.rb +55 -0
- data/lib/ruflet_ui/ruflet/ui/controls/materials/daterangepicker_control.rb +57 -0
- data/lib/ruflet_ui/ruflet/ui/controls/materials/divider_control.rb +36 -0
- data/lib/ruflet_ui/ruflet/ui/controls/materials/dropdown_control.rb +99 -0
- data/lib/ruflet_ui/ruflet/ui/controls/materials/dropdownm2_control.rb +119 -0
- data/lib/ruflet_ui/ruflet/ui/controls/materials/dropdownoption_control.rb +35 -0
- data/lib/ruflet_ui/ruflet/ui/controls/materials/expansionpanel_control.rb +61 -0
- data/lib/ruflet_ui/ruflet/ui/controls/materials/expansionpanellist_control.rb +60 -0
- data/lib/ruflet_ui/ruflet/ui/controls/materials/expansiontile_control.rb +82 -0
- data/lib/ruflet_ui/ruflet/ui/controls/materials/filledbutton_control.rb +69 -0
- data/lib/ruflet_ui/ruflet/ui/controls/materials/fillediconbutton_control.rb +81 -0
- data/lib/ruflet_ui/ruflet/ui/controls/materials/filledtonalbutton_control.rb +69 -0
- data/lib/ruflet_ui/ruflet/ui/controls/materials/filledtonaliconbutton_control.rb +81 -0
- data/lib/ruflet_ui/ruflet/ui/controls/materials/floatingactionbutton_control.rb +73 -0
- data/lib/ruflet_ui/ruflet/ui/controls/materials/iconbutton_control.rb +81 -0
- data/lib/ruflet_ui/ruflet/ui/controls/materials/listtile_control.rb +87 -0
- data/lib/ruflet_ui/ruflet/ui/controls/materials/menubar_control.rb +33 -0
- data/lib/ruflet_ui/ruflet/ui/controls/materials/menuitembutton_control.rb +67 -0
- data/lib/ruflet_ui/ruflet/ui/controls/materials/navigationbar_control.rb +67 -0
- data/lib/ruflet_ui/ruflet/ui/controls/materials/navigationbardestination_control.rb +35 -0
- data/lib/ruflet_ui/ruflet/ui/controls/materials/navigationdrawer_control.rb +41 -0
- data/lib/ruflet_ui/ruflet/ui/controls/materials/navigationdrawerdestination_control.rb +34 -0
- data/lib/ruflet_ui/ruflet/ui/controls/materials/navigationrail_control.rb +70 -0
- data/lib/ruflet_ui/ruflet/ui/controls/materials/navigationraildestination_control.rb +36 -0
- data/lib/ruflet_ui/ruflet/ui/controls/materials/option_control.rb +35 -0
- data/lib/ruflet_ui/ruflet/ui/controls/materials/outlinedbutton_control.rb +66 -0
- data/lib/ruflet_ui/ruflet/ui/controls/materials/outlinediconbutton_control.rb +81 -0
- data/lib/ruflet_ui/ruflet/ui/controls/materials/popupmenubutton_control.rb +74 -0
- data/lib/ruflet_ui/ruflet/ui/controls/materials/popupmenuitem_control.rb +38 -0
- data/lib/ruflet_ui/ruflet/ui/controls/materials/progressbar_control.rb +64 -0
- data/lib/ruflet_ui/ruflet/ui/controls/materials/progressring_control.rb +65 -0
- data/lib/ruflet_ui/ruflet/ui/controls/materials/radio_control.rb +70 -0
- data/lib/ruflet_ui/ruflet/ui/controls/materials/radiogroup_control.rb +33 -0
- data/lib/ruflet_ui/ruflet/ui/controls/materials/rangeslider_control.rb +67 -0
- data/lib/ruflet_ui/ruflet/ui/controls/materials/reorderablelistview_control.rb +80 -0
- data/lib/ruflet_ui/ruflet/ui/controls/materials/ruflet_controls.rb +252 -0
- data/lib/ruflet_ui/ruflet/ui/controls/materials/searchbar_control.rb +94 -0
- data/lib/ruflet_ui/ruflet/ui/controls/materials/segment_control.rb +33 -0
- data/lib/ruflet_ui/ruflet/ui/controls/materials/segmentedbutton_control.rb +63 -0
- data/lib/ruflet_ui/ruflet/ui/controls/materials/selectionarea_control.rb +32 -0
- data/lib/ruflet_ui/ruflet/ui/controls/materials/slider_control.rb +76 -0
- data/lib/ruflet_ui/ruflet/ui/controls/materials/snackbar_control.rb +51 -0
- data/lib/ruflet_ui/ruflet/ui/controls/materials/submenubutton_control.rb +66 -0
- data/lib/ruflet_ui/ruflet/ui/controls/materials/switch_control.rb +77 -0
- data/lib/ruflet_ui/ruflet/ui/controls/materials/tab_control.rb +35 -0
- data/lib/ruflet_ui/ruflet/ui/controls/materials/tabbar_control.rb +77 -0
- data/lib/ruflet_ui/ruflet/ui/controls/materials/tabbarview_control.rb +57 -0
- data/lib/ruflet_ui/ruflet/ui/controls/materials/tabs_control.rb +59 -0
- data/lib/ruflet_ui/ruflet/ui/controls/materials/textbutton_control.rb +66 -0
- data/lib/ruflet_ui/ruflet/ui/controls/materials/textfield_control.rb +148 -0
- data/lib/ruflet_ui/ruflet/ui/controls/materials/timepicker_control.rb +50 -0
- data/lib/ruflet_ui/ruflet/ui/controls/materials/verticaldivider_control.rb +36 -0
- data/lib/ruflet_ui/ruflet/ui/controls/materials/video_control.rb +39 -0
- data/lib/ruflet_ui/ruflet/ui/controls/materials/webview_control.rb +35 -0
- data/lib/ruflet_ui/ruflet/ui/controls/ruflet_controls.rb +447 -0
- data/lib/ruflet_ui/ruflet/ui/controls/shared/animatedswitcher_control.rb +59 -0
- data/lib/ruflet_ui/ruflet/ui/controls/shared/arc_control.rb +29 -0
- data/lib/ruflet_ui/ruflet/ui/controls/shared/autofillgroup_control.rb +32 -0
- data/lib/ruflet_ui/ruflet/ui/controls/shared/basepage_control.rb +44 -0
- data/lib/ruflet_ui/ruflet/ui/controls/shared/browsercontextmenu_control.rb +21 -0
- data/lib/ruflet_ui/ruflet/ui/controls/shared/canvas_control.rb +57 -0
- data/lib/ruflet_ui/ruflet/ui/controls/shared/circle_control.rb +25 -0
- data/lib/ruflet_ui/ruflet/ui/controls/shared/color_control.rb +23 -0
- data/lib/ruflet_ui/ruflet/ui/controls/shared/column_control.rb +67 -0
- data/lib/ruflet_ui/ruflet/ui/controls/shared/dialogs_control.rb +22 -0
- data/lib/ruflet_ui/ruflet/ui/controls/shared/dismissible_control.rb +66 -0
- data/lib/ruflet_ui/ruflet/ui/controls/shared/draggable_control.rb +39 -0
- data/lib/ruflet_ui/ruflet/ui/controls/shared/dragtarget_control.rb +36 -0
- data/lib/ruflet_ui/ruflet/ui/controls/shared/fill_control.rb +22 -0
- data/lib/ruflet_ui/ruflet/ui/controls/shared/fletapp_control.rb +62 -0
- data/lib/ruflet_ui/ruflet/ui/controls/shared/gesturedetector_control.rb +129 -0
- data/lib/ruflet_ui/ruflet/ui/controls/shared/gridview_control.rb +71 -0
- data/lib/ruflet_ui/ruflet/ui/controls/shared/hero_control.rb +56 -0
- data/lib/ruflet_ui/ruflet/ui/controls/shared/icon_control.rb +64 -0
- data/lib/ruflet_ui/ruflet/ui/controls/shared/image_control.rb +27 -0
- data/lib/ruflet_ui/ruflet/ui/controls/shared/interactiveviewer_control.rb +69 -0
- data/lib/ruflet_ui/ruflet/ui/controls/shared/keyboardlistener_control.rb +36 -0
- data/lib/ruflet_ui/ruflet/ui/controls/shared/line_control.rb +26 -0
- data/lib/ruflet_ui/ruflet/ui/controls/shared/listview_control.rb +71 -0
- data/lib/ruflet_ui/ruflet/ui/controls/shared/markdown_control.rb +70 -0
- data/lib/ruflet_ui/ruflet/ui/controls/shared/mergesemantics_control.rb +31 -0
- data/lib/ruflet_ui/ruflet/ui/controls/shared/oval_control.rb +26 -0
- data/lib/ruflet_ui/ruflet/ui/controls/shared/overlay_control.rb +22 -0
- data/lib/ruflet_ui/ruflet/ui/controls/shared/page_control.rb +74 -0
- data/lib/ruflet_ui/ruflet/ui/controls/shared/pagelet_control.rb +64 -0
- data/lib/ruflet_ui/ruflet/ui/controls/shared/pageview_control.rb +64 -0
- data/lib/ruflet_ui/ruflet/ui/controls/shared/path_control.rb +23 -0
- data/lib/ruflet_ui/ruflet/ui/controls/shared/placeholder_control.rb +58 -0
- data/lib/ruflet_ui/ruflet/ui/controls/shared/points_control.rb +24 -0
- data/lib/ruflet_ui/ruflet/ui/controls/shared/rect_control.rb +27 -0
- data/lib/ruflet_ui/ruflet/ui/controls/shared/reorderabledraghandle_control.rb +56 -0
- data/lib/ruflet_ui/ruflet/ui/controls/shared/responsiverow_control.rb +61 -0
- data/lib/ruflet_ui/ruflet/ui/controls/shared/row_control.rb +67 -0
- data/lib/ruflet_ui/ruflet/ui/controls/shared/ruflet_controls.rb +140 -0
- data/lib/ruflet_ui/ruflet/ui/controls/shared/safearea_control.rb +61 -0
- data/lib/ruflet_ui/ruflet/ui/controls/shared/semantics_control.rb +79 -0
- data/lib/ruflet_ui/ruflet/ui/controls/shared/serviceregistry_control.rb +21 -0
- data/lib/ruflet_ui/ruflet/ui/controls/shared/shadermask_control.rb +57 -0
- data/lib/ruflet_ui/ruflet/ui/controls/shared/shadow_control.rb +25 -0
- data/lib/ruflet_ui/ruflet/ui/controls/shared/shimmer_control.rb +60 -0
- data/lib/ruflet_ui/ruflet/ui/controls/shared/stack_control.rb +58 -0
- data/lib/ruflet_ui/ruflet/ui/controls/shared/text_control.rb +32 -0
- data/lib/ruflet_ui/ruflet/ui/controls/shared/textspan_control.rb +39 -0
- data/lib/ruflet_ui/ruflet/ui/controls/shared/transparentpointer_control.rb +54 -0
- data/lib/ruflet_ui/ruflet/ui/controls/shared/view_control.rb +77 -0
- data/lib/ruflet_ui/ruflet/ui/controls/shared/window_control.rb +56 -0
- data/lib/ruflet_ui/ruflet/ui/controls/shared/windowdragarea_control.rb +58 -0
- data/lib/ruflet_ui/ruflet/ui/cupertino_control_factory.rb +3 -30
- data/lib/ruflet_ui/ruflet/ui/material_control_factory.rb +3 -87
- data/lib/ruflet_ui/ruflet/ui/material_control_methods.rb +44 -2
- data/lib/ruflet_ui/ruflet/ui/material_control_registry.rb +26 -12
- data/lib/ruflet_ui/ruflet/ui/services/ruflet/accelerometer_control.rb +26 -0
- data/lib/ruflet_ui/ruflet/ui/services/ruflet/barometer_control.rb +26 -0
- data/lib/ruflet_ui/ruflet/ui/services/ruflet/battery_control.rb +22 -0
- data/lib/ruflet_ui/ruflet/ui/services/ruflet/camera_control.rb +58 -0
- data/lib/ruflet_ui/ruflet/ui/services/ruflet/clipboard_control.rb +21 -0
- data/lib/ruflet_ui/ruflet/ui/services/ruflet/connectivity_control.rb +22 -0
- data/lib/ruflet_ui/ruflet/ui/services/ruflet/filepicker_control.rb +23 -0
- data/lib/ruflet_ui/ruflet/ui/services/ruflet/flashlight_control.rb +22 -0
- data/lib/ruflet_ui/ruflet/ui/services/ruflet/gyroscope_control.rb +26 -0
- data/lib/ruflet_ui/ruflet/ui/services/ruflet/hapticfeedback_control.rb +21 -0
- data/lib/ruflet_ui/ruflet/ui/services/ruflet/magnetometer_control.rb +26 -0
- data/lib/ruflet_ui/ruflet/ui/services/ruflet/screenbrightness_control.rb +23 -0
- data/lib/ruflet_ui/ruflet/ui/services/ruflet/screenshot_control.rb +31 -0
- data/lib/ruflet_ui/ruflet/ui/services/ruflet/semanticsservice_control.rb +21 -0
- data/lib/ruflet_ui/ruflet/ui/services/ruflet/shakedetector_control.rb +26 -0
- data/lib/ruflet_ui/ruflet/ui/services/ruflet/share_control.rb +21 -0
- data/lib/ruflet_ui/ruflet/ui/services/ruflet/sharedpreferences_control.rb +21 -0
- data/lib/ruflet_ui/ruflet/ui/services/ruflet/storagepaths_control.rb +21 -0
- data/lib/ruflet_ui/ruflet/ui/services/ruflet/urllauncher_control.rb +21 -0
- data/lib/ruflet_ui/ruflet/ui/services/ruflet/useraccelerometer_control.rb +26 -0
- data/lib/ruflet_ui/ruflet/ui/services/ruflet/wakelock_control.rb +21 -0
- data/lib/ruflet_ui/ruflet/ui/services/ruflet_services.rb +66 -0
- data/lib/ruflet_ui/ruflet/ui/shared_control_forwarders.rb +41 -1
- data/lib/ruflet_ui/ruflet/ui/widget_builder.rb +9 -0
- data/lib/ruflet_ui.rb +14 -1
- metadata +178 -44
- data/lib/ruflet/manifest_compiler.rb +0 -62
- data/lib/ruflet_ui/ruflet/ui/controls/cupertino/cupertino_action_sheet_control.rb +0 -13
- data/lib/ruflet_ui/ruflet/ui/controls/cupertino/cupertino_alert_dialog_control.rb +0 -13
- data/lib/ruflet_ui/ruflet/ui/controls/cupertino/cupertino_button_control.rb +0 -13
- data/lib/ruflet_ui/ruflet/ui/controls/cupertino/cupertino_dialog_action_control.rb +0 -24
- data/lib/ruflet_ui/ruflet/ui/controls/cupertino/cupertino_filled_button_control.rb +0 -13
- data/lib/ruflet_ui/ruflet/ui/controls/cupertino/cupertino_navigation_bar_control.rb +0 -13
- data/lib/ruflet_ui/ruflet/ui/controls/cupertino/cupertino_slider_control.rb +0 -13
- data/lib/ruflet_ui/ruflet/ui/controls/cupertino/cupertino_switch_control.rb +0 -13
- data/lib/ruflet_ui/ruflet/ui/controls/cupertino/cupertino_text_field_control.rb +0 -13
- data/lib/ruflet_ui/ruflet/ui/controls/material/alert_dialog_control.rb +0 -13
- data/lib/ruflet_ui/ruflet/ui/controls/material/app_bar_control.rb +0 -13
- data/lib/ruflet_ui/ruflet/ui/controls/material/bottom_sheet_control.rb +0 -13
- data/lib/ruflet_ui/ruflet/ui/controls/material/button_control.rb +0 -24
- data/lib/ruflet_ui/ruflet/ui/controls/material/checkbox_control.rb +0 -13
- data/lib/ruflet_ui/ruflet/ui/controls/material/column_control.rb +0 -13
- data/lib/ruflet_ui/ruflet/ui/controls/material/container_control.rb +0 -13
- data/lib/ruflet_ui/ruflet/ui/controls/material/drag_target_control.rb +0 -13
- data/lib/ruflet_ui/ruflet/ui/controls/material/draggable_control.rb +0 -13
- data/lib/ruflet_ui/ruflet/ui/controls/material/elevated_button_control.rb +0 -13
- data/lib/ruflet_ui/ruflet/ui/controls/material/filled_button_control.rb +0 -13
- data/lib/ruflet_ui/ruflet/ui/controls/material/floating_action_button_control.rb +0 -28
- data/lib/ruflet_ui/ruflet/ui/controls/material/gesture_detector_control.rb +0 -13
- data/lib/ruflet_ui/ruflet/ui/controls/material/grid_view_control.rb +0 -13
- data/lib/ruflet_ui/ruflet/ui/controls/material/icon_button_control.rb +0 -13
- data/lib/ruflet_ui/ruflet/ui/controls/material/icon_control.rb +0 -24
- data/lib/ruflet_ui/ruflet/ui/controls/material/image_control.rb +0 -13
- data/lib/ruflet_ui/ruflet/ui/controls/material/markdown_control.rb +0 -13
- data/lib/ruflet_ui/ruflet/ui/controls/material/navigation_bar_control.rb +0 -13
- data/lib/ruflet_ui/ruflet/ui/controls/material/navigation_bar_destination_control.rb +0 -13
- data/lib/ruflet_ui/ruflet/ui/controls/material/radio_control.rb +0 -13
- data/lib/ruflet_ui/ruflet/ui/controls/material/radio_group_control.rb +0 -13
- data/lib/ruflet_ui/ruflet/ui/controls/material/row_control.rb +0 -13
- data/lib/ruflet_ui/ruflet/ui/controls/material/snack_bar_control.rb +0 -68
- data/lib/ruflet_ui/ruflet/ui/controls/material/stack_control.rb +0 -13
- data/lib/ruflet_ui/ruflet/ui/controls/material/tab_bar_control.rb +0 -13
- data/lib/ruflet_ui/ruflet/ui/controls/material/tab_bar_view_control.rb +0 -13
- data/lib/ruflet_ui/ruflet/ui/controls/material/tab_control.rb +0 -13
- data/lib/ruflet_ui/ruflet/ui/controls/material/tabs_control.rb +0 -63
- data/lib/ruflet_ui/ruflet/ui/controls/material/text_button_control.rb +0 -13
- data/lib/ruflet_ui/ruflet/ui/controls/material/text_control.rb +0 -13
- data/lib/ruflet_ui/ruflet/ui/controls/material/text_field_control.rb +0 -13
- data/lib/ruflet_ui/ruflet/ui/controls/material/view_control.rb +0 -13
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Ruflet
|
|
4
|
+
module UI
|
|
5
|
+
module Services
|
|
6
|
+
module RufletServicesComponents
|
|
7
|
+
class ConnectivityControl < Ruflet::Control
|
|
8
|
+
TYPE = "connectivity".freeze
|
|
9
|
+
WIRE = "Connectivity".freeze
|
|
10
|
+
|
|
11
|
+
def initialize(id: nil, data: nil, key: nil, on_change: nil)
|
|
12
|
+
props = {}
|
|
13
|
+
props[:data] = data unless data.nil?
|
|
14
|
+
props[:key] = key unless key.nil?
|
|
15
|
+
props[:on_change] = on_change unless on_change.nil?
|
|
16
|
+
super(type: TYPE, id: id, **props)
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Ruflet
|
|
4
|
+
module UI
|
|
5
|
+
module Services
|
|
6
|
+
module RufletServicesComponents
|
|
7
|
+
class FilePickerControl < Ruflet::Control
|
|
8
|
+
TYPE = "filepicker".freeze
|
|
9
|
+
WIRE = "FilePicker".freeze
|
|
10
|
+
|
|
11
|
+
def initialize(id: nil, data: nil, key: nil, on_result: nil, on_upload: nil)
|
|
12
|
+
props = {}
|
|
13
|
+
props[:data] = data unless data.nil?
|
|
14
|
+
props[:key] = key unless key.nil?
|
|
15
|
+
props[:on_result] = on_result unless on_result.nil?
|
|
16
|
+
props[:on_upload] = on_upload unless on_upload.nil?
|
|
17
|
+
super(type: TYPE, id: id, **props)
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Ruflet
|
|
4
|
+
module UI
|
|
5
|
+
module Services
|
|
6
|
+
module RufletServicesComponents
|
|
7
|
+
class FlashlightControl < Ruflet::Control
|
|
8
|
+
TYPE = "flashlight".freeze
|
|
9
|
+
WIRE = "Flashlight".freeze
|
|
10
|
+
|
|
11
|
+
def initialize(id: nil, data: nil, key: nil, on_error: nil)
|
|
12
|
+
props = {}
|
|
13
|
+
props[:data] = data unless data.nil?
|
|
14
|
+
props[:key] = key unless key.nil?
|
|
15
|
+
props[:on_error] = on_error unless on_error.nil?
|
|
16
|
+
super(type: TYPE, id: id, **props)
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Ruflet
|
|
4
|
+
module UI
|
|
5
|
+
module Services
|
|
6
|
+
module RufletServicesComponents
|
|
7
|
+
class GyroscopeControl < Ruflet::Control
|
|
8
|
+
TYPE = "gyroscope".freeze
|
|
9
|
+
WIRE = "Gyroscope".freeze
|
|
10
|
+
|
|
11
|
+
def initialize(id: nil, cancel_on_error: nil, data: nil, enabled: nil, interval: nil, key: nil, on_error: nil, on_reading: nil)
|
|
12
|
+
props = {}
|
|
13
|
+
props[:cancel_on_error] = cancel_on_error unless cancel_on_error.nil?
|
|
14
|
+
props[:data] = data unless data.nil?
|
|
15
|
+
props[:enabled] = enabled unless enabled.nil?
|
|
16
|
+
props[:interval] = interval unless interval.nil?
|
|
17
|
+
props[:key] = key unless key.nil?
|
|
18
|
+
props[:on_error] = on_error unless on_error.nil?
|
|
19
|
+
props[:on_reading] = on_reading unless on_reading.nil?
|
|
20
|
+
super(type: TYPE, id: id, **props)
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Ruflet
|
|
4
|
+
module UI
|
|
5
|
+
module Services
|
|
6
|
+
module RufletServicesComponents
|
|
7
|
+
class HapticFeedbackControl < Ruflet::Control
|
|
8
|
+
TYPE = "hapticfeedback".freeze
|
|
9
|
+
WIRE = "HapticFeedback".freeze
|
|
10
|
+
|
|
11
|
+
def initialize(id: nil, data: nil, key: nil)
|
|
12
|
+
props = {}
|
|
13
|
+
props[:data] = data unless data.nil?
|
|
14
|
+
props[:key] = key unless key.nil?
|
|
15
|
+
super(type: TYPE, id: id, **props)
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Ruflet
|
|
4
|
+
module UI
|
|
5
|
+
module Services
|
|
6
|
+
module RufletServicesComponents
|
|
7
|
+
class MagnetometerControl < Ruflet::Control
|
|
8
|
+
TYPE = "magnetometer".freeze
|
|
9
|
+
WIRE = "Magnetometer".freeze
|
|
10
|
+
|
|
11
|
+
def initialize(id: nil, cancel_on_error: nil, data: nil, enabled: nil, interval: nil, key: nil, on_error: nil, on_reading: nil)
|
|
12
|
+
props = {}
|
|
13
|
+
props[:cancel_on_error] = cancel_on_error unless cancel_on_error.nil?
|
|
14
|
+
props[:data] = data unless data.nil?
|
|
15
|
+
props[:enabled] = enabled unless enabled.nil?
|
|
16
|
+
props[:interval] = interval unless interval.nil?
|
|
17
|
+
props[:key] = key unless key.nil?
|
|
18
|
+
props[:on_error] = on_error unless on_error.nil?
|
|
19
|
+
props[:on_reading] = on_reading unless on_reading.nil?
|
|
20
|
+
super(type: TYPE, id: id, **props)
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Ruflet
|
|
4
|
+
module UI
|
|
5
|
+
module Services
|
|
6
|
+
module RufletServicesComponents
|
|
7
|
+
class ScreenBrightnessControl < Ruflet::Control
|
|
8
|
+
TYPE = "screenbrightness".freeze
|
|
9
|
+
WIRE = "ScreenBrightness".freeze
|
|
10
|
+
|
|
11
|
+
def initialize(id: nil, data: nil, key: nil, on_application_screen_brightness_change: nil, on_system_screen_brightness_change: nil)
|
|
12
|
+
props = {}
|
|
13
|
+
props[:data] = data unless data.nil?
|
|
14
|
+
props[:key] = key unless key.nil?
|
|
15
|
+
props[:on_application_screen_brightness_change] = on_application_screen_brightness_change unless on_application_screen_brightness_change.nil?
|
|
16
|
+
props[:on_system_screen_brightness_change] = on_system_screen_brightness_change unless on_system_screen_brightness_change.nil?
|
|
17
|
+
super(type: TYPE, id: id, **props)
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Ruflet
|
|
4
|
+
module UI
|
|
5
|
+
module Services
|
|
6
|
+
module RufletServicesComponents
|
|
7
|
+
class ScreenshotControl < Ruflet::Control
|
|
8
|
+
TYPE = "screenshot".freeze
|
|
9
|
+
WIRE = "Screenshot".freeze
|
|
10
|
+
|
|
11
|
+
def initialize(id: nil, badge: nil, col: nil, content: nil, data: nil, disabled: nil, expand: nil, expand_loose: nil, key: nil, opacity: nil, rtl: nil, tooltip: nil, visible: nil)
|
|
12
|
+
props = {}
|
|
13
|
+
props[:badge] = badge unless badge.nil?
|
|
14
|
+
props[:col] = col unless col.nil?
|
|
15
|
+
props[:content] = content unless content.nil?
|
|
16
|
+
props[:data] = data unless data.nil?
|
|
17
|
+
props[:disabled] = disabled unless disabled.nil?
|
|
18
|
+
props[:expand] = expand unless expand.nil?
|
|
19
|
+
props[:expand_loose] = expand_loose unless expand_loose.nil?
|
|
20
|
+
props[:key] = key unless key.nil?
|
|
21
|
+
props[:opacity] = opacity unless opacity.nil?
|
|
22
|
+
props[:rtl] = rtl unless rtl.nil?
|
|
23
|
+
props[:tooltip] = tooltip unless tooltip.nil?
|
|
24
|
+
props[:visible] = visible unless visible.nil?
|
|
25
|
+
super(type: TYPE, id: id, **props)
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Ruflet
|
|
4
|
+
module UI
|
|
5
|
+
module Services
|
|
6
|
+
module RufletServicesComponents
|
|
7
|
+
class SemanticsServiceControl < Ruflet::Control
|
|
8
|
+
TYPE = "semanticsservice".freeze
|
|
9
|
+
WIRE = "SemanticsService".freeze
|
|
10
|
+
|
|
11
|
+
def initialize(id: nil, data: nil, key: nil)
|
|
12
|
+
props = {}
|
|
13
|
+
props[:data] = data unless data.nil?
|
|
14
|
+
props[:key] = key unless key.nil?
|
|
15
|
+
super(type: TYPE, id: id, **props)
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Ruflet
|
|
4
|
+
module UI
|
|
5
|
+
module Services
|
|
6
|
+
module RufletServicesComponents
|
|
7
|
+
class ShakeDetectorControl < Ruflet::Control
|
|
8
|
+
TYPE = "shakedetector".freeze
|
|
9
|
+
WIRE = "ShakeDetector".freeze
|
|
10
|
+
|
|
11
|
+
def initialize(id: nil, data: nil, key: nil, minimum_shake_count: nil, shake_count_reset_time_ms: nil, shake_slop_time_ms: nil, shake_threshold_gravity: nil, on_shake: nil)
|
|
12
|
+
props = {}
|
|
13
|
+
props[:data] = data unless data.nil?
|
|
14
|
+
props[:key] = key unless key.nil?
|
|
15
|
+
props[:minimum_shake_count] = minimum_shake_count unless minimum_shake_count.nil?
|
|
16
|
+
props[:shake_count_reset_time_ms] = shake_count_reset_time_ms unless shake_count_reset_time_ms.nil?
|
|
17
|
+
props[:shake_slop_time_ms] = shake_slop_time_ms unless shake_slop_time_ms.nil?
|
|
18
|
+
props[:shake_threshold_gravity] = shake_threshold_gravity unless shake_threshold_gravity.nil?
|
|
19
|
+
props[:on_shake] = on_shake unless on_shake.nil?
|
|
20
|
+
super(type: TYPE, id: id, **props)
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Ruflet
|
|
4
|
+
module UI
|
|
5
|
+
module Services
|
|
6
|
+
module RufletServicesComponents
|
|
7
|
+
class ShareControl < Ruflet::Control
|
|
8
|
+
TYPE = "share".freeze
|
|
9
|
+
WIRE = "Share".freeze
|
|
10
|
+
|
|
11
|
+
def initialize(id: nil, data: nil, key: nil)
|
|
12
|
+
props = {}
|
|
13
|
+
props[:data] = data unless data.nil?
|
|
14
|
+
props[:key] = key unless key.nil?
|
|
15
|
+
super(type: TYPE, id: id, **props)
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Ruflet
|
|
4
|
+
module UI
|
|
5
|
+
module Services
|
|
6
|
+
module RufletServicesComponents
|
|
7
|
+
class SharedPreferencesControl < Ruflet::Control
|
|
8
|
+
TYPE = "sharedpreferences".freeze
|
|
9
|
+
WIRE = "SharedPreferences".freeze
|
|
10
|
+
|
|
11
|
+
def initialize(id: nil, data: nil, key: nil)
|
|
12
|
+
props = {}
|
|
13
|
+
props[:data] = data unless data.nil?
|
|
14
|
+
props[:key] = key unless key.nil?
|
|
15
|
+
super(type: TYPE, id: id, **props)
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Ruflet
|
|
4
|
+
module UI
|
|
5
|
+
module Services
|
|
6
|
+
module RufletServicesComponents
|
|
7
|
+
class StoragePathsControl < Ruflet::Control
|
|
8
|
+
TYPE = "storagepaths".freeze
|
|
9
|
+
WIRE = "StoragePaths".freeze
|
|
10
|
+
|
|
11
|
+
def initialize(id: nil, data: nil, key: nil)
|
|
12
|
+
props = {}
|
|
13
|
+
props[:data] = data unless data.nil?
|
|
14
|
+
props[:key] = key unless key.nil?
|
|
15
|
+
super(type: TYPE, id: id, **props)
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Ruflet
|
|
4
|
+
module UI
|
|
5
|
+
module Services
|
|
6
|
+
module RufletServicesComponents
|
|
7
|
+
class UrlLauncherControl < Ruflet::Control
|
|
8
|
+
TYPE = "urllauncher".freeze
|
|
9
|
+
WIRE = "UrlLauncher".freeze
|
|
10
|
+
|
|
11
|
+
def initialize(id: nil, data: nil, key: nil)
|
|
12
|
+
props = {}
|
|
13
|
+
props[:data] = data unless data.nil?
|
|
14
|
+
props[:key] = key unless key.nil?
|
|
15
|
+
super(type: TYPE, id: id, **props)
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Ruflet
|
|
4
|
+
module UI
|
|
5
|
+
module Services
|
|
6
|
+
module RufletServicesComponents
|
|
7
|
+
class UserAccelerometerControl < Ruflet::Control
|
|
8
|
+
TYPE = "useraccelerometer".freeze
|
|
9
|
+
WIRE = "UserAccelerometer".freeze
|
|
10
|
+
|
|
11
|
+
def initialize(id: nil, cancel_on_error: nil, data: nil, enabled: nil, interval: nil, key: nil, on_error: nil, on_reading: nil)
|
|
12
|
+
props = {}
|
|
13
|
+
props[:cancel_on_error] = cancel_on_error unless cancel_on_error.nil?
|
|
14
|
+
props[:data] = data unless data.nil?
|
|
15
|
+
props[:enabled] = enabled unless enabled.nil?
|
|
16
|
+
props[:interval] = interval unless interval.nil?
|
|
17
|
+
props[:key] = key unless key.nil?
|
|
18
|
+
props[:on_error] = on_error unless on_error.nil?
|
|
19
|
+
props[:on_reading] = on_reading unless on_reading.nil?
|
|
20
|
+
super(type: TYPE, id: id, **props)
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Ruflet
|
|
4
|
+
module UI
|
|
5
|
+
module Services
|
|
6
|
+
module RufletServicesComponents
|
|
7
|
+
class WakelockControl < Ruflet::Control
|
|
8
|
+
TYPE = "wakelock".freeze
|
|
9
|
+
WIRE = "Wakelock".freeze
|
|
10
|
+
|
|
11
|
+
def initialize(id: nil, data: nil, key: nil)
|
|
12
|
+
props = {}
|
|
13
|
+
props[:data] = data unless data.nil?
|
|
14
|
+
props[:key] = key unless key.nil?
|
|
15
|
+
super(type: TYPE, id: id, **props)
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative "ruflet/accelerometer_control"
|
|
4
|
+
require_relative "ruflet/barometer_control"
|
|
5
|
+
require_relative "ruflet/battery_control"
|
|
6
|
+
require_relative "ruflet/camera_control"
|
|
7
|
+
require_relative "ruflet/clipboard_control"
|
|
8
|
+
require_relative "ruflet/connectivity_control"
|
|
9
|
+
require_relative "ruflet/filepicker_control"
|
|
10
|
+
require_relative "ruflet/flashlight_control"
|
|
11
|
+
require_relative "ruflet/gyroscope_control"
|
|
12
|
+
require_relative "ruflet/hapticfeedback_control"
|
|
13
|
+
require_relative "ruflet/magnetometer_control"
|
|
14
|
+
require_relative "ruflet/screenbrightness_control"
|
|
15
|
+
require_relative "ruflet/screenshot_control"
|
|
16
|
+
require_relative "ruflet/semanticsservice_control"
|
|
17
|
+
require_relative "ruflet/shakedetector_control"
|
|
18
|
+
require_relative "ruflet/share_control"
|
|
19
|
+
require_relative "ruflet/sharedpreferences_control"
|
|
20
|
+
require_relative "ruflet/storagepaths_control"
|
|
21
|
+
require_relative "ruflet/urllauncher_control"
|
|
22
|
+
require_relative "ruflet/useraccelerometer_control"
|
|
23
|
+
require_relative "ruflet/wakelock_control"
|
|
24
|
+
|
|
25
|
+
module Ruflet
|
|
26
|
+
module UI
|
|
27
|
+
module Services
|
|
28
|
+
module RufletServices
|
|
29
|
+
module_function
|
|
30
|
+
|
|
31
|
+
CLASS_MAP = {
|
|
32
|
+
"accelerometer" => RufletServicesComponents::AccelerometerControl,
|
|
33
|
+
"barometer" => RufletServicesComponents::BarometerControl,
|
|
34
|
+
"battery" => RufletServicesComponents::BatteryControl,
|
|
35
|
+
"camera" => RufletServicesComponents::CameraControl,
|
|
36
|
+
"clipboard" => RufletServicesComponents::ClipboardControl,
|
|
37
|
+
"connectivity" => RufletServicesComponents::ConnectivityControl,
|
|
38
|
+
"file_picker" => RufletServicesComponents::FilePickerControl,
|
|
39
|
+
"filepicker" => RufletServicesComponents::FilePickerControl,
|
|
40
|
+
"flashlight" => RufletServicesComponents::FlashlightControl,
|
|
41
|
+
"gyroscope" => RufletServicesComponents::GyroscopeControl,
|
|
42
|
+
"haptic_feedback" => RufletServicesComponents::HapticFeedbackControl,
|
|
43
|
+
"hapticfeedback" => RufletServicesComponents::HapticFeedbackControl,
|
|
44
|
+
"magnetometer" => RufletServicesComponents::MagnetometerControl,
|
|
45
|
+
"screen_brightness" => RufletServicesComponents::ScreenBrightnessControl,
|
|
46
|
+
"screenbrightness" => RufletServicesComponents::ScreenBrightnessControl,
|
|
47
|
+
"screenshot" => RufletServicesComponents::ScreenshotControl,
|
|
48
|
+
"semantics_service" => RufletServicesComponents::SemanticsServiceControl,
|
|
49
|
+
"semanticsservice" => RufletServicesComponents::SemanticsServiceControl,
|
|
50
|
+
"shake_detector" => RufletServicesComponents::ShakeDetectorControl,
|
|
51
|
+
"shakedetector" => RufletServicesComponents::ShakeDetectorControl,
|
|
52
|
+
"share" => RufletServicesComponents::ShareControl,
|
|
53
|
+
"shared_preferences" => RufletServicesComponents::SharedPreferencesControl,
|
|
54
|
+
"sharedpreferences" => RufletServicesComponents::SharedPreferencesControl,
|
|
55
|
+
"storage_paths" => RufletServicesComponents::StoragePathsControl,
|
|
56
|
+
"storagepaths" => RufletServicesComponents::StoragePathsControl,
|
|
57
|
+
"url_launcher" => RufletServicesComponents::UrlLauncherControl,
|
|
58
|
+
"urllauncher" => RufletServicesComponents::UrlLauncherControl,
|
|
59
|
+
"user_accelerometer" => RufletServicesComponents::UserAccelerometerControl,
|
|
60
|
+
"useraccelerometer" => RufletServicesComponents::UserAccelerometerControl,
|
|
61
|
+
"wakelock" => RufletServicesComponents::WakelockControl,
|
|
62
|
+
}.freeze
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
end
|
|
@@ -5,6 +5,7 @@ module Ruflet
|
|
|
5
5
|
module SharedControlForwarders
|
|
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
|
+
def service(type, **props, &block) = control_delegate.service(type, **props, &block)
|
|
8
9
|
def view(**props, &block) = control_delegate.view(**props, &block)
|
|
9
10
|
def column(**props, &block) = control_delegate.column(**props, &block)
|
|
10
11
|
def center(**props, &block) = control_delegate.center(**props, &block)
|
|
@@ -21,7 +22,6 @@ module Ruflet
|
|
|
21
22
|
def text(value = nil, **props) = control_delegate.text(value, **props)
|
|
22
23
|
def button(**props) = control_delegate.button(**props)
|
|
23
24
|
def elevated_button(**props) = control_delegate.elevated_button(**props)
|
|
24
|
-
def elevatedbutton(**props) = control_delegate.elevatedbutton(**props)
|
|
25
25
|
def text_button(**props) = control_delegate.text_button(**props)
|
|
26
26
|
def textbutton(**props) = control_delegate.textbutton(**props)
|
|
27
27
|
def filled_button(**props) = control_delegate.filled_button(**props)
|
|
@@ -59,6 +59,46 @@ module Ruflet
|
|
|
59
59
|
def navigationbar(**props, &block) = control_delegate.navigationbar(**props, &block)
|
|
60
60
|
def navigation_bar_destination(**props, &block) = control_delegate.navigation_bar_destination(**props, &block)
|
|
61
61
|
def navigationbardestination(**props, &block) = control_delegate.navigationbardestination(**props, &block)
|
|
62
|
+
def bar_chart(**props) = control_delegate.bar_chart(**props)
|
|
63
|
+
def barchart(**props) = control_delegate.barchart(**props)
|
|
64
|
+
def bar_chart_group(**props) = control_delegate.bar_chart_group(**props)
|
|
65
|
+
def barchartgroup(**props) = control_delegate.barchartgroup(**props)
|
|
66
|
+
def bar_chart_rod(**props) = control_delegate.bar_chart_rod(**props)
|
|
67
|
+
def barchartrod(**props) = control_delegate.barchartrod(**props)
|
|
68
|
+
def bar_chart_rod_stack_item(**props) = control_delegate.bar_chart_rod_stack_item(**props)
|
|
69
|
+
def barchartrodstackitem(**props) = control_delegate.barchartrodstackitem(**props)
|
|
70
|
+
def line_chart(**props) = control_delegate.line_chart(**props)
|
|
71
|
+
def linechart(**props) = control_delegate.linechart(**props)
|
|
72
|
+
def line_chart_data(**props) = control_delegate.line_chart_data(**props)
|
|
73
|
+
def linechartdata(**props) = control_delegate.linechartdata(**props)
|
|
74
|
+
def line_chart_data_point(**props) = control_delegate.line_chart_data_point(**props)
|
|
75
|
+
def linechartdatapoint(**props) = control_delegate.linechartdatapoint(**props)
|
|
76
|
+
def pie_chart(**props) = control_delegate.pie_chart(**props)
|
|
77
|
+
def piechart(**props) = control_delegate.piechart(**props)
|
|
78
|
+
def pie_chart_section(**props) = control_delegate.pie_chart_section(**props)
|
|
79
|
+
def piechartsection(**props) = control_delegate.piechartsection(**props)
|
|
80
|
+
def candlestick_chart(**props) = control_delegate.candlestick_chart(**props)
|
|
81
|
+
def candlestickchart(**props) = control_delegate.candlestickchart(**props)
|
|
82
|
+
def candlestick_chart_spot(**props) = control_delegate.candlestick_chart_spot(**props)
|
|
83
|
+
def candlestickchartspot(**props) = control_delegate.candlestickchartspot(**props)
|
|
84
|
+
def radar_chart(**props) = control_delegate.radar_chart(**props)
|
|
85
|
+
def radarchart(**props) = control_delegate.radarchart(**props)
|
|
86
|
+
def radar_chart_title(**props) = control_delegate.radar_chart_title(**props)
|
|
87
|
+
def radarcharttitle(**props) = control_delegate.radarcharttitle(**props)
|
|
88
|
+
def radar_data_set(**props) = control_delegate.radar_data_set(**props)
|
|
89
|
+
def radardataset(**props) = control_delegate.radardataset(**props)
|
|
90
|
+
def radar_data_set_entry(**props) = control_delegate.radar_data_set_entry(**props)
|
|
91
|
+
def radardatasetentry(**props) = control_delegate.radardatasetentry(**props)
|
|
92
|
+
def scatter_chart(**props) = control_delegate.scatter_chart(**props)
|
|
93
|
+
def scatterchart(**props) = control_delegate.scatterchart(**props)
|
|
94
|
+
def scatter_chart_spot(**props) = control_delegate.scatter_chart_spot(**props)
|
|
95
|
+
def scatterchartspot(**props) = control_delegate.scatterchartspot(**props)
|
|
96
|
+
def chart_axis(**props) = control_delegate.chart_axis(**props)
|
|
97
|
+
def chartaxis(**props) = control_delegate.chartaxis(**props)
|
|
98
|
+
def chart_axis_label(**props) = control_delegate.chart_axis_label(**props)
|
|
99
|
+
def chartaxislabel(**props) = control_delegate.chartaxislabel(**props)
|
|
100
|
+
def web_view(**props) = control_delegate.web_view(**props)
|
|
101
|
+
def webview(**props) = control_delegate.webview(**props)
|
|
62
102
|
def cupertino_button(**props) = control_delegate.cupertino_button(**props)
|
|
63
103
|
def cupertinobutton(**props) = control_delegate.cupertinobutton(**props)
|
|
64
104
|
def cupertino_filled_button(**props) = control_delegate.cupertino_filled_button(**props)
|
|
@@ -17,6 +17,10 @@ module Ruflet
|
|
|
17
17
|
control(type, **props, &block)
|
|
18
18
|
end
|
|
19
19
|
|
|
20
|
+
def service(type, **props, &block)
|
|
21
|
+
build_service(type, **props, &block)
|
|
22
|
+
end
|
|
23
|
+
|
|
20
24
|
def control(type, **props, &block)
|
|
21
25
|
mapped_props = props.dup
|
|
22
26
|
prop_children = extract_children_prop(mapped_props)
|
|
@@ -42,6 +46,11 @@ module Ruflet
|
|
|
42
46
|
end
|
|
43
47
|
|
|
44
48
|
def build_widget(type, **props, &block) = control(type, **props, &block)
|
|
49
|
+
def build_service(type, **props, &block)
|
|
50
|
+
mapped_props = props.dup
|
|
51
|
+
node = UI::ControlFactory.build(type, **mapped_props)
|
|
52
|
+
node
|
|
53
|
+
end
|
|
45
54
|
|
|
46
55
|
private
|
|
47
56
|
|
data/lib/ruflet_ui.rb
CHANGED
|
@@ -5,7 +5,10 @@ require_relative "ruflet_ui/ruflet/colors"
|
|
|
5
5
|
require_relative "ruflet_ui/ruflet/icon_data"
|
|
6
6
|
require_relative "ruflet_ui/ruflet/icons/material_icons"
|
|
7
7
|
require_relative "ruflet_ui/ruflet/icons/cupertino/cupertino_icons"
|
|
8
|
+
require_relative "ruflet_ui/ruflet/types/text_style"
|
|
9
|
+
require_relative "ruflet_ui/ruflet/types/geometry"
|
|
8
10
|
require_relative "ruflet_ui/ruflet/control"
|
|
11
|
+
require_relative "ruflet_ui/ruflet/ui/control_registry"
|
|
9
12
|
require_relative "ruflet_ui/ruflet/ui/widget_builder"
|
|
10
13
|
require_relative "ruflet_ui/ruflet/ui/shared_control_forwarders"
|
|
11
14
|
require_relative "ruflet_ui/ruflet/event"
|
|
@@ -14,6 +17,16 @@ require_relative "ruflet_ui/ruflet/app"
|
|
|
14
17
|
require_relative "ruflet_ui/ruflet/dsl"
|
|
15
18
|
|
|
16
19
|
module Ruflet
|
|
20
|
+
TextStyle = UI::Types::TextStyle
|
|
21
|
+
StrutStyle = UI::Types::StrutStyle
|
|
22
|
+
TextOverflow = UI::Types::TextOverflow
|
|
23
|
+
TextBaseline = UI::Types::TextBaseline
|
|
24
|
+
TextThemeStyle = UI::Types::TextThemeStyle
|
|
25
|
+
TextDecoration = UI::Types::TextDecoration
|
|
26
|
+
TextDecorationStyle = UI::Types::TextDecorationStyle
|
|
27
|
+
Offset = UI::Types::Offset
|
|
28
|
+
Duration = UI::Types::Duration
|
|
29
|
+
|
|
17
30
|
module MainAxisAlignment
|
|
18
31
|
CENTER = "center"
|
|
19
32
|
START = "start"
|
|
@@ -66,7 +79,7 @@ module Ruflet
|
|
|
66
79
|
class << self
|
|
67
80
|
include UI::SharedControlForwarders
|
|
68
81
|
|
|
69
|
-
def app(host:
|
|
82
|
+
def app(host: nil, port: nil, &block)
|
|
70
83
|
DSL.app(host: host, port: port, &block)
|
|
71
84
|
end
|
|
72
85
|
|