/*!
 * OpenUI5
 * (c) Copyright 2009-2026 SAP SE or an SAP affiliate company.
 * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
 *
 * @private
 * @experimental
 */
sap.ui.define([
	"sap/ui/integration/designtime/cardEditor/config/generateActionConfig"
], function (
	generateActionConfig
) {
	"use strict";

	return {
		// List Card
		"listMaxItems": {
			"tags": ["content"],
			"label": "{i18n>CARD_EDITOR.MAXITEMS}",
			"type": "integer",
			"path": "content/maxItems",
			"visible": "{= ${context>type} === 'List' }"
		},

		// List Card Item
		"listItemTitle": {
			"tags": ["content", "listItem"],
			"label": "{i18n>CARD_EDITOR.TITLE}",
			"type": "string",
			"path": "content/item/title",
			"visible": "{= ${context>type} === 'List' }"
		},
		"listItemDescription": {
			"tags": ["content", "listItem"],
			"label": "{i18n>CARD_EDITOR.LIST_ITEM.DESCRIPTION}",
			"type": "string",
			"path": "content/item/description",
			"visible": "{= ${context>type} === 'List' }"
		},
		"listItemInfoValue": {
			"tags": ["content", "listItem"],
			"label": "{i18n>CARD_EDITOR.LIST_ITEM.INFO.VALUE}",
			"type": "string",
			"path": "content/item/info/value",
			"visible": "{= ${context>type} === 'List' }"
		},
		"listItemInfoState": {
			"tags": ["content", "listItem"],
			"label": "{i18n>CARD_EDITOR.LIST_ITEM.INFO.STATE}",
			"type": "select",
			"items": [
				{
					"key": "Success",
					"title": "{i18n>CARD_EDITOR.STATE.SUCCESS}"
				},
				{   "key": "Error",
					"title": "{i18n>CARD_EDITOR.STATE.ERROR}"
				},
				{
					"key": "Warning",
					"title": "{i18n>CARD_EDITOR.STATE.WARNING}"
				},
				{
					"key": "None",
					"title": "{i18n>CARD_EDITOR.STATE.NONE}"
				},
				{
					"key": "Information",
					"title": "{i18n>CARD_EDITOR.STATE.INFORMATION}"
				}
			],
			"defaultValue": "None",
			"path": "content/item/info/state",
			"visible": "{= ${context>type} === 'List' }"
		},
		"listItemHighlight": {
			"tags": ["content", "listItem"],
			"label": "{i18n>CARD_EDITOR.LIST_ITEM.HIGHLIGHT}",
			"type": "select",
			"items": [
				{
					"key": "Success",
					"title": "{i18n>CARD_EDITOR.STATE.SUCCESS}"
				},
				{   "key": "Error",
					"title": "{i18n>CARD_EDITOR.STATE.ERROR}"
				},
				{
					"key": "Warning",
					"title": "{i18n>CARD_EDITOR.STATE.WARNING}"
				},
				{
					"key": "None",
					"title": "{i18n>CARD_EDITOR.STATE.NONE}"
				},
				{
					"key": "Information",
					"title": "{i18n>CARD_EDITOR.STATE.INFORMATION}"
				}
			],
			"defaultValue": "None",
			"path": "content/item/highlight",
			"visible": "{= ${context>type} === 'List' }"
		},
		"listItemIcon": {
			"tags": ["content", "listItem"],
			"label": "{i18n>CARD_EDITOR.LIST_ITEM.ICON}",
			"type": "simpleicon",
			"path": "content/item/icon/src",
			"visible": "{= ${context>type} === 'List' }"
		},
		"listItemActions": generateActionConfig({
			"tags": ["content", "listItem"],
			"path": "content/item/actions",
			"maxItems": 1,
			"visible": "{= ${context>type} === 'List' }"
		})
	};
});
