@sap/ux-specification 1.84.126 → 1.84.128
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 +49 -1
- package/dist/documentation/v2/v2-AnalyticalListPage.html +2 -2
- package/dist/documentation/v2/v2-ApplicationV2.html +2 -2
- package/dist/documentation/v2/v2-ListReport.html +2 -2
- package/dist/documentation/v2/v2-ListReportNew.html +2 -2
- package/dist/documentation/v2/v2-ObjectPage.html +2 -2
- package/dist/documentation/v2/v2-OverviewPage.html +2 -2
- package/dist/documentation/v4/v4-ApplicationV4.html +2 -2
- package/dist/documentation/v4/v4-ListReport.html +2 -2
- package/dist/documentation/v4/v4-ObjectPage.html +2 -2
- package/dist/index-min.js +223 -223
- package/dist/index-min.js.map +4 -4
- package/dist/schemas/v2/ApplicationV2.json +14 -7
- package/dist/schemas/v2/ListReportNewConfig.json +167 -0
- package/dist/schemas/v4/ApplicationV4.json +10 -5
- package/dist/specification/package.json +9 -8
- package/dist/specification/scripts/schema/to-json-schema.d.ts.map +1 -1
- package/dist/specification/scripts/schema/to-json-schema.js +62 -6
- package/dist/specification/scripts/schema/to-json-schema.js.map +1 -1
- package/dist/specification/src/api.js +1 -1
- package/dist/specification/src/ftfs/ftfs.d.ts +1 -1
- package/dist/specification/src/ftfs/ftfs.d.ts.map +1 -1
- package/dist/specification/src/ftfs/ftfs.js +38 -5
- package/dist/specification/src/ftfs/ftfs.js.map +1 -1
- package/dist/specification/src/ftfs/parser/annotations.d.ts +9 -0
- package/dist/specification/src/ftfs/parser/annotations.d.ts.map +1 -0
- package/dist/specification/src/ftfs/parser/annotations.js +13 -0
- package/dist/specification/src/ftfs/parser/annotations.js.map +1 -0
- package/dist/specification/src/ftfs/parser/index.d.ts +15 -0
- package/dist/specification/src/ftfs/parser/index.d.ts.map +1 -0
- package/dist/specification/src/ftfs/parser/index.js +35 -0
- package/dist/specification/src/ftfs/parser/index.js.map +1 -0
- package/dist/specification/src/ftfs/parser/model/AggregationValidator.d.ts +65 -0
- package/dist/specification/src/ftfs/parser/model/AggregationValidator.d.ts.map +1 -0
- package/dist/specification/src/ftfs/parser/model/AggregationValidator.js +209 -0
- package/dist/specification/src/ftfs/parser/model/AggregationValidator.js.map +1 -0
- package/dist/specification/src/ftfs/parser/model/ArrayAggregation.d.ts +49 -0
- package/dist/specification/src/ftfs/parser/model/ArrayAggregation.d.ts.map +1 -0
- package/dist/specification/src/ftfs/parser/model/ArrayAggregation.js +122 -0
- package/dist/specification/src/ftfs/parser/model/ArrayAggregation.js.map +1 -0
- package/dist/specification/src/ftfs/parser/model/NodeProperty.d.ts +38 -0
- package/dist/specification/src/ftfs/parser/model/NodeProperty.d.ts.map +1 -0
- package/dist/specification/src/ftfs/parser/model/NodeProperty.js +25 -0
- package/dist/specification/src/ftfs/parser/model/NodeProperty.js.map +1 -0
- package/dist/specification/src/ftfs/parser/model/ObjectAggregation.d.ts +339 -0
- package/dist/specification/src/ftfs/parser/model/ObjectAggregation.d.ts.map +1 -0
- package/dist/specification/src/ftfs/parser/model/ObjectAggregation.js +682 -0
- package/dist/specification/src/ftfs/parser/model/ObjectAggregation.js.map +1 -0
- package/dist/specification/src/ftfs/parser/model/RootAggregation.d.ts +24 -0
- package/dist/specification/src/ftfs/parser/model/RootAggregation.d.ts.map +1 -0
- package/dist/specification/src/ftfs/parser/model/RootAggregation.js +57 -0
- package/dist/specification/src/ftfs/parser/model/RootAggregation.js.map +1 -0
- package/dist/specification/src/ftfs/parser/model/TreeModel.d.ts +223 -0
- package/dist/specification/src/ftfs/parser/model/TreeModel.d.ts.map +1 -0
- package/dist/specification/src/ftfs/parser/model/TreeModel.js +947 -0
- package/dist/specification/src/ftfs/parser/model/TreeModel.js.map +1 -0
- package/dist/specification/src/ftfs/parser/model/actions/ActionAggregation.d.ts +34 -0
- package/dist/specification/src/ftfs/parser/model/actions/ActionAggregation.d.ts.map +1 -0
- package/dist/specification/src/ftfs/parser/model/actions/ActionAggregation.js +94 -0
- package/dist/specification/src/ftfs/parser/model/actions/ActionAggregation.js.map +1 -0
- package/dist/specification/src/ftfs/parser/model/actions/ActionsAggregation.d.ts +67 -0
- package/dist/specification/src/ftfs/parser/model/actions/ActionsAggregation.d.ts.map +1 -0
- package/dist/specification/src/ftfs/parser/model/actions/ActionsAggregation.js +113 -0
- package/dist/specification/src/ftfs/parser/model/actions/ActionsAggregation.js.map +1 -0
- package/dist/specification/src/ftfs/parser/model/actions/index.d.ts +3 -0
- package/dist/specification/src/ftfs/parser/model/actions/index.d.ts.map +1 -0
- package/dist/specification/src/ftfs/parser/model/actions/index.js +19 -0
- package/dist/specification/src/ftfs/parser/model/actions/index.js.map +1 -0
- package/dist/specification/src/ftfs/parser/model/additionalObjects/AdditionalObjectAggregation.d.ts +17 -0
- package/dist/specification/src/ftfs/parser/model/additionalObjects/AdditionalObjectAggregation.d.ts.map +1 -0
- package/dist/specification/src/ftfs/parser/model/additionalObjects/AdditionalObjectAggregation.js +29 -0
- package/dist/specification/src/ftfs/parser/model/additionalObjects/AdditionalObjectAggregation.js.map +1 -0
- package/dist/specification/src/ftfs/parser/model/additionalObjects/AdditionalObjectsAggregation.d.ts +46 -0
- package/dist/specification/src/ftfs/parser/model/additionalObjects/AdditionalObjectsAggregation.d.ts.map +1 -0
- package/dist/specification/src/ftfs/parser/model/additionalObjects/AdditionalObjectsAggregation.js +66 -0
- package/dist/specification/src/ftfs/parser/model/additionalObjects/AdditionalObjectsAggregation.js.map +1 -0
- package/dist/specification/src/ftfs/parser/model/additionalObjects/index.d.ts +3 -0
- package/dist/specification/src/ftfs/parser/model/additionalObjects/index.d.ts.map +1 -0
- package/dist/specification/src/ftfs/parser/model/additionalObjects/index.js +19 -0
- package/dist/specification/src/ftfs/parser/model/additionalObjects/index.js.map +1 -0
- package/dist/specification/src/ftfs/parser/model/chart/ChartAggregation.d.ts +21 -0
- package/dist/specification/src/ftfs/parser/model/chart/ChartAggregation.d.ts.map +1 -0
- package/dist/specification/src/ftfs/parser/model/chart/ChartAggregation.js +30 -0
- package/dist/specification/src/ftfs/parser/model/chart/ChartAggregation.js.map +1 -0
- package/dist/specification/src/ftfs/parser/model/chart/index.d.ts +2 -0
- package/dist/specification/src/ftfs/parser/model/chart/index.d.ts.map +1 -0
- package/dist/specification/src/ftfs/parser/model/chart/index.js +18 -0
- package/dist/specification/src/ftfs/parser/model/chart/index.js.map +1 -0
- package/dist/specification/src/ftfs/parser/model/fields/ConnectedFieldsAggregation.d.ts +9 -0
- package/dist/specification/src/ftfs/parser/model/fields/ConnectedFieldsAggregation.d.ts.map +1 -0
- package/dist/specification/src/ftfs/parser/model/fields/ConnectedFieldsAggregation.js +16 -0
- package/dist/specification/src/ftfs/parser/model/fields/ConnectedFieldsAggregation.js.map +1 -0
- package/dist/specification/src/ftfs/parser/model/fields/FieldAggregation.d.ts +25 -0
- package/dist/specification/src/ftfs/parser/model/fields/FieldAggregation.d.ts.map +1 -0
- package/dist/specification/src/ftfs/parser/model/fields/FieldAggregation.js +45 -0
- package/dist/specification/src/ftfs/parser/model/fields/FieldAggregation.js.map +1 -0
- package/dist/specification/src/ftfs/parser/model/fields/FieldsAggregation.d.ts +22 -0
- package/dist/specification/src/ftfs/parser/model/fields/FieldsAggregation.d.ts.map +1 -0
- package/dist/specification/src/ftfs/parser/model/fields/FieldsAggregation.js +37 -0
- package/dist/specification/src/ftfs/parser/model/fields/FieldsAggregation.js.map +1 -0
- package/dist/specification/src/ftfs/parser/model/fields/index.d.ts +4 -0
- package/dist/specification/src/ftfs/parser/model/fields/index.d.ts.map +1 -0
- package/dist/specification/src/ftfs/parser/model/fields/index.js +20 -0
- package/dist/specification/src/ftfs/parser/model/fields/index.js.map +1 -0
- package/dist/specification/src/ftfs/parser/model/filter-fields/FilterFieldAggregation.d.ts +39 -0
- package/dist/specification/src/ftfs/parser/model/filter-fields/FilterFieldAggregation.d.ts.map +1 -0
- package/dist/specification/src/ftfs/parser/model/filter-fields/FilterFieldAggregation.js +97 -0
- package/dist/specification/src/ftfs/parser/model/filter-fields/FilterFieldAggregation.js.map +1 -0
- package/dist/specification/src/ftfs/parser/model/filter-fields/FilterFieldsAggregation.d.ts +36 -0
- package/dist/specification/src/ftfs/parser/model/filter-fields/FilterFieldsAggregation.d.ts.map +1 -0
- package/dist/specification/src/ftfs/parser/model/filter-fields/FilterFieldsAggregation.js +59 -0
- package/dist/specification/src/ftfs/parser/model/filter-fields/FilterFieldsAggregation.js.map +1 -0
- package/dist/specification/src/ftfs/parser/model/filter-fields/index.d.ts +3 -0
- package/dist/specification/src/ftfs/parser/model/filter-fields/index.d.ts.map +1 -0
- package/dist/specification/src/ftfs/parser/model/filter-fields/index.js +19 -0
- package/dist/specification/src/ftfs/parser/model/filter-fields/index.js.map +1 -0
- package/dist/specification/src/ftfs/parser/model/index.d.ts +19 -0
- package/dist/specification/src/ftfs/parser/model/index.d.ts.map +1 -0
- package/dist/specification/src/ftfs/parser/model/index.js +35 -0
- package/dist/specification/src/ftfs/parser/model/index.js.map +1 -0
- package/dist/specification/src/ftfs/parser/model/macros/MacrosRoot.d.ts +29 -0
- package/dist/specification/src/ftfs/parser/model/macros/MacrosRoot.d.ts.map +1 -0
- package/dist/specification/src/ftfs/parser/model/macros/MacrosRoot.js +50 -0
- package/dist/specification/src/ftfs/parser/model/macros/MacrosRoot.js.map +1 -0
- package/dist/specification/src/ftfs/parser/model/macros/index.d.ts +2 -0
- package/dist/specification/src/ftfs/parser/model/macros/index.d.ts.map +1 -0
- package/dist/specification/src/ftfs/parser/model/macros/index.js +18 -0
- package/dist/specification/src/ftfs/parser/model/macros/index.js.map +1 -0
- package/dist/specification/src/ftfs/parser/model/sections/HeaderSectionsAggregation.d.ts +31 -0
- package/dist/specification/src/ftfs/parser/model/sections/HeaderSectionsAggregation.d.ts.map +1 -0
- package/dist/specification/src/ftfs/parser/model/sections/HeaderSectionsAggregation.js +82 -0
- package/dist/specification/src/ftfs/parser/model/sections/HeaderSectionsAggregation.js.map +1 -0
- package/dist/specification/src/ftfs/parser/model/sections/SectionAggregation.d.ts +78 -0
- package/dist/specification/src/ftfs/parser/model/sections/SectionAggregation.d.ts.map +1 -0
- package/dist/specification/src/ftfs/parser/model/sections/SectionAggregation.js +126 -0
- package/dist/specification/src/ftfs/parser/model/sections/SectionAggregation.js.map +1 -0
- package/dist/specification/src/ftfs/parser/model/sections/SectionsAggregation.d.ts +135 -0
- package/dist/specification/src/ftfs/parser/model/sections/SectionsAggregation.d.ts.map +1 -0
- package/dist/specification/src/ftfs/parser/model/sections/SectionsAggregation.js +402 -0
- package/dist/specification/src/ftfs/parser/model/sections/SectionsAggregation.js.map +1 -0
- package/dist/specification/src/ftfs/parser/model/sections/SectionsObjectAggregation.d.ts +50 -0
- package/dist/specification/src/ftfs/parser/model/sections/SectionsObjectAggregation.d.ts.map +1 -0
- package/dist/specification/src/ftfs/parser/model/sections/SectionsObjectAggregation.js +120 -0
- package/dist/specification/src/ftfs/parser/model/sections/SectionsObjectAggregation.js.map +1 -0
- package/dist/specification/src/ftfs/parser/model/sections/SubSectionsAggregation.d.ts +39 -0
- package/dist/specification/src/ftfs/parser/model/sections/SubSectionsAggregation.d.ts.map +1 -0
- package/dist/specification/src/ftfs/parser/model/sections/SubSectionsAggregation.js +70 -0
- package/dist/specification/src/ftfs/parser/model/sections/SubSectionsAggregation.js.map +1 -0
- package/dist/specification/src/ftfs/parser/model/sections/index.d.ts +6 -0
- package/dist/specification/src/ftfs/parser/model/sections/index.d.ts.map +1 -0
- package/dist/specification/src/ftfs/parser/model/sections/index.js +22 -0
- package/dist/specification/src/ftfs/parser/model/sections/index.js.map +1 -0
- package/dist/specification/src/ftfs/parser/model/table/ColumnAggregation.d.ts +89 -0
- package/dist/specification/src/ftfs/parser/model/table/ColumnAggregation.d.ts.map +1 -0
- package/dist/specification/src/ftfs/parser/model/table/ColumnAggregation.js +175 -0
- package/dist/specification/src/ftfs/parser/model/table/ColumnAggregation.js.map +1 -0
- package/dist/specification/src/ftfs/parser/model/table/ColumnsAggregation.d.ts +113 -0
- package/dist/specification/src/ftfs/parser/model/table/ColumnsAggregation.d.ts.map +1 -0
- package/dist/specification/src/ftfs/parser/model/table/ColumnsAggregation.js +290 -0
- package/dist/specification/src/ftfs/parser/model/table/ColumnsAggregation.js.map +1 -0
- package/dist/specification/src/ftfs/parser/model/table/TableAggregation.d.ts +13 -0
- package/dist/specification/src/ftfs/parser/model/table/TableAggregation.d.ts.map +1 -0
- package/dist/specification/src/ftfs/parser/model/table/TableAggregation.js +21 -0
- package/dist/specification/src/ftfs/parser/model/table/TableAggregation.js.map +1 -0
- package/dist/specification/src/ftfs/parser/model/table/ToolbarAggregation.d.ts +15 -0
- package/dist/specification/src/ftfs/parser/model/table/ToolbarAggregation.d.ts.map +1 -0
- package/dist/specification/src/ftfs/parser/model/table/ToolbarAggregation.js +22 -0
- package/dist/specification/src/ftfs/parser/model/table/ToolbarAggregation.js.map +1 -0
- package/dist/specification/src/ftfs/parser/model/table/index.d.ts +5 -0
- package/dist/specification/src/ftfs/parser/model/table/index.d.ts.map +1 -0
- package/dist/specification/src/ftfs/parser/model/table/index.js +21 -0
- package/dist/specification/src/ftfs/parser/model/table/index.js.map +1 -0
- package/dist/specification/src/ftfs/parser/model/table/utils.d.ts +12 -0
- package/dist/specification/src/ftfs/parser/model/table/utils.d.ts.map +1 -0
- package/dist/specification/src/ftfs/parser/model/table/utils.js +44 -0
- package/dist/specification/src/ftfs/parser/model/table/utils.js.map +1 -0
- package/dist/specification/src/ftfs/parser/model/types/annotations.d.ts +63 -0
- package/dist/specification/src/ftfs/parser/model/types/annotations.d.ts.map +1 -0
- package/dist/specification/src/ftfs/parser/model/types/annotations.js +29 -0
- package/dist/specification/src/ftfs/parser/model/types/annotations.js.map +1 -0
- package/dist/specification/src/ftfs/parser/model/types/common.d.ts +13 -0
- package/dist/specification/src/ftfs/parser/model/types/common.d.ts.map +1 -0
- package/dist/specification/src/ftfs/parser/model/types/common.js +3 -0
- package/dist/specification/src/ftfs/parser/model/types/common.js.map +1 -0
- package/dist/specification/src/ftfs/parser/model/types/index.d.ts +219 -0
- package/dist/specification/src/ftfs/parser/model/types/index.d.ts.map +1 -0
- package/dist/specification/src/ftfs/parser/model/types/index.js +156 -0
- package/dist/specification/src/ftfs/parser/model/types/index.js.map +1 -0
- package/dist/specification/src/ftfs/parser/model/utils/annotations.d.ts +38 -0
- package/dist/specification/src/ftfs/parser/model/utils/annotations.d.ts.map +1 -0
- package/dist/specification/src/ftfs/parser/model/utils/annotations.js +120 -0
- package/dist/specification/src/ftfs/parser/model/utils/annotations.js.map +1 -0
- package/dist/specification/src/ftfs/parser/model/utils/i18n.d.ts +33 -0
- package/dist/specification/src/ftfs/parser/model/utils/i18n.d.ts.map +1 -0
- package/dist/specification/src/ftfs/parser/model/utils/i18n.js +69 -0
- package/dist/specification/src/ftfs/parser/model/utils/i18n.js.map +1 -0
- package/dist/specification/src/ftfs/parser/model/utils/index.d.ts +6 -0
- package/dist/specification/src/ftfs/parser/model/utils/index.d.ts.map +1 -0
- package/dist/specification/src/ftfs/parser/model/utils/index.js +22 -0
- package/dist/specification/src/ftfs/parser/model/utils/index.js.map +1 -0
- package/dist/specification/src/ftfs/parser/model/utils/object.d.ts +25 -0
- package/dist/specification/src/ftfs/parser/model/utils/object.d.ts.map +1 -0
- package/dist/specification/src/ftfs/parser/model/utils/object.js +68 -0
- package/dist/specification/src/ftfs/parser/model/utils/object.js.map +1 -0
- package/dist/specification/src/ftfs/parser/model/utils/sort.d.ts +31 -0
- package/dist/specification/src/ftfs/parser/model/utils/sort.d.ts.map +1 -0
- package/dist/specification/src/ftfs/parser/model/utils/sort.js +18 -0
- package/dist/specification/src/ftfs/parser/model/utils/sort.js.map +1 -0
- package/dist/specification/src/ftfs/parser/model/utils/utils.d.ts +95 -0
- package/dist/specification/src/ftfs/parser/model/utils/utils.d.ts.map +1 -0
- package/dist/specification/src/ftfs/parser/model/utils/utils.js +267 -0
- package/dist/specification/src/ftfs/parser/model/utils/utils.js.map +1 -0
- package/dist/specification/src/ftfs/parser/model/views/ViewAggregation.d.ts +62 -0
- package/dist/specification/src/ftfs/parser/model/views/ViewAggregation.d.ts.map +1 -0
- package/dist/specification/src/ftfs/parser/model/views/ViewAggregation.js +111 -0
- package/dist/specification/src/ftfs/parser/model/views/ViewAggregation.js.map +1 -0
- package/dist/specification/src/ftfs/parser/model/views/ViewsAggregation.d.ts +54 -0
- package/dist/specification/src/ftfs/parser/model/views/ViewsAggregation.d.ts.map +1 -0
- package/dist/specification/src/ftfs/parser/model/views/ViewsAggregation.js +144 -0
- package/dist/specification/src/ftfs/parser/model/views/ViewsAggregation.js.map +1 -0
- package/dist/specification/src/ftfs/parser/model/views/index.d.ts +3 -0
- package/dist/specification/src/ftfs/parser/model/views/index.d.ts.map +1 -0
- package/dist/specification/src/ftfs/parser/model/views/index.js +19 -0
- package/dist/specification/src/ftfs/parser/model/views/index.js.map +1 -0
- package/dist/specification/src/ftfs/parser/model/visual-filters/VisualFilterAggregation.d.ts +11 -0
- package/dist/specification/src/ftfs/parser/model/visual-filters/VisualFilterAggregation.d.ts.map +1 -0
- package/dist/specification/src/ftfs/parser/model/visual-filters/VisualFilterAggregation.js +18 -0
- package/dist/specification/src/ftfs/parser/model/visual-filters/VisualFilterAggregation.js.map +1 -0
- package/dist/specification/src/ftfs/parser/model/visual-filters/VisualFiltersAggregation.d.ts +11 -0
- package/dist/specification/src/ftfs/parser/model/visual-filters/VisualFiltersAggregation.d.ts.map +1 -0
- package/dist/specification/src/ftfs/parser/model/visual-filters/VisualFiltersAggregation.js +18 -0
- package/dist/specification/src/ftfs/parser/model/visual-filters/VisualFiltersAggregation.js.map +1 -0
- package/dist/specification/src/ftfs/parser/model/visual-filters/index.d.ts +3 -0
- package/dist/specification/src/ftfs/parser/model/visual-filters/index.d.ts.map +1 -0
- package/dist/specification/src/ftfs/parser/model/visual-filters/index.js +19 -0
- package/dist/specification/src/ftfs/parser/model/visual-filters/index.js.map +1 -0
- package/dist/specification/src/sync/common/dist_tag.json +17 -18
- package/dist/specification/src/sync/common/i18n.json +17 -3
- package/dist/specification/src/sync/common/utils.d.ts +25 -0
- package/dist/specification/src/sync/common/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/common/utils.js +55 -0
- package/dist/specification/src/sync/common/utils.js.map +1 -1
- package/dist/specification/src/sync/v2/export/exportPageGeneric.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/exportPageGeneric.js +1 -10
- package/dist/specification/src/sync/v2/export/exportPageGeneric.js.map +1 -1
- package/dist/specification/src/sync/v2/generate/listReport.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/generate/listReport.js.map +1 -1
- package/dist/specification/src/sync/v2/generate/manifestPropertyUtils.d.ts +1 -2
- package/dist/specification/src/sync/v2/generate/manifestPropertyUtils.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/generate/schemaAdaptation.d.ts +1 -1
- package/dist/specification/src/sync/v2/generate/schemaAdaptation.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/generate/schemaAdaptation.js +6 -18
- package/dist/specification/src/sync/v2/generate/schemaAdaptation.js.map +1 -1
- package/dist/specification/src/sync/v2/generate/stableIdUtils.d.ts +48 -0
- package/dist/specification/src/sync/v2/generate/stableIdUtils.d.ts.map +1 -0
- package/dist/specification/src/sync/v2/generate/stableIdUtils.js +180 -0
- package/dist/specification/src/sync/v2/generate/stableIdUtils.js.map +1 -0
- package/dist/specification/src/sync/v2/generate/utils.d.ts +70 -2
- package/dist/specification/src/sync/v2/generate/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/generate/utils.js +207 -7
- package/dist/specification/src/sync/v2/generate/utils.js.map +1 -1
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/Action.d.ts +57 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/Action.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/Action.js +194 -4
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/Action.js.map +1 -1
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/FilterBar.js +3 -2
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/FilterBar.js.map +1 -1
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/MultiTable.d.ts +78 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/MultiTable.d.ts.map +1 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/MultiTable.js +454 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/MultiTable.js.map +1 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/Table.d.ts +53 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/Table.d.ts.map +1 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/Table.js +149 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/Table.js.map +1 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/index.d.ts +2 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/index.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/index.js +2 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/index.js.map +1 -1
- package/dist/specification/src/sync/v2/genericSchemaHandling/pages/ListReportNew.d.ts +10 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/pages/ListReportNew.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/genericSchemaHandling/pages/ListReportNew.js +90 -7
- package/dist/specification/src/sync/v2/genericSchemaHandling/pages/ListReportNew.js.map +1 -1
- package/dist/specification/src/sync/v2/import/pages/overviewPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/import/pages/overviewPage.js +36 -20
- package/dist/specification/src/sync/v2/import/pages/overviewPage.js.map +1 -1
- package/dist/specification/src/sync/v2/utils.d.ts +7 -0
- package/dist/specification/src/sync/v2/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/utils.js +10 -0
- package/dist/specification/src/sync/v2/utils.js.map +1 -1
- package/dist/specification/src/sync/v4/export/manifest.js +1 -1
- package/dist/specification/src/sync/v4/export/manifest.js.map +1 -1
- package/dist/specification/src/sync/v4/generate/listReport.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/generate/listReport.js +75 -8
- package/dist/specification/src/sync/v4/generate/listReport.js.map +1 -1
- package/dist/specification/src/sync/v4/generate/objectPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/generate/objectPage.js +81 -32
- package/dist/specification/src/sync/v4/generate/objectPage.js.map +1 -1
- package/dist/specification/src/sync/v4/import/app/appProvider.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/import/app/appProvider.js +3 -0
- package/dist/specification/src/sync/v4/import/app/appProvider.js.map +1 -1
- package/dist/specification/src/sync/v4/import/pages/listReport.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/import/pages/listReport.js +3 -1
- package/dist/specification/src/sync/v4/import/pages/listReport.js.map +1 -1
- package/dist/specification/src/sync/v4/utils/utils.d.ts +34 -1
- package/dist/specification/src/sync/v4/utils/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/utils/utils.js +95 -0
- package/dist/specification/src/sync/v4/utils/utils.js.map +1 -1
- package/dist/types/src/apiTypes.d.ts +22 -0
- package/dist/types/src/apiTypes.d.ts.map +1 -1
- package/dist/types/src/apiTypes.js.map +1 -1
- package/dist/types/src/common/types.d.ts +1 -0
- package/dist/types/src/common/types.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +1 -0
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/index.js +2 -1
- package/dist/types/src/index.js.map +1 -1
- package/dist/types/src/parser/application.d.ts +22 -0
- package/dist/types/src/parser/application.d.ts.map +1 -0
- package/dist/types/src/parser/application.js +3 -0
- package/dist/types/src/parser/application.js.map +1 -0
- package/dist/types/src/parser/index.d.ts +3 -0
- package/dist/types/src/parser/index.d.ts.map +1 -0
- package/dist/types/src/parser/index.js +18 -0
- package/dist/types/src/parser/index.js.map +1 -0
- package/dist/types/src/parser/model.d.ts +17 -0
- package/dist/types/src/parser/model.d.ts.map +1 -0
- package/dist/types/src/parser/model.js +3 -0
- package/dist/types/src/parser/model.js.map +1 -0
- package/package.json +9 -8
- package/dist/specification/src/ftfs/annotations.d.ts +0 -12
- package/dist/specification/src/ftfs/annotations.d.ts.map +0 -1
- package/dist/specification/src/ftfs/annotations.js +0 -50
- package/dist/specification/src/ftfs/annotations.js.map +0 -1
|
@@ -27,34 +27,41 @@
|
|
|
27
27
|
"properties": {
|
|
28
28
|
"forceGlobalRefresh": {
|
|
29
29
|
"description": "If forceGlobalRefresh is not explicitly set to false, a global model refresh is triggered when the annotated side effects are executed.",
|
|
30
|
-
"type": "boolean"
|
|
30
|
+
"type": "boolean",
|
|
31
|
+
"manifestPath": "$[\"sap.ui.generic.app\"].settings.forceGlobalRefresh"
|
|
31
32
|
},
|
|
32
33
|
"flexibleColumnLayout": {
|
|
33
34
|
"$ref": "#/definitions/FlexibleColumnLayout",
|
|
34
|
-
"description": "The flexible column layout allows users to see more details on the page, and to expand and collapse the screen areas."
|
|
35
|
+
"description": "The flexible column layout allows users to see more details on the page, and to expand and collapse the screen areas.",
|
|
36
|
+
"manifestPath": "$[\"sap.ui.generic.app\"].settings.flexibleColumnLayout"
|
|
35
37
|
},
|
|
36
38
|
"tableColumnVerticalAlignment": {
|
|
37
39
|
"$ref": "#/definitions/TableColumnVerticalAlignment",
|
|
38
|
-
"description": "tableColumnVerticalAlignment provides an option for vertical alignment for the whole responsive table."
|
|
40
|
+
"description": "tableColumnVerticalAlignment provides an option for vertical alignment for the whole responsive table.",
|
|
41
|
+
"manifestPath": "$[\"sap.ui.generic.app\"].settings.tableColumnVerticalAlignment"
|
|
39
42
|
},
|
|
40
43
|
"title": {
|
|
41
44
|
"description": "Defines the title for the application.",
|
|
42
45
|
"i18nClassification": "TIT: Title of the application",
|
|
43
|
-
"type": "string"
|
|
46
|
+
"type": "string",
|
|
47
|
+
"manifestPath": "$[\"sap.app\"].title"
|
|
44
48
|
},
|
|
45
49
|
"description": {
|
|
46
50
|
"description": "Defines the description for the application.",
|
|
47
51
|
"i18nClassification": "TIT: Description of the application",
|
|
48
|
-
"type": "string"
|
|
52
|
+
"type": "string",
|
|
53
|
+
"manifestPath": "$[\"sap.app\"].description"
|
|
49
54
|
},
|
|
50
55
|
"flexEnabled": {
|
|
51
56
|
"description": "Enables key user adaptation for an application.",
|
|
52
57
|
"descriptionSrcURL": "https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53",
|
|
53
|
-
"type": "boolean"
|
|
58
|
+
"type": "boolean",
|
|
59
|
+
"manifestPath": "$[\"sap.ui5\"].flexEnabled"
|
|
54
60
|
},
|
|
55
61
|
"cloudDevAdaptationStatus": {
|
|
56
62
|
"$ref": "#/definitions/CloudDevAdaptationStatus",
|
|
57
|
-
"description": "Represents the release status for the developer adaptation in the cloud (relevant for SAP internal only). The supported types are released, deprecated, obsolete, no value means not released."
|
|
63
|
+
"description": "Represents the release status for the developer adaptation in the cloud (relevant for SAP internal only). The supported types are released, deprecated, obsolete, no value means not released.",
|
|
64
|
+
"manifestPath": "$[\"sap.fiori\"].cloudDevAdaptationStatus"
|
|
58
65
|
}
|
|
59
66
|
},
|
|
60
67
|
"additionalProperties": false
|
|
@@ -15,6 +15,14 @@
|
|
|
15
15
|
"$ref": "#/definitions/ListReportFilterBar",
|
|
16
16
|
"description": "Filter Bar"
|
|
17
17
|
},
|
|
18
|
+
"table": {
|
|
19
|
+
"$ref": "#/definitions/Table",
|
|
20
|
+
"description": "Table"
|
|
21
|
+
},
|
|
22
|
+
"footer": {
|
|
23
|
+
"$ref": "#/definitions/Toolbar",
|
|
24
|
+
"description": "Footer"
|
|
25
|
+
},
|
|
18
26
|
"$schema": {
|
|
19
27
|
"type": "string"
|
|
20
28
|
}
|
|
@@ -413,6 +421,165 @@
|
|
|
413
421
|
"YESTERDAY"
|
|
414
422
|
],
|
|
415
423
|
"type": "string"
|
|
424
|
+
},
|
|
425
|
+
"Table": {
|
|
426
|
+
"description": "Table",
|
|
427
|
+
"isViewNode": true,
|
|
428
|
+
"type": "object",
|
|
429
|
+
"properties": {
|
|
430
|
+
"entitySet": {
|
|
431
|
+
"description": "This property can be used to indicate that a table or chart should be based on a different entity set than the main entity set",
|
|
432
|
+
"type": "string",
|
|
433
|
+
"artifactType": "Manifest",
|
|
434
|
+
"descriptionSrcURL": "https://ui5.sap.com/sdk/#/topic/b6b59e4a4c3548cf83ff9c3b955d3ba3"
|
|
435
|
+
},
|
|
436
|
+
"annotationPath": {
|
|
437
|
+
"description": "Specify a SelectionVariant or SelectionPresentationVariant annotation for the entity set to configure the table or chart",
|
|
438
|
+
"type": "string",
|
|
439
|
+
"artifactType": "Manifest",
|
|
440
|
+
"descriptionSrcURL": "https://ui5.sap.com/sdk/#/topic/37aeed74e17a42caa2cba3123f0c15fc"
|
|
441
|
+
},
|
|
442
|
+
"showItemNavigationOnChart": {
|
|
443
|
+
"description": "To enable navigation for charts, you have to set the property to \"true\" and maintain an internal navigation target in the manifest.",
|
|
444
|
+
"type": "boolean",
|
|
445
|
+
"artifactType": "Manifest"
|
|
446
|
+
},
|
|
447
|
+
"views": {
|
|
448
|
+
"$ref": "#/definitions/MultiViewsDefinition"
|
|
449
|
+
},
|
|
450
|
+
"showTablePersonalisation": {
|
|
451
|
+
"description": "The showTablePersonalisation attribute can be set to false to hide the table personalization button.",
|
|
452
|
+
"type": "boolean",
|
|
453
|
+
"artifactType": "FlexChange",
|
|
454
|
+
"controlType": "sap.ui.comp.smarttable.SmartTable"
|
|
455
|
+
},
|
|
456
|
+
"exportType": {
|
|
457
|
+
"$ref": "#/definitions/ExportType",
|
|
458
|
+
"description": "Specifies the type of export to be used in the SmartTable control. UI5Client is the default option.",
|
|
459
|
+
"artifactType": "FlexChange",
|
|
460
|
+
"controlType": "sap.ui.comp.smarttable.SmartTable"
|
|
461
|
+
},
|
|
462
|
+
"useExportToExcel": {
|
|
463
|
+
"description": "useExportToExcel must be set to true if you want to export data to a spreadsheet application, for example Microsoft Excel.",
|
|
464
|
+
"type": "boolean",
|
|
465
|
+
"artifactType": "FlexChange",
|
|
466
|
+
"controlType": "sap.ui.comp.smarttable.SmartTable"
|
|
467
|
+
}
|
|
468
|
+
},
|
|
469
|
+
"additionalProperties": false
|
|
470
|
+
},
|
|
471
|
+
"MultiViewsDefinition": {
|
|
472
|
+
"description": "Views",
|
|
473
|
+
"isViewNode": true,
|
|
474
|
+
"type": "object",
|
|
475
|
+
"properties": {
|
|
476
|
+
"enableAutoBinding": {
|
|
477
|
+
"description": "Use this property to ensure that data are automatically loaded when the page is opened.",
|
|
478
|
+
"type": "boolean",
|
|
479
|
+
"artifactType": "Manifest"
|
|
480
|
+
},
|
|
481
|
+
"showCounts": {
|
|
482
|
+
"description": "You can show the counts of entries of each view. To do so, add the showCounts option and set it to true.",
|
|
483
|
+
"type": "boolean",
|
|
484
|
+
"artifactType": "Manifest"
|
|
485
|
+
},
|
|
486
|
+
"variants": {
|
|
487
|
+
"$ref": "#/definitions/MultiViewsVariants",
|
|
488
|
+
"description": "List of views"
|
|
489
|
+
}
|
|
490
|
+
},
|
|
491
|
+
"additionalProperties": false,
|
|
492
|
+
"required": [
|
|
493
|
+
"variants"
|
|
494
|
+
]
|
|
495
|
+
},
|
|
496
|
+
"MultiViewsVariants": {
|
|
497
|
+
"isViewNode": false,
|
|
498
|
+
"type": "object",
|
|
499
|
+
"additionalProperties": {
|
|
500
|
+
"$ref": "#/definitions/Table"
|
|
501
|
+
}
|
|
502
|
+
},
|
|
503
|
+
"ExportType": {
|
|
504
|
+
"enum": [
|
|
505
|
+
"GW",
|
|
506
|
+
"UI5Client"
|
|
507
|
+
],
|
|
508
|
+
"type": "string"
|
|
509
|
+
},
|
|
510
|
+
"Toolbar": {
|
|
511
|
+
"description": "Toolbar",
|
|
512
|
+
"isViewNode": true,
|
|
513
|
+
"type": "object",
|
|
514
|
+
"properties": {
|
|
515
|
+
"actions": {
|
|
516
|
+
"$ref": "#/definitions/Actions"
|
|
517
|
+
}
|
|
518
|
+
},
|
|
519
|
+
"additionalProperties": false,
|
|
520
|
+
"required": [
|
|
521
|
+
"actions"
|
|
522
|
+
]
|
|
523
|
+
},
|
|
524
|
+
"Actions": {
|
|
525
|
+
"description": "Actions",
|
|
526
|
+
"isViewNode": true,
|
|
527
|
+
"type": "object",
|
|
528
|
+
"additionalProperties": {
|
|
529
|
+
"$ref": "#/definitions/Action"
|
|
530
|
+
}
|
|
531
|
+
},
|
|
532
|
+
"Action": {
|
|
533
|
+
"description": "Action",
|
|
534
|
+
"isViewNode": true,
|
|
535
|
+
"type": "object",
|
|
536
|
+
"properties": {
|
|
537
|
+
"tooltip": {
|
|
538
|
+
"description": "The text of the button tooltip, preferably as an i18n key.",
|
|
539
|
+
"i18nClassification": "ACT: Text for tooltip of button.",
|
|
540
|
+
"type": "string",
|
|
541
|
+
"artifactType": "FlexChange",
|
|
542
|
+
"controlType": "sap.m.Button"
|
|
543
|
+
},
|
|
544
|
+
"icon": {
|
|
545
|
+
"description": "An icon to be displayed as a graphical element within the button.\nThis can be an image or an icon from the Icon Explorer (https://ui5.sap.com/test-resources/sap/m/demokit/iconExplorer/webapp/index.html#/overview/SAP-icons), represented as RFC 3986 conformant URI.",
|
|
546
|
+
"type": "string",
|
|
547
|
+
"artifactType": "FlexChange",
|
|
548
|
+
"controlType": "sap.m.Button"
|
|
549
|
+
},
|
|
550
|
+
"activeIcon": {
|
|
551
|
+
"description": "An alternative icon for the active (depressed) state of the button.\nThis can be an image or an icon from the Icon Explorer (https://ui5.sap.com/test-resources/sap/m/demokit/iconExplorer/webapp/index.html#/overview/SAP-icons), represented as RFC 3986 conformant URI.",
|
|
552
|
+
"type": "string",
|
|
553
|
+
"artifactType": "FlexChange",
|
|
554
|
+
"controlType": "sap.m.Button"
|
|
555
|
+
},
|
|
556
|
+
"type": {
|
|
557
|
+
"$ref": "#/definitions/ButtonType",
|
|
558
|
+
"description": "Defines the Button type.",
|
|
559
|
+
"artifactType": "FlexChange",
|
|
560
|
+
"controlType": "sap.m.Button"
|
|
561
|
+
}
|
|
562
|
+
},
|
|
563
|
+
"additionalProperties": false
|
|
564
|
+
},
|
|
565
|
+
"ButtonType": {
|
|
566
|
+
"enum": [
|
|
567
|
+
"Accept",
|
|
568
|
+
"Attention",
|
|
569
|
+
"Back",
|
|
570
|
+
"Critical",
|
|
571
|
+
"Default",
|
|
572
|
+
"Emphasized",
|
|
573
|
+
"Ghost",
|
|
574
|
+
"Negative",
|
|
575
|
+
"Neutral",
|
|
576
|
+
"Reject",
|
|
577
|
+
"Success",
|
|
578
|
+
"Transparent",
|
|
579
|
+
"Unstyled",
|
|
580
|
+
"Up"
|
|
581
|
+
],
|
|
582
|
+
"type": "string"
|
|
416
583
|
}
|
|
417
584
|
},
|
|
418
585
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
@@ -27,7 +27,8 @@
|
|
|
27
27
|
"properties": {
|
|
28
28
|
"flexibleColumnLayout": {
|
|
29
29
|
"$ref": "#/definitions/FlexibleColumnLayoutV4",
|
|
30
|
-
"description": "The flexible column layout allows users to see more details on the page, and to expand and collapse the screen areas."
|
|
30
|
+
"description": "The flexible column layout allows users to see more details on the page, and to expand and collapse the screen areas.",
|
|
31
|
+
"manifestPath": "$[\"sap.ui5\"].routing.config.flexibleColumnLayout"
|
|
31
32
|
},
|
|
32
33
|
"viewPath": {
|
|
33
34
|
"description": "Represents a prefix that is prepended in front of the viewName",
|
|
@@ -35,22 +36,26 @@
|
|
|
35
36
|
},
|
|
36
37
|
"cloudDevAdaptationStatus": {
|
|
37
38
|
"$ref": "#/definitions/CloudDevAdaptationStatus",
|
|
38
|
-
"description": "Represents the release status for the developer adaptation in the cloud (relevant for SAP internal only). The supported types are released, deprecated, obsolete, no value means not released."
|
|
39
|
+
"description": "Represents the release status for the developer adaptation in the cloud (relevant for SAP internal only). The supported types are released, deprecated, obsolete, no value means not released.",
|
|
40
|
+
"manifestPath": "$[\"sap.fiori\"].cloudDevAdaptationStatus"
|
|
39
41
|
},
|
|
40
42
|
"title": {
|
|
41
43
|
"description": "Defines the title for the application.",
|
|
42
44
|
"i18nClassification": "TIT: Title of the application",
|
|
43
|
-
"type": "string"
|
|
45
|
+
"type": "string",
|
|
46
|
+
"manifestPath": "$[\"sap.app\"].title"
|
|
44
47
|
},
|
|
45
48
|
"description": {
|
|
46
49
|
"description": "Defines the description for the application.",
|
|
47
50
|
"i18nClassification": "TIT: Description of the application",
|
|
48
|
-
"type": "string"
|
|
51
|
+
"type": "string",
|
|
52
|
+
"manifestPath": "$[\"sap.app\"].description"
|
|
49
53
|
},
|
|
50
54
|
"flexEnabled": {
|
|
51
55
|
"description": "Enables key user adaptation for an application.",
|
|
52
56
|
"descriptionSrcURL": "https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53",
|
|
53
|
-
"type": "boolean"
|
|
57
|
+
"type": "boolean",
|
|
58
|
+
"manifestPath": "$[\"sap.ui5\"].flexEnabled"
|
|
54
59
|
}
|
|
55
60
|
},
|
|
56
61
|
"additionalProperties": false
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap/ux-specification",
|
|
3
|
-
"version": "1.84.
|
|
3
|
+
"version": "1.84.128",
|
|
4
4
|
"displayName": "SAP Fiori tools - Specification",
|
|
5
5
|
"description": "SAP Fiori tools - Specification",
|
|
6
6
|
"files": [
|
|
@@ -48,18 +48,19 @@
|
|
|
48
48
|
"publisher": "SAPSE",
|
|
49
49
|
"license": "SEE LICENSE IN LICENSE",
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@sap-ux/vocabularies-types": "0.
|
|
51
|
+
"@sap-ux/vocabularies-types": "0.13.2"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@sap-ux/annotation-converter": "0.10.
|
|
54
|
+
"@sap-ux/annotation-converter": "0.10.9",
|
|
55
55
|
"@sap-ux/edmx-parser": "0.9.6",
|
|
56
|
-
"@sap-ux/project-access": "1.
|
|
57
|
-
"@sap/ux-specification-types": "1.84.
|
|
56
|
+
"@sap-ux/project-access": "1.33.0",
|
|
57
|
+
"@sap/ux-specification-types": "1.84.128",
|
|
58
58
|
"@sapui5/ts-types": "latest-1.84",
|
|
59
59
|
"@types/d3": "7.4.3",
|
|
60
|
-
"@types/jquery": "3.5.
|
|
61
|
-
"@types/mem-fs": "1.1.
|
|
60
|
+
"@types/jquery": "3.5.33",
|
|
61
|
+
"@types/mem-fs": "1.1.5",
|
|
62
62
|
"@types/mem-fs-editor": "7.0.1",
|
|
63
|
+
"@types/json-schema": "7.0.5",
|
|
63
64
|
"@ui5/flexibility-utils": "0.1.3",
|
|
64
65
|
"@xml-tools/ast": "5.0.5",
|
|
65
66
|
"@xml-tools/parser": "1.0.11",
|
|
@@ -69,7 +70,7 @@
|
|
|
69
70
|
"deepmerge": "4.3.1",
|
|
70
71
|
"ejs": "3.1.10",
|
|
71
72
|
"excel4node": "1.8.2",
|
|
72
|
-
"i18next": "25.
|
|
73
|
+
"i18next": "25.7.3",
|
|
73
74
|
"jquery": "3.7.1",
|
|
74
75
|
"jsdom": "25.0.1",
|
|
75
76
|
"lodash.unset": "4.5.2",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"to-json-schema.d.ts","sourceRoot":"","sources":["../../../../scripts/schema/to-json-schema.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"to-json-schema.d.ts","sourceRoot":"","sources":["../../../../scripts/schema/to-json-schema.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,0CAA0C,CAAC;AAS1F,MAAM,MAAM,MAAM,GAAG;IAAE,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,CAAC;AA6BhD;;;;;GAKG;AACH,wBAAgB,kCAAkC,CAAC,OAAO,CAAC,EAAE,yBAAyB,QAErF;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,oBAAoB,GAAG,MAAM,EAAE,CA4BxG;AAuHD;;GAEG;AACH,eAAO,MAAM,2BAA2B,EAAE,yBAqBzC,CAAC;AAEF;;;GAGG;AACH,wBAAgB,YAAY,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CA0BrD"}
|
|
@@ -46,6 +46,10 @@ const factory_2 = require("../../src/sync/v4/export/factory");
|
|
|
46
46
|
const ux_specification_types_1 = require("@sap/ux-specification-types");
|
|
47
47
|
const ListReportNew_1 = require("../../src/sync/v2/genericSchemaHandling/pages/ListReportNew");
|
|
48
48
|
const v2Controls = __importStar(require("../../src/sync/v2/genericSchemaHandling/controls"));
|
|
49
|
+
const decoration_1 = require("../../src/sync/common/decoration");
|
|
50
|
+
const utils_2 = require("../../src/sync/common/utils");
|
|
51
|
+
const application_1 = require("../../src/sync/v4/application");
|
|
52
|
+
const application_2 = require("../../src/sync/v2/application");
|
|
49
53
|
//TS compiler options, compare with tsconfig
|
|
50
54
|
const compilerOptions = {
|
|
51
55
|
skipLibCheck: true,
|
|
@@ -165,6 +169,55 @@ function convertPagesOfFEVersion(paths, version, outputPath, factory) {
|
|
|
165
169
|
function getPosition(string, subString, index) {
|
|
166
170
|
return string.split(subString, index).join(subString).length;
|
|
167
171
|
}
|
|
172
|
+
/**
|
|
173
|
+
* Performs post-processing on the provided array of schemas for V2 and V4 applications.
|
|
174
|
+
*
|
|
175
|
+
* @param schemas - An array of `Schema` objects to be post-processed.
|
|
176
|
+
*/
|
|
177
|
+
function postProcessingApps(schemas) {
|
|
178
|
+
// Add manifest paths to V4 and V2
|
|
179
|
+
addManifestPathsToApplication(schemas['ApplicationV4.json'], application_1.AppSettings.prototype);
|
|
180
|
+
addManifestPathsToApplication(schemas['ApplicationV2.json'], application_2.AppSettings.prototype);
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* Performs post-processing on the provided array of schemas for V4 applications.
|
|
184
|
+
*
|
|
185
|
+
* @param schemas - An array of `Schema` objects to be post-processed.
|
|
186
|
+
*/
|
|
187
|
+
function postProcessingV4App(schemas) {
|
|
188
|
+
// Remove the values that were required to generate the 'defaultCreationMode' dropdown in the UI5 application, but are no longer needed in the schema.
|
|
189
|
+
const schema = schemas['ApplicationV4.json'];
|
|
190
|
+
schema.definitions.AppSettings.properties['defaultCreationMode'].enum = schema.definitions.AppSettings.properties['defaultCreationMode'].enum.filter((option) => !!option);
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Adds `manifestPath` to the `AppSettings` properties inside a JSON schema.
|
|
194
|
+
*
|
|
195
|
+
* @param {JSONSchema4} schema - The JSON schema object to be updated.
|
|
196
|
+
* @param {object} classPrototype - The prototype object whose metadata is used to determine manifest path information for each property.
|
|
197
|
+
*/
|
|
198
|
+
function addManifestPathsToApplication(schema, classPrototype) {
|
|
199
|
+
// Update schema with manifest path for properties in settings
|
|
200
|
+
for (const property in schema.definitions.AppSettings.properties) {
|
|
201
|
+
const propertySchema = schema.definitions.AppSettings.properties[property];
|
|
202
|
+
const rule = (0, decoration_1.getReflectMetadata)(classPrototype, property);
|
|
203
|
+
const manifestPath = rule?.manifest?.path;
|
|
204
|
+
if (manifestPath) {
|
|
205
|
+
const manifestPath = `${rule.manifest.path()}/${property}`;
|
|
206
|
+
propertySchema.manifestPath = (0, utils_2.convertSyncRulePathToJsonPath)(manifestPath);
|
|
207
|
+
// Continue parsing of inner properties
|
|
208
|
+
if (propertySchema.anyOf) {
|
|
209
|
+
for (const innerSchema of propertySchema.anyOf) {
|
|
210
|
+
if (!innerSchema.properties) {
|
|
211
|
+
continue;
|
|
212
|
+
}
|
|
213
|
+
for (const property in innerSchema.properties) {
|
|
214
|
+
innerSchema.properties[property].manifestPath = (0, utils_2.appendJsonPathSegment)(propertySchema.manifestPath, property);
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
168
221
|
/**
|
|
169
222
|
* Factory giving access to the metadata of the new v2 ListReport page.
|
|
170
223
|
*/
|
|
@@ -173,7 +226,8 @@ exports.FACTORY_FOR_LIST_REPORT_NEW = {
|
|
|
173
226
|
const metadataClass = v2Controls[schemaPropertyName];
|
|
174
227
|
// Naming convention: Types that are only introduced as host for enums have a name ending with 'Enum'.
|
|
175
228
|
// They cannot be instantiated.
|
|
176
|
-
|
|
229
|
+
// In addition to that some enums (ButtonType,...) are imported from sapui5.
|
|
230
|
+
if (schemaPropertyName.endsWith('Enum') || ['ButtonType', 'ExportType'].includes(schemaPropertyName)) {
|
|
177
231
|
return metadataClass;
|
|
178
232
|
}
|
|
179
233
|
let instance;
|
|
@@ -195,7 +249,6 @@ exports.FACTORY_FOR_LIST_REPORT_NEW = {
|
|
|
195
249
|
* @param outputPath - path to write to
|
|
196
250
|
*/
|
|
197
251
|
function toJsonSchema(outputPath) {
|
|
198
|
-
let schemas = [];
|
|
199
252
|
const rootName = __dirname.slice(0, getPosition(__dirname, 'specification', 2));
|
|
200
253
|
const typesPath = (0, path_1.join)(rootName, 'types', 'src');
|
|
201
254
|
//Pages V2
|
|
@@ -213,10 +266,13 @@ function toJsonSchema(outputPath) {
|
|
|
213
266
|
paths.push((0, path_1.join)(typesPath, 'v4', 'pages'));
|
|
214
267
|
convertPagesOfFEVersion(paths, ux_specification_types_1.FioriElementsVersion.v4, outputPath);
|
|
215
268
|
//App V2
|
|
216
|
-
|
|
217
|
-
writeSchemasToFile(outputPath, schemas, 'v2');
|
|
269
|
+
const v2AppSchemas = convertInterfaces((0, path_1.join)(typesPath, 'v2'), ['ApplicationV2.ts'], ux_specification_types_1.FioriElementsVersion.v2);
|
|
218
270
|
//App V4
|
|
219
|
-
|
|
220
|
-
|
|
271
|
+
const v4AppSchemas = convertInterfaces((0, path_1.join)(typesPath, 'v4'), ['ApplicationV4.ts'], ux_specification_types_1.FioriElementsVersion.v4);
|
|
272
|
+
//App postprocessing of schema
|
|
273
|
+
postProcessingApps({ ...v2AppSchemas, ...v4AppSchemas });
|
|
274
|
+
//Write App schemas
|
|
275
|
+
writeSchemasToFile(outputPath, v2AppSchemas, 'v2');
|
|
276
|
+
writeSchemasToFile(outputPath, v4AppSchemas, 'v4');
|
|
221
277
|
}
|
|
222
278
|
//# sourceMappingURL=to-json-schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"to-json-schema.js","sourceRoot":"","sources":["../../../../scripts/schema/to-json-schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"to-json-schema.js","sourceRoot":"","sources":["../../../../scripts/schema/to-json-schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsDA,gFAEC;AAOD,8CA4BC;AAqJD,oCA0BC;AA1QD,+BAAsC;AACtC,uCAAyB;AAEzB,mEAA6E;AAE7E,4DAAmE;AACnE,8DAA0F;AAC1F,8DAA0F;AAE1F,wEAAmE;AAGnE,+FAA4F;AAC5F,6FAA+E;AAC/E,iEAAsE;AACtE,uDAAmG;AACnG,+DAA6E;AAC7E,+DAA6E;AAI7E,4CAA4C;AAC5C,MAAM,eAAe,GAAG;IACpB,YAAY,EAAE,IAAI;IAClB,KAAK,EAAE,CAAC,MAAM,EAAE,kBAAkB,EAAE,MAAM,CAAC;IAC3C,eAAe,EAAE,IAAI;IACrB,iBAAiB,EAAE,IAAI;IACvB,kBAAkB,EAAE,IAAI;CAC3B,CAAC;AAEF,MAAM,iBAAiB,GAAG;IACtB,YAAY,EAAE,IAAI,EAAE,uDAAuD;IAC3E,QAAQ,EAAE,IAAI,EAAE,qDAAqD;IACrE,kBAAkB,EAAE;QAChB,oBAAoB;QACpB,YAAY;QACZ,aAAa;QACb,iBAAiB;QACjB,QAAQ;QACR,SAAS;QACT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C,EAAE,6CAAoB,CAAC,EAAE,CAAC,CAAC;IAC7G,QAAQ;IACR,MAAM,YAAY,GAAG,iBAAiB,CAAC,IAAA,WAAI,EAAC,SAAS,EAAE,IAAI,CAAC,EAAE,CAAC,kBAAkB,CAAC,EAAE,6CAAoB,CAAC,EAAE,CAAC,CAAC;IAC7G,8BAA8B;IAC9B,kBAAkB,CAAC,EAAE,GAAG,YAAY,EAAE,GAAG,YAAY,EAAE,CAAC,CAAC;IACzD,mBAAmB;IACnB,kBAAkB,CAAC,UAAU,EAAE,YAAY,EAAE,IAAI,CAAC,CAAC;IACnD,kBAAkB,CAAC,UAAU,EAAE,YAAY,EAAE,IAAI,CAAC,CAAC;AACvD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ftfs.d.ts","sourceRoot":"","sources":["../../../../src/ftfs/ftfs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"ftfs.d.ts","sourceRoot":"","sources":["../../../../src/ftfs/ftfs.ts"],"names":[],"mappings":"AAAA,OAAO,EAKH,KAAK,aAAa,EAClB,KAAK,aAAa,EAErB,MAAM,6BAA6B,CAAC;AAqBrC;;;;;GAKG;AACH,wBAAsB,OAAO,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC,CAuD5E"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.readApp = readApp;
|
|
4
|
+
const ux_specification_types_1 = require("@sap/ux-specification-types");
|
|
4
5
|
const project_access_1 = require("@sap-ux/project-access");
|
|
5
6
|
const mem_fs_1 = require("mem-fs");
|
|
6
7
|
const mem_fs_editor_1 = require("mem-fs-editor");
|
|
7
|
-
const annotations_1 = require("./annotations");
|
|
8
8
|
const api_1 = require("../api");
|
|
9
|
+
const parser_1 = require("./parser");
|
|
9
10
|
// Retrieve API version
|
|
10
11
|
const ApiVersion = (0, api_1.getApiVersion)();
|
|
11
12
|
/**
|
|
@@ -28,10 +29,10 @@ async function readApp(options) {
|
|
|
28
29
|
// Reuse app access or create new instance
|
|
29
30
|
const appAccess = typeof options.app === 'string' ? await (0, project_access_1.createApplicationAccess)(options.app, memFs) : options.app;
|
|
30
31
|
let files = [];
|
|
31
|
-
const manifest =
|
|
32
|
+
const manifest = await appAccess.readManifest(memFs);
|
|
32
33
|
if (manifest) {
|
|
33
|
-
const annotationData = await
|
|
34
|
-
const changeFiles = await
|
|
34
|
+
const annotationData = await appAccess.readAnnotationFiles(memFs);
|
|
35
|
+
const changeFiles = await appAccess.readFlexChanges(memFs);
|
|
35
36
|
// Import project using specification API
|
|
36
37
|
files = await (0, api_1.importProject)({
|
|
37
38
|
manifest: manifest,
|
|
@@ -40,10 +41,42 @@ async function readApp(options) {
|
|
|
40
41
|
logger: options.logger
|
|
41
42
|
});
|
|
42
43
|
}
|
|
43
|
-
|
|
44
|
+
// Application model
|
|
45
|
+
let applicationModel;
|
|
46
|
+
if (!options.skipParsing) {
|
|
47
|
+
const appFile = files.find((file) => file.dataSourceUri === ux_specification_types_1.FileName.App);
|
|
48
|
+
const application = appFile ? JSON.parse(appFile.fileContent) : {};
|
|
49
|
+
const appSchemaFile = files.find((file) => application.$schema?.endsWith(file.dataSourceUri));
|
|
50
|
+
if (application && appSchemaFile) {
|
|
51
|
+
applicationModel = {
|
|
52
|
+
...application,
|
|
53
|
+
model: (0, parser_1.getModel)(appSchemaFile.fileContent, application),
|
|
54
|
+
pages: {}
|
|
55
|
+
};
|
|
56
|
+
for (const pageId in application.pages ?? {}) {
|
|
57
|
+
const page = application.pages[pageId];
|
|
58
|
+
// Paths are unified and does not require OS specific handling
|
|
59
|
+
const pageSourceUri = `pages/${pageId}.json`;
|
|
60
|
+
const configFile = files.find((file) => file.dataSourceUri === pageSourceUri);
|
|
61
|
+
const config = configFile ? JSON.parse(configFile.fileContent) : {};
|
|
62
|
+
const schemaFile = files.find((file) => config.$schema?.endsWith(file.dataSourceUri));
|
|
63
|
+
if (schemaFile) {
|
|
64
|
+
applicationModel.pages[pageId] = {
|
|
65
|
+
...page,
|
|
66
|
+
model: (0, parser_1.getModel)(schemaFile.fileContent, config, page.pageType)
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
const result = {
|
|
44
73
|
files,
|
|
45
74
|
appAccess,
|
|
46
75
|
version: ApiVersion
|
|
47
76
|
};
|
|
77
|
+
if (applicationModel) {
|
|
78
|
+
result.applicationModel = applicationModel;
|
|
79
|
+
}
|
|
80
|
+
return result;
|
|
48
81
|
}
|
|
49
82
|
//# sourceMappingURL=ftfs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ftfs.js","sourceRoot":"","sources":["../../../../src/ftfs/ftfs.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"ftfs.js","sourceRoot":"","sources":["../../../../src/ftfs/ftfs.ts"],"names":[],"mappings":";;AAmCA,0BAuDC;AA1FD,wEAQqC;AACrC,2DAAiE;AACjE,mCAAiD;AACjD,iDAAuC;AAEvC,gCAAsD;AACtD,qCAAoC;AAEpC,uBAAuB;AACvB,MAAM,UAAU,GAAG,IAAA,mBAAa,GAAE,CAAC;AAEnC;;;;;GAKG;AACH,SAAS,aAAa,CAAC,EAAW;IAC9B,OAAO,EAAE,IAAI,IAAA,sBAAM,EAAC,IAAA,eAAa,GAAE,CAAC,CAAC;AACzC,CAAC;AAED;;;;;GAKG;AACI,KAAK,UAAU,OAAO,CAAC,OAAsB;IAChD,MAAM,KAAK,GAAG,aAAa,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IACxC,0CAA0C;IAC1C,MAAM,SAAS,GAAG,OAAO,OAAO,CAAC,GAAG,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,IAAA,wCAAuB,EAAC,OAAO,CAAC,GAAG,EAAE,KAAK,CA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|
+
*
|
|
5
|
+
* @param value The value to check.
|
|
6
|
+
* @returns true if the value is a TooComplexData object.
|
|
7
|
+
*/
|
|
8
|
+
export declare function isTooComplex<T>(value: T | TooComplexData): value is TooComplexData;
|
|
9
|
+
//# sourceMappingURL=annotations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"annotations.d.ts","sourceRoot":"","sources":["../../../../../src/ftfs/parser/annotations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,cAAc,GAAG,KAAK,IAAI,cAAc,CAElF"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isTooComplex = isTooComplex;
|
|
4
|
+
/**
|
|
5
|
+
* Type guard to check whether a given value is of type `TooComplexData`.
|
|
6
|
+
*
|
|
7
|
+
* @param value The value to check.
|
|
8
|
+
* @returns true if the value is a TooComplexData object.
|
|
9
|
+
*/
|
|
10
|
+
function isTooComplex(value) {
|
|
11
|
+
return value?.tooComplex === true;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=annotations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"annotations.js","sourceRoot":"","sources":["../../../../../src/ftfs/parser/annotations.ts"],"names":[],"mappings":";;AAQA,oCAEC;AARD;;;;;GAKG;AACH,SAAgB,YAAY,CAAI,KAAyB;IACrD,OAAQ,KAAwB,EAAE,UAAU,KAAK,IAAI,CAAC;AAC1D,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { PageConfig, PageType } from '@sap/ux-specification-types';
|
|
2
|
+
import type { PageAnnotations } from './model';
|
|
3
|
+
import { TreeModel } from './model';
|
|
4
|
+
export * from './model';
|
|
5
|
+
/**
|
|
6
|
+
* Method initializes and returns model.
|
|
7
|
+
*
|
|
8
|
+
* @param schema JSON schema.
|
|
9
|
+
* @param data Page or application config.
|
|
10
|
+
* @param pageType Page type.
|
|
11
|
+
* @param annotation Page annotations.
|
|
12
|
+
* @returns Initialized model.
|
|
13
|
+
*/
|
|
14
|
+
export declare function getModel(schema: string, data: PageConfig, pageType?: PageType, annotation?: PageAnnotations): TreeModel;
|
|
15
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/ftfs/parser/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC,cAAc,SAAS,CAAC;AAExB;;;;;;;;GAQG;AACH,wBAAgB,QAAQ,CACpB,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,UAAU,EAChB,QAAQ,CAAC,EAAE,QAAQ,EACnB,UAAU,CAAC,EAAE,eAAe,GAC7B,SAAS,CAWX"}
|