-
Notifications
You must be signed in to change notification settings - Fork 26
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
1 parent
8bcdd9a
commit 2389f7e
Showing
5 changed files
with
85 additions
and
2 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
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,6 @@ | ||
<script id="setting-MAX_FILE_UPLOAD_SIZE" type="application/json">"50\u00a0MB"</script> | ||
<script id="config-REQUIRED_DEFAULT" type="application/json">false</script> | ||
<script id="config-RICH_TEXT_COLORS" type="application/json">[{"color": "#4ce699", "label": "Aquamarine"}]</script> | ||
<script id="config-MAP_TILE_LAYERS" type="application/json">[]</script> | ||
<script id="config-UPLOAD_FILETYPES" type="application/json">[{"label": "elk bestandstype", "value": "*"}, {"label": ".heic", "value": "image/heic"}, {"label": ".png", "value": "image/png"}, {"label": ".jpg", "value": "image/jpeg"}, {"label": ".pdf", "value": "application/pdf"}, {"label": ".xls", "value": "application/vnd.ms-excel"}, {"label": ".xlsx", "value": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}, {"label": ".csv", "value": "text/csv"}, {"label": ".txt", "value": "text/plain"}, {"label": ".doc", "value": "application/msword"}, {"label": ".docx", "value": "application/vnd.openxmlformats-officedocument.wordprocessingml.document"}, {"label": "Open Office", "value": "application/vnd.oasis.opendocument.*,application/vnd.stardivision.*,application/vnd.sun.xml.*"}, {"label": ".zip", "value": "application/zip,application/zip-compressed,application/x-zip-compressed"}, {"label": ".rar", "value": "application/vnd.rar"}, {"label": ".tar", "value": "application/x-tar"}, {"label": ".msg", "value": "application/vnd.ms-outlook"}, {"label": ".dwg", "value": "application/acad.dwg,application/autocad_dwg.dwg,application/dwg.dwg,application/x-acad.dwg,application/x-autocad.dwg,application/x-dwg.dwg,drawing/dwg.dwg,image/vnd.dwg,image/x-dwg.dwg"}]</script> | ||
<script id="CONFIDENTIALITY_LEVELS" type="application/json">[{"label": "Openbaar", "value": "openbaar"}, {"label": "Beperkt openbaar", "value": "beperkt_openbaar"}, {"label": "Intern", "value": "intern"}, {"label": "Zaakvertrouwelijk", "value": "zaakvertrouwelijk"}, {"label": "Vertrouwelijk", "value": "vertrouwelijk"}, {"label": "Confidentieel", "value": "confidentieel"}, {"label": "Geheim", "value": "geheim"}, {"label": "Zeer geheim", "value": "zeer_geheim"}]</script> |
2 changes: 1 addition & 1 deletion
2
src/openforms/js/components/admin/form_design/FormDetailFields.stories.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
65 changes: 65 additions & 0 deletions
65
src/openforms/js/components/admin/form_design/StepsFieldSet.stories.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,65 @@ | ||
import {fn} from '@storybook/test'; | ||
|
||
import { | ||
AdminChangeFormDecorator, | ||
FormDecorator, | ||
} from 'components/admin/form_design/story-decorators'; | ||
|
||
import {StepsFieldSet} from './form-creation-form'; | ||
|
||
export default { | ||
title: 'Form design / Tabs / Steps', | ||
decorators: [FormDecorator, AdminChangeFormDecorator], | ||
component: StepsFieldSet, | ||
args: { | ||
submitting: false, | ||
loadingErrors: '', | ||
steps: [ | ||
{ | ||
configuration: { | ||
display: 'form', | ||
components: [], | ||
}, | ||
formDefinition: '', | ||
index: 0, | ||
name: 'Step 1', | ||
internalName: '', | ||
slug: 'step-1', | ||
isApplicable: true, | ||
loginRequired: false, | ||
isReusable: false, | ||
url: '', | ||
isNew: false, | ||
validationErrors: [], | ||
translations: { | ||
nl: { | ||
name: 'Stap 1', | ||
saveText: '', | ||
previousText: '', | ||
nextText: '', | ||
}, | ||
en: { | ||
name: 'Step 1', | ||
saveText: '', | ||
previousText: '', | ||
nextText: '', | ||
}, | ||
}, | ||
}, | ||
], | ||
onEdit: fn(), | ||
onComponentMutated: fn(), | ||
onFieldChange: fn(), | ||
onDelete: fn(), | ||
onReorder: fn(), | ||
onReplace: fn(), | ||
onAdd: fn(), | ||
}, | ||
parameters: { | ||
adminChangeForm: { | ||
wrapFieldset: true, | ||
}, | ||
}, | ||
}; | ||
|
||
export const Default = {}; |
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