2019-08-20 08:18:23 +12:00
|
|
|
{
|
2019-09-11 16:18:00 +12:00
|
|
|
"_lib": "./dist/index.js",
|
2019-10-07 18:03:41 +13:00
|
|
|
"_generators": {
|
|
|
|
"_lib": "./dist/generators.js",
|
|
|
|
"app": {
|
|
|
|
"name": "App",
|
|
|
|
"description": "Generate app based on your backend"
|
|
|
|
},
|
|
|
|
"forms": {
|
|
|
|
"name": "Forms",
|
|
|
|
"description": "Generate forms, based on your records"
|
|
|
|
},
|
|
|
|
"buttons": {
|
|
|
|
"name": "Buttons",
|
|
|
|
"description": "Generate some styled buttons"
|
|
|
|
},
|
|
|
|
"headers": {
|
|
|
|
"name": "Headers",
|
|
|
|
"description": "Generate some styled headings"
|
|
|
|
},
|
|
|
|
"nav": {
|
|
|
|
"name": "Nav bar",
|
|
|
|
"description": "Generate a nav bar, based n your root records"
|
|
|
|
},
|
|
|
|
"indexTables": {
|
|
|
|
"name": "Nav bar",
|
|
|
|
"description": "Generate a table based on an index"
|
|
|
|
}
|
|
|
|
},
|
2019-08-20 08:18:23 +12:00
|
|
|
"button" : {
|
|
|
|
"importPath": "button",
|
|
|
|
"name": "Button",
|
|
|
|
"description": "an html <button />",
|
|
|
|
"props": {
|
|
|
|
"contentText": { "type": "string", "default": "Button" },
|
|
|
|
"contentComponent": "component",
|
2019-08-27 18:32:56 +12:00
|
|
|
"className": {"type": "string", "default": "default"},
|
2019-09-20 19:01:35 +12:00
|
|
|
"disabled": "bool",
|
2019-10-07 18:03:41 +13:00
|
|
|
"onClick": "event",
|
|
|
|
"background": "string",
|
|
|
|
"color": "string",
|
|
|
|
"border": "string",
|
|
|
|
"padding": "string",
|
|
|
|
"hoverColor": "string",
|
|
|
|
"hoverBackground": "string",
|
|
|
|
"hoverBorder": "string"
|
2019-08-20 08:18:23 +12:00
|
|
|
},
|
|
|
|
"tags": ["button"]
|
2019-08-27 18:32:56 +12:00
|
|
|
},
|
|
|
|
"login" : {
|
2019-09-19 15:35:40 +12:00
|
|
|
"importPath": "Login",
|
2019-08-27 18:32:56 +12:00
|
|
|
"name": "Login Control",
|
2019-10-07 18:03:41 +13:00
|
|
|
"description": "A control that accepts username, password an also handles password resets",
|
2019-08-27 18:32:56 +12:00
|
|
|
"props" : {
|
|
|
|
"logo": "asset",
|
|
|
|
"loginRedirect": "string",
|
|
|
|
"usernameLabel": {"type":"string", "default": "Username"},
|
|
|
|
"passwordLabel": {"type":"string", "default": "Password"},
|
2019-09-19 15:35:40 +12:00
|
|
|
"loginButtonLabel": {"type":"string", "default": "Login"},
|
2019-09-29 18:40:06 +13:00
|
|
|
"buttonClass": "string",
|
|
|
|
"inputClass": "string"
|
2019-08-27 18:32:56 +12:00
|
|
|
},
|
|
|
|
"tags": ["login", "credentials", "password", "logon"]
|
|
|
|
},
|
|
|
|
"form" : {
|
2019-09-19 15:35:40 +12:00
|
|
|
"importPath": "Form",
|
2019-08-27 18:32:56 +12:00
|
|
|
"name": "Form",
|
2019-10-07 18:03:41 +13:00
|
|
|
"description": "A form - allgned fields with labels",
|
2019-08-27 18:32:56 +12:00
|
|
|
"props" : {
|
|
|
|
"containerClass": "string",
|
|
|
|
"formControls": {
|
|
|
|
"type":"array",
|
|
|
|
"elementDefinition": {
|
2019-09-19 15:35:40 +12:00
|
|
|
"label": "string",
|
2019-08-27 18:32:56 +12:00
|
|
|
"control":"component"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": ["form"]
|
|
|
|
},
|
|
|
|
"textbox" : {
|
2019-09-19 15:35:40 +12:00
|
|
|
"importPath": "Textbox",
|
2019-08-27 18:32:56 +12:00
|
|
|
"name": "Textbox",
|
2019-10-07 18:03:41 +13:00
|
|
|
"description": "An input type=text or password",
|
2019-08-27 18:32:56 +12:00
|
|
|
"props" : {
|
|
|
|
"value": "string",
|
2019-10-07 18:03:41 +13:00
|
|
|
"hideValue": "bool",
|
2019-08-27 18:32:56 +12:00
|
|
|
"className": {"type": "string", "default": "default"}
|
|
|
|
},
|
|
|
|
"tags": ["form"]
|
2019-09-03 21:42:19 +12:00
|
|
|
},
|
2019-10-16 17:38:45 +13:00
|
|
|
"input" : {
|
|
|
|
"importPath": "Input",
|
|
|
|
"name": "Input",
|
|
|
|
"description": "An HTML input",
|
|
|
|
"props" : {
|
|
|
|
"value": "string",
|
|
|
|
"type": {
|
|
|
|
"type":"options",
|
|
|
|
"options":[
|
|
|
|
"text", "password", "checkbox", "color",
|
|
|
|
"date", "datetime-local", "email",
|
|
|
|
"file", "hidden", "image", "month", "number",
|
|
|
|
"radio", "range", "reset", "search", "submit",
|
|
|
|
"tel", "time", "week"],
|
|
|
|
"default":"text"
|
|
|
|
},
|
|
|
|
"className": {"type": "string", "default": "default"}
|
|
|
|
},
|
|
|
|
"tags": ["form"]
|
|
|
|
},
|
|
|
|
"select" : {
|
|
|
|
"importPath": "Input",
|
|
|
|
"name": "Input",
|
|
|
|
"description": "An HTML input",
|
|
|
|
"props" : {
|
|
|
|
"value": "string",
|
|
|
|
"options": {
|
|
|
|
"type" : "array",
|
|
|
|
"elementDefinition" : {
|
|
|
|
"id":"string",
|
|
|
|
"value":"string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"className": {"type": "string", "default": "default"}
|
|
|
|
},
|
|
|
|
"tags": ["form"]
|
|
|
|
},
|
2019-09-03 21:42:19 +12:00
|
|
|
"stackpanel": {
|
2019-09-19 15:35:40 +12:00
|
|
|
"importPath": "StackPanel",
|
2019-09-03 21:42:19 +12:00
|
|
|
"name": "StackPanel",
|
2019-10-07 18:03:41 +13:00
|
|
|
"description": "Layout elements in a stack, either horizontally or vertically",
|
2019-09-03 21:42:19 +12:00
|
|
|
"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",
|
2019-10-01 17:57:45 +13:00
|
|
|
"itemContainerClass":"string",
|
|
|
|
"data": "state",
|
2019-10-03 18:12:13 +13:00
|
|
|
"dataItemComponent": "component",
|
|
|
|
"onLoad": "event"
|
2019-09-03 21:42:19 +12:00
|
|
|
},
|
|
|
|
"tags": ["div", "container", "layout", "panel"]
|
2019-09-19 15:35:40 +12:00
|
|
|
},
|
|
|
|
"grid": {
|
|
|
|
"importPath": "Grid",
|
|
|
|
"name": "Grid",
|
2019-10-07 18:03:41 +13:00
|
|
|
"description": "CSS Grid layout ",
|
2019-09-19 15:35:40 +12:00
|
|
|
"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-10-07 18:03:41 +13:00
|
|
|
"description": "stylable block of text",
|
2019-09-19 15:35:40 +12:00
|
|
|
"props" : {
|
|
|
|
"value": "string",
|
|
|
|
"containerClass": "string",
|
2019-09-26 16:40:58 +12: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",
|
2019-10-07 18:03:41 +13:00
|
|
|
"description": "A stylable div with a component inside",
|
2019-09-26 16:40:58 +12:00
|
|
|
"props" : {
|
|
|
|
"text": "string",
|
|
|
|
"component": "component",
|
|
|
|
"containerClass": "string",
|
2019-09-19 15:35:40 +12:00
|
|
|
"background": "string",
|
|
|
|
"border": "string",
|
2019-09-26 16:40:58 +12:00
|
|
|
"borderRadius":"string",
|
2019-09-19 15:35:40 +12:00
|
|
|
"font": "string",
|
|
|
|
"color": "string",
|
|
|
|
"padding": "string",
|
2019-10-03 18:12:13 +13:00
|
|
|
"margin": "string",
|
|
|
|
"hoverColor": "string",
|
|
|
|
"hoverBackground": "string",
|
|
|
|
"height":"string",
|
|
|
|
"width":"string",
|
|
|
|
"onClick": "event",
|
2019-09-19 15:35:40 +12:00
|
|
|
"display": {
|
|
|
|
"type": "options",
|
|
|
|
"default":"inline",
|
|
|
|
"options": [
|
|
|
|
"inline", "block", "inline-block"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": ["div", "container"]
|
2019-09-26 16:40:58 +12:00
|
|
|
},
|
|
|
|
"nav": {
|
|
|
|
"importPath": "Nav",
|
|
|
|
"name": "Nav",
|
2019-10-07 18:03:41 +13:00
|
|
|
"description": "A nav - a side bar of buttons that control the currently active component",
|
2019-09-26 16:40:58 +12:00
|
|
|
"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"
|
|
|
|
}
|
2019-10-03 18:12:13 +13:00
|
|
|
},
|
|
|
|
"selectedItem":"string",
|
|
|
|
"hideNavBar":"bool"
|
2019-09-26 16:40:58 +12:00
|
|
|
|
|
|
|
},
|
|
|
|
"tags": ["nav", "navigation", "sidebar"]
|
2019-09-28 04:03:31 +12:00
|
|
|
},
|
|
|
|
"table": {
|
|
|
|
"importPath": "Table",
|
|
|
|
"name": "Table",
|
2019-10-07 18:03:41 +13:00
|
|
|
"description": "An HTML table",
|
2019-09-28 04:03:31 +12:00
|
|
|
"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-10-14 20:32:20 +13:00
|
|
|
},
|
|
|
|
"div": {
|
|
|
|
"importPath": "Div",
|
|
|
|
"name": "Div",
|
|
|
|
"description": "An HTML div tag",
|
|
|
|
"props" : {
|
|
|
|
"children": {
|
|
|
|
"type":"array",
|
|
|
|
"elementDefinition": {
|
|
|
|
"component":"component"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"className":"string",
|
|
|
|
"data": "state",
|
|
|
|
"dataItemComponent": "component",
|
|
|
|
"onLoad": "event"
|
|
|
|
},
|
|
|
|
"tags": ["div", "container", "layout"]
|
2019-10-16 17:38:45 +13:00
|
|
|
},
|
|
|
|
"h1": {
|
|
|
|
"importPath": "h1",
|
|
|
|
"name": "H1",
|
|
|
|
"description": "An HTML H1 tag",
|
|
|
|
"props" : {
|
|
|
|
"text": "string",
|
|
|
|
"className":"string"
|
|
|
|
},
|
|
|
|
"tags": []
|
|
|
|
},
|
|
|
|
"h2": {
|
|
|
|
"importPath": "h2",
|
|
|
|
"name": "H2",
|
|
|
|
"description": "An HTML H2 tag",
|
|
|
|
"props" : {
|
|
|
|
"text": "string",
|
|
|
|
"className":"string"
|
|
|
|
},
|
|
|
|
"tags": []
|
|
|
|
},
|
|
|
|
"h3": {
|
|
|
|
"importPath": "h3",
|
|
|
|
"name": "H3",
|
|
|
|
"description": "An HTML H3 tag",
|
|
|
|
"props" : {
|
|
|
|
"text": "string",
|
|
|
|
"className":"string"
|
|
|
|
},
|
|
|
|
"tags": []
|
|
|
|
},
|
|
|
|
"h4": {
|
|
|
|
"importPath": "h4",
|
|
|
|
"name": "H4",
|
|
|
|
"description": "An HTML H4 tag",
|
|
|
|
"props" : {
|
|
|
|
"text": "string",
|
|
|
|
"className":"string"
|
|
|
|
},
|
|
|
|
"tags": []
|
|
|
|
},
|
|
|
|
"h5": {
|
|
|
|
"importPath": "h5",
|
|
|
|
"name": "H5",
|
|
|
|
"description": "An HTML H5 tag",
|
|
|
|
"props" : {
|
|
|
|
"text": "string",
|
|
|
|
"className":"string"
|
|
|
|
},
|
|
|
|
"tags": ["div", "container", "layout"]
|
|
|
|
},
|
|
|
|
"h6": {
|
|
|
|
"importPath": "h6",
|
|
|
|
"name": "H6",
|
|
|
|
"description": "An HTML H6 tag",
|
|
|
|
"props" : {
|
|
|
|
"text": "string",
|
|
|
|
"className":"string"
|
|
|
|
},
|
|
|
|
"tags": []
|
2019-10-19 05:32:03 +13:00
|
|
|
},
|
|
|
|
"if": {
|
|
|
|
"importPath": "if",
|
|
|
|
"name": "If",
|
|
|
|
"description": "An if condition.. if (CONDITION) THEN [display component A] ELSE [display component B]",
|
|
|
|
"props" : {
|
|
|
|
"condition": "string",
|
|
|
|
"thenComponent":{"type":"component", "required":true},
|
|
|
|
"elseComponent":"component"
|
|
|
|
},
|
|
|
|
"tags": []
|
2019-08-20 08:18:23 +12:00
|
|
|
}
|
|
|
|
}
|