{
	"ns": "webr.ns",
	"propertyRules": "rules.xpd",
	"idProperty": "__cid__",
	"defaultLanguage": "en",
	"labelWidth": 160,
	"iconPath": "/system/images/icons/16x16",
	"properties": {
		"title": {
			"title": "Title",
			"type": "varchar",
			"length": 32
		},
		"name": {
			"title": "Name",
			"type": "varchar",
			"protected": true,
			"length": 32
		},
		"length": {
			"title": "Length",
			"type": "int"
		},
		"type": {
			"title": "Type",
			"type": "type"
		},
		"_type": {
			"title": "Temporary stand in for transition to ID based rule references",
			"type": "int"
		},
		"databasebind": {
			"type": "varchar",
			"title": "Folder Bound",
			"length": 256
		},
		"required": {
			"title": "Dette felt skal udfyldes",
			"type": "bool"
		},
		"labelsuffix": {
			"title": "A label after the field (such as Kg. og Lbs.)",
			"type": "varchar",
			"length": 32
		},
		"groups": {
			"title": "Groups this property belongs to",
			"type": "array",
			"length": 128
		}
	},
	"collections": {
		"uitype": {
			"id": 1,
			"title": "UI Type",
			"private": true,
			"hidden": true,
			"protected": false
		},
		"type": {
			"id": 2,
			"title": "Type",
			"private": true,
			"properties": {
				"uitype": {
					"type": "uitype",
					"title": "UI Type",
					"xtype": "ip2XpdTypePicker"
				}
			}
		},
		"varchar": {
			"id": 3,
			"title": "Varchar",
			"properties": {
				"uitype": {
					"type": "uitype",
					"title": "UI Type",
					"xtype": "textfield"
				},
				"placeholder": {
					"type": "varchar",
					"title": "Placeholder text",
					"length": 256
				},
				"emptyText": {
					"type": "varchar",
					"title": "Placeholder text - this will take over from placeholder property",
					"length": 256
				}
			}
		},
		"dec": {
			"id": 4,
			"title": "Decimal",
			"properties": {
				"uitype": {
					"type": "uitype",
					"title": "UI Type",
					"xtype": "numberfield"
				},
				"decPoint": {
					"title": "Decimal Point",
					"type": "int"
				}
			}
		},
		"int": {
			"id": 5,
			"title": "Integer",
			"properties": {
				"uitype": {
					"type": "uitype",
					"title": "UI Type",
					"xtype": "numberfield"
				},
				"uom": {
					"title": "Unit of Measurement",
					"type": "varchar",
					"length": 16
				}
			}
		},
		"sql": {
			"id": 6,
			"title": "Sql statement",
			"properties": {
				"uitype": {
					"type": "uitype",
					"title": "UI Type",
					"xtype": "textfield"
				},
				"sql": {
					"title": "SQL",
					"type": "varchar",
					"length": 512
				}
			}
		},
		"date": {
			"id": 7,
			"title": "Date",
			"properties": {
				"uitype": {
					"title": "UI Type",
					"type": "uitype",
					"xtype": "ip2Datapicker"
				},
				"allowedchoice": {
					"title": "Allowed User Choice",
					"type": "bool",
					"length": 1
				},
				"mindate": {
					"title": "Min Date",
					"type": "date"
				},
				"maxdate": {
					"title": "Max Date",
					"type": "date"
				},
				"format": {
					"title": "Format",
					"type": "varchar",
					"length": 32
				}
			}
		},
		"single_select": {
			"id": 8,
			"title": "Single Select",
			"properties": {
				"uitype": {
					"type": "uitype",
					"title": "UI Type",
					"xtype": "combobox"
				},
				"values": {
					"title": "Values",
					"type": "array",
					"length": 128
				},
				"allowcreation": {
					"title": "Allow the user to add values to the value property",
					"type": "bool",
					"length": 1
				},
				"forceselection": {
					"title": "Force the user to select a value",
					"type": "bool",
					"length": 1
				},
				"renderas": {
					"title": "uitype to use to render single select",
					"type": "varchar",
					"length": 64
				}
			}
		},
		"bool": {
			"id": 9,
			"title": "Varchar",
			"properties": {
				"uitype": {
					"type": "uitype",
					"title": "UI Type",
					"xtype": "checkbox"
				},
				"tip": {
					"type": "varchar",
					"title": "Informations tip",
					"length": 256
				},
				"boxlabel": {
					"type": "varchar",
					"title": "Text after the field",
					"length": 128
				}
			}
		},
		"markdown": {
			"id": 10,
			"title": "Markdown",
			"properties": {
				"uitype": {
					"type": "uitype",
					"title": "UI Type",
					"xtype": "markdownfield",
					"properties": {
						"action": {
							"title": "Action configuration",
							"type": "object",
							"length": 1024
						},
						"actiontip": {
							"title": "Show action tooltips or not",
							"type": "bool",
							"length": 1
						},
						"actionText": {
							"title": "Show action text or not",
							"type": "bool",
							"length": 1
						},
						"actions": {
							"title": "Action buttons",
							"type": "array",
							"length": 256,
							"values": [
								"h1",
								"h2",
								"h3",
								"bold",
								"italic",
								"link",
								"quote",
								"code",
								"image",
								"olist",
								"ulist",
								"sup",
								"hr"
							]
						},
						"output": {
							"title": "Output type - markdown/html",
							"type": "varchar",
							"length": 1024,
							"values": [
								"markdown",
								"html"
							]
						},
						"iconCss": {
							"title": "Path to stylesheet for icons",
							"type": "varchar",
							"length": 256
						},
						"previewCss": {
							"title": "Path to stylesheet for preview",
							"type": "varchar",
							"length": 256
						},
						"textareaConfig": {
							"title": "Configuration for the textarea",
							"type": "object",
							"length": 1024
						}
					}
				}
			}
		},
		"array": {
			"id": 11,
			"title": "Array",
			"properties": {
				"uitype": {
					"type": "uitype",
					"title": "UI Type",
					"xtype": "ip2XpdArray"
				}
			}
		},
		"image_picker": {
			"id": 12,
			"title": "Image Picker",
			"properties": {
				"uitype": {
					"type": "uitype",
					"title": "UI Type",
					"xtype": "ip2ImagePicker"
				},
				"uploadpath": {
					"type": "varchar",
					"title": "Path to upload images to",
					"length": 256
				},
				"uploadservice": {
					"type": "varchar",
					"title": "Upload service",
					"length": 256
				},
				"browseservice": {
					"type": "varchar",
					"title": "Browse service",
					"length": 256
				},
				"uploadbutton": {
					"type": "varchar",
					"title": "Text for upload button",
					"length": 256
				},
				"browsebutton": {
					"type": "varchar",
					"title": "Text for browse button",
					"length": 256
				},
				"placeholder": {
					"type": "varchar",
					"title": "Placeholder text",
					"length": 256
				},
				"tip": {
					"type": "varchar",
					"title": "Informations tip",
					"length": 256
				}
			}
		},
		"text": {
			"id": 13,
			"title": "Text",
			"properties": {
				"uitype": {
					"type": "uitype",
					"title": "UI Type",
					"xtype": "textareafield"
				},
				"placeholder": {
					"type": "varchar",
					"title": "Placeholder text",
					"length": 256
				}
			}
		},
		"call_to_action": {
			"id": 14,
			"title": "Call to Action",
			"properties": {
				"uitype": {
					"type": "uitype",
					"title": "UI Type",
					"xtype": "textfield"
				},
				"allowedactions": {
					"type": "array",
					"title": "Allowed Actions",
					"length": 256
				},
				"placeholder": {
					"type": "varchar",
					"title": "Placeholder text",
					"length": 256
				},
				"buttontext": {
					"type": "varchar",
					"title": "Text for call2action button",
					"length": 256
				}
			}
		},
		"hidden": {
			"id": 15,
			"title": "Hidden Field",
			"properties": {
				"uitype": {
					"type": "uitype",
					"title": "UI Type",
					"xtype": "hidden"
				},
				"value": {
					"type": "varchar",
					"title": "Value",
					"xtype": "textfield"
				}
			}
		},
		"relational": {
			"id": 16,
			"title": "Relational data borrowed from a DMD",
			"properties": {
				"from": {
					"type": "varchar",
					"title": "Name of entity",
					"length": 256
				},
				"entity": {
					"type": "varchar",
					"title": "Name of entity",
					"length": 256
				},
				"column": {
					"type": "varchar",
					"title": "Name of column",
					"length": 256
				},
				"dmdpath": {
					"type": "varchar",
					"title": "Path to the DMD file",
					"length": 256
				},
				"preprocess": {
					"type": "array",
					"title": "...",
					"length": 256
				},
				"postprocess": {
					"type": "array",
					"title": "...",
					"length": 256
				}
			}
		},
		"imagelistuploader": {
			"id": 17,
			"title": "List of images, with upload feature",
			"properties": {
				"extensions": {
					"title": "Acceptable file extensions (deprecate and use application/image...)",
					"type": "array",
					"length": 128
				},
				"uploadpath": {
					"title": "Path to upload the files to",
					"type": "varchar",
					"length": 128
				},
				"uploadtext": {
					"title": "Text in the drop area",
					"type": "varchar",
					"length": 128
				},
				"uploadtextbutton": {
					"title": "Text on the upload button",
					"type": "varchar",
					"length": 128
				},
				"browsetextbutton": {
					"title": "Text on the browse button",
					"type": "varchar",
					"length": 128
				},
				"reordertext": {
					"title": "Text shown when reordering list items",
					"type": "varchar",
					"length": 128
				},
				"headertextimage": {
					"title": "Title for the image column",
					"type": "varchar",
					"length": 128
				},
				"headertextname": {
					"title": "Title for the name column",
					"type": "varchar",
					"length": 128
				},
				"headertextprimary": {
					"title": "Title for the primary column",
					"type": "varchar",
					"length": 128
				},
				"headertextcaption": {
					"title": "Title for the caption column",
					"type": "varchar",
					"length": 128
				}
			}
		},
		"entityproperties": {
			"id": 18,
			"title": "TODO: Ask Claus for description...",
			"properties": {
				"serviceurl": {
					"title": "Full path to the service",
					"type": "varchar",
					"length": 128
				},
				"dmd": {
					"title": "Name of the DMD file",
					"type": "varchar",
					"length": 128
				},
				"entity": {
					"title": "Name of the entity",
					"type": "varchar",
					"length": 128
				},
				"cid": {
					"title": "Comma seperated string of CIDs",
					"type": "string",
					"length": 128
				},
				"listproperties": {
					"title": "Properties to list",
					"type": "array",
					"length": 1024
				}
			}
		}
	},
	"groups": {
		"nogroup": {
			"title": "nogroup",
			"index": 999,
			"renderIn": {
				"editor": {}
			}
		}
	},
	"environments": {
		"editor": {
			"title": "editor environment"
		},
		"folderorganizer": {
			"title": "environment_folderorganizer_title"
		},
		"folderWindow": {
			"title": "environment_folderwindow_title"
		},
		"menuorganizer": {
			"title": "environment_menuorganizer_title"
		}
	},
	"layout": {
		"editor": {
			"__default__": {
				"width": "100%",
				"minWidth": 300
			}
		},
		"folderorganizer": {
			"__default__": {
				"width": "100%",
				"minWidth": 300
			}
		},
		"menuorganizer": {
			"__default__": {
				"width": "100%",
				"minWidth": 300
			}
		}
	},
	"language": {
		"da": {
			"text": {
				"environment_editor_title": "Editor miljø",
				"environment_folderorganizer_title": "Folderorganizer miljø",
				"environment_menuorganizer_title": "Menuorganizer miljø"
			}
		},
		"en": {
			"text": {
				"environment_editor_title": "Editor environment",
				"environment_folderorganizer_title": "Folderorganizer environment",
				"environment_menuorganizer_title": "Menuorganizer environment"
			}
		}
	}
}
