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,36 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Ruflet
|
|
4
|
+
module UI
|
|
5
|
+
module Controls
|
|
6
|
+
module RufletComponents
|
|
7
|
+
class VerticalDividerControl < Ruflet::Control
|
|
8
|
+
TYPE = "verticaldivider".freeze
|
|
9
|
+
WIRE = "VerticalDivider".freeze
|
|
10
|
+
|
|
11
|
+
def initialize(id: nil, badge: nil, col: nil, color: nil, data: nil, disabled: nil, expand: nil, expand_loose: nil, key: nil, leading_indent: nil, opacity: nil, radius: nil, rtl: nil, thickness: nil, tooltip: nil, trailing_indent: nil, visible: nil, width: nil)
|
|
12
|
+
props = {}
|
|
13
|
+
props[:badge] = badge unless badge.nil?
|
|
14
|
+
props[:col] = col unless col.nil?
|
|
15
|
+
props[:color] = color unless color.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[:leading_indent] = leading_indent unless leading_indent.nil?
|
|
22
|
+
props[:opacity] = opacity unless opacity.nil?
|
|
23
|
+
props[:radius] = radius unless radius.nil?
|
|
24
|
+
props[:rtl] = rtl unless rtl.nil?
|
|
25
|
+
props[:thickness] = thickness unless thickness.nil?
|
|
26
|
+
props[:tooltip] = tooltip unless tooltip.nil?
|
|
27
|
+
props[:trailing_indent] = trailing_indent unless trailing_indent.nil?
|
|
28
|
+
props[:visible] = visible unless visible.nil?
|
|
29
|
+
props[:width] = width unless width.nil?
|
|
30
|
+
super(type: TYPE, id: id, **props)
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Ruflet
|
|
4
|
+
module UI
|
|
5
|
+
module Controls
|
|
6
|
+
module RufletComponents
|
|
7
|
+
class VideoControl < Ruflet::Control
|
|
8
|
+
TYPE = "video".freeze
|
|
9
|
+
WIRE = "Video".freeze
|
|
10
|
+
|
|
11
|
+
def initialize(id: nil, aspect_ratio: nil, autoplay: nil, data: nil, fullscreen: nil, height: nil, key: nil, opacity: nil, playlist: nil, playlist_mode: nil, playback_rate: nil, rtl: nil, tooltip: nil, visible: nil, volume: nil, width: nil, on_enter_fullscreen: nil, on_error: nil, on_exit_fullscreen: nil, on_load: nil, on_state_change: nil)
|
|
12
|
+
props = {}
|
|
13
|
+
props[:aspect_ratio] = aspect_ratio unless aspect_ratio.nil?
|
|
14
|
+
props[:autoplay] = autoplay unless autoplay.nil?
|
|
15
|
+
props[:data] = data unless data.nil?
|
|
16
|
+
props[:fullscreen] = fullscreen unless fullscreen.nil?
|
|
17
|
+
props[:height] = height unless height.nil?
|
|
18
|
+
props[:key] = key unless key.nil?
|
|
19
|
+
props[:opacity] = opacity unless opacity.nil?
|
|
20
|
+
props[:playlist] = playlist unless playlist.nil?
|
|
21
|
+
props[:playlist_mode] = playlist_mode unless playlist_mode.nil?
|
|
22
|
+
props[:playback_rate] = playback_rate unless playback_rate.nil?
|
|
23
|
+
props[:rtl] = rtl unless rtl.nil?
|
|
24
|
+
props[:tooltip] = tooltip unless tooltip.nil?
|
|
25
|
+
props[:visible] = visible unless visible.nil?
|
|
26
|
+
props[:volume] = volume unless volume.nil?
|
|
27
|
+
props[:width] = width unless width.nil?
|
|
28
|
+
props[:on_enter_fullscreen] = on_enter_fullscreen unless on_enter_fullscreen.nil?
|
|
29
|
+
props[:on_error] = on_error unless on_error.nil?
|
|
30
|
+
props[:on_exit_fullscreen] = on_exit_fullscreen unless on_exit_fullscreen.nil?
|
|
31
|
+
props[:on_load] = on_load unless on_load.nil?
|
|
32
|
+
props[:on_state_change] = on_state_change unless on_state_change.nil?
|
|
33
|
+
super(type: TYPE, id: id, **props)
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Ruflet
|
|
4
|
+
module UI
|
|
5
|
+
module Controls
|
|
6
|
+
module RufletComponents
|
|
7
|
+
class WebViewControl < Ruflet::Control
|
|
8
|
+
TYPE = "WebView".freeze
|
|
9
|
+
WIRE = "WebView".freeze
|
|
10
|
+
|
|
11
|
+
def initialize(id: nil, bgcolor: nil, data: nil, enable_javascript: nil, expand: nil, height: nil, key: nil, method: nil, opacity: nil, rtl: nil, tooltip: nil, url: nil, visible: nil, width: nil, on_page_ended: nil, on_page_started: nil, on_web_resource_error: nil)
|
|
12
|
+
props = {}
|
|
13
|
+
props[:bgcolor] = bgcolor unless bgcolor.nil?
|
|
14
|
+
props[:data] = data unless data.nil?
|
|
15
|
+
props[:enable_javascript] = enable_javascript unless enable_javascript.nil?
|
|
16
|
+
props[:expand] = expand unless expand.nil?
|
|
17
|
+
props[:height] = height unless height.nil?
|
|
18
|
+
props[:key] = key unless key.nil?
|
|
19
|
+
props[:method] = method unless method.nil?
|
|
20
|
+
props[:opacity] = opacity unless opacity.nil?
|
|
21
|
+
props[:rtl] = rtl unless rtl.nil?
|
|
22
|
+
props[:tooltip] = tooltip unless tooltip.nil?
|
|
23
|
+
props[:url] = url unless url.nil?
|
|
24
|
+
props[:visible] = visible unless visible.nil?
|
|
25
|
+
props[:width] = width unless width.nil?
|
|
26
|
+
props[:on_page_ended] = on_page_ended unless on_page_ended.nil?
|
|
27
|
+
props[:on_page_started] = on_page_started unless on_page_started.nil?
|
|
28
|
+
props[:on_web_resource_error] = on_web_resource_error unless on_web_resource_error.nil?
|
|
29
|
+
super(type: TYPE, id: id, **props)
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
@@ -0,0 +1,447 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative "cupertinos/cupertinoactionsheet_control"
|
|
4
|
+
require_relative "cupertinos/cupertinoactionsheetaction_control"
|
|
5
|
+
require_relative "cupertinos/cupertinoactivityindicator_control"
|
|
6
|
+
require_relative "cupertinos/cupertinoalertdialog_control"
|
|
7
|
+
require_relative "cupertinos/cupertinoappbar_control"
|
|
8
|
+
require_relative "cupertinos/cupertinobottomsheet_control"
|
|
9
|
+
require_relative "cupertinos/cupertinobutton_control"
|
|
10
|
+
require_relative "cupertinos/cupertinocheckbox_control"
|
|
11
|
+
require_relative "cupertinos/cupertinocontextmenu_control"
|
|
12
|
+
require_relative "cupertinos/cupertinocontextmenuaction_control"
|
|
13
|
+
require_relative "cupertinos/cupertinodatepicker_control"
|
|
14
|
+
require_relative "cupertinos/cupertinodialogaction_control"
|
|
15
|
+
require_relative "cupertinos/cupertinofilledbutton_control"
|
|
16
|
+
require_relative "cupertinos/cupertinolisttile_control"
|
|
17
|
+
require_relative "cupertinos/cupertinonavigationbar_control"
|
|
18
|
+
require_relative "cupertinos/cupertinopicker_control"
|
|
19
|
+
require_relative "cupertinos/cupertinoradio_control"
|
|
20
|
+
require_relative "cupertinos/cupertinosegmentedbutton_control"
|
|
21
|
+
require_relative "cupertinos/cupertinoslider_control"
|
|
22
|
+
require_relative "cupertinos/cupertinoslidingsegmentedbutton_control"
|
|
23
|
+
require_relative "cupertinos/cupertinoswitch_control"
|
|
24
|
+
require_relative "cupertinos/cupertinotextfield_control"
|
|
25
|
+
require_relative "cupertinos/cupertinotimerpicker_control"
|
|
26
|
+
require_relative "cupertinos/cupertinotintedbutton_control"
|
|
27
|
+
require_relative "materials/alertdialog_control"
|
|
28
|
+
require_relative "materials/audio_control"
|
|
29
|
+
require_relative "materials/appbar_control"
|
|
30
|
+
require_relative "materials/autocomplete_control"
|
|
31
|
+
require_relative "materials/badge_control"
|
|
32
|
+
require_relative "materials/banner_control"
|
|
33
|
+
require_relative "materials/chart_controls"
|
|
34
|
+
require_relative "materials/bottomappbar_control"
|
|
35
|
+
require_relative "materials/bottomsheet_control"
|
|
36
|
+
require_relative "materials/button_control"
|
|
37
|
+
require_relative "materials/card_control"
|
|
38
|
+
require_relative "materials/checkbox_control"
|
|
39
|
+
require_relative "materials/chip_control"
|
|
40
|
+
require_relative "materials/circleavatar_control"
|
|
41
|
+
require_relative "materials/container_control"
|
|
42
|
+
require_relative "materials/contextmenu_control"
|
|
43
|
+
require_relative "materials/datacell_control"
|
|
44
|
+
require_relative "materials/datacolumn_control"
|
|
45
|
+
require_relative "materials/datarow_control"
|
|
46
|
+
require_relative "materials/datatable_control"
|
|
47
|
+
require_relative "materials/datepicker_control"
|
|
48
|
+
require_relative "materials/daterangepicker_control"
|
|
49
|
+
require_relative "materials/divider_control"
|
|
50
|
+
require_relative "materials/dropdown_control"
|
|
51
|
+
require_relative "materials/dropdownm2_control"
|
|
52
|
+
require_relative "materials/dropdownoption_control"
|
|
53
|
+
require_relative "materials/expansionpanel_control"
|
|
54
|
+
require_relative "materials/expansionpanellist_control"
|
|
55
|
+
require_relative "materials/expansiontile_control"
|
|
56
|
+
require_relative "materials/filledbutton_control"
|
|
57
|
+
require_relative "materials/fillediconbutton_control"
|
|
58
|
+
require_relative "materials/filledtonalbutton_control"
|
|
59
|
+
require_relative "materials/filledtonaliconbutton_control"
|
|
60
|
+
require_relative "materials/floatingactionbutton_control"
|
|
61
|
+
require_relative "materials/iconbutton_control"
|
|
62
|
+
require_relative "materials/listtile_control"
|
|
63
|
+
require_relative "materials/menubar_control"
|
|
64
|
+
require_relative "materials/menuitembutton_control"
|
|
65
|
+
require_relative "materials/navigationbar_control"
|
|
66
|
+
require_relative "materials/navigationbardestination_control"
|
|
67
|
+
require_relative "materials/navigationdrawer_control"
|
|
68
|
+
require_relative "materials/navigationdrawerdestination_control"
|
|
69
|
+
require_relative "materials/navigationrail_control"
|
|
70
|
+
require_relative "materials/navigationraildestination_control"
|
|
71
|
+
require_relative "materials/option_control"
|
|
72
|
+
require_relative "materials/outlinedbutton_control"
|
|
73
|
+
require_relative "materials/outlinediconbutton_control"
|
|
74
|
+
require_relative "materials/popupmenubutton_control"
|
|
75
|
+
require_relative "materials/popupmenuitem_control"
|
|
76
|
+
require_relative "materials/progressbar_control"
|
|
77
|
+
require_relative "materials/progressring_control"
|
|
78
|
+
require_relative "materials/radio_control"
|
|
79
|
+
require_relative "materials/radiogroup_control"
|
|
80
|
+
require_relative "materials/rangeslider_control"
|
|
81
|
+
require_relative "materials/reorderablelistview_control"
|
|
82
|
+
require_relative "materials/searchbar_control"
|
|
83
|
+
require_relative "materials/segment_control"
|
|
84
|
+
require_relative "materials/segmentedbutton_control"
|
|
85
|
+
require_relative "materials/selectionarea_control"
|
|
86
|
+
require_relative "materials/slider_control"
|
|
87
|
+
require_relative "materials/snackbar_control"
|
|
88
|
+
require_relative "materials/submenubutton_control"
|
|
89
|
+
require_relative "materials/switch_control"
|
|
90
|
+
require_relative "materials/tab_control"
|
|
91
|
+
require_relative "materials/tabbar_control"
|
|
92
|
+
require_relative "materials/tabbarview_control"
|
|
93
|
+
require_relative "materials/tabs_control"
|
|
94
|
+
require_relative "materials/textbutton_control"
|
|
95
|
+
require_relative "materials/textfield_control"
|
|
96
|
+
require_relative "materials/timepicker_control"
|
|
97
|
+
require_relative "materials/verticaldivider_control"
|
|
98
|
+
require_relative "materials/video_control"
|
|
99
|
+
require_relative "materials/webview_control"
|
|
100
|
+
require_relative "shared/animatedswitcher_control"
|
|
101
|
+
require_relative "shared/arc_control"
|
|
102
|
+
require_relative "shared/autofillgroup_control"
|
|
103
|
+
require_relative "shared/basepage_control"
|
|
104
|
+
require_relative "shared/browsercontextmenu_control"
|
|
105
|
+
require_relative "shared/canvas_control"
|
|
106
|
+
require_relative "shared/circle_control"
|
|
107
|
+
require_relative "shared/color_control"
|
|
108
|
+
require_relative "shared/column_control"
|
|
109
|
+
require_relative "shared/dialogs_control"
|
|
110
|
+
require_relative "shared/dismissible_control"
|
|
111
|
+
require_relative "shared/draggable_control"
|
|
112
|
+
require_relative "shared/dragtarget_control"
|
|
113
|
+
require_relative "shared/fill_control"
|
|
114
|
+
require_relative "shared/fletapp_control"
|
|
115
|
+
require_relative "shared/gesturedetector_control"
|
|
116
|
+
require_relative "shared/gridview_control"
|
|
117
|
+
require_relative "shared/hero_control"
|
|
118
|
+
require_relative "shared/icon_control"
|
|
119
|
+
require_relative "shared/image_control"
|
|
120
|
+
require_relative "shared/interactiveviewer_control"
|
|
121
|
+
require_relative "shared/keyboardlistener_control"
|
|
122
|
+
require_relative "shared/line_control"
|
|
123
|
+
require_relative "shared/listview_control"
|
|
124
|
+
require_relative "shared/markdown_control"
|
|
125
|
+
require_relative "shared/mergesemantics_control"
|
|
126
|
+
require_relative "shared/oval_control"
|
|
127
|
+
require_relative "shared/overlay_control"
|
|
128
|
+
require_relative "shared/page_control"
|
|
129
|
+
require_relative "shared/pagelet_control"
|
|
130
|
+
require_relative "shared/pageview_control"
|
|
131
|
+
require_relative "shared/path_control"
|
|
132
|
+
require_relative "shared/placeholder_control"
|
|
133
|
+
require_relative "shared/points_control"
|
|
134
|
+
require_relative "shared/rect_control"
|
|
135
|
+
require_relative "shared/reorderabledraghandle_control"
|
|
136
|
+
require_relative "shared/responsiverow_control"
|
|
137
|
+
require_relative "shared/row_control"
|
|
138
|
+
require_relative "shared/safearea_control"
|
|
139
|
+
require_relative "shared/semantics_control"
|
|
140
|
+
require_relative "shared/serviceregistry_control"
|
|
141
|
+
require_relative "shared/shadermask_control"
|
|
142
|
+
require_relative "shared/shadow_control"
|
|
143
|
+
require_relative "shared/shimmer_control"
|
|
144
|
+
require_relative "shared/stack_control"
|
|
145
|
+
require_relative "shared/text_control"
|
|
146
|
+
require_relative "shared/textspan_control"
|
|
147
|
+
require_relative "shared/transparentpointer_control"
|
|
148
|
+
require_relative "shared/view_control"
|
|
149
|
+
require_relative "shared/window_control"
|
|
150
|
+
require_relative "shared/windowdragarea_control"
|
|
151
|
+
|
|
152
|
+
module Ruflet
|
|
153
|
+
module UI
|
|
154
|
+
module Controls
|
|
155
|
+
module RufletControls
|
|
156
|
+
module_function
|
|
157
|
+
|
|
158
|
+
CLASS_MAP = {
|
|
159
|
+
"alert_dialog" => RufletComponents::AlertDialogControl,
|
|
160
|
+
"alertdialog" => RufletComponents::AlertDialogControl,
|
|
161
|
+
"audio" => RufletComponents::AudioControl,
|
|
162
|
+
"animated_switcher" => RufletComponents::AnimatedSwitcherControl,
|
|
163
|
+
"animatedswitcher" => RufletComponents::AnimatedSwitcherControl,
|
|
164
|
+
"app_bar" => RufletComponents::AppBarControl,
|
|
165
|
+
"appbar" => RufletComponents::AppBarControl,
|
|
166
|
+
"arc" => RufletComponents::ArcControl,
|
|
167
|
+
"auto_complete" => RufletComponents::AutoCompleteControl,
|
|
168
|
+
"autocomplete" => RufletComponents::AutoCompleteControl,
|
|
169
|
+
"autofill_group" => RufletComponents::AutofillGroupControl,
|
|
170
|
+
"autofillgroup" => RufletComponents::AutofillGroupControl,
|
|
171
|
+
"badge" => RufletComponents::BadgeControl,
|
|
172
|
+
"banner" => RufletComponents::BannerControl,
|
|
173
|
+
"base_page" => RufletComponents::BasePageControl,
|
|
174
|
+
"basepage" => RufletComponents::BasePageControl,
|
|
175
|
+
"bottom_app_bar" => RufletComponents::BottomAppBarControl,
|
|
176
|
+
"bottom_sheet" => RufletComponents::BottomSheetControl,
|
|
177
|
+
"bottomappbar" => RufletComponents::BottomAppBarControl,
|
|
178
|
+
"bottomsheet" => RufletComponents::BottomSheetControl,
|
|
179
|
+
"bar_chart" => RufletComponents::BarChartControl,
|
|
180
|
+
"bar_chart_group" => RufletComponents::BarChartGroupControl,
|
|
181
|
+
"bar_chart_rod" => RufletComponents::BarChartRodControl,
|
|
182
|
+
"bar_chart_rod_stack_item" => RufletComponents::BarChartRodStackItemControl,
|
|
183
|
+
"barchart" => RufletComponents::BarChartControl,
|
|
184
|
+
"barchartgroup" => RufletComponents::BarChartGroupControl,
|
|
185
|
+
"barchartrod" => RufletComponents::BarChartRodControl,
|
|
186
|
+
"barchartrodstackitem" => RufletComponents::BarChartRodStackItemControl,
|
|
187
|
+
"browser_context_menu" => RufletComponents::BrowserContextMenuControl,
|
|
188
|
+
"browsercontextmenu" => RufletComponents::BrowserContextMenuControl,
|
|
189
|
+
"button" => RufletComponents::ButtonControl,
|
|
190
|
+
"canvas" => RufletComponents::CanvasControl,
|
|
191
|
+
"card" => RufletComponents::CardControl,
|
|
192
|
+
"candlestick_chart" => RufletComponents::CandlestickChartControl,
|
|
193
|
+
"candlestick_chart_spot" => RufletComponents::CandlestickChartSpotControl,
|
|
194
|
+
"candlestickchart" => RufletComponents::CandlestickChartControl,
|
|
195
|
+
"candlestickchartspot" => RufletComponents::CandlestickChartSpotControl,
|
|
196
|
+
"chart_axis" => RufletComponents::ChartAxisControl,
|
|
197
|
+
"chart_axis_label" => RufletComponents::ChartAxisLabelControl,
|
|
198
|
+
"chartaxis" => RufletComponents::ChartAxisControl,
|
|
199
|
+
"chartaxislabel" => RufletComponents::ChartAxisLabelControl,
|
|
200
|
+
"checkbox" => RufletComponents::CheckboxControl,
|
|
201
|
+
"chip" => RufletComponents::ChipControl,
|
|
202
|
+
"circle" => RufletComponents::CircleControl,
|
|
203
|
+
"circle_avatar" => RufletComponents::CircleAvatarControl,
|
|
204
|
+
"circleavatar" => RufletComponents::CircleAvatarControl,
|
|
205
|
+
"color" => RufletComponents::ColorControl,
|
|
206
|
+
"column" => RufletComponents::ColumnControl,
|
|
207
|
+
"container" => RufletComponents::ContainerControl,
|
|
208
|
+
"context_menu" => RufletComponents::ContextMenuControl,
|
|
209
|
+
"contextmenu" => RufletComponents::ContextMenuControl,
|
|
210
|
+
"cupertino_action_sheet" => RufletComponents::CupertinoActionSheetControl,
|
|
211
|
+
"cupertino_action_sheet_action" => RufletComponents::CupertinoActionSheetActionControl,
|
|
212
|
+
"cupertino_activity_indicator" => RufletComponents::CupertinoActivityIndicatorControl,
|
|
213
|
+
"cupertino_alert_dialog" => RufletComponents::CupertinoAlertDialogControl,
|
|
214
|
+
"cupertino_app_bar" => RufletComponents::CupertinoAppBarControl,
|
|
215
|
+
"cupertino_bottom_sheet" => RufletComponents::CupertinoBottomSheetControl,
|
|
216
|
+
"cupertino_button" => RufletComponents::CupertinoButtonControl,
|
|
217
|
+
"cupertino_checkbox" => RufletComponents::CupertinoCheckboxControl,
|
|
218
|
+
"cupertino_context_menu" => RufletComponents::CupertinoContextMenuControl,
|
|
219
|
+
"cupertino_context_menu_action" => RufletComponents::CupertinoContextMenuActionControl,
|
|
220
|
+
"cupertino_date_picker" => RufletComponents::CupertinoDatePickerControl,
|
|
221
|
+
"cupertino_dialog_action" => RufletComponents::CupertinoDialogActionControl,
|
|
222
|
+
"cupertino_filled_button" => RufletComponents::CupertinoFilledButtonControl,
|
|
223
|
+
"cupertino_list_tile" => RufletComponents::CupertinoListTileControl,
|
|
224
|
+
"cupertino_navigation_bar" => RufletComponents::CupertinoNavigationBarControl,
|
|
225
|
+
"cupertino_picker" => RufletComponents::CupertinoPickerControl,
|
|
226
|
+
"cupertino_radio" => RufletComponents::CupertinoRadioControl,
|
|
227
|
+
"cupertino_segmented_button" => RufletComponents::CupertinoSegmentedButtonControl,
|
|
228
|
+
"cupertino_slider" => RufletComponents::CupertinoSliderControl,
|
|
229
|
+
"cupertino_sliding_segmented_button" => RufletComponents::CupertinoSlidingSegmentedButtonControl,
|
|
230
|
+
"cupertino_switch" => RufletComponents::CupertinoSwitchControl,
|
|
231
|
+
"cupertino_text_field" => RufletComponents::CupertinoTextFieldControl,
|
|
232
|
+
"cupertino_timer_picker" => RufletComponents::CupertinoTimerPickerControl,
|
|
233
|
+
"cupertino_tinted_button" => RufletComponents::CupertinoTintedButtonControl,
|
|
234
|
+
"cupertinoactionsheet" => RufletComponents::CupertinoActionSheetControl,
|
|
235
|
+
"cupertinoactionsheetaction" => RufletComponents::CupertinoActionSheetActionControl,
|
|
236
|
+
"cupertinoactivityindicator" => RufletComponents::CupertinoActivityIndicatorControl,
|
|
237
|
+
"cupertinoalertdialog" => RufletComponents::CupertinoAlertDialogControl,
|
|
238
|
+
"cupertinoappbar" => RufletComponents::CupertinoAppBarControl,
|
|
239
|
+
"cupertinobottomsheet" => RufletComponents::CupertinoBottomSheetControl,
|
|
240
|
+
"cupertinobutton" => RufletComponents::CupertinoButtonControl,
|
|
241
|
+
"cupertinocheckbox" => RufletComponents::CupertinoCheckboxControl,
|
|
242
|
+
"cupertinocontextmenu" => RufletComponents::CupertinoContextMenuControl,
|
|
243
|
+
"cupertinocontextmenuaction" => RufletComponents::CupertinoContextMenuActionControl,
|
|
244
|
+
"cupertinodatepicker" => RufletComponents::CupertinoDatePickerControl,
|
|
245
|
+
"cupertinodialogaction" => RufletComponents::CupertinoDialogActionControl,
|
|
246
|
+
"cupertinofilledbutton" => RufletComponents::CupertinoFilledButtonControl,
|
|
247
|
+
"cupertinolisttile" => RufletComponents::CupertinoListTileControl,
|
|
248
|
+
"cupertinonavigationbar" => RufletComponents::CupertinoNavigationBarControl,
|
|
249
|
+
"cupertinopicker" => RufletComponents::CupertinoPickerControl,
|
|
250
|
+
"cupertinoradio" => RufletComponents::CupertinoRadioControl,
|
|
251
|
+
"cupertinosegmentedbutton" => RufletComponents::CupertinoSegmentedButtonControl,
|
|
252
|
+
"cupertinoslider" => RufletComponents::CupertinoSliderControl,
|
|
253
|
+
"cupertinoslidingsegmentedbutton" => RufletComponents::CupertinoSlidingSegmentedButtonControl,
|
|
254
|
+
"cupertinoswitch" => RufletComponents::CupertinoSwitchControl,
|
|
255
|
+
"cupertinotextfield" => RufletComponents::CupertinoTextFieldControl,
|
|
256
|
+
"cupertinotimerpicker" => RufletComponents::CupertinoTimerPickerControl,
|
|
257
|
+
"cupertinotintedbutton" => RufletComponents::CupertinoTintedButtonControl,
|
|
258
|
+
"data_cell" => RufletComponents::DataCellControl,
|
|
259
|
+
"data_column" => RufletComponents::DataColumnControl,
|
|
260
|
+
"data_row" => RufletComponents::DataRowControl,
|
|
261
|
+
"data_table" => RufletComponents::DataTableControl,
|
|
262
|
+
"datacell" => RufletComponents::DataCellControl,
|
|
263
|
+
"datacolumn" => RufletComponents::DataColumnControl,
|
|
264
|
+
"datarow" => RufletComponents::DataRowControl,
|
|
265
|
+
"datatable" => RufletComponents::DataTableControl,
|
|
266
|
+
"date_picker" => RufletComponents::DatePickerControl,
|
|
267
|
+
"date_range_picker" => RufletComponents::DateRangePickerControl,
|
|
268
|
+
"datepicker" => RufletComponents::DatePickerControl,
|
|
269
|
+
"daterangepicker" => RufletComponents::DateRangePickerControl,
|
|
270
|
+
"dialogs" => RufletComponents::DialogsControl,
|
|
271
|
+
"dismissible" => RufletComponents::DismissibleControl,
|
|
272
|
+
"divider" => RufletComponents::DividerControl,
|
|
273
|
+
"drag_target" => RufletComponents::DragTargetControl,
|
|
274
|
+
"draggable" => RufletComponents::DraggableControl,
|
|
275
|
+
"dragtarget" => RufletComponents::DragTargetControl,
|
|
276
|
+
"dropdown" => RufletComponents::DropdownControl,
|
|
277
|
+
"dropdown_m2" => RufletComponents::Dropdown2Control,
|
|
278
|
+
"dropdown_option" => RufletComponents::DropdownOptionControl,
|
|
279
|
+
"dropdownm2" => RufletComponents::Dropdown2Control,
|
|
280
|
+
"dropdownoption" => RufletComponents::DropdownOptionControl,
|
|
281
|
+
"expansion_panel" => RufletComponents::ExpansionPanelControl,
|
|
282
|
+
"expansion_panel_list" => RufletComponents::ExpansionPanelListControl,
|
|
283
|
+
"expansion_tile" => RufletComponents::ExpansionTileControl,
|
|
284
|
+
"expansionpanel" => RufletComponents::ExpansionPanelControl,
|
|
285
|
+
"expansionpanellist" => RufletComponents::ExpansionPanelListControl,
|
|
286
|
+
"expansiontile" => RufletComponents::ExpansionTileControl,
|
|
287
|
+
"fill" => RufletComponents::FillControl,
|
|
288
|
+
"filled_button" => RufletComponents::FilledButtonControl,
|
|
289
|
+
"filled_icon_button" => RufletComponents::FilledIconButtonControl,
|
|
290
|
+
"filled_tonal_button" => RufletComponents::FilledTonalButtonControl,
|
|
291
|
+
"filled_tonal_icon_button" => RufletComponents::FilledTonalIconButtonControl,
|
|
292
|
+
"filledbutton" => RufletComponents::FilledButtonControl,
|
|
293
|
+
"fillediconbutton" => RufletComponents::FilledIconButtonControl,
|
|
294
|
+
"filledtonalbutton" => RufletComponents::FilledTonalButtonControl,
|
|
295
|
+
"filledtonaliconbutton" => RufletComponents::FilledTonalIconButtonControl,
|
|
296
|
+
"flet_app" => RufletComponents::FletAppControl,
|
|
297
|
+
"fletapp" => RufletComponents::FletAppControl,
|
|
298
|
+
"floating_action_button" => RufletComponents::FloatingActionButtonControl,
|
|
299
|
+
"floatingactionbutton" => RufletComponents::FloatingActionButtonControl,
|
|
300
|
+
"gesture_detector" => RufletComponents::GestureDetectorControl,
|
|
301
|
+
"gesturedetector" => RufletComponents::GestureDetectorControl,
|
|
302
|
+
"grid_view" => RufletComponents::GridViewControl,
|
|
303
|
+
"gridview" => RufletComponents::GridViewControl,
|
|
304
|
+
"hero" => RufletComponents::HeroControl,
|
|
305
|
+
"icon" => RufletComponents::IconControl,
|
|
306
|
+
"icon_button" => RufletComponents::IconButtonControl,
|
|
307
|
+
"iconbutton" => RufletComponents::IconButtonControl,
|
|
308
|
+
"image" => RufletComponents::ImageControl,
|
|
309
|
+
"interactive_viewer" => RufletComponents::InteractiveViewerControl,
|
|
310
|
+
"interactiveviewer" => RufletComponents::InteractiveViewerControl,
|
|
311
|
+
"keyboard_listener" => RufletComponents::KeyboardListenerControl,
|
|
312
|
+
"keyboardlistener" => RufletComponents::KeyboardListenerControl,
|
|
313
|
+
"line" => RufletComponents::LineControl,
|
|
314
|
+
"line_chart" => RufletComponents::LineChartControl,
|
|
315
|
+
"line_chart_data" => RufletComponents::LineChartDataControl,
|
|
316
|
+
"line_chart_data_point" => RufletComponents::LineChartDataPointControl,
|
|
317
|
+
"linechart" => RufletComponents::LineChartControl,
|
|
318
|
+
"linechartdata" => RufletComponents::LineChartDataControl,
|
|
319
|
+
"linechartdatapoint" => RufletComponents::LineChartDataPointControl,
|
|
320
|
+
"list_tile" => RufletComponents::ListTileControl,
|
|
321
|
+
"list_view" => RufletComponents::ListViewControl,
|
|
322
|
+
"listtile" => RufletComponents::ListTileControl,
|
|
323
|
+
"listview" => RufletComponents::ListViewControl,
|
|
324
|
+
"markdown" => RufletComponents::MarkdownControl,
|
|
325
|
+
"menu_bar" => RufletComponents::MenuBarControl,
|
|
326
|
+
"menu_item_button" => RufletComponents::MenuItemButtonControl,
|
|
327
|
+
"menubar" => RufletComponents::MenuBarControl,
|
|
328
|
+
"menuitembutton" => RufletComponents::MenuItemButtonControl,
|
|
329
|
+
"merge_semantics" => RufletComponents::MergeSemanticsControl,
|
|
330
|
+
"mergesemantics" => RufletComponents::MergeSemanticsControl,
|
|
331
|
+
"navigation_bar" => RufletComponents::NavigationBarControl,
|
|
332
|
+
"navigation_bar_destination" => RufletComponents::NavigationBarDestinationControl,
|
|
333
|
+
"navigation_drawer" => RufletComponents::NavigationDrawerControl,
|
|
334
|
+
"navigation_drawer_destination" => RufletComponents::NavigationDrawerDestinationControl,
|
|
335
|
+
"navigation_rail" => RufletComponents::NavigationRailControl,
|
|
336
|
+
"navigation_rail_destination" => RufletComponents::NavigationRailDestinationControl,
|
|
337
|
+
"navigationbar" => RufletComponents::NavigationBarControl,
|
|
338
|
+
"navigationbardestination" => RufletComponents::NavigationBarDestinationControl,
|
|
339
|
+
"navigationdrawer" => RufletComponents::NavigationDrawerControl,
|
|
340
|
+
"navigationdrawerdestination" => RufletComponents::NavigationDrawerDestinationControl,
|
|
341
|
+
"navigationrail" => RufletComponents::NavigationRailControl,
|
|
342
|
+
"navigationraildestination" => RufletComponents::NavigationRailDestinationControl,
|
|
343
|
+
"option" => RufletComponents::OptionControl,
|
|
344
|
+
"outlined_button" => RufletComponents::OutlinedButtonControl,
|
|
345
|
+
"outlined_icon_button" => RufletComponents::OutlinedIconButtonControl,
|
|
346
|
+
"outlinedbutton" => RufletComponents::OutlinedButtonControl,
|
|
347
|
+
"outlinediconbutton" => RufletComponents::OutlinedIconButtonControl,
|
|
348
|
+
"oval" => RufletComponents::OvalControl,
|
|
349
|
+
"overlay" => RufletComponents::OverlayControl,
|
|
350
|
+
"page" => RufletComponents::PageControl,
|
|
351
|
+
"page_view" => RufletComponents::PageViewControl,
|
|
352
|
+
"pagelet" => RufletComponents::PageletControl,
|
|
353
|
+
"pageview" => RufletComponents::PageViewControl,
|
|
354
|
+
"path" => RufletComponents::PathControl,
|
|
355
|
+
"placeholder" => RufletComponents::PlaceholderControl,
|
|
356
|
+
"points" => RufletComponents::PointsControl,
|
|
357
|
+
"popup_menu_button" => RufletComponents::PopupMenuButtonControl,
|
|
358
|
+
"popup_menu_item" => RufletComponents::PopupMenuItemControl,
|
|
359
|
+
"popupmenubutton" => RufletComponents::PopupMenuButtonControl,
|
|
360
|
+
"popupmenuitem" => RufletComponents::PopupMenuItemControl,
|
|
361
|
+
"pie_chart" => RufletComponents::PieChartControl,
|
|
362
|
+
"pie_chart_section" => RufletComponents::PieChartSectionControl,
|
|
363
|
+
"piechart" => RufletComponents::PieChartControl,
|
|
364
|
+
"piechartsection" => RufletComponents::PieChartSectionControl,
|
|
365
|
+
"progress_bar" => RufletComponents::ProgressBarControl,
|
|
366
|
+
"progress_ring" => RufletComponents::ProgressRingControl,
|
|
367
|
+
"progressbar" => RufletComponents::ProgressBarControl,
|
|
368
|
+
"progressring" => RufletComponents::ProgressRingControl,
|
|
369
|
+
"radio" => RufletComponents::RadioControl,
|
|
370
|
+
"radio_group" => RufletComponents::RadioGroupControl,
|
|
371
|
+
"radiogroup" => RufletComponents::RadioGroupControl,
|
|
372
|
+
"radar_chart" => RufletComponents::RadarChartControl,
|
|
373
|
+
"radar_chart_title" => RufletComponents::RadarChartTitleControl,
|
|
374
|
+
"radar_data_set" => RufletComponents::RadarDataSetControl,
|
|
375
|
+
"radar_data_set_entry" => RufletComponents::RadarDataSetEntryControl,
|
|
376
|
+
"radarchart" => RufletComponents::RadarChartControl,
|
|
377
|
+
"radarcharttitle" => RufletComponents::RadarChartTitleControl,
|
|
378
|
+
"radardataset" => RufletComponents::RadarDataSetControl,
|
|
379
|
+
"radardatasetentry" => RufletComponents::RadarDataSetEntryControl,
|
|
380
|
+
"range_slider" => RufletComponents::RangeSliderControl,
|
|
381
|
+
"rangeslider" => RufletComponents::RangeSliderControl,
|
|
382
|
+
"rect" => RufletComponents::RectControl,
|
|
383
|
+
"reorderable_drag_handle" => RufletComponents::ReorderableDragHandleControl,
|
|
384
|
+
"reorderable_list_view" => RufletComponents::ReorderableListViewControl,
|
|
385
|
+
"reorderabledraghandle" => RufletComponents::ReorderableDragHandleControl,
|
|
386
|
+
"reorderablelistview" => RufletComponents::ReorderableListViewControl,
|
|
387
|
+
"responsive_row" => RufletComponents::ResponsiveRowControl,
|
|
388
|
+
"responsiverow" => RufletComponents::ResponsiveRowControl,
|
|
389
|
+
"row" => RufletComponents::RowControl,
|
|
390
|
+
"safe_area" => RufletComponents::SafeAreaControl,
|
|
391
|
+
"safearea" => RufletComponents::SafeAreaControl,
|
|
392
|
+
"search_bar" => RufletComponents::SearchBarControl,
|
|
393
|
+
"searchbar" => RufletComponents::SearchBarControl,
|
|
394
|
+
"segment" => RufletComponents::SegmentControl,
|
|
395
|
+
"segmented_button" => RufletComponents::SegmentedButtonControl,
|
|
396
|
+
"segmentedbutton" => RufletComponents::SegmentedButtonControl,
|
|
397
|
+
"selection_area" => RufletComponents::SelectionAreaControl,
|
|
398
|
+
"selectionarea" => RufletComponents::SelectionAreaControl,
|
|
399
|
+
"scatter_chart" => RufletComponents::ScatterChartControl,
|
|
400
|
+
"scatter_chart_spot" => RufletComponents::ScatterChartSpotControl,
|
|
401
|
+
"scatterchart" => RufletComponents::ScatterChartControl,
|
|
402
|
+
"scatterchartspot" => RufletComponents::ScatterChartSpotControl,
|
|
403
|
+
"semantics" => RufletComponents::SemanticsControl,
|
|
404
|
+
"service_registry" => RufletComponents::ServiceRegistryControl,
|
|
405
|
+
"serviceregistry" => RufletComponents::ServiceRegistryControl,
|
|
406
|
+
"shader_mask" => RufletComponents::ShaderMaskControl,
|
|
407
|
+
"shadermask" => RufletComponents::ShaderMaskControl,
|
|
408
|
+
"shadow" => RufletComponents::ShadowControl,
|
|
409
|
+
"shimmer" => RufletComponents::ShimmerControl,
|
|
410
|
+
"slider" => RufletComponents::SliderControl,
|
|
411
|
+
"snack_bar" => RufletComponents::SnackBarControl,
|
|
412
|
+
"snackbar" => RufletComponents::SnackBarControl,
|
|
413
|
+
"stack" => RufletComponents::StackControl,
|
|
414
|
+
"submenu_button" => RufletComponents::SubmenuButtonControl,
|
|
415
|
+
"submenubutton" => RufletComponents::SubmenuButtonControl,
|
|
416
|
+
"switch" => RufletComponents::SwitchControl,
|
|
417
|
+
"tab" => RufletComponents::TabControl,
|
|
418
|
+
"tab_bar" => RufletComponents::TabBarControl,
|
|
419
|
+
"tab_bar_view" => RufletComponents::TabBarViewControl,
|
|
420
|
+
"tabbar" => RufletComponents::TabBarControl,
|
|
421
|
+
"tabbarview" => RufletComponents::TabBarViewControl,
|
|
422
|
+
"tabs" => RufletComponents::TabsControl,
|
|
423
|
+
"text" => RufletComponents::TextControl,
|
|
424
|
+
"text_button" => RufletComponents::TextButtonControl,
|
|
425
|
+
"text_field" => RufletComponents::TextFieldControl,
|
|
426
|
+
"text_span" => RufletComponents::TextSpanControl,
|
|
427
|
+
"textbutton" => RufletComponents::TextButtonControl,
|
|
428
|
+
"textfield" => RufletComponents::TextFieldControl,
|
|
429
|
+
"textspan" => RufletComponents::TextSpanControl,
|
|
430
|
+
"time_picker" => RufletComponents::TimePickerControl,
|
|
431
|
+
"timepicker" => RufletComponents::TimePickerControl,
|
|
432
|
+
"transparent_pointer" => RufletComponents::TransparentPointerControl,
|
|
433
|
+
"transparentpointer" => RufletComponents::TransparentPointerControl,
|
|
434
|
+
"vertical_divider" => RufletComponents::VerticalDividerControl,
|
|
435
|
+
"verticaldivider" => RufletComponents::VerticalDividerControl,
|
|
436
|
+
"video" => RufletComponents::VideoControl,
|
|
437
|
+
"web_view" => RufletComponents::WebViewControl,
|
|
438
|
+
"webview" => RufletComponents::WebViewControl,
|
|
439
|
+
"view" => RufletComponents::ViewControl,
|
|
440
|
+
"window" => RufletComponents::WindowControl,
|
|
441
|
+
"window_drag_area" => RufletComponents::WindowDragAreaControl,
|
|
442
|
+
"windowdragarea" => RufletComponents::WindowDragAreaControl,
|
|
443
|
+
}.freeze
|
|
444
|
+
end
|
|
445
|
+
end
|
|
446
|
+
end
|
|
447
|
+
end
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Ruflet
|
|
4
|
+
module UI
|
|
5
|
+
module Controls
|
|
6
|
+
module RufletComponents
|
|
7
|
+
class AnimatedSwitcherControl < Ruflet::Control
|
|
8
|
+
TYPE = "animatedswitcher".freeze
|
|
9
|
+
WIRE = "AnimatedSwitcher".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, duration: nil, expand: nil, expand_loose: nil, height: nil, key: nil, left: nil, margin: nil, offset: nil, opacity: nil, reverse_duration: nil, right: nil, rotate: nil, rtl: nil, scale: nil, size_change_interval: nil, switch_in_curve: nil, switch_out_curve: nil, tooltip: nil, top: nil, transition: nil, visible: nil, width: nil, on_animation_end: 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[:duration] = duration unless duration.nil?
|
|
30
|
+
props[:expand] = expand unless expand.nil?
|
|
31
|
+
props[:expand_loose] = expand_loose unless expand_loose.nil?
|
|
32
|
+
props[:height] = height unless height.nil?
|
|
33
|
+
props[:key] = key unless key.nil?
|
|
34
|
+
props[:left] = left unless left.nil?
|
|
35
|
+
props[:margin] = margin unless margin.nil?
|
|
36
|
+
props[:offset] = offset unless offset.nil?
|
|
37
|
+
props[:opacity] = opacity unless opacity.nil?
|
|
38
|
+
props[:reverse_duration] = reverse_duration unless reverse_duration.nil?
|
|
39
|
+
props[:right] = right unless right.nil?
|
|
40
|
+
props[:rotate] = rotate unless rotate.nil?
|
|
41
|
+
props[:rtl] = rtl unless rtl.nil?
|
|
42
|
+
props[:scale] = scale unless scale.nil?
|
|
43
|
+
props[:size_change_interval] = size_change_interval unless size_change_interval.nil?
|
|
44
|
+
props[:switch_in_curve] = switch_in_curve unless switch_in_curve.nil?
|
|
45
|
+
props[:switch_out_curve] = switch_out_curve unless switch_out_curve.nil?
|
|
46
|
+
props[:tooltip] = tooltip unless tooltip.nil?
|
|
47
|
+
props[:top] = top unless top.nil?
|
|
48
|
+
props[:transition] = transition unless transition.nil?
|
|
49
|
+
props[:visible] = visible unless visible.nil?
|
|
50
|
+
props[:width] = width unless width.nil?
|
|
51
|
+
props[:on_animation_end] = on_animation_end unless on_animation_end.nil?
|
|
52
|
+
props[:on_size_change] = on_size_change unless on_size_change.nil?
|
|
53
|
+
super(type: TYPE, id: id, **props)
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
end
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Ruflet
|
|
4
|
+
module UI
|
|
5
|
+
module Controls
|
|
6
|
+
module RufletComponents
|
|
7
|
+
class ArcControl < Ruflet::Control
|
|
8
|
+
TYPE = "arc".freeze
|
|
9
|
+
WIRE = "Arc".freeze
|
|
10
|
+
|
|
11
|
+
def initialize(id: nil, data: nil, height: nil, key: nil, paint: nil, start_angle: nil, sweep_angle: nil, use_center: nil, width: nil, x: nil, y: nil)
|
|
12
|
+
props = {}
|
|
13
|
+
props[:data] = data unless data.nil?
|
|
14
|
+
props[:height] = height unless height.nil?
|
|
15
|
+
props[:key] = key unless key.nil?
|
|
16
|
+
props[:paint] = paint unless paint.nil?
|
|
17
|
+
props[:start_angle] = start_angle unless start_angle.nil?
|
|
18
|
+
props[:sweep_angle] = sweep_angle unless sweep_angle.nil?
|
|
19
|
+
props[:use_center] = use_center unless use_center.nil?
|
|
20
|
+
props[:width] = width unless width.nil?
|
|
21
|
+
props[:x] = x unless x.nil?
|
|
22
|
+
props[:y] = y unless y.nil?
|
|
23
|
+
super(type: TYPE, id: id, **props)
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|