Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
form-generator
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Coscine
frontend
libraries
form-generator
Commits
afa59dbf
Commit
afa59dbf
authored
3 years ago
by
Benedikt Heinrichs
Browse files
Options
Downloads
Patches
Plain Diff
Update: InputTextField as default for datatypes
parent
627085b8
No related branches found
No related tags found
3 merge requests
!71
Chore: 1.13.0
,
!67
Sprint/2021 22
,
!66
Fixes
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/FormGenerator.vue
+2
-1
2 additions, 1 deletion
src/FormGenerator.vue
src/components/InputTextField.vue
+6
-1
6 additions, 1 deletion
src/components/InputTextField.vue
with
8 additions
and
2 deletions
src/FormGenerator.vue
+
2
−
1
View file @
afa59dbf
...
...
@@ -253,7 +253,7 @@ export default LinkedDataHandler.extend({
},
fieldDefinition
(
formElement
:
any
)
{
if
(
this
.
checkField
(
formElement
,
'
http://www.w3.org/ns/shacl#datatype
'
))
{
le
t
datatype
=
FieldReader
.
getObject
(
cons
t
datatype
=
FieldReader
.
getObject
(
formElement
,
'
http://www.w3.org/ns/shacl#datatype
'
);
...
...
@@ -281,6 +281,7 @@ export default LinkedDataHandler.extend({
)
{
return
'
InputBooleanCombobox
'
;
}
return
'
InputTextField
'
;
}
else
{
if
(
this
.
checkField
(
formElement
,
'
http://www.w3.org/ns/shacl#class
'
))
{
return
'
InputCombobox
'
;
...
...
This diff is collapsed.
Click to expand it.
src/components/InputTextField.vue
+
6
−
1
View file @
afa59dbf
...
...
@@ -21,12 +21,17 @@ export default Vue.extend({
// take whatever is defined in formdata now and try to get the content if we are not in fixed value mode
this
.
replacePlaceholder
();
const
datatype
=
FieldReader
.
getObject
(
this
.
formFieldInformation
,
'
http://www.w3.org/ns/shacl#datatype
'
);
// set the datatype
this
.
$set
(
this
.
formData
[
this
.
nodeName
][
this
.
entryKey
],
'
type
'
,
'
literal
'
);
this
.
$set
(
this
.
formData
[
this
.
nodeName
][
this
.
entryKey
],
'
datatype
'
,
'
http://www.w3.org/2001/XMLSchema#string
'
datatype
[
'
value
'
]
);
if
(
this
.
fixedValueMode
)
{
...
...
This diff is collapsed.
Click to expand it.
CoscineBot
@CoscineBot
mentioned in commit
72dcdfbd
·
3 years ago
mentioned in commit
72dcdfbd
mentioned in commit 72dcdfbdac5437b6d69831b3b2b4ba4541d6db7a
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment