Skip to content

Commit 05a6394

Browse files
committed
1.0.1
1 parent 9b71853 commit 05a6394

File tree

11 files changed

+98
-67
lines changed

11 files changed

+98
-67
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: dashTextareaAutocomplete
22
Title: Dash component wrapper for `react-textarea-autocomplete`
3-
Version: 1.0.0
3+
Version: 1.0.1
44
Description: Dash component wrapper for `react-textarea-autocomplete`
55
Depends: R (>= 3.0.2)
66
Imports:

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "DashTextareaAutocomplete"
33
uuid = "1b08a953-4be3-4667-9a23-5aadec407a69"
44
authors = ["Etienne Tetreault-Pinard <[email protected]>"]
5-
version = "1.0.0"
5+
version = "1.0.1"
66

77
[deps]
88
Dash = "1b08a953-4be3-4667-9a23-3db579824955"

R/dashTextareaAutocomplete.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
# AUTO GENERATED FILE - DO NOT EDIT
22

3-
dashTextareaAutocomplete <- function(id=NULL, value=NULL, placeholder=NULL, wordList=NULL, triggerChar=NULL, minChar=NULL, className=NULL, containerClassName=NULL, style=NULL, listStyle=NULL, itemStyle=NULL, loaderStyle=NULL, containerStyle=NULL, dropdownStyle=NULL) {
3+
dashTextareaAutocomplete <- function(id=NULL, className=NULL, containerClassName=NULL, containerStyle=NULL, dropdownStyle=NULL, itemStyle=NULL, listStyle=NULL, loaderStyle=NULL, minChar=NULL, placeholder=NULL, style=NULL, triggerChar=NULL, value=NULL, wordList=NULL) {
44

5-
props <- list(id=id, value=value, placeholder=placeholder, wordList=wordList, triggerChar=triggerChar, minChar=minChar, className=className, containerClassName=containerClassName, style=style, listStyle=listStyle, itemStyle=itemStyle, loaderStyle=loaderStyle, containerStyle=containerStyle, dropdownStyle=dropdownStyle)
5+
props <- list(id=id, className=className, containerClassName=containerClassName, containerStyle=containerStyle, dropdownStyle=dropdownStyle, itemStyle=itemStyle, listStyle=listStyle, loaderStyle=loaderStyle, minChar=minChar, placeholder=placeholder, style=style, triggerChar=triggerChar, value=value, wordList=wordList)
66
if (length(props) > 0) {
77
props <- props[!vapply(props, is.null, logical(1))]
88
}
99
component <- list(
1010
props = props,
1111
type = 'DashTextareaAutocomplete',
1212
namespace = 'dash_textarea_autocomplete',
13-
propNames = c('id', 'value', 'placeholder', 'wordList', 'triggerChar', 'minChar', 'className', 'containerClassName', 'style', 'listStyle', 'itemStyle', 'loaderStyle', 'containerStyle', 'dropdownStyle'),
13+
propNames = c('id', 'className', 'containerClassName', 'containerStyle', 'dropdownStyle', 'itemStyle', 'listStyle', 'loaderStyle', 'minChar', 'placeholder', 'style', 'triggerChar', 'value', 'wordList'),
1414
package = 'dashTextareaAutocomplete'
1515
)
1616

R/internal.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
.dashTextareaAutocomplete_js_metadata <- function() {
22
deps_metadata <- list(`dash_textarea_autocomplete` = structure(list(name = "dash_textarea_autocomplete",
3-
version = "1.0.0", src = list(href = NULL,
3+
version = "1.0.1", src = list(href = NULL,
44
file = "deps"), meta = NULL,
55
script = 'dash_textarea_autocomplete.min.js',
66
stylesheet = NULL, head = NULL, attachment = NULL, package = "dashTextareaAutocomplete",
77
all_files = FALSE), class = "html_dependency"),
88
`dash_textarea_autocomplete` = structure(list(name = "dash_textarea_autocomplete",
9-
version = "1.0.0", src = list(href = NULL,
9+
version = "1.0.1", src = list(href = NULL,
1010
file = "deps"), meta = NULL,
1111
script = 'dash_textarea_autocomplete.min.js.map',
1212
stylesheet = NULL, head = NULL, attachment = NULL, package = "dashTextareaAutocomplete",

dash_textarea_autocomplete/DashTextareaAutocomplete.py

Lines changed: 50 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -11,36 +11,66 @@ class DashTextareaAutocomplete(Component):
1111
enabling auto-completion in multi-line `<textarea>` elements.
1212
1313
Keyword arguments:
14-
- id (string; optional): The ID used to identify this component in Dash callbacks.
15-
- value (string; optional): The value displayed in the <textarea>.
16-
- placeholder (string; optional): Provides a hint to the user of what can be entered in the <textarea> field.
17-
- wordList (list; required): List of string available for auto-completion.
18-
- triggerChar (string; default ":"): Character that triggers auto-completion machinery.
19-
Defaults to `:`. (from `react-textarea-autocomplete`)
20-
- minChar (number; default 1): Number of characters that user should type for trigger a suggestion.
21-
Defaults to 1. (from `react-textarea-autocomplete`)
22-
- className (string; optional): Class names of the <textarea> (from `react-textarea-autocomplete`).
23-
- containerClassName (string; optional): Class names of the textarea container (from `react-textarea-autocomplete`).
24-
- style (dict; optional): Style of the <textarea>.(from `react-textarea-autocomplete`).
25-
- listStyle (dict; optional): Style of the list wrapper (from `react-textarea-autocomplete`).
26-
- itemStyle (dict; optional): Styles of the items wrapper.
27-
- loaderStyle (dict; optional): Style of the loader wrapper (from `react-textarea-autocomplete`).
28-
- containerStyle (dict; optional): Styles of the textarea container (from `react-textarea-autocomplete`).
29-
- dropdownStyle (dict; optional): Styles of the dropdown wrapper."""
14+
15+
- id (string; optional):
16+
The ID used to identify this component in Dash callbacks.
17+
18+
- className (string; optional):
19+
Class names of the <textarea> (from
20+
`react-textarea-autocomplete`).
21+
22+
- containerClassName (string; optional):
23+
Class names of the textarea container (from
24+
`react-textarea-autocomplete`).
25+
26+
- containerStyle (dict; optional):
27+
Styles of the textarea container (from
28+
`react-textarea-autocomplete`).
29+
30+
- dropdownStyle (dict; optional):
31+
Styles of the dropdown wrapper.
32+
33+
- itemStyle (dict; optional):
34+
Styles of the items wrapper.
35+
36+
- listStyle (dict; optional):
37+
Style of the list wrapper (from `react-textarea-autocomplete`).
38+
39+
- loaderStyle (dict; optional):
40+
Style of the loader wrapper (from `react-textarea-autocomplete`).
41+
42+
- minChar (number; default 1):
43+
Number of characters that user should type for trigger a
44+
suggestion. Defaults to 1. (from `react-textarea-autocomplete`).
45+
46+
- placeholder (string; optional):
47+
Provides a hint to the user of what can be entered in the
48+
<textarea> field.
49+
50+
- style (dict; optional):
51+
Style of the <textarea>.(from `react-textarea-autocomplete`).
52+
53+
- triggerChar (string; default ":"):
54+
Character that triggers auto-completion machinery. Defaults to
55+
`:`. (from `react-textarea-autocomplete`).
56+
57+
- value (string; optional):
58+
The value displayed in the <textarea>.
59+
60+
- wordList (list; required):
61+
List of string available for auto-completion."""
3062
@_explicitize_args
3163
def __init__(self, id=Component.UNDEFINED, value=Component.UNDEFINED, placeholder=Component.UNDEFINED, wordList=Component.REQUIRED, triggerChar=Component.UNDEFINED, minChar=Component.UNDEFINED, className=Component.UNDEFINED, containerClassName=Component.UNDEFINED, style=Component.UNDEFINED, listStyle=Component.UNDEFINED, itemStyle=Component.UNDEFINED, loaderStyle=Component.UNDEFINED, containerStyle=Component.UNDEFINED, dropdownStyle=Component.UNDEFINED, **kwargs):
32-
self._prop_names = ['id', 'value', 'placeholder', 'wordList', 'triggerChar', 'minChar', 'className', 'containerClassName', 'style', 'listStyle', 'itemStyle', 'loaderStyle', 'containerStyle', 'dropdownStyle']
64+
self._prop_names = ['id', 'className', 'containerClassName', 'containerStyle', 'dropdownStyle', 'itemStyle', 'listStyle', 'loaderStyle', 'minChar', 'placeholder', 'style', 'triggerChar', 'value', 'wordList']
3365
self._type = 'DashTextareaAutocomplete'
3466
self._namespace = 'dash_textarea_autocomplete'
3567
self._valid_wildcard_attributes = []
36-
self.available_properties = ['id', 'value', 'placeholder', 'wordList', 'triggerChar', 'minChar', 'className', 'containerClassName', 'style', 'listStyle', 'itemStyle', 'loaderStyle', 'containerStyle', 'dropdownStyle']
68+
self.available_properties = ['id', 'className', 'containerClassName', 'containerStyle', 'dropdownStyle', 'itemStyle', 'listStyle', 'loaderStyle', 'minChar', 'placeholder', 'style', 'triggerChar', 'value', 'wordList']
3769
self.available_wildcard_properties = []
38-
3970
_explicit_args = kwargs.pop('_explicit_args')
4071
_locals = locals()
4172
_locals.update(kwargs) # For wildcard attrs
4273
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
43-
4474
for k in ['wordList']:
4575
if k not in args:
4676
raise TypeError(

dash_textarea_autocomplete/package-info.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dash-textarea-autocomplete",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "Dash component wrapper for `react-textarea-autocomplete`",
55
"bugs": {
66
"url": "https://github.com/etpinard/dash-textarea-autocomplete/issues"
@@ -15,7 +15,8 @@
1515
"build:js": "webpack --mode production",
1616
"build:backends": "dash-generate-components ./src/lib/components dash_textarea_autocomplete -p package-info.json --r-prefix '' --jl-prefix ''",
1717
"build:backends-activated": "(. venv/bin/activate || venv\\scripts\\activate && npm run build:py_and_r)",
18-
"build": "npm run build:js && npm run build:backends",
18+
"build:fixup-jl": "mkdir -p src/jl && mv -f src/dashtextareaautocomplete.jl src/jl/ && sed -i 's/include(\"dashtextareaautocomplete.jl\")/include(\"jl\\/dashtextareaautocomplete.jl\")/' src/DashTextareaAutocomplete.jl",
19+
"build": "npm run build:js && npm run build:backends && npm run build:fixup-jl",
1920
"build:activated": "npm run build:js && npm run build:backends-activated"
2021
},
2122
"author": "Etienne Tetreault-Pinard <[email protected]>",

man/dashTextareaAutocomplete.Rd

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -10,43 +10,43 @@ DashTextareaAutocomplete Simple `@webscopeio/react-textarea-autocomplete` wrapp
1010
}
1111

1212
\usage{
13-
dashTextareaAutocomplete(id=NULL, value=NULL, placeholder=NULL, wordList=NULL,
14-
triggerChar=NULL, minChar=NULL, className=NULL,
15-
containerClassName=NULL, style=NULL, listStyle=NULL,
16-
itemStyle=NULL, loaderStyle=NULL, containerStyle=NULL,
17-
dropdownStyle=NULL)
13+
dashTextareaAutocomplete(id=NULL, className=NULL, containerClassName=NULL,
14+
containerStyle=NULL, dropdownStyle=NULL, itemStyle=NULL,
15+
listStyle=NULL, loaderStyle=NULL, minChar=NULL,
16+
placeholder=NULL, style=NULL, triggerChar=NULL, value=NULL,
17+
wordList=NULL)
1818
}
1919

2020
\arguments{
2121
\item{id}{Character. The ID used to identify this component in Dash callbacks.}
2222

23-
\item{value}{Character. The value displayed in the <textarea>.}
23+
\item{className}{Character. Class names of the <textarea> (from `react-textarea-autocomplete`).}
2424

25-
\item{placeholder}{Character. Provides a hint to the user of what can be entered in the <textarea> field.}
25+
\item{containerClassName}{Character. Class names of the textarea container (from `react-textarea-autocomplete`).}
2626

27-
\item{wordList}{Unnamed list. List of string available for auto-completion.}
27+
\item{containerStyle}{Named list. Styles of the textarea container (from `react-textarea-autocomplete`).}
2828

29-
\item{triggerChar}{Character. Character that triggers auto-completion machinery.
30-
Defaults to `:`. (from `react-textarea-autocomplete`)}
29+
\item{dropdownStyle}{Named list. Styles of the dropdown wrapper.}
3130

32-
\item{minChar}{Numeric. Number of characters that user should type for trigger a suggestion.
33-
Defaults to 1. (from `react-textarea-autocomplete`)}
31+
\item{itemStyle}{Named list. Styles of the items wrapper.}
3432

35-
\item{className}{Character. Class names of the <textarea> (from `react-textarea-autocomplete`).}
33+
\item{listStyle}{Named list. Style of the list wrapper (from `react-textarea-autocomplete`).}
3634

37-
\item{containerClassName}{Character. Class names of the textarea container (from `react-textarea-autocomplete`).}
35+
\item{loaderStyle}{Named list. Style of the loader wrapper (from `react-textarea-autocomplete`).}
3836

39-
\item{style}{Named list. Style of the <textarea>.(from `react-textarea-autocomplete`).}
37+
\item{minChar}{Numeric. Number of characters that user should type for trigger a suggestion.
38+
Defaults to 1. (from `react-textarea-autocomplete`)}
4039

41-
\item{listStyle}{Named list. Style of the list wrapper (from `react-textarea-autocomplete`).}
40+
\item{placeholder}{Character. Provides a hint to the user of what can be entered in the <textarea> field.}
4241

43-
\item{itemStyle}{Named list. Styles of the items wrapper.}
42+
\item{style}{Named list. Style of the <textarea>.(from `react-textarea-autocomplete`).}
4443

45-
\item{loaderStyle}{Named list. Style of the loader wrapper (from `react-textarea-autocomplete`).}
44+
\item{triggerChar}{Character. Character that triggers auto-completion machinery.
45+
Defaults to `:`. (from `react-textarea-autocomplete`)}
4646

47-
\item{containerStyle}{Named list. Styles of the textarea container (from `react-textarea-autocomplete`).}
47+
\item{value}{Character. The value displayed in the <textarea>.}
4848

49-
\item{dropdownStyle}{Named list. Styles of the dropdown wrapper.}
49+
\item{wordList}{Unnamed list. List of string available for auto-completion.}
5050
}
5151

5252
\value{named list of JSON elements corresponding to React.js properties and their values}

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dash-textarea-autocomplete",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "Dash component wrapper for `react-textarea-autocomplete`",
55
"bugs": {
66
"url": "https://github.com/etpinard/dash-textarea-autocomplete/issues"

src/DashTextareaAutocomplete.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ module DashTextareaAutocomplete
33
using Dash
44

55
const resources_path = realpath(joinpath( @__DIR__, "..", "deps"))
6-
const version = "1.0.0"
6+
const version = "1.0.1"
77

8-
include("dashtextareaautocomplete.jl")
8+
include("jl/dashtextareaautocomplete.jl")
99

1010
function __init__()
1111
DashBase.register_package(
@@ -16,14 +16,14 @@ function __init__()
1616
[
1717
DashBase.Resource(
1818
relative_package_path = "dash_textarea_autocomplete.min.js",
19-
external_url = "https://unpkg.com/[email protected].0/dash_textarea_autocomplete/dash_textarea_autocomplete.min.js",
19+
external_url = "https://unpkg.com/[email protected].1/dash_textarea_autocomplete/dash_textarea_autocomplete.min.js",
2020
dynamic = nothing,
2121
async = nothing,
2222
type = :js
2323
),
2424
DashBase.Resource(
2525
relative_package_path = "dash_textarea_autocomplete.min.js.map",
26-
external_url = "https://unpkg.com/[email protected].0/dash_textarea_autocomplete/dash_textarea_autocomplete.min.js.map",
26+
external_url = "https://unpkg.com/[email protected].1/dash_textarea_autocomplete/dash_textarea_autocomplete.min.js.map",
2727
dynamic = true,
2828
async = nothing,
2929
type = :js

0 commit comments

Comments
 (0)