@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,29 +1,86 @@
1
- import { Table as TableConfig, TableTypeV4, TableCreationModeType, SelectionMode, InitialLoadType, AnnotationPathAsObject, AnnotationPathWithKey } from '../../../../specification/v4';
1
+ import type { TableSettings as TableSettingsIF, Table as TableInterface, TableCreationMode as TableCreationModeIF, ViewTableCreationMode as ViewTableCreationModeIF, PersonalizationType as PersonalizationTypeIF, ViewPersonalizationType as ViewPersonalizationTypeIF, QuickVariantSelectionV4 as QuickVariantSelectionV4IF, ALPChartView as ALPChartIF, LRChartView as LRChartViewIF, ALPTableView as ALPTableIF, LRTableView as LRTableViewIF, TableTypeV4, TableCreationModeType, ViewChartToolBar, SelectionMode, InitialLoadType, AnnotationPathAsObject, MultiTableModeV4 as MultiTableModeIF } from '../../../../specification/v4';
2
+ import type { ToolBar } from './ToolBar';
3
+ /**
4
+ * sync rule function for export of creationMode.name
5
+ * @param manifestSection - section in manifest comprising the table settings
6
+ * @param configObject - section in config.json describing the table settings
7
+ * @param key - key or property in config.json
8
+ * @param manifestKey - key or property in manifest
9
+ */
2
10
  export declare function exportCreationModeName(manifestSection: unknown, configObject: unknown, key: string, manifestKey: string): void;
11
+ /**
12
+ * common sync rule function for export of personalization properties
13
+ * @param manifestSection - section in manifest comprising the table settings
14
+ * @param configObject - section in config.json describing the table settings
15
+ * @param key - key or property in config.json
16
+ * @param manifestKey - key or property in manifest
17
+ */
3
18
  export declare function exportPersonalizationProperty(manifestSection: unknown, configObject: unknown, key: string, manifestKey: string): void;
19
+ /**
20
+ * sync rule function for the deletion of creationMode.name
21
+ * @param manifestSection - section in manifest comprising the table settings
22
+ * @param manifestKey - key or property in manifest
23
+ */
4
24
  export declare function deleteCreationModeName(manifestSection: unknown, manifestKey: string): void;
5
- export declare function deletePersonalizationProperty(manifestSection: unknown, manifestKey: string): void;
25
+ /**
26
+ * common sync rule function for the deletion of any property of personalization
27
+ * @param manifestSection - section in manifest comprising the table settings
28
+ * @param manifestKey - key or property in manifest
29
+ */
30
+ export declare function deletePersonalizationProperty(manifestSection: unknown, _configObject: object, _key: string, manifestKey: string): void;
31
+ /**
32
+ * sync rule function for export of creationMode.createAtEnd
33
+ * @param manifestSection - section in manifest comprising the table settings
34
+ * @param configObject - section in config.json describing the table settings
35
+ * @param key - key or property in config.json
36
+ * @param manifestKey - key or property in manifest
37
+ */
6
38
  export declare function exportCreationModeCreateAtEnd(manifestSection: unknown, configObject: unknown, key: string, manifestKey: string): void;
39
+ /**
40
+ * sync rule function for the deletion of creationMode.createAtEnd
41
+ * @param manifestSection - section in manifest comprising the table settings
42
+ * @param manifestKey - key or property in manifest
43
+ */
7
44
  export declare function deleteCreationModeCreateAtEnd(manifestSection: unknown, manifestKey: string): void;
8
- export declare class TableCreationMode {
45
+ /**********************************
46
+ * Sync class for TableCreationMode
47
+ */
48
+ export declare class TableCreationMode implements TableCreationModeIF {
9
49
  name?: TableCreationModeType;
10
50
  createAtEnd?: boolean;
11
51
  }
12
- export declare class PersonalizationType {
52
+ /**********************************
53
+ * Sync class for TableCreationMode
54
+ */
55
+ export declare class ViewTableCreationMode implements ViewTableCreationModeIF {
56
+ name?: TableCreationModeType;
57
+ createAtEnd?: boolean;
58
+ }
59
+ /************************************
60
+ * Sync class for PersonalizationType
61
+ */
62
+ export declare class PersonalizationType implements PersonalizationTypeIF {
63
+ column?: boolean;
64
+ sort?: boolean;
65
+ filter?: boolean;
66
+ }
67
+ export declare class ViewPersonalizationType implements ViewPersonalizationTypeIF {
13
68
  column?: boolean;
14
69
  sort?: boolean;
15
70
  filter?: boolean;
16
71
  }
17
- export declare class QuickVariantSelectionV4 {
72
+ /****************************************
73
+ * Sync class for QuickVariantSelectionV4
74
+ */
75
+ export declare class QuickVariantSelectionV4 implements QuickVariantSelectionV4IF {
18
76
  paths: AnnotationPathAsObject[];
19
77
  hideTableTitle?: boolean;
20
78
  showCounts?: boolean;
21
79
  }
22
- export declare class MultiTableModeV4 {
23
- paths: AnnotationPathWithKey[];
24
- showCounts?: boolean;
25
- }
26
- export declare class Table implements TableConfig {
80
+ /****************************************
81
+ * Sync class for TableSettings
82
+ */
83
+ export declare class TableSettings implements TableSettingsIF {
27
84
  type?: TableTypeV4;
28
85
  creationMode?: TableCreationMode;
29
86
  personalization?: PersonalizationType;
@@ -31,8 +88,72 @@ export declare class Table implements TableConfig {
31
88
  selectAll?: boolean;
32
89
  selectionLimit?: number;
33
90
  enableExport?: boolean;
91
+ quickVariantSelection?: QuickVariantSelectionV4;
34
92
  condensedTableLayout?: boolean;
93
+ }
94
+ /****************************************
95
+ * Sync class for ALPChartView (renamed due to indirection in app schema)
96
+ */
97
+ export declare class ALPChart implements ALPChartIF {
98
+ annotationPath: string;
99
+ toolBar?: ViewChartToolBar;
100
+ }
101
+ /****************************************
102
+ * Sync class for view table settings
103
+ */
104
+ export declare class TableViewSettings implements TableSettingsIF {
105
+ type?: TableTypeV4;
106
+ creationMode?: TableCreationMode;
107
+ personalization?: ViewPersonalizationType;
108
+ selectionMode?: SelectionMode;
109
+ selectAll?: boolean;
110
+ selectionLimit?: number;
111
+ enableExport?: boolean;
35
112
  quickVariantSelection?: QuickVariantSelectionV4;
113
+ condensedTableLayout?: boolean;
114
+ }
115
+ /****************************************
116
+ * Sync class for ALPTableView (renamed due to indirection in app schema)
117
+ */
118
+ export declare class ALPTable extends TableViewSettings implements ALPTableIF {
119
+ annotationPath: string;
120
+ initialLoad?: InitialLoadType;
121
+ toolBar?: ToolBar;
122
+ }
123
+ /****************************************
124
+ * Sync class for LRChartView
125
+ */
126
+ export declare class LRChartView implements LRChartViewIF {
127
+ key: string;
128
+ index: number;
129
+ annotationPath: string;
130
+ entitySet?: string;
131
+ toolBar?: ViewChartToolBar;
132
+ }
133
+ /****************************************
134
+ * Sync class for LRTableView
135
+ */
136
+ export declare class LRTableView extends TableViewSettings implements LRTableViewIF {
137
+ key: string;
138
+ index: number;
139
+ annotationPath: string;
140
+ keepPreviousPersonalization?: boolean;
141
+ entitySet?: string;
142
+ toolBar?: ToolBar;
143
+ }
144
+ /**
145
+ * LR mulit-view: own class for properties on views' level
146
+ */
147
+ export declare class MultiTableModeV4 implements MultiTableModeIF {
148
+ [key: string]: LRTableView | LRChartView | boolean;
149
+ showCounts?: boolean;
150
+ }
151
+ /****************************************
152
+ * Sync class for Table
153
+ */
154
+ export declare class Table extends TableSettings implements TableInterface {
155
+ annotationPath?: string;
36
156
  views?: MultiTableModeV4;
37
157
  initialLoad?: InitialLoadType;
158
+ toolBar?: ToolBar;
38
159
  }
@@ -1,19 +1,45 @@
1
- import { TableColumn as TableColumnIF, TableColumnAction as TableColumnActionIF, TableCustomColumn as TableCustomColumnIF, Availability, ActionAfterExecutionConfiguration as ActionAfterExecutionConfigurationIF, ColumnPropertiesType, HorizontalAlign, Position as PositionIF, Placement } from '../../../../specification/v4';
1
+ import type { TableColumn as TableColumnIF, ViewTableColumn as ViewTableColumnIF, TableColumnAction as TableColumnActionIF, ViewTableColumnAction as ViewTableColumnActionIF, TableCustomColumn as TableCustomColumnIF, ViewTableCustomColumn as ViewTableCustomColumnIF, Availability, ActionAfterExecutionConfiguration as ActionAfterExecutionConfigurationIF, ColumnPropertiesType, HorizontalAlign, Position as PositionIF, ViewPosition as ViewPositionIF, Placement } from '../../../../specification/v4';
2
2
  export declare class ActionAfterExecutionConfiguration implements ActionAfterExecutionConfigurationIF {
3
3
  navigateToInstance?: boolean;
4
4
  enableAutoScroll?: boolean;
5
5
  }
6
+ /************************************
7
+ * Sync class for TableColumn
8
+ */
6
9
  export declare class TableColumn implements TableColumnIF {
7
10
  width?: string;
8
11
  availability?: Availability;
9
12
  }
13
+ /************************************
14
+ * Sync class for ViewTableColumn
15
+ */
16
+ export declare class ViewTableColumn implements ViewTableColumnIF {
17
+ width?: string;
18
+ availability?: Availability;
19
+ }
10
20
  export declare class TableColumnAction extends TableColumn implements TableColumnActionIF {
11
21
  afterExecution?: ActionAfterExecutionConfiguration;
12
22
  }
23
+ export declare class ViewTableColumnAction extends ViewTableColumn implements ViewTableColumnActionIF {
24
+ afterExecution?: ActionAfterExecutionConfiguration;
25
+ }
26
+ /**
27
+ * Sync class for Position
28
+ */
13
29
  export declare class Position implements PositionIF {
14
30
  anchor?: string;
15
31
  placement: Placement;
16
32
  }
33
+ /**
34
+ * Sync class for ViewPosition
35
+ */
36
+ export declare class ViewPosition implements ViewPositionIF {
37
+ anchor?: string;
38
+ placement: Placement;
39
+ }
40
+ /**
41
+ * Sync class for TableCustomColumn
42
+ */
17
43
  export declare class TableCustomColumn implements TableCustomColumnIF {
18
44
  position?: Position;
19
45
  header: string;
@@ -23,3 +49,15 @@ export declare class TableCustomColumn implements TableCustomColumnIF {
23
49
  availability?: Availability;
24
50
  properties?: ColumnPropertiesType;
25
51
  }
52
+ /**
53
+ * Sync class for ViewTableCustomColumn
54
+ */
55
+ export declare class ViewTableCustomColumn implements ViewTableCustomColumnIF {
56
+ position?: Position;
57
+ header: string;
58
+ width?: string;
59
+ template: string;
60
+ horizontalAlign?: HorizontalAlign;
61
+ availability?: Availability;
62
+ properties?: ColumnPropertiesType;
63
+ }
@@ -1,4 +1,4 @@
1
- import { ToolBar as ToolBarIF, Actions as ActionsIF } from '../../../../specification/v4';
1
+ import type { ToolBar as ToolBarIF, Actions as ActionsIF } from '../../../../specification/v4';
2
2
  import { ToolBarAction } from './ToolBarAction';
3
3
  export declare class Actions implements ActionsIF {
4
4
  [key: string]: ToolBarAction;
@@ -1,4 +1,7 @@
1
- import { ToolBarAction as ToolBarActionIF, SelectType } from '../../../../specification/v4';
1
+ import type { ToolBarAction as ToolBarActionIF, ViewToolBarAction as ViewToolBarActionIF, SelectType } from '../../../../specification/v4';
2
2
  export declare class ToolBarAction implements ToolBarActionIF {
3
3
  enableOnSelect?: SelectType;
4
4
  }
5
+ export declare class ViewToolBarAction implements ViewToolBarActionIF {
6
+ enableOnSelect?: SelectType;
7
+ }
@@ -1,5 +1,5 @@
1
- import { ExportResults } from '../../common';
2
- import { UI5Version } from '../../..';
1
+ import type { ExportResults } from '../../common';
2
+ import type { UI5Version } from '../../..';
3
3
  /**
4
4
  * General API for the export of a V4 config page
5
5
  * Export means the transfer of the properties and values of the given config to manifest entries or flex changes
@@ -1,5 +1,5 @@
1
- import { TransferParameterTypeV4 } from './types';
2
- import { ExtensionLogger } from '../../../apiTypes';
1
+ import type { TransferParameterTypeV4 } from './types';
2
+ import type { ExtensionLogger } from '../../../apiTypes';
3
3
  /**
4
4
  * Function creates a new custom column with aid of the FPM writer
5
5
  * @param propertyDefinition - Definition of the given property in JSON schema
@@ -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
  * V4 specific factory class for creating instances of (reflect) metadata classes
4
5
  */
@@ -1,4 +1,4 @@
1
- import { SapUi5V4, ApplicationV4 } from '../../../specification/v4';
1
+ import type { SapUi5V4, ApplicationV4 } from '../../../specification/v4';
2
2
  /**
3
3
  * Method updates Manifest depending on is FCL ON or OFF.
4
4
  * @param {SapUi5} manifestUI5 - SAPUI5 manifest data.
@@ -1,4 +1,4 @@
1
- import { Pages, SapUi5RoutingV4 } from '../../../v4';
1
+ import type { Pages, SapUi5RoutingV4 } from '../../../v4';
2
2
  export declare enum Constants {
3
3
  OptionalQuery = ":?query:",
4
4
  Component = "sap/fe/AppComponent",
@@ -1,7 +1,13 @@
1
- import { ListReportConfig as ListReportConfigV4, VariantManagementTypeListReport } from '../../../../specification/v4';
2
- import { Table, FilterBar } from '../controls';
1
+ import type { ALPTableView, ALPChartView, DefaultPathType, ListReportConfig as ListReportConfigV4, VariantManagementTypeListReport } from '../../../../specification/v4';
2
+ import type { Table, FilterBar } from '../controls';
3
+ /**
4
+ * Sync class for import and export of V4 list report
5
+ */
3
6
  export declare class ListReport implements ListReportConfigV4 {
4
- table?: Table;
7
+ chart?: ALPChartView;
8
+ table?: ALPTableView | Table;
5
9
  variantManagement?: VariantManagementTypeListReport;
10
+ defaultPath?: DefaultPathType;
11
+ defaultTemplateAnnotationPath?: string;
6
12
  filterbar?: FilterBar;
7
13
  }
@@ -1,5 +1,5 @@
1
- import { ObjectPageHeader, ObjectPageLayout } from '../controls';
2
- import { ObjectPageConfig as ObjectPageConfigV4, GenericSections, VariantManagementTypeObjectPage, CustomSections } from '../../../../specification/v4';
1
+ import type { ObjectPageHeader, ObjectPageLayout } from '../controls';
2
+ import type { ObjectPageConfig as ObjectPageConfigV4, GenericSections, VariantManagementTypeObjectPage, CustomSections } from '../../../../specification/v4';
3
3
  export declare class ObjectPage implements ObjectPageConfigV4 {
4
4
  header?: ObjectPageHeader;
5
5
  layout?: ObjectPageLayout;
@@ -1,3 +1,2 @@
1
1
  export * from './ListReport';
2
2
  export * from './ObjectPage';
3
- export * from './AnalyticalListPage';
@@ -1,8 +1,8 @@
1
- import { ExtensionLogger } from '../../..';
2
- import { PageType } from '../../../specification/common';
3
- import { UI5Version } from '../../../v2';
4
- import { MetadataFactory } from '../../common/decoration/factory';
5
- import { ExportResults, FlexAdapter } from '../../common/types';
1
+ import type { Definition } from 'typescript-json-schema';
2
+ import type { ExtensionLogger, UI5Version } from '../../..';
3
+ import type { PageType } from '../../../specification/common';
4
+ import type { MetadataFactory } from '../../common/decoration/factory';
5
+ import type { ExportResults, FlexAdapter, TemplateType } from '../../common';
6
6
  export declare type ManifestPathSection = (path: string, targetAnnotationPath: string) => string;
7
7
  export interface ManifestConverter4Section {
8
8
  path: ManifestPathSection;
@@ -15,7 +15,8 @@ export declare type TransferParameterTypeV4 = {
15
15
  exportResults: ExportResults;
16
16
  appId: string;
17
17
  baseId: string;
18
- appSchema: object;
18
+ appSchema: Definition;
19
+ config: object;
19
20
  ui5Version: UI5Version;
20
21
  factory: MetadataFactory;
21
22
  pageNameArray: string[];
@@ -23,4 +24,5 @@ export declare type TransferParameterTypeV4 = {
23
24
  title: string;
24
25
  appRootPath?: string;
25
26
  logger?: ExtensionLogger;
27
+ templateType: TemplateType;
26
28
  };
@@ -1,4 +1,4 @@
1
- import { SapUi5V4 } from '../../../specification/v4';
1
+ import type { SapUi5V4 } from '../../../specification/v4';
2
2
  /**
3
3
  * Method updates passed dependency lib in passed manifest.
4
4
  * @param {SapUi5V4} manifest - Manifest "sap.ui5" object.
@@ -1,5 +1,6 @@
1
- import { FileData } from '../../common/types';
2
- import { ExtensionLogger } from '../../../apiTypes';
1
+ import type { FileData } from '../../common/types';
2
+ import { TemplateType } from '../../common/utils';
3
+ import type { ExtensionLogger } from '../../../apiTypes';
3
4
  /**
4
5
  * Generates the app specific schema of an object page out of the generic schema for the same page.
5
6
  * Generic types are replaced by information from the app specific annotations.
@@ -17,7 +18,7 @@ export declare function generateObjectPageInterfaceV4(genericSchema: object, ent
17
18
  /**
18
19
  * Generates the app specific schema of a list report out of the generic schema.
19
20
  * Generic types are replaced by information from the app specific annotations.
20
- *
21
+ * @param {TemplateType} templateType - the template type allows distinguishing LR and ALP
21
22
  * @param genericSchema - generic JSON schema of a list report
22
23
  * @param entitySetName - the base entity set of the given page
23
24
  * @param annotations - list of all annotation files (file content plus URI as identifier)
@@ -26,4 +27,4 @@ export declare function generateObjectPageInterfaceV4(genericSchema: object, ent
26
27
  *
27
28
  * @returns the app specific JSON schema
28
29
  */
29
- export declare function generateListReportInterfaceV4(genericSchema: object, entitySetName: string, annotations: FileData[], logger?: ExtensionLogger, manifest?: object): object;
30
+ export declare function generateListReportInterfaceV4(templateType: TemplateType, genericSchema: object, entitySetName: string, annotations: FileData[], logger?: ExtensionLogger, manifest?: object): object;
@@ -1,7 +1,5 @@
1
- import { GenerateAppSchemaParameters } from '../../../apiTypes';
2
- import { EntitySet } from '@sap-ux/annotation-converter';
3
- import { ConverterOutput, EntityType } from '@sap-ux/vocabularies-types';
4
- export declare function addEnumForVariantPaths(entityType: EntityType, appSchema: object, oDataServiceAVT: ConverterOutput): void;
1
+ import type { GenerateAppSchemaParameters } from '../../../apiTypes';
2
+ import type { EntitySet } from '@sap-ux/annotation-converter';
5
3
  /**
6
4
  * Generates an app specific schema for the FE V4 Listreport from the generic schema.
7
5
  * Generic types are replaced by information from the app specific annotations.
@@ -1,4 +1,4 @@
1
- import { GenerateAppSchemaParameters } from '../../../v4';
1
+ import type { GenerateAppSchemaParameters } from '../../..';
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,7 +1,8 @@
1
1
  import { AppProvider } from '../../../common/appProvider';
2
- import { Files } from '../../../common';
3
- import { SapUiAppPagesV4, Manifest, Pages } from '../../../../specification/v4';
4
- import { ExtensionLogger } from '../../../..';
2
+ import type { Files } from '../../../common';
3
+ import { TemplateType } from '../../../common';
4
+ import type { SapUiAppPagesV4, Manifest, Pages } from '../../../../specification/v4';
5
+ import type { ExtensionLogger } from '../../../..';
5
6
  export declare enum Constants {
6
7
  OptionalQuery = ":?query:",
7
8
  Component = "sap/fe/AppComponent",
@@ -12,8 +13,8 @@ export declare enum Constants {
12
13
  * @param manifest - manifest.json of the app
13
14
  * @param schemas - list of JSON schemas of all pages
14
15
  */
15
- export declare function getPagesAndConfigs(manifest: Manifest, schemas: Files, logger?: ExtensionLogger): Pages;
16
+ export declare function getPagesAndConfigs(manifest: Manifest, schemas: Files, templateType: TemplateType, logger?: ExtensionLogger): Pages;
16
17
  export declare class V4AppProvider extends AppProvider {
17
- constructor(manifest: Manifest, schemas: Files, logger?: ExtensionLogger);
18
+ constructor(manifest: Manifest, schemas: Files, templateType: TemplateType, logger?: ExtensionLogger);
18
19
  }
19
20
  export declare function getPages(manifest: Manifest, targetName: string): SapUiAppPagesV4;
@@ -1,5 +1,5 @@
1
- import { FileData } from '../../common';
2
- import { Manifest } from '../../../v4';
1
+ import type { FileData } from '../../common';
2
+ import type { Manifest } from '../../../v4';
3
3
  export interface FragmentData {
4
4
  manifestPart: object;
5
5
  fragmentFileContent: string;
@@ -1,3 +1,2 @@
1
1
  export * from './pages/listReport';
2
2
  export * from './pages/objectPage';
3
- export * from './pages/analyticalListPage';
@@ -1,20 +1,21 @@
1
- import { PageTypeV4 } from '../../../../specification/common';
2
- import { ListReportConfig as ListReportConfigV4, SapUiAppPageV4, AnalyticalListPageConfig as AnalyticalListPageConfigV4 } from '../../../../specification/v4';
3
- import { ImportListReportV4Parameters } from '../../../../apiTypes';
4
- import { MetadataInstanceInterface } from '../../../common/decoration/factory';
1
+ import { PageTypeV4, SchemaType } from '../../../../specification/common';
2
+ import type { ListReportConfig as ListReportConfigV4 } from '../../../../specification/v4';
3
+ import type { ImportListReportV4Parameters } from '../../../../apiTypes';
4
+ import type { MetadataInstanceInterface } from '../../../common/decoration/factory';
5
5
  /**
6
6
  * Adds manifest settings to the config.json of LR or ALP V4
7
7
  * @param {ImportListReportV4Parameters} importParameters - object comprising all input data
8
8
  * @param {ListReportConfig | AnalyticalListPageConfig} config - the configuration to be filled
9
9
  * @param {MetadataInstanceInterface} factory - factory, for generating the access to reflect-metadata
10
- * @param {SapUiAppPageV4} page - page in manifest
11
10
  * @param {PageTypeV4} pageType - page type
11
+ * @param {string} routingId - page key in manifest
12
+ * @param {SchemaType} schemaType - allows distinction of LR and ALP scenario
12
13
  */
13
- export declare function addSettings(importParameters: ImportListReportV4Parameters, config: ListReportConfigV4 | AnalyticalListPageConfigV4, factory: MetadataInstanceInterface, page: SapUiAppPageV4, pageType: PageTypeV4): void;
14
+ export declare function addSettings(importParameters: ImportListReportV4Parameters, config: ListReportConfigV4, factory: MetadataInstanceInterface, pageType: PageTypeV4, routingId: string, schemaType: SchemaType): void;
14
15
  /**
15
16
  * Creates the configuration file content for a list report V4
16
17
  * @param {ImportListReportV4Parameters} importParameters - object comprising all input data
17
18
  *
18
19
  * @returns {ListReportConfig} - the configuration (JSON) for the list report
19
20
  */
20
- export declare function createListReportConfig(importParameters: ImportListReportV4Parameters): ListReportConfigV4 | undefined;
21
+ export declare function createListReportConfig(importParameters: ImportListReportV4Parameters, schemaType: SchemaType): ListReportConfigV4 | undefined;
@@ -1,5 +1,18 @@
1
- import { ObjectPageConfig as ObjectPageConfigV4 } from '../../../../specification/v4/';
2
- import { ImportObjectPageV4Parameters } from '../../../../apiTypes';
1
+ import type { ObjectPageConfig as ObjectPageConfigV4 } from '../../../../specification/v4/';
2
+ import type { ImportObjectPageV4Parameters } from '../../../../apiTypes';
3
+ /**
4
+ * Converts section ID to manifest ID (replaces '::' with ['/', '#'])
5
+ * @param sectionId - converted ID of the given object page section
6
+ * @param splitOnLt - split ID and get only part in <...>
7
+ * @returns manifest ID
8
+ */
9
+ export declare function getManifestId(sectionId: string, splitOnLt?: boolean): string;
10
+ /**
11
+ * Converts manifest ID to definition ID (replaces ['#', '/'] with '::')
12
+ * @param manifestId - ID of the given object page section in manifest
13
+ * @returns definition ID
14
+ */
15
+ export declare function getDefinitionId(manifestId: string): string;
3
16
  /**
4
17
  * External API: Create configuration (file content) for a V4 object page
5
18
  * @param {ImportObjectPageV4Parameters} importParameters - object comprising all input data
@@ -1,5 +1,6 @@
1
- import { Manifest } from '../../../specification/common/webapp/manifest/Manifest';
2
- import { ExtensionLogger } from '../../..';
1
+ import type { Definition, DefinitionOrBoolean } from 'typescript-json-schema';
2
+ import type { Manifest } from '../../../specification/common/webapp/manifest/Manifest';
3
+ import type { ExtensionLogger } from '../../..';
3
4
  /**
4
5
  * Transfers settings from manifest to object page config
5
6
  * @param configPart - part of the configuration to be filled
@@ -11,4 +12,4 @@ import { ExtensionLogger } from '../../..';
11
12
  */
12
13
  export declare function transferSettingsOfObject(configPart: {
13
14
  [key: string]: any;
14
- }, manifest: Manifest, appSchema: object, pageKey: string, breadcrumbs: string[], sectionId?: string, logger?: ExtensionLogger): void;
15
+ }, manifest: Manifest, appSchema: Definition | DefinitionOrBoolean, pageKey: string, breadcrumbs: string[], sectionId?: string, logger?: ExtensionLogger): void;
@@ -1,4 +1,6 @@
1
- import * as v4controls from './export/controls';
2
- import * as v4pages from './export/pages';
1
+ import type { Chart, LineItem } from '@sap-ux/vocabularies-types';
2
+ import type * as v4controls from './export/controls';
3
+ import type * as v4pages from './export/pages';
3
4
  export declare type V4Controls = typeof v4controls;
4
5
  export declare type V4Pages = typeof v4pages;
6
+ export declare type PresentationVariantV4 = Chart | LineItem;
@@ -1,7 +1,9 @@
1
- import { AnnotationTerm, ConverterOutput, EntityType, LineItem, DataFieldForActionAbstractTypes } from '@sap-ux/vocabularies-types';
2
- import { EntitySet } from '@sap-ux/annotation-converter';
3
- import { ExtensionLogger } from '../../..';
4
- import { DefinitionName, SapUiAppPageV4 } from '../../../v4';
1
+ import type { EntitySet } from '@sap-ux/annotation-converter';
2
+ import type { GenerateAppSchemaParameters, SapUiAppPageV4 } from '../../../v4';
3
+ import type { ExtensionLogger } from '../../..';
4
+ import type { AnnotationTerm, ConverterOutput, EntityType, LineItem, DataFieldForActionAbstractTypes } from '@sap-ux/vocabularies-types';
5
+ import { DefinitionName } from '../../../v4';
6
+ import type { Definition } from 'typescript-json-schema';
5
7
  /**
6
8
  * Common function for enhancing the LineItems definiton of app schema by custom columns
7
9
  * @param appSchema - app-specific JSON schema
@@ -13,7 +15,7 @@ import { DefinitionName, SapUiAppPageV4 } from '../../../v4';
13
15
  */
14
16
  export declare function addCustomColumnDefinition(appSchema: object, v4Page: SapUiAppPageV4, logger: ExtensionLogger, customColumnDefinitionName?: string, sectionId?: string, sectionIdInManfest?: string): void;
15
17
  /**
16
- * Processes a LineItem record of type DataFieldForCation during app schema generation
18
+ * Processes a LineItem record of type DataFieldForAction during app schema generation
17
19
  * @param appSchema - the app specific schema that shall get enhanced
18
20
  * @param entityType - the entity type as part of the AVT ConverterOutput
19
21
  * @param actions - actions definition in schema, parent object
@@ -21,20 +23,19 @@ export declare function addCustomColumnDefinition(appSchema: object, v4Page: Sap
21
23
  * @param lineItemRecord - actual record of the line item collection
22
24
  * @param recordIndex - record index in the collection
23
25
  */
24
- export declare function handleActionRecord(appSchema: object, entityType: EntityType, actions: object, lineItemPath: string, lineItemRecord: DataFieldForActionAbstractTypes, lineItemId: string, recordIndex: number): void;
26
+ export declare function handleActionRecord(appSchema: Definition, entityType: EntityType, actionsDefinition: Definition, lineItemPath: string, lineItemRecord: DataFieldForActionAbstractTypes, lineItemId: string, recordIndex: number): void;
25
27
  /**
26
28
  * Adds the line item definition, columns and actions to the app schema (for the list report or an object page section comprising a table)
27
29
  * @param appSchema - the app specific schema that shall get enhanced
28
30
  * @param lineItemAnnotation - the UI.LineItem annotation, comprising all records
29
31
  * @param entityType - the entity type as part of the AVT ConverterOutput
30
32
  * @param {ConverterOutput} oDataServiceAVT - complete service information, as returned by Annotation Vocabularies Tool
33
+ * @param lineItemId - in case of OP the paramter must be passed to distinguish the OP tables;
34
+ * in case of LR or ALP 'LineItems' is passed.
31
35
  * @param columnDefinitionName - name of the column definition, i.e. TableColumn or ObjectPageTableColumn
32
- * @param actionDefinitionName - indicates the prefix for the definition, dpending on the page type
33
- * @param lineItemId - optional: in case of OP the paramter must be passed to distinguish the OP tables;
34
- * in case of LR or ALP no ID is passed, 'LineItems' is taken then.
35
- * @param customColumnRef - schema reference to custom column definition.
36
+ * @param customColumnDefinitionName - name of the custom column definition
36
37
  */
37
- export declare function addLineItemsType(appSchema: object, lineItemAnnotation: AnnotationTerm<LineItem>, entityType: EntityType, oDataServiceAVT: ConverterOutput, columnDefinitionName?: string, customColumnDefinitionName?: string, lineItemId?: string): void;
38
+ export declare function addLineItemsType(appSchema: Definition, lineItemAnnotation: AnnotationTerm<LineItem>, entityType: EntityType, oDataServiceAVT: ConverterOutput, lineItemId: string, columnDefinitionName?: string, customColumnDefinitionName?: string): void;
38
39
  /**
39
40
  * Adds an enum or value help to position > anchor of custom column
40
41
  * @param appSchema - app specific JSON schema
@@ -42,13 +43,20 @@ export declare function addLineItemsType(appSchema: object, lineItemAnnotation:
42
43
  * @param v4Page - current page in manifest
43
44
  * @param positionName - ID of the definition of custom column position in schema
44
45
  */
45
- export declare function addFragmentEnumForAnchor(appSchema: object, lineItemId: string, v4Page: SapUiAppPageV4, positionName?: DefinitionName, sectionIdInManifest?: string): void;
46
+ export declare function addFragmentEnumForAnchor(appSchema: Definition, lineItemId: string, v4Page: SapUiAppPageV4, positionName?: DefinitionName, sectionIdInManifest?: string): void;
46
47
  /**
47
48
  * Find the relevant V4 page under the routing targets of manifest,json
48
49
  * @param pages - list of all pages in manifest
49
50
  * @param pageName - search criterion: page name
50
- * @param entitySet - search criterion: entty set
51
+ * @param entitySet - search criterion: entity set
51
52
  * @param logger - logger for messages
52
53
  * @returns the page definition in manifest (if found)
53
54
  */
54
55
  export declare function findPageV4(pages: SapUiAppPageV4[], pageName: string, entitySet: EntitySet, logger: ExtensionLogger): SapUiAppPageV4 | undefined;
56
+ /**
57
+ * Depending on the template type, strip down the app schema so that only the relevant views are part of it
58
+ * @param {Definition} appSchema - app specific JSON schema, to be adjusted
59
+ * @param {GenerateAppSchemaParameters} generateParameters - object comprising all input parameters
60
+ * @returns the right definition name for the table in the schema
61
+ */
62
+ export declare function alignSchemaWithTemplateType(appSchema: Definition, generateParameters: GenerateAppSchemaParameters): string;
@@ -1,4 +1,4 @@
1
- import { Manifest } from '../../../../../src';
1
+ import type { Manifest } from '../../../../../src';
2
2
  interface ChangeData {
3
3
  manifest: Manifest;
4
4
  changes: string[];
@@ -1,2 +1,2 @@
1
- import { Project } from '../../src/project';
1
+ import type { Project } from '../../src/project';
2
2
  export declare const getProjects: () => Promise<Project[]>;
@@ -1,7 +1,7 @@
1
- import { FileData } from '../../src';
2
- import { ExtensionLogger } from '../../src';
3
- import { Location } from '../../src/extensionLogger';
4
- import { ExportResults } from '../../src/sync/common';
1
+ import type { FileData } from '../../src';
2
+ import type { ExtensionLogger } from '../../src';
3
+ import type { Location } from '../../src/extensionLogger';
4
+ import type { ExportResults } from '../../src/sync/common';
5
5
  export declare class Logger implements ExtensionLogger {
6
6
  logInfo: string[];
7
7
  logWarning: string[];
@@ -22,6 +22,7 @@ export declare function getSDV4Annotations(): FileData[];
22
22
  export declare function getSTTAAnnotationsProdMan2(): FileData[];
23
23
  export declare function getExtensionsProdMan2(): FileData[];
24
24
  export declare function getSEPMRAAnnotations(): FileData[];
25
+ export declare function getExtensionsForS2pMmPurSrcgprojMaintains1(specificFiles?: string[]): FileData[];
25
26
  export declare function findFlexChangeBySelector(exportResult: ExportResults, selectorId: string, property: string): object;
26
27
  /**
27
28
  * Function to find out the flexChange from a list. Uses global variable exportResult
@@ -0,0 +1 @@
1
+ export {};