WIP: studio

This commit is contained in:
Pieter Vander Vennet 2023-07-08 01:03:58 +02:00
parent b58ba665b5
commit 9260278a7f
21 changed files with 1225 additions and 713 deletions

View file

@ -605,11 +605,11 @@
] ]
}, },
"freeform": { "freeform": {
"description": "Allow freeform text input from the user", "description": "question: Should a freeform text field be shown?\nAllow freeform text input from the user\nifunset: Do not add a freeform text field\ntypes: Use a freeform value",
"type": "object", "type": "object",
"properties": { "properties": {
"key": { "key": {
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown", "description": "What attribute should be filled out\nIf this key is present in the feature, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown",
"type": "string" "type": "string"
} }
}, },
@ -1136,7 +1136,7 @@
"type": "string" "type": "string"
}, },
"type": { "type": {
"description": "The type of the text-field, e.g. 'string', 'nat', 'float', 'date',...\nSee Docs/SpecialInputElements.md and UI/Input/ValidatedTextField.ts for supported values", "description": "question: What is the input type?\nThe type of the text-field, e.g. 'string', 'nat', 'float', 'date',...\nSee Docs/SpecialInputElements.md and UI/Input/ValidatedTextField.ts for supported values",
"type": "string" "type": "string"
}, },
"placeholder": { "placeholder": {
@ -1308,7 +1308,7 @@
"type": "string" "type": "string"
}, },
"type": { "type": {
"description": "The type of the text-field, e.g. 'string', 'nat', 'float', 'date',...\nSee Docs/SpecialInputElements.md and UI/Input/ValidatedTextField.ts for supported values", "description": "question: What is the input type?\nThe type of the text-field, e.g. 'string', 'nat', 'float', 'date',...\nSee Docs/SpecialInputElements.md and UI/Input/ValidatedTextField.ts for supported values",
"type": "string" "type": "string"
}, },
"placeholder": { "placeholder": {

View file

@ -600,11 +600,11 @@ export default {
] ]
}, },
"freeform": { "freeform": {
"description": "Allow freeform text input from the user", "description": "question: Should a freeform text field be shown?\nAllow freeform text input from the user\nifunset: Do not add a freeform text field\ntypes: Use a freeform value",
"type": "object", "type": "object",
"properties": { "properties": {
"key": { "key": {
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown", "description": "What attribute should be filled out\nIf this key is present in the feature, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown",
"type": "string" "type": "string"
} }
}, },
@ -1124,7 +1124,7 @@ export default {
"type": "string" "type": "string"
}, },
"type": { "type": {
"description": "The type of the text-field, e.g. 'string', 'nat', 'float', 'date',...\nSee Docs/SpecialInputElements.md and UI/Input/ValidatedTextField.ts for supported values", "description": "question: What is the input type?\nThe type of the text-field, e.g. 'string', 'nat', 'float', 'date',...\nSee Docs/SpecialInputElements.md and UI/Input/ValidatedTextField.ts for supported values",
"type": "string" "type": "string"
}, },
"placeholder": { "placeholder": {
@ -1295,7 +1295,7 @@ export default {
"type": "string" "type": "string"
}, },
"type": { "type": {
"description": "The type of the text-field, e.g. 'string', 'nat', 'float', 'date',...\nSee Docs/SpecialInputElements.md and UI/Input/ValidatedTextField.ts for supported values", "description": "question: What is the input type?\nThe type of the text-field, e.g. 'string', 'nat', 'float', 'date',...\nSee Docs/SpecialInputElements.md and UI/Input/ValidatedTextField.ts for supported values",
"type": "string" "type": "string"
}, },
"placeholder": { "placeholder": {

View file

@ -502,11 +502,11 @@
] ]
}, },
"freeform": { "freeform": {
"description": "Allow freeform text input from the user", "description": "question: Should a freeform text field be shown?\nAllow freeform text input from the user\nifunset: Do not add a freeform text field\ntypes: Use a freeform value",
"type": "object", "type": "object",
"properties": { "properties": {
"key": { "key": {
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown", "description": "What attribute should be filled out\nIf this key is present in the feature, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown",
"type": "string" "type": "string"
} }
}, },
@ -1033,7 +1033,7 @@
"type": "string" "type": "string"
}, },
"type": { "type": {
"description": "The type of the text-field, e.g. 'string', 'nat', 'float', 'date',...\nSee Docs/SpecialInputElements.md and UI/Input/ValidatedTextField.ts for supported values", "description": "question: What is the input type?\nThe type of the text-field, e.g. 'string', 'nat', 'float', 'date',...\nSee Docs/SpecialInputElements.md and UI/Input/ValidatedTextField.ts for supported values",
"type": "string" "type": "string"
}, },
"placeholder": { "placeholder": {
@ -1205,7 +1205,7 @@
"type": "string" "type": "string"
}, },
"type": { "type": {
"description": "The type of the text-field, e.g. 'string', 'nat', 'float', 'date',...\nSee Docs/SpecialInputElements.md and UI/Input/ValidatedTextField.ts for supported values", "description": "question: What is the input type?\nThe type of the text-field, e.g. 'string', 'nat', 'float', 'date',...\nSee Docs/SpecialInputElements.md and UI/Input/ValidatedTextField.ts for supported values",
"type": "string" "type": "string"
}, },
"placeholder": { "placeholder": {

View file

@ -497,11 +497,11 @@ export default {
] ]
}, },
"freeform": { "freeform": {
"description": "Allow freeform text input from the user", "description": "question: Should a freeform text field be shown?\nAllow freeform text input from the user\nifunset: Do not add a freeform text field\ntypes: Use a freeform value",
"type": "object", "type": "object",
"properties": { "properties": {
"key": { "key": {
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown", "description": "What attribute should be filled out\nIf this key is present in the feature, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown",
"type": "string" "type": "string"
} }
}, },
@ -1021,7 +1021,7 @@ export default {
"type": "string" "type": "string"
}, },
"type": { "type": {
"description": "The type of the text-field, e.g. 'string', 'nat', 'float', 'date',...\nSee Docs/SpecialInputElements.md and UI/Input/ValidatedTextField.ts for supported values", "description": "question: What is the input type?\nThe type of the text-field, e.g. 'string', 'nat', 'float', 'date',...\nSee Docs/SpecialInputElements.md and UI/Input/ValidatedTextField.ts for supported values",
"type": "string" "type": "string"
}, },
"placeholder": { "placeholder": {
@ -1192,7 +1192,7 @@ export default {
"type": "string" "type": "string"
}, },
"type": { "type": {
"description": "The type of the text-field, e.g. 'string', 'nat', 'float', 'date',...\nSee Docs/SpecialInputElements.md and UI/Input/ValidatedTextField.ts for supported values", "description": "question: What is the input type?\nThe type of the text-field, e.g. 'string', 'nat', 'float', 'date',...\nSee Docs/SpecialInputElements.md and UI/Input/ValidatedTextField.ts for supported values",
"type": "string" "type": "string"
}, },
"placeholder": { "placeholder": {

View file

@ -270,11 +270,11 @@
] ]
}, },
"freeform": { "freeform": {
"description": "Allow freeform text input from the user", "description": "question: Should a freeform text field be shown?\nAllow freeform text input from the user\nifunset: Do not add a freeform text field\ntypes: Use a freeform value",
"type": "object", "type": "object",
"properties": { "properties": {
"key": { "key": {
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown", "description": "What attribute should be filled out\nIf this key is present in the feature, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown",
"type": "string" "type": "string"
} }
}, },

View file

@ -265,11 +265,11 @@ export default {
] ]
}, },
"freeform": { "freeform": {
"description": "Allow freeform text input from the user", "description": "question: Should a freeform text field be shown?\nAllow freeform text input from the user\nifunset: Do not add a freeform text field\ntypes: Use a freeform value",
"type": "object", "type": "object",
"properties": { "properties": {
"key": { "key": {
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown", "description": "What attribute should be filled out\nIf this key is present in the feature, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown",
"type": "string" "type": "string"
} }
}, },

View file

@ -303,11 +303,11 @@
] ]
}, },
"freeform": { "freeform": {
"description": "Allow freeform text input from the user", "description": "question: Should a freeform text field be shown?\nAllow freeform text input from the user\nifunset: Do not add a freeform text field\ntypes: Use a freeform value",
"type": "object", "type": "object",
"properties": { "properties": {
"key": { "key": {
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown", "description": "What attribute should be filled out\nIf this key is present in the feature, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown",
"type": "string" "type": "string"
} }
}, },

View file

@ -298,11 +298,11 @@ export default {
] ]
}, },
"freeform": { "freeform": {
"description": "Allow freeform text input from the user", "description": "question: Should a freeform text field be shown?\nAllow freeform text input from the user\nifunset: Do not add a freeform text field\ntypes: Use a freeform value",
"type": "object", "type": "object",
"properties": { "properties": {
"key": { "key": {
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown", "description": "What attribute should be filled out\nIf this key is present in the feature, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown",
"type": "string" "type": "string"
} }
}, },

View file

@ -368,11 +368,11 @@
] ]
}, },
"freeform": { "freeform": {
"description": "Allow freeform text input from the user", "description": "question: Should a freeform text field be shown?\nAllow freeform text input from the user\nifunset: Do not add a freeform text field\ntypes: Use a freeform value",
"type": "object", "type": "object",
"properties": { "properties": {
"key": { "key": {
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown", "description": "What attribute should be filled out\nIf this key is present in the feature, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown",
"type": "string" "type": "string"
} }
}, },

View file

@ -363,11 +363,11 @@ export default {
] ]
}, },
"freeform": { "freeform": {
"description": "Allow freeform text input from the user", "description": "question: Should a freeform text field be shown?\nAllow freeform text input from the user\nifunset: Do not add a freeform text field\ntypes: Use a freeform value",
"type": "object", "type": "object",
"properties": { "properties": {
"key": { "key": {
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown", "description": "What attribute should be filled out\nIf this key is present in the feature, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown",
"type": "string" "type": "string"
} }
}, },

View file

@ -25,7 +25,7 @@
"type": "string" "type": "string"
}, },
"type": { "type": {
"description": "The type of the text-field, e.g. 'string', 'nat', 'float', 'date',...\nSee Docs/SpecialInputElements.md and UI/Input/ValidatedTextField.ts for supported values", "description": "question: What is the input type?\nThe type of the text-field, e.g. 'string', 'nat', 'float', 'date',...\nSee Docs/SpecialInputElements.md and UI/Input/ValidatedTextField.ts for supported values",
"type": "string" "type": "string"
}, },
"placeholder": { "placeholder": {
@ -367,11 +367,11 @@
] ]
}, },
"freeform": { "freeform": {
"description": "Allow freeform text input from the user", "description": "question: Should a freeform text field be shown?\nAllow freeform text input from the user\nifunset: Do not add a freeform text field\ntypes: Use a freeform value",
"type": "object", "type": "object",
"properties": { "properties": {
"key": { "key": {
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown", "description": "What attribute should be filled out\nIf this key is present in the feature, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown",
"type": "string" "type": "string"
} }
}, },

View file

@ -25,7 +25,7 @@ export default {
"type": "string" "type": "string"
}, },
"type": { "type": {
"description": "The type of the text-field, e.g. 'string', 'nat', 'float', 'date',...\nSee Docs/SpecialInputElements.md and UI/Input/ValidatedTextField.ts for supported values", "description": "question: What is the input type?\nThe type of the text-field, e.g. 'string', 'nat', 'float', 'date',...\nSee Docs/SpecialInputElements.md and UI/Input/ValidatedTextField.ts for supported values",
"type": "string" "type": "string"
}, },
"placeholder": { "placeholder": {
@ -362,11 +362,11 @@ export default {
] ]
}, },
"freeform": { "freeform": {
"description": "Allow freeform text input from the user", "description": "question: Should a freeform text field be shown?\nAllow freeform text input from the user\nifunset: Do not add a freeform text field\ntypes: Use a freeform value",
"type": "object", "type": "object",
"properties": { "properties": {
"key": { "key": {
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown", "description": "What attribute should be filled out\nIf this key is present in the feature, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown",
"type": "string" "type": "string"
} }
}, },

View file

@ -230,11 +230,11 @@
] ]
}, },
"freeform": { "freeform": {
"description": "Allow freeform text input from the user", "description": "question: Should a freeform text field be shown?\nAllow freeform text input from the user\nifunset: Do not add a freeform text field\ntypes: Use a freeform value",
"type": "object", "type": "object",
"properties": { "properties": {
"key": { "key": {
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown", "description": "What attribute should be filled out\nIf this key is present in the feature, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown",
"type": "string" "type": "string"
} }
}, },

View file

@ -225,11 +225,11 @@ export default {
] ]
}, },
"freeform": { "freeform": {
"description": "Allow freeform text input from the user", "description": "question: Should a freeform text field be shown?\nAllow freeform text input from the user\nifunset: Do not add a freeform text field\ntypes: Use a freeform value",
"type": "object", "type": "object",
"properties": { "properties": {
"key": { "key": {
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown", "description": "What attribute should be filled out\nIf this key is present in the feature, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown",
"type": "string" "type": "string"
} }
}, },

View file

@ -68,11 +68,11 @@
] ]
}, },
"freeform": { "freeform": {
"description": "Allow freeform text input from the user", "description": "question: Should a freeform text field be shown?\nAllow freeform text input from the user\nifunset: Do not add a freeform text field\ntypes: Use a freeform value",
"type": "object", "type": "object",
"properties": { "properties": {
"key": { "key": {
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown", "description": "What attribute should be filled out\nIf this key is present in the feature, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown",
"type": "string" "type": "string"
} }
}, },

View file

@ -68,11 +68,11 @@ export default {
] ]
}, },
"freeform": { "freeform": {
"description": "Allow freeform text input from the user", "description": "question: Should a freeform text field be shown?\nAllow freeform text input from the user\nifunset: Do not add a freeform text field\ntypes: Use a freeform value",
"type": "object", "type": "object",
"properties": { "properties": {
"key": { "key": {
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown", "description": "What attribute should be filled out\nIf this key is present in the feature, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown",
"type": "string" "type": "string"
} }
}, },

View file

@ -181,6 +181,7 @@ export interface QuestionableTagRenderingConfigJson extends TagRenderingConfigJs
key: string key: string
/** /**
* question: What is the input type?
* The type of the text-field, e.g. 'string', 'nat', 'float', 'date',... * The type of the text-field, e.g. 'string', 'nat', 'float', 'date',...
* See Docs/SpecialInputElements.md and UI/Input/ValidatedTextField.ts for supported values * See Docs/SpecialInputElements.md and UI/Input/ValidatedTextField.ts for supported values
*/ */

View file

@ -78,11 +78,15 @@ export interface TagRenderingConfigJson {
metacondition?: TagConfigJson metacondition?: TagConfigJson
/** /**
* question: Should a freeform text field be shown?
* Allow freeform text input from the user * Allow freeform text input from the user
* ifunset: Do not add a freeform text field
* types: Use a freeform value
*/ */
freeform?: { freeform?: {
/** /**
* If this key is present, then 'render' is used to display the value. * What attribute should be filled out
* If this key is present in the feature, then 'render' is used to display the value.
* If this is undefined, the rendering is _always_ shown * If this is undefined, the rendering is _always_ shown
*/ */
key: string key: string

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -230,7 +230,10 @@
"freeform" "freeform"
], ],
"required": false, "required": false,
"hints": {}, "hints": {
"question": "Should a freeform text field be shown?",
"ifunset": "Do not add a freeform text field"
},
"type": "object", "type": "object",
"description": "Allow freeform text input from the user" "description": "Allow freeform text input from the user"
}, },
@ -242,7 +245,7 @@
"required": true, "required": true,
"hints": {}, "hints": {},
"type": "string", "type": "string",
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown" "description": "What attribute should be filled out\nIf this key is present in the feature, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
}, },
{ {
"path": [ "path": [