@sap/ux-specification 1.96.18 → 1.96.19

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.
@@ -587,6 +587,7 @@
587
587
  "columnIndex": {
588
588
  "description": "The index of the column in the overall collection; if undefined, the custom column will be added at the end of the table.",
589
589
  "minimum": 0,
590
+ "hidden": true,
590
591
  "type": "number"
591
592
  },
592
593
  "leadingProperty": {
@@ -146,7 +146,16 @@
146
146
  "navigation": {
147
147
  "type": "object",
148
148
  "additionalProperties": {
149
- "type": "string"
149
+ "anyOf": [
150
+ {
151
+ "type": "object",
152
+ "properties": {},
153
+ "additionalProperties": true
154
+ },
155
+ {
156
+ "type": "string"
157
+ }
158
+ ]
150
159
  }
151
160
  },
152
161
  "variantManagement": {
@@ -591,6 +591,7 @@
591
591
  "columnIndex": {
592
592
  "description": "The index of the column in the overall collection; if undefined, the custom column will be added at the end of the table.",
593
593
  "minimum": 0,
594
+ "hidden": true,
594
595
  "type": "number"
595
596
  },
596
597
  "leadingProperty": {
@@ -876,6 +876,7 @@
876
876
  "columnIndex": {
877
877
  "description": "The index of the column in the overall collection; if undefined, the custom column will be added at the end of the table.",
878
878
  "minimum": 0,
879
+ "hidden": true,
879
880
  "type": "number"
880
881
  },
881
882
  "leadingProperty": {
@@ -113,7 +113,16 @@
113
113
  "navigation": {
114
114
  "type": "object",
115
115
  "additionalProperties": {
116
- "type": "string"
116
+ "anyOf": [
117
+ {
118
+ "type": "object",
119
+ "properties": {},
120
+ "additionalProperties": true
121
+ },
122
+ {
123
+ "type": "string"
124
+ }
125
+ ]
117
126
  }
118
127
  },
119
128
  "variantManagement": {
@@ -812,11 +812,14 @@
812
812
  "type": "object",
813
813
  "additionalProperties": {
814
814
  "anyOf": [
815
+ {
816
+ "$ref": "#/definitions/LRTableView"
817
+ },
815
818
  {
816
819
  "$ref": "#/definitions/LRChartView"
817
820
  },
818
821
  {
819
- "$ref": "#/definitions/LRTableView"
822
+ "$ref": "#/definitions/TableViewExtension"
820
823
  },
821
824
  {
822
825
  "type": "boolean"
@@ -831,47 +834,13 @@
831
834
  }
832
835
  }
833
836
  },
834
- "LRChartView": {
835
- "description": "Chart View",
836
- "isViewNode": true,
837
- "type": "object",
838
- "properties": {
839
- "key": {
840
- "type": "string",
841
- "artifactType": "Manifest"
842
- },
843
- "index": {
844
- "type": "number",
845
- "artifactType": "Manifest"
846
- },
847
- "annotationPath": {
848
- "description": "To use charts in multiple table mode, define a UI.Chart annotation, including a qualifier.\nReference the UI.Chart annotation in your SelectionPresentationVariant or PresentationVariant for your view.",
849
- "type": "string",
850
- "artifactType": "Manifest"
851
- },
852
- "entitySet": {
853
- "description": "Each chart can be based on a different entitySet.",
854
- "type": "string",
855
- "artifactType": "Manifest"
856
- },
857
- "toolBar": {
858
- "$ref": "#/definitions/ViewChartToolBar",
859
- "description": "Chart Toolbar"
860
- }
861
- },
862
- "additionalProperties": false,
863
- "required": [
864
- "annotationPath",
865
- "index",
866
- "key"
867
- ]
868
- },
869
837
  "LRTableView": {
870
838
  "description": "Table View",
871
839
  "isViewNode": true,
872
840
  "type": "object",
873
841
  "properties": {
874
842
  "key": {
843
+ "description": "Unique tab identifier.",
875
844
  "type": "string",
876
845
  "artifactType": "Manifest"
877
846
  },
@@ -909,7 +878,24 @@
909
878
  "description": "Table Toolbar"
910
879
  },
911
880
  "columns": {
912
- "$ref": "#/definitions/ViewColumns"
881
+ "$ref": "#/definitions/ViewColumns",
882
+ "description": "Columns"
883
+ },
884
+ "visible": {
885
+ "pattern": "^(false|true)$|^{[A-Za-z0-9{}&$!@#%? _|,<>'()[\\]\\/:=.]+}$",
886
+ "anyOf": [
887
+ {
888
+ "enum": [
889
+ false,
890
+ true
891
+ ]
892
+ },
893
+ {
894
+ "type": "string"
895
+ }
896
+ ],
897
+ "description": "Specifies whether the view is visible or not",
898
+ "artifactType": "Manifest"
913
899
  },
914
900
  "type": {
915
901
  "$ref": "#/definitions/TableTypeV4",
@@ -954,6 +940,106 @@
954
940
  "key"
955
941
  ]
956
942
  },
943
+ "LRChartView": {
944
+ "description": "Chart View",
945
+ "isViewNode": true,
946
+ "type": "object",
947
+ "properties": {
948
+ "key": {
949
+ "type": "string",
950
+ "artifactType": "Manifest"
951
+ },
952
+ "index": {
953
+ "type": "number",
954
+ "artifactType": "Manifest"
955
+ },
956
+ "annotationPath": {
957
+ "description": "To use charts in multiple table mode, define a UI.Chart annotation, including a qualifier.\nReference the UI.Chart annotation in your SelectionPresentationVariant or PresentationVariant for your view.",
958
+ "type": "string",
959
+ "artifactType": "Manifest"
960
+ },
961
+ "entitySet": {
962
+ "description": "Each chart can be based on a different entitySet.",
963
+ "type": "string",
964
+ "artifactType": "Manifest"
965
+ },
966
+ "toolBar": {
967
+ "$ref": "#/definitions/ViewChartToolBar",
968
+ "description": "Chart Toolbar"
969
+ },
970
+ "visible": {
971
+ "pattern": "^(false|true)$|^{[A-Za-z0-9{}&$!@#%? _|,<>'()[\\]\\/:=.]+}$",
972
+ "anyOf": [
973
+ {
974
+ "enum": [
975
+ false,
976
+ true
977
+ ]
978
+ },
979
+ {
980
+ "type": "string"
981
+ }
982
+ ],
983
+ "description": "Specifies whether the view is visible or not",
984
+ "artifactType": "Manifest"
985
+ }
986
+ },
987
+ "additionalProperties": false,
988
+ "required": [
989
+ "annotationPath",
990
+ "index",
991
+ "key"
992
+ ]
993
+ },
994
+ "TableViewExtension": {
995
+ "description": "Table View Extension",
996
+ "isViewNode": true,
997
+ "type": "object",
998
+ "properties": {
999
+ "key": {
1000
+ "description": "Unique tab identifier.",
1001
+ "type": "string",
1002
+ "artifactType": "Manifest"
1003
+ },
1004
+ "index": {
1005
+ "hidden": true,
1006
+ "type": "number",
1007
+ "artifactType": "Manifest"
1008
+ },
1009
+ "label": {
1010
+ "description": "View title (localization supported).",
1011
+ "type": "string",
1012
+ "artifactType": "Manifest"
1013
+ },
1014
+ "template": {
1015
+ "description": "The name contains sap.app.id as a prefix, followed by the path in the app/webapp folder and the name of the XML view.",
1016
+ "type": "string",
1017
+ "artifactType": "Manifest"
1018
+ },
1019
+ "visible": {
1020
+ "pattern": "^(false|true)$|^{[A-Za-z0-9{}&$!@#%? _|,<>'()[\\]\\/:=.]+}$",
1021
+ "anyOf": [
1022
+ {
1023
+ "enum": [
1024
+ false,
1025
+ true
1026
+ ]
1027
+ },
1028
+ {
1029
+ "type": "string"
1030
+ }
1031
+ ],
1032
+ "description": "Specifies whether the view is visible or not",
1033
+ "artifactType": "Manifest"
1034
+ }
1035
+ },
1036
+ "additionalProperties": false,
1037
+ "required": [
1038
+ "index",
1039
+ "key",
1040
+ "template"
1041
+ ]
1042
+ },
957
1043
  "GenericColumns": {
958
1044
  "type": "object",
959
1045
  "additionalProperties": {
@@ -21,7 +21,7 @@ export interface PageBase {
21
21
  navigationProperty?: string;
22
22
  config?: PageConfig;
23
23
  navigation?: {
24
- [property: string]: string;
24
+ [property: string]: string | object;
25
25
  };
26
26
  variantManagement?: string;
27
27
  defaultLayoutType?: FlexibleColumnLayoutType;
@@ -46,6 +46,7 @@ export interface TableCustomColumn {
46
46
  /**
47
47
  * The index of the column in the overall collection; if undefined, the custom column will be added at the end of the table.
48
48
  * @minimum 0
49
+ * @hidden true
49
50
  */
50
51
  columnIndex?: number;
51
52
  /**
@@ -145,6 +145,7 @@ export interface TableSettings {
145
145
  */
146
146
  condensedTableLayout?: boolean;
147
147
  }
148
+ export declare type ViewTypeV4 = LRTableView | LRChartView | TableViewExtension | boolean;
148
149
  /**
149
150
  * Views
150
151
  * @isViewNode true
@@ -153,7 +154,7 @@ export interface MultiTableModeV4 {
153
154
  /**
154
155
  * List of annotation paths
155
156
  */
156
- [key: string]: LRTableView | LRChartView | boolean;
157
+ [key: string]: ViewTypeV4;
157
158
  /**
158
159
  * You can show the counts of entries of each view. To do so, add the showCounts option and set it to true.
159
160
  */
@@ -195,6 +196,10 @@ export interface LRChartView {
195
196
  * @isViewNode true
196
197
  */
197
198
  toolBar?: ViewChartToolBar;
199
+ /**
200
+ * Specifies whether the view is visible or not
201
+ */
202
+ visible?: boolean;
198
203
  }
199
204
  /**
200
205
  * Table View
@@ -228,11 +233,40 @@ export interface ALPTableView extends TableSettings {
228
233
  toolBar?: ToolBar;
229
234
  columns?: ViewColumns;
230
235
  }
236
+ /**
237
+ * Table View Extension
238
+ * @isViewNode true
239
+ */
240
+ export interface TableViewExtension {
241
+ /**
242
+ * Unique tab identifier.
243
+ */
244
+ key: string;
245
+ /**
246
+ * @hidden true
247
+ */
248
+ index: number;
249
+ /**
250
+ * View title (localization supported).
251
+ */
252
+ label?: string;
253
+ /**
254
+ * The name contains sap.app.id as a prefix, followed by the path in the app/webapp folder and the name of the XML view.
255
+ */
256
+ template: string;
257
+ /**
258
+ * Specifies whether the view is visible or not
259
+ */
260
+ visible?: boolean;
261
+ }
231
262
  /**
232
263
  * Table View
233
264
  * @isViewNode true
234
265
  */
235
266
  export interface LRTableView extends TableSettings {
267
+ /**
268
+ * Unique tab identifier.
269
+ */
236
270
  key: string;
237
271
  index: number;
238
272
  /**
@@ -261,7 +295,14 @@ export interface LRTableView extends TableSettings {
261
295
  * Table Toolbar
262
296
  */
263
297
  toolBar?: ToolBar;
298
+ /**
299
+ * Columns
300
+ */
264
301
  columns?: ViewColumns;
302
+ /**
303
+ * Specifies whether the view is visible or not
304
+ */
305
+ visible?: boolean;
265
306
  }
266
307
  /**
267
308
  * Table
@@ -46,9 +46,7 @@ export interface SapUi5RoutingTargetCustomPageV4 extends SapUi5RoutingTargetBase
46
46
  controlConfiguration?: SapUiGenericAppPageSettings;
47
47
  }
48
48
  export interface SapUi5RoutingTargetNavigationV4 {
49
- detail: {
50
- route: string;
51
- };
49
+ detail: object;
52
50
  }
53
51
  export interface SapUi5ViewPath {
54
52
  key: string;
@@ -305,6 +305,7 @@ export declare enum DefinitionName {
305
305
  Table = "Table",
306
306
  TableSPV = "TableSPV",
307
307
  TableColumn = "TableColumn",
308
+ TableViewExtension = "TableViewExtension",
308
309
  ToolBarAction = "ToolBarAction",
309
310
  ToolBarLR = "ToolBar<LineItems>",
310
311
  ToolBar = "ToolBar",
@@ -104,7 +104,7 @@ export declare function getSectionFacet(facetDefinition: anyFacetType, sourceEnt
104
104
  * @param {boolean} importScenario - indicates if the function is called for the import, else it is the export
105
105
  * @returns returns section of the manifest based on path, generates an empty object in case it does not exists
106
106
  */
107
- export declare const getManifestSectionByPathV4: (manifest: object, path: string, targetAnnotation?: string, targetAnnotationEncoded?: string, importScenario?: boolean) => object;
107
+ export declare const getManifestSectionByPathV4: (manifest: object, path: string, targetAnnotation?: string, targetAnnotationEncoded?: string) => object;
108
108
  export declare function getSchemaKeyOfLineItemRecord(lineItemRecord: DataFieldAbstractTypes): string;
109
109
  /**
110
110
  * Retrieve header facet configurations that can be used to generate ObjectPage schemas
@@ -1,4 +1,5 @@
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';
1
+ import { ViewTypeV4 } from '../../../../specification/v4';
2
+ import type { TableSettings as TableSettingsIF, Table as TableInterface, TableCreationMode as TableCreationModeIF, TableViewExtension as TableViewExtensionIF, 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
3
  import type { ToolBar } from './ToolBar';
3
4
  /**
4
5
  * sync rule function for export of creationMode.name
@@ -131,6 +132,7 @@ export declare class LRChartView implements LRChartViewIF {
131
132
  annotationPath: string;
132
133
  entitySet?: string;
133
134
  toolBar?: ViewChartToolBar;
135
+ visible?: boolean;
134
136
  }
135
137
  /****************************************
136
138
  * Sync class for LRTableView
@@ -141,13 +143,21 @@ export declare class LRTableView extends TableViewSettings implements LRTableVie
141
143
  annotationPath: string;
142
144
  keepPreviousPersonalization?: boolean;
143
145
  entitySet?: string;
146
+ visible?: boolean;
144
147
  toolBar?: ToolBar;
145
148
  }
149
+ export declare class TableViewExtension implements TableViewExtensionIF {
150
+ key: string;
151
+ index: number;
152
+ label?: string;
153
+ template: string;
154
+ visible?: boolean;
155
+ }
146
156
  /**
147
157
  * LR multi-view: own class for properties on views' level
148
158
  */
149
159
  export declare class MultiTableModeV4 implements MultiTableModeIF {
150
- [key: string]: LRTableView | LRChartView | boolean;
160
+ [key: string]: ViewTypeV4;
151
161
  showCounts?: boolean;
152
162
  }
153
163
  /****************************************
@@ -39,4 +39,4 @@ export declare function generateListReportInterfaceV4(templateType: TemplateType
39
39
  *
40
40
  * @returns the app specific JSON schema
41
41
  */
42
- export declare function generateFreestyleInterfaceV4(templateType: TemplateType, genericSchema: object, annotations: FileData[], manifest?: object, entitySetName?: string, logger?: ExtensionLogger): object;
42
+ export declare function generateFreestyleInterfaceV4(templateType: TemplateType, genericSchema: object, annotations: FileData[], manifest?: object, _entitySetName?: string, logger?: ExtensionLogger): object;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sap/ux-specification",
3
- "version": "1.96.18",
3
+ "version": "1.96.19",
4
4
  "displayName": "SAP Fiori tools - Specification",
5
5
  "description": "SAP Fiori tools - Specification",
6
6
  "files": [