@sap/ux-specification 1.71.49 → 1.71.50
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.
- package/CHANGELOG.md +21 -0
- package/dist/documentation/v2/v2-AnalyticalListPage.html +1 -1
- package/dist/documentation/v2/v2-ApplicationV2.html +1 -1
- package/dist/documentation/v2/v2-ListReport.html +1 -1
- package/dist/documentation/v2/v2-ObjectPage.html +1 -1
- package/dist/documentation/v2/v2-OverviewPage.html +1 -1
- package/dist/index-min.js +1 -1
- package/dist/schemas/v2/AnalyticalListPageConfig.json +72 -2
- package/dist/schemas/v2/ListReportConfig.json +74 -4
- package/dist/schemas/v2/ObjectPageConfig.json +89 -33
- package/dist/scripts/to-json-schema.js +27 -32
- package/dist/scripts/to-json-schema.js.map +1 -1
- package/dist/src/api.js +3 -3
- package/dist/src/api.js.map +1 -1
- package/dist/src/apiTypes.d.ts +1 -2
- package/dist/src/specification/schemaAccess.js +1 -3
- package/dist/src/specification/schemaAccess.js.map +1 -1
- package/dist/src/specification/v2/controls/Action.d.ts +19 -2
- package/dist/src/specification/v2/controls/FilterBar.d.ts +2 -2
- package/dist/src/specification/v2/controls/Footer.d.ts +20 -0
- package/dist/src/specification/v2/controls/{ObjectPageFooter.js → Footer.js} +1 -1
- package/dist/src/specification/v2/controls/Footer.js.map +1 -0
- package/dist/src/specification/v2/controls/Table.d.ts +8 -1
- package/dist/src/specification/v2/controls/Table.js.map +1 -1
- package/dist/src/specification/v2/controls/ToolBar.d.ts +1 -8
- package/dist/src/specification/v2/controls/index.d.ts +1 -2
- package/dist/src/specification/v2/controls/index.js.map +1 -1
- package/dist/src/specification/v2/pages/AnalyticalListPageConfig.d.ts +2 -1
- package/dist/src/specification/v2/pages/ListReportConfig.d.ts +3 -2
- package/dist/src/sync/common/appProvider.js.map +1 -1
- package/dist/src/sync/common/decoration/control.d.ts +11 -1
- package/dist/src/sync/common/decoration/control.js +29 -3
- package/dist/src/sync/common/decoration/control.js.map +1 -1
- package/dist/src/sync/common/decoration/factory.js +2 -4
- package/dist/src/sync/common/decoration/factory.js.map +1 -1
- package/dist/src/sync/common/generate/objectPage.d.ts +8 -0
- package/dist/src/sync/common/generate/objectPage.js +18 -6
- package/dist/src/sync/common/generate/objectPage.js.map +1 -1
- package/dist/src/sync/common/generate/utils.d.ts +1 -0
- package/dist/src/sync/common/generate/utils.js +19 -3
- package/dist/src/sync/common/generate/utils.js.map +1 -1
- package/dist/src/sync/common/i18n.json +2 -0
- package/dist/src/sync/common/import/utils.d.ts +8 -1
- package/dist/src/sync/common/import/utils.js +14 -3
- package/dist/src/sync/common/import/utils.js.map +1 -1
- package/dist/src/sync/common/importProject.js +10 -17
- package/dist/src/sync/common/importProject.js.map +1 -1
- package/dist/src/sync/common/types.d.ts +29 -15
- package/dist/src/sync/common/types.js +25 -1
- package/dist/src/sync/common/types.js.map +1 -1
- package/dist/src/sync/common/utils.d.ts +10 -1
- package/dist/src/sync/common/utils.js +21 -16
- package/dist/src/sync/common/utils.js.map +1 -1
- package/dist/src/sync/v2/export/controls/Action.d.ts +15 -0
- package/dist/src/sync/v2/export/controls/Action.js +68 -15
- package/dist/src/sync/v2/export/controls/Action.js.map +1 -1
- package/dist/src/sync/v2/export/controls/FilterBar.d.ts +3 -3
- package/dist/src/sync/v2/export/controls/FilterBar.js +15 -15
- package/dist/src/sync/v2/export/controls/FilterBar.js.map +1 -1
- package/dist/src/sync/v2/export/controls/FormAction.js +3 -2
- package/dist/src/sync/v2/export/controls/FormAction.js.map +1 -1
- package/dist/src/sync/v2/export/controls/Fragment.d.ts +1 -1
- package/dist/src/sync/v2/export/controls/Fragment.js +239 -164
- package/dist/src/sync/v2/export/controls/Fragment.js.map +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageFooterAction.d.ts +2 -2
- package/dist/src/sync/v2/export/controls/ObjectPageFooterAction.js +9 -9
- package/dist/src/sync/v2/export/controls/ObjectPageFooterAction.js.map +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.d.ts +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.js +2 -2
- package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.js.map +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageToolBarAction.js +6 -4
- package/dist/src/sync/v2/export/controls/ObjectPageToolBarAction.js.map +1 -1
- package/dist/src/sync/v2/export/controls/TableColumn.d.ts +18 -2
- package/dist/src/sync/v2/export/controls/TableColumn.js +126 -1
- package/dist/src/sync/v2/export/controls/TableColumn.js.map +1 -1
- package/dist/src/sync/v2/export/export.js +134 -111
- package/dist/src/sync/v2/export/export.js.map +1 -1
- package/dist/src/sync/v2/export/manifest.js +2 -5
- package/dist/src/sync/v2/export/manifest.js.map +1 -1
- package/dist/src/sync/v2/export/pages/AnalyticalListPage.d.ts +2 -1
- package/dist/src/sync/v2/export/pages/AnalyticalListPage.js +3 -0
- package/dist/src/sync/v2/export/pages/AnalyticalListPage.js.map +1 -1
- package/dist/src/sync/v2/export/pages/ListReport.d.ts +3 -2
- package/dist/src/sync/v2/export/pages/ListReport.js +3 -0
- package/dist/src/sync/v2/export/pages/ListReport.js.map +1 -1
- package/dist/src/sync/v2/export/view-controller-generator.d.ts +16 -21
- package/dist/src/sync/v2/export/view-controller-generator.js +20 -36
- package/dist/src/sync/v2/export/view-controller-generator.js.map +1 -1
- package/dist/src/sync/v2/generate/analyticalListReport.js +10 -5
- package/dist/src/sync/v2/generate/analyticalListReport.js.map +1 -1
- package/dist/src/sync/v2/generate/listReport.js +8 -3
- package/dist/src/sync/v2/generate/listReport.js.map +1 -1
- package/dist/src/sync/v2/generate/objectPage.d.ts +1 -5
- package/dist/src/sync/v2/generate/objectPage.js +10 -10
- package/dist/src/sync/v2/generate/objectPage.js.map +1 -1
- package/dist/src/sync/v2/generate/utils.d.ts +15 -11
- package/dist/src/sync/v2/generate/utils.js +239 -110
- package/dist/src/sync/v2/generate/utils.js.map +1 -1
- package/dist/src/sync/v2/import/common/index.d.ts +22 -4
- package/dist/src/sync/v2/import/common/index.js +237 -17
- package/dist/src/sync/v2/import/common/index.js.map +1 -1
- package/dist/src/sync/v2/import/controls/table.js +3 -2
- package/dist/src/sync/v2/import/controls/table.js.map +1 -1
- package/dist/src/sync/v2/import/pages/analyticalListPage.js +27 -5
- package/dist/src/sync/v2/import/pages/analyticalListPage.js.map +1 -1
- package/dist/src/sync/v2/import/pages/listReport.d.ts +0 -5
- package/dist/src/sync/v2/import/pages/listReport.js +14 -124
- package/dist/src/sync/v2/import/pages/listReport.js.map +1 -1
- package/dist/src/sync/v2/import/pages/objectPage.js +182 -107
- package/dist/src/sync/v2/import/pages/objectPage.js.map +1 -1
- package/dist/src/sync/v2/import/utils.d.ts +4 -6
- package/dist/src/sync/v2/import/utils.js +32 -11
- package/dist/src/sync/v2/import/utils.js.map +1 -1
- package/dist/src/sync/v2/types.d.ts +8 -1
- package/dist/src/sync/v2/types.js +8 -1
- package/dist/src/sync/v2/types.js.map +1 -1
- package/dist/test/unit/utils.test.d.ts +1 -1
- package/package.json +7 -8
- package/dist/src/specification/v2/controls/ObjectPageFooter.d.ts +0 -11
- package/dist/src/specification/v2/controls/ObjectPageFooter.js.map +0 -1
- package/dist/src/specification/v2/controls/ObjectPageFooterAction.d.ts +0 -28
- package/dist/src/specification/v2/controls/ObjectPageFooterAction.js +0 -3
- package/dist/src/specification/v2/controls/ObjectPageFooterAction.js.map +0 -1
- package/dist/test/test-utils/metadataParser.d.ts +0 -19
|
@@ -26,6 +26,9 @@
|
|
|
26
26
|
"chart": {
|
|
27
27
|
"$ref": "#/definitions/ChartSettings"
|
|
28
28
|
},
|
|
29
|
+
"footer": {
|
|
30
|
+
"$ref": "#/definitions/GenericFooter"
|
|
31
|
+
},
|
|
29
32
|
"keyPerformanceIndicators": {
|
|
30
33
|
"description": "Key Performance Indicators",
|
|
31
34
|
"isViewNode": true,
|
|
@@ -319,13 +322,13 @@
|
|
|
319
322
|
"controlType": "sap.m.Button"
|
|
320
323
|
},
|
|
321
324
|
"icon": {
|
|
322
|
-
"description": "Icon to be displayed as graphical element within the Button. Can be an image or icon from the icon font, represented as RFC 3986 conformant URI.",
|
|
325
|
+
"description": "Icon to be displayed as graphical element within the Button. Can be an image or icon from the icon font (https://sapui5.hana.ondemand.com/test-resources/sap/m/demokit/iconExplorer/webapp/index.html#/overview/SAP-icons), represented as RFC 3986 conformant URI.",
|
|
323
326
|
"type": "string",
|
|
324
327
|
"artifactType": "FlexChange",
|
|
325
328
|
"controlType": "sap.m.Button"
|
|
326
329
|
},
|
|
327
330
|
"activeIcon": {
|
|
328
|
-
"description": "Alternative icon for the active (depressed) state of the button, represented as RFC 3986 conformant URI.",
|
|
331
|
+
"description": "Alternative icon for the active (depressed) state of the button. Can be an image or icon from the icon font (https://sapui5.hana.ondemand.com/test-resources/sap/m/demokit/iconExplorer/webapp/index.html#/overview/SAP-icons), represented as RFC 3986 conformant URI.",
|
|
329
332
|
"type": "string",
|
|
330
333
|
"artifactType": "FlexChange",
|
|
331
334
|
"controlType": "sap.m.Button"
|
|
@@ -360,6 +363,9 @@
|
|
|
360
363
|
{
|
|
361
364
|
"$ref": "#/definitions/TableColumn"
|
|
362
365
|
},
|
|
366
|
+
{
|
|
367
|
+
"$ref": "#/definitions/TableColumnAction"
|
|
368
|
+
},
|
|
363
369
|
{
|
|
364
370
|
"description": "Custom Columns",
|
|
365
371
|
"isViewNode": true,
|
|
@@ -410,6 +416,59 @@
|
|
|
410
416
|
],
|
|
411
417
|
"type": "string"
|
|
412
418
|
},
|
|
419
|
+
"TableColumnAction": {
|
|
420
|
+
"description": "Column Action",
|
|
421
|
+
"isViewNode": true,
|
|
422
|
+
"type": "object",
|
|
423
|
+
"properties": {
|
|
424
|
+
"tooltip": {
|
|
425
|
+
"description": "The text of the button tooltip, preferably as an i18n key.",
|
|
426
|
+
"i18nClassification": "ACT: Text for tooltip of button.",
|
|
427
|
+
"type": "string",
|
|
428
|
+
"artifactType": "FlexChange",
|
|
429
|
+
"controlType": "sap.m.Button"
|
|
430
|
+
},
|
|
431
|
+
"icon": {
|
|
432
|
+
"description": "Icon to be displayed as graphical element within the Button. Can be an image or icon from the icon font (https://sapui5.hana.ondemand.com/test-resources/sap/m/demokit/iconExplorer/webapp/index.html#/overview/SAP-icons), represented as RFC 3986 conformant URI.",
|
|
433
|
+
"type": "string",
|
|
434
|
+
"artifactType": "FlexChange",
|
|
435
|
+
"controlType": "sap.m.Button"
|
|
436
|
+
},
|
|
437
|
+
"activeIcon": {
|
|
438
|
+
"description": "Alternative icon for the active (depressed) state of the button. Can be an image or icon from the icon font (https://sapui5.hana.ondemand.com/test-resources/sap/m/demokit/iconExplorer/webapp/index.html#/overview/SAP-icons), represented as RFC 3986 conformant URI.",
|
|
439
|
+
"type": "string",
|
|
440
|
+
"artifactType": "FlexChange",
|
|
441
|
+
"controlType": "sap.m.Button"
|
|
442
|
+
},
|
|
443
|
+
"type": {
|
|
444
|
+
"$ref": "#/definitions/ButtonType",
|
|
445
|
+
"description": "Defines the Button type.",
|
|
446
|
+
"artifactType": "FlexChange",
|
|
447
|
+
"controlType": "sap.m.Button"
|
|
448
|
+
},
|
|
449
|
+
"width": {
|
|
450
|
+
"description": "The width property defines the width of the column.",
|
|
451
|
+
"type": "string",
|
|
452
|
+
"artifactType": "FlexChange",
|
|
453
|
+
"controlType": "sap.m.Column"
|
|
454
|
+
},
|
|
455
|
+
"hAlign": {
|
|
456
|
+
"pattern": "^(Begin|Center|End|Initial|Left|Right)$|^{[A-Za-z0-9{}&$!@#? _|,<>'()[\\]\\/:=.]+}$",
|
|
457
|
+
"anyOf": [
|
|
458
|
+
{
|
|
459
|
+
"$ref": "#/definitions/HAlign"
|
|
460
|
+
},
|
|
461
|
+
{
|
|
462
|
+
"type": "string"
|
|
463
|
+
}
|
|
464
|
+
],
|
|
465
|
+
"description": "The hAlign property defines the horizontal alignment of the column content.",
|
|
466
|
+
"artifactType": "FlexChange",
|
|
467
|
+
"controlType": "sap.m.Column"
|
|
468
|
+
}
|
|
469
|
+
},
|
|
470
|
+
"additionalProperties": false
|
|
471
|
+
},
|
|
413
472
|
"TableCustomColumn": {
|
|
414
473
|
"description": "Custom Column",
|
|
415
474
|
"isViewNode": true,
|
|
@@ -834,6 +893,17 @@
|
|
|
834
893
|
},
|
|
835
894
|
"additionalProperties": false
|
|
836
895
|
},
|
|
896
|
+
"GenericFooter": {
|
|
897
|
+
"description": "Footer",
|
|
898
|
+
"isViewNode": true,
|
|
899
|
+
"type": "object",
|
|
900
|
+
"properties": {
|
|
901
|
+
"actions": {
|
|
902
|
+
"$ref": "#/definitions/Actions"
|
|
903
|
+
}
|
|
904
|
+
},
|
|
905
|
+
"additionalProperties": false
|
|
906
|
+
},
|
|
837
907
|
"KPISettings": {
|
|
838
908
|
"description": "KPI Settings",
|
|
839
909
|
"isViewNode": true,
|
|
@@ -24,7 +24,10 @@
|
|
|
24
24
|
]
|
|
25
25
|
},
|
|
26
26
|
"filterBar": {
|
|
27
|
-
"$ref": "#/definitions/
|
|
27
|
+
"$ref": "#/definitions/ListReportFilterBar"
|
|
28
|
+
},
|
|
29
|
+
"footer": {
|
|
30
|
+
"$ref": "#/definitions/GenericFooter"
|
|
28
31
|
},
|
|
29
32
|
"$schema": {
|
|
30
33
|
"type": "string"
|
|
@@ -323,13 +326,13 @@
|
|
|
323
326
|
"controlType": "sap.m.Button"
|
|
324
327
|
},
|
|
325
328
|
"icon": {
|
|
326
|
-
"description": "Icon to be displayed as graphical element within the Button. Can be an image or icon from the icon font, represented as RFC 3986 conformant URI.",
|
|
329
|
+
"description": "Icon to be displayed as graphical element within the Button. Can be an image or icon from the icon font (https://sapui5.hana.ondemand.com/test-resources/sap/m/demokit/iconExplorer/webapp/index.html#/overview/SAP-icons), represented as RFC 3986 conformant URI.",
|
|
327
330
|
"type": "string",
|
|
328
331
|
"artifactType": "FlexChange",
|
|
329
332
|
"controlType": "sap.m.Button"
|
|
330
333
|
},
|
|
331
334
|
"activeIcon": {
|
|
332
|
-
"description": "Alternative icon for the active (depressed) state of the button, represented as RFC 3986 conformant URI.",
|
|
335
|
+
"description": "Alternative icon for the active (depressed) state of the button. Can be an image or icon from the icon font (https://sapui5.hana.ondemand.com/test-resources/sap/m/demokit/iconExplorer/webapp/index.html#/overview/SAP-icons), represented as RFC 3986 conformant URI.",
|
|
333
336
|
"type": "string",
|
|
334
337
|
"artifactType": "FlexChange",
|
|
335
338
|
"controlType": "sap.m.Button"
|
|
@@ -364,6 +367,9 @@
|
|
|
364
367
|
{
|
|
365
368
|
"$ref": "#/definitions/TableColumn"
|
|
366
369
|
},
|
|
370
|
+
{
|
|
371
|
+
"$ref": "#/definitions/TableColumnAction"
|
|
372
|
+
},
|
|
367
373
|
{
|
|
368
374
|
"description": "Custom Columns",
|
|
369
375
|
"isViewNode": true,
|
|
@@ -414,6 +420,59 @@
|
|
|
414
420
|
],
|
|
415
421
|
"type": "string"
|
|
416
422
|
},
|
|
423
|
+
"TableColumnAction": {
|
|
424
|
+
"description": "Column Action",
|
|
425
|
+
"isViewNode": true,
|
|
426
|
+
"type": "object",
|
|
427
|
+
"properties": {
|
|
428
|
+
"tooltip": {
|
|
429
|
+
"description": "The text of the button tooltip, preferably as an i18n key.",
|
|
430
|
+
"i18nClassification": "ACT: Text for tooltip of button.",
|
|
431
|
+
"type": "string",
|
|
432
|
+
"artifactType": "FlexChange",
|
|
433
|
+
"controlType": "sap.m.Button"
|
|
434
|
+
},
|
|
435
|
+
"icon": {
|
|
436
|
+
"description": "Icon to be displayed as graphical element within the Button. Can be an image or icon from the icon font (https://sapui5.hana.ondemand.com/test-resources/sap/m/demokit/iconExplorer/webapp/index.html#/overview/SAP-icons), represented as RFC 3986 conformant URI.",
|
|
437
|
+
"type": "string",
|
|
438
|
+
"artifactType": "FlexChange",
|
|
439
|
+
"controlType": "sap.m.Button"
|
|
440
|
+
},
|
|
441
|
+
"activeIcon": {
|
|
442
|
+
"description": "Alternative icon for the active (depressed) state of the button. Can be an image or icon from the icon font (https://sapui5.hana.ondemand.com/test-resources/sap/m/demokit/iconExplorer/webapp/index.html#/overview/SAP-icons), represented as RFC 3986 conformant URI.",
|
|
443
|
+
"type": "string",
|
|
444
|
+
"artifactType": "FlexChange",
|
|
445
|
+
"controlType": "sap.m.Button"
|
|
446
|
+
},
|
|
447
|
+
"type": {
|
|
448
|
+
"$ref": "#/definitions/ButtonType",
|
|
449
|
+
"description": "Defines the Button type.",
|
|
450
|
+
"artifactType": "FlexChange",
|
|
451
|
+
"controlType": "sap.m.Button"
|
|
452
|
+
},
|
|
453
|
+
"width": {
|
|
454
|
+
"description": "The width property defines the width of the column.",
|
|
455
|
+
"type": "string",
|
|
456
|
+
"artifactType": "FlexChange",
|
|
457
|
+
"controlType": "sap.m.Column"
|
|
458
|
+
},
|
|
459
|
+
"hAlign": {
|
|
460
|
+
"pattern": "^(Begin|Center|End|Initial|Left|Right)$|^{[A-Za-z0-9{}&$!@#? _|,<>'()[\\]\\/:=.]+}$",
|
|
461
|
+
"anyOf": [
|
|
462
|
+
{
|
|
463
|
+
"$ref": "#/definitions/HAlign"
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
"type": "string"
|
|
467
|
+
}
|
|
468
|
+
],
|
|
469
|
+
"description": "The hAlign property defines the horizontal alignment of the column content.",
|
|
470
|
+
"artifactType": "FlexChange",
|
|
471
|
+
"controlType": "sap.m.Column"
|
|
472
|
+
}
|
|
473
|
+
},
|
|
474
|
+
"additionalProperties": false
|
|
475
|
+
},
|
|
417
476
|
"TableCustomColumn": {
|
|
418
477
|
"description": "Custom Column",
|
|
419
478
|
"isViewNode": true,
|
|
@@ -812,7 +871,7 @@
|
|
|
812
871
|
},
|
|
813
872
|
"additionalProperties": false
|
|
814
873
|
},
|
|
815
|
-
"
|
|
874
|
+
"ListReportFilterBar": {
|
|
816
875
|
"description": "Filter Bar",
|
|
817
876
|
"isViewNode": true,
|
|
818
877
|
"type": "object",
|
|
@@ -859,6 +918,17 @@
|
|
|
859
918
|
}
|
|
860
919
|
},
|
|
861
920
|
"additionalProperties": false
|
|
921
|
+
},
|
|
922
|
+
"GenericFooter": {
|
|
923
|
+
"description": "Footer",
|
|
924
|
+
"isViewNode": true,
|
|
925
|
+
"type": "object",
|
|
926
|
+
"properties": {
|
|
927
|
+
"actions": {
|
|
928
|
+
"$ref": "#/definitions/Actions"
|
|
929
|
+
}
|
|
930
|
+
},
|
|
931
|
+
"additionalProperties": false
|
|
862
932
|
}
|
|
863
933
|
},
|
|
864
934
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
]
|
|
39
39
|
},
|
|
40
40
|
"footer": {
|
|
41
|
-
"$ref": "#/definitions/ObjectPageFooter<
|
|
41
|
+
"$ref": "#/definitions/ObjectPageFooter<ObjectPageFooterActions>"
|
|
42
42
|
},
|
|
43
43
|
"$schema": {
|
|
44
44
|
"type": "string"
|
|
@@ -132,13 +132,13 @@
|
|
|
132
132
|
"controlType": "sap.uxap.ObjectPageHeaderActionButton"
|
|
133
133
|
},
|
|
134
134
|
"icon": {
|
|
135
|
-
"description": "Icon to be displayed as graphical element within the Button. Can be an image or icon from the icon font, represented as RFC 3986 conformant URI.",
|
|
135
|
+
"description": "Icon to be displayed as graphical element within the Button. Can be an image or icon from the icon font (https://sapui5.hana.ondemand.com/test-resources/sap/m/demokit/iconExplorer/webapp/index.html#/overview/SAP-icons), represented as RFC 3986 conformant URI.",
|
|
136
136
|
"type": "string",
|
|
137
137
|
"artifactType": "FlexChange",
|
|
138
138
|
"controlType": "sap.uxap.ObjectPageHeaderActionButton"
|
|
139
139
|
},
|
|
140
140
|
"activeIcon": {
|
|
141
|
-
"description": "Alternative icon for the active (depressed) state of the button, represented as RFC 3986 conformant URI.",
|
|
141
|
+
"description": "Alternative icon for the active (depressed) state of the button. Can be an image or icon from the icon font (https://sapui5.hana.ondemand.com/test-resources/sap/m/demokit/iconExplorer/webapp/index.html#/overview/SAP-icons), represented as RFC 3986 conformant URI.",
|
|
142
142
|
"type": "string",
|
|
143
143
|
"artifactType": "FlexChange",
|
|
144
144
|
"controlType": "sap.uxap.ObjectPageHeaderActionButton"
|
|
@@ -329,13 +329,13 @@
|
|
|
329
329
|
"controlType": "sap.m.Button"
|
|
330
330
|
},
|
|
331
331
|
"icon": {
|
|
332
|
-
"description": "Icon to be displayed as graphical element within the Button. Can be an image or icon from the icon font, represented as RFC 3986 conformant URI.",
|
|
332
|
+
"description": "Icon to be displayed as graphical element within the Button. Can be an image or icon from the icon font (https://sapui5.hana.ondemand.com/test-resources/sap/m/demokit/iconExplorer/webapp/index.html#/overview/SAP-icons), represented as RFC 3986 conformant URI.",
|
|
333
333
|
"type": "string",
|
|
334
334
|
"artifactType": "FlexChange",
|
|
335
335
|
"controlType": "sap.m.Button"
|
|
336
336
|
},
|
|
337
337
|
"activeIcon": {
|
|
338
|
-
"description": "Alternative icon for the active (depressed) state of the button, represented as RFC 3986 conformant URI.",
|
|
338
|
+
"description": "Alternative icon for the active (depressed) state of the button. Can be an image or icon from the icon font (https://sapui5.hana.ondemand.com/test-resources/sap/m/demokit/iconExplorer/webapp/index.html#/overview/SAP-icons), represented as RFC 3986 conformant URI.",
|
|
339
339
|
"type": "string",
|
|
340
340
|
"artifactType": "FlexChange",
|
|
341
341
|
"controlType": "sap.m.Button"
|
|
@@ -604,13 +604,13 @@
|
|
|
604
604
|
"controlType": "sap.m.Button"
|
|
605
605
|
},
|
|
606
606
|
"icon": {
|
|
607
|
-
"description": "Icon to be displayed as graphical element within the Button. Can be an image or icon from the icon font, represented as RFC 3986 conformant URI.",
|
|
607
|
+
"description": "Icon to be displayed as graphical element within the Button. Can be an image or icon from the icon font (https://sapui5.hana.ondemand.com/test-resources/sap/m/demokit/iconExplorer/webapp/index.html#/overview/SAP-icons), represented as RFC 3986 conformant URI.",
|
|
608
608
|
"type": "string",
|
|
609
609
|
"artifactType": "FlexChange",
|
|
610
610
|
"controlType": "sap.m.Button"
|
|
611
611
|
},
|
|
612
612
|
"activeIcon": {
|
|
613
|
-
"description": "Alternative icon for the active (depressed) state of the button, represented as RFC 3986 conformant URI.",
|
|
613
|
+
"description": "Alternative icon for the active (depressed) state of the button. Can be an image or icon from the icon font (https://sapui5.hana.ondemand.com/test-resources/sap/m/demokit/iconExplorer/webapp/index.html#/overview/SAP-icons), represented as RFC 3986 conformant URI.",
|
|
614
614
|
"type": "string",
|
|
615
615
|
"artifactType": "FlexChange",
|
|
616
616
|
"controlType": "sap.m.Button"
|
|
@@ -631,6 +631,9 @@
|
|
|
631
631
|
{
|
|
632
632
|
"$ref": "#/definitions/TableColumn"
|
|
633
633
|
},
|
|
634
|
+
{
|
|
635
|
+
"$ref": "#/definitions/TableColumnAction"
|
|
636
|
+
},
|
|
634
637
|
{
|
|
635
638
|
"description": "Custom Columns",
|
|
636
639
|
"isViewNode": true,
|
|
@@ -681,6 +684,59 @@
|
|
|
681
684
|
],
|
|
682
685
|
"type": "string"
|
|
683
686
|
},
|
|
687
|
+
"TableColumnAction": {
|
|
688
|
+
"description": "Column Action",
|
|
689
|
+
"isViewNode": true,
|
|
690
|
+
"type": "object",
|
|
691
|
+
"properties": {
|
|
692
|
+
"tooltip": {
|
|
693
|
+
"description": "The text of the button tooltip, preferably as an i18n key.",
|
|
694
|
+
"i18nClassification": "ACT: Text for tooltip of button.",
|
|
695
|
+
"type": "string",
|
|
696
|
+
"artifactType": "FlexChange",
|
|
697
|
+
"controlType": "sap.m.Button"
|
|
698
|
+
},
|
|
699
|
+
"icon": {
|
|
700
|
+
"description": "Icon to be displayed as graphical element within the Button. Can be an image or icon from the icon font (https://sapui5.hana.ondemand.com/test-resources/sap/m/demokit/iconExplorer/webapp/index.html#/overview/SAP-icons), represented as RFC 3986 conformant URI.",
|
|
701
|
+
"type": "string",
|
|
702
|
+
"artifactType": "FlexChange",
|
|
703
|
+
"controlType": "sap.m.Button"
|
|
704
|
+
},
|
|
705
|
+
"activeIcon": {
|
|
706
|
+
"description": "Alternative icon for the active (depressed) state of the button. Can be an image or icon from the icon font (https://sapui5.hana.ondemand.com/test-resources/sap/m/demokit/iconExplorer/webapp/index.html#/overview/SAP-icons), represented as RFC 3986 conformant URI.",
|
|
707
|
+
"type": "string",
|
|
708
|
+
"artifactType": "FlexChange",
|
|
709
|
+
"controlType": "sap.m.Button"
|
|
710
|
+
},
|
|
711
|
+
"type": {
|
|
712
|
+
"$ref": "#/definitions/ButtonType",
|
|
713
|
+
"description": "Defines the Button type.",
|
|
714
|
+
"artifactType": "FlexChange",
|
|
715
|
+
"controlType": "sap.m.Button"
|
|
716
|
+
},
|
|
717
|
+
"width": {
|
|
718
|
+
"description": "The width property defines the width of the column.",
|
|
719
|
+
"type": "string",
|
|
720
|
+
"artifactType": "FlexChange",
|
|
721
|
+
"controlType": "sap.m.Column"
|
|
722
|
+
},
|
|
723
|
+
"hAlign": {
|
|
724
|
+
"pattern": "^(Begin|Center|End|Initial|Left|Right)$|^{[A-Za-z0-9{}&$!@#? _|,<>'()[\\]\\/:=.]+}$",
|
|
725
|
+
"anyOf": [
|
|
726
|
+
{
|
|
727
|
+
"$ref": "#/definitions/HAlign"
|
|
728
|
+
},
|
|
729
|
+
{
|
|
730
|
+
"type": "string"
|
|
731
|
+
}
|
|
732
|
+
],
|
|
733
|
+
"description": "The hAlign property defines the horizontal alignment of the column content.",
|
|
734
|
+
"artifactType": "FlexChange",
|
|
735
|
+
"controlType": "sap.m.Column"
|
|
736
|
+
}
|
|
737
|
+
},
|
|
738
|
+
"additionalProperties": false
|
|
739
|
+
},
|
|
684
740
|
"TableCustomColumn": {
|
|
685
741
|
"description": "Custom Column",
|
|
686
742
|
"isViewNode": true,
|
|
@@ -1142,28 +1198,47 @@
|
|
|
1142
1198
|
"type"
|
|
1143
1199
|
]
|
|
1144
1200
|
},
|
|
1145
|
-
"ObjectPageFooter<
|
|
1201
|
+
"ObjectPageFooter<ObjectPageFooterActions>": {
|
|
1146
1202
|
"description": "Footer",
|
|
1147
1203
|
"isViewNode": true,
|
|
1148
1204
|
"type": "object",
|
|
1149
1205
|
"properties": {
|
|
1150
1206
|
"actions": {
|
|
1151
|
-
"$ref": "#/definitions/
|
|
1207
|
+
"$ref": "#/definitions/ObjectPageFooterActions"
|
|
1152
1208
|
}
|
|
1153
1209
|
},
|
|
1154
1210
|
"additionalProperties": false
|
|
1155
1211
|
},
|
|
1156
|
-
"
|
|
1212
|
+
"ObjectPageFooterActions": {
|
|
1157
1213
|
"type": "object",
|
|
1158
1214
|
"additionalProperties": {
|
|
1159
|
-
"$ref": "#/definitions/
|
|
1215
|
+
"$ref": "#/definitions/ObjectPageFooterAction"
|
|
1160
1216
|
}
|
|
1161
1217
|
},
|
|
1162
|
-
"
|
|
1218
|
+
"ObjectPageFooterAction": {
|
|
1163
1219
|
"description": "Footer Action",
|
|
1164
1220
|
"isViewNode": true,
|
|
1165
1221
|
"type": "object",
|
|
1166
1222
|
"properties": {
|
|
1223
|
+
"visible": {
|
|
1224
|
+
"pattern": "^(false|true)$|^{[A-Za-z0-9{}&$!@#? _|,<>'()[\\]\\/:=.]+}$",
|
|
1225
|
+
"anyOf": [
|
|
1226
|
+
{
|
|
1227
|
+
"enum": [
|
|
1228
|
+
false,
|
|
1229
|
+
true,
|
|
1230
|
+
"{ui>/editable}",
|
|
1231
|
+
"{= !${ui>/editable}}"
|
|
1232
|
+
]
|
|
1233
|
+
},
|
|
1234
|
+
{
|
|
1235
|
+
"type": "string"
|
|
1236
|
+
}
|
|
1237
|
+
],
|
|
1238
|
+
"description": "Whether the button should be visible on the screen.",
|
|
1239
|
+
"artifactType": "FlexChange",
|
|
1240
|
+
"controlType": "sap.m.Button"
|
|
1241
|
+
},
|
|
1167
1242
|
"tooltip": {
|
|
1168
1243
|
"description": "The text of the button tooltip, preferably as an i18n key.",
|
|
1169
1244
|
"i18nClassification": "ACT: Text for tooltip of button.",
|
|
@@ -1172,13 +1247,13 @@
|
|
|
1172
1247
|
"controlType": "sap.m.Button"
|
|
1173
1248
|
},
|
|
1174
1249
|
"icon": {
|
|
1175
|
-
"description": "Icon to be displayed as graphical element within the Button. Can be an image or icon from the icon font, represented as RFC 3986 conformant URI.",
|
|
1250
|
+
"description": "Icon to be displayed as graphical element within the Button. Can be an image or icon from the icon font (https://sapui5.hana.ondemand.com/test-resources/sap/m/demokit/iconExplorer/webapp/index.html#/overview/SAP-icons), represented as RFC 3986 conformant URI.",
|
|
1176
1251
|
"type": "string",
|
|
1177
1252
|
"artifactType": "FlexChange",
|
|
1178
1253
|
"controlType": "sap.m.Button"
|
|
1179
1254
|
},
|
|
1180
1255
|
"activeIcon": {
|
|
1181
|
-
"description": "Alternative icon for the active (depressed) state of the button, represented as RFC 3986 conformant URI.",
|
|
1256
|
+
"description": "Alternative icon for the active (depressed) state of the button. Can be an image or icon from the icon font (https://sapui5.hana.ondemand.com/test-resources/sap/m/demokit/iconExplorer/webapp/index.html#/overview/SAP-icons), represented as RFC 3986 conformant URI.",
|
|
1182
1257
|
"type": "string",
|
|
1183
1258
|
"artifactType": "FlexChange",
|
|
1184
1259
|
"controlType": "sap.m.Button"
|
|
@@ -1188,25 +1263,6 @@
|
|
|
1188
1263
|
"description": "Defines the Button type.",
|
|
1189
1264
|
"artifactType": "FlexChange",
|
|
1190
1265
|
"controlType": "sap.m.Button"
|
|
1191
|
-
},
|
|
1192
|
-
"visible": {
|
|
1193
|
-
"pattern": "^(false|true)$|^{[A-Za-z0-9{}&$!@#? _|,<>'()[\\]\\/:=.]+}$",
|
|
1194
|
-
"anyOf": [
|
|
1195
|
-
{
|
|
1196
|
-
"enum": [
|
|
1197
|
-
false,
|
|
1198
|
-
true,
|
|
1199
|
-
"{ui>/editable}",
|
|
1200
|
-
"{= !${ui>/editable}}"
|
|
1201
|
-
]
|
|
1202
|
-
},
|
|
1203
|
-
{
|
|
1204
|
-
"type": "string"
|
|
1205
|
-
}
|
|
1206
|
-
],
|
|
1207
|
-
"description": "Whether the button should be visible on the screen.",
|
|
1208
|
-
"artifactType": "FlexChange",
|
|
1209
|
-
"controlType": "sap.m.Button"
|
|
1210
1266
|
}
|
|
1211
1267
|
},
|
|
1212
1268
|
"additionalProperties": false
|
|
@@ -13,8 +13,13 @@ const typescript_json_schema_1 = require("typescript-json-schema");
|
|
|
13
13
|
const utils_1 = require("../src/sync/v2/generate/utils");
|
|
14
14
|
const factory_1 = require("../src/sync/v2/export/factory");
|
|
15
15
|
const common_1 = require("../src/specification/common");
|
|
16
|
+
//TS compiler options, compare with tsconfig
|
|
16
17
|
const compilerOptions = {
|
|
17
|
-
skipLibCheck: true
|
|
18
|
+
skipLibCheck: true,
|
|
19
|
+
types: ['node', 'jest'],
|
|
20
|
+
esModuleInterop: true,
|
|
21
|
+
resolveJsonModule: true,
|
|
22
|
+
downlevelIteration: true
|
|
18
23
|
};
|
|
19
24
|
/**
|
|
20
25
|
* Convert interfaces to json schema
|
|
@@ -23,48 +28,38 @@ const compilerOptions = {
|
|
|
23
28
|
*/
|
|
24
29
|
function convertInterfaces(path, files, version) {
|
|
25
30
|
const schemas = [];
|
|
26
|
-
const paths = [];
|
|
27
|
-
files.forEach((file) => {
|
|
28
|
-
paths.push(path_1.join(path, file));
|
|
29
|
-
});
|
|
30
31
|
files.forEach((file) => {
|
|
31
32
|
const generator = typescript_json_schema_1.buildGenerator(typescript_json_schema_1.getProgramFromFiles([path_1.join(path, file)], compilerOptions), {
|
|
32
33
|
noExtraProps: true,
|
|
33
34
|
required: true,
|
|
34
|
-
validationKeywords: [
|
|
35
|
-
'i18nClassification',
|
|
36
|
-
'isViewNode',
|
|
37
|
-
'displayName',
|
|
38
|
-
'dataType',
|
|
39
|
-
'controlProperty',
|
|
40
|
-
'annotationType',
|
|
41
|
-
'annotationPath'
|
|
42
|
-
]
|
|
35
|
+
validationKeywords: ['i18nClassification', 'isViewNode', 'displayName', 'controlProperty']
|
|
43
36
|
});
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
37
|
+
if (generator) {
|
|
38
|
+
const filename = file.replace('ts', 'json');
|
|
39
|
+
schemas[filename] = generator.getSchemaForSymbol(file.replace('.ts', ''));
|
|
40
|
+
if (file.search('Config') > -1) {
|
|
41
|
+
//it is a page template ==> enhance schema by further information from reflect-metadata
|
|
42
|
+
let pageType;
|
|
43
|
+
let factory;
|
|
44
|
+
if (version === common_1.FioriElementsVersion.v2) {
|
|
45
|
+
factory = new factory_1.MetadataInstanceFactoryV2();
|
|
46
|
+
pageType = file.split('Config')[0];
|
|
47
|
+
}
|
|
48
|
+
const page = factory.createPageInstance(pageType, {});
|
|
49
|
+
utils_1.processMetadata(schemas[filename], schemas[filename], page, pageType, factory);
|
|
53
50
|
}
|
|
54
|
-
const page = factory.createPageInstance(pageType, {});
|
|
55
|
-
utils_1.processMetadata(schemas[filename], schemas[filename], page, pageType, factory);
|
|
56
51
|
}
|
|
57
52
|
});
|
|
58
53
|
return schemas;
|
|
59
54
|
}
|
|
60
55
|
exports.convertInterfaces = convertInterfaces;
|
|
61
56
|
function writeSchemasToFile(path, schemas, version) {
|
|
62
|
-
const
|
|
63
|
-
if (!fs.existsSync(
|
|
64
|
-
fs.mkdirSync(
|
|
57
|
+
const dirToWrite = path_1.join(path, version);
|
|
58
|
+
if (!fs.existsSync(dirToWrite)) {
|
|
59
|
+
fs.mkdirSync(dirToWrite);
|
|
65
60
|
}
|
|
66
61
|
for (const schema in schemas) {
|
|
67
|
-
const file = path_1.join(
|
|
62
|
+
const file = path_1.join(dirToWrite, schema);
|
|
68
63
|
fs.writeFile(file, JSON.stringify(schemas[schema], null, 2), function (err) {
|
|
69
64
|
if (err) {
|
|
70
65
|
return console.log(err);
|
|
@@ -73,7 +68,7 @@ function writeSchemasToFile(path, schemas, version) {
|
|
|
73
68
|
});
|
|
74
69
|
}
|
|
75
70
|
}
|
|
76
|
-
function convertPagesOfFEVersion(
|
|
71
|
+
function convertPagesOfFEVersion(paths, version, outputPath) {
|
|
77
72
|
let fileNames = [];
|
|
78
73
|
for (let index = 0; index < paths.length; index++) {
|
|
79
74
|
fs.readdir(paths[index], function (err, files) {
|
|
@@ -89,7 +84,7 @@ function convertPagesOfFEVersion(schemas, paths, version, outputPath) {
|
|
|
89
84
|
fileNames.push(fileName);
|
|
90
85
|
}
|
|
91
86
|
});
|
|
92
|
-
schemas = convertInterfaces(paths[index], fileNames, version);
|
|
87
|
+
const schemas = convertInterfaces(paths[index], fileNames, version);
|
|
93
88
|
fileNames = [];
|
|
94
89
|
writeSchemasToFile(outputPath, schemas, version);
|
|
95
90
|
});
|
|
@@ -104,7 +99,7 @@ async function toJsonSchema(outputPath) {
|
|
|
104
99
|
//Pages V2
|
|
105
100
|
const paths = [];
|
|
106
101
|
paths.push(path_1.join('src', 'specification', 'v2', 'pages'));
|
|
107
|
-
convertPagesOfFEVersion(
|
|
102
|
+
convertPagesOfFEVersion(paths, common_1.FioriElementsVersion.v2, outputPath);
|
|
108
103
|
//App V2
|
|
109
104
|
schemas = convertInterfaces(path_1.join('src', 'specification', 'v2'), ['ApplicationV2.ts'], common_1.FioriElementsVersion.v2);
|
|
110
105
|
writeSchemasToFile(outputPath, schemas, 'v2');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"to-json-schema.js","sourceRoot":"","sources":["../../scripts/to-json-schema.ts"],"names":[],"mappings":";;;;;;;;;AAAA,+BAAsC;AACtC,uCAAyB;AACzB,mEAAkG;AAClG,yDAAgE;AAChE,2DAAuF;AACvF,wDAA6E;AAK7E,MAAM,eAAe,GAAG;IACpB,YAAY,EAAE,IAAI;
|
|
1
|
+
{"version":3,"file":"to-json-schema.js","sourceRoot":"","sources":["../../scripts/to-json-schema.ts"],"names":[],"mappings":";;;;;;;;;AAAA,+BAAsC;AACtC,uCAAyB;AACzB,mEAAkG;AAClG,yDAAgE;AAChE,2DAAuF;AACvF,wDAA6E;AAK7E,4CAA4C;AAC5C,MAAM,eAAe,GAAG;IACpB,YAAY,EAAE,IAAI;IAClB,KAAK,E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nD,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE;IACrB,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;CACrB;AACD,YAAY,CAAC,GAAG,CAAC,CAAC"}
|
package/dist/src/api.js
CHANGED
|
@@ -98,7 +98,7 @@ exports.importConfig = importConfig;
|
|
|
98
98
|
* @returns a list of files, comprising app schemas and configs
|
|
99
99
|
*/
|
|
100
100
|
async function importProject(importParameters) {
|
|
101
|
-
return
|
|
101
|
+
return common_1.importProjectSchemaAndConfig(importParameters);
|
|
102
102
|
}
|
|
103
103
|
exports.importProject = importProject;
|
|
104
104
|
/**
|
|
@@ -107,7 +107,7 @@ exports.importProject = importProject;
|
|
|
107
107
|
* @returns a list of files, comprising all app schemas
|
|
108
108
|
*/
|
|
109
109
|
async function importProjectSchema(importParameters) {
|
|
110
|
-
return
|
|
110
|
+
return common_1.importProjectSchema(importParameters);
|
|
111
111
|
}
|
|
112
112
|
exports.importProjectSchema = importProjectSchema;
|
|
113
113
|
/**
|
|
@@ -116,7 +116,7 @@ exports.importProjectSchema = importProjectSchema;
|
|
|
116
116
|
*/
|
|
117
117
|
function getApiVersion() {
|
|
118
118
|
return {
|
|
119
|
-
version: '
|
|
119
|
+
version: '3'
|
|
120
120
|
};
|
|
121
121
|
}
|
|
122
122
|
exports.getApiVersion = getApiVersion;
|
package/dist/src/api.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../src/api.ts"],"names":[],"mappings":";;AAAA;;GAEG;AACH,sDAAmE;AACnE,+DAA0D;AAS1D,iDAK4B;AAC5B,4DAA2D;AAC3D,6CAK0B;AAC1B,0CAA6G;AAG7G;;;;;GAKG;AACH,6DAAgE;AAAvD,0CAAA,gBAAgB,CAAA;AAEzB;;;GAGG;AACH,SAAgB,cAAc,CAAC,kBAA4C;IACvE,IAAI,MAAc,CAAC;IACnB,IAAI,kBAAkB,CAAC,2BAAo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D,IAAI,QAAQ,CAAC,yBAAU,CAAC,UAAU,CAAC,EAAE;YACjC,MAAM,GAAG,+BAAwB,CAAC,QAAQ,CAAC,yBAAU,CAAC,UAAU,CAAC,CAAC,CAAC;SACtE;aAAM,IAAI,QAAQ,CAAC,yBAAU,CAAC,UAAU,CAAC,EAAE;YACxC,MAAM,GAAG,iCAAwB,CAAC,QAAQ,CAAC,yBAAU,CAAC,UAAU,CAAC,CAAC,CAAC;SACtE;aAAM,IAAI,QAAQ,CAAC,yBAAU,CAAC,YAAY,CAAC,EAAE;YAC1C,MAAM,GAAG,iCAA0B,CAAC,QAAQ,CAAC,yBAAU,CAAC,YAAY,CAAC,CAAC,CAAC;SAC1E;aAAM,IAAI,QAAQ,CAAC,yBAAU,CAAC,kBAAkB,CAAC,EAAE;YAChD,MAAM,GAAG,uCAAgC,CAAC,QAAQ,CAAC,yBAAU,CAAC,kBAAkB,CAAC,CAAC,CAAC;SACtF;KACJ;IACD,OAAO,MAAM,CAAC;AAClB,CAAC;AAlBD,oCAkBC;AAED;;;;GAIG;AACI,KAAK,UAAU,aAAa,CAAC,gBAAyC;IACzE,OAAO,qCAA4B,CAAC,gBAAgB,CAAC,CAAC;AAC1D,CAAC;AAFD,sCAEC;AAED;;;;GAIG;AACI,KAAK,UAAU,mBAAmB,CAAC,gBAAyC;IAC/E,OAAO,4BAAuB,CAAC,gBAAgB,CAAC,CAAC;AACrD,CAAC;AAFD,kDAEC;AAED;;;GAGG;AACH,SAAgB,aAAa;IACzB,OAAO;QACH,OAAO,EAAE,GAAG;KACf,CAAC;AACN,CAAC;AAJD,sCAIC"}
|
package/dist/src/apiTypes.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SchemaType } from './specification/schemaAccess';
|
|
2
2
|
import { FioriElementsVersion } from './specification/common/page';
|
|
3
3
|
import { Page as PageV2 } from './specification/v2/page';
|
|
4
|
-
import { FileData, File, ExportResults
|
|
4
|
+
import { FileData, File, ExportResults } from './sync/common/types';
|
|
5
5
|
import { ApplicationV2, ObjectPageConfig as ObjectPageConfigV2, ListReportConfig as ListReportConfigV2, OverviewPageConfig as OverviewPageConfigV2, AnalyticalListPageConfig as AnalyticalListPageConfigV2, Manifest as ManifestV2, FlexChangeLayer } from './v2';
|
|
6
6
|
import { ConverterOutput } from '@sap-ux/vocabularies-types';
|
|
7
7
|
export declare type MessageMetadataType = (object | string | number)[];
|
|
@@ -32,7 +32,6 @@ export declare type GenerateObjectPageV2 = {
|
|
|
32
32
|
entitySet: string;
|
|
33
33
|
annotations: FileData[];
|
|
34
34
|
manifest: object;
|
|
35
|
-
service: ServiceMetadata;
|
|
36
35
|
fragments: FileData[];
|
|
37
36
|
logger?: ExtensionLogger;
|
|
38
37
|
};
|