diff --git a/.gitignore b/.gitignore index 3eaef7dde..43915730f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,9 +1,6 @@ .build_cache/ build/ dist/ -lib/ -lib/bundle.js* -Project.toml coverage/ node_modules/ .npm @@ -15,14 +12,4 @@ venv/ *.log .idea/ .DS_Store - -/build -/dash_core_components dash_core_components_base/plotly.min.js -/deps -/inst -/man -/R -/src/*.jl -DESCRIPTION -NAMESPACE diff --git a/DESCRIPTION b/DESCRIPTION new file mode 100644 index 000000000..86e271618 --- /dev/null +++ b/DESCRIPTION @@ -0,0 +1,16 @@ +Package: dashCoreComponents +Title: Core Interactive UI Components for 'Dash' +Version: 1.13.0 +Description: 'Dash' ships with supercharged components for interactive user interfaces. A core set of components, written and maintained by the 'Dash' team, is available in the 'dashCoreComponents' package. The source for this package is on GitHub: plotly/dash-core-components. +Depends: R (>= 3.0.2) +Imports: +Suggests: dash, dashHtmlComponents, jsonlite, plotly, knitr, rmarkdown +Authors@R: c(person("Chris", "Parmer", email = "chris@plotly.com", role = c("aut")), person("Ryan Patrick", "Kyle", email = "ryan@plotly.com", role = c("cre"), comment = c(ORCID = "0000-0002-4958-2844")), person(family = "Plotly Technologies, Inc.", role = "cph")) +License: MIT + file LICENSE +Copyright: Plotly Technologies, Inc. +URL: https://github.com/plotly/dash-core-components +BugReports: https://github.com/plotly/dash-core-components/issues +Encoding: UTF-8 +LazyData: true +VignetteBuilder: knitr +KeepSource: true diff --git a/Project.toml b/Project.toml new file mode 100644 index 000000000..d4a17dec3 --- /dev/null +++ b/Project.toml @@ -0,0 +1,12 @@ + +name = "DashCoreComponents" +uuid = "1b08a953-4be3-4667-9a23-9da06441d987" +authors = ["Chris Parmer "] +version = "1.13.0" + +[deps] +DashBase = "03207cf0-e2b3-4b91-9ca8-690cf0fb507e" + +[compat] +julia = "1.2" +DashBase = "0.1" diff --git a/R/dccChecklist.R b/R/dccChecklist.R new file mode 100644 index 000000000..06a115a69 --- /dev/null +++ b/R/dccChecklist.R @@ -0,0 +1,18 @@ +# AUTO GENERATED FILE - DO NOT EDIT + +dccChecklist <- function(id=NULL, options=NULL, value=NULL, className=NULL, style=NULL, inputStyle=NULL, inputClassName=NULL, labelStyle=NULL, labelClassName=NULL, loading_state=NULL, persistence=NULL, persisted_props=NULL, persistence_type=NULL) { + + props <- list(id=id, options=options, value=value, className=className, style=style, inputStyle=inputStyle, inputClassName=inputClassName, labelStyle=labelStyle, labelClassName=labelClassName, loading_state=loading_state, persistence=persistence, persisted_props=persisted_props, persistence_type=persistence_type) + if (length(props) > 0) { + props <- props[!vapply(props, is.null, logical(1))] + } + component <- list( + props = props, + type = 'Checklist', + namespace = 'dash_core_components', + propNames = c('id', 'options', 'value', 'className', 'style', 'inputStyle', 'inputClassName', 'labelStyle', 'labelClassName', 'loading_state', 'persistence', 'persisted_props', 'persistence_type'), + package = 'dashCoreComponents' + ) + + structure(component, class = c('dash_component', 'list')) +} diff --git a/R/dccConfirmDialog.R b/R/dccConfirmDialog.R new file mode 100644 index 000000000..db6960515 --- /dev/null +++ b/R/dccConfirmDialog.R @@ -0,0 +1,18 @@ +# AUTO GENERATED FILE - DO NOT EDIT + +dccConfirmDialog <- function(id=NULL, message=NULL, submit_n_clicks=NULL, submit_n_clicks_timestamp=NULL, cancel_n_clicks=NULL, cancel_n_clicks_timestamp=NULL, displayed=NULL) { + + props <- list(id=id, message=message, submit_n_clicks=submit_n_clicks, submit_n_clicks_timestamp=submit_n_clicks_timestamp, cancel_n_clicks=cancel_n_clicks, cancel_n_clicks_timestamp=cancel_n_clicks_timestamp, displayed=displayed) + if (length(props) > 0) { + props <- props[!vapply(props, is.null, logical(1))] + } + component <- list( + props = props, + type = 'ConfirmDialog', + namespace = 'dash_core_components', + propNames = c('id', 'message', 'submit_n_clicks', 'submit_n_clicks_timestamp', 'cancel_n_clicks', 'cancel_n_clicks_timestamp', 'displayed'), + package = 'dashCoreComponents' + ) + + structure(component, class = c('dash_component', 'list')) +} diff --git a/R/dccConfirmDialogProvider.R b/R/dccConfirmDialogProvider.R new file mode 100644 index 000000000..5553bc393 --- /dev/null +++ b/R/dccConfirmDialogProvider.R @@ -0,0 +1,18 @@ +# AUTO GENERATED FILE - DO NOT EDIT + +dccConfirmDialogProvider <- function(children=NULL, id=NULL, message=NULL, submit_n_clicks=NULL, submit_n_clicks_timestamp=NULL, cancel_n_clicks=NULL, cancel_n_clicks_timestamp=NULL, displayed=NULL, loading_state=NULL) { + + props <- list(children=children, id=id, message=message, submit_n_clicks=submit_n_clicks, submit_n_clicks_timestamp=submit_n_clicks_timestamp, cancel_n_clicks=cancel_n_clicks, cancel_n_clicks_timestamp=cancel_n_clicks_timestamp, displayed=displayed, loading_state=loading_state) + if (length(props) > 0) { + props <- props[!vapply(props, is.null, logical(1))] + } + component <- list( + props = props, + type = 'ConfirmDialogProvider', + namespace = 'dash_core_components', + propNames = c('children', 'id', 'message', 'submit_n_clicks', 'submit_n_clicks_timestamp', 'cancel_n_clicks', 'cancel_n_clicks_timestamp', 'displayed', 'loading_state'), + package = 'dashCoreComponents' + ) + + structure(component, class = c('dash_component', 'list')) +} diff --git a/R/dccDatePickerRange.R b/R/dccDatePickerRange.R new file mode 100644 index 000000000..8080e93ef --- /dev/null +++ b/R/dccDatePickerRange.R @@ -0,0 +1,18 @@ +# AUTO GENERATED FILE - DO NOT EDIT + +dccDatePickerRange <- function(id=NULL, start_date=NULL, start_date_id=NULL, end_date_id=NULL, end_date=NULL, min_date_allowed=NULL, max_date_allowed=NULL, initial_visible_month=NULL, start_date_placeholder_text=NULL, end_date_placeholder_text=NULL, day_size=NULL, calendar_orientation=NULL, is_RTL=NULL, reopen_calendar_on_clear=NULL, number_of_months_shown=NULL, with_portal=NULL, with_full_screen_portal=NULL, first_day_of_week=NULL, minimum_nights=NULL, stay_open_on_select=NULL, show_outside_days=NULL, month_format=NULL, display_format=NULL, disabled=NULL, clearable=NULL, style=NULL, className=NULL, updatemode=NULL, loading_state=NULL, persistence=NULL, persisted_props=NULL, persistence_type=NULL) { + + props <- list(id=id, start_date=start_date, start_date_id=start_date_id, end_date_id=end_date_id, end_date=end_date, min_date_allowed=min_date_allowed, max_date_allowed=max_date_allowed, initial_visible_month=initial_visible_month, start_date_placeholder_text=start_date_placeholder_text, end_date_placeholder_text=end_date_placeholder_text, day_size=day_size, calendar_orientation=calendar_orientation, is_RTL=is_RTL, reopen_calendar_on_clear=reopen_calendar_on_clear, number_of_months_shown=number_of_months_shown, with_portal=with_portal, with_full_screen_portal=with_full_screen_portal, first_day_of_week=first_day_of_week, minimum_nights=minimum_nights, stay_open_on_select=stay_open_on_select, show_outside_days=show_outside_days, month_format=month_format, display_format=display_format, disabled=disabled, clearable=clearable, style=style, className=className, updatemode=updatemode, loading_state=loading_state, persistence=persistence, persisted_props=persisted_props, persistence_type=persistence_type) + if (length(props) > 0) { + props <- props[!vapply(props, is.null, logical(1))] + } + component <- list( + props = props, + type = 'DatePickerRange', + namespace = 'dash_core_components', + propNames = c('id', 'start_date', 'start_date_id', 'end_date_id', 'end_date', 'min_date_allowed', 'max_date_allowed', 'initial_visible_month', 'start_date_placeholder_text', 'end_date_placeholder_text', 'day_size', 'calendar_orientation', 'is_RTL', 'reopen_calendar_on_clear', 'number_of_months_shown', 'with_portal', 'with_full_screen_portal', 'first_day_of_week', 'minimum_nights', 'stay_open_on_select', 'show_outside_days', 'month_format', 'display_format', 'disabled', 'clearable', 'style', 'className', 'updatemode', 'loading_state', 'persistence', 'persisted_props', 'persistence_type'), + package = 'dashCoreComponents' + ) + + structure(component, class = c('dash_component', 'list')) +} diff --git a/R/dccDatePickerSingle.R b/R/dccDatePickerSingle.R new file mode 100644 index 000000000..c3a3fc7b2 --- /dev/null +++ b/R/dccDatePickerSingle.R @@ -0,0 +1,18 @@ +# AUTO GENERATED FILE - DO NOT EDIT + +dccDatePickerSingle <- function(id=NULL, date=NULL, min_date_allowed=NULL, max_date_allowed=NULL, initial_visible_month=NULL, day_size=NULL, calendar_orientation=NULL, is_RTL=NULL, placeholder=NULL, reopen_calendar_on_clear=NULL, number_of_months_shown=NULL, with_portal=NULL, with_full_screen_portal=NULL, first_day_of_week=NULL, stay_open_on_select=NULL, show_outside_days=NULL, month_format=NULL, display_format=NULL, disabled=NULL, clearable=NULL, style=NULL, className=NULL, loading_state=NULL, persistence=NULL, persisted_props=NULL, persistence_type=NULL) { + + props <- list(id=id, date=date, min_date_allowed=min_date_allowed, max_date_allowed=max_date_allowed, initial_visible_month=initial_visible_month, day_size=day_size, calendar_orientation=calendar_orientation, is_RTL=is_RTL, placeholder=placeholder, reopen_calendar_on_clear=reopen_calendar_on_clear, number_of_months_shown=number_of_months_shown, with_portal=with_portal, with_full_screen_portal=with_full_screen_portal, first_day_of_week=first_day_of_week, stay_open_on_select=stay_open_on_select, show_outside_days=show_outside_days, month_format=month_format, display_format=display_format, disabled=disabled, clearable=clearable, style=style, className=className, loading_state=loading_state, persistence=persistence, persisted_props=persisted_props, persistence_type=persistence_type) + if (length(props) > 0) { + props <- props[!vapply(props, is.null, logical(1))] + } + component <- list( + props = props, + type = 'DatePickerSingle', + namespace = 'dash_core_components', + propNames = c('id', 'date', 'min_date_allowed', 'max_date_allowed', 'initial_visible_month', 'day_size', 'calendar_orientation', 'is_RTL', 'placeholder', 'reopen_calendar_on_clear', 'number_of_months_shown', 'with_portal', 'with_full_screen_portal', 'first_day_of_week', 'stay_open_on_select', 'show_outside_days', 'month_format', 'display_format', 'disabled', 'clearable', 'style', 'className', 'loading_state', 'persistence', 'persisted_props', 'persistence_type'), + package = 'dashCoreComponents' + ) + + structure(component, class = c('dash_component', 'list')) +} diff --git a/R/dccDropdown.R b/R/dccDropdown.R new file mode 100644 index 000000000..f134b60d6 --- /dev/null +++ b/R/dccDropdown.R @@ -0,0 +1,18 @@ +# AUTO GENERATED FILE - DO NOT EDIT + +dccDropdown <- function(id=NULL, options=NULL, value=NULL, optionHeight=NULL, className=NULL, clearable=NULL, disabled=NULL, multi=NULL, placeholder=NULL, searchable=NULL, search_value=NULL, style=NULL, loading_state=NULL, persistence=NULL, persisted_props=NULL, persistence_type=NULL) { + + props <- list(id=id, options=options, value=value, optionHeight=optionHeight, className=className, clearable=clearable, disabled=disabled, multi=multi, placeholder=placeholder, searchable=searchable, search_value=search_value, style=style, loading_state=loading_state, persistence=persistence, persisted_props=persisted_props, persistence_type=persistence_type) + if (length(props) > 0) { + props <- props[!vapply(props, is.null, logical(1))] + } + component <- list( + props = props, + type = 'Dropdown', + namespace = 'dash_core_components', + propNames = c('id', 'options', 'value', 'optionHeight', 'className', 'clearable', 'disabled', 'multi', 'placeholder', 'searchable', 'search_value', 'style', 'loading_state', 'persistence', 'persisted_props', 'persistence_type'), + package = 'dashCoreComponents' + ) + + structure(component, class = c('dash_component', 'list')) +} diff --git a/R/dccGraph.R b/R/dccGraph.R new file mode 100644 index 000000000..4d57c01fb --- /dev/null +++ b/R/dccGraph.R @@ -0,0 +1,18 @@ +# AUTO GENERATED FILE - DO NOT EDIT + +dccGraph <- function(id=NULL, responsive=NULL, clickData=NULL, clickAnnotationData=NULL, hoverData=NULL, clear_on_unhover=NULL, selectedData=NULL, relayoutData=NULL, extendData=NULL, prependData=NULL, restyleData=NULL, figure=NULL, style=NULL, className=NULL, animate=NULL, animation_options=NULL, config=NULL, loading_state=NULL) { + + props <- list(id=id, responsive=responsive, clickData=clickData, clickAnnotationData=clickAnnotationData, hoverData=hoverData, clear_on_unhover=clear_on_unhover, selectedData=selectedData, relayoutData=relayoutData, extendData=extendData, prependData=prependData, restyleData=restyleData, figure=figure, style=style, className=className, animate=animate, animation_options=animation_options, config=config, loading_state=loading_state) + if (length(props) > 0) { + props <- props[!vapply(props, is.null, logical(1))] + } + component <- list( + props = props, + type = 'Graph', + namespace = 'dash_core_components', + propNames = c('id', 'responsive', 'clickData', 'clickAnnotationData', 'hoverData', 'clear_on_unhover', 'selectedData', 'relayoutData', 'extendData', 'prependData', 'restyleData', 'figure', 'style', 'className', 'animate', 'animation_options', 'config', 'loading_state'), + package = 'dashCoreComponents' + ) + + structure(component, class = c('dash_component', 'list')) +} diff --git a/R/dccInput.R b/R/dccInput.R new file mode 100644 index 000000000..0e06a09f0 --- /dev/null +++ b/R/dccInput.R @@ -0,0 +1,18 @@ +# AUTO GENERATED FILE - DO NOT EDIT + +dccInput <- function(id=NULL, value=NULL, style=NULL, className=NULL, debounce=NULL, type=NULL, autoComplete=NULL, autoFocus=NULL, disabled=NULL, inputMode=NULL, list=NULL, max=NULL, maxLength=NULL, min=NULL, minLength=NULL, multiple=NULL, name=NULL, pattern=NULL, placeholder=NULL, readOnly=NULL, required=NULL, selectionDirection=NULL, selectionEnd=NULL, selectionStart=NULL, size=NULL, spellCheck=NULL, step=NULL, n_submit=NULL, n_submit_timestamp=NULL, n_blur=NULL, n_blur_timestamp=NULL, loading_state=NULL, persistence=NULL, persisted_props=NULL, persistence_type=NULL) { + + props <- list(id=id, value=value, style=style, className=className, debounce=debounce, type=type, autoComplete=autoComplete, autoFocus=autoFocus, disabled=disabled, inputMode=inputMode, list=list, max=max, maxLength=maxLength, min=min, minLength=minLength, multiple=multiple, name=name, pattern=pattern, placeholder=placeholder, readOnly=readOnly, required=required, selectionDirection=selectionDirection, selectionEnd=selectionEnd, selectionStart=selectionStart, size=size, spellCheck=spellCheck, step=step, n_submit=n_submit, n_submit_timestamp=n_submit_timestamp, n_blur=n_blur, n_blur_timestamp=n_blur_timestamp, loading_state=loading_state, persistence=persistence, persisted_props=persisted_props, persistence_type=persistence_type) + if (length(props) > 0) { + props <- props[!vapply(props, is.null, logical(1))] + } + component <- list( + props = props, + type = 'Input', + namespace = 'dash_core_components', + propNames = c('id', 'value', 'style', 'className', 'debounce', 'type', 'autoComplete', 'autoFocus', 'disabled', 'inputMode', 'list', 'max', 'maxLength', 'min', 'minLength', 'multiple', 'name', 'pattern', 'placeholder', 'readOnly', 'required', 'selectionDirection', 'selectionEnd', 'selectionStart', 'size', 'spellCheck', 'step', 'n_submit', 'n_submit_timestamp', 'n_blur', 'n_blur_timestamp', 'loading_state', 'persistence', 'persisted_props', 'persistence_type'), + package = 'dashCoreComponents' + ) + + structure(component, class = c('dash_component', 'list')) +} diff --git a/R/dccInterval.R b/R/dccInterval.R new file mode 100644 index 000000000..380643496 --- /dev/null +++ b/R/dccInterval.R @@ -0,0 +1,18 @@ +# AUTO GENERATED FILE - DO NOT EDIT + +dccInterval <- function(id=NULL, interval=NULL, disabled=NULL, n_intervals=NULL, max_intervals=NULL) { + + props <- list(id=id, interval=interval, disabled=disabled, n_intervals=n_intervals, max_intervals=max_intervals) + if (length(props) > 0) { + props <- props[!vapply(props, is.null, logical(1))] + } + component <- list( + props = props, + type = 'Interval', + namespace = 'dash_core_components', + propNames = c('id', 'interval', 'disabled', 'n_intervals', 'max_intervals'), + package = 'dashCoreComponents' + ) + + structure(component, class = c('dash_component', 'list')) +} diff --git a/R/dccLink.R b/R/dccLink.R new file mode 100644 index 000000000..f64dc5617 --- /dev/null +++ b/R/dccLink.R @@ -0,0 +1,18 @@ +# AUTO GENERATED FILE - DO NOT EDIT + +dccLink <- function(children=NULL, id=NULL, href=NULL, refresh=NULL, className=NULL, style=NULL, title=NULL, target=NULL, loading_state=NULL) { + + props <- list(children=children, id=id, href=href, refresh=refresh, className=className, style=style, title=title, target=target, loading_state=loading_state) + if (length(props) > 0) { + props <- props[!vapply(props, is.null, logical(1))] + } + component <- list( + props = props, + type = 'Link', + namespace = 'dash_core_components', + propNames = c('children', 'id', 'href', 'refresh', 'className', 'style', 'title', 'target', 'loading_state'), + package = 'dashCoreComponents' + ) + + structure(component, class = c('dash_component', 'list')) +} diff --git a/R/dccLoading.R b/R/dccLoading.R new file mode 100644 index 000000000..801687cb9 --- /dev/null +++ b/R/dccLoading.R @@ -0,0 +1,18 @@ +# AUTO GENERATED FILE - DO NOT EDIT + +dccLoading <- function(children=NULL, id=NULL, type=NULL, fullscreen=NULL, debug=NULL, className=NULL, parent_className=NULL, style=NULL, parent_style=NULL, color=NULL, loading_state=NULL) { + + props <- list(children=children, id=id, type=type, fullscreen=fullscreen, debug=debug, className=className, parent_className=parent_className, style=style, parent_style=parent_style, color=color, loading_state=loading_state) + if (length(props) > 0) { + props <- props[!vapply(props, is.null, logical(1))] + } + component <- list( + props = props, + type = 'Loading', + namespace = 'dash_core_components', + propNames = c('children', 'id', 'type', 'fullscreen', 'debug', 'className', 'parent_className', 'style', 'parent_style', 'color', 'loading_state'), + package = 'dashCoreComponents' + ) + + structure(component, class = c('dash_component', 'list')) +} diff --git a/R/dccLocation.R b/R/dccLocation.R new file mode 100644 index 000000000..61bbe80d3 --- /dev/null +++ b/R/dccLocation.R @@ -0,0 +1,18 @@ +# AUTO GENERATED FILE - DO NOT EDIT + +dccLocation <- function(id=NULL, pathname=NULL, search=NULL, hash=NULL, href=NULL, refresh=NULL) { + + props <- list(id=id, pathname=pathname, search=search, hash=hash, href=href, refresh=refresh) + if (length(props) > 0) { + props <- props[!vapply(props, is.null, logical(1))] + } + component <- list( + props = props, + type = 'Location', + namespace = 'dash_core_components', + propNames = c('id', 'pathname', 'search', 'hash', 'href', 'refresh'), + package = 'dashCoreComponents' + ) + + structure(component, class = c('dash_component', 'list')) +} diff --git a/R/dccLogoutButton.R b/R/dccLogoutButton.R new file mode 100644 index 000000000..bca854b4a --- /dev/null +++ b/R/dccLogoutButton.R @@ -0,0 +1,18 @@ +# AUTO GENERATED FILE - DO NOT EDIT + +dccLogoutButton <- function(id=NULL, label=NULL, logout_url=NULL, style=NULL, method=NULL, className=NULL, loading_state=NULL) { + + props <- list(id=id, label=label, logout_url=logout_url, style=style, method=method, className=className, loading_state=loading_state) + if (length(props) > 0) { + props <- props[!vapply(props, is.null, logical(1))] + } + component <- list( + props = props, + type = 'LogoutButton', + namespace = 'dash_core_components', + propNames = c('id', 'label', 'logout_url', 'style', 'method', 'className', 'loading_state'), + package = 'dashCoreComponents' + ) + + structure(component, class = c('dash_component', 'list')) +} diff --git a/R/dccMarkdown.R b/R/dccMarkdown.R new file mode 100644 index 000000000..5be5ee072 --- /dev/null +++ b/R/dccMarkdown.R @@ -0,0 +1,18 @@ +# AUTO GENERATED FILE - DO NOT EDIT + +dccMarkdown <- function(children=NULL, id=NULL, className=NULL, dangerously_allow_html=NULL, dedent=NULL, highlight_config=NULL, loading_state=NULL, style=NULL) { + + props <- list(children=children, id=id, className=className, dangerously_allow_html=dangerously_allow_html, dedent=dedent, highlight_config=highlight_config, loading_state=loading_state, style=style) + if (length(props) > 0) { + props <- props[!vapply(props, is.null, logical(1))] + } + component <- list( + props = props, + type = 'Markdown', + namespace = 'dash_core_components', + propNames = c('children', 'id', 'className', 'dangerously_allow_html', 'dedent', 'highlight_config', 'loading_state', 'style'), + package = 'dashCoreComponents' + ) + + structure(component, class = c('dash_component', 'list')) +} diff --git a/R/dccRadioItems.R b/R/dccRadioItems.R new file mode 100644 index 000000000..7429a34cd --- /dev/null +++ b/R/dccRadioItems.R @@ -0,0 +1,18 @@ +# AUTO GENERATED FILE - DO NOT EDIT + +dccRadioItems <- function(id=NULL, options=NULL, value=NULL, style=NULL, className=NULL, inputStyle=NULL, inputClassName=NULL, labelStyle=NULL, labelClassName=NULL, loading_state=NULL, persistence=NULL, persisted_props=NULL, persistence_type=NULL) { + + props <- list(id=id, options=options, value=value, style=style, className=className, inputStyle=inputStyle, inputClassName=inputClassName, labelStyle=labelStyle, labelClassName=labelClassName, loading_state=loading_state, persistence=persistence, persisted_props=persisted_props, persistence_type=persistence_type) + if (length(props) > 0) { + props <- props[!vapply(props, is.null, logical(1))] + } + component <- list( + props = props, + type = 'RadioItems', + namespace = 'dash_core_components', + propNames = c('id', 'options', 'value', 'style', 'className', 'inputStyle', 'inputClassName', 'labelStyle', 'labelClassName', 'loading_state', 'persistence', 'persisted_props', 'persistence_type'), + package = 'dashCoreComponents' + ) + + structure(component, class = c('dash_component', 'list')) +} diff --git a/R/dccRangeSlider.R b/R/dccRangeSlider.R new file mode 100644 index 000000000..2d45cbc1a --- /dev/null +++ b/R/dccRangeSlider.R @@ -0,0 +1,18 @@ +# AUTO GENERATED FILE - DO NOT EDIT + +dccRangeSlider <- function(id=NULL, marks=NULL, value=NULL, allowCross=NULL, className=NULL, count=NULL, disabled=NULL, dots=NULL, included=NULL, min=NULL, max=NULL, pushable=NULL, tooltip=NULL, step=NULL, vertical=NULL, verticalHeight=NULL, updatemode=NULL, loading_state=NULL, persistence=NULL, persisted_props=NULL, persistence_type=NULL) { + + props <- list(id=id, marks=marks, value=value, allowCross=allowCross, className=className, count=count, disabled=disabled, dots=dots, included=included, min=min, max=max, pushable=pushable, tooltip=tooltip, step=step, vertical=vertical, verticalHeight=verticalHeight, updatemode=updatemode, loading_state=loading_state, persistence=persistence, persisted_props=persisted_props, persistence_type=persistence_type) + if (length(props) > 0) { + props <- props[!vapply(props, is.null, logical(1))] + } + component <- list( + props = props, + type = 'RangeSlider', + namespace = 'dash_core_components', + propNames = c('id', 'marks', 'value', 'allowCross', 'className', 'count', 'disabled', 'dots', 'included', 'min', 'max', 'pushable', 'tooltip', 'step', 'vertical', 'verticalHeight', 'updatemode', 'loading_state', 'persistence', 'persisted_props', 'persistence_type'), + package = 'dashCoreComponents' + ) + + structure(component, class = c('dash_component', 'list')) +} diff --git a/R/dccSlider.R b/R/dccSlider.R new file mode 100644 index 000000000..57c53f69d --- /dev/null +++ b/R/dccSlider.R @@ -0,0 +1,18 @@ +# AUTO GENERATED FILE - DO NOT EDIT + +dccSlider <- function(id=NULL, marks=NULL, value=NULL, className=NULL, disabled=NULL, dots=NULL, included=NULL, min=NULL, max=NULL, tooltip=NULL, step=NULL, vertical=NULL, verticalHeight=NULL, updatemode=NULL, loading_state=NULL, persistence=NULL, persisted_props=NULL, persistence_type=NULL) { + + props <- list(id=id, marks=marks, value=value, className=className, disabled=disabled, dots=dots, included=included, min=min, max=max, tooltip=tooltip, step=step, vertical=vertical, verticalHeight=verticalHeight, updatemode=updatemode, loading_state=loading_state, persistence=persistence, persisted_props=persisted_props, persistence_type=persistence_type) + if (length(props) > 0) { + props <- props[!vapply(props, is.null, logical(1))] + } + component <- list( + props = props, + type = 'Slider', + namespace = 'dash_core_components', + propNames = c('id', 'marks', 'value', 'className', 'disabled', 'dots', 'included', 'min', 'max', 'tooltip', 'step', 'vertical', 'verticalHeight', 'updatemode', 'loading_state', 'persistence', 'persisted_props', 'persistence_type'), + package = 'dashCoreComponents' + ) + + structure(component, class = c('dash_component', 'list')) +} diff --git a/R/dccStore.R b/R/dccStore.R new file mode 100644 index 000000000..d5104a1ad --- /dev/null +++ b/R/dccStore.R @@ -0,0 +1,18 @@ +# AUTO GENERATED FILE - DO NOT EDIT + +dccStore <- function(id=NULL, storage_type=NULL, data=NULL, clear_data=NULL, modified_timestamp=NULL) { + + props <- list(id=id, storage_type=storage_type, data=data, clear_data=clear_data, modified_timestamp=modified_timestamp) + if (length(props) > 0) { + props <- props[!vapply(props, is.null, logical(1))] + } + component <- list( + props = props, + type = 'Store', + namespace = 'dash_core_components', + propNames = c('id', 'storage_type', 'data', 'clear_data', 'modified_timestamp'), + package = 'dashCoreComponents' + ) + + structure(component, class = c('dash_component', 'list')) +} diff --git a/R/dccTab.R b/R/dccTab.R new file mode 100644 index 000000000..5c3ea8c6c --- /dev/null +++ b/R/dccTab.R @@ -0,0 +1,18 @@ +# AUTO GENERATED FILE - DO NOT EDIT + +dccTab <- function(children=NULL, id=NULL, label=NULL, value=NULL, disabled=NULL, disabled_style=NULL, disabled_className=NULL, className=NULL, selected_className=NULL, style=NULL, selected_style=NULL, loading_state=NULL) { + + props <- list(children=children, id=id, label=label, value=value, disabled=disabled, disabled_style=disabled_style, disabled_className=disabled_className, className=className, selected_className=selected_className, style=style, selected_style=selected_style, loading_state=loading_state) + if (length(props) > 0) { + props <- props[!vapply(props, is.null, logical(1))] + } + component <- list( + props = props, + type = 'Tab', + namespace = 'dash_core_components', + propNames = c('children', 'id', 'label', 'value', 'disabled', 'disabled_style', 'disabled_className', 'className', 'selected_className', 'style', 'selected_style', 'loading_state'), + package = 'dashCoreComponents' + ) + + structure(component, class = c('dash_component', 'list')) +} diff --git a/R/dccTabs.R b/R/dccTabs.R new file mode 100644 index 000000000..3547dc735 --- /dev/null +++ b/R/dccTabs.R @@ -0,0 +1,18 @@ +# AUTO GENERATED FILE - DO NOT EDIT + +dccTabs <- function(children=NULL, id=NULL, value=NULL, className=NULL, content_className=NULL, parent_className=NULL, style=NULL, parent_style=NULL, content_style=NULL, vertical=NULL, mobile_breakpoint=NULL, colors=NULL, loading_state=NULL, persistence=NULL, persisted_props=NULL, persistence_type=NULL) { + + props <- list(children=children, id=id, value=value, className=className, content_className=content_className, parent_className=parent_className, style=style, parent_style=parent_style, content_style=content_style, vertical=vertical, mobile_breakpoint=mobile_breakpoint, colors=colors, loading_state=loading_state, persistence=persistence, persisted_props=persisted_props, persistence_type=persistence_type) + if (length(props) > 0) { + props <- props[!vapply(props, is.null, logical(1))] + } + component <- list( + props = props, + type = 'Tabs', + namespace = 'dash_core_components', + propNames = c('children', 'id', 'value', 'className', 'content_className', 'parent_className', 'style', 'parent_style', 'content_style', 'vertical', 'mobile_breakpoint', 'colors', 'loading_state', 'persistence', 'persisted_props', 'persistence_type'), + package = 'dashCoreComponents' + ) + + structure(component, class = c('dash_component', 'list')) +} diff --git a/R/dccTextarea.R b/R/dccTextarea.R new file mode 100644 index 000000000..0b74e6d0f --- /dev/null +++ b/R/dccTextarea.R @@ -0,0 +1,18 @@ +# AUTO GENERATED FILE - DO NOT EDIT + +dccTextarea <- function(id=NULL, value=NULL, autoFocus=NULL, cols=NULL, disabled=NULL, form=NULL, maxLength=NULL, minLength=NULL, name=NULL, placeholder=NULL, readOnly=NULL, required=NULL, rows=NULL, wrap=NULL, accessKey=NULL, className=NULL, contentEditable=NULL, contextMenu=NULL, dir=NULL, draggable=NULL, hidden=NULL, lang=NULL, spellCheck=NULL, style=NULL, tabIndex=NULL, title=NULL, n_blur=NULL, n_blur_timestamp=NULL, n_clicks=NULL, n_clicks_timestamp=NULL, loading_state=NULL, persistence=NULL, persisted_props=NULL, persistence_type=NULL) { + + props <- list(id=id, value=value, autoFocus=autoFocus, cols=cols, disabled=disabled, form=form, maxLength=maxLength, minLength=minLength, name=name, placeholder=placeholder, readOnly=readOnly, required=required, rows=rows, wrap=wrap, accessKey=accessKey, className=className, contentEditable=contentEditable, contextMenu=contextMenu, dir=dir, draggable=draggable, hidden=hidden, lang=lang, spellCheck=spellCheck, style=style, tabIndex=tabIndex, title=title, n_blur=n_blur, n_blur_timestamp=n_blur_timestamp, n_clicks=n_clicks, n_clicks_timestamp=n_clicks_timestamp, loading_state=loading_state, persistence=persistence, persisted_props=persisted_props, persistence_type=persistence_type) + if (length(props) > 0) { + props <- props[!vapply(props, is.null, logical(1))] + } + component <- list( + props = props, + type = 'Textarea', + namespace = 'dash_core_components', + propNames = c('id', 'value', 'autoFocus', 'cols', 'disabled', 'form', 'maxLength', 'minLength', 'name', 'placeholder', 'readOnly', 'required', 'rows', 'wrap', 'accessKey', 'className', 'contentEditable', 'contextMenu', 'dir', 'draggable', 'hidden', 'lang', 'spellCheck', 'style', 'tabIndex', 'title', 'n_blur', 'n_blur_timestamp', 'n_clicks', 'n_clicks_timestamp', 'loading_state', 'persistence', 'persisted_props', 'persistence_type'), + package = 'dashCoreComponents' + ) + + structure(component, class = c('dash_component', 'list')) +} diff --git a/R/dccUpload.R b/R/dccUpload.R new file mode 100644 index 000000000..f3f471a0b --- /dev/null +++ b/R/dccUpload.R @@ -0,0 +1,18 @@ +# AUTO GENERATED FILE - DO NOT EDIT + +dccUpload <- function(children=NULL, id=NULL, contents=NULL, filename=NULL, last_modified=NULL, accept=NULL, disabled=NULL, disable_click=NULL, max_size=NULL, min_size=NULL, multiple=NULL, className=NULL, className_active=NULL, className_reject=NULL, className_disabled=NULL, style=NULL, style_active=NULL, style_reject=NULL, style_disabled=NULL, loading_state=NULL) { + + props <- list(children=children, id=id, contents=contents, filename=filename, last_modified=last_modified, accept=accept, disabled=disabled, disable_click=disable_click, max_size=max_size, min_size=min_size, multiple=multiple, className=className, className_active=className_active, className_reject=className_reject, className_disabled=className_disabled, style=style, style_active=style_active, style_reject=style_reject, style_disabled=style_disabled, loading_state=loading_state) + if (length(props) > 0) { + props <- props[!vapply(props, is.null, logical(1))] + } + component <- list( + props = props, + type = 'Upload', + namespace = 'dash_core_components', + propNames = c('children', 'id', 'contents', 'filename', 'last_modified', 'accept', 'disabled', 'disable_click', 'max_size', 'min_size', 'multiple', 'className', 'className_active', 'className_reject', 'className_disabled', 'style', 'style_active', 'style_reject', 'style_disabled', 'loading_state'), + package = 'dashCoreComponents' + ) + + structure(component, class = c('dash_component', 'list')) +} diff --git a/R/internal.R b/R/internal.R new file mode 100644 index 000000000..6d579cb2d --- /dev/null +++ b/R/internal.R @@ -0,0 +1,129 @@ +.dashCoreComponents_js_metadata <- function() { +deps_metadata <- list(`dash_core_components` = structure(list(name = "dash_core_components", +version = "1.13.0", src = list(href = NULL, +file = "deps"), meta = NULL, +script = 'async-datepicker.js', +stylesheet = NULL, head = NULL, attachment = NULL, package = "dashCoreComponents", +all_files = FALSE, async = TRUE), class = "html_dependency"), +`dash_core_components` = structure(list(name = "dash_core_components", +version = "1.13.0", src = list(href = NULL, +file = "deps"), meta = NULL, +script = 'async-dropdown.js', +stylesheet = NULL, head = NULL, attachment = NULL, package = "dashCoreComponents", +all_files = FALSE, async = TRUE), class = "html_dependency"), +`dash_core_components` = structure(list(name = "dash_core_components", +version = "1.13.0", src = list(href = NULL, +file = "deps"), meta = NULL, +script = 'async-graph.js', +stylesheet = NULL, head = NULL, attachment = NULL, package = "dashCoreComponents", +all_files = FALSE, async = TRUE), class = "html_dependency"), +`dash_core_components` = structure(list(name = "dash_core_components", +version = "1.13.0", src = list(href = NULL, +file = "deps"), meta = NULL, +script = 'async-highlight.js', +stylesheet = NULL, head = NULL, attachment = NULL, package = "dashCoreComponents", +all_files = FALSE, async = TRUE), class = "html_dependency"), +`dash_core_components` = structure(list(name = "dash_core_components", +version = "1.13.0", src = list(href = NULL, +file = "deps"), meta = NULL, +script = 'async-markdown.js', +stylesheet = NULL, head = NULL, attachment = NULL, package = "dashCoreComponents", +all_files = FALSE, async = TRUE), class = "html_dependency"), +`dash_core_components` = structure(list(name = "dash_core_components", +version = "1.13.0", src = list(href = NULL, +file = "deps"), meta = NULL, +script = 'async-slider.js', +stylesheet = NULL, head = NULL, attachment = NULL, package = "dashCoreComponents", +all_files = FALSE, async = TRUE), class = "html_dependency"), +`dash_core_components` = structure(list(name = "dash_core_components", +version = "1.13.0", src = list(href = NULL, +file = "deps"), meta = NULL, +script = 'async-upload.js', +stylesheet = NULL, head = NULL, attachment = NULL, package = "dashCoreComponents", +all_files = FALSE, async = TRUE), class = "html_dependency"), +`dash_core_components` = structure(list(name = "dash_core_components", +version = "1.13.0", src = list(href = NULL, +file = "deps"), meta = NULL, +script = 'async-datepicker.js.map', +stylesheet = NULL, head = NULL, attachment = NULL, package = "dashCoreComponents", +all_files = FALSE, dynamic = TRUE), class = "html_dependency"), +`dash_core_components` = structure(list(name = "dash_core_components", +version = "1.13.0", src = list(href = NULL, +file = "deps"), meta = NULL, +script = 'async-dropdown.js.map', +stylesheet = NULL, head = NULL, attachment = NULL, package = "dashCoreComponents", +all_files = FALSE, dynamic = TRUE), class = "html_dependency"), +`dash_core_components` = structure(list(name = "dash_core_components", +version = "1.13.0", src = list(href = NULL, +file = "deps"), meta = NULL, +script = 'async-graph.js.map', +stylesheet = NULL, head = NULL, attachment = NULL, package = "dashCoreComponents", +all_files = FALSE, dynamic = TRUE), class = "html_dependency"), +`dash_core_components` = structure(list(name = "dash_core_components", +version = "1.13.0", src = list(href = NULL, +file = "deps"), meta = NULL, +script = 'async-highlight.js.map', +stylesheet = NULL, head = NULL, attachment = NULL, package = "dashCoreComponents", +all_files = FALSE, dynamic = TRUE), class = "html_dependency"), +`dash_core_components` = structure(list(name = "dash_core_components", +version = "1.13.0", src = list(href = NULL, +file = "deps"), meta = NULL, +script = 'async-markdown.js.map', +stylesheet = NULL, head = NULL, attachment = NULL, package = "dashCoreComponents", +all_files = FALSE, dynamic = TRUE), class = "html_dependency"), +`dash_core_components` = structure(list(name = "dash_core_components", +version = "1.13.0", src = list(href = NULL, +file = "deps"), meta = NULL, +script = 'async-slider.js.map', +stylesheet = NULL, head = NULL, attachment = NULL, package = "dashCoreComponents", +all_files = FALSE, dynamic = TRUE), class = "html_dependency"), +`dash_core_components` = structure(list(name = "dash_core_components", +version = "1.13.0", src = list(href = NULL, +file = "deps"), meta = NULL, +script = 'async-upload.js.map', +stylesheet = NULL, head = NULL, attachment = NULL, package = "dashCoreComponents", +all_files = FALSE, dynamic = TRUE), class = "html_dependency"), +`dash_core_components` = structure(list(name = "dash_core_components", +version = "1.13.0", src = list(href = NULL, +file = "deps"), meta = NULL, +script = 'dash_core_components.min.js', +stylesheet = NULL, head = NULL, attachment = NULL, package = "dashCoreComponents", +all_files = FALSE), class = "html_dependency"), +`dash_core_components` = structure(list(name = "dash_core_components", +version = "1.13.0", src = list(href = NULL, +file = "deps"), meta = NULL, +script = 'dash_core_components.min.js.map', +stylesheet = NULL, head = NULL, attachment = NULL, package = "dashCoreComponents", +all_files = FALSE, dynamic = TRUE), class = "html_dependency"), +`dash_core_components-shared` = structure(list(name = "dash_core_components-shared", +version = "1.13.0", src = list(href = NULL, +file = "deps"), meta = NULL, +script = 'dash_core_components-shared.js', +stylesheet = NULL, head = NULL, attachment = NULL, package = "dashCoreComponents", +all_files = FALSE), class = "html_dependency"), +`dash_core_components-shared` = structure(list(name = "dash_core_components-shared", +version = "1.13.0", src = list(href = NULL, +file = "deps"), meta = NULL, +script = 'dash_core_components-shared.js.map', +stylesheet = NULL, head = NULL, attachment = NULL, package = "dashCoreComponents", +all_files = FALSE, dynamic = TRUE), class = "html_dependency"), +`dash_core_components` = structure(list(name = "dash_core_components", +version = "1.13.0", src = list(href = NULL, +file = "deps"), meta = NULL, +script = 'plotly.min.js', +stylesheet = NULL, head = NULL, attachment = NULL, package = "dashCoreComponents", +all_files = FALSE, async = 'eager'), class = "html_dependency"), +`dash_core_components` = structure(list(name = "dash_core_components", +version = "1.13.0", src = list(href = NULL, +file = "deps"), meta = NULL, +script = 'async-plotlyjs.js', +stylesheet = NULL, head = NULL, attachment = NULL, package = "dashCoreComponents", +all_files = FALSE, async = 'lazy'), class = "html_dependency"), +`dash_core_components` = structure(list(name = "dash_core_components", +version = "1.13.0", src = list(href = NULL, +file = "deps"), meta = NULL, +script = 'async-plotlyjs.js.map', +stylesheet = NULL, head = NULL, attachment = NULL, package = "dashCoreComponents", +all_files = FALSE, dynamic = TRUE), class = "html_dependency")) +return(deps_metadata) +} diff --git a/dash_core_components/Checklist.py b/dash_core_components/Checklist.py new file mode 100644 index 000000000..b574fc25a --- /dev/null +++ b/dash_core_components/Checklist.py @@ -0,0 +1,69 @@ +# AUTO GENERATED FILE - DO NOT EDIT + +from dash.development.base_component import Component, _explicitize_args + + +class Checklist(Component): + """A Checklist component. +Checklist is a component that encapsulates several checkboxes. +The values and labels of the checklist are specified in the `options` +property and the checked items are specified with the `value` property. +Each checkbox is rendered as an input with a surrounding label. + +Keyword arguments: +- id (string; optional): The ID of this component, used to identify dash components +in callbacks. The ID needs to be unique across all of the +components in an app. +- options (dict; optional): An array of options. options has the following type: list of dicts containing keys 'label', 'value', 'disabled'. +Those keys have the following types: + - label (string | number; required): The checkbox's label + - value (string | number; required): The value of the checkbox. This value +corresponds to the items specified in the +`value` property. + - disabled (boolean; optional): If true, this checkbox is disabled and can't be clicked on. +- value (list of string | numbers; optional): The currently selected value +- className (string; optional): The class of the container (div) +- style (dict; optional): The style of the container (div) +- inputStyle (dict; optional): The style of the checkbox element +- inputClassName (string; default ''): The class of the checkbox element +- labelStyle (dict; optional): The style of the