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,77 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Ruflet
|
|
4
|
+
module UI
|
|
5
|
+
module Controls
|
|
6
|
+
module RufletComponents
|
|
7
|
+
class ViewControl < Ruflet::Control
|
|
8
|
+
TYPE = "view".freeze
|
|
9
|
+
WIRE = "View".freeze
|
|
10
|
+
|
|
11
|
+
def initialize(id: nil, align: nil, animate_align: nil, animate_margin: nil, animate_offset: nil, animate_opacity: nil, animate_position: nil, animate_rotation: nil, animate_scale: nil, animate_size: nil, appbar: nil, aspect_ratio: nil, auto_scroll: nil, badge: nil, bgcolor: nil, bottom: nil, bottom_appbar: nil, can_pop: nil, col: nil, controls: nil, data: nil, decoration: nil, disabled: nil, drawer: nil, end_drawer: nil, expand: nil, expand_loose: nil, floating_action_button: nil, floating_action_button_location: nil, foreground_decoration: nil, fullscreen_dialog: nil, height: nil, horizontal_alignment: nil, key: nil, left: nil, margin: nil, navigation_bar: nil, offset: nil, opacity: nil, padding: nil, right: nil, rotate: nil, route: nil, rtl: nil, scale: nil, scroll: nil, scroll_interval: nil, services: nil, size_change_interval: nil, spacing: nil, tooltip: nil, top: nil, vertical_alignment: nil, visible: nil, width: nil, on_animation_end: nil, on_confirm_pop: nil, on_scroll: nil, on_size_change: nil)
|
|
12
|
+
props = {}
|
|
13
|
+
props[:align] = align unless align.nil?
|
|
14
|
+
props[:animate_align] = animate_align unless animate_align.nil?
|
|
15
|
+
props[:animate_margin] = animate_margin unless animate_margin.nil?
|
|
16
|
+
props[:animate_offset] = animate_offset unless animate_offset.nil?
|
|
17
|
+
props[:animate_opacity] = animate_opacity unless animate_opacity.nil?
|
|
18
|
+
props[:animate_position] = animate_position unless animate_position.nil?
|
|
19
|
+
props[:animate_rotation] = animate_rotation unless animate_rotation.nil?
|
|
20
|
+
props[:animate_scale] = animate_scale unless animate_scale.nil?
|
|
21
|
+
props[:animate_size] = animate_size unless animate_size.nil?
|
|
22
|
+
props[:appbar] = appbar unless appbar.nil?
|
|
23
|
+
props[:aspect_ratio] = aspect_ratio unless aspect_ratio.nil?
|
|
24
|
+
props[:auto_scroll] = auto_scroll unless auto_scroll.nil?
|
|
25
|
+
props[:badge] = badge unless badge.nil?
|
|
26
|
+
props[:bgcolor] = bgcolor unless bgcolor.nil?
|
|
27
|
+
props[:bottom] = bottom unless bottom.nil?
|
|
28
|
+
props[:bottom_appbar] = bottom_appbar unless bottom_appbar.nil?
|
|
29
|
+
props[:can_pop] = can_pop unless can_pop.nil?
|
|
30
|
+
props[:col] = col unless col.nil?
|
|
31
|
+
props[:controls] = controls unless controls.nil?
|
|
32
|
+
props[:data] = data unless data.nil?
|
|
33
|
+
props[:decoration] = decoration unless decoration.nil?
|
|
34
|
+
props[:disabled] = disabled unless disabled.nil?
|
|
35
|
+
props[:drawer] = drawer unless drawer.nil?
|
|
36
|
+
props[:end_drawer] = end_drawer unless end_drawer.nil?
|
|
37
|
+
props[:expand] = expand unless expand.nil?
|
|
38
|
+
props[:expand_loose] = expand_loose unless expand_loose.nil?
|
|
39
|
+
props[:floating_action_button] = floating_action_button unless floating_action_button.nil?
|
|
40
|
+
props[:floating_action_button_location] = floating_action_button_location unless floating_action_button_location.nil?
|
|
41
|
+
props[:foreground_decoration] = foreground_decoration unless foreground_decoration.nil?
|
|
42
|
+
props[:fullscreen_dialog] = fullscreen_dialog unless fullscreen_dialog.nil?
|
|
43
|
+
props[:height] = height unless height.nil?
|
|
44
|
+
props[:horizontal_alignment] = horizontal_alignment unless horizontal_alignment.nil?
|
|
45
|
+
props[:key] = key unless key.nil?
|
|
46
|
+
props[:left] = left unless left.nil?
|
|
47
|
+
props[:margin] = margin unless margin.nil?
|
|
48
|
+
props[:navigation_bar] = navigation_bar unless navigation_bar.nil?
|
|
49
|
+
props[:offset] = offset unless offset.nil?
|
|
50
|
+
props[:opacity] = opacity unless opacity.nil?
|
|
51
|
+
props[:padding] = padding unless padding.nil?
|
|
52
|
+
props[:right] = right unless right.nil?
|
|
53
|
+
props[:rotate] = rotate unless rotate.nil?
|
|
54
|
+
props[:route] = route unless route.nil?
|
|
55
|
+
props[:rtl] = rtl unless rtl.nil?
|
|
56
|
+
props[:scale] = scale unless scale.nil?
|
|
57
|
+
props[:scroll] = scroll unless scroll.nil?
|
|
58
|
+
props[:scroll_interval] = scroll_interval unless scroll_interval.nil?
|
|
59
|
+
props[:services] = services unless services.nil?
|
|
60
|
+
props[:size_change_interval] = size_change_interval unless size_change_interval.nil?
|
|
61
|
+
props[:spacing] = spacing unless spacing.nil?
|
|
62
|
+
props[:tooltip] = tooltip unless tooltip.nil?
|
|
63
|
+
props[:top] = top unless top.nil?
|
|
64
|
+
props[:vertical_alignment] = vertical_alignment unless vertical_alignment.nil?
|
|
65
|
+
props[:visible] = visible unless visible.nil?
|
|
66
|
+
props[:width] = width unless width.nil?
|
|
67
|
+
props[:on_animation_end] = on_animation_end unless on_animation_end.nil?
|
|
68
|
+
props[:on_confirm_pop] = on_confirm_pop unless on_confirm_pop.nil?
|
|
69
|
+
props[:on_scroll] = on_scroll unless on_scroll.nil?
|
|
70
|
+
props[:on_size_change] = on_size_change unless on_size_change.nil?
|
|
71
|
+
super(type: TYPE, id: id, **props)
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
end
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Ruflet
|
|
4
|
+
module UI
|
|
5
|
+
module Controls
|
|
6
|
+
module RufletComponents
|
|
7
|
+
class WindowControl < Ruflet::Control
|
|
8
|
+
TYPE = "window".freeze
|
|
9
|
+
WIRE = "Window".freeze
|
|
10
|
+
|
|
11
|
+
def initialize(id: nil, alignment: nil, always_on_bottom: nil, always_on_top: nil, aspect_ratio: nil, badge_label: nil, bgcolor: nil, brightness: nil, data: nil, focused: nil, frameless: nil, full_screen: nil, height: nil, icon: nil, ignore_mouse_events: nil, key: nil, left: nil, max_height: nil, max_width: nil, maximizable: nil, maximized: nil, min_height: nil, min_width: nil, minimizable: nil, minimized: nil, movable: nil, opacity: nil, prevent_close: nil, progress_bar: nil, resizable: nil, shadow: nil, skip_task_bar: nil, title_bar_buttons_hidden: nil, title_bar_hidden: nil, top: nil, visible: nil, width: nil, on_event: nil)
|
|
12
|
+
props = {}
|
|
13
|
+
props[:alignment] = alignment unless alignment.nil?
|
|
14
|
+
props[:always_on_bottom] = always_on_bottom unless always_on_bottom.nil?
|
|
15
|
+
props[:always_on_top] = always_on_top unless always_on_top.nil?
|
|
16
|
+
props[:aspect_ratio] = aspect_ratio unless aspect_ratio.nil?
|
|
17
|
+
props[:badge_label] = badge_label unless badge_label.nil?
|
|
18
|
+
props[:bgcolor] = bgcolor unless bgcolor.nil?
|
|
19
|
+
props[:brightness] = brightness unless brightness.nil?
|
|
20
|
+
props[:data] = data unless data.nil?
|
|
21
|
+
props[:focused] = focused unless focused.nil?
|
|
22
|
+
props[:frameless] = frameless unless frameless.nil?
|
|
23
|
+
props[:full_screen] = full_screen unless full_screen.nil?
|
|
24
|
+
props[:height] = height unless height.nil?
|
|
25
|
+
props[:icon] = icon unless icon.nil?
|
|
26
|
+
props[:ignore_mouse_events] = ignore_mouse_events unless ignore_mouse_events.nil?
|
|
27
|
+
props[:key] = key unless key.nil?
|
|
28
|
+
props[:left] = left unless left.nil?
|
|
29
|
+
props[:max_height] = max_height unless max_height.nil?
|
|
30
|
+
props[:max_width] = max_width unless max_width.nil?
|
|
31
|
+
props[:maximizable] = maximizable unless maximizable.nil?
|
|
32
|
+
props[:maximized] = maximized unless maximized.nil?
|
|
33
|
+
props[:min_height] = min_height unless min_height.nil?
|
|
34
|
+
props[:min_width] = min_width unless min_width.nil?
|
|
35
|
+
props[:minimizable] = minimizable unless minimizable.nil?
|
|
36
|
+
props[:minimized] = minimized unless minimized.nil?
|
|
37
|
+
props[:movable] = movable unless movable.nil?
|
|
38
|
+
props[:opacity] = opacity unless opacity.nil?
|
|
39
|
+
props[:prevent_close] = prevent_close unless prevent_close.nil?
|
|
40
|
+
props[:progress_bar] = progress_bar unless progress_bar.nil?
|
|
41
|
+
props[:resizable] = resizable unless resizable.nil?
|
|
42
|
+
props[:shadow] = shadow unless shadow.nil?
|
|
43
|
+
props[:skip_task_bar] = skip_task_bar unless skip_task_bar.nil?
|
|
44
|
+
props[:title_bar_buttons_hidden] = title_bar_buttons_hidden unless title_bar_buttons_hidden.nil?
|
|
45
|
+
props[:title_bar_hidden] = title_bar_hidden unless title_bar_hidden.nil?
|
|
46
|
+
props[:top] = top unless top.nil?
|
|
47
|
+
props[:visible] = visible unless visible.nil?
|
|
48
|
+
props[:width] = width unless width.nil?
|
|
49
|
+
props[:on_event] = on_event unless on_event.nil?
|
|
50
|
+
super(type: TYPE, id: id, **props)
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
end
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Ruflet
|
|
4
|
+
module UI
|
|
5
|
+
module Controls
|
|
6
|
+
module RufletComponents
|
|
7
|
+
class WindowDragAreaControl < Ruflet::Control
|
|
8
|
+
TYPE = "windowdragarea".freeze
|
|
9
|
+
WIRE = "WindowDragArea".freeze
|
|
10
|
+
|
|
11
|
+
def initialize(id: nil, align: nil, animate_align: nil, animate_margin: nil, animate_offset: nil, animate_opacity: nil, animate_position: nil, animate_rotation: nil, animate_scale: nil, animate_size: nil, aspect_ratio: nil, badge: nil, bottom: nil, col: nil, content: nil, data: nil, disabled: nil, expand: nil, expand_loose: nil, height: nil, key: nil, left: nil, margin: nil, maximizable: nil, offset: nil, opacity: nil, right: nil, rotate: nil, rtl: nil, scale: nil, size_change_interval: nil, tooltip: nil, top: nil, visible: nil, width: nil, on_animation_end: nil, on_double_tap: nil, on_drag_end: nil, on_drag_start: nil, on_size_change: nil)
|
|
12
|
+
props = {}
|
|
13
|
+
props[:align] = align unless align.nil?
|
|
14
|
+
props[:animate_align] = animate_align unless animate_align.nil?
|
|
15
|
+
props[:animate_margin] = animate_margin unless animate_margin.nil?
|
|
16
|
+
props[:animate_offset] = animate_offset unless animate_offset.nil?
|
|
17
|
+
props[:animate_opacity] = animate_opacity unless animate_opacity.nil?
|
|
18
|
+
props[:animate_position] = animate_position unless animate_position.nil?
|
|
19
|
+
props[:animate_rotation] = animate_rotation unless animate_rotation.nil?
|
|
20
|
+
props[:animate_scale] = animate_scale unless animate_scale.nil?
|
|
21
|
+
props[:animate_size] = animate_size unless animate_size.nil?
|
|
22
|
+
props[:aspect_ratio] = aspect_ratio unless aspect_ratio.nil?
|
|
23
|
+
props[:badge] = badge unless badge.nil?
|
|
24
|
+
props[:bottom] = bottom unless bottom.nil?
|
|
25
|
+
props[:col] = col unless col.nil?
|
|
26
|
+
props[:content] = content unless content.nil?
|
|
27
|
+
props[:data] = data unless data.nil?
|
|
28
|
+
props[:disabled] = disabled unless disabled.nil?
|
|
29
|
+
props[:expand] = expand unless expand.nil?
|
|
30
|
+
props[:expand_loose] = expand_loose unless expand_loose.nil?
|
|
31
|
+
props[:height] = height unless height.nil?
|
|
32
|
+
props[:key] = key unless key.nil?
|
|
33
|
+
props[:left] = left unless left.nil?
|
|
34
|
+
props[:margin] = margin unless margin.nil?
|
|
35
|
+
props[:maximizable] = maximizable unless maximizable.nil?
|
|
36
|
+
props[:offset] = offset unless offset.nil?
|
|
37
|
+
props[:opacity] = opacity unless opacity.nil?
|
|
38
|
+
props[:right] = right unless right.nil?
|
|
39
|
+
props[:rotate] = rotate unless rotate.nil?
|
|
40
|
+
props[:rtl] = rtl unless rtl.nil?
|
|
41
|
+
props[:scale] = scale unless scale.nil?
|
|
42
|
+
props[:size_change_interval] = size_change_interval unless size_change_interval.nil?
|
|
43
|
+
props[:tooltip] = tooltip unless tooltip.nil?
|
|
44
|
+
props[:top] = top unless top.nil?
|
|
45
|
+
props[:visible] = visible unless visible.nil?
|
|
46
|
+
props[:width] = width unless width.nil?
|
|
47
|
+
props[:on_animation_end] = on_animation_end unless on_animation_end.nil?
|
|
48
|
+
props[:on_double_tap] = on_double_tap unless on_double_tap.nil?
|
|
49
|
+
props[:on_drag_end] = on_drag_end unless on_drag_end.nil?
|
|
50
|
+
props[:on_drag_start] = on_drag_start unless on_drag_start.nil?
|
|
51
|
+
props[:on_size_change] = on_size_change unless on_size_change.nil?
|
|
52
|
+
super(type: TYPE, id: id, **props)
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
end
|
|
@@ -1,40 +1,13 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
require_relative "controls/
|
|
4
|
-
require_relative "controls/cupertino/cupertino_filled_button_control"
|
|
5
|
-
require_relative "controls/cupertino/cupertino_text_field_control"
|
|
6
|
-
require_relative "controls/cupertino/cupertino_switch_control"
|
|
7
|
-
require_relative "controls/cupertino/cupertino_slider_control"
|
|
8
|
-
require_relative "controls/cupertino/cupertino_alert_dialog_control"
|
|
9
|
-
require_relative "controls/cupertino/cupertino_action_sheet_control"
|
|
10
|
-
require_relative "controls/cupertino/cupertino_dialog_action_control"
|
|
11
|
-
require_relative "controls/cupertino/cupertino_navigation_bar_control"
|
|
3
|
+
require_relative "controls/cupertinos/ruflet_controls"
|
|
12
4
|
|
|
13
5
|
module Ruflet
|
|
14
6
|
module UI
|
|
15
|
-
|
|
7
|
+
module CupertinoControlFactory
|
|
16
8
|
module_function
|
|
17
9
|
|
|
18
|
-
CLASS_MAP =
|
|
19
|
-
"cupertino_button" => Controls::CupertinoButtonControl,
|
|
20
|
-
"cupertinobutton" => Controls::CupertinoButtonControl,
|
|
21
|
-
"cupertino_filled_button" => Controls::CupertinoFilledButtonControl,
|
|
22
|
-
"cupertinofilledbutton" => Controls::CupertinoFilledButtonControl,
|
|
23
|
-
"cupertino_text_field" => Controls::CupertinoTextFieldControl,
|
|
24
|
-
"cupertinotextfield" => Controls::CupertinoTextFieldControl,
|
|
25
|
-
"cupertino_switch" => Controls::CupertinoSwitchControl,
|
|
26
|
-
"cupertinoswitch" => Controls::CupertinoSwitchControl,
|
|
27
|
-
"cupertino_slider" => Controls::CupertinoSliderControl,
|
|
28
|
-
"cupertinoslider" => Controls::CupertinoSliderControl,
|
|
29
|
-
"cupertino_alert_dialog" => Controls::CupertinoAlertDialogControl,
|
|
30
|
-
"cupertinoalertdialog" => Controls::CupertinoAlertDialogControl,
|
|
31
|
-
"cupertino_action_sheet" => Controls::CupertinoActionSheetControl,
|
|
32
|
-
"cupertinoactionsheet" => Controls::CupertinoActionSheetControl,
|
|
33
|
-
"cupertino_dialog_action" => Controls::CupertinoDialogActionControl,
|
|
34
|
-
"cupertinodialogaction" => Controls::CupertinoDialogActionControl,
|
|
35
|
-
"cupertino_navigation_bar" => Controls::CupertinoNavigationBarControl,
|
|
36
|
-
"cupertinonavigationbar" => Controls::CupertinoNavigationBarControl
|
|
37
|
-
}.freeze
|
|
10
|
+
CLASS_MAP = Controls::Cupertinos::RufletControls::CLASS_MAP.freeze
|
|
38
11
|
end
|
|
39
12
|
end
|
|
40
13
|
end
|
|
@@ -1,97 +1,13 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
require_relative "controls/
|
|
4
|
-
require_relative "controls/material/view_control"
|
|
5
|
-
require_relative "controls/material/container_control"
|
|
6
|
-
require_relative "controls/material/column_control"
|
|
7
|
-
require_relative "controls/material/row_control"
|
|
8
|
-
require_relative "controls/material/stack_control"
|
|
9
|
-
require_relative "controls/material/grid_view_control"
|
|
10
|
-
require_relative "controls/material/gesture_detector_control"
|
|
11
|
-
require_relative "controls/material/draggable_control"
|
|
12
|
-
require_relative "controls/material/drag_target_control"
|
|
13
|
-
require_relative "controls/material/text_field_control"
|
|
14
|
-
require_relative "controls/material/button_control"
|
|
15
|
-
require_relative "controls/material/elevated_button_control"
|
|
16
|
-
require_relative "controls/material/text_button_control"
|
|
17
|
-
require_relative "controls/material/filled_button_control"
|
|
18
|
-
require_relative "controls/material/icon_button_control"
|
|
19
|
-
require_relative "controls/material/icon_control"
|
|
20
|
-
require_relative "controls/material/image_control"
|
|
21
|
-
require_relative "controls/material/app_bar_control"
|
|
22
|
-
require_relative "controls/material/floating_action_button_control"
|
|
23
|
-
require_relative "controls/material/checkbox_control"
|
|
24
|
-
require_relative "controls/material/radio_control"
|
|
25
|
-
require_relative "controls/material/radio_group_control"
|
|
26
|
-
require_relative "controls/material/alert_dialog_control"
|
|
27
|
-
require_relative "controls/material/snack_bar_control"
|
|
28
|
-
require_relative "controls/material/bottom_sheet_control"
|
|
29
|
-
require_relative "controls/material/markdown_control"
|
|
30
|
-
require_relative "controls/material/tabs_control"
|
|
31
|
-
require_relative "controls/material/tab_control"
|
|
32
|
-
require_relative "controls/material/tab_bar_control"
|
|
33
|
-
require_relative "controls/material/tab_bar_view_control"
|
|
34
|
-
require_relative "controls/material/navigation_bar_control"
|
|
35
|
-
require_relative "controls/material/navigation_bar_destination_control"
|
|
3
|
+
require_relative "controls/materials/ruflet_controls"
|
|
36
4
|
|
|
37
5
|
module Ruflet
|
|
38
6
|
module UI
|
|
39
|
-
|
|
7
|
+
module MaterialControlFactory
|
|
40
8
|
module_function
|
|
41
9
|
|
|
42
|
-
CLASS_MAP =
|
|
43
|
-
"text" => Controls::TextControl,
|
|
44
|
-
"view" => Controls::ViewControl,
|
|
45
|
-
"column" => Controls::ColumnControl,
|
|
46
|
-
"row" => Controls::RowControl,
|
|
47
|
-
"stack" => Controls::StackControl,
|
|
48
|
-
"gridview" => Controls::GridViewControl,
|
|
49
|
-
"grid_view" => Controls::GridViewControl,
|
|
50
|
-
"container" => Controls::ContainerControl,
|
|
51
|
-
"gesturedetector" => Controls::GestureDetectorControl,
|
|
52
|
-
"gesture_detector" => Controls::GestureDetectorControl,
|
|
53
|
-
"draggable" => Controls::DraggableControl,
|
|
54
|
-
"dragtarget" => Controls::DragTargetControl,
|
|
55
|
-
"drag_target" => Controls::DragTargetControl,
|
|
56
|
-
"textfield" => Controls::TextFieldControl,
|
|
57
|
-
"text_field" => Controls::TextFieldControl,
|
|
58
|
-
"button" => Controls::ButtonControl,
|
|
59
|
-
"elevatedbutton" => Controls::ElevatedButtonControl,
|
|
60
|
-
"elevated_button" => Controls::ElevatedButtonControl,
|
|
61
|
-
"textbutton" => Controls::TextButtonControl,
|
|
62
|
-
"text_button" => Controls::TextButtonControl,
|
|
63
|
-
"filledbutton" => Controls::FilledButtonControl,
|
|
64
|
-
"filled_button" => Controls::FilledButtonControl,
|
|
65
|
-
"iconbutton" => Controls::IconButtonControl,
|
|
66
|
-
"icon_button" => Controls::IconButtonControl,
|
|
67
|
-
"icon" => Controls::IconControl,
|
|
68
|
-
"image" => Controls::ImageControl,
|
|
69
|
-
"appbar" => Controls::AppBarControl,
|
|
70
|
-
"app_bar" => Controls::AppBarControl,
|
|
71
|
-
"floatingactionbutton" => Controls::FloatingActionButtonControl,
|
|
72
|
-
"floating_action_button" => Controls::FloatingActionButtonControl,
|
|
73
|
-
"checkbox" => Controls::CheckboxControl,
|
|
74
|
-
"radio" => Controls::RadioControl,
|
|
75
|
-
"radiogroup" => Controls::RadioGroupControl,
|
|
76
|
-
"radio_group" => Controls::RadioGroupControl,
|
|
77
|
-
"alertdialog" => Controls::AlertDialogControl,
|
|
78
|
-
"alert_dialog" => Controls::AlertDialogControl,
|
|
79
|
-
"snackbar" => Controls::SnackBarControl,
|
|
80
|
-
"snack_bar" => Controls::SnackBarControl,
|
|
81
|
-
"bottomsheet" => Controls::BottomSheetControl,
|
|
82
|
-
"bottom_sheet" => Controls::BottomSheetControl,
|
|
83
|
-
"markdown" => Controls::MarkdownControl,
|
|
84
|
-
"tabs" => Controls::TabsControl,
|
|
85
|
-
"tab" => Controls::TabControl,
|
|
86
|
-
"tabbar" => Controls::TabBarControl,
|
|
87
|
-
"tab_bar" => Controls::TabBarControl,
|
|
88
|
-
"tabbarview" => Controls::TabBarViewControl,
|
|
89
|
-
"tab_bar_view" => Controls::TabBarViewControl,
|
|
90
|
-
"navigationbar" => Controls::NavigationBarControl,
|
|
91
|
-
"navigation_bar" => Controls::NavigationBarControl,
|
|
92
|
-
"navigationbardestination" => Controls::NavigationBarDestinationControl,
|
|
93
|
-
"navigation_bar_destination" => Controls::NavigationBarDestinationControl
|
|
94
|
-
}.freeze
|
|
10
|
+
CLASS_MAP = Controls::Materials::RufletControls::CLASS_MAP.freeze
|
|
95
11
|
end
|
|
96
12
|
end
|
|
97
13
|
end
|
|
@@ -43,8 +43,9 @@ module Ruflet
|
|
|
43
43
|
end
|
|
44
44
|
|
|
45
45
|
def button(**props) = build_widget(:button, **props)
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
# Ruflet currently uses a single Material button control schema.
|
|
47
|
+
# Keep elevated_button DSL available by routing to :button.
|
|
48
|
+
def elevated_button(**props) = build_widget(:button, **props)
|
|
48
49
|
def text_button(**props) = build_widget(:textbutton, **props)
|
|
49
50
|
def textbutton(**props) = text_button(**props)
|
|
50
51
|
def filled_button(**props) = build_widget(:filledbutton, **props)
|
|
@@ -97,6 +98,46 @@ module Ruflet
|
|
|
97
98
|
def navigationbar(**props, &block) = navigation_bar(**props, &block)
|
|
98
99
|
def navigation_bar_destination(**props, &block) = build_widget(:navigationbardestination, **props, &block)
|
|
99
100
|
def navigationbardestination(**props, &block) = navigation_bar_destination(**props, &block)
|
|
101
|
+
def bar_chart(**props) = build_widget(:barchart, **props)
|
|
102
|
+
def barchart(**props) = bar_chart(**props)
|
|
103
|
+
def bar_chart_group(**props) = build_widget(:barchartgroup, **props)
|
|
104
|
+
def barchartgroup(**props) = bar_chart_group(**props)
|
|
105
|
+
def bar_chart_rod(**props) = build_widget(:barchartrod, **props)
|
|
106
|
+
def barchartrod(**props) = bar_chart_rod(**props)
|
|
107
|
+
def bar_chart_rod_stack_item(**props) = build_widget(:barchartrodstackitem, **props)
|
|
108
|
+
def barchartrodstackitem(**props) = bar_chart_rod_stack_item(**props)
|
|
109
|
+
def line_chart(**props) = build_widget(:linechart, **props)
|
|
110
|
+
def linechart(**props) = line_chart(**props)
|
|
111
|
+
def line_chart_data(**props) = build_widget(:linechartdata, **props)
|
|
112
|
+
def linechartdata(**props) = line_chart_data(**props)
|
|
113
|
+
def line_chart_data_point(**props) = build_widget(:linechartdatapoint, **props)
|
|
114
|
+
def linechartdatapoint(**props) = line_chart_data_point(**props)
|
|
115
|
+
def pie_chart(**props) = build_widget(:piechart, **props)
|
|
116
|
+
def piechart(**props) = pie_chart(**props)
|
|
117
|
+
def pie_chart_section(**props) = build_widget(:piechartsection, **props)
|
|
118
|
+
def piechartsection(**props) = pie_chart_section(**props)
|
|
119
|
+
def candlestick_chart(**props) = build_widget(:candlestickchart, **props)
|
|
120
|
+
def candlestickchart(**props) = candlestick_chart(**props)
|
|
121
|
+
def candlestick_chart_spot(**props) = build_widget(:candlestickchartspot, **props)
|
|
122
|
+
def candlestickchartspot(**props) = candlestick_chart_spot(**props)
|
|
123
|
+
def radar_chart(**props) = build_widget(:radarchart, **props)
|
|
124
|
+
def radarchart(**props) = radar_chart(**props)
|
|
125
|
+
def radar_chart_title(**props) = build_widget(:radarcharttitle, **props)
|
|
126
|
+
def radarcharttitle(**props) = radar_chart_title(**props)
|
|
127
|
+
def radar_data_set(**props) = build_widget(:radardataset, **props)
|
|
128
|
+
def radardataset(**props) = radar_data_set(**props)
|
|
129
|
+
def radar_data_set_entry(**props) = build_widget(:radardatasetentry, **props)
|
|
130
|
+
def radardatasetentry(**props) = radar_data_set_entry(**props)
|
|
131
|
+
def scatter_chart(**props) = build_widget(:scatterchart, **props)
|
|
132
|
+
def scatterchart(**props) = scatter_chart(**props)
|
|
133
|
+
def scatter_chart_spot(**props) = build_widget(:scatterchartspot, **props)
|
|
134
|
+
def scatterchartspot(**props) = scatter_chart_spot(**props)
|
|
135
|
+
def chart_axis(**props) = build_widget(:chartaxis, **props)
|
|
136
|
+
def chartaxis(**props) = chart_axis(**props)
|
|
137
|
+
def chart_axis_label(**props) = build_widget(:chartaxislabel, **props)
|
|
138
|
+
def chartaxislabel(**props) = chart_axis_label(**props)
|
|
139
|
+
def web_view(**props) = build_widget(:webview, **props)
|
|
140
|
+
def webview(**props) = web_view(**props)
|
|
100
141
|
|
|
101
142
|
def fab(content = nil, **props)
|
|
102
143
|
mapped = props.dup
|
|
@@ -123,6 +164,7 @@ module Ruflet
|
|
|
123
164
|
end
|
|
124
165
|
mapped
|
|
125
166
|
end
|
|
167
|
+
|
|
126
168
|
end
|
|
127
169
|
end
|
|
128
170
|
end
|
|
@@ -29,14 +29,19 @@ module Ruflet
|
|
|
29
29
|
"filled_button" => "FilledButton",
|
|
30
30
|
"gesturedetector" => "GestureDetector",
|
|
31
31
|
"gesture_detector" => "GestureDetector",
|
|
32
|
+
"autocomplete" => "AutoComplete",
|
|
33
|
+
"auto_complete" => "AutoComplete",
|
|
32
34
|
"draggable" => "Draggable",
|
|
33
35
|
"dragtarget" => "DragTarget",
|
|
34
36
|
"drag_target" => "DragTarget",
|
|
37
|
+
"filepicker" => "FilePicker",
|
|
38
|
+
"file_picker" => "FilePicker",
|
|
39
|
+
"camera" => "Camera",
|
|
35
40
|
"textfield" => "TextField",
|
|
36
41
|
"text_field" => "TextField",
|
|
37
42
|
"button" => "Button",
|
|
38
|
-
"elevatedbutton" => "
|
|
39
|
-
"elevated_button" => "
|
|
43
|
+
"elevatedbutton" => "ElevatedButton",
|
|
44
|
+
"elevated_button" => "ElevatedButton",
|
|
40
45
|
"iconbutton" => "IconButton",
|
|
41
46
|
"icon_button" => "IconButton",
|
|
42
47
|
"icon" => "Icon",
|
|
@@ -57,10 +62,11 @@ module Ruflet
|
|
|
57
62
|
"navigation_bar_destination" => "NavigationBarDestination",
|
|
58
63
|
"switch" => "Switch",
|
|
59
64
|
"slider" => "Slider",
|
|
60
|
-
"dropdown" => "
|
|
65
|
+
"dropdown" => "Dropdown",
|
|
61
66
|
"dropdownm2" => "DropdownM2",
|
|
62
67
|
"dropdown_m2" => "DropdownM2",
|
|
63
|
-
"option" => "
|
|
68
|
+
"option" => "dropdownoption",
|
|
69
|
+
"dropdownoption" => "dropdownoption",
|
|
64
70
|
"card" => "Card",
|
|
65
71
|
"banner" => "Banner",
|
|
66
72
|
"datepicker" => "DatePicker",
|
|
@@ -79,6 +85,8 @@ module Ruflet
|
|
|
79
85
|
"safe_area" => "SafeArea",
|
|
80
86
|
"canvas" => "Canvas",
|
|
81
87
|
"line" => "Line",
|
|
88
|
+
"overlay" => "Overlay",
|
|
89
|
+
"dialogs" => "Dialogs",
|
|
82
90
|
"service_registry" => "ServiceRegistry",
|
|
83
91
|
"url_launcher" => "UrlLauncher",
|
|
84
92
|
"clipboard" => "Clipboard",
|
|
@@ -86,14 +94,14 @@ module Ruflet
|
|
|
86
94
|
"video" => "Video",
|
|
87
95
|
"flashlight" => "Flashlight",
|
|
88
96
|
"barchart" => "BarChart",
|
|
89
|
-
"barchartgroup" => "
|
|
90
|
-
"barchartrod" => "
|
|
91
|
-
"barchartrodstackitem" => "
|
|
97
|
+
"barchartgroup" => "group",
|
|
98
|
+
"barchartrod" => "rod",
|
|
99
|
+
"barchartrodstackitem" => "stack_item",
|
|
92
100
|
"linechart" => "LineChart",
|
|
93
|
-
"linechartdata" => "
|
|
94
|
-
"linechartdatapoint" => "
|
|
101
|
+
"linechartdata" => "data",
|
|
102
|
+
"linechartdatapoint" => "p",
|
|
95
103
|
"piechart" => "PieChart",
|
|
96
|
-
"piechartsection" => "
|
|
104
|
+
"piechartsection" => "section",
|
|
97
105
|
"candlestickchart" => "CandlestickChart",
|
|
98
106
|
"candlestickchartspot" => "CandlestickChartSpot",
|
|
99
107
|
"radarchart" => "RadarChart",
|
|
@@ -102,8 +110,12 @@ module Ruflet
|
|
|
102
110
|
"radardatasetentry" => "RadarDataSetEntry",
|
|
103
111
|
"scatterchart" => "ScatterChart",
|
|
104
112
|
"scatterchartspot" => "ScatterChartSpot",
|
|
105
|
-
"chartaxis" => "
|
|
106
|
-
"chartaxislabel" => "
|
|
113
|
+
"chartaxis" => "axis",
|
|
114
|
+
"chartaxislabel" => "l",
|
|
115
|
+
"datacell" => "c",
|
|
116
|
+
"datacolumn" => "c",
|
|
117
|
+
"datarow" => "r",
|
|
118
|
+
"windowdragarea" => "windowDragArea"
|
|
107
119
|
}.freeze
|
|
108
120
|
|
|
109
121
|
EVENT_PROPS = {
|
|
@@ -143,6 +155,8 @@ module Ruflet
|
|
|
143
155
|
on_complete: "complete",
|
|
144
156
|
on_track_change: "track_change",
|
|
145
157
|
on_error: "error",
|
|
158
|
+
on_result: "result",
|
|
159
|
+
on_upload: "upload",
|
|
146
160
|
on_accept: "accept",
|
|
147
161
|
on_will_accept: "will_accept",
|
|
148
162
|
on_accept_with_details: "accept_with_details",
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Ruflet
|
|
4
|
+
module UI
|
|
5
|
+
module Services
|
|
6
|
+
module RufletServicesComponents
|
|
7
|
+
class AccelerometerControl < Ruflet::Control
|
|
8
|
+
TYPE = "accelerometer".freeze
|
|
9
|
+
WIRE = "Accelerometer".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,26 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Ruflet
|
|
4
|
+
module UI
|
|
5
|
+
module Services
|
|
6
|
+
module RufletServicesComponents
|
|
7
|
+
class BarometerControl < Ruflet::Control
|
|
8
|
+
TYPE = "barometer".freeze
|
|
9
|
+
WIRE = "Barometer".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,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Ruflet
|
|
4
|
+
module UI
|
|
5
|
+
module Services
|
|
6
|
+
module RufletServicesComponents
|
|
7
|
+
class BatteryControl < Ruflet::Control
|
|
8
|
+
TYPE = "battery".freeze
|
|
9
|
+
WIRE = "Battery".freeze
|
|
10
|
+
|
|
11
|
+
def initialize(id: nil, data: nil, key: nil, on_state_change: nil)
|
|
12
|
+
props = {}
|
|
13
|
+
props[:data] = data unless data.nil?
|
|
14
|
+
props[:key] = key unless key.nil?
|
|
15
|
+
props[:on_state_change] = on_state_change unless on_state_change.nil?
|
|
16
|
+
super(type: TYPE, id: id, **props)
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Ruflet
|
|
4
|
+
module UI
|
|
5
|
+
module Services
|
|
6
|
+
module RufletServicesComponents
|
|
7
|
+
class CameraControl < Ruflet::Control
|
|
8
|
+
TYPE = "camera".freeze
|
|
9
|
+
WIRE = "Camera".freeze
|
|
10
|
+
|
|
11
|
+
def initialize(id: nil, align: nil, animate_align: nil, animate_margin: nil, animate_offset: nil, animate_opacity: nil, animate_position: nil, animate_rotation: nil, animate_scale: nil, animate_size: nil, aspect_ratio: nil, badge: nil, bottom: nil, col: nil, content: nil, data: nil, disabled: nil, expand: nil, expand_loose: nil, height: nil, key: nil, left: nil, margin: nil, offset: nil, opacity: nil, preview_enabled: nil, right: nil, rotate: nil, rtl: nil, scale: nil, size_change_interval: nil, tooltip: nil, top: nil, visible: nil, width: nil, on_animation_end: nil, on_error: nil, on_size_change: nil, on_state_change: nil, on_stream_image: nil)
|
|
12
|
+
props = {}
|
|
13
|
+
props[:align] = align unless align.nil?
|
|
14
|
+
props[:animate_align] = animate_align unless animate_align.nil?
|
|
15
|
+
props[:animate_margin] = animate_margin unless animate_margin.nil?
|
|
16
|
+
props[:animate_offset] = animate_offset unless animate_offset.nil?
|
|
17
|
+
props[:animate_opacity] = animate_opacity unless animate_opacity.nil?
|
|
18
|
+
props[:animate_position] = animate_position unless animate_position.nil?
|
|
19
|
+
props[:animate_rotation] = animate_rotation unless animate_rotation.nil?
|
|
20
|
+
props[:animate_scale] = animate_scale unless animate_scale.nil?
|
|
21
|
+
props[:animate_size] = animate_size unless animate_size.nil?
|
|
22
|
+
props[:aspect_ratio] = aspect_ratio unless aspect_ratio.nil?
|
|
23
|
+
props[:badge] = badge unless badge.nil?
|
|
24
|
+
props[:bottom] = bottom unless bottom.nil?
|
|
25
|
+
props[:col] = col unless col.nil?
|
|
26
|
+
props[:content] = content unless content.nil?
|
|
27
|
+
props[:data] = data unless data.nil?
|
|
28
|
+
props[:disabled] = disabled unless disabled.nil?
|
|
29
|
+
props[:expand] = expand unless expand.nil?
|
|
30
|
+
props[:expand_loose] = expand_loose unless expand_loose.nil?
|
|
31
|
+
props[:height] = height unless height.nil?
|
|
32
|
+
props[:key] = key unless key.nil?
|
|
33
|
+
props[:left] = left unless left.nil?
|
|
34
|
+
props[:margin] = margin unless margin.nil?
|
|
35
|
+
props[:offset] = offset unless offset.nil?
|
|
36
|
+
props[:opacity] = opacity unless opacity.nil?
|
|
37
|
+
props[:preview_enabled] = preview_enabled unless preview_enabled.nil?
|
|
38
|
+
props[:right] = right unless right.nil?
|
|
39
|
+
props[:rotate] = rotate unless rotate.nil?
|
|
40
|
+
props[:rtl] = rtl unless rtl.nil?
|
|
41
|
+
props[:scale] = scale unless scale.nil?
|
|
42
|
+
props[:size_change_interval] = size_change_interval unless size_change_interval.nil?
|
|
43
|
+
props[:tooltip] = tooltip unless tooltip.nil?
|
|
44
|
+
props[:top] = top unless top.nil?
|
|
45
|
+
props[:visible] = visible unless visible.nil?
|
|
46
|
+
props[:width] = width unless width.nil?
|
|
47
|
+
props[:on_animation_end] = on_animation_end unless on_animation_end.nil?
|
|
48
|
+
props[:on_error] = on_error unless on_error.nil?
|
|
49
|
+
props[:on_size_change] = on_size_change unless on_size_change.nil?
|
|
50
|
+
props[:on_state_change] = on_state_change unless on_state_change.nil?
|
|
51
|
+
props[:on_stream_image] = on_stream_image unless on_stream_image.nil?
|
|
52
|
+
super(type: TYPE, id: id, **props)
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
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 ClipboardControl < Ruflet::Control
|
|
8
|
+
TYPE = "clipboard".freeze
|
|
9
|
+
WIRE = "Clipboard".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
|