@sap/ux-specification 1.96.10 → 1.96.13

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 (63) hide show
  1. package/CHANGELOG.md +83 -16
  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/AnalyticalListPageConfig.json +10 -10
  12. package/dist/schemas/v2/ListReportConfig.json +15 -15
  13. package/dist/schemas/v2/ObjectPageConfig.json +204 -20
  14. package/dist/schemas/v4/ListReportConfig.json +22 -2
  15. package/dist/schemas/v4/ObjectPageConfig.json +36 -0
  16. package/dist/specification/v2/index-min.js +1 -1
  17. package/dist/src/apiTypes.d.ts +5 -4
  18. package/dist/src/project.d.ts +1 -0
  19. package/dist/src/specification/v2/controls/Action.d.ts +6 -4
  20. package/dist/src/specification/v2/controls/Facets.d.ts +2 -1
  21. package/dist/src/specification/v2/controls/ObjectPageHeader.d.ts +3 -2
  22. package/dist/src/specification/v2/controls/ObjectPageSection.d.ts +44 -9
  23. package/dist/src/specification/v2/controls/ObjectPageTable.d.ts +5 -3
  24. package/dist/src/specification/v2/controls/Table.d.ts +7 -4
  25. package/dist/src/specification/v4/controls/ObjectPageSection.d.ts +22 -1
  26. package/dist/src/specification/v4/controls/Table.d.ts +4 -0
  27. package/dist/src/sync/common/appProvider.d.ts +1 -1
  28. package/dist/src/sync/common/decoration/control.d.ts +1 -1
  29. package/dist/src/sync/common/decoration/decorators.d.ts +2 -2
  30. package/dist/src/sync/common/generate/objectPage.d.ts +8 -9
  31. package/dist/src/sync/common/generate/utils.d.ts +62 -13
  32. package/dist/src/sync/common/import/utils.d.ts +9 -2
  33. package/dist/src/sync/common/importProject.d.ts +2 -3
  34. package/dist/src/sync/common/types.d.ts +65 -9
  35. package/dist/src/sync/common/utils.d.ts +30 -23
  36. package/dist/src/sync/v2/application.d.ts +3 -3
  37. package/dist/src/sync/v2/export/controls/Action.d.ts +12 -10
  38. package/dist/src/sync/v2/export/controls/FormAction.d.ts +9 -7
  39. package/dist/src/sync/v2/export/controls/ObjectPageFooterAction.d.ts +6 -4
  40. package/dist/src/sync/v2/export/controls/ObjectPageHeader.d.ts +3 -2
  41. package/dist/src/sync/v2/export/controls/ObjectPageHeaderAction.d.ts +6 -4
  42. package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.d.ts +26 -14
  43. package/dist/src/sync/v2/export/controls/ObjectPageTable.d.ts +5 -3
  44. package/dist/src/sync/v2/export/controls/ObjectPageToolBarAction.d.ts +6 -4
  45. package/dist/src/sync/v2/export/controls/Table.d.ts +6 -3
  46. package/dist/src/sync/v2/export/controls/TableColumn.d.ts +12 -10
  47. package/dist/src/sync/v2/export/export.d.ts +0 -1
  48. package/dist/src/sync/v2/export/manifest.d.ts +6 -0
  49. package/dist/src/sync/v2/export/pages/OverviewPage.d.ts +1 -1
  50. package/dist/src/sync/v2/generate/listReport.d.ts +3 -4
  51. package/dist/src/sync/v2/generate/utils.d.ts +11 -9
  52. package/dist/src/sync/v2/import/app/appProvider.d.ts +9 -0
  53. package/dist/src/sync/v2/types.d.ts +8 -3
  54. package/dist/src/sync/v4/application.d.ts +22 -10
  55. package/dist/src/sync/v4/export/controls/Table.d.ts +8 -2
  56. package/dist/src/sync/v4/export/types.d.ts +5 -5
  57. package/dist/src/sync/v4/generate/listReport.d.ts +2 -2
  58. package/dist/src/sync/v4/generate/objectPage.d.ts +1 -1
  59. package/dist/src/sync/v4/import/pages/objectPage.d.ts +13 -0
  60. package/dist/src/sync/v4/import/utils.d.ts +2 -1
  61. package/dist/src/sync/v4/types.d.ts +2 -0
  62. package/dist/src/sync/v4/utils/utils.d.ts +10 -11
  63. package/package.json +8 -8
@@ -234,6 +234,9 @@
234
234
  },
235
235
  {
236
236
  "$ref": "#/definitions/ObjectPageSectionAddress"
237
+ },
238
+ {
239
+ "$ref": "#/definitions/ObjectPageSectionPresentationVariant"
237
240
  }
238
241
  ]
239
242
  }
@@ -679,6 +682,39 @@
679
682
  },
680
683
  "additionalProperties": false
681
684
  },
