@sap/ux-specification 1.96.6 → 1.96.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (159) hide show
  1. package/CHANGELOG.md +85 -18
  2. package/dist/documentation/v2/v2-AnalyticalListPage.html +1 -1
  3. package/dist/documentation/v2/v2-ApplicationV2.html +1 -1
  4. package/dist/documentation/v2/v2-ListReport.html +1 -1
  5. package/dist/documentation/v2/v2-ObjectPage.html +1 -1
  6. package/dist/documentation/v2/v2-OverviewPage.html +1 -1
  7. package/dist/documentation/v4/v4-ApplicationV4.html +1 -1
  8. package/dist/documentation/v4/v4-ListReport.html +1 -1
  9. package/dist/documentation/v4/v4-ObjectPage.html +1 -1
  10. package/dist/index-min.js +1 -1
  11. package/dist/schemas/v2/ApplicationV2.json +14 -14
  12. package/dist/schemas/v4/ApplicationV4.json +9 -5
  13. package/dist/schemas/v4/ListReportConfig.json +629 -199
  14. package/dist/schemas/v4/ObjectPageConfig.json +36 -0
  15. package/dist/specification/v2/index-min.js +1 -1
  16. package/dist/specification/v4/index-min.js +1 -1
  17. package/dist/src/api.d.ts +3 -3
  18. package/dist/src/apiTypes.d.ts +18 -21
  19. package/dist/src/extensionLogger.d.ts +1 -1
  20. package/dist/src/project.d.ts +1 -1
  21. package/dist/src/specification/common/Application.d.ts +24 -4
  22. package/dist/src/specification/common/page.d.ts +1 -1
  23. package/dist/src/specification/common/webapp/manifest/Manifest.d.ts +6 -6
  24. package/dist/src/specification/common/webapp/manifest/sapUi5.d.ts +1 -1
  25. package/dist/src/specification/schemaAccess.d.ts +1 -1
  26. package/dist/src/specification/v2/ApplicationV2.d.ts +3 -17
  27. package/dist/src/specification/v2/controls/Facets.d.ts +1 -1
  28. package/dist/src/specification/v2/controls/Footer.d.ts +2 -2
  29. package/dist/src/specification/v2/controls/ObjectPageForm.d.ts +1 -1
  30. package/dist/src/specification/v2/controls/ObjectPageHeader.d.ts +1 -1
  31. package/dist/src/specification/v2/controls/ObjectPageSection.d.ts +2 -2
  32. package/dist/src/specification/v2/controls/ObjectPageTable.d.ts +2 -2
  33. package/dist/src/specification/v2/controls/ObjectPageToolBar.d.ts +1 -1
  34. package/dist/src/specification/v2/controls/Table.d.ts +3 -3
  35. package/dist/src/specification/v2/controls/ToolBar.d.ts +1 -1
  36. package/dist/src/specification/v2/page.d.ts +1 -1
  37. package/dist/src/specification/v2/pages/AnalyticalListPageConfig.d.ts +4 -4
  38. package/dist/src/specification/v2/pages/ListReportConfig.d.ts +2 -2
  39. package/dist/src/specification/v2/pages/ObjectPageConfig.d.ts +3 -3
  40. package/dist/src/specification/v2/pages/OverviewPageConfig.d.ts +3 -3
  41. package/dist/src/specification/v2/webapp/manifest/sapUi5.d.ts +2 -2
  42. package/dist/src/specification/v2/webapp/manifest/sapUiPageV2.d.ts +2 -2
  43. package/dist/src/specification/v4/ApplicationV4.d.ts +4 -14
  44. package/dist/src/specification/v4/controls/ObjectPageHeader.d.ts +1 -1
  45. package/dist/src/specification/v4/controls/ObjectPageSection.d.ts +24 -3
  46. package/dist/src/specification/v4/controls/ObjectPageTable.d.ts +3 -3
  47. package/dist/src/specification/v4/controls/ObjectPageToolBar.d.ts +1 -1
  48. package/dist/src/specification/v4/controls/Table.d.ts +170 -25
  49. package/dist/src/specification/v4/controls/ToolBar.d.ts +26 -1
  50. package/dist/src/specification/v4/page.d.ts +2 -2
  51. package/dist/src/specification/v4/pages/ListReportConfig.d.ts +22 -3
  52. package/dist/src/specification/v4/pages/ObjectPageConfig.d.ts +2 -2
  53. package/dist/src/specification/v4/pages/index.d.ts +0 -1
  54. package/dist/src/specification/v4/webapp/manifest/ManifestSettings.d.ts +77 -0
  55. package/dist/src/specification/v4/webapp/manifest/sapUi5.d.ts +12 -3
  56. package/dist/src/specification/v4/webapp/manifest/sapUiPageV4.d.ts +21 -1
  57. package/dist/src/sync/common/appProvider.d.ts +6 -5
  58. package/dist/src/sync/common/decoration/control.d.ts +1 -1
  59. package/dist/src/sync/common/decoration/decorators.d.ts +1 -1
  60. package/dist/src/sync/common/decoration/factory.d.ts +3 -3
  61. package/dist/src/sync/common/decoration/flex.d.ts +3 -3
  62. package/dist/src/sync/common/flexUtils.d.ts +4 -4
  63. package/dist/src/sync/common/generate/objectPage.d.ts +9 -7
  64. package/dist/src/sync/common/generate/utils.d.ts +52 -19
  65. package/dist/src/sync/common/import/utils.d.ts +4 -3
  66. package/dist/src/sync/common/importProject.d.ts +4 -4
  67. package/dist/src/sync/common/types.d.ts +110 -13
  68. package/dist/src/sync/common/utils.d.ts +23 -15
  69. package/dist/src/sync/i18n.d.ts +1 -1
  70. package/dist/src/sync/v2/application.d.ts +2 -2
  71. package/dist/src/sync/v2/export/controls/Action.d.ts +1 -1
  72. package/dist/src/sync/v2/export/controls/AnalyticalListPageChart.d.ts +1 -1
  73. package/dist/src/sync/v2/export/controls/AnalyticalListPageKPI.d.ts +1 -1
  74. package/dist/src/sync/v2/export/controls/Card.d.ts +1 -1
  75. package/dist/src/sync/v2/export/controls/Field.d.ts +1 -1
  76. package/dist/src/sync/v2/export/controls/FilterBar.d.ts +2 -1
  77. package/dist/src/sync/v2/export/controls/FormAction.d.ts +1 -1
  78. package/dist/src/sync/v2/export/controls/Fragment.d.ts +5 -11
  79. package/dist/src/sync/v2/export/controls/ObjectPageChart.d.ts +1 -1
  80. package/dist/src/sync/v2/export/controls/ObjectPageCustomSection.d.ts +3 -3
  81. package/dist/src/sync/v2/export/controls/ObjectPageFooterAction.d.ts +1 -1
  82. package/dist/src/sync/v2/export/controls/ObjectPageHeader.d.ts +1 -1
  83. package/dist/src/sync/v2/export/controls/ObjectPageHeaderAction.d.ts +1 -1
  84. package/dist/src/sync/v2/export/controls/ObjectPageLayout.d.ts +1 -1
  85. package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.d.ts +2 -2
  86. package/dist/src/sync/v2/export/controls/ObjectPageTable.d.ts +3 -3
  87. package/dist/src/sync/v2/export/controls/ObjectPageToolBarAction.d.ts +1 -1
  88. package/dist/src/sync/v2/export/controls/Table.d.ts +4 -2
  89. package/dist/src/sync/v2/export/controls/TableColumn.d.ts +2 -2
  90. package/dist/src/sync/v2/export/controls/ToolBar.d.ts +1 -1
  91. package/dist/src/sync/v2/export/export.d.ts +3 -4
  92. package/dist/src/sync/v2/export/exportPage.d.ts +2 -2
  93. package/dist/src/sync/v2/export/factory.d.ts +2 -1
  94. package/dist/src/sync/v2/export/manifest.d.ts +23 -1
  95. package/dist/src/sync/v2/export/pages/AnalyticalListPage.d.ts +4 -4
  96. package/dist/src/sync/v2/export/pages/ListReport.d.ts +2 -2
  97. package/dist/src/sync/v2/export/pages/ObjectPage.d.ts +3 -3
  98. package/dist/src/sync/v2/export/pages/OverviewPage.d.ts +3 -3
  99. package/dist/src/sync/v2/export/view-controller-generator.d.ts +2 -2
  100. package/dist/src/sync/v2/generate/analyticalListReport.d.ts +1 -1
  101. package/dist/src/sync/v2/generate/generate.d.ts +2 -2
  102. package/dist/src/sync/v2/generate/listReport.d.ts +7 -4
  103. package/dist/src/sync/v2/generate/objectPage.d.ts +1 -1
  104. package/dist/src/sync/v2/generate/overviewPage.d.ts +1 -1
  105. package/dist/src/sync/v2/generate/utils.d.ts +8 -7
  106. package/dist/src/sync/v2/import/app/appProvider.d.ts +13 -4
  107. package/dist/src/sync/v2/import/app/ovpProvider.d.ts +3 -3
  108. package/dist/src/sync/v2/import/common/index.d.ts +6 -5
  109. package/dist/src/sync/v2/import/controls/table.d.ts +1 -1
  110. package/dist/src/sync/v2/import/pages/analyticalListPage.d.ts +2 -2
  111. package/dist/src/sync/v2/import/pages/listReport.d.ts +2 -2
  112. package/dist/src/sync/v2/import/pages/objectPage.d.ts +1 -1
  113. package/dist/src/sync/v2/import/pages/overviewPage.d.ts +2 -2
  114. package/dist/src/sync/v2/import/utils.d.ts +3 -2
  115. package/dist/src/sync/v2/types.d.ts +7 -7
  116. package/dist/src/sync/v4/application.d.ts +28 -12
  117. package/dist/src/sync/v4/export/controls/FilterBar.d.ts +1 -1
  118. package/dist/src/sync/v4/export/controls/ObjectPageCustomSection.d.ts +2 -1
  119. package/dist/src/sync/v4/export/controls/ObjectPageHeader.d.ts +1 -1
  120. package/dist/src/sync/v4/export/controls/ObjectPageHeaderSection.d.ts +1 -1
  121. package/dist/src/sync/v4/export/controls/ObjectPageLayout.d.ts +1 -1
  122. package/dist/src/sync/v4/export/controls/ObjectPageTable.d.ts +1 -1
  123. package/dist/src/sync/v4/export/controls/ObjectPageTableColumn.d.ts +1 -1
  124. package/dist/src/sync/v4/export/controls/ObjectPageToolBarAction.d.ts +1 -1
  125. package/dist/src/sync/v4/export/controls/Table.d.ts +131 -10
  126. package/dist/src/sync/v4/export/controls/TableColumn.d.ts +39 -1
  127. package/dist/src/sync/v4/export/controls/ToolBar.d.ts +1 -1
  128. package/dist/src/sync/v4/export/controls/ToolBarAction.d.ts +4 -1
  129. package/dist/src/sync/v4/export/export.d.ts +2 -2
  130. package/dist/src/sync/v4/export/exportCustomColumn.d.ts +2 -2
  131. package/dist/src/sync/v4/export/factory.d.ts +2 -1
  132. package/dist/src/sync/v4/export/flexibleColumnLayout.d.ts +1 -1
  133. package/dist/src/sync/v4/export/manifest.d.ts +1 -1
  134. package/dist/src/sync/v4/export/pages/ListReport.d.ts +9 -3
  135. package/dist/src/sync/v4/export/pages/ObjectPage.d.ts +2 -2
  136. package/dist/src/sync/v4/export/pages/index.d.ts +0 -1
  137. package/dist/src/sync/v4/export/types.d.ts +8 -6
  138. package/dist/src/sync/v4/export/utils.d.ts +1 -1
  139. package/dist/src/sync/v4/generate/generate.d.ts +5 -4
  140. package/dist/src/sync/v4/generate/listReport.d.ts +2 -4
  141. package/dist/src/sync/v4/generate/objectPage.d.ts +1 -1
  142. package/dist/src/sync/v4/import/app/appProvider.d.ts +6 -5
  143. package/dist/src/sync/v4/import/fragment.d.ts +2 -2
  144. package/dist/src/sync/v4/import/index.d.ts +0 -1
  145. package/dist/src/sync/v4/import/pages/listReport.d.ts +8 -7
  146. package/dist/src/sync/v4/import/pages/objectPage.d.ts +15 -2
  147. package/dist/src/sync/v4/import/utils.d.ts +4 -3
  148. package/dist/src/sync/v4/types.d.ts +4 -2
  149. package/dist/src/sync/v4/utils/utils.d.ts +21 -13
  150. package/dist/test/test-data/flexChange/v2/stta.prod.man/index.d.ts +1 -1
  151. package/dist/test/test-projects/index.d.ts +1 -1
  152. package/dist/test/test-utils/utils.d.ts +5 -4
  153. package/dist/test/unit/export/manifest.test.d.ts +1 -0
  154. package/package.json +14 -11
  155. package/dist/documentation/v4/v4-AnalyticalListPage.html +0 -49
  156. package/dist/schemas/v4/AnalyticalListPageConfig.json +0 -481
  157. package/dist/src/specification/v4/pages/AnalyticalListPageConfig.d.ts +0 -13
  158. package/dist/src/sync/v4/export/pages/AnalyticalListPage.d.ts +0 -8
  159. package/dist/src/sync/v4/import/pages/analyticalListPage.d.ts +0 -11
@@ -1,6 +1,7 @@
1
1
  /// <reference types="@sapui5/ts-types" />
2
- import { AnalyticalTable as AnalyticalTableConfig, TableALP as TableALPConfig, CommonTableSettings as CommonTableConfig, DefaultContentView, DefaultFilterMode, GenericColumns, GridTable as GridTableConfig, LoadDataOnAppLaunchSettings, QuickVariantSelectionX as QuickVariantSelectionXInterface, ResponsiveTable as ResponsiveTableConfig, TableTypeV2, TreeTable as TreeTableConfig, Strategy, FieldPath as FieldPathInterface, QuickVariant, QuickVariantX, CreationFieldKeys, ToolBar } from '../../../../specification/v2';
3
- import { ControlTypeFunction, DeprecatedProperties } from '../../../common';
2
+ import type { AnalyticalTable as AnalyticalTableConfig, TableALP as TableALPConfig, CommonTableSettings as CommonTableConfig, DefaultContentView, DefaultFilterMode, GenericColumns, GridTable as GridTableConfig, LoadDataOnAppLaunchSettings, QuickVariantSelectionX as QuickVariantSelectionXInterface, ResponsiveTable as ResponsiveTableConfig, TreeTable as TreeTableConfig, Strategy, FieldPath as FieldPathInterface, QuickVariant, QuickVariantX, CreationFieldKeys, ToolBar } from '../../../../specification/v2';
3
+ import { TableTypeV2 } from '../../../../specification/v2';
4
+ import type { ControlTypeFunction, DeprecatedProperties } from '../../../common';
4
5
  export declare const getSmartTableControlId: (baseId: string, idBreadcrumbs: string[], _breadcrumbs: string[], controlType: ControlTypeFunction) => string;
