diff --git a/.Rbuildignore b/.Rbuildignore new file mode 100644 index 000000000..e75380ed3 --- /dev/null +++ b/.Rbuildignore @@ -0,0 +1,29 @@ +# ignore JS config files/folders +node_modules/ +coverage/ +src/ +lib/ +.babelrc +.builderrc +.eslintrc +.npmignore + +# demo folder has special meaning in R +# this should hopefully make it still +# allow for the possibility to make R demos +demo/.*\.js +demo/.*\.html +demo/.*\.css + +# ignore python files/folders +setup.py +usage.py +setup.py +requirements.txt +MANIFEST.in +CHANGELOG.md +test/ +# CRAN has weird LICENSE requirements +LICENSE.txt +^.*\.Rproj$ +^\.Rproj\.user$ diff --git a/.gitignore b/.gitignore index 814b1ad63..a743a25e3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,6 @@ +dash build/ dist/ -lib/ lib/bundle.js* coverage/ node_modules/ diff --git a/DESCRIPTION b/DESCRIPTION new file mode 100644 index 000000000..f333a7913 --- /dev/null +++ b/DESCRIPTION @@ -0,0 +1,14 @@ +Package: dashCoreComponents +Title: Core component suite for Dash +Version: 0.42.1 +Authors @R: as.person(c(Chris Parmer )) +Description: Core component suite for Dash +Depends: R (>= 3.5.0) +Suggests: testthat, roxygen2 +License: MIT + file LICENSE +URL: https://github.com/plotly/dash-core-components +BugReports: https://github.com/plotly/dash-core-components/issues +Encoding: UTF-8 +LazyData: true +Author: Chris Parmer [aut] +Maintainer: Chris Parmer diff --git a/LICENSE b/LICENSE new file mode 120000 index 000000000..85de3d454 --- /dev/null +++ b/LICENSE @@ -0,0 +1 @@ +LICENSE.txt \ No newline at end of file diff --git a/NAMESPACE b/NAMESPACE new file mode 100644 index 000000000..bc27ec061 --- /dev/null +++ b/NAMESPACE @@ -0,0 +1,24 @@ +# AUTO GENERATED FILE - DO NOT EDIT + +export(coreChecklist) +export(coreConfirmDialog) +export(coreConfirmDialogProvider) +export(coreDatePickerRange) +export(coreDatePickerSingle) +export(coreDropdown) +export(coreGraph) +export(coreInput) +export(coreInterval) +export(coreLink) +export(coreLocation) +export(coreLogoutButton) +export(coreMarkdown) +export(coreRadioItems) +export(coreRangeSlider) +export(coreSlider) +export(coreStore) +export(coreSyntaxHighlighter) +export(coreTab) +export(coreTabs) +export(coreTextarea) +export(coreUpload) diff --git a/R/coreChecklist.R b/R/coreChecklist.R new file mode 100644 index 000000000..226e4bbac --- /dev/null +++ b/R/coreChecklist.R @@ -0,0 +1,18 @@ +# AUTO GENERATED FILE - DO NOT EDIT + +coreChecklist <- function(id=NULL, options=NULL, values=NULL, className=NULL, style=NULL, inputStyle=NULL, inputClassName=NULL, labelStyle=NULL, labelClassName=NULL, setProps=NULL, ...) { + + wildcard_names = names(list(...)) + + component <- list( + props = list(id=id, options=options, values=values, className=className, style=style, inputStyle=inputStyle, inputClassName=inputClassName, labelStyle=labelStyle, labelClassName=labelClassName, setProps=setProps, ...), + type = 'Checklist', + namespace = 'dash_core_components', + propNames = c('id', 'options', 'values', 'className', 'style', 'inputStyle', 'inputClassName', 'labelStyle', 'labelClassName', wildcard_names), + package = 'dashCoreComponents' + ) + + component$props <- filter_null(component$props) + + structure(component, class = c('dash_component', 'list')) +} \ No newline at end of file diff --git a/R/coreConfirmDialog.R b/R/coreConfirmDialog.R new file mode 100644 index 000000000..233af8d94 --- /dev/null +++ b/R/coreConfirmDialog.R @@ -0,0 +1,18 @@ +# AUTO GENERATED FILE - DO NOT EDIT + +coreConfirmDialog <- 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, key=NULL, ...) { + + wildcard_names = names(list(...)) + + component <- list( + 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, key=key, ...), + 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', 'key', wildcard_names), + package = 'dashCoreComponents' + ) + + component$props <- filter_null(component$props) + + structure(component, class = c('dash_component', 'list')) +} \ No newline at end of file diff --git a/R/coreConfirmDialogProvider.R b/R/coreConfirmDialogProvider.R new file mode 100644 index 000000000..cffa88980 --- /dev/null +++ b/R/coreConfirmDialogProvider.R @@ -0,0 +1,18 @@ +# AUTO GENERATED FILE - DO NOT EDIT + +coreConfirmDialogProvider <- 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, ...) { + + wildcard_names = names(list(...)) + + component <- list( + 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, ...), + 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', wildcard_names), + package = 'dashCoreComponents' + ) + + component$props <- filter_null(component$props) + + structure(component, class = c('dash_component', 'list')) +} \ No newline at end of file diff --git a/R/coreDatePickerRange.R b/R/coreDatePickerRange.R new file mode 100644 index 000000000..dee1aad63 --- /dev/null +++ b/R/coreDatePickerRange.R @@ -0,0 +1,18 @@ +# AUTO GENERATED FILE - DO NOT EDIT + +coreDatePickerRange <- function(id=NULL, start_date=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, dashEvents=NULL, updatemode=NULL, ...) { + + wildcard_names = names(list(...)) + + component <- list( + props = list(id=id, start_date=start_date, 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, dashEvents=dashEvents, updatemode=updatemode, ...), + type = 'DatePickerRange', + namespace = 'dash_core_components', + propNames = c('id', 'start_date', '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', 'updatemode', wildcard_names), + package = 'dashCoreComponents' + ) + + component$props <- filter_null(component$props) + + structure(component, class = c('dash_component', 'list')) +} \ No newline at end of file diff --git a/R/coreDatePickerSingle.R b/R/coreDatePickerSingle.R new file mode 100644 index 000000000..018d27407 --- /dev/null +++ b/R/coreDatePickerSingle.R @@ -0,0 +1,18 @@ +# AUTO GENERATED FILE - DO NOT EDIT + +coreDatePickerSingle <- 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, dashEvents=NULL, ...) { + + wildcard_names = names(list(...)) + + component <- list( + 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, dashEvents=dashEvents, ...), + 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', wildcard_names), + package = 'dashCoreComponents' + ) + + component$props <- filter_null(component$props) + + structure(component, class = c('dash_component', 'list')) +} \ No newline at end of file diff --git a/R/coreDropdown.R b/R/coreDropdown.R new file mode 100644 index 000000000..4d012b1cf --- /dev/null +++ b/R/coreDropdown.R @@ -0,0 +1,18 @@ +# AUTO GENERATED FILE - DO NOT EDIT + +coreDropdown <- function(id=NULL, options=NULL, value=NULL, className=NULL, clearable=NULL, disabled=NULL, multi=NULL, placeholder=NULL, searchable=NULL, style=NULL, fireEvent=NULL, ...) { + + wildcard_names = names(list(...)) + + component <- list( + props = list(id=id, options=options, value=value, className=className, clearable=clearable, disabled=disabled, multi=multi, placeholder=placeholder, searchable=searchable, style=style, fireEvent=fireEvent, ...), + type = 'Dropdown', + namespace = 'dash_core_components', + propNames = c('id', 'options', 'value', 'className', 'clearable', 'disabled', 'multi', 'placeholder', 'searchable', 'style', wildcard_names), + package = 'dashCoreComponents' + ) + + component$props <- filter_null(component$props) + + structure(component, class = c('dash_component', 'list')) +} \ No newline at end of file diff --git a/R/coreGraph.R b/R/coreGraph.R new file mode 100644 index 000000000..4be098740 --- /dev/null +++ b/R/coreGraph.R @@ -0,0 +1,18 @@ +# AUTO GENERATED FILE - DO NOT EDIT + +coreGraph <- function(id=NULL, clickData=NULL, clickAnnotationData=NULL, hoverData=NULL, clear_on_unhover=NULL, selectedData=NULL, relayoutData=NULL, figure=NULL, style=NULL, className=NULL, animate=NULL, animation_options=NULL, config=NULL, setProps=NULL, ...) { + + wildcard_names = names(list(...)) + + component <- list( + props = list(id=id, clickData=clickData, clickAnnotationData=clickAnnotationData, hoverData=hoverData, clear_on_unhover=clear_on_unhover, selectedData=selectedData, relayoutData=relayoutData, figure=figure, style=style, className=className, animate=animate, animation_options=animation_options, config=config, setProps=setProps, ...), + type = 'Graph', + namespace = 'dash_core_components', + propNames = c('id', 'clickData', 'clickAnnotationData', 'hoverData', 'clear_on_unhover', 'selectedData', 'relayoutData', 'figure', 'style', 'className', 'animate', 'animation_options', 'config', wildcard_names), + package = 'dashCoreComponents' + ) + + component$props <- filter_null(component$props) + + structure(component, class = c('dash_component', 'list')) +} \ No newline at end of file diff --git a/R/coreInput.R b/R/coreInput.R new file mode 100644 index 000000000..4e9372c90 --- /dev/null +++ b/R/coreInput.R @@ -0,0 +1,18 @@ +# AUTO GENERATED FILE - DO NOT EDIT + +coreInput <- 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, setProps=NULL, ...) { + + wildcard_names = names(list(...)) + + component <- list( + 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, setProps=setProps, ...), + 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', wildcard_names), + package = 'dashCoreComponents' + ) + + component$props <- filter_null(component$props) + + structure(component, class = c('dash_component', 'list')) +} \ No newline at end of file diff --git a/R/coreInterval.R b/R/coreInterval.R new file mode 100644 index 000000000..6f6c8c920 --- /dev/null +++ b/R/coreInterval.R @@ -0,0 +1,18 @@ +# AUTO GENERATED FILE - DO NOT EDIT + +coreInterval <- function(id=NULL, interval=NULL, disabled=NULL, n_intervals=NULL, max_intervals=NULL, setProps=NULL, ...) { + + wildcard_names = names(list(...)) + + component <- list( + props = list(id=id, interval=interval, disabled=disabled, n_intervals=n_intervals, max_intervals=max_intervals, setProps=setProps, ...), + type = 'Interval', + namespace = 'dash_core_components', + propNames = c('id', 'interval', 'disabled', 'n_intervals', 'max_intervals', wildcard_names), + package = 'dashCoreComponents' + ) + + component$props <- filter_null(component$props) + + structure(component, class = c('dash_component', 'list')) +} \ No newline at end of file diff --git a/R/coreLink.R b/R/coreLink.R new file mode 100644 index 000000000..0eae30f70 --- /dev/null +++ b/R/coreLink.R @@ -0,0 +1,18 @@ +# AUTO GENERATED FILE - DO NOT EDIT + +coreLink <- function(children=NULL, href=NULL, refresh=NULL, className=NULL, style=NULL, id=NULL, ...) { + + wildcard_names = names(list(...)) + + component <- list( + props = list(children=children, href=href, refresh=refresh, className=className, style=style, id=id, ...), + type = 'Link', + namespace = 'dash_core_components', + propNames = c('children', 'href', 'refresh', 'className', 'style', 'id', wildcard_names), + package = 'dashCoreComponents' + ) + + component$props <- filter_null(component$props) + + structure(component, class = c('dash_component', 'list')) +} \ No newline at end of file diff --git a/R/coreLocation.R b/R/coreLocation.R new file mode 100644 index 000000000..b63cc16b1 --- /dev/null +++ b/R/coreLocation.R @@ -0,0 +1,18 @@ +# AUTO GENERATED FILE - DO NOT EDIT + +coreLocation <- function(id=NULL, pathname=NULL, search=NULL, hash=NULL, href=NULL, refresh=NULL, ...) { + + wildcard_names = names(list(...)) + + component <- list( + props = list(id=id, pathname=pathname, search=search, hash=hash, href=href, refresh=refresh, ...), + type = 'Location', + namespace = 'dash_core_components', + propNames = c('id', 'pathname', 'search', 'hash', 'href', 'refresh', wildcard_names), + package = 'dashCoreComponents' + ) + + component$props <- filter_null(component$props) + + structure(component, class = c('dash_component', 'list')) +} \ No newline at end of file diff --git a/R/coreLogoutButton.R b/R/coreLogoutButton.R new file mode 100644 index 000000000..cc4b7ceb8 --- /dev/null +++ b/R/coreLogoutButton.R @@ -0,0 +1,18 @@ +# AUTO GENERATED FILE - DO NOT EDIT + +coreLogoutButton <- function(id=NULL, label=NULL, logout_url=NULL, style=NULL, method=NULL, className=NULL, ...) { + + wildcard_names = names(list(...)) + + component <- list( + props = list(id=id, label=label, logout_url=logout_url, style=style, method=method, className=className, ...), + type = 'LogoutButton', + namespace = 'dash_core_components', + propNames = c('id', 'label', 'logout_url', 'style', 'method', 'className', wildcard_names), + package = 'dashCoreComponents' + ) + + component$props <- filter_null(component$props) + + structure(component, class = c('dash_component', 'list')) +} \ No newline at end of file diff --git a/R/coreMarkdown.R b/R/coreMarkdown.R new file mode 100644 index 000000000..ccace2fd7 --- /dev/null +++ b/R/coreMarkdown.R @@ -0,0 +1,18 @@ +# AUTO GENERATED FILE - DO NOT EDIT + +coreMarkdown <- function(children=NULL, id=NULL, className=NULL, containerProps=NULL, dangerously_allow_html=NULL, ...) { + + wildcard_names = names(list(...)) + + component <- list( + props = list(children=children, id=id, className=className, containerProps=containerProps, dangerously_allow_html=dangerously_allow_html, ...), + type = 'Markdown', + namespace = 'dash_core_components', + propNames = c('children', 'id', 'className', 'containerProps', 'dangerously_allow_html', wildcard_names), + package = 'dashCoreComponents' + ) + + component$props <- filter_null(component$props) + + structure(component, class = c('dash_component', 'list')) +} \ No newline at end of file diff --git a/R/coreRadioItems.R b/R/coreRadioItems.R new file mode 100644 index 000000000..585321a01 --- /dev/null +++ b/R/coreRadioItems.R @@ -0,0 +1,18 @@ +# AUTO GENERATED FILE - DO NOT EDIT + +coreRadioItems <- function(id=NULL, options=NULL, value=NULL, style=NULL, className=NULL, inputStyle=NULL, inputClassName=NULL, labelStyle=NULL, labelClassName=NULL, setProps=NULL, ...) { + + wildcard_names = names(list(...)) + + component <- list( + props = list(id=id, options=options, value=value, style=style, className=className, inputStyle=inputStyle, inputClassName=inputClassName, labelStyle=labelStyle, labelClassName=labelClassName, setProps=setProps, ...), + type = 'RadioItems', + namespace = 'dash_core_components', + propNames = c('id', 'options', 'value', 'style', 'className', 'inputStyle', 'inputClassName', 'labelStyle', 'labelClassName', wildcard_names), + package = 'dashCoreComponents' + ) + + component$props <- filter_null(component$props) + + structure(component, class = c('dash_component', 'list')) +} \ No newline at end of file diff --git a/R/coreRangeSlider.R b/R/coreRangeSlider.R new file mode 100644 index 000000000..dc672cfc0 --- /dev/null +++ b/R/coreRangeSlider.R @@ -0,0 +1,18 @@ +# AUTO GENERATED FILE - DO NOT EDIT + +coreRangeSlider <- 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, step=NULL, vertical=NULL, updatemode=NULL, setProps=NULL, ...) { + + wildcard_names = names(list(...)) + + component <- list( + 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, step=step, vertical=vertical, updatemode=updatemode, setProps=setProps, ...), + type = 'RangeSlider', + namespace = 'dash_core_components', + propNames = c('id', 'marks', 'value', 'allowCross', 'className', 'count', 'disabled', 'dots', 'included', 'min', 'max', 'pushable', 'step', 'vertical', 'updatemode', wildcard_names), + package = 'dashCoreComponents' + ) + + component$props <- filter_null(component$props) + + structure(component, class = c('dash_component', 'list')) +} \ No newline at end of file diff --git a/R/coreSlider.R b/R/coreSlider.R new file mode 100644 index 000000000..e4425d677 --- /dev/null +++ b/R/coreSlider.R @@ -0,0 +1,18 @@ +# AUTO GENERATED FILE - DO NOT EDIT + +coreSlider <- function(id=NULL, marks=NULL, value=NULL, className=NULL, disabled=NULL, dots=NULL, included=NULL, min=NULL, max=NULL, step=NULL, vertical=NULL, updatemode=NULL, setProps=NULL, ...) { + + wildcard_names = names(list(...)) + + component <- list( + props = list(id=id, marks=marks, value=value, className=className, disabled=disabled, dots=dots, included=included, min=min, max=max, step=step, vertical=vertical, updatemode=updatemode, setProps=setProps, ...), + type = 'Slider', + namespace = 'dash_core_components', + propNames = c('id', 'marks', 'value', 'className', 'disabled', 'dots', 'included', 'min', 'max', 'step', 'vertical', 'updatemode', wildcard_names), + package = 'dashCoreComponents' + ) + + component$props <- filter_null(component$props) + + structure(component, class = c('dash_component', 'list')) +} \ No newline at end of file diff --git a/R/coreStore.R b/R/coreStore.R new file mode 100644 index 000000000..2dbfe5931 --- /dev/null +++ b/R/coreStore.R @@ -0,0 +1,18 @@ +# AUTO GENERATED FILE - DO NOT EDIT + +coreStore <- function(id=NULL, storage_type=NULL, data=NULL, clear_data=NULL, modified_timestamp=NULL, ...) { + + wildcard_names = names(list(...)) + + component <- list( + props = list(id=id, storage_type=storage_type, data=data, clear_data=clear_data, modified_timestamp=modified_timestamp, ...), + type = 'Store', + namespace = 'dash_core_components', + propNames = c('id', 'storage_type', 'data', 'clear_data', 'modified_timestamp', wildcard_names), + package = 'dashCoreComponents' + ) + + component$props <- filter_null(component$props) + + structure(component, class = c('dash_component', 'list')) +} \ No newline at end of file diff --git a/R/coreSyntaxHighlighter.R b/R/coreSyntaxHighlighter.R new file mode 100644 index 000000000..6b0c8d6fb --- /dev/null +++ b/R/coreSyntaxHighlighter.R @@ -0,0 +1,18 @@ +# AUTO GENERATED FILE - DO NOT EDIT + +coreSyntaxHighlighter <- function(children=NULL, id=NULL, language=NULL, theme=NULL, customStyle=NULL, codeTagProps=NULL, useInlineStyles=NULL, showLineNumbers=NULL, startingLineNumber=NULL, lineNumberContainerStyle=NULL, lineNumberStyle=NULL, wrapLines=NULL, lineStyle=NULL, ...) { + + wildcard_names = names(list(...)) + + component <- list( + props = list(children=children, id=id, language=language, theme=theme, customStyle=customStyle, codeTagProps=codeTagProps, useInlineStyles=useInlineStyles, showLineNumbers=showLineNumbers, startingLineNumber=startingLineNumber, lineNumberContainerStyle=lineNumberContainerStyle, lineNumberStyle=lineNumberStyle, wrapLines=wrapLines, lineStyle=lineStyle, ...), + type = 'SyntaxHighlighter', + namespace = 'dash_core_components', + propNames = c('children', 'id', 'language', 'theme', 'customStyle', 'codeTagProps', 'useInlineStyles', 'showLineNumbers', 'startingLineNumber', 'lineNumberContainerStyle', 'lineNumberStyle', 'wrapLines', 'lineStyle', wildcard_names), + package = 'dashCoreComponents' + ) + + component$props <- filter_null(component$props) + + structure(component, class = c('dash_component', 'list')) +} \ No newline at end of file diff --git a/R/coreTab.R b/R/coreTab.R new file mode 100644 index 000000000..9a6770fdc --- /dev/null +++ b/R/coreTab.R @@ -0,0 +1,18 @@ +# AUTO GENERATED FILE - DO NOT EDIT + +coreTab <- 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, ...) { + + wildcard_names = names(list(...)) + + component <- list( + 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, ...), + type = 'Tab', + namespace = 'dash_core_components', + propNames = c('children', 'id', 'label', 'value', 'disabled', 'disabled_style', 'disabled_className', 'className', 'selected_className', 'style', 'selected_style', wildcard_names), + package = 'dashCoreComponents' + ) + + component$props <- filter_null(component$props) + + structure(component, class = c('dash_component', 'list')) +} \ No newline at end of file diff --git a/R/coreTabs.R b/R/coreTabs.R new file mode 100644 index 000000000..aeb083f7f --- /dev/null +++ b/R/coreTabs.R @@ -0,0 +1,18 @@ +# AUTO GENERATED FILE - DO NOT EDIT + +coreTabs <- 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, ...) { + + wildcard_names = names(list(...)) + + component <- list( + 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, ...), + 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', wildcard_names), + package = 'dashCoreComponents' + ) + + component$props <- filter_null(component$props) + + structure(component, class = c('dash_component', 'list')) +} \ No newline at end of file diff --git a/R/coreTextarea.R b/R/coreTextarea.R new file mode 100644 index 000000000..e3b1f31e2 --- /dev/null +++ b/R/coreTextarea.R @@ -0,0 +1,18 @@ +# AUTO GENERATED FILE - DO NOT EDIT + +coreTextarea <- 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, fireEvent=NULL, ...) { + + wildcard_names = names(list(...)) + + component <- list( + 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, fireEvent=fireEvent, ...), + 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', wildcard_names), + package = 'dashCoreComponents' + ) + + component$props <- filter_null(component$props) + + structure(component, class = c('dash_component', 'list')) +} \ No newline at end of file diff --git a/R/coreUpload.R b/R/coreUpload.R new file mode 100644 index 000000000..a4d11ceba --- /dev/null +++ b/R/coreUpload.R @@ -0,0 +1,18 @@ +# AUTO GENERATED FILE - DO NOT EDIT + +coreUpload <- 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, ...) { + + wildcard_names = names(list(...)) + + component <- list( + 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, ...), + 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', wildcard_names), + package = 'dashCoreComponents' + ) + + component$props <- filter_null(component$props) + + structure(component, class = c('dash_component', 'list')) +} \ No newline at end of file diff --git a/R/internal.R b/R/internal.R new file mode 100644 index 000000000..88d8e51ae --- /dev/null +++ b/R/internal.R @@ -0,0 +1,21 @@ +.dashCoreComponents_js_metadata <- function() { +deps_metadata <- list(`dash_core_components_0` = structure(list(name = "dash_core_components_0", +version = "0", src = list(href = NULL, +file = "deps/"), meta = NULL, +script = "plotly-1.43.1.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 = "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 = "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), class = "html_dependency")) +return(deps_metadata) +} \ No newline at end of file diff --git a/dash_core_components/Location.py b/dash_core_components/Location.py index 3952dc149..d3dabd587 100644 --- a/dash_core_components/Location.py +++ b/dash_core_components/Location.py @@ -32,7 +32,7 @@ def __init__(self, id=Component.REQUIRED, pathname=Component.UNDEFINED, search=C _locals.update(kwargs) # For wildcard attrs args = {k: _locals[k] for k in _explicit_args if k != 'children'} - for k in ['id']: + for k in [u'id']: if k not in args: raise TypeError( 'Required argument `' + k + '` was not specified.') diff --git a/dash_core_components/Store.py b/dash_core_components/Store.py index a8585879f..022fdd363 100644 --- a/dash_core_components/Store.py +++ b/dash_core_components/Store.py @@ -17,7 +17,7 @@ class Store(Component): memory: only kept in memory, reset on page refresh. local: window.localStorage, data is kept after the browser quit. session: window.sessionStorage, data is cleared once the browser quit. -- data (dict | list | number | string; optional): The stored data for the id. +- data (dict | list | number | string | boolean; optional): The stored data for the id. - clear_data (boolean; optional): Set to true to remove the data contained in `data_key`. - modified_timestamp (number; optional): The last time the storage was modified. @@ -37,7 +37,7 @@ def __init__(self, id=Component.REQUIRED, storage_type=Component.UNDEFINED, data _locals.update(kwargs) # For wildcard attrs args = {k: _locals[k] for k in _explicit_args if k != 'children'} - for k in ['id']: + for k in [u'id']: if k not in args: raise TypeError( 'Required argument `' + k + '` was not specified.') diff --git a/dash_core_components/metadata.json b/dash_core_components/metadata.json index 861dbee87..7683b9278 100644 --- a/dash_core_components/metadata.json +++ b/dash_core_components/metadata.json @@ -1,3649 +1 @@ -{ - "src/components/Checklist.react.js": { - "description": "Checklist is a component that encapsulates several checkboxes.\nThe values and labels of the checklist is specified in the `options`\nproperty and the checked items are specified with the `values` property.\nEach checkbox is rendered as an input with a surrounding label.", - "displayName": "Checklist", - "methods": [], - "props": { - "id": { - "type": { - "name": "string" - }, - "required": false, - "description": "" - }, - "options": { - "type": { - "name": "arrayOf", - "value": { - "name": "shape", - "value": { - "label": { - "name": "string", - "description": "The checkbox's label", - "required": false - }, - "value": { - "name": "string", - "description": "The value of the checkbox. This value\ncorresponds to the items specified in the\n`values` property.", - "required": false - }, - "disabled": { - "name": "bool", - "description": "If true, this checkbox is disabled and can't be clicked on.", - "required": false - } - } - } - }, - "required": false, - "description": "An array of options", - "defaultValue": { - "value": "[]", - "computed": false - } - }, - "values": { - "type": { - "name": "arrayOf", - "value": { - "name": "string" - } - }, - "required": false, - "description": "The currently selected value" - }, - "className": { - "type": { - "name": "string" - }, - "required": false, - "description": "The class of the container (div)" - }, - "style": { - "type": { - "name": "object" - }, - "required": false, - "description": "The style of the container (div)" - }, - "inputStyle": { - "type": { - "name": "object" - }, - "required": false, - "description": "The style of the checkbox element", - "defaultValue": { - "value": "{}", - "computed": false - } - }, - "inputClassName": { - "type": { - "name": "string" - }, - "required": false, - "description": "The class of the checkbox element", - "defaultValue": { - "value": "''", - "computed": false - } - }, - "labelStyle": { - "type": { - "name": "object" - }, - "required": false, - "description": "The style of the