-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main'
- Loading branch information
Showing
101 changed files
with
15,368 additions
and
17,273 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# These are supported funding model platforms | ||
|
||
github: [Jaspero] | ||
# These are supported funding model platforms | ||
|
||
github: [Jaspero] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,6 @@ on: | |
- main | ||
paths: | ||
- 'packages/**' | ||
|
||
|
||
jobs: | ||
build-and-deploy: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module.exports = { | ||
presets: [require.resolve('@docusaurus/core/lib/babel/preset')], | ||
presets: [require.resolve('@docusaurus/core/lib/babel/preset')] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Autocomplete | ||
|
||
### Description | ||
|
||
`<jp-autocomplete>` is a field component with a combination of `<input>` functionality and `<select>` functionality. | ||
|
||
### Attributes | ||
|
||
| **Name** | **Required** | **Type** | **Description** | | ||
| :----: | :----: | :----: | :---: | | ||
| options | | `string[]` | list of autocomplete options | | ||
| label | | `string` | shows at the top of an input | | ||
| placeholder | | `string` | temporary text that appears in an <br></br> input field before any input is entered | | ||
| name | ✓ | `string` | name of the form control | | ||
| id | | `string`| unique identifier | | ||
| disabled | | `boolean` | determines if an input is disabled | | ||
| required | | `boolean` | determines if an input is required | | ||
| requiredValidationMessage | | `string` | validation message for when component does not satisfy required | | ||
| minlength | | `number` | minimum character count allowed | | ||
| minlengthValidationMessage | | `string` | validation message for when component does not satisfy minlength | | ||
| maxlength | | `number` | maximum character count allowed | | ||
| maxlengthValidationMessage | | `string` | validation message for when component does not satisfy maxlength | | ||
| pattern | | `string` | pattern that input has to satisfy | | ||
| patternValidationMessage | | `string` | validation message for when component does not satisfy pattern | | ||
| validationMessages | | `{[type]: string}` where `type` is `string` | compact way of writing validation messages in a single attribute | | ||
|
||
### Slots | ||
|
||
This component does not have any slots. | ||
|
||
### Methods | ||
- `reportValidity` | ||
- triggers reportValidity | ||
|
||
### Events | ||
|
||
- `value` | ||
- triggers when value of the field changes | ||
|
||
### Demo | ||
|
||
```jsx live | ||
<jp-autocomplete options='["One", "Two", "Three"]'> | ||
</jp-autocomplete> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# File list | ||
|
||
### Description | ||
|
||
`<jp-file-list>` is a component with functionality of `<input multiple type="file">`, but also supports initial value in form of urls. | ||
|
||
### Attributes | ||
|
||
| Name | Required | Type | Description | | ||
|:--------:|:------------:|:------------:|:------------------------:| | ||
| value | | `string` (list of urls separated by comma) | initial value | | ||
| id | | `string` | unique identifier | | ||
| name | ✓ | `string` | name of the form control | | ||
| service | ✓ | [`FileService`](#fileservice) | file service | | ||
| maxfiles | | `number` | maximum number of files allowed | | ||
| maxfilesValidationMessage | | `string` | validation message for when component does not satisfy maxfiles | | ||
| minfiles | | `number` | minimum number of files allowed | | ||
| minfilesValidationMessage | | `string` | validation message for when component does not satisfy minfiles | | ||
| validationMessages | | `{[type]: string}` where `type` is `string` | compact way of writing validation messages in a single attribute | | ||
|
||
### Interfaces | ||
|
||
#### `FileService` | ||
|
||
Defines the accepted file types and provides a method to upload a file. | ||
|
||
##### Properties | ||
|
||
| **Name** | **Required** | **Type** |**Description** | | ||
| :----: | :----: | :----: | :---: | | ||
| acceptedFiles | ✓ | `string` | defines acceptable file types | | ||
| maxSize | | `number` | max file size in bytes | | ||
| uploadFile | | `(file: any, id?: string) => Promise<string>` | uploads a file and returns a promise <br></br> which is a string that represents a link to the file location | | ||
|
||
<br></br> | ||
|
||
### Slots | ||
|
||
This component does not have any slots. | ||
|
||
### Methods | ||
- `reportValidity` | ||
- triggers reportValidity | ||
- `save` | ||
- async function that saves files and adds urls to value | ||
|
||
### Events | ||
- `value` | ||
- triggers when files change | ||
- `removed` | ||
- triggers when saved file is removed and contains information about url | ||
- `change` | ||
- triggers when new files are added and contains information about unsaved files | ||
- `rejected` | ||
- triggers when added file is not accepted because it does not satisfy some service criteria | ||
|
||
### Demo | ||
|
||
```jsx live | ||
<jp-file-list> | ||
</jp-file-list> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.