5
6
  export declare function importCreateParameters(manifestSection: object): object;
6
7
  export declare function exportCreateParameters(manifestSection: unknown, configPart: Fields4Dialog): void;
@@ -8,6 +9,7 @@ export declare class CreateWithFilters {
8
9
  strategy: Strategy;
9
10
  }
10
11
  export declare function exportType(manifestSection: unknown, configPart: object): void;
12
+ export declare function deleteType(manifestSection: unknown): void;
11
13
  export declare class DataLoadSettings {
12
14
  loadDataOnAppLaunch: LoadDataOnAppLaunchSettings;
13
15
  }
@@ -1,6 +1,6 @@
1
1
  /// <reference types="@sapui5/ts-types" />
2
- import { TableColumn as TableColumnConfig, TableColumnAction as TableColumnActionConfig, TableCustomColumn as TableCustomColumnConfig, TableColumnExtensionTypeV2 } from '../../../../specification/v2';
3
- import { SAPUI5_FRAGMENT_CLASS } from '../../../../specification/common/webapp/manifest';
2
+ import type { TableColumn as TableColumnConfig, TableColumnAction as TableColumnActionConfig, TableCustomColumn as TableCustomColumnConfig, TableColumnExtensionTypeV2 } from '../../../../specification/v2';
3
+ import type { SAPUI5_FRAGMENT_CLASS } from '../../../../specification/common/webapp/manifest';
4
4
  export declare class TableColumn implements TableColumnConfig {
5
5
  width?: string;
6
6
  hAlign?: sap.ui.core.TextAlign;
@@ -1,4 +1,4 @@
1
- import { ToolBar as ToolBarConfig, Actions } from '../../../../specification/v2';
1
+ import type { ToolBar as ToolBarConfig, Actions } from '../../../../specification/v2';
2
2
  export declare class ToolBar implements ToolBarConfig {
3
3
  actions: Actions;
4
4
  }
@@ -1,6 +1,6 @@
1
- import { ExportResults } from '../../../v2';
2
- import { MetadataInstanceInterface } from '../../common/decoration/factory';
3
- import { TransferParameterTypeV2 } from '../types';
1
+ import type { ExportResults } from '../../../v2';
2
+ import type { MetadataInstanceInterface } from '../../common/decoration/factory';
3
+ import type { TransferParameterTypeV2 } from '../types';
4
4
  /**
5
5
  * Private recursive function that traverses the content of the current object. It reads decorators and fills manifest entries and flex changes
6
6
  * @param configObject - current object to traverse
@@ -15,7 +15,6 @@ export declare function transferManifestEntriesOVP(configObject: {
15
15
  }, exportResults: ExportResults, jsonSchema: object, targetDefinition: object, factory: MetadataInstanceInterface, pathHierarchy?: string[]): void;
16
16
  /**
17
17
  * Assign sync rules to {currentObject}
18
- *
19
18
  * @param {string} structureName - name of the complex structure in schema
20
19
  * @param {object} currentObject - the given part of the configuration
21
20
  * @param {string} defaultTypeName - name of the default type that shall be taken if no class is registered for structureName
@@ -1,5 +1,5 @@
1
- import { UI5Version, ExportParametersV2, FioriElementsVersion } from '../../..';
2
- import { ExportResults } from '../../common';
1
+ import type { UI5Version, ExportParametersV2, FioriElementsVersion } from '../../..';
2
+ import type { ExportResults } from '../../common';
3
3
  /**
4
4
  * Exports a Fiori Element V2 page.
5
5
  * It converts the entries of the input page (config file) to corresponding manifest settings and flex changes
@@ -1,4 +1,5 @@
1
- import { MetadataInstanceInterface, MetadataFactory } from '../../common/decoration/factory';
1
+ import type { MetadataInstanceInterface } from '../../common/decoration/factory';
2
+ import { MetadataFactory } from '../../common/decoration/factory';
2
3
  /**
3
4
  * V2 specific factory class for creating instances of (reflect) metadata classes
4
5
  */
@@ -1,4 +1,26 @@
1
- import { Pages } from '../../../specification/v2';
1
+ import type { Pages } from '../../../specification/v2';
2
+ /**
3
+ * Method searches in manifest object by passed path and returns found value.
4
+ * If value was not found in manifest object,
5
+ * then method created empty object in manifest object within passed path.
6
+ * @param manifest - target manifest object
7
+ * @param path - path to lookup in manifest
8
+ * @returns Found or created value
9
+ */
10
+ export declare const ensureManifestSectionByPathV2: (manifest: object, path: string) => object;
11
+ /**
12
+ * Method searches in manifest object by passed path and returns found value.
13
+ * If value was not found in manifest object, then 'undefined' is returned.
14
+ * @param manifest - target manifest file
15
+ * @param path - path to lookup in manifest
16
+ * @returns Found value
17
+ */
2
18
  export declare const getManifestSectionByPathV2: (manifest: object, path: string) => object;
3
19
  export declare const deleteManifestSectionByPathV2: (manifest: object, path: string) => void;
20
+ /**
21
+ * Transfers pages and routings from manifest to the config pages
22
+ * @param pageId - page ID
23
+ * @param configPages - config definitions of each page
24
+ * @param manifestPage - top page definition in manifest
25
+ */
4
26
  export declare function transformPageToNewManifestV2(pageId: string, configPages: Pages, manifestPage: object): void;
@@ -1,7 +1,7 @@
1
- import { AnalyticalListPageConfig, AnalyticalListPageFilterBar } from '../../../../specification/v2';
2
- import { AnalyticalTable } from '../controls/Table';
3
- import { ChartSettings, GenericFooter } from '../../../../specification/v2/controls';
4
- import { KPISettings } from '../../../../specification/v2/controls/AnalyticalListPageKPI';
1
+ import type { AnalyticalListPageConfig, AnalyticalListPageFilterBar } from '../../../../specification/v2';
2
+ import type { AnalyticalTable } from '../controls/Table';
3
+ import type { ChartSettings, GenericFooter } from '../../../../specification/v2/controls';
4
+ import type { KPISettings } from '../../../../specification/v2/controls/AnalyticalListPageKPI';
5
5
  export declare class AnalyticalListPage implements AnalyticalListPageConfig {
6
6
  fitContent?: boolean;
7
7
  table?: AnalyticalTable;
@@ -1,5 +1,5 @@
1
- import { ListReportConfig, ListReportFilterBar, GenericFooter } from '../../../../specification/v2';
2
- import { ResponsiveTable, TreeTable, AnalyticalTable, GridTable } from '../controls/Table';
1
+ import type { ListReportConfig, ListReportFilterBar, GenericFooter } from '../../../../specification/v2';
2
+ import type { ResponsiveTable, TreeTable, AnalyticalTable, GridTable } from '../controls/Table';
3
3
  declare type TableClassType = ResponsiveTable | TreeTable | AnalyticalTable | GridTable;
4
4
  export declare class ListReport implements ListReportConfig {
5
5
  fitContent?: boolean;
@@ -2,9 +2,9 @@
2
2
  * The module is mapped to specification/v2/pages/ObjectPageConfig.ts
3
3
  * This comment is maintained as this module is named as ObjectPage.ts and the corresponding module is named as ObjectPageConfig.ts
4
4
  */
5
- import { ObjectPageConfig, GlobalChartSettings } from '../../../../specification/v2/index';
6
- import { ObjectPageHeader, GenericSections, ObjectPageLayout, CustomSections } from '../../../../specification/v2/controls';
7
- import { FlexibleColumnLayoutType } from '../../../../specification/common/types';
5
+ import type { ObjectPageConfig, GlobalChartSettings } from '../../../../specification/v2/index';
6
+ import type { ObjectPageHeader, GenericSections, ObjectPageLayout, CustomSections } from '../../../../specification/v2/controls';
7
+ import type { FlexibleColumnLayoutType } from '../../../../specification/common/types';
8
8
  export declare class ObjectPage implements ObjectPageConfig {
9
9
  showConfirmationOnDraftActivate?: boolean;
10
10
  hideChevronForUnauthorizedExtNav?: boolean;
@@ -1,8 +1,8 @@
1
- import { OverviewPageConfig, ContainerLayoutType, ChartSettingsType, FilterSettingsType, DateRange } from '../../../../specification/v2';
2
- import { ListCard, AnalyticalCard, StackCard, LinklistCard, TableCard, CustomCard } from '../controls/Card';
1
+ import type { OverviewPageConfig, ContainerLayoutType, ChartSettingsType, FilterSettingsType, DateRange } from '../../../../specification/v2';
2
+ import type { ListCard, AnalyticalCard, StackCard, LinklistCard, TableCard, CustomCard } from '../controls/Card';
3
3
  export declare function importDateSettingsOVP(manifestSection: object): DateRange;
4
4
  export declare function importFilterSettings(manifestSection: object): object;
5
- export declare function exportFilterSettings(manifestSection: unknown, configPart: FilterSettingsType): void;
5
+ export declare function exportFilterSettings(manifestSection: object, configPart: FilterSettingsType): void;
6
6
  declare type CardClassType = ListCard | AnalyticalCard | StackCard | LinklistCard | TableCard | CustomCard;
7
7
  export declare class OverviewPage implements OverviewPageConfig {
8
8
  globalFilterModel?: string;
@@ -1,5 +1,5 @@
1
- import { ViewTemplateType } from '../../common';
2
- import { TableCustomColumns, TableCustomColumn } from '../../../specification/v2';
1
+ import type { ViewTemplateType } from '../../common';
2
+ import type { TableCustomColumns, TableCustomColumn } from '../../../specification/v2';
3
3
  export declare enum ViewTypes {
4
4
  XML = "xml",
5
5
  HTML = "html",
@@ -1,4 +1,4 @@
1
- import { GenerateAppSchemaParameters } from '../../../v2';
1
+ import type { GenerateAppSchemaParameters } from '../../../v2';
2
2
  /**
3
3
  * Generates an app specific schema out of the generic schema.
4
4
  * Generic types are replaced by information from the app specific annotations.
@@ -1,5 +1,5 @@
1
- import { FileData } from '../../common/types';
2
- import { ExtensionLogger } from '../../../apiTypes';
1
+ import type { FileData } from '../../common/types';
2
+ import type { ExtensionLogger } from '../../../apiTypes';
3
3
  /**
4
4
  * Generates an app specific schema out of the generic schema.
5
5
  * Generic types are replaced by information from the app specific annotations.
@@ -1,12 +1,15 @@
1
- import { GenerateAppSchemaParameters } from '../../../v2';
2
- import { ConverterOutput, EntityType } from '@sap-ux/vocabularies-types';
1
+ import type { GenerateAppSchemaParameters } from '../../../v2';
2
+ import type { ConverterOutput, EntityType } from '@sap-ux/vocabularies-types';
3
+ import type { EntitySet } from '@sap-ux/annotation-converter';
4
+ import type { Definition } from 'typescript-json-schema';
3
5
  /**
4
6
  * Adds the enum types for QuickVariant and QuickVariantX, based on the entity type annotations
5
7
  * @param {EntityType} entityType
6
- * @param appSchema - app specific JSON schema
8
+ * @param {EntitySet} entitySet - current entity set of the page or view
9
+ * @param {Definition} appSchema - app specific JSON schema
7
10
  * @param {ConverterOutput} oDataServiceAVT - combined service metadata, as returned by annotation vocabularies tools
8
11
  */
9
- export declare function addEnumForVariantPaths(entityType: EntityType, appSchema: object, oDataServiceAVT: ConverterOutput): void;
12
+ export declare function addEnumForVariantPaths(entityType: EntityType, entitySet: EntitySet, appSchema: Definition, oDataServiceAVT: ConverterOutput): void;
10
13
  /**
11
14
  * Generates an app specific schema for the FE V2 Listreport from the generic schema.
12
15
  * Generic types are replaced by information from the app specific annotations.
@@ -1,4 +1,4 @@
1
- import { GenerateAppSchemaParameters } from '../../../v2';
1
+ import type { GenerateAppSchemaParameters } from '../../../v2';
2
2
  /**
3
3
  * Generates an app specific schema out of the generic schema.
4
4
  * @param {GenerateSchemaParameters} generateParameters - list of API input parameters
@@ -1,4 +1,4 @@
1
- import { Manifest } from '../../../specification/common';
1
+ import type { Manifest } from '../../../specification/common';
2
2
  /**
3
3
  * Method returns array of card definition names.
4
4
  * @param genericSchema - Generic schema of Overview Page.
@@ -1,8 +1,9 @@
1
- import { FileData } from '../../common';
2
- import { AnnotationTerm, EntityType, LineItem, SelectionFields } from '@sap-ux/vocabularies-types';
3
- import { SapUiAppPageV2 } from '../../../specification/v2';
4
- import { MetadataInstanceInterface } from '../../common/decoration/factory';
5
- import { PageType, PageTypeV4 } from '../../../specification/common';
1
+ import type { Definition } from 'typescript-json-schema';
2
+ import type { FileData } from '../../common';
3
+ import type { MetadataInstanceInterface } from '../../common/decoration/factory';
4
+ import type { PageType, PageTypeV4 } from '../../../specification/common';
5
+ import type { SapUiAppPageV2 } from '../../../specification/v2';
6
+ import type { AnnotationTerm, EntityType, LineItem, SelectionFields } from '@sap-ux/vocabularies-types';
6
7
  import { ActionTypeV2 } from '../types';
7
8
  /**
8
9
  * Processes a LineItem record of type DataFieldForAction and DataFieldForIntentBasedNavigation during app schema generation
@@ -28,7 +29,7 @@ export declare function handleActionRecord(appSchema: object, actions: object, l
28
29
  * in case of LR or ALP no ID is passed, 'LineItems' is taken then.
29
30
  * @param customColumnRef - schema reference to custom column definition.
30
31
  */
31
- export declare function addLineItemsType(appSchema: object, lineItemAnnotation: AnnotationTerm<LineItem>, entityType: EntityType, lineItemId?: string, customColumnRef?: string): void;
32
+ export declare function addLineItemsType(appSchema: Definition, lineItemAnnotation: AnnotationTerm<LineItem>, entityType: EntityType, lineItemId?: string, customColumnRef?: string): void;
32
33
  /**
33
34
  * Adds enum entries of possible leading properties for 'leadingProperty' property in TableCustomColumn properties.
34
35
  * @param appSchema - the app specific schema that shall get enhanced
@@ -51,7 +52,7 @@ export declare function addTabkeyEnum(appSchema: object, definitionName: string,
51
52
  * @param {string} property Property name.
52
53
  * @param {string} definitionName Definition name of CustomColumn definition.
53
54
  */
54
- export declare function addFragmentEnum(appSchema: object, fragments: FileData[], appId: string, property: string, definitionName: string): void;
55
+ export declare function addFragmentEnum(appSchema: Definition, fragments: FileData[], appId: string, property: string, definitionName: string): void;
55
56
  /**
56
57
  * Adds the custom columns to the line item records of the app schema (for the list report comprising a table).
57
58
  * @param {object} appSchema The app specific schema that shall get enhanced.
@@ -1,9 +1,18 @@
1
- import { SapUiAppPagesV2, Pages } from '../../../../specification/v2';
2
- import { Manifest } from '../../../../specification/common';
1
+ import type { SapUiAppPagesV2, Pages } from '../../../../specification/v2';
2
+ import type { Manifest } from '../../../../specification/common';
3
3
  import { AppProvider } from '../../../common/appProvider';
4
- import { FileData, Files } from '../../../common';
5
- import { ExtensionLogger } from '../../../../v2';
4
+ import type { FileData, Files } from '../../../common';
5
+ import type { ExtensionLogger } from '../../../../v2';
6
+ /**
7
+ * The V2AppProvider collects all the app information for a Fiori Elements V2 app
8
+ */
6
9
  export declare class V2AppProvider extends AppProvider {
7
10
  constructor(manifest: Manifest, changes: string[], schemas: Files, fragments?: FileData[], logger?: ExtensionLogger);
8
11
  }
12
+ /**
13
+ * Collects all pages of a V2 app from the manifest, by traversing the V2 page hierarchy.
14
+ * @param v2Pages - entry point = complex page definition in manifest
15
+ * @param componentName - Component name
16
+ * @returns index table of pages
17
+ */
9
18
  export declare function getPages(v2Pages: SapUiAppPagesV2, componentName: string): Pages;
@@ -1,7 +1,7 @@
1
- import { Manifest } from '../../../../specification/common';
1
+ import type { Manifest } from '../../../../specification/common';
2
2
  import { AppProvider } from '../../../common/appProvider';
3
- import { Files } from '../../../common';
4
- import { ExtensionLogger } from '../../../..';
3
+ import type { Files } from '../../../common';
4
+ import type { ExtensionLogger } from '../../../..';
5
5
  export declare class V2OvpProvider extends AppProvider {
6
6
  constructor(manifest: Manifest, schemas: Files, logger?: ExtensionLogger);
7
7
  }
@@ -1,9 +1,10 @@
1
1
  import { PageType } from '../../../../specification/common/page';
2
- import { ListReportConfig, AnalyticalListPageConfig, ObjectPageConfig } from '../../../../specification/v2/pages';
3
- import { FileData, ObjectPageSectionData } from '../../../common';
4
- import { Manifest } from '../../../../specification/common/webapp/manifest/Manifest';
5
- import { SapUiAppPageV2, TableTypeV2 } from '../../../../specification/v2';
6
- import { ExtensionLogger } from '../../../../apiTypes';
2
+ import type { ListReportConfig, AnalyticalListPageConfig, ObjectPageConfig } from '../../../../specification/v2/pages';
3
+ import type { FileData, ObjectPageSectionData } from '../../../common';
4
+ import type { Manifest } from '../../../../specification/common/webapp/manifest/Manifest';
5
+ import type { SapUiAppPageV2 } from '../../../../specification/v2';
6
+ import { TableTypeV2 } from '../../../../specification/v2';
7
+ import type { ExtensionLogger } from '../../../../apiTypes';
7
8
  export declare type LROPConfigsType = ListReportConfig | AnalyticalListPageConfig | ObjectPageConfig;
8
9
  /**
9
10
  * Unescapes the selector ID of a flex change
@@ -1,4 +1,4 @@
1
- import { TreeTable, ResponsiveTable, AnalyticalTable, GridTable, TableALP } from '../../../../specification/v2/index';
1
+ import type { TreeTable, ResponsiveTable, AnalyticalTable, GridTable, TableALP } from '../../../../specification/v2/index';
2
2
  export declare type FlexForTransfer = {
3
3
  controlId: string;
4
4
  controlType: string;
@@ -1,5 +1,5 @@
1
- import { AnalyticalListPageConfig } from '../../../../specification/v2';
2
- import { ImportALPV2Parameters } from '../../../../apiTypes';
1
+ import type { AnalyticalListPageConfig } from '../../../../specification/v2';
2
+ import type { ImportALPV2Parameters } from '../../../../apiTypes';
3
3
  /**
4
4
  * Creates the configuration file content for an analytical list page V2
5
5
  * @param {ImportALPV2Parameters} importParameters - object comprising all input data
@@ -1,5 +1,5 @@
1
- import { ListReportConfig } from '../../../../specification/v2/pages';
2
- import { ImportListReportV2Parameters } from '../../../../apiTypes';
1
+ import type { ListReportConfig } from '../../../../specification/v2/pages';
2
+ import type { ImportListReportV2Parameters } from '../../../../apiTypes';
3
3
  /**
4
4
  * Creates the configuration file content for a list report V2
5
5
  * @param {ImportListReportV2Parameters} importParameters - object comprising all input data
@@ -1,4 +1,4 @@
1
- import { ImportObjectPageV2Parameters, ObjectPageConfig } from '../../../../v2';
1
+ import type { ImportObjectPageV2Parameters, ObjectPageConfig } from '../../../../v2';
2
2
  /**
3
3
  * Creates the configuration (file content) for a V2 object page
4
4
  * @param {ImportObjectPageV2Parameters} importParameters - object comprising all input data
@@ -1,5 +1,5 @@
1
- import { OverviewPageConfig } from '../../../../specification/v2';
2
- import { ImportOverviewPageV2Parameters } from '../../../..';
1
+ import type { OverviewPageConfig } from '../../../../specification/v2';
2
+ import type { ImportOverviewPageV2Parameters } from '../../../..';
3
3
  /**
4
4
  * Creates the configuration (file content) for an overview page
5
5
  * @param {object} manifest - manifest of the app
@@ -1,4 +1,5 @@
1
- import { SapUiAppPageV2, SapUiAppPagesV2, ListReportConfig, AnalyticalListPageConfig } from '../../../specification/v2';
1
+ import type { SapUiAppPageV2, SapUiAppPagesV2, ListReportConfig, AnalyticalListPageConfig } from '../../../specification/v2';
2
+ import type { ExtensionLogger } from '../../..';
2
3
  /**
3
4
  * Determines a V2 object page in the manifest, based on the given entity set
4
5
  * @param v2Pages - manifest['sap.ui.generic.app'].pages
@@ -20,7 +21,7 @@ export declare function findListReportPageV2(v2Pages: SapUiAppPagesV2, pageKeys:
20
21
  * @param pageKeys - list of page keys, to be filled
21
22
  * @returns v2Page - page as specified in the manifest
22
23
  */
23
- export declare function findAnalyticalListPage(v2Pages: SapUiAppPagesV2, pageKeys: string[]): SapUiAppPageV2 | undefined;
24
+ export declare function findAnalyticalListPage(v2Pages: SapUiAppPagesV2, pageKeys: string[], logger?: ExtensionLogger): SapUiAppPageV2 | undefined;
24
25
  /**
25
26
  * Method checks if passed extension key is associated to custom section with passed entity.
26
27
  * @param {string} extensionKey - Extension key.
@@ -1,10 +1,10 @@
1
- import { UI5Version, PageType, ExtensionLogger } from '../..';
2
- import { ObjectPageConfig, SapUiAppPageV2 } from '../../v2';
3
- import { FlexChangesForTransfer } from './import/controls/table';
4
- import { MetadataFactory, MetadataInstanceInterface } from '../common/decoration/factory';
5
- import { ExportResults } from '../common';
6
- import * as v2controls from './export/controls';
7
- import * as v2pages from './export/pages';
1
+ import type { UI5Version, PageType, ExtensionLogger } from '../..';
2
+ import type { ObjectPageConfig, SapUiAppPageV2 } from '../../v2';
3
+ import type { FlexChangesForTransfer } from './import/controls/table';
4
+ import type { MetadataFactory, MetadataInstanceInterface } from '../common/decoration/factory';
5
+ import type { ExportResults } from '../common';
6
+ import type * as v2controls from './export/controls';
7
+ import type * as v2pages from './export/pages';
8
8
  export declare type V2Controls = typeof v2controls;
9
9
  export declare type V2Pages = typeof v2pages;
10
10
  export declare type TransferParameterTypeV2 = {
@@ -1,18 +1,33 @@
1
- import { AppSettings as CommonSettingsV4, FlexibleColumnLayoutV4 } from '../../specification/v4/ApplicationV4';
2
- import { Application } from '../../specification/common/Application';
3
- import { Target, Manifest } from '../../specification/common';
4
- import { Pages } from '../../specification/v4';
1
+ import type { AppSettings as CommonSettingsV4, FlexibleColumnLayoutV4 } from '../../specification/v4/ApplicationV4';
2
+ import type { Application } from '../../specification/common/Application';
3
+ import type { Target, Manifest } from '../../specification/common';
4
+ import type { Pages } from '../../specification/v4';
5
5
  export declare const getSettingsPathForPage: (pageName: string[]) => string;
6
+ export declare const getSettingsPathForLRViewsPaths: (pageName: string[]) => string;
6
7
  export declare const getSettingsPathForHeaderOP: (pageName: string[]) => string;
7
8
  export declare const getControlConfigurationPath: (pageName: string[]) => string;
8
- export declare const getHeaderFacetSettingPath: (pageName: string[], manifest: Manifest, sectionId: string) => string;
9
- export declare const getTableSettingsPathForLR: (pageName: string[]) => string;
10
- export declare const getColumnsPathForLR: (pageName: string[], manifest: Manifest, sectionId: string, columnKey: string) => string;
11
- export declare const getActionsPathForLR: (pageName: string[], manifest: Manifest, sectionId: string, columnKey: string) => string;
12
- export declare const getColumnsPathForOP: (pageName: string[], manifest: Manifest, sectionId: string, columnKey: string) => string;
13
- export declare const getActionsPathForOP: (pageName: string[], manifest: Manifest, sectionId: string, columnKey: string) => string;
14
- export declare const getTableSettingsPathForOP: (pageName: string[], manifest: Manifest, sectionId: string) => string;
15
- export declare const getCustomSectionPath: (pageName: string[], manifest: Manifest, sectionId: string, pathPart?: string) => string;
9
+ export declare const getHeaderFacetSettingPath: (pageName: string[], _manifest: Manifest, sectionId: string) => string;
10
+ /**
11
+ * Common function that calculates the path in manifest for table settings of a list report or ALP table view
12
+ * @param pageName - page name in manifest
13
+ * @param manifest - manifest (not used)
14
+ * @param targetAnnotationEncoded - encoded target annotation (not used)
15
+ * @param viewKey - view key (not used)
16
+ * @param targetAnnotation - target annotation, i.e. the line item (with or without qualifier)
17
+ * @returns - path as string
18
+ */
19
+ export declare const getTableSettingsPathForView: (pageName: string[], _manifest: Manifest, _targetAnnotationEncoded: string, _viewKey: string, targetAnnotation: string) => string;
20
+ export declare const getExportSectionId: (sectionId: any) => string;
21
+ export declare const getTableSettingsPathForLR: (pageName: string[], manifest: Manifest, targetAnnotationEncoded: string, columnKey: string, targetAnnotation: string) => string;
22
+ export declare const getQuickVariantPath: (pageName: string[], manifest: Manifest, targetAnnotationEncoded: string, columnKey: string, targetAnnotation: string) => string;
23
+ export declare const getColumnsPathForView: (pageName: string[], _manifest: Manifest, targetAnnotationEncoded: string, columnKey: string, targetAnnotation: string) => string;
24
+ export declare const getColumnsPathForLR: (pageName: string[], manifest: Manifest, targetAnnotationEncoded: string, columnKey: string, targetAnnotation: string) => string;
25
+ export declare const getActionsPathForView: (pageName: string[], _manifest: Manifest, _targetAnnotationEncoded: string, columnKey: string, targetAnnotation: string) => string;
26
+ export declare const getActionsPathForLR: (pageName: string[], manifest: Manifest, targetAnnotationEncoded: string, columnKey: string, targetAnnotation: string) => string;
27
+ export declare const getColumnsPathForOP: (pageName: string[], _manifest: Manifest, sectionId: string, columnKey: string) => string;
28
+ export declare const getActionsPathForOP: (pageName: string[], _manifest: Manifest, sectionId: string, columnKey: string) => string;
29
+ export declare const getTableSettingsPathForOP: (pageName: string[], _manifest: Manifest, sectionId: string) => string;
30
+ export declare const getCustomSectionPath: (pageName: string[], _manifest: Manifest, sectionId: string, pathPart?: string) => string;
16
31
  export declare class ApplicationV4 implements Application {
17
32
  $schema?: string;
18
33
  id?: string;
@@ -25,4 +40,5 @@ export declare class AppSettings implements CommonSettingsV4 {
25
40
  title?: string;
26
41
  description?: string;
27
42
  flexibleColumnLayout?: FlexibleColumnLayoutV4;
43
+ flexEnabled?: boolean;
28
44
  }
@@ -1,4 +1,4 @@
1
- import { FilterBar as FilterBarConfig, SelectionFields } from '../../../../specification/v4';
1
+ import type { FilterBar as FilterBarConfig, SelectionFields } from '../../../../specification/v4';
2
2
  export declare class FilterBar implements FilterBarConfig {
3
3
  selectionFields?: SelectionFields;
4
4
  }
@@ -1,4 +1,5 @@
1
- import { SectionPosition, ObjectPageCustomSectionFragment as FragmentCustomSectionConfig, CustomSectionViewTypesV4 } from '../../../../specification/v4';
1
+ import type { SectionPosition, ObjectPageCustomSectionFragment as FragmentCustomSectionConfig } from '../../../../specification/v4';
2
+ import { CustomSectionViewTypesV4 } from '../../../../specification/v4';
2
3
  import { SAPUI5_FRAGMENT_CLASS } from '../../../../specification/common';
3
4
  export declare class ObjectPageCustomSectionFragment implements FragmentCustomSectionConfig {
4
5
  relatedFacet: string;
@@ -1,4 +1,4 @@
1
- import { ObjectPageHeader as ObjectPageHeaderConfig, HeaderSections } from '../../../../specification/v4/controls';
1
+ import type { ObjectPageHeader as ObjectPageHeaderConfig, HeaderSections } from '../../../../specification/v4/controls';
2
2
  export declare class ObjectPageHeader implements ObjectPageHeaderConfig {
3
3
  editableHeaderContent?: boolean;
4
4
  showRelatedApps?: boolean;
@@ -1,4 +1,4 @@
1
- import { ObjectPageHeaderSectionForm as ObjectPageHeaderSectionFormIF, ObjectPageHeaderSectionChart as ObjectPageHeaderSectionChartIF, ObjectPageHeaderSectionDataPoint as ObjectPageHeaderSectionDataPointIF, ObjectPageHeaderSectionContact as ObjectPageHeaderSectionContactIF, ObjectPageHeaderSectionAddress as ObjectPageHeaderSectionAddressIF, CommonHeaderFacetSettings as CommonHeaderFacetSettingsIF, HeaderSections as HeaderSectionsIF, FlexSettings as FlexSettingsIF, DesigntimeValues } from '../../../../specification/v4/controls';
1
+ import type { ObjectPageHeaderSectionForm as ObjectPageHeaderSectionFormIF, ObjectPageHeaderSectionChart as ObjectPageHeaderSectionChartIF, ObjectPageHeaderSectionDataPoint as ObjectPageHeaderSectionDataPointIF, ObjectPageHeaderSectionContact as ObjectPageHeaderSectionContactIF, ObjectPageHeaderSectionAddress as ObjectPageHeaderSectionAddressIF, CommonHeaderFacetSettings as CommonHeaderFacetSettingsIF, HeaderSections as HeaderSectionsIF, FlexSettings as FlexSettingsIF, DesigntimeValues } from '../../../../specification/v4/controls';
2
2
  export declare class FlexSettings implements FlexSettingsIF {
3
3
  designtime?: DesigntimeValues;
4
4
  }
@@ -1,4 +1,4 @@
1
- import { ObjectPageLayout as ObjectPageLayoutConfig, SectionLayoutType } from '../../../../specification/v4/controls/ObjectPageLayout';
1
+ import type { ObjectPageLayout as ObjectPageLayoutConfig, SectionLayoutType } from '../../../../specification/v4/controls/ObjectPageLayout';
2
2
  export declare class ObjectPageLayout implements ObjectPageLayoutConfig {
3
3
  sectionLayout?: SectionLayoutType;
4
4
  }
@@ -1,4 +1,4 @@
1
- import { ObjectPageTable as ObjectPageTableConfig, TableTypeV4, SelectionMode, TableCreationModeType, AnnotationPathAsObject, TableCreationMode, PersonalizationType, QuickVariantSelectionV4 } from '../../../../specification/v4';
1
+ import type { ObjectPageTable as ObjectPageTableConfig, TableTypeV4, SelectionMode, TableCreationModeType, AnnotationPathAsObject, TableCreationMode, PersonalizationType, QuickVariantSelectionV4 } from '../../../../specification/v4';
2
2
  export declare class TableCreationModeOP implements TableCreationMode {
3
3
  name?: TableCreationModeType;
4
4
  createAtEnd?: boolean;
@@ -1,4 +1,4 @@
1
- import { ObjectPageTableColumn as ObjectPageTableColumnIF, TableCustomColumnOP as TableCustomColumnIF, ObjectPageTableColumnAction as ObjectPageTableColumnActionIF, Availability, ActionAfterExecutionConfigurationOP as ActionAfterExecutionConfigurationIF, PositionOP as PositionIF, HorizontalAlign, ColumnPropertiesType, Placement } from '../../../../specification/v4';
1
+ import type { ObjectPageTableColumn as ObjectPageTableColumnIF, TableCustomColumnOP as TableCustomColumnIF, ObjectPageTableColumnAction as ObjectPageTableColumnActionIF, Availability, ActionAfterExecutionConfigurationOP as ActionAfterExecutionConfigurationIF, PositionOP as PositionIF, HorizontalAlign, ColumnPropertiesType, Placement } from '../../../../specification/v4';
2
2
  export declare class ActionAfterExecutionConfigurationOP implements ActionAfterExecutionConfigurationIF {
3
3
  navigateToInstance?: boolean;
4
4
  enableAutoScroll?: boolean;
@@ -1,4 +1,4 @@
1
- import { ObjectPageToolBarAction as ToolBarActionIF, SelectType } from '../../../../specification/v4';
1
+ import type { ObjectPageToolBarAction as ToolBarActionIF, SelectType } from '../../../../specification/v4';
2
2
  export declare class ObjectPageToolBarAction implements ToolBarActionIF {
3
3
  enableOnSelect?: SelectType;
4
4
  }