Commit efb8c1e1 authored by Jerome Cambon's avatar Jerome Cambon
Browse files

Fix UID json properties

parent 6b3b1dde
{
"name": "@bonitasoft/uid-input",
"version": "0.1.3",
"version": "0.1.4",
"description": "An input with label",
"homepage": "https://github.com/bonitasoft/web-components/components/packages/widgets/uid-input#readme",
"license": "GPLv2",
......
......@@ -6,96 +6,131 @@
"description": "Input field, optionally with a label, where the user can enter information",
"order": "1",
"custom": true,
"legacy": false,
"icon": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"30\" height=\"30\" viewBox=\"0 0 30 30\"><path fill=\"#5b5b5b\" d=\"M9 9L9 3L12 3ZM15 3L21 3L21 6ZM21 21L21 27L18 27ZM15 27L9 27L9 24ZM3 15L3 9L6 9ZM21 9L27 9L27 12ZM27 15L27 21L24 21ZM9 21L3 21L3 18Z\"/><path fill=\"#c1c6ea\" d=\"M4 6a2,2 0 1,1 4,0a2,2 0 1,1 -4,0M22 6a2,2 0 1,1 4,0a2,2 0 1,1 -4,0M22 24a2,2 0 1,1 4,0a2,2 0 1,1 -4,0M4 24a2,2 0 1,1 4,0a2,2 0 1,1 -4,0\"/><path fill=\"#848dd6\" d=\"M9 9L15 9L15 10L12.5 15L9 15ZM21 9L21 15L20 15L15 12.5L15 9ZM21 21L15 21L15 20L17.5 15L21 15ZM9 21L9 15L10 15L15 17.5L15 21Z\"/></svg>",
"icon": "<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 20'><g><path fill='#fff' d='M1,19V1h48v18H1z M0,0v20h50V0H0z M6,18v-1H5v1H6z M8,17H7v1h1V17z M7,2v1h1V2H7z M5,3h1V2H5V3z M6,3v14h1 V3H6z '/></g></svg>",
"properties": [
{
"name": "id",
"type": "text",
"label": "Id",
"defaultValue": ""
},
{
"label": "Required",
"name": "required",
"help": "In the context of a form container, use $form.$invalid as a Boolean to check form validity in a widget property",
"type": "boolean",
"label": "Required",
"defaultValue": false
},
{
"label": "Value min length",
"name": "minLength",
"help": "In the context of a form container, use $form.$invalid as a Boolean to check form validity in a widget property",
"type": "integer",
"label": "Min length"
"defaultValue": "",
"constraints": {
"min": "0"
}
},
{
"label": "Value max length",
"name": "maxLength",
"help": "In the context of a form container, use $form.$invalid as a Boolean to check form validity in a widget property",
"type": "integer",
"label": "Max length"
"defaultValue": "",
"constraints": {
"min": "1"
}
},
{
"label": "Read-only",
"name": "readOnly",
"type": "boolean",
"label": "Read only",
"defaultValue": false
},
{
"label": "Label hidden",
"name": "labelHidden",
"type": "boolean",
"label": "Label hidden",
"bond": "constant",
"defaultValue": false
},
{
"label": "Label",
"name": "label",
"type": "text",
"label": "Label",
"defaultValue": ""
"defaultValue": "Default label",
"showFor": "properties.labelHidden.value === false",
"bond": "interpolation"
},
{
"name": "labelPosition",
"type": "text",
"label": "Label position",
"help": "Position of the label",
"defaultValue": "top"
"name": "labelPosition",
"type": "choice",
"choiceValues": [
"left",
"top"
],
"defaultValue": "top",
"bond": "constant",
"showFor": "properties.labelHidden.value === false"
},
{
"label": "Label width",
"name": "labelWidth",
"type": "integer",
"label": "Label width",
"defaultValue": 4
"defaultValue": 4,
"showFor": "properties.labelHidden.value === false",
"bond": "constant",
"constraints": {
"min": "1",
"max": "12"
}
},
{
"label": "Placeholder",
"name": "placeholder",
"help": "Short hint that describes the expected value",
"type": "text",
"label": "Placeholder",
"defaultValue": ""
"bond": "interpolation"
},
{
"label": "Value",
"name": "value",
"help": "Read-write binding, initialized or updated by users' input (bi-directional bond)",
"caption": "Any variable: <i>myData</i> or <i>myData.attribute</i>",
"type": "text",
"label": "Value",
"defaultValue": ""
"bond": "variable"
},
{
"name": "type",
"type": "text",
"label": "Type",
"name": "type",
"help": "In the context of a form container, use $form.$invalid as a Boolean to check form validity in a widget property",
"type": "choice",
"choiceValues": [
"text",
"number",
"email",
"password"
],
"bond": "constant",
"defaultValue": "text"
},
{
"label": "Min value",
"name": "min",
"help": "In the context of a form container, use $form.$invalid as a Boolean to check form validity in a widget property",
"type": "integer",
"label": "Min"
"showFor": "properties.type.value === 'number'"
},
{
"label": "Max value",
"name": "max",
"help": "In the context of a form container, use $form.$invalid as a Boolean to check form validity in a widget property",
"type": "integer",
"label": "Max"
"showFor": "properties.type.value === 'number'"
},
{
"label": "Step",
"name": "step",
"help": "Specifies the legal number intervals between values",
"type": "integer",
"label": "Step",
"showFor": "properties.type.value === 'number'",
"defaultValue": 1
}
],
"assets": []
}
\ No newline at end of file
}
{
"name": "@bonitasoft/uid-text",
"version": "0.1.3",
"version": "0.1.4",
"description": "A text component",
"homepage": "https://github.com/bonitasoft/web-components/components/packages/widgets/uid-text#readme",
"license": "GPLv2",
......
......@@ -5,57 +5,76 @@
"template": "@uidText.tpl.html",
"order": "1",
"custom": true,
"legacy": false,
"icon": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"30\" height=\"30\" viewBox=\"0 0 30 30\"><path fill=\"#e5bae8\" d=\"M12 3L15 6L12 9L9 6ZM21 6L18 9L15 6L18 3ZM18 27L15 24L18 21L21 24ZM9 24L12 21L15 24L12 27ZM6 9L9 12L6 15L3 12ZM27 12L24 15L21 12L24 9ZM24 21L21 18L24 15L27 18ZM3 18L6 15L9 18L6 21Z\"/><path fill=\"#a138a8\" d=\"M3 3L9 3L9 9ZM27 3L27 9L21 9ZM27 27L21 27L21 21ZM3 27L3 21L9 21Z\"/><path fill=\"#cb75d1\" d=\"M11 11L14 11L14 14L11 14ZM19 11L19 14L16 14L16 11ZM19 19L16 19L16 16L19 16ZM11 19L11 16L14 16L14 19Z\"/></svg>",
"properties": [
"icon" : "<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 20'><g><path fill='#fff' d='M8.2,20h15v-1h-15V20z M8.2,17h31v-1h-31V17z M8.2,4h32V3h-32V4z M8.2,14h34v-1h-34V14z M8.2,7h30V6h-30V7z M8.2,1h35V0h-35V1z'/></g></svg>",
"properties" : [
{
"name": "id",
"type": "text",
"label": "Id",
"defaultValue": ""
"label" : "Label hidden",
"name" : "labelHidden",
"type" : "boolean",
"defaultValue" : true,
"bond" : "constant"
},
{
"name": "labelHidden",
"type": "boolean",
"label": "Label hidden",
"defaultValue": false
"label" : "Label",
"name" : "label",
"showFor" : "properties.labelHidden.value === false",
"type" : "text",
"defaultValue" : "Default label",
"bond" : "interpolation"
},
{
"name": "label",
"type": "text",
"label": "Label",
"defaultValue": ""
"label" : "Label position",
"name" : "labelPosition",
"showFor" : "properties.labelHidden.value === false",
"type" : "choice",
"defaultValue" : "top",
"choiceValues" : [
"left",
"top"
],
"bond" : "constant"
},
{
"name": "labelPosition",
"type": "text",
"label": "Label position",
"defaultValue": "top"
"label" : "Label width",
"name" : "labelWidth",
"showFor" : "properties.labelHidden.value === false",
"type" : "integer",
"defaultValue" : 4,
"bond" : "constant",
"constraints" : {
"min" : "1",
"max" : "12"
}
},
{
"name": "labelWidth",
"type": "integer",
"label": "Label width",
"defaultValue": 4
"label" : "Interpret HTML",
"name" : "allowHTML",
"help" : "If you choose 'no', HTML code will be escaped instead of being interpreted",
"type" : "boolean",
"defaultValue" : true,
"bond" : "constant"
},
{
"name": "text",
"type": "text",
"label": "Text",
"defaultValue": ""
"label" : "Text",
"name" : "text",
"caption" : "Use basic html tags (if allowed), <span ng-non-bindable>{{dataVariable}}</span> to access data, and <a href=\"javascript:void(0);\" open-help=\"filters\" editor-mode=\"page\">filters</a> to format it (e.g. <span ng-non-bindable>{{dateVariable|uiDate}}</span>)",
"type" : "html",
"defaultValue" : "Neque porro quisquam est qui dolorem ipsum quia dolor sit amet,<br/>consectetur,<br/>adipisci velit...",
"bond" : "interpolation"
},
{
"name": "allowHTML",
"type": "boolean",
"label": "Allow html",
"defaultValue": false
},
{
"name": "alignment",
"type": "text",
"label": "Alignment",
"defaultValue": "left"
"label" : "Alignment",
"name" : "alignment",
"showFor" : "properties.labelHidden.value === true",
"type" : "choice",
"defaultValue" : "left",
"choiceValues" : [
"left",
"center",
"right"
],
"bond" : "constant"
}
],
"assets": []
}
\ No newline at end of file
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment