75 lines
1.6 KiB
Python
75 lines
1.6 KiB
Python
# Copyright 2018-2022 Streamlit Inc.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
WIDGETS = [
|
|
"button",
|
|
"camera_input",
|
|
"checkbox",
|
|
"color_picker",
|
|
"component_instance",
|
|
"download_button",
|
|
"file_uploader",
|
|
"form",
|
|
"multiselect",
|
|
"number_input",
|
|
"radio",
|
|
"selectbox",
|
|
"select_slider",
|
|
"slider",
|
|
"text_input",
|
|
"text_area",
|
|
"time_input",
|
|
"date_input",
|
|
]
|
|
NONWIDGET_ELEMENTS = [
|
|
"alert",
|
|
"area_chart",
|
|
"arrow_area_chart",
|
|
"arrow_bar_chart",
|
|
"arrow_data_frame",
|
|
"arrow_line_chart",
|
|
"arrow_table",
|
|
"arrow_vega_lite_chart",
|
|
"balloons",
|
|
"bar_chart",
|
|
"bokeh_chart",
|
|
"data_frame",
|
|
"dataframe_selector",
|
|
"deck_gl_json_chart",
|
|
"doc_string",
|
|
"empty",
|
|
"exception",
|
|
"graphviz_chart",
|
|
"iframe",
|
|
"json",
|
|
"legacy_altair",
|
|
"legacy_data_frame",
|
|
"legacy_vega_lite",
|
|
"line_chart",
|
|
"markdown",
|
|
"metric",
|
|
"plotly_chart",
|
|
"progress",
|
|
"pyplot",
|
|
"snow",
|
|
"table",
|
|
"text",
|
|
"vega_lite_chart",
|
|
"write",
|
|
]
|
|
FILESYSTEM_ELEMENTS = [
|
|
"audio",
|
|
"imgs",
|
|
"video",
|
|
]
|