{
	"ns": "webr.ns",
	"propertyRules": "rules.xpd",
	"idProperty": "__cid__",
	"defaultLanguage": "en",
	"labelWidth": 160,
	"iconPath": "/system/images/icons/16x16",
	"properties": {
		"title": {
			"title": "property_title_title",
			"type": "i18n",
			"dbType": "varchar(64)",
			"length": 64,
			"isTitle": true,
			"groups": [
				"generel"
			],
			"sequence": 100
		},
		"icon": {
			"title": "property_icon_title",
			"type": "iconpicker",
			"path": "/system/images/icons/extjs5/16x16",
			"ignoreStaticDir": true,
			"dbType": "varchar(256)",
			"length": 64,
			"groups": [
				"generel"
			],
			"sequence": 300,
			"width": "100%"
		},
		"seourl": {
			"title": "property_seourl_title",
			"type": "varchar",
			"dbType": "varchar(128)",
			"length": 128,
			"groups": [
				"generel"
			],
			"sequence": 301,
			"width": "100%",
			"triggers": {
				"preview": {
					"cls": "x-ux-preview-trigger",
					"weight": 1,
					"tooltip": {
						"da": "Preview url",
						"en": "Preview url"
					},
					"handler": "( function(i_field) { var value = i_field.getValue(); value = window.location.protocol + '//' + window.location.host + window.location.pathname + window.location.search + '#' + value; ip2.openExternalLink(value); } )",
					"scope": "this"
				}
			}
		},
		"seq": {
			"title": "property_sequence_title",
			"type": "number",
			"hidden": true,
			"dbType": "dec(8 , 2)",
			"length": 11,
			"groups": [
				"generel"
			]
		}
	},
	"collections": {
		"root": {
			"id": 1,
			"title": "collection_root_title",
			"allowedparents": [],
			"allowedchilds": [
				2
			]
		},
		"group": {
			"id": 2,
			"title": "collection_group_title",
			"allowedparents": [
				1
			],
			"allowedchilds": [
				2,
				3,
				4
			],
			"iconCls": "icon-windows",
			"properties": {
				"url": {
					"title": "property_url_title",
					"type": "varchar",
					"dbType": "varchar(256)",
					"length": 256,
					"groups": [
						"generel"
					],
					"sequence": 200,
					"anchor": "100%"
				},
				"searchable": {
					"title": "property_searchable_title",
					"type": "boolean",
					"groups": [
						"generel"
					],
					"sequence": 302
				},
				"binding": {
					"title": "property_binding_title",
					"type": "bindingfield",
					"sequence": 303,
					"groups": [
						"generel"
					]
				}
			}
		},
		"application": {
			"id": 3,
			"allowedparents": [
				2
			],
			"allowedchilds": [],
			"title": "collection_application_title",
			"iconCls": "icon-window",
			"properties": {
				"url": {
					"title": "property_url_title",
					"type": "varchar",
					"dbType": "varchar(256)",
					"length": 256,
					"groups": [
						"generel"
					],
					"sequence": 200,
					"anchor": "100%"
				},
				"widget": {
					"title": "property_widget_title",
					"type": "acetextarea",
					"dependsOn": [
						{
							"field": "url",
							"empty": true
						}
					],
					"groups": [
						"generel"
					],
					"theme": "monokai",
					"mode": "javascript",
					"useWorker": false,
					"sequence": 350,
					"height": 320,
					"anchor": "100%",
					"value": ""
				},
				"binding": {
					"title": "property_binding_title",
					"type": "bindingfield",
					"sequence": 351,
					"groups": [
						"generel"
					]
				}
			}
		},
		"app": {
			"id": 4,
			"allowedparents": [
				2,
				3
			],
			"allowedchilds": [],
			"title": "collection_app_title",
			"iconCls": "icon-gear",
			"properties": {
				"appName": {
					"title": "property_appname_title",
					"type": "varchar",
					"dbType": "varchar(256)",
					"length": 256,
					"allowBlank": false,
					"groups": [
						"generel"
					],
					"sequence": 200,
					"anchor": "100%",
					"stripCharsRe": "(?:^\\s+|\\s+$)",
					"regexp": "^\\w+(?:\\.\\w+)*$"
				},
				"appFolder": {
					"title": "property_appfolder_title",
					"type": "varchar",
					"dbType": "varchar(256)",
					"length": 256,
					"allowBlank": false,
					"groups": [
						"generel"
					],
					"sequence": 201,
					"anchor": "100%",
					"stripCharsRe": "(?:^\\s+|\\s+$)"
				},
				"advance": {
					"type": "boolean",
					"length": 5,
					"groups": [
						"text"
					],
					"sequence": 303,
					"title": "property_advance_title"
				},
				"main": {
					"title": "property_main_title",
					"type": "varchar",
					"dbType": "varchar(256)",
					"length": 256,
					"groups": [
						"generel"
					],
					"sequence": 304,
					"anchor": "100%",
					"stripCharsRe": "(?:^\\s+|\\s+$)",
					"regexp": "^\\w+(?:\\.\\w+)*$",
					"dependsOn": [
						{
							"field": "advance",
							"equals": [
								true
							]
						}
					]
				},
				"requires": {
					"title": "property_requires_title",
					"type": "acetextarea",
					"groups": [
						"generel"
					],
					"mode": "javascript",
					"useWorker": false,
					"asArray": true,
					"sequence": 350,
					"height": 80,
					"anchor": "100%",
					"value": "",
					"dependsOn": [
						{
							"field": "advance",
							"equals": [
								true
							]
						}
					]
				},
				"packages": {
					"title": "property_packages_title",
					"type": "acetextarea",
					"groups": [
						"generel"
					],
					"mode": "json",
					"useWorker": false,
					"asJson": true,
					"sequence": 351,
					"height": 80,
					"anchor": "100%",
					"value": "",
					"dependsOn": [
						{
							"field": "advance",
							"equals": [
								true
							]
						}
					]
				},
				"appConfig": {
					"title": "property_appconfig_title",
					"type": "acetextarea",
					"groups": [
						"generel"
					],
					"mode": "json",
					"useWorker": false,
					"asJson": true,
					"sequence": 352,
					"height": 80,
					"anchor": "100%",
					"value": "",
					"dependsOn": [
						{
							"field": "advance",
							"equals": [
								true
							]
						}
					]
				},
				"binding": {
					"title": "property_binding_title",
					"type": "bindingfield",
					"sequence": 302,
					"groups": [
						"generel"
					]
				}
			}
		}
	},
	"groups": {
		"generel": {
			"title": "group_generel_title",
			"renderIn": {
				"editor": {
					"layout": {
						"sequence": 100
					}
				}
			}
		}
	},
	"environments": {
		"editor": {
			"title": "environment_editor_title"
		}
	},
	"layout": {
		"editor": {
			"__default__": {
				"width": 600
			}
		}
	},
	"widgets": [
		{
			"path": "/wsh-widgets/userRole.widget",
			"name": "userole",
			"title": {
				"da": "Roller",
				"en": "Roles"
			}
		}
	],
	"language": {
		"da": {
			"text": {
				"environment_editor_title": "Editor",
				"group_generel_title": "Generelt",
				"collection_root_title": "Root",
				"collection_group_title": "Gruppe",
				"collection_application_title": "Applikation",
				"property_title_title": "Titel",
				"property_url_title": "URL",
				"property_icon_title": "Ikon",
				"property_widget_title": "Widget",
				"property_seourl_title": "Seo url",
				"collection_app_title": "App",
				"property_appname_title": "App navn",
				"property_appfolder_title": "App folder",
				"property_requires_title": "Nødvendige filer",
				"property_main_title": "App Main",
				"property_packages_title": "Pakker",
				"property_advance_title": "Advanceret",
				"property_appconfig_title": "Applikation Config",
				"property_searchable_title": "Søgebar",
				"property_binding_title": "Genvejstast"
			}
		},
		"en": {
			"text": {
				"environment_editor_title": "Editor",
				"group_generel_title": "Generel",
				"collection_root_title": "Root",
				"collection_group_title": "Group",
				"collection_application_title": "Application",
				"property_title_title": "Title",
				"property_url_title": "URL",
				"property_icon_title": "Icon",
				"property_widget_title": "Widget",
				"property_seourl_title": "Seo url",
				"collection_app_title": "App",
				"property_appname_title": "App Name",
				"property_appfolder_title": "App Folder",
				"property_requires_title": "Required Files",
				"property_main_title": "App Main",
				"property_packages_title": "Packages",
				"property_advance_title": "Advance",
				"property_appconfig_title": "Application Config",
				"property_searchable_title": "Searchable",
				"property_binding_title": "Shortcut"
			}
		}
	}
}