685
+ "ObjectPageSectionPresentationVariant": {
686
+ "type": "object",
687
+ "additionalProperties": {
688
+ "anyOf": [
689
+ {
690
+ "$ref": "#/definitions/ObjectPageSectionTableV4"
691
+ },
692
+ {
693
+ "$ref": "#/definitions/ObjectPageSectionChart"
694
+ }
695
+ ]
696
+ }
697
+ },
698
+ "ObjectPageSectionChart": {
699
+ "type": "object",
700
+ "properties": {
701
+ "chart": {
702
+ "$ref": "#/definitions/ObjectPageChart",
703
+ "description": "Chart"
704
+ }
705
+ },
706
+ "additionalProperties": false
707
+ },
708
+ "ObjectPageChart": {
709
+ "type": "object",
710
+ "properties": {
711
+ "toolBar": {
712
+ "$ref": "#/definitions/ObjectPageToolBar",
713
+ "description": "Chart Toolbar"
714
+ }
715
+ },
716
+ "additionalProperties": false
717
+ },
682
718
  "CustomSections": {
683
719
  "description": "Custom Sections",
684
720
  "isViewNode": true,
@@ -1 +1 @@
1
- (()=>{"use strict";var e={3846:(e,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),function(e){e.Top="Top",e.Middle="Middle",e.Bottom="Bottom"}(a.TableColumnVerticalAlignment||(a.TableColumnVerticalAlignment={})),function(e){e.persistence="persistence",e.discovery="discovery"}(a.StatePreservationMode||(a.StatePreservationMode={})),function(e){e.restricted="restricted"}(a.DraftDiscardEnabledSettings||(a.DraftDiscardEnabledSettings={}))},2387:(e,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),function(e){e.bar="bar",e.column="column",e.line="line",e.combination="combination",e.pie="pie",e.donut="donut",e.scatter="scatter",e.bubble="bubble",e.heatmap="heatmap",e.bullet="bullet",e.verticalBullet="vertical_bullet",e.stackedBar="stacked_bar",e.stackedColumn="stacked_column",e.stackedCombination="stacked_combination",e.horizontalStackedCombination="horizontal_stacked_combination",e.dualBar="dual_bar",e.dualColumn="dual_column",e.dualLine="dual_line",e.dualStackedBar="dual_stacked_bar",e.dualStackedColumn="dual_stacked_column",e.dualCombination="dual_combination",e.dualStackedCombination="dual_stacked_combination",e.dualHorizontalCombination="dual_horizontal_combination",e.dualHorizontalStackedCombination="dual_horizontal_stacked_combination",e.hundredStackedBar="100_stacked_bar",e.hundredStackedColumn="100_stacked_column",e.hundredDualStackedBar="100_dual_stacked_bar",e.hundredDualStackedColumn="100_dual_stacked_column",e.waterfall="waterfall",e.horizontalWaterfall="horizontal_waterfall"}(a.ChartType||(a.ChartType={}))},6745:(e,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),function(e){e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut"}(a.ChartCardType||(a.ChartCardType={})),function(e){e.analytical="sap.ovp.cards.charts.analytical",e.analyticalv4="sap.ovp.cards.v4.charts.analytical",e.list="sap.ovp.cards.list",e.listv4="sap.ovp.cards.v4.list",e.linklist="sap.ovp.cards.linklist",e.linklistv4="sap.ovp.cards.v4.linklist",e.table="sap.ovp.cards.table",e.tablev4="sap.ovp.cards.v4.table",e.stack="sap.ovp.cards.stack"}(a.CardTemplateType||(a.CardTemplateType={})),a.cardTemplateTypeMap={"sap.ovp.cards.charts.analytical":"AnalyticalCard","sap.ovp.cards.v4.charts.analytical":"AnalyticalCard","sap.ovp.cards.list":"ListCard","sap.ovp.cards.v4.list":"ListCard","sap.ovp.cards.linklist":"LinklistCard","sap.ovp.cards.v4.linklist":"LinklistCard","sap.ovp.cards.table":"TableCard","sap.ovp.cards.v4.table":"TableCard","sap.ovp.cards.stack":"StackCard"},function(e){e.analyticalCardSettings="analyticalCardSettings",e.analyticalCardSettingsv4="analyticalCardSettingsv4",e.listCardSettings="listCardSettings",e.listCardSettingsv4="listCardSettingsv4",e.stackCardSettings="stackCardSettings",e.linkListCardSettings="linkListCardSettings",e.tableCardSettings="tableCardSettings",e.tableCardSettingsv4="tableCardSettingsv4"}(a.CardSettingsType||(a.CardSettingsType={})),function(e){e.average="average",e.max="max",e.min="min",e.sum="sum",e.count="$count"}(a.MeasureAggregateValues||(a.MeasureAggregateValues={})),function(e){e.standard="standard",e.bar="bar",e.carousel="carousel"}(a.ListFlavorType||(a.ListFlavorType={})),function(e){e.extended="extended",e.condensed="condensed"}(a.ListTypeType||(a.ListTypeType={})),function(e){e.ascending="ascending",e.descending="descending"}(a.SortOrderType||(a.SortOrderType={})),function(e){e.standard="standard",e.carousel="carousel"}(a.LinkListFlavorType||(a.LinkListFlavorType={}))},2922:(e,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),function(e){e.DATERANGE="DATERANGE",e.DATE="DATE",e.FROM="FROM",e.TO="TO",e.DAYS="DAYS",e.LASTDAYS="LASTDAYS",e.LASTWEEKS="LASTWEEKS",e.WEEK="WEEK",e.LASTMONTHS="LASTMONTHS",e.MONTH="MONTH",e.QUARTER="QUARTER",e.LASTQUARTERS="LASTQUARTERS",e.LASTYEARS="LASTYEARS",e.LASTYEAR="LASTYEAR",e.YEAR="YEAR",e.NEXTDAYS="NEXTDAYS",e.NEXTWEEKS="NEXTWEEKS",e.NEXTMONTHS="NEXTMONTHS",e.NEXTQUARTERS="NEXTQUARTERS",e.NEXTYEARS="NEXTYEARS",e.NEXT="NEXT",e.SPECIFICMONTH="SPECIFICMONTH",e.YESTERDAY="YESTERDAY",e.YEARTODATE="YEARTODATE",e.TODAY="TODAY",e.TOMORROW="TOMORROW",e.THISWEEK="THISWEEK",e.LASTWEEK="LASTWEEK",e.LAST2WEEKS="LAST2WEEKS",e.LAST3WEEKS="LAST3WEEKS",e.LAST4WEEKS="LAST4WEEKS",e.LAST5WEEKS="LAST5WEEKS",e.NEXTWEEK="NEXTWEEK",e.NEXT2WEEKS="NEXT2WEEKS",e.NEXT3WEEKS="NEXT3WEEKS",e.NEXT4WEEKS="NEXT4WEEKS",e.NEXT5WEEKS="NEXT5WEEKS",e.THISMONTH="THISMONTH",e.LASTMONTH="LASTMONTH",e.NEXTMONTH="NEXTMONTH",e.THISQUARTER="THISQUARTER",e.LASTQUARTER="LASTQUARTER",e.NEXTQUARTER="NEXTQUARTER",e.QUARTER1="QUARTER1",e.QUARTER2="QUARTER2",e.QUARTER3="QUARTER3",e.QUARTER4="QUARTER4",e.TODAYFROMTO="TODAYFROMTO"}(a.DateRangeType||(a.DateRangeType={})),function(e){e.YESTERDAY="YESTERDAY",e.TODAY="TODAY",e.THISWEEK="THISWEEK",e.LASTWEEK="LASTWEEK",e.THISMONTH="THISMONTH",e.TOMORROW="TOMORROW",e.LASTMONTH="LASTMONTH",e.THISQUARTER="THISQUARTER",e.LASTQUARTER="LASTQUARTER",e.THISYEAR="THISYEAR",e.LASTYEAR="LASTYEAR",e.LAST2WEEKS="LAST2WEEKS",e.LAST3WEEKS="LAST3WEEKS",e.LAST4WEEKS="LAST4WEEKS",e.LAST5WEEKS="LAST5WEEKS",e.YEARTODATE="YEARTODATE",e.QUARTER1="QUARTER1",e.QUARTER2="QUARTER2",e.QUARTER3="QUARTER3",e.QUARTER4="QUARTER4",e.DATETOYEAR="DATETOYEAR"}(a.DefaultDateRangeValueType||(a.DefaultDateRangeValueType={}))},7876:(e,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),function(e){e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet"}(a.SectionPosition||(a.SectionPosition={})),function(e){e.XML="XML"}(a.ExtensionFragmentTypes||(a.ExtensionFragmentTypes={}))},9649:(e,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),function(e){e.inline="inline"}(a.CreateMode||(a.CreateMode={}))},2906:(e,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),function(e){e.XML="XML"}(a.customColumnViewTypes||(a.customColumnViewTypes={})),function(e){e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable"}(a.TableTypeV2||(a.TableTypeV2={})),function(e){e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension"}(a.TableColumnExtensionTypeV2||(a.TableColumnExtensionTypeV2={})),function(e){e.extension="extension"}(a.Strategy||(a.Strategy={})),function(e){e.charttable="charttable",e.chart="chart",e.table="table"}(a.DefaultContentView||(a.DefaultContentView={})),function(e){e.visual="visual",e.compact="compact"}(a.DefaultFilterMode||(a.DefaultFilterMode={})),function(e){e.always="always",e.never="never",e.ifAnyFilterExist="ifAnyFilterExist"}(a.LoadDataOnAppLaunchSettings||(a.LoadDataOnAppLaunchSettings={}))},6402:(e,a,t)=>{function n(e){for(var t in e)a.hasOwnProperty(t)||(a[t]=e[t])}Object.defineProperty(a,"__esModule",{value:!0}),n(t(6745)),n(t(2922)),n(t(2906)),n(t(2387)),n(t(7876)),n(t(9649))},390:(e,a,t)=>{function n(e){for(var t in e)a.hasOwnProperty(t)||(a[t]=e[t])}Object.defineProperty(a,"__esModule",{value:!0}),n(t(3800)),n(t(6402)),n(t(9809)),n(t(3846))},2505:(e,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),function(e){e.fixed="fixed",e.resizable="resizable"}(a.ContainerLayoutType||(a.ContainerLayoutType={}))},3800:(e,a,t)=>{Object.defineProperty(a,"__esModule",{value:!0}),function(e){for(var t in e)a.hasOwnProperty(t)||(a[t]=e[t])}(t(2505))},9809:(e,a,t)=>{Object.defineProperty(a,"__esModule",{value:!0}),function(e){for(var t in e)a.hasOwnProperty(t)||(a[t]=e[t])}(t(4149))},4149:(e,a,t)=>{function n(e){for(var t in e)a.hasOwnProperty(t)||(a[t]=e[t])}Object.defineProperty(a,"__esModule",{value:!0}),n(t(4867)),n(t(1374))},1374:(e,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.SAPUI5_VIEW_EXTENSION="sap.ui.viewExtensions",a.SAPUI5_CONTROLLER_EXTENSION="sap.ui.controllerExtensions",a.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE="sap.suite.ui.generic.template.ObjectPage.view.Details",a.SAPUI5_VIEW_EXTENSION_LIST_REPORT="sap.suite.ui.generic.template.ListReport.view.ListReport",a.SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage"},4867:(e,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.FE_TEMPLATE_V2="sap.suite.ui.generic.template",a.FE_TEMPLATE_V2_OBJECT_PAGE="sap.suite.ui.generic.template.ObjectPage",a.FE_TEMPLATE_V2_LIST_REPORT="sap.suite.ui.generic.template.ListReport",a.FE_TEMPLATE_V2_ALP="sap.suite.ui.generic.template.AnalyticalListPage"}},a={};var t=function t(n){var i=a[n];if(void 0!==i)return i.exports;var l=a[n]={exports:{}};return e[n](l,l.exports,t),l.exports}(390);module.exports=t})();
1
+ (()=>{"use strict";var e={3846:(e,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),function(e){e.Top="Top",e.Middle="Middle",e.Bottom="Bottom"}(a.TableColumnVerticalAlignment||(a.TableColumnVerticalAlignment={})),function(e){e.persistence="persistence",e.discovery="discovery"}(a.StatePreservationMode||(a.StatePreservationMode={})),function(e){e.restricted="restricted"}(a.DraftDiscardEnabledSettings||(a.DraftDiscardEnabledSettings={}))},2387:(e,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),function(e){e.bar="bar",e.column="column",e.line="line",e.combination="combination",e.pie="pie",e.donut="donut",e.scatter="scatter",e.bubble="bubble",e.heatmap="heatmap",e.bullet="bullet",e.verticalBullet="vertical_bullet",e.stackedBar="stacked_bar",e.stackedColumn="stacked_column",e.stackedCombination="stacked_combination",e.horizontalStackedCombination="horizontal_stacked_combination",e.dualBar="dual_bar",e.dualColumn="dual_column",e.dualLine="dual_line",e.dualStackedBar="dual_stacked_bar",e.dualStackedColumn="dual_stacked_column",e.dualCombination="dual_combination",e.dualStackedCombination="dual_stacked_combination",e.dualHorizontalCombination="dual_horizontal_combination",e.dualHorizontalStackedCombination="dual_horizontal_stacked_combination",e.hundredStackedBar="100_stacked_bar",e.hundredStackedColumn="100_stacked_column",e.hundredDualStackedBar="100_dual_stacked_bar",e.hundredDualStackedColumn="100_dual_stacked_column",e.waterfall="waterfall",e.horizontalWaterfall="horizontal_waterfall"}(a.ChartType||(a.ChartType={}))},6745:(e,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),function(e){e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut"}(a.ChartCardType||(a.ChartCardType={})),function(e){e.analytical="sap.ovp.cards.charts.analytical",e.analyticalv4="sap.ovp.cards.v4.charts.analytical",e.list="sap.ovp.cards.list",e.listv4="sap.ovp.cards.v4.list",e.linklist="sap.ovp.cards.linklist",e.linklistv4="sap.ovp.cards.v4.linklist",e.table="sap.ovp.cards.table",e.tablev4="sap.ovp.cards.v4.table",e.stack="sap.ovp.cards.stack"}(a.CardTemplateType||(a.CardTemplateType={})),a.cardTemplateTypeMap={"sap.ovp.cards.charts.analytical":"AnalyticalCard","sap.ovp.cards.v4.charts.analytical":"AnalyticalCard","sap.ovp.cards.list":"ListCard","sap.ovp.cards.v4.list":"ListCard","sap.ovp.cards.linklist":"LinklistCard","sap.ovp.cards.v4.linklist":"LinklistCard","sap.ovp.cards.table":"TableCard","sap.ovp.cards.v4.table":"TableCard","sap.ovp.cards.stack":"StackCard"},function(e){e.analyticalCardSettings="analyticalCardSettings",e.analyticalCardSettingsv4="analyticalCardSettingsv4",e.listCardSettings="listCardSettings",e.listCardSettingsv4="listCardSettingsv4",e.stackCardSettings="stackCardSettings",e.linkListCardSettings="linkListCardSettings",e.tableCardSettings="tableCardSettings",e.tableCardSettingsv4="tableCardSettingsv4"}(a.CardSettingsType||(a.CardSettingsType={})),function(e){e.average="average",e.max="max",e.min="min",e.sum="sum",e.count="$count"}(a.MeasureAggregateValues||(a.MeasureAggregateValues={})),function(e){e.standard="standard",e.bar="bar",e.carousel="carousel"}(a.ListFlavorType||(a.ListFlavorType={})),function(e){e.extended="extended",e.condensed="condensed"}(a.ListTypeType||(a.ListTypeType={})),function(e){e.ascending="ascending",e.descending="descending"}(a.SortOrderType||(a.SortOrderType={})),function(e){e.standard="standard",e.carousel="carousel"}(a.LinkListFlavorType||(a.LinkListFlavorType={}))},2922:(e,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),function(e){e.DATERANGE="DATERANGE",e.DATE="DATE",e.FROM="FROM",e.TO="TO",e.DAYS="DAYS",e.LASTDAYS="LASTDAYS",e.LASTWEEKS="LASTWEEKS",e.WEEK="WEEK",e.LASTMONTHS="LASTMONTHS",e.MONTH="MONTH",e.QUARTER="QUARTER",e.LASTQUARTERS="LASTQUARTERS",e.LASTYEARS="LASTYEARS",e.LASTYEAR="LASTYEAR",e.YEAR="YEAR",e.NEXTDAYS="NEXTDAYS",e.NEXTWEEKS="NEXTWEEKS",e.NEXTMONTHS="NEXTMONTHS",e.NEXTQUARTERS="NEXTQUARTERS",e.NEXTYEARS="NEXTYEARS",e.NEXT="NEXT",e.SPECIFICMONTH="SPECIFICMONTH",e.YESTERDAY="YESTERDAY",e.YEARTODATE="YEARTODATE",e.TODAY="TODAY",e.TOMORROW="TOMORROW",e.THISWEEK="THISWEEK",e.LASTWEEK="LASTWEEK",e.LAST2WEEKS="LAST2WEEKS",e.LAST3WEEKS="LAST3WEEKS",e.LAST4WEEKS="LAST4WEEKS",e.LAST5WEEKS="LAST5WEEKS",e.NEXTWEEK="NEXTWEEK",e.NEXT2WEEKS="NEXT2WEEKS",e.NEXT3WEEKS="NEXT3WEEKS",e.NEXT4WEEKS="NEXT4WEEKS",e.NEXT5WEEKS="NEXT5WEEKS",e.THISMONTH="THISMONTH",e.LASTMONTH="LASTMONTH",e.NEXTMONTH="NEXTMONTH",e.THISQUARTER="THISQUARTER",e.LASTQUARTER="LASTQUARTER",e.NEXTQUARTER="NEXTQUARTER",e.QUARTER1="QUARTER1",e.QUARTER2="QUARTER2",e.QUARTER3="QUARTER3",e.QUARTER4="QUARTER4",e.TODAYFROMTO="TODAYFROMTO"}(a.DateRangeType||(a.DateRangeType={})),function(e){e.YESTERDAY="YESTERDAY",e.TODAY="TODAY",e.THISWEEK="THISWEEK",e.LASTWEEK="LASTWEEK",e.THISMONTH="THISMONTH",e.TOMORROW="TOMORROW",e.LASTMONTH="LASTMONTH",e.THISQUARTER="THISQUARTER",e.LASTQUARTER="LASTQUARTER",e.THISYEAR="THISYEAR",e.LASTYEAR="LASTYEAR",e.LAST2WEEKS="LAST2WEEKS",e.LAST3WEEKS="LAST3WEEKS",e.LAST4WEEKS="LAST4WEEKS",e.LAST5WEEKS="LAST5WEEKS",e.YEARTODATE="YEARTODATE",e.QUARTER1="QUARTER1",e.QUARTER2="QUARTER2",e.QUARTER3="QUARTER3",e.QUARTER4="QUARTER4",e.DATETOYEAR="DATETOYEAR"}(a.DefaultDateRangeValueType||(a.DefaultDateRangeValueType={}))},7876:(e,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),function(e){e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet"}(a.SectionPosition||(a.SectionPosition={})),function(e){e.XML="XML"}(a.ExtensionFragmentTypes||(a.ExtensionFragmentTypes={}))},9649:(e,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),function(e){e.inline="inline"}(a.CreateMode||(a.CreateMode={}))},2906:(e,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),function(e){e.XML="XML"}(a.customColumnViewTypes||(a.customColumnViewTypes={})),function(e){e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable"}(a.TableTypeV2||(a.TableTypeV2={})),function(e){e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension"}(a.TableColumnExtensionTypeV2||(a.TableColumnExtensionTypeV2={})),function(e){e.extension="extension"}(a.Strategy||(a.Strategy={})),function(e){e.charttable="charttable",e.chart="chart",e.table="table"}(a.DefaultContentView||(a.DefaultContentView={})),function(e){e.visual="visual",e.compact="compact"}(a.DefaultFilterMode||(a.DefaultFilterMode={})),function(e){e.always="always",e.never="never",e.ifAnyFilterExist="ifAnyFilterExist"}(a.LoadDataOnAppLaunchSettings||(a.LoadDataOnAppLaunchSettings={}))},6402:(e,a,t)=>{function n(e){for(var t in e)a.hasOwnProperty(t)||(a[t]=e[t])}Object.defineProperty(a,"__esModule",{value:!0}),n(t(6745)),n(t(2922)),n(t(2906)),n(t(2387)),n(t(7876)),n(t(9649))},390:(e,a,t)=>{function n(e){for(var t in e)a.hasOwnProperty(t)||(a[t]=e[t])}Object.defineProperty(a,"__esModule",{value:!0}),n(t(4350)),n(t(6402)),n(t(9809)),n(t(3846))},2505:(e,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),function(e){e.fixed="fixed",e.resizable="resizable"}(a.ContainerLayoutType||(a.ContainerLayoutType={}))},4350:(e,a,t)=>{Object.defineProperty(a,"__esModule",{value:!0}),function(e){for(var t in e)a.hasOwnProperty(t)||(a[t]=e[t])}(t(2505))},9809:(e,a,t)=>{Object.defineProperty(a,"__esModule",{value:!0}),function(e){for(var t in e)a.hasOwnProperty(t)||(a[t]=e[t])}(t(4149))},4149:(e,a,t)=>{function n(e){for(var t in e)a.hasOwnProperty(t)||(a[t]=e[t])}Object.defineProperty(a,"__esModule",{value:!0}),n(t(4867)),n(t(1374))},1374:(e,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.SAPUI5_VIEW_EXTENSION="sap.ui.viewExtensions",a.SAPUI5_CONTROLLER_EXTENSION="sap.ui.controllerExtensions",a.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE="sap.suite.ui.generic.template.ObjectPage.view.Details",a.SAPUI5_VIEW_EXTENSION_LIST_REPORT="sap.suite.ui.generic.template.ListReport.view.ListReport",a.SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage"},4867:(e,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.FE_TEMPLATE_V2="sap.suite.ui.generic.template",a.FE_TEMPLATE_V2_OBJECT_PAGE="sap.suite.ui.generic.template.ObjectPage",a.FE_TEMPLATE_V2_LIST_REPORT="sap.suite.ui.generic.template.ListReport",a.FE_TEMPLATE_V2_ALP="sap.suite.ui.generic.template.AnalyticalListPage"}},a={};var t=function t(n){var i=a[n];if(void 0!==i)return i.exports;var l=a[n]={exports:{}};return e[n](l,l.exports,t),l.exports}(390);module.exports=t})();
@@ -1,3 +1,4 @@
1
+ import type { Definition } from 'typescript-json-schema';
1
2
  import type { SchemaType } from './specification/schemaAccess';
2
3
  import type { FioriElementsVersion } from './specification/common/page';
3
4
  import type { Page as PageV2 } from './specification/v2/page';
@@ -5,7 +6,7 @@ import type { Page as PageV4 } from './specification/v4/page';
5
6
  import type { FileData, File, ExportResults } from './sync/common/types';
6
7
  import type { ApplicationV2, ObjectPageConfig as ObjectPageConfigV2, ListReportConfig as ListReportConfigV2, OverviewPageConfig as OverviewPageConfigV2, AnalyticalListPageConfig as AnalyticalListPageConfigV2, Manifest as ManifestV2, FlexChangeLayer } from './v2';
7
8
  import type { ApplicationV4, ObjectPageConfig as ObjectPageConfigV4, ListReportConfig as ListReportConfigV4, Manifest as ManifestV4 } from './v4';
8
- import type { ConverterOutput } from '@sap-ux/vocabularies-types';
9
+ import type { ConvertedMetadata } from '@sap-ux/vocabularies-types';
9
10
  import type { CustomPage, CustomTableColumn, CustomSection } from '@sap-ux/fe-fpm-writer';
10
11
  import type { Editor } from 'mem-fs-editor';
11
12
  import type { TemplateType } from './sync/common';
@@ -239,7 +240,7 @@ export declare type ImportAnalyticalListPageV2 = {
239
240
  */
240
241
  export declare type ImportListReportV4Parameters = {
241
242
  manifest: object;
242
- jsonSchema: object;
243
+ jsonSchema: Definition;
243
244
  logger?: ExtensionLogger;
244
245
  };
245
246
  export declare type ImportListReportV4 = {
@@ -247,7 +248,7 @@ export declare type ImportListReportV4 = {
247
248
  };
248
249
  export declare type ImportObjectPageV4Parameters = {
249
250
  manifest: object;
250
- jsonSchema: object;
251
+ jsonSchema: Definition;
251
252
  routingId: string;
252
253
  logger?: ExtensionLogger;
253
254
  };
@@ -283,7 +284,7 @@ export interface ImportProjectParameters {
283
284
  export interface GenerateAppSchemaParameters {
284
285
  templateType: TemplateType;
285
286
  manifest: ManifestV2 | ManifestV4;
286
- serviceAVT: ConverterOutput;
287
+ serviceAVT: ConvertedMetadata;
287
288
  fioriElementsVersion: FioriElementsVersion;
288
289
  fragments?: FileData[];
289
290
  logger?: ExtensionLogger;
@@ -9,6 +9,7 @@ export interface Project {
9
9
  }
10
10
  export declare const readDirectory: (path: string) => Promise<string[]>;
11
11
  export declare const isDirectory: (path: string) => Promise<boolean>;
12
+ export declare const getChanges: (webapp: string) => Promise<string[]>;
12
13
  /**
13
14
  * Get the project artefacts, like manifest, service metadata, annotations
14
15
  * @param root - project root where package.json is
@@ -1,4 +1,6 @@
1
- /// <reference types="@sapui5/ts-types" />
1
+ /// <reference types="@sapui5/ts-types-esm" />
2
+ import type { ButtonType } from 'sap/m/library';
3
+ import type { URI } from 'sap/ui/core/library';
2
4
  /**
3
5
  * Actions
4
6
  * @isViewNode true
@@ -19,15 +21,15 @@ export interface Action {
19
21
  /**
20
22
  * 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.
21
23
  */
22
- icon?: sap.ui.core.URI;
24
+ icon?: URI;
23
25
  /**
24
26
  * 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.
25
27
  */
26
- activeIcon?: sap.ui.core.URI;
28
+ activeIcon?: URI;
27
29
  /**
28
30
  * Defines the Button type.
29
31
  */
30
- type?: sap.m.ButtonType;
32
+ type?: ButtonType;
31
33
  }
32
34
  /**
33
35
  * Form Action
@@ -7,10 +7,11 @@ export declare type ObjectPageTableTypeV2 = ObjectPageResponsiveTable | ObjectPa
7
7
  export interface LineItemFacet {
8
8
  table: ObjectPageTableTypeV2;
9
9
  }
10
+ export declare type FormFacetType = boolean | number | string | object;
10
11
  /**
11
12
  * Form Facet
12
13
  * @isViewNode true
13
14
  */
14
15
  export interface FormFacet {
15
- [id: string]: boolean | number | string | object;
16
+ [id: string]: FormFacetType;
16
17
  }
@@ -1,5 +1,6 @@
1
- /// <reference types="@sapui5/ts-types" />
1
+ /// <reference types="@sapui5/ts-types-esm" />
2
2
  import type { HeaderAction } from '.';
3
+ import type AvatarShape from 'sap/m/AvatarShape';
3
4
  export interface GenericActions {
4
5
  [id: string]: HeaderAction;
5
6
  }
@@ -23,7 +24,7 @@ export interface ObjectPageHeader<ACT = GenericActions> {
23
24
  /**
24
25
  * With displayShape you can define the shape of the avatar.
25
26
  */
26
- displayShape?: sap.m.AvatarShape;
27
+ displayShape?: AvatarShape;
27
28
  /**
28
29
  * Set properties of actions on Object Page Header
29
30
  */
@@ -4,7 +4,7 @@ import type { ViewTypes, SAPUI5_FRAGMENT_CLASS, SAPUI5_VIEW_CLASS } from '../../
4
4
  * Section
5
5
  * @isViewNode true
6
6
  */
7
- export interface ObjectPageSection {
7
+ export interface ObjectPageSectionV2 {
8
8
  /**
9
9
  * Whether the section should be visible on the screen.
10
10
  */
@@ -14,39 +14,74 @@ export interface ObjectPageSection {
14
14
  * Form
15
15
  * @isViewNode true
16
16
  */
17
- export interface ObjectPageSectionFormV2 extends ObjectPageSection {
17
+ export interface ObjectPageSectionFormV2 extends ObjectPageSectionV2 {
18
18
  form?: ObjectPageForm;
19
19
  }
20
+ export declare type AnyObjectPageTableType = ObjectPageResponsiveTableWithMultiSelect | ObjectPageResponsiveTableWithInlineDelete | ObjectPageAnalyticalTable | ObjectPageGridTable | ObjectPageTreeTable;
20
21
  /**
21
22
  * Table
22
23
  * @isViewNode true
23
24
  */
24
- export interface ObjectPageSectionTableV2 extends ObjectPageSection {
25
- table?: ObjectPageResponsiveTableWithMultiSelect | ObjectPageResponsiveTableWithInlineDelete | ObjectPageAnalyticalTable | ObjectPageGridTable | ObjectPageTreeTable;
25
+ export interface ObjectPageSectionTableV2 extends ObjectPageSectionV2 {
26
+ table?: AnyObjectPageTableType;
26
27
  }
27
28
  /**
28
29
  * Chart
29
30
  * @isViewNode true
30
31
  */
31
- export interface ObjectPageSectionChartV2 extends ObjectPageSection {
32
+ export interface ObjectPageSectionChartV2 extends ObjectPageSectionV2 {
32
33
  chart?: ObjectPageChart;
33
34
  }
35
+ export interface ObjectPageSectionContactV2 extends ObjectPageSectionV2 {
36
+ /**
37
+ * Contact
38
+ * @isViewNode true
39
+ */
40
+ contact?: object;
41
+ }
42
+ export interface ObjectPageSectionAddressV2 extends ObjectPageSectionV2 {
43
+ /**
44
+ * Address
45
+ * @isViewNode true
46
+ */
47
+ address?: object;
48
+ }
49
+ export interface ObjectPageSubSectionContactV2 extends ObjectPageSectionV2 {
50
+ /**
51
+ * Contact
52
+ * @isViewNode true
53
+ */
54
+ contact?: object;
55
+ }
56
+ export interface ObjectPageSubSectionAddressV2 extends ObjectPageSectionV2 {
57
+ /**
58
+ * Address
59
+ * @isViewNode true
60
+ */
61
+ address?: object;
62
+ }
63
+ export declare type AnySubSectionType = ObjectPageSectionTableV2 | ObjectPageSectionChartV2 | ObjectPageSectionFormV2 | ObjectPageSubSectionContactV2 | ObjectPageSubSectionAddressV2;
64
+ export interface GenericSubSections {
65
+ [key: string]: AnySubSectionType;
66
+ }
34
67
  /**
35
68
  * Subsection
36
69
  * @isViewNode true
37
70
  */
38
- export interface ObjectPageSubSectionV2 extends ObjectPageSection {
39
- subsections?: object;
71
+ export interface ObjectPageSubSectionV2 extends ObjectPageSectionV2 {
72
+ subsections?: GenericSubSections;
40
73
  }
74
+ export declare type AnySectionType = ObjectPageSectionTableV2 | ObjectPageSectionChartV2 | ObjectPageSectionFormV2 | ObjectPageSectionContactV2 | ObjectPageSectionAddressV2 | ObjectPageSectionV2 | ObjectPageSubSectionV2;
41
75
  export interface GenericSections {
42
- [key: string]: ObjectPageSectionTableV2 | ObjectPageSectionChartV2 | ObjectPageSectionFormV2 | ObjectPageSubSectionV2;
76
+ [key: string]: AnySectionType;
43
77
  }
78
+ export declare type CustomSectionTypeV2 = ObjectPageCustomSectionView | ObjectPageCustomSectionFragment;
44
79
  /**
45
80
  * Custom Sections
46
81
  * @isViewNode true
47
82
  */
48
83
  export interface CustomSections {
49
- custom?: (ObjectPageCustomSectionView | ObjectPageCustomSectionFragment)[];
84
+ custom?: CustomSectionTypeV2[];
50
85
  }
51
86
  export interface ObjectPageCustomSectionBase {
52
87
  relatedFacet: string;
@@ -1,6 +1,8 @@
1
- /// <reference types="@sapui5/ts-types" />
1
+ /// <reference types="@sapui5/ts-types-esm" />
2
2
  import type { GenericColumns, TableTypeV2, QuickVariant } from './Table';
3
3
  import type { ObjectPageToolBar } from './ObjectPageToolBar';
4
+ import type { PopinLayout } from 'sap/m/library';
5
+ import type { smarttable } from 'sap/ui/comp/library';
4
6
  export interface QuickVariantSelectionOP {
5
7
  /**
6
8
  * To show the number of records available, set showCounts to true.
@@ -53,7 +55,7 @@ export interface ObjectPageCommonTableSettings<COLS = GenericColumns> {
53
55
  /**
54
56
  * Specifies the type of export to be used in the SmartTable control. UI5Client is the default option.
55
57
  */
56
- exportType?: sap.ui.comp.smarttable.ExportType;
58
+ exportType?: smarttable.ExportType;
57
59
  /**
58
60
  * Use createMode 'inline' to enable inline creation of table entries for draft enabled applications.
59
61
  */
@@ -90,7 +92,7 @@ export interface ObjectPageResponsiveTableCommonSettings extends ObjectPageCommo
90
92
  /**
91
93
  * popinLayout defines the layout in which the table pop-in rows shall be rendered.
92
94
  */
93
- popinLayout?: sap.m.PopinLayout;
95
+ popinLayout?: PopinLayout;
94
96
  /**
95
97
  * growingThreshold defines the number of items to be requested from the model for each grow. This property can only be used if the growing property is set to true.
96
98
  */
@@ -1,7 +1,10 @@
1
- /// <reference types="@sapui5/ts-types" />
1
+ /// <reference types="@sapui5/ts-types-esm" />
2
2
  import type { SAPUI5_FRAGMENT_CLASS } from '../../common/webapp/manifest/sapUi5';
3
3
  import type { ToolBar } from './ToolBar';
4
4
  import type { Action } from './Action';
5
+ import type { PopinLayout } from 'sap/m/library';
6
+ import type { smarttable } from 'sap/ui/comp/library';
7
+ import type { TextAlign } from 'sap/ui/core/library';
5
8
  /**
6
9
  * Column
7
10
  * @isViewNode true
@@ -14,7 +17,7 @@ export interface TableColumn {
14
17
  /**
15
18
  * The hAlign property defines the horizontal alignment of the column content.
16
19
  */
17
- hAlign?: sap.ui.core.TextAlign;
20
+ hAlign?: TextAlign;
18
21
  }
19
22
  /**
20
23
  * Column Action
@@ -219,7 +222,7 @@ export interface CommonTableSettings<COLS = GenericColumns> {
219
222
  /**
220
223
  * Specifies the type of export to be used in the SmartTable control. UI5Client is the default option.
221
224
  */
222
- exportType?: sap.ui.comp.smarttable.ExportType;
225
+ exportType?: smarttable.ExportType;
223
226
  /**
224
227
  * Set to false if the table does not occupy the entire space available in the container.
225
228
  */
@@ -267,7 +270,7 @@ export interface ResponsiveTableCommonSettings extends CommonTableSettings {
267
270
  /**
268
271
  * popinLayout defines the layout in which the table pop-in rows are rendered.
269
272
  */
270
- popinLayout?: sap.m.PopinLayout;
273
+ popinLayout?: PopinLayout;
271
274
  /**
272
275
  * createWithFilters adds a new create action that uses the filter settings as input.
273
276
  */
@@ -1,5 +1,6 @@
1
1
  import type { ObjectPageSectionTableV4 } from '../controls/ObjectPageTable';
2
2
  import type { SAPUI5_FRAGMENT_CLASS } from '../../common/webapp/manifest/sapUi5';
3
+ import type { ObjectPageToolBar } from './ObjectPageToolBar';
3
4
  export interface ObjectPageSectionForm {
4
5
  /**
5
6
  * Form
@@ -28,8 +29,28 @@ export interface ObjectPageSectionAddress {
28
29
  */
29
30
  address?: object;
30
31
  }
32
+ export interface ObjectPageChart {
33
+ /**
34
+ * Chart Toolbar
35
+ * @isViewNode true
36
+ */
37
+ toolBar?: ObjectPageToolBar;
38
+ }
39
+ export interface ObjectPageSectionChart {
40
+ /**
41
+ * Chart
42
+ * @isViewNode true
43
+ */
44
+ chart?: ObjectPageChart;
45
+ }
46
+ export interface ObjectPageSectionPresentationVariant {
47
+ /**
48
+ * Presentation Variant
49
+ */
50
+ [key: string]: ObjectPageSectionTableV4 | ObjectPageSectionChart;
51
+ }
31
52
  export interface GenericSections {
32
- [key: string]: ObjectPageSectionTableV4 | ObjectPageSectionForm | ObjectPageSectionDataPoint | ObjectPageSectionContact | ObjectPageSectionAddress;
53
+ [key: string]: ObjectPageSectionTableV4 | ObjectPageSectionForm | ObjectPageSectionDataPoint | ObjectPageSectionContact | ObjectPageSectionAddress | ObjectPageSectionPresentationVariant;
33
54
  }
34
55
  /**
35
56
  * Subsections
@@ -179,6 +179,8 @@ export interface ALPChartView {
179
179
  * @isViewNode true
180
180
  */
181
181
  export interface LRChartView {
182
+ key: string;
183
+ index: number;
182
184
  /**
183
185
  * To use charts in multiple table mode, define a UI.Chart annotation, including a qualifier.
184
186
  * Reference the UI.Chart annotation in your SelectionPresentationVariant or PresentationVariant for your view.
@@ -231,6 +233,8 @@ export interface ALPTableView extends TableSettings {
231
233
  * @isViewNode true
232
234
  */
233
235
  export interface LRTableView extends TableSettings {
236
+ key: string;
237
+ index: number;
234
238
  /**
235
239
  * The annotation path can be either UI.LineItem, UI.PresentationVariant, or UI.SelectionPresentationVariant.
236
240
  */
@@ -17,7 +17,7 @@ export declare abstract class AppProvider {
17
17
  * Create config files for app (app.json) and pages (pages/{name}.json).
18
18
  * This is basically a copy of createFiles optimized to be used in FTFS:
19
19
  * it always uses posix path notation with forward slash (/)
20
- * @param {ConverterOutput} oDataServiceAVT - Complete service information, as returned by annotation vocabularies tool
20
+ * @param {ConvertedMetadata} oDataServiceAVT - Complete service information, as returned by annotation vocabularies tool
21
21
  * @returns app and page files as separate objects
22
22
  */
23
23
  createConfigFiles(): {
@@ -35,7 +35,7 @@ export declare enum BindingValue {
35
35
  * @param controlType - controlType function of ecorators, not used here
36
36
  * @param title - title from JSON schema, comprising the facet ID
37
37
  */
38
- export declare const buildColumnControlId: (baseId: string, idBreadcrumbs: string[], breadcrumbs: string[], controlType: ControlTypeFunction, title: string) => string;
38
+ export declare const buildColumnControlId: (baseId: string, idBreadcrumbs: string[], breadcrumbs: string[], _controlType: ControlTypeFunction, title: string) => string;
39
39
  /**
40
40
  * Split up action breadcrumb and return different parts from it
41
41
  * @param breadcrumbs - array of breadcrumbs
@@ -2,11 +2,11 @@ import 'reflect-metadata';
2
2
  import type { SyncRule, PageLayoutInformation, ValidityInformation } from '../types';
3
3
  export declare const reflectMetadataKey: unique symbol;
4
4
  export declare const syncRule: (propSpec: SyncRule) => any;
5
- export declare function getReflectMetadata(target: any, propertyName: string): SyncRule;
5
+ export declare function getReflectMetadata(target: object, propertyName: string): SyncRule | undefined;
6
6
  export declare const pageLayoutInformation: (pageInfo: PageLayoutInformation) => (constructor: Function) => void;
7
7
  export declare const childId: (id: string) => any;
8
8
  export declare const getChildId: (target: any, propertyName: string) => string;
9
9
  export declare const getPageLayoutInformation: (target: any) => PageLayoutInformation;
10
10
  export declare const validityMetadataKey: unique symbol;
11
11
  export declare const validity: (propSpec: ValidityInformation) => any;
12
- export declare function getTextForDeprecated(key: string, validity?: ValidityInformation): string;
12
+ export declare function getTextForDeprecated(key: string, validityInformation?: ValidityInformation): string;
@@ -1,8 +1,7 @@
1
- import type { ConverterOutput, EntityType } from '@sap-ux/vocabularies-types';
1
+ import type { ConvertedMetadata, EntitySet, EntityType } from '@sap-ux/vocabularies-types';
2
2
  import { FioriElementsVersion } from '../../../specification/common';
3
3
  import type { FacetConfig } from '..';
4
4
  import { SectionType } from '..';
5
- import type { EntitySet } from '@sap-ux/annotation-converter';
6
5
  import type { Definition } from 'typescript-json-schema';
7
6
  /**
8
7
  * Adds definitions for forms in object page sections to the app schema
@@ -16,10 +15,10 @@ export declare function handleForm(sectionType: SectionType, section: FacetConfi
16
15
  /**
17
16
  * Replaces an alias in an annotation ID or reference, based on the AVT references' list
18
17
  * @param annotationIdentifier - annotation ID or reference
19
- * @param {ConverterOutput} oDataServiceAVT - complete service information, as returned by annotation vocabularies tool
18
+ * @param {ConvertedMetadata} oDataServiceAVT - complete service information, as returned by annotation vocabularies tool
20
19
  * @returns the converted string
21
20
  */
22
- export declare function replaceAlias(annotationIdentifier: string, oDataServiceAVT: ConverterOutput): string;
21
+ export declare function replaceAlias(annotationIdentifier: string, oDataServiceAVT: ConvertedMetadata): string;
23
22
  /**
24
23
  * Common routine to determine the name and the ID of a header action
25
24
  * @param action - action as given by AVT
@@ -35,16 +34,16 @@ export declare function getActionNameAndId(action: string, entityType: EntityTyp
35
34
  *
36
35
  * @param {object} appSchema Schema of the app
37
36
  * @param {EntityType} entityType - current entity type
38
- * @param {ConverterOutput} oDataServiceAVT - complete service information, as returned by annotation vocabularies tool
37
+ * @param {ConvertedMetadata} oDataServiceAVT - complete service information, as returned by annotation vocabularies tool
39
38
  */
40
- export declare function addFooterActions(appSchema: Definition, entityType: EntityType, oDataServiceAVT: ConverterOutput): void;
39
+ export declare function addFooterActions(appSchema: Definition, entityType: EntityType, oDataServiceAVT: ConvertedMetadata): void;
41
40
  /**
42
41
  * Add Object Page Header Action Buttons to app-specific schema
43
42
  * @param {object} appSchema Schema of the app
44
43
  * @param {EntityType} entityType - current entity type
45
- * @param {ConverterOutput} oDataServiceAVT - complete service information, as returned by annotation vocabularies tool
44
+ * @param {ConvertedMetadata} oDataServiceAVT - complete service information, as returned by annotation vocabularies tool
46
45
  */
47
- export declare function addHeaderActions(appSchema: Definition, entityType: EntityType, oDataServiceAVT: ConverterOutput, addHeaderActionCallBack: any): void;
46
+ export declare function addHeaderActions(appSchema: Definition, entityType: EntityType, oDataServiceAVT: ConvertedMetadata, addHeaderActionCallBack: any): void;
48
47
  /**
49
48
  * Adds common Object Page Header definitions to the app schema
50
49
  * @param appSchema - app-specific JSOn schema
@@ -57,4 +56,4 @@ export declare function addCommonHeaderSchema(appSchema: Definition, entityType:
57
56
  * @param serviceAVT - AVT converter output, comprising all annotation information
58
57
  * @returns the entity set as defined in AVT, if found
59
58
  */
60
- export declare function determineEntitySetOfFacet(facet: FacetConfig, serviceAVT: ConverterOutput): EntitySet | undefined;
59
+ export declare function determineEntitySetOfFacet(facet: FacetConfig, serviceAVT: ConvertedMetadata): EntitySet | undefined;
@@ -1,8 +1,11 @@
1
- import type { EntitySet, EntityType } from '@sap-ux/annotation-converter';
2
- import type { AnnotationTerm, ConverterOutput, LineItem } from '@sap-ux/vocabularies-types';
3
- import { UIAnnotationTerms } from '@sap-ux/vocabularies-types';
1
+ import type { AnnotationTerm, ConvertedMetadata, EntitySet, EntityType } from '@sap-ux/vocabularies-types';
2
+ import type { LineItem } from '@sap-ux/vocabularies-types/vocabularies/UI';
4
3
  import type { Definition } from 'typescript-json-schema';
5
- import type { FacetSection } from '..';
4
+ import type { FacetConfig, FacetSection, SectionType } from '..';
5
+ import type { SectionTypeV2 } from '../../v2/types';
6
+ import type { PresentationVariantV4 } from '../../v4/types';
7
+ import { UIAnnotationTerms } from '@sap-ux/vocabularies-types/vocabularies/UI';
8
+ import { DefinitionName } from '..';
6
9
  /**
7
10
  * Adds an enum filled with existing UI annotations of the given list (validAnnotations)
8
11
  * @param {EntityType} entityType
@@ -25,12 +28,12 @@ export declare function addEnumForSingleTabVariant(entityType: EntityType, appSc
25
28
  */
26
29
  export declare function addEnumForMultiTabVariant(appSchema: Definition, definitionName: string, entitySet: EntitySet): void;
27
30
  /**
28
- * Adds the enume values for entitySet as part of the multiple view scenario
29
- * @param {ConverterOutput} oDataServiceAVT - combined service metadata, as returned by annotation vocabularies tools
31
+ * Adds the enum values for entitySet as part of the multiple view scenario
32
+ * @param {ConvertedMetadata} oDataServiceAVT - combined service metadata, as returned by annotation vocabularies tools
30
33
  * @param appSchema - app specific JSOn schema
31
34
  * @param definitionName - name of the definition in the app schema
32
35
  */
33
- export declare function addEnumForVariantEntitySet(oDataServiceAVT: ConverterOutput, appSchema: Definition, definitionName: string): void;
36
+ export declare function addEnumForVariantEntitySet(oDataServiceAVT: ConvertedMetadata, appSchema: Definition, definitionName: string): void;
34
37
  /**
35
38
  * Adds an enum filled with existing UI annotations for annotationPath property in FilterBar
36
39
  * @param {EntityType} entityType
@@ -39,27 +42,27 @@ export declare function addEnumForVariantEntitySet(oDataServiceAVT: ConverterOut
39
42
  */
40
43
  export declare function addEnumForFilterBarAnnotationPath(entityType: EntityType, appSchema: Definition, definitionName: string): void;
41
44
  /**
42
- * Method adds definition for 'RelatedFacetKeys' as enum with describtion and adds references to 'RelatedFacetKeys' for custom section definitions.
43
- * @param {object} appSchema App specific schema that potentially gets enhanced
45
+ * Method adds definition for 'RelatedFacetKeys' as enum with description and adds references to 'RelatedFacetKeys' for custom section definitions.
46
+ * @param {Definition} appSchema App specific schema that potentially gets enhanced
44
47
  * @param {string[]>} sectionDefinitions array of section definitions which should be updated with new reference to 'RelatedFacetKeys' enum.
45
48
  * @param {FacetSection[]} facetSections Array of facet section objects which is used to generate enum values.
46
49
  * @param {Array<keyof Omit<FacetSection, 'custom'>>} idProperties Array of property names which should be looked up in 'FacetSection' object.
47
50
  * Please note that method depends on order and takes first non empty value associated to passed properties.
48
51
  */
49
- export declare function addDefinitionForRelatedFacetKeys(appSchema: object, sectionDefinitions: string[], facetSections: FacetSection[], idProperties: Array<keyof Omit<FacetSection, 'custom'>>): void;
52
+ export declare function addDefinitionForRelatedFacetKeys(appSchema: Definition, sectionDefinitions: string[], facetSections: FacetSection[], idProperties: Array<keyof Omit<FacetSection, 'custom'>>): void;
50
53
  /**
51
54
  * Functions used both by V2 and V4 to add the common definitions for a line item to the app schema
52
55
  * @param appSchema - the app specific schema that shall get enhanced
53
56
  * @param lineItemAnnotation - the UI.LineItem annotation, comprising all records
54
- * @param entityType - the entity type as part of the AVT ConverterOutput
57
+ * @param entityType - the entity type as part of the AVT ConvertedMetadata
55
58
  * @param lineItemId - line item ID, as comprise in stable ID
56
59
  * @param customColumnDefinitionName - (optional) definition name of custom column.
57
60
  * Passed in the V4 case, then additional properties of this type will be allowed.
58
61
  * @returns the actions definition plus the annotation path to the given line item
59
62
  */
60
63
  export declare function addCommonLineItemDefinitions(appSchema: Definition, lineItemAnnotation: AnnotationTerm<LineItem>, entityType: EntityType, lineItemId: string, customColumnDefinitionName?: string): {
61
- actions: object;
62
- footerActions: object;
64
+ actions: Definition;
65
+ footerActions: Definition;
63
66
  lineItemPath: string;
64
67
  };
65
68
  /**
@@ -101,3 +104,49 @@ export declare function determineDataType(field: object): string | undefined;
101
104
  * @param field - given field definition = annotation property, at AVT
102
105
  */
103
106
  export declare function addDataTypeToDefinition(definition: object, field: object): void;
107
+ /**
108
+ * Receives a facet key and returns the key as used in schema
109
+ * @param facetKey - key of the facet, as used in annotation
110
+ * @returns facetKeyInSchema - key of the facet, as used in schema
111
+ */
112
+ export declare function getFacetKeyInSchema(facetKey: string): string;
113
+ /**
114
+ * Adds an existing schema definition to a new definition in the app schema
115
+ * @param definition name of definition, as used in schema
116
+ * @param facetKey - key of the facet, as used in annotation
117
+ * @param {Definition} appSchema App schema in general
118
+ * @param {boolean} useDefinitionAsKey If set to false, facet key will solely be used as key, else encapsulated within definition key `definition<facetKey>`
119
+ * @param subDefinitionName - sub definition, if different from the definition (e.g. subsection vs. section)
120
+ * @returns {Definition} part of app schema that has been added and filled
121
+ */
122
+ export declare function parseSchemaDefinition(definition: DefinitionName | SectionTypeV2, facetKey: string, appSchema: Definition, useDefinitionAsKey?: boolean, subDefinitionName?: DefinitionName): Definition;
123
+ /**
124
+ * Creates a definition link for a facet and definition name
125
+ * @param {DefinitionName} definition - name of definition, as used in schema
126
+ * @param {string} facetKey - key of the facet, as used in annotation
127
+ * @returns definition link of facet, as used in definition
128
+ */
129
+ export declare function getFacetDefinitionLink(definition: DefinitionName | SectionTypeV2, facetKey: string): string;
130
+ /**
131
+ * Creates and adds a reference link to a definition
132
+ * @param {Definition} schemaPart - part of schema to add $ref to
133
+ * @param {string} schemaRef - reference to be added
134
+ * @param {string} schemaKey - key to be encapsulated within reference as `schemaRef<schemaKey>`
135
+ * @returns reference link of facet, as used in definition
136
+ */
137
+ export declare function addDefinitionRef(schemaPart: Definition, schemaRef: string, schemaKey?: string): void;
138
+ /**
139
+ * Extracts annotationPath from facet or Chart/LineItem fullyQualifiedName
140
+ * @param facet facet or Chart/LineItem
141
+ * @returns {string} annotationPath
142
+ */
143
+ export declare function getFacetAnnotationPath(facet: FacetConfig | PresentationVariantV4 | object): string | undefined;
144
+ /**
145
+ * Adds definitions for Address and Contact items in object page sections to the app schema
146
+ * @param {FacetConfig} facet - current facet.
147
+ * @param {string} facetKey - facet key.
148
+ * @param {object} sections - schema of current sections definition.
149
+ * @param {object} appSchema - app specific schema that potentially gets enhanced.
150
+ * @param {SectionType} sectionPrefix - prefix to distinguish Section and HeaderSection
151
+ */
152
+ export declare function handleAddressContact(facet: FacetConfig, facetKey: string, sections: Definition, appSchema: Definition, sectionPrefix: SectionType, subSectionPrefix?: SectionType, versionPostfix?: string): void;