Skip to content

Commit

Permalink
Add new object type UIST
Browse files Browse the repository at this point in the history
  • Loading branch information
ViktoriaFreidel committed Mar 14, 2023
1 parent 9019fda commit 7ffbc3b
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 35 deletions.
8 changes: 4 additions & 4 deletions file-formats/uist/examples/z_aff_example_uist.uist.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
"description": "Example of UIST Object for ABAP file formats",
"originalLanguage": "en"
},
"spaceTemplateId": "Z_AFF_EXAMPLE_UIST",
"spaceTemplateTitle": "Example of UIST Object for ABAP file formats",
"spaceTemplateDescription": "Example of UIST Object for ABAP file formats",
"spaceTemplateSortPriority": 1.001,
"id": "Z_AFF_EXAMPLE_UIST",
"title": "Example of UIST Object for ABAP file formats",
"description": "Example of UIST Object for ABAP file formats",
"sortPriority": 1.001,
"baseSpaceTemplateId": "Z_TEST",
"pages": [
{
Expand Down
29 changes: 14 additions & 15 deletions file-formats/uist/type/zif_aff_uist_v1.intf.abap
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ INTERFACE zif_aff_uist_v1
"! <p class="shorttext">SAP Fiori Page Template</p>
"! SAP Fiori Page Template
BEGIN OF ty_page,
"! <p class="shorttext">ID</p>
"! ID
"! <p class="shorttext">Page Template ID</p>
"! Page Template ID
page_template_id TYPE c LENGTH 35,

"! <p class="shorttext">Title</p>
Expand All @@ -27,41 +27,40 @@ INTERFACE zif_aff_uist_v1
"! <p class="shorttext">Format Version</p>
"! Format version
"! $required
format_version TYPE zif_aff_types_v1=>ty_format_version,
format_version TYPE zif_aff_types_v1=>ty_format_version,

"! <p class="shorttext">Header</p>
"! Header
"! $required
header TYPE zif_aff_types_v1=>ty_header_100,
header TYPE zif_aff_types_v1=>ty_header_100,

"! <p class="shorttext">ID</p>
"! ID
"! Space Template ID
"! $required
space_template_id TYPE c LENGTH 35,
id TYPE c LENGTH 35,

"! <p class="shorttext">Title</p>
"! Title
"! Space Template Title
"! $required
space_template_title TYPE zif_aff_types_v1=>ty_description_100,
title TYPE zif_aff_types_v1=>ty_description_100,

"! <p class="shorttext">Description </p>
"! Description
"! Space Template Description
"! $required
space_template_description TYPE zif_aff_types_v1=>ty_description_100,
description TYPE zif_aff_types_v1=>ty_description_100,

"! <p class="shorttext">Sort Priority</p>
"! Sort priority
"! $minimum: 0.001
"! $minimum: -999.999
"! $maximum: 999.999
"! $multipleOf: 0.001
space_template_sort_priority TYPE p LENGTH 7 DECIMALS 3,
sort_priority TYPE p LENGTH 7 DECIMALS 3,

"! <p class="shorttext">Base Space ID</p>
"! <p class="shorttext">Base Space Template ID</p>
"! Base Space Template ID
base_space_template_id TYPE c LENGTH 35,

"! <p class="shorttext">Page Templates</p>
"! Assigned SAP Fiori launchpad page templates
page_templates TYPE ty_pages,
pages TYPE ty_pages,
END OF ty_main.
ENDINTERFACE.
32 changes: 16 additions & 16 deletions file-formats/uist/uist-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"type": "object",
"properties": {
"formatVersion": {
"title": "Format version",
"title": "Format Version",
"description": "Format version",
"type": "string",
"const": "1"
Expand Down Expand Up @@ -59,40 +59,40 @@
"originalLanguage"
]
},
"spaceTemplateId": {
"id": {
"title": "ID",
"description": "ID",
"description": "Space Template ID",
"type": "string",
"maxLength": 35
},
"spaceTemplateTitle": {
"title": {
"title": "Title",
"description": "Title",
"description": "Space Template Title",
"type": "string",
"maxLength": 100
},
"spaceTemplateDescription": {
"description": {
"title": "Description",
"description": "Description",
"description": "Space Template Description",
"type": "string",
"maxLength": 100
},
"spaceTemplateSortPriority": {
"sortPriority": {
"title": "Sort Priority",
"description": "Sort priority",
"type": "number",
"minimum": 0.001,
"minimum": -999.999,
"maximum": 999.999,
"multipleOf": 0.001
},
"baseSpaceTemplateId": {
"title": "Base Space ID",
"title": "Base Space Template ID",
"description": "Base Space Template ID",
"type": "string",
"maxLength": 35
},
"pages": {
"title": "Assigned SAP Fiori Launchpad Page Templates",
"title": "Page Templates",
"description": "Assigned SAP Fiori launchpad page templates",
"type": "array",
"items": {
Expand All @@ -101,8 +101,8 @@
"type": "object",
"properties": {
"pageTemplateId": {
"title": "ID",
"description": "ID",
"title": "Page Template ID",
"description": "Page Template ID",
"type": "string",
"maxLength": 35
},
Expand All @@ -127,8 +127,8 @@
"required": [
"formatVersion",
"header",
"spaceTemplateId",
"spaceTemplateTitle",
"spaceTemplateDescription"
"id",
"title",
"description"
]
}

0 comments on commit 7ffbc3b

Please sign in to comment.