2019-08-19 22:18:23 +02:00
|
|
|
{
|
2019-09-11 06:18:00 +02:00
|
|
|
"_lib": "./dist/index.js",
|
2019-08-19 22:18:23 +02:00
|
|
|
"button" : {
|
|
|
|
"importPath": "button",
|
|
|
|
"name": "Button",
|
|
|
|
"description": "an html <button />",
|
|
|
|
"props": {
|
|
|
|
"contentText": { "type": "string", "default": "Button" },
|
|
|
|
"contentComponent": "component",
|
2019-08-27 08:32:56 +02:00
|
|
|
"className": {"type": "string", "default": "default"},
|
2019-09-20 09:01:35 +02:00
|
|
|
"disabled": "bool",
|
|
|
|
"onClick": "event"
|
2019-08-19 22:18:23 +02:00
|
|
|
},
|
|
|
|
"tags": ["button"]
|
2019-08-27 08:32:56 +02:00
|
|
|
},
|
|
|
|
"login" : {
|
2019-09-19 05:35:40 +02:00
|
|
|
"importPath": "Login",
|
2019-08-27 08:32:56 +02:00
|
|
|
"name": "Login Control",
|
|
|
|
"desciption": "A control that accepts username, password an also handles password resets",
|
|
|
|
"props" : {
|
|
|
|
"logo": "asset",
|
|
|
|
"loginRedirect": "string",
|
|
|
|
"usernameLabel": {"type":"string", "default": "Username"},
|
|
|
|
"passwordLabel": {"type":"string", "default": "Password"},
|
2019-09-19 05:35:40 +02:00
|
|
|
"loginButtonLabel": {"type":"string", "default": "Login"},
|
2019-09-29 07:40:06 +02:00
|
|
|
"buttonClass": "string",
|
|
|
|
"inputClass": "string"
|
2019-08-27 08:32:56 +02:00
|
|
|
},
|
|
|
|
"tags": ["login", "credentials", "password", "logon"]
|
|
|
|
},
|
|
|
|
"form" : {
|
2019-09-19 05:35:40 +02:00
|
|
|
"importPath": "Form",
|
2019-08-27 08:32:56 +02:00
|
|
|
"name": "Form",
|
2019-09-19 05:35:40 +02:00
|
|
|
"desciption": "A form - allgned fields with labels",
|
2019-08-27 08:32:56 +02:00
|
|
|
"props" : {
|
|
|
|
"containerClass": "string",
|
|
|
|
"formControls": {
|
|
|
|
"type":"array",
|
|
|
|
"elementDefinition": {
|
2019-09-19 05:35:40 +02:00
|
|
|
"label": "string",
|
2019-08-27 08:32:56 +02:00
|
|
|
"control":"component"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": ["form"]
|
|
|
|
},
|
|
|
|
"textbox" : {
|
2019-09-19 05:35:40 +02:00
|
|
|
"importPath": "Textbox",
|
2019-08-27 08:32:56 +02:00
|
|
|
"name": "Textbox",
|
|
|
|
"desciption": "An input type=text or password",
|
|
|
|
"props" : {
|
|
|
|
"value": "string",
|
|
|
|
"hideValue": "boolean",
|
|
|
|
"className": {"type": "string", "default": "default"}
|
|
|
|
},
|
|
|
|
"tags": ["form"]
|
2019-09-03 11:42:19 +02:00
|
|
|
},
|
|
|
|
"stackpanel": {
|
2019-09-19 05:35:40 +02:00
|
|
|
"importPath": "StackPanel",
|
2019-09-03 11:42:19 +02:00
|
|
|
"name": "StackPanel",
|
|
|
|
"desciption": "Layout elements in a stack, either horizontally or vertically",
|
|
|
|
"props" : {
|
|
|
|
"direction": {
|
|
|
|
"type": "options",
|
|
|
|
"options": ["horizontal", "vertical"],
|
|
|
|
"default":"horizontal"
|
|
|
|
},
|
|
|
|
"children": {
|
|
|
|
"type":"array",
|
|
|
|
"elementDefinition": {
|
|
|
|
"control":"component"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"width": {"type":"string","default":"auto"},
|
|
|
|
"height": {"type":"string","default":"auto"},
|
|
|
|
"containerClass":"string",
|
|
|
|
"itemContainerClass":"string"
|
|
|
|
},
|
|
|
|
"tags": ["div", "container", "layout", "panel"]
|
2019-09-19 05:35:40 +02:00
|
|
|
},
|
|
|
|
"grid": {
|
|
|
|
"importPath": "Grid",
|
|
|
|
"name": "Grid",
|
|
|
|
"desciption": "CSS Grid layout ",
|
|
|
|
"props" : {
|
|
|
|
"gridTemplateRows": "string",
|
|
|
|
"gridTemplateColumns": "string",
|
|
|
|
"children": {
|
|
|
|
"type":"array",
|
|
|
|
"elementDefinition": {
|
|
|
|
"control":"component",
|
|
|
|
"gridColumn":"string",
|
|
|
|
"gridRow":"string",
|
|
|
|
"gridColumnStart":"string",
|
|
|
|
"gridColumnEnd":"string",
|
|
|
|
"gridRowStart":"string",
|
|
|
|
"gridRowEnd":"string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"width": {"type":"string","default":"auto"},
|
|
|
|
"height": {"type":"string","default":"auto"},
|
|
|
|
"containerClass":"string",
|
|
|
|
"itemContainerClass":"string"
|
|
|
|
},
|
|
|
|
"tags": ["div", "container", "layout", "panel", "grid"]
|
|
|
|
},
|
|
|
|
"text": {
|
|
|
|
"importPath": "Text",
|
|
|
|
"name": "Text",
|
2019-09-26 06:40:58 +02:00
|
|
|
"desciption": "stylable block of text",
|
2019-09-19 05:35:40 +02:00
|
|
|
"props" : {
|
|
|
|
"value": "string",
|
|
|
|
"containerClass": "string",
|
2019-09-26 06:40:58 +02:00
|
|
|
"font": "string",
|
|
|
|
"color": "string",
|
|
|
|
"textAlign": {
|
|
|
|
"type": "options",
|
|
|
|
"default":"inline",
|
|
|
|
"options": [
|
|
|
|
"left", "center", "right"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"verticalAlign": {
|
|
|
|
"type": "options",
|
|
|
|
"default":"inline",
|
|
|
|
"options": [
|
|
|
|
"top", "middle", "bottom"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"display": {
|
|
|
|
"type": "options",
|
|
|
|
"default":"inline",
|
|
|
|
"options": [
|
|
|
|
"inline", "block", "inline-block"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": ["div", "container"]
|
|
|
|
},
|
|
|
|
"panel": {
|
|
|
|
"importPath": "Panel",
|
|
|
|
"name": "Panel",
|
|
|
|
"desciption": "A stylable div with a component inside",
|
|
|
|
"props" : {
|
|
|
|
"text": "string",
|
|
|
|
"component": "component",
|
|
|
|
"containerClass": "string",
|
2019-09-19 05:35:40 +02:00
|
|
|
"background": "string",
|
|
|
|
"border": "string",
|
2019-09-26 06:40:58 +02:00
|
|
|
"borderRadius":"string",
|
2019-09-19 05:35:40 +02:00
|
|
|
"font": "string",
|
|
|
|
"color": "string",
|
|
|
|
"padding": "string",
|
|
|
|
"display": {
|
|
|
|
"type": "options",
|
|
|
|
"default":"inline",
|
|
|
|
"options": [
|
|
|
|
"inline", "block", "inline-block"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": ["div", "container"]
|
2019-09-26 06:40:58 +02:00
|
|
|
},
|
|
|
|
"nav": {
|
|
|
|
"importPath": "Nav",
|
|
|
|
"name": "Nav",
|
|
|
|
"desciption": "A nav - a side bar of buttons that control the currently active component",
|
|
|
|
"props" : {
|
|
|
|
"navBarBackground": {"type" :"string", "default":"silver"},
|
|
|
|
"navBarBorder": "string",
|
|
|
|
"navBarColor": {"type" :"string", "default":"black"},
|
|
|
|
"selectedItemBackground": {"type" :"string", "default":"white"},
|
|
|
|
"selectedItemColor": {"type" :"string", "default":"black"},
|
|
|
|
"selectedItemBorder": "string",
|
|
|
|
"itemHoverBackground": {"type" :"string", "default":"gainsboro"},
|
|
|
|
"itemHoverColor": {"type" :"string", "default":"black"},
|
|
|
|
"items": {
|
|
|
|
"type": "array",
|
|
|
|
"elementDefinition" : {
|
|
|
|
"title": "string",
|
|
|
|
"component": "component"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
"tags": ["nav", "navigation", "sidebar"]
|
2019-09-27 18:03:31 +02:00
|
|
|
},
|
|
|
|
"table": {
|
|
|
|
"importPath": "Table",
|
|
|
|
"name": "Table",
|
|
|
|
"desciption": "An HTML table",
|
|
|
|
"props" : {
|
|
|
|
"data": "state",
|
|
|
|
"columns": {
|
|
|
|
"type": "array",
|
|
|
|
"elementDefinition" : {
|
|
|
|
"title": "string",
|
|
|
|
"value": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"onRowClick":"event",
|
|
|
|
"tableClass": {"type":"string", "default":"table-default"},
|
|
|
|
"theadClass": {"type":"string", "default":"thead-default"},
|
|
|
|
"tbodyClass": {"type":"string", "default":"tbody-default"},
|
|
|
|
"trClass": {"type":"string", "default":"tr-default"},
|
|
|
|
"thClass": {"type":"string", "default":"th-default"}
|
|
|
|
},
|
|
|
|
"tags": ["table"]
|
2019-08-19 22:18:23 +02:00
|
|
|
}
|
|
|
|
}
|