protected function getPredefinedData(): array
{
$iconsPath = \CComponentEngine::makeComponentPath('bitrix:crm.type.detail');
$iconsPath = getLocalPath(Path::combine('components', $iconsPath, 'templates', '.default', 'images'));
return [
[
'fields' => [
'id' => 'bitrix:list',
'title' => Loc::getMessage('CRM_TYPE_PRESET_LIST_TITLE'),
'category' => 'main',
'icon' => Path::combine($iconsPath, 'preset-list.svg'),
],
'data' => [
'title' => Loc::getMessage('CRM_TYPE_PRESET_LIST_TITLE'),
'isDocumentsEnabled' => true,
'isUseInUserfieldEnabled' => true,
'isSetOpenPermissions' => true,
],
],
[
'fields' => [
'id' => 'bitrix:full',
'title' => Loc::getMessage('CRM_TYPE_PRESET_FULL_TITLE'),
'category' => 'main',
'icon' => Path::combine($iconsPath, 'preset-full.svg'),
],
'data' => [
'title' => Loc::getMessage('CRM_TYPE_PRESET_FULL_TITLE'),
'isCategoriesEnabled' => true,
'isStagesEnabled' => true,
'isBeginCloseDatesEnabled' => true,
'isClientEnabled' => true,
'isLinkWithProductsEnabled' => true,
'isMycompanyEnabled' => true,
'isDocumentsEnabled' => true,
'isSourceEnabled' => true,
'isUseInUserfieldEnabled' => true,
'isObserversEnabled' => true,
'isRecyclebinEnabled' => true,
'isAutomationEnabled' => true,
'isBizProcEnabled' => true,
'isSetOpenPermissions' => true,
'isCountersEnabled' => true
],
],
[
'fields' => [
'id' => 'bitrix:empty',
'title' => Loc::getMessage('CRM_TYPE_PRESET_EMPTY_TITLE'),
'category' => 'main',
'icon' => Path::combine($iconsPath, 'preset-empty.svg'),
],
'data' => [
],
],
// [
// 'fields' => [
// 'id' => 'bitrix:disabled',
// 'title' => 'Disabled preset',
// 'category' => 'second',
// 'disabled' => true,
// ],
// 'data' => [
//
// ],
// ],
];
}