-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
129 additions
and
2 deletions.
There are no files selected for viewing
Binary file modified
BIN
+1023 Bytes
(100%)
e2e/visual/empty-ui.spec.js-snapshots/empty-playground-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+937 Bytes
(100%)
e2e/visual/empty-ui.spec.js-snapshots/empty-playground-1-firefox-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+848 Bytes
(100%)
e2e/visual/empty-ui.spec.js-snapshots/empty-playground-1-webkit-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+986 Bytes
(100%)
e2e/visual/groups-ui.spec.js-snapshots/groups-playground-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.21 KB
(100%)
e2e/visual/groups-ui.spec.js-snapshots/groups-playground-1-firefox-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+958 Bytes
(100%)
e2e/visual/groups-ui.spec.js-snapshots/groups-playground-1-webkit-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1023 Bytes
(100%)
e2e/visual/no-theme.spec.js-snapshots/no-theme---editor-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+960 Bytes
(100%)
e2e/visual/no-theme.spec.js-snapshots/no-theme---editor-1-firefox-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+872 Bytes
(100%)
e2e/visual/no-theme.spec.js-snapshots/no-theme---editor-1-webkit-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+918 Bytes
(100%)
e2e/visual/theming.spec.js-snapshots/theming---editor-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+719 Bytes
(100%)
e2e/visual/theming.spec.js-snapshots/theming---editor-1-firefox-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+893 Bytes
(100%)
e2e/visual/theming.spec.js-snapshots/theming---editor-1-webkit-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions
18
packages/form-js-viewer/src/render/components/form-fields/FilePicker.js
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,18 @@ | ||
/** | ||
* @returns {import("preact").JSX.Element} | ||
*/ | ||
export function FilePicker() { | ||
return null; | ||
} | ||
|
||
FilePicker.config = { | ||
type: 'filepicker', | ||
keyed: true, | ||
label: 'File picker', | ||
group: 'basic-input', | ||
emptyValue: null, | ||
sanitizeValue: ({ value }) => { | ||
return value; | ||
}, | ||
create: (options = {}) => ({ ...options }), | ||
}; |
1 change: 1 addition & 0 deletions
1
packages/form-js-viewer/src/render/components/icons/FilePicker.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
|
@@ -11,7 +11,8 @@ | |
"taglist", | ||
"textfield", | ||
"textarea", | ||
"expression" | ||
"expression", | ||
"filepicker" | ||
] | ||
} | ||
}, | ||
|
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 |
---|---|---|
|
@@ -22,6 +22,7 @@ | |
"separator", | ||
"table", | ||
"iframe", | ||
"expression" | ||
"expression", | ||
"filepicker" | ||
] | ||
} |
27 changes: 27 additions & 0 deletions
27
packages/form-json-schema/test/fixtures/accept-not-allowed.js
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,27 @@ | ||
export const form = { | ||
type: 'default', | ||
components: [ | ||
{ | ||
type: 'textfield', | ||
key: 'textfield_g35o3e', | ||
accept: '.png,.jpg', | ||
}, | ||
], | ||
}; | ||
|
||
export const errors = [ | ||
{ | ||
instancePath: '/components/0/accept', | ||
keyword: 'false schema', | ||
message: 'boolean schema is false', | ||
params: {}, | ||
schemaPath: '#/properties/components/items/allOf/1/allOf/20/then/properties/accept/false schema', | ||
}, | ||
{ | ||
instancePath: '/components/0', | ||
schemaPath: '#/properties/components/items/allOf/1/allOf/20/if', | ||
keyword: 'if', | ||
params: { failingKeyword: 'then' }, | ||
message: 'must match "then" schema', | ||
}, | ||
]; |
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,13 @@ | ||
export const form = { | ||
type: 'default', | ||
components: [ | ||
{ | ||
type: 'filepicker', | ||
key: 'filepicker', | ||
accept: '.png,.jpg', | ||
multiple: true, | ||
}, | ||
], | ||
}; | ||
|
||
export const errors = null; |
27 changes: 27 additions & 0 deletions
27
packages/form-json-schema/test/fixtures/multiple-not-allowed.js
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,27 @@ | ||
export const form = { | ||
type: 'default', | ||
components: [ | ||
{ | ||
type: 'textfield', | ||
key: 'textfield_g35o3e', | ||
multiple: true, | ||
}, | ||
], | ||
}; | ||
|
||
export const errors = [ | ||
{ | ||
instancePath: '/components/0/multiple', | ||
keyword: 'false schema', | ||
message: 'boolean schema is false', | ||
params: {}, | ||
schemaPath: '#/properties/components/items/allOf/1/allOf/20/then/properties/multiple/false schema', | ||
}, | ||
{ | ||
instancePath: '/components/0', | ||
schemaPath: '#/properties/components/items/allOf/1/allOf/20/if', | ||
keyword: 'if', | ||
params: { failingKeyword: 'then' }, | ||
message: 'must match "then" schema', | ||
}, | ||
]; |
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