@sap/ux-specification 1.96.106 → 1.96.107
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 +33 -0
- 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-BuildingBlocks.html +2 -2
- package/dist/documentation/v4/v4-FreestylePage.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 +261 -256
- package/dist/index-min.js.map +4 -4
- package/dist/schemas/v2/ListReportNewConfig.json +165 -7
- package/dist/schemas/v4/BuildingBlocksConfig.json +227 -1
- package/dist/specification/package.json +8 -8
- package/dist/specification/scripts/generate-validity-report.js +1 -1
- package/dist/specification/scripts/generate-validity-report.js.map +1 -1
- package/dist/specification/scripts/macros/corrections.d.ts +1 -0
- package/dist/specification/scripts/macros/corrections.d.ts.map +1 -1
- package/dist/specification/scripts/macros/corrections.js +123 -3
- package/dist/specification/scripts/macros/corrections.js.map +1 -1
- package/dist/specification/scripts/macros/schema.d.ts.map +1 -1
- package/dist/specification/scripts/macros/schema.js +23 -10
- package/dist/specification/scripts/macros/schema.js.map +1 -1
- package/dist/specification/scripts/schema/to-json-schema.js +1 -1
- package/dist/specification/scripts/schema/to-json-schema.js.map +1 -1
- package/dist/specification/src/api.d.ts.map +1 -1
- package/dist/specification/src/api.js +39 -3
- package/dist/specification/src/api.js.map +1 -1
- package/dist/specification/src/ftfs/ftfs.d.ts +8 -0
- package/dist/specification/src/ftfs/ftfs.d.ts.map +1 -1
- package/dist/specification/src/ftfs/ftfs.js +1 -0
- package/dist/specification/src/ftfs/ftfs.js.map +1 -1
- package/dist/specification/src/ftfs/index.d.ts +1 -1
- package/dist/specification/src/ftfs/index.d.ts.map +1 -1
- package/dist/specification/src/ftfs/index.js +2 -1
- package/dist/specification/src/ftfs/index.js.map +1 -1
- package/dist/specification/src/ftfs/parser/model/TreeModel.d.ts.map +1 -1
- package/dist/specification/src/ftfs/parser/model/TreeModel.js +3 -1
- package/dist/specification/src/ftfs/parser/model/TreeModel.js.map +1 -1
- package/dist/specification/src/sync/common/decoration/Decorator.d.ts +91 -0
- package/dist/specification/src/sync/common/decoration/Decorator.d.ts.map +1 -0
- package/dist/specification/src/sync/common/decoration/Decorator.js +139 -0
- package/dist/specification/src/sync/common/decoration/Decorator.js.map +1 -0
- package/dist/specification/src/sync/common/decoration/condition-evaluator.d.ts +95 -0
- package/dist/specification/src/sync/common/decoration/condition-evaluator.d.ts.map +1 -0
- package/dist/specification/src/sync/common/decoration/condition-evaluator.js +210 -0
- package/dist/specification/src/sync/common/decoration/condition-evaluator.js.map +1 -0
- package/dist/specification/src/sync/common/decoration/decorator-paths.d.ts +5 -22
- package/dist/specification/src/sync/common/decoration/decorator-paths.d.ts.map +1 -1
- package/dist/specification/src/sync/common/decoration/decorator-paths.js.map +1 -1
- package/dist/specification/src/sync/common/decoration/decorators.d.ts +0 -8
- package/dist/specification/src/sync/common/decoration/decorators.d.ts.map +1 -1
- package/dist/specification/src/sync/common/decoration/decorators.js +0 -15
- package/dist/specification/src/sync/common/decoration/decorators.js.map +1 -1
- package/dist/specification/src/sync/common/decoration/index.d.ts +4 -0
- package/dist/specification/src/sync/common/decoration/index.d.ts.map +1 -1
- package/dist/specification/src/sync/common/decoration/index.js +4 -0
- package/dist/specification/src/sync/common/decoration/index.js.map +1 -1
- package/dist/specification/src/sync/common/decoration/interfaces.d.ts +38 -0
- package/dist/specification/src/sync/common/decoration/interfaces.d.ts.map +1 -0
- package/dist/specification/src/sync/common/decoration/interfaces.js +3 -0
- package/dist/specification/src/sync/common/decoration/interfaces.js.map +1 -0
- package/dist/specification/src/sync/common/decoration/steps/Enums.d.ts +18 -0
- package/dist/specification/src/sync/common/decoration/steps/Enums.d.ts.map +1 -0
- package/dist/specification/src/sync/common/decoration/steps/Enums.js +50 -0
- package/dist/specification/src/sync/common/decoration/steps/Enums.js.map +1 -0
- package/dist/specification/src/sync/common/decoration/steps/Hide.d.ts +18 -0
- package/dist/specification/src/sync/common/decoration/steps/Hide.d.ts.map +1 -0
- package/dist/specification/src/sync/common/decoration/steps/Hide.js +46 -0
- package/dist/specification/src/sync/common/decoration/steps/Hide.js.map +1 -0
- package/dist/specification/src/sync/common/decoration/steps/Message.d.ts +26 -0
- package/dist/specification/src/sync/common/decoration/steps/Message.d.ts.map +1 -0
- package/dist/specification/src/sync/common/decoration/steps/Message.js +77 -0
- package/dist/specification/src/sync/common/decoration/steps/Message.js.map +1 -0
- package/dist/specification/src/sync/common/decoration/steps/Readonly.d.ts +18 -0
- package/dist/specification/src/sync/common/decoration/steps/Readonly.d.ts.map +1 -0
- package/dist/specification/src/sync/common/decoration/steps/Readonly.js +43 -0
- package/dist/specification/src/sync/common/decoration/steps/Readonly.js.map +1 -0
- package/dist/specification/src/sync/common/decoration/steps/Validity.d.ts +18 -0
- package/dist/specification/src/sync/common/decoration/steps/Validity.d.ts.map +1 -0
- package/dist/specification/src/sync/common/decoration/steps/Validity.js +68 -0
- package/dist/specification/src/sync/common/decoration/steps/Validity.js.map +1 -0
- package/dist/specification/src/sync/common/decoration/steps/enum-utils.d.ts +19 -0
- package/dist/specification/src/sync/common/decoration/steps/enum-utils.d.ts.map +1 -0
- package/dist/specification/src/sync/common/decoration/steps/enum-utils.js +48 -0
- package/dist/specification/src/sync/common/decoration/steps/enum-utils.js.map +1 -0
- package/dist/specification/src/sync/common/decoration/steps/index.d.ts +6 -0
- package/dist/specification/src/sync/common/decoration/steps/index.d.ts.map +1 -0
- package/dist/specification/src/sync/common/decoration/steps/index.js +14 -0
- package/dist/specification/src/sync/common/decoration/steps/index.js.map +1 -0
- package/dist/specification/src/sync/common/i18n.json +18 -0
- package/dist/specification/src/sync/v2/export/controls/Fragment.d.ts +4 -5
- package/dist/specification/src/sync/v2/export/controls/Fragment.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/controls/Fragment.js +29 -20
- package/dist/specification/src/sync/v2/export/controls/Fragment.js.map +1 -1
- package/dist/specification/src/sync/v2/export/export.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/export.js +3 -2
- package/dist/specification/src/sync/v2/export/export.js.map +1 -1
- package/dist/specification/src/sync/v2/export/exportPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/exportPage.js +48 -19
- package/dist/specification/src/sync/v2/export/exportPage.js.map +1 -1
- package/dist/specification/src/sync/v2/export/exportPageGeneric.d.ts +2 -0
- package/dist/specification/src/sync/v2/export/exportPageGeneric.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/exportPageGeneric.js +17 -6
- package/dist/specification/src/sync/v2/export/exportPageGeneric.js.map +1 -1
- package/dist/specification/src/sync/v2/export/view-controller-generator.d.ts +54 -6
- package/dist/specification/src/sync/v2/export/view-controller-generator.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/view-controller-generator.js +106 -12
- package/dist/specification/src/sync/v2/export/view-controller-generator.js.map +1 -1
- package/dist/specification/src/sync/v2/generate/schemaAdaptation.js +2 -2
- package/dist/specification/src/sync/v2/generate/schemaAdaptation.js.map +1 -1
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/FilterBar.js +4 -4
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/MultiTable.js +3 -3
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/MultiTable.js.map +1 -1
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/Table.d.ts +57 -2
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/Table.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/Table.js +567 -7
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/Table.js.map +1 -1
- package/dist/specification/src/sync/v2/genericSchemaHandling/pages/pageAccess.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/genericSchemaHandling/pages/pageAccess.js +29 -6
- package/dist/specification/src/sync/v2/genericSchemaHandling/pages/pageAccess.js.map +1 -1
- package/dist/specification/src/sync/v2/types.d.ts +2 -0
- package/dist/specification/src/sync/v2/types.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/types.js.map +1 -1
- package/dist/specification/src/sync/v2/utils.d.ts +25 -0
- package/dist/specification/src/sync/v2/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/utils.js +28 -4
- package/dist/specification/src/sync/v2/utils.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ToolBarAction.d.ts +3 -1
- package/dist/specification/src/sync/v4/export/controls/ToolBarAction.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ToolBarAction.js +8 -5
- package/dist/specification/src/sync/v4/export/controls/ToolBarAction.js.map +1 -1
- package/dist/specification/src/sync/v4/export/fpmCustomPage.d.ts +1 -0
- package/dist/specification/src/sync/v4/export/fpmCustomPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/fpmCustomPage.js +212 -46
- package/dist/specification/src/sync/v4/export/fpmCustomPage.js.map +1 -1
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/annotations.d.ts +13 -0
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/annotations.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/annotations.js +74 -2
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/annotations.js.map +1 -1
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/extensions.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/extensions.js +4 -3
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/extensions.js.map +1 -1
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/generator.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/generator.js +32 -28
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/generator.js.map +1 -1
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/utils.js +12 -3
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/utils.js.map +1 -1
- package/dist/specification/src/sync/v4/import/pages/fpmCustomPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/import/pages/fpmCustomPage.js +20 -0
- package/dist/specification/src/sync/v4/import/pages/fpmCustomPage.js.map +1 -1
- package/dist/specification/src/sync/v4/sync-rules/App.d.ts +2 -4
- package/dist/specification/src/sync/v4/sync-rules/App.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/sync-rules/App.js +2 -1
- package/dist/specification/src/sync/v4/sync-rules/App.js.map +1 -1
- package/dist/specification/src/sync/v4/sync-rules/AppSchema.d.ts +2 -1
- package/dist/specification/src/sync/v4/sync-rules/AppSchema.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/sync-rules/AppSchema.js +3 -1
- package/dist/specification/src/sync/v4/sync-rules/AppSchema.js.map +1 -1
- package/dist/specification/src/sync/v4/sync-rules/DecoratorClass.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/sync-rules/DecoratorClass.js.map +1 -1
- package/dist/specification/src/sync/v4/sync-rules/Page.d.ts +5 -0
- package/dist/specification/src/sync/v4/sync-rules/Page.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/sync-rules/Page.js.map +1 -1
- package/dist/specification/src/sync/v4/utils/macros.d.ts +19 -0
- package/dist/specification/src/sync/v4/utils/macros.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/utils/macros.js +34 -0
- package/dist/specification/src/sync/v4/utils/macros.js.map +1 -1
- package/dist/specification/test/test-utils/utils.d.ts.map +1 -1
- package/dist/specification/test/test-utils/utils.js +4 -0
- package/dist/specification/test/test-utils/utils.js.map +1 -1
- package/dist/specification/test/unit/decorators/validity-test-utils.d.ts +66 -197
- package/dist/specification/test/unit/decorators/validity-test-utils.d.ts.map +1 -1
- package/dist/specification/test/unit/decorators/validity-test-utils.js +378 -280
- package/dist/specification/test/unit/decorators/validity-test-utils.js.map +1 -1
- package/dist/templates/AnalyticalTableColumnsExtension.xml +3 -3
- package/dist/templates/GridTableColumnsExtension.xml +3 -3
- package/dist/templates/ResponsiveTableColumnsExtension.xml +2 -2
- package/dist/templates/TreeTableColumnsExtension.xml +4 -4
- package/dist/templates/fragment.xml +3 -3
- package/dist/templates/view.xml +3 -3
- package/dist/types/src/apiTypes.d.ts +15 -5
- package/dist/types/src/apiTypes.d.ts.map +1 -1
- package/dist/types/src/apiTypes.js +1 -0
- 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/common/types.js.map +1 -1
- package/package.json +8 -8
|
@@ -101,6 +101,8 @@ function getValueForManifest(value, oldValue, propertyDefinition, globalInfoForE
|
|
|
101
101
|
}
|
|
102
102
|
/**
|
|
103
103
|
* Returns whether two java script instances should be considered as different manifest entries.
|
|
104
|
+
* Note that in this context two objects are already considered different when the order of their properties is not identical.
|
|
105
|
+
* This is necessary, since for some manifest sections the order of its content has functional meaning.
|
|
104
106
|
*
|
|
105
107
|
* @param obj1 the first instance
|
|
106
108
|
* @param obj2 the second instance
|
|
@@ -110,8 +112,8 @@ function isDifferent(obj1, obj2) {
|
|
|
110
112
|
if (typeof obj1 !== 'object' || typeof obj2 !== 'object' || obj1 === null || obj2 === null) {
|
|
111
113
|
return obj1 !== obj2;
|
|
112
114
|
}
|
|
113
|
-
// This if-block
|
|
114
|
-
// arrays.
|
|
115
|
+
// This if-block will probably not be applied to manifest sections directly, since manifests of v2 apps should not contain any
|
|
116
|
+
// arrays. It is anyway needed for the comparison of the keys-arrays used below.
|
|
115
117
|
if (Array.isArray(obj1) || Array.isArray(obj2)) {
|
|
116
118
|
if (Array.isArray(obj1) && Array.isArray(obj2)) {
|
|
117
119
|
return (obj1.length !== obj2.length ||
|
|
@@ -119,11 +121,11 @@ function isDifferent(obj1, obj2) {
|
|
|
119
121
|
return isDifferent(entry1, obj2[i]);
|
|
120
122
|
}));
|
|
121
123
|
}
|
|
122
|
-
return true;
|
|
124
|
+
return true; // one instance is an array, one is not.
|
|
123
125
|
}
|
|
124
126
|
const keys1 = Object.keys(obj1).filter((key) => obj1[key] !== undefined);
|
|
125
127
|
const keys2 = Object.keys(obj2).filter((key) => obj2[key] !== undefined);
|
|
126
|
-
return (keys1
|
|
128
|
+
return (isDifferent(keys1, keys2) ||
|
|
127
129
|
keys1.some(function (key) {
|
|
128
130
|
return isDifferent(obj1[key], obj2[key]);
|
|
129
131
|
}));
|
|
@@ -282,17 +284,26 @@ function exportPage(inParameters) {
|
|
|
282
284
|
};
|
|
283
285
|
return result;
|
|
284
286
|
});
|
|
287
|
+
const viewResults = (inParameters.views || []).map(function (view) {
|
|
288
|
+
const result = {
|
|
289
|
+
...view,
|
|
290
|
+
changeIndicator: ux_specification_types_1.ChangeIndicator.NoChange
|
|
291
|
+
};
|
|
292
|
+
return result;
|
|
293
|
+
});
|
|
285
294
|
const globalInfoForExport = {
|
|
286
295
|
globalTypeDefinitions,
|
|
287
296
|
conversionExitProvider: inParameters.conversionExitProvider,
|
|
288
|
-
fragments: fragmentResults
|
|
297
|
+
fragments: fragmentResults,
|
|
298
|
+
views: viewResults
|
|
289
299
|
};
|
|
290
300
|
// TODO: Check whether property 'views' needs to be initialized as well
|
|
291
301
|
const returnObject = {
|
|
292
302
|
manifest: structuredClone(inParameters.manifest),
|
|
293
303
|
manifestChangeIndicator: ux_specification_types_1.ChangeIndicator.NoChange,
|
|
294
304
|
flexList: [],
|
|
295
|
-
fragments: fragmentResults
|
|
305
|
+
fragments: fragmentResults,
|
|
306
|
+
views: viewResults
|
|
296
307
|
};
|
|
297
308
|
// Adapt returnObject according to the state of the config. This is driven by the page specific schema.
|
|
298
309
|
transferConfigToExportResults(config, returnObject, inParameters.jsonSchema, globalInfoForExport);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exportPageGeneric.js","sourceRoot":"","sources":["../../../../../../src/sync/v2/export/exportPageGeneric.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"exportPageGeneric.js","sourceRoot":"","sources":["../../../../../../src/sync/v2/export/exportPageGeneric.ts"],"names":[],"mappings":";;AAuZA,gCAqCC;AA1aD,wEAAuF;AAEvF,oCAAwE;AACxE,yCAA2D;AAwE3D;;;;;;;;;;;GAWG;AACH,SAAS,uBAAuB,CAC5B,kBAA8B,EAC9B,KAAuC,EACvC,YAAoB,EACpB,QAAoB;IAEpB,MAAM,QAAQ,GAAG,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,qEAAqE;IAC1H,MAAM,SAAS,GAAG,OAAO,QAAQ,KAAK,QAAQ,IAAI,QAAQ,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;IAC3E,QAAQ,CAAC,IAAI,CAAC;QACV,SAAS,EAAE,kBAAkB,CAAC,kCAAS,CAAC,SAAS,CAAC;QAClD,WAAW,EAAE,kBAAkB,CAAC,kCAAS,CAAC,WAAW,CAAC;QACtD,YAAY;QACZ,QAAQ;QACR,SAAS;KACZ,CAAC,CAAC;AACP,CAAC;AAED;;;;;;;;;;GAUG;AACH,SAAS,mBAAmB,CACxB,KAAc,EACd,QAAiB,EACjB,kBAA8B,EAC9B,mBAAwC;IAExC,IAAI,kBAAkB,CAAC,kCAAS,CAAC,cAAc,CAAC,EAAE,CAAC;QAC/C,8EAA8E;QAC9E,OAAO,IAAA,6BAAqB,EACxB,KAAK,EACL,mBAAmB,CAAC,sBAAsB,EAC1C,kBAAkB,EAClB,KAAK,EACL,mBAAmB,CAAC,SAAS,EAC7B,QAAQ,CACX,CAAC;IACN,C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,MAAM,YAAY,GAAG;QACjB,QAAQ,EAAE,eAAe,CAAC,YAAY,CAAC,QAAQ,CAAC;QAChD,uBAAuB,EAAE,wCAAe,CAAC,QAAQ;QACjD,QAAQ,EAAE,EAAgB;QAC1B,SAAS,EAAE,eAAe;QAC1B,KAAK,EAAE,WAAW;KACrB,CAAC;IACF,uGAAuG;IACvG,6BAA6B,CAAC,MAAM,EAAE,YAAY,EAAE,YAAY,CAAC,UAAU,EAAE,mBAAmB,CAAC,CAAC;IAClG,OAAO,YAAY,CAAC;AACxB,CAAC"}
|
|
@@ -1,19 +1,53 @@
|
|
|
1
1
|
import type { v2, ViewTemplateType } from '@sap/ux-specification-types';
|
|
2
|
+
import { type IdGeneratorFunction } from '@sap-ux/fe-fpm-writer';
|
|
2
3
|
export declare enum ViewTypes {
|
|
3
4
|
XML = "xml",
|
|
4
5
|
HTML = "html",
|
|
5
6
|
JSON = "json"
|
|
6
7
|
}
|
|
8
|
+
export declare const CONFIG: {
|
|
9
|
+
"AnalyticalTableColumnsExtension.xml": {
|
|
10
|
+
getData: (generateId: IdGeneratorFunction) => {
|
|
11
|
+
ids: Record<string, string>;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
"fragment.xml": {
|
|
15
|
+
getData: (generateId: IdGeneratorFunction) => {
|
|
16
|
+
ids: Record<string, string>;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
"GridTableColumnsExtension.xml": {
|
|
20
|
+
getData: (generateId: IdGeneratorFunction) => {
|
|
21
|
+
ids: Record<string, string>;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
"ResponsiveTableColumnsExtension.xml": {
|
|
25
|
+
getData: (generateId: IdGeneratorFunction) => {
|
|
26
|
+
ids: Record<string, string>;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
"TreeTableColumnsExtension.xml": {
|
|
30
|
+
getData: (generateId: IdGeneratorFunction) => {
|
|
31
|
+
ids: Record<string, string>;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
"view.xml": {
|
|
35
|
+
getData: (generateId: IdGeneratorFunction) => {
|
|
36
|
+
ids: Record<string, string>;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
};
|
|
7
40
|
/**
|
|
8
41
|
* Method which reads passed template and renders it using passed template object.
|
|
9
42
|
*
|
|
10
43
|
* @param {string} templatePath - Path to template.
|
|
11
44
|
* @param {{ [key: string]: string }} templateData - Template data object.
|
|
45
|
+
* @param {IdGeneratorFunction} generateId - function to generate ids for new entries in the fragment.
|
|
12
46
|
* @returns {string} the rendered template's string
|
|
13
47
|
*/
|
|
14
48
|
export declare const renderTemplate: (templatePath: string, templateData: {
|
|
15
49
|
[key: string]: string | boolean;
|
|
16
|
-
}) => string;
|
|
50
|
+
}, generateId?: IdGeneratorFunction) => string;
|
|
17
51
|
/**
|
|
18
52
|
* Method which reads passed template and renders it using passed template object.
|
|
19
53
|
*
|
|
@@ -30,21 +64,23 @@ export declare const getControllerContent: (name: string, namespace: string, fcl
|
|
|
30
64
|
* @param {string} name - View's name.
|
|
31
65
|
* @param {string} namespace - Application namespace.
|
|
32
66
|
* @param {ViewTypes} sourceType - View's source type like XML, HTML, JSON or JS.
|
|
67
|
+
* @param {IdGeneratorFunction} generateId - function to generate ids for new entries in the fragment.
|
|
33
68
|
* @param {boolean} [controller] - Generate controller.
|
|
34
69
|
* @param {boolean} [page] - Is view should contains page structure or not - page structure uses 'sap.m.App' in view template.
|
|
35
70
|
* @returns {string} the rendered template's string
|
|
36
71
|
*/
|
|
37
|
-
export declare const getViewContent: (name: string, namespace: string, sourceType: ViewTypes, controller?: boolean, page?: boolean) => string;
|
|
72
|
+
export declare const getViewContent: (name: string, namespace: string, sourceType: ViewTypes, generateId: IdGeneratorFunction, controller?: boolean, page?: boolean) => string;
|
|
38
73
|
/**
|
|
39
74
|
* Method which reads template for fragment and returns rendered result of fragment.
|
|
40
75
|
*
|
|
41
76
|
* @param {string} name - View's name.
|
|
42
77
|
* @param {string} namespace - Application namespace.
|
|
43
78
|
* @param {ViewTypes} sourceType - View's source type like XML, HTML, JSON or JS.
|
|
79
|
+
* @param {IdGeneratorFunction} generateId - function to generate ids for new entries in the fragment.
|
|
44
80
|
* @param {boolean} handler - JS handler.
|
|
45
81
|
* @returns {string} the rendered template's string
|
|
46
82
|
*/
|
|
47
|
-
export declare const getFragmentContent: (name: string, namespace: string, sourceType: ViewTypes, handler?: boolean) => string;
|
|
83
|
+
export declare const getFragmentContent: (name: string, namespace: string, sourceType: ViewTypes, generateId: IdGeneratorFunction, handler?: boolean) => string;
|
|
48
84
|
/**
|
|
49
85
|
* Method which reads passed template and renders it using passed template object.
|
|
50
86
|
*
|
|
@@ -56,22 +92,34 @@ export declare const getFragmentJsContent: () => string;
|
|
|
56
92
|
*
|
|
57
93
|
* @param column - data (from config) to be inserted in the template
|
|
58
94
|
* @param template - The type of view template (e.g., XML, HTML, JSON).
|
|
95
|
+
* @param {IdGeneratorFunction} generateId - function to generate ids for new entries in the fragment.
|
|
59
96
|
* @returns {string} the rendered template's string
|
|
60
97
|
*/
|
|
61
|
-
export declare const getSingleColumnContent: (column: v2.TableCustomColumn, template: ViewTemplateType) => string;
|
|
98
|
+
export declare const getSingleColumnContent: (column: v2.TableCustomColumn, template: ViewTemplateType, generateId: IdGeneratorFunction) => string;
|
|
62
99
|
/**
|
|
63
100
|
* Method which reads the template for a column extension fragment and returns rendered result of fragment.
|
|
64
101
|
*
|
|
65
102
|
* @param customColumns - array of all column extensions' data
|
|
66
103
|
* @param templateType - The type of view template (e.g., XML, HTML, JSON).
|
|
104
|
+
* @param {IdGeneratorFunction} generateId - function to generate ids for new entries in the fragment.
|
|
67
105
|
* @returns {string} the rendered template's string
|
|
68
106
|
*/
|
|
69
|
-
export declare const getColumnFragmentContent: (customColumns: v2.TableCustomColumns, templateType: ViewTemplateType) => string;
|
|
107
|
+
export declare const getColumnFragmentContent: (customColumns: v2.TableCustomColumns, templateType: ViewTemplateType, generateId: IdGeneratorFunction) => string;
|
|
70
108
|
/**
|
|
71
109
|
* Creates the content for a ResponsiveTableCellsExtension fragment.
|
|
72
110
|
*
|
|
73
111
|
* @param customColumns - list of custom columns; for each of them a dummy entry gets created in the view content.
|
|
112
|
+
* @param generateId - function to generate ids for new entries in the fragment.
|
|
74
113
|
* @returns {string} the rendered template's string
|
|
75
114
|
*/
|
|
76
|
-
export declare const getResponsiveTableCellsFragment: (customColumns: v2.TableCustomColumns) => string;
|
|
115
|
+
export declare const getResponsiveTableCellsFragment: (customColumns: v2.TableCustomColumns, generateId: IdGeneratorFunction) => string;
|
|
116
|
+
/**
|
|
117
|
+
* Method to construct full name of view or fragment.
|
|
118
|
+
*
|
|
119
|
+
* @param {string} name Shorten name of view or fragment.
|
|
120
|
+
* @param {boolean} isFragment Is fragment or view.
|
|
121
|
+
* @param {ViewTypes} viewType type of view or fragment.
|
|
122
|
+
* @returns {string} Full path of view or fragment name.
|
|
123
|
+
*/
|
|
124
|
+
export declare function getViewFileName(name: string, isFragment: boolean, viewType?: ViewTypes): string;
|
|
77
125
|
//# sourceMappingURL=view-controller-generator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view-controller-generator.d.ts","sourceRoot":"","sources":["../../../../../../src/sync/v2/export/view-controller-generator.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"view-controller-generator.d.ts","sourceRoot":"","sources":["../../../../../../src/sync/v2/export/view-controller-generator.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAKxE,OAAO,EAAE,KAAK,mBAAmB,EAAoC,MAAM,uBAAuB,CAAC;AAInG,oBAAY,SAAS;IACjB,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,IAAI,SAAS;CAChB;AAED,eAAO,MAAM,MAAM;;8BAEW,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AAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,GAC/B,QAAQ,EAAE,CAAC,iBAAiB,EAC5B,UAAU,gBAAgB,EAC1B,YAAY,mBAAmB,KAChC,MASF,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,wBAAwB,GACjC,eAAe,EAAE,CAAC,kBAAkB,EACpC,cAAc,gBAAgB,EAC9B,YAAY,mBAAmB,KAChC,MAUF,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,+BAA+B,GACxC,eAAe,EAAE,CAAC,kBAAkB,EACpC,YAAY,mBAAmB,KAChC,MAYF,CAAC;AAEF;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,QAAQ,YAAgB,GAAG,MAAM,CAEnG"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getResponsiveTableCellsFragment = exports.getColumnFragmentContent = exports.getSingleColumnContent = exports.getFragmentJsContent = exports.getFragmentContent = exports.getViewContent = exports.getControllerContent = exports.renderTemplate = exports.ViewTypes = void 0;
|
|
3
|
+
exports.getResponsiveTableCellsFragment = exports.getColumnFragmentContent = exports.getSingleColumnContent = exports.getFragmentJsContent = exports.getFragmentContent = exports.getViewContent = exports.getControllerContent = exports.renderTemplate = exports.CONFIG = exports.ViewTypes = void 0;
|
|
4
|
+
exports.getViewFileName = getViewFileName;
|
|
4
5
|
const path_1 = require("path");
|
|
5
6
|
const ux_specification_types_1 = require("@sap/ux-specification-types");
|
|
6
7
|
const ejs_1 = require("ejs");
|
|
7
8
|
const fs_1 = require("fs");
|
|
9
|
+
const fe_fpm_writer_1 = require("@sap-ux/fe-fpm-writer");
|
|
8
10
|
const templatesPath = (0, path_1.join)(__dirname, 'templates');
|
|
9
11
|
var ViewTypes;
|
|
10
12
|
(function (ViewTypes) {
|
|
@@ -12,15 +14,88 @@ var ViewTypes;
|
|
|
12
14
|
ViewTypes["HTML"] = "html";
|
|
13
15
|
ViewTypes["JSON"] = "json";
|
|
14
16
|
})(ViewTypes || (exports.ViewTypes = ViewTypes = {}));
|
|
17
|
+
exports.CONFIG = {
|
|
18
|
+
['AnalyticalTableColumnsExtension.xml']: {
|
|
19
|
+
getData: (generateId) => {
|
|
20
|
+
return {
|
|
21
|
+
ids: {
|
|
22
|
+
label: generateId('Label'),
|
|
23
|
+
text: generateId('Text'),
|
|
24
|
+
customData: generateId('CustomData')
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
['fragment.xml']: {
|
|
30
|
+
getData: (generateId) => {
|
|
31
|
+
return {
|
|
32
|
+
ids: {
|
|
33
|
+
verticalLayout: generateId('VerticalLayout'),
|
|
34
|
+
text: generateId('Text'),
|
|
35
|
+
button: generateId('Button')
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
['GridTableColumnsExtension.xml']: {
|
|
41
|
+
getData: (generateId) => {
|
|
42
|
+
return {
|
|
43
|
+
ids: {
|
|
44
|
+
label: generateId('Label'),
|
|
45
|
+
text: generateId('Text'),
|
|
46
|
+
customData: generateId('CustomData')
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
['ResponsiveTableColumnsExtension.xml']: {
|
|
52
|
+
getData: (generateId) => {
|
|
53
|
+
return {
|
|
54
|
+
ids: {
|
|
55
|
+
text: generateId('Text'),
|
|
56
|
+
customData: generateId('CustomData')
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
['TreeTableColumnsExtension.xml']: {
|
|
62
|
+
getData: (generateId) => {
|
|
63
|
+
return {
|
|
64
|
+
ids: {
|
|
65
|
+
label: generateId('Label'),
|
|
66
|
+
text: generateId('Text'),
|
|
67
|
+
customData: generateId('CustomData')
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
['view.xml']: {
|
|
73
|
+
getData: (generateId) => {
|
|
74
|
+
return {
|
|
75
|
+
ids: {
|
|
76
|
+
app: generateId('App'),
|
|
77
|
+
page: generateId('Page'),
|
|
78
|
+
label: generateId('Label')
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
};
|
|
15
84
|
/**
|
|
16
85
|
* Method which reads passed template and renders it using passed template object.
|
|
17
86
|
*
|
|
18
87
|
* @param {string} templatePath - Path to template.
|
|
19
88
|
* @param {{ [key: string]: string }} templateData - Template data object.
|
|
89
|
+
* @param {IdGeneratorFunction} generateId - function to generate ids for new entries in the fragment.
|
|
20
90
|
* @returns {string} the rendered template's string
|
|
21
91
|
*/
|
|
22
|
-
const renderTemplate = (templatePath, templateData) => {
|
|
92
|
+
const renderTemplate = (templatePath, templateData, generateId) => {
|
|
23
93
|
const template = (0, fs_1.readFileSync)(templatePath, 'utf8');
|
|
94
|
+
const templateKey = (0, fe_fpm_writer_1.getRelativeTemplateComponentPath)(templatePath);
|
|
95
|
+
if (generateId && exports.CONFIG[templateKey] && typeof exports.CONFIG[templateKey].getData === 'function') {
|
|
96
|
+
const additionalData = exports.CONFIG[templateKey].getData(generateId);
|
|
97
|
+
templateData = { ...templateData, ...additionalData };
|
|
98
|
+
}
|
|
24
99
|
return (0, ejs_1.render)(template, templateData);
|
|
25
100
|
};
|
|
26
101
|
exports.renderTemplate = renderTemplate;
|
|
@@ -57,11 +132,12 @@ exports.getControllerContent = getControllerContent;
|
|
|
57
132
|
* @param {string} name - View's name.
|
|
58
133
|
* @param {string} namespace - Application namespace.
|
|
59
134
|
* @param {ViewTypes} sourceType - View's source type like XML, HTML, JSON or JS.
|
|
135
|
+
* @param {IdGeneratorFunction} generateId - function to generate ids for new entries in the fragment.
|
|
60
136
|
* @param {boolean} [controller] - Generate controller.
|
|
61
137
|
* @param {boolean} [page] - Is view should contains page structure or not - page structure uses 'sap.m.App' in view template.
|
|
62
138
|
* @returns {string} the rendered template's string
|
|
63
139
|
*/
|
|
64
|
-
const getViewContent = (name, namespace, sourceType, controller = false, page = true) => {
|
|
140
|
+
const getViewContent = (name, namespace, sourceType, generateId, controller = false, page = true) => {
|
|
65
141
|
const escapedName = escapeViewName(name);
|
|
66
142
|
const templateData = {
|
|
67
143
|
name: escapedName,
|
|
@@ -71,7 +147,7 @@ const getViewContent = (name, namespace, sourceType, controller = false, page =
|
|
|
71
147
|
if (controller) {
|
|
72
148
|
templateData.controllerName = namespace + '.controller.' + escapedName;
|
|
73
149
|
}
|
|
74
|
-
return (0, exports.renderTemplate)((0, path_1.join)(templatesPath, 'view.' + sourceType), templateData);
|
|
150
|
+
return (0, exports.renderTemplate)((0, path_1.join)(templatesPath, 'view.' + sourceType), templateData, generateId);
|
|
75
151
|
};
|
|
76
152
|
exports.getViewContent = getViewContent;
|
|
77
153
|
/**
|
|
@@ -80,10 +156,11 @@ exports.getViewContent = getViewContent;
|
|
|
80
156
|
* @param {string} name - View's name.
|
|
81
157
|
* @param {string} namespace - Application namespace.
|
|
82
158
|
* @param {ViewTypes} sourceType - View's source type like XML, HTML, JSON or JS.
|
|
159
|
+
* @param {IdGeneratorFunction} generateId - function to generate ids for new entries in the fragment.
|
|
83
160
|
* @param {boolean} handler - JS handler.
|
|
84
161
|
* @returns {string} the rendered template's string
|
|
85
162
|
*/
|
|
86
|
-
const getFragmentContent = (name, namespace, sourceType, handler = false) => {
|
|
163
|
+
const getFragmentContent = (name, namespace, sourceType, generateId, handler = false) => {
|
|
87
164
|
const escapedName = escapeViewName(name);
|
|
88
165
|
const templateData = {
|
|
89
166
|
name: escapedName,
|
|
@@ -92,7 +169,7 @@ const getFragmentContent = (name, namespace, sourceType, handler = false) => {
|
|
|
92
169
|
if (handler) {
|
|
93
170
|
templateData.handler = `${namespace.replace(/\./g, '/')}/${ux_specification_types_1.DirName.Fragment}/${escapedName}`;
|
|
94
171
|
}
|
|
95
|
-
return (0, exports.renderTemplate)((0, path_1.join)(templatesPath, 'fragment.' + sourceType), templateData);
|
|
172
|
+
return (0, exports.renderTemplate)((0, path_1.join)(templatesPath, 'fragment.' + sourceType), templateData, generateId);
|
|
96
173
|
};
|
|
97
174
|
exports.getFragmentContent = getFragmentContent;
|
|
98
175
|
/**
|
|
@@ -109,9 +186,10 @@ exports.getFragmentJsContent = getFragmentJsContent;
|
|
|
109
186
|
*
|
|
110
187
|
* @param column - data (from config) to be inserted in the template
|
|
111
188
|
* @param template - The type of view template (e.g., XML, HTML, JSON).
|
|
189
|
+
* @param {IdGeneratorFunction} generateId - function to generate ids for new entries in the fragment.
|
|
112
190
|
* @returns {string} the rendered template's string
|
|
113
191
|
*/
|
|
114
|
-
const getSingleColumnContent = (column, template) => {
|
|
192
|
+
const getSingleColumnContent = (column, template, generateId) => {
|
|
115
193
|
const templateData = {
|
|
116
194
|
id: column.id,
|
|
117
195
|
text: column.text,
|
|
@@ -119,7 +197,7 @@ const getSingleColumnContent = (column, template) => {
|
|
|
119
197
|
columnIndex: column.columnIndex !== undefined ? column.columnIndex.toString() : undefined,
|
|
120
198
|
leadingProperty: column.leadingProperty
|
|
121
199
|
};
|
|
122
|
-
return (0, exports.renderTemplate)((0, path_1.join)(templatesPath, template + '.xml'), templateData);
|
|
200
|
+
return (0, exports.renderTemplate)((0, path_1.join)(templatesPath, template + '.xml'), templateData, generateId);
|
|
123
201
|
};
|
|
124
202
|
exports.getSingleColumnContent = getSingleColumnContent;
|
|
125
203
|
/**
|
|
@@ -127,14 +205,15 @@ exports.getSingleColumnContent = getSingleColumnContent;
|
|
|
127
205
|
*
|
|
128
206
|
* @param customColumns - array of all column extensions' data
|
|
129
207
|
* @param templateType - The type of view template (e.g., XML, HTML, JSON).
|
|
208
|
+
* @param {IdGeneratorFunction} generateId - function to generate ids for new entries in the fragment.
|
|
130
209
|
* @returns {string} the rendered template's string
|
|
131
210
|
*/
|
|
132
|
-
const getColumnFragmentContent = (customColumns, templateType) => {
|
|
211
|
+
const getColumnFragmentContent = (customColumns, templateType, generateId) => {
|
|
133
212
|
let fragment = '';
|
|
134
213
|
fragment = '<core:FragmentDefinition xmlns:core="sap.ui.core" xmlns:table="sap.ui.table" xmlns="sap.m">';
|
|
135
214
|
if (customColumns) {
|
|
136
215
|
for (const column of customColumns) {
|
|
137
|
-
const newContent = (0, exports.getSingleColumnContent)(column, templateType);
|
|
216
|
+
const newContent = (0, exports.getSingleColumnContent)(column, templateType, generateId);
|
|
138
217
|
fragment = fragment + '\n' + newContent;
|
|
139
218
|
}
|
|
140
219
|
}
|
|
@@ -145,17 +224,32 @@ exports.getColumnFragmentContent = getColumnFragmentContent;
|
|
|
145
224
|
* Creates the content for a ResponsiveTableCellsExtension fragment.
|
|
146
225
|
*
|
|
147
226
|
* @param customColumns - list of custom columns; for each of them a dummy entry gets created in the view content.
|
|
227
|
+
* @param generateId - function to generate ids for new entries in the fragment.
|
|
148
228
|
* @returns {string} the rendered template's string
|
|
149
229
|
*/
|
|
150
|
-
const getResponsiveTableCellsFragment = (customColumns) => {
|
|
230
|
+
const getResponsiveTableCellsFragment = (customColumns, generateId) => {
|
|
151
231
|
let fragment = '<core:FragmentDefinition xmlns:core="sap.ui.core" xmlns="sap.m">';
|
|
232
|
+
let validatedIds = [];
|
|
152
233
|
if (customColumns) {
|
|
153
234
|
customColumns.forEach(() => {
|
|
235
|
+
const newId = generateId('Text', validatedIds);
|
|
236
|
+
validatedIds.push(newId);
|
|
154
237
|
// use same approach as json2xml - use 4 spaces for fragment children elements
|
|
155
|
-
fragment = fragment +
|
|
238
|
+
fragment = fragment + `\n <Text id="${newId}" text="Placeholder"/>`;
|
|
156
239
|
});
|
|
157
240
|
}
|
|
158
241
|
return fragment + '\n' + '</core:FragmentDefinition>';
|
|
159
242
|
};
|
|
160
243
|
exports.getResponsiveTableCellsFragment = getResponsiveTableCellsFragment;
|
|
244
|
+
/**
|
|
245
|
+
* Method to construct full name of view or fragment.
|
|
246
|
+
*
|
|
247
|
+
* @param {string} name Shorten name of view or fragment.
|
|
248
|
+
* @param {boolean} isFragment Is fragment or view.
|
|
249
|
+
* @param {ViewTypes} viewType type of view or fragment.
|
|
250
|
+
* @returns {string} Full path of view or fragment name.
|
|
251
|
+
*/
|
|
252
|
+
function getViewFileName(name, isFragment, viewType = ViewTypes.XML) {
|
|
253
|
+
return isFragment ? `${name}.fragment.${viewType}` : `${name}.view.${viewType}`;
|
|
254
|
+
}
|
|
161
255
|
//# sourceMappingURL=view-controller-generator.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view-controller-generator.js","sourceRoot":"","sources":["../../../../../../src/sync/v2/export/view-controller-generator.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"view-controller-generator.js","sourceRoot":"","sources":["../../../../../../src/sync/v2/export/view-controller-generator.ts"],"names":[],"mappings":";;;AA8RA,0CAEC;AAhSD,+BAA4B;AAE5B,wEAAsD;AAEtD,6BAA6B;AAC7B,2BAAkC;AAClC,yDAAmG;AAEnG,MAAM,aAAa,GAAG,IAAA,WAAI,EAAC,SAAS,EAAE,WAAW,CAAC,CAAC;AAEnD,IAAY,SAIX;AAJD,WAAY,SAAS;IACjB,wBAAW,CAAA;IACX,0BAAa,CAAA;IACb,0BAAa,CAAA;AACjB,CAAC,EAJW,SAAS,yBAAT,SAAS,QAIpB;AAEY,QAAA,MAAM,GAAG;IAClB,CAAC,qCAAqC,CAAC,EAAE;QACrC,OAAO,EAAE,CAAC,UAA+B,EAAmC,EAAE;YAC1E,OAAO;gBACH,GAAG,EAAE;oBACD,KAAK,EAAE,UAAU,CAAC,OAAO,CAAC;oBAC1B,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC;oBACxB,UAAU,EAAE,UAAU,CAAC,YAAY,CAAC;iBACvC;aACJ,CAAC;QACN,CAAC;KACJ;IACD,CAAC,cAAc,CAAC,EAAE;QACd,OA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,QAAQ,GAAG,IAAI,GAAG,4BAA4B,CAAC;AAC1D,CAAC,CAAC;AAdW,QAAA,wBAAwB,4BAcnC;AAEF;;;;;;GAMG;AACI,MAAM,+BAA+B,GAAG,CAC3C,aAAoC,EACpC,UAA+B,EACzB,EAAE;IACR,IAAI,QAAQ,GAAG,kEAAkE,CAAC;IAClF,IAAI,YAAY,GAAa,EAAE,CAAC;IAChC,IAAI,aAAa,EAAE,CAAC;QAChB,aAAa,CAAC,OAAO,CAAC,GAAG,EAAE;YACvB,MAAM,KAAK,GAAG,UAAU,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;YAC/C,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACzB,8EAA8E;YAC9E,QAAQ,GAAG,QAAQ,GAAG,mBAAmB,KAAK,wBAAwB,CAAC;QAC3E,CAAC,CAAC,CAAC;IACP,CAAC;IACD,OAAO,QAAQ,GAAG,IAAI,GAAG,4BAA4B,CAAC;AAC1D,CAAC,CAAC;AAfW,QAAA,+BAA+B,mCAe1C;AAEF;;;;;;;GAOG;AACH,SAAgB,eAAe,CAAC,IAAY,EAAE,UAAmB,EAAE,QAAQ,GAAG,SAAS,CAAC,GAAG;IACvF,OAAO,UAAU,CAAC,CAAC,CAAC,GAAG,IAAI,aAAa,QAAQ,EAAE,CAAC,CAAC,CAAC,GAAG,IAAI,SAAS,QAAQ,EAAE,CAAC;AACpF,CAAC"}
|
|
@@ -153,9 +153,9 @@ function applyAdaptationInfoToElement(adaptationInfo, element, generateParameter
|
|
|
153
153
|
*/
|
|
154
154
|
function getJSONPathForProperty(path, property) {
|
|
155
155
|
const pathIsArray = Array.isArray(path);
|
|
156
|
-
|
|
156
|
+
let pathAsArray = pathIsArray ? path : path.path;
|
|
157
157
|
if (pathIsArray || path.addTargetPropertyToPath) {
|
|
158
|
-
pathAsArray.
|
|
158
|
+
pathAsArray = pathAsArray.concat([property]);
|
|
159
159
|
}
|
|
160
160
|
let jsonPath = '$';
|
|
161
161
|
pathAsArray.forEach((segment) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemaAdaptation.js","sourceRoot":"","sources":["../../../../../../src/sync/v2/generate/schemaAdaptation.ts"],"names":[],"mappings":";;AAuaA,4CA4EC;AA5eD,yCAMsB;AACtB,wEAA4F;AAe5F,mEAAgG;AAChG,mEAA+D;AAC/D,mDAA4C;AAC5C,oCAAqD;AACrD,6CAA8C;AAmB9C;;;;;;GAMG;AACH,SAAS,uBAAuB,CAAC,OAAmB,EAAE,WAAwB;IAC1E,IAAI,OAAO,CAAC,KAAK,EAAE,CAAC;QAChB,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,YAAY;YACxC,2BAA2B,CAAC,YAAY,EAAE,WAAW,CAAC,CAAC;QAC3D,CAAC,CAAC,CAAC;IACP,CAAC;AACL,CAAC;AAED;;;;;;;GAOG;AACH,SAAS,aAAa,CAAC,OAAmB;IACtC,OAAO,OAAO,OAAO,CAAC,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC;AACzG,CAAC;AAED;;;;;;GAMG;AACH,SAAS,2BAA2B,CAAC,OAAwC,EAAE,WAAwB;IACnG,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE,CAAC;QAC9B,iDAAiD;QACjD,OAAO;IACX,CAAC;IACD,uDAAuD;IACvD,MAAM,OAAO,GAAG,IAAA,mBAAU,EAAC,OAAO,CAAC,CAAC;IACpC,IAAI,OAAO,EAAE,CAAC;QACV,wBAAwB,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;IACnD,CAAC;IACD,uBAAuB,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;IAC9C,2BAA2B,CAAC,OAAO,CAAC,oBAAoB,EAAE,WAAW,CAAC,CAAC;IACvE,uEAAuE;IACvE,2BAA2B,CAAC,aAAa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SAAM,CAAC;QACJ,yDAAyD;QACzD,aAAa,CAAC,kBAAkB,EAAE,MAAM,EAAE,cAAc,EAAE,gBAAgB,EAAE,OAAO,EAAE,WAAW,CAAC,CAAC;IACtG,CAAC;AACL,CAAC;AAED;;;;;;GAMG;AACH,SAAS,sBAAsB,CAAC,IAAkB,EAAE,QAAgB;IAChE,MAAM,WAAW,GAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IACxC,
|
|
1
|
+
{"version":3,"file":"schemaAdaptation.js","sourceRoot":"","sources":["../../../../../../src/sync/v2/generate/schemaAdaptation.ts"],"names":[],"mappings":";;AAuaA,4CA4EC;AA5eD,yCAMsB;AACtB,wEAA4F;AAe5F,mEAAgG;AAChG,mEAA+D;AAC/D,mDAA4C;AAC5C,oCAAqD;AACrD,6CAA8C;AAmB9C;;;;;;GAMG;AACH,SAAS,uBAAuB,CAAC,OAAmB,EAAE,WAAwB;IAC1E,IAAI,OAAO,CAAC,KAAK,EAAE,CAAC;QAChB,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,YAAY;YACxC,2BAA2B,CAAC,YAAY,EAAE,WAAW,CAAC,CAAC;QAC3D,CAAC,CAAC,CAAC;IACP,CAAC;AACL,CAAC;AAED;;;;;;;GAOG;AACH,SAAS,aAAa,CAAC,OAAmB;IACtC,OAAO,OAAO,OAAO,CAAC,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC;AACzG,CAAC;AAED;;;;;;GAMG;AACH,SAAS,2BAA2B,CAAC,OAAwC,EAAE,WAAwB;IACnG,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE,CAAC;QAC9B,iDAAiD;QACjD,OAAO;IACX,CAAC;IACD,uDAAuD;IACvD,MAAM,OAAO,GAAG,IAAA,mBAAU,EAAC,OAAO,CAAC,CAAC;IACpC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CAAC;IACL,CAAC;IACD,OAAO,QAAQ,CAAC;AACpB,CAAC"}
|
|
@@ -191,15 +191,15 @@ __decorate([
|
|
|
191
191
|
], CommonFilterBar.prototype, "liveMode", void 0);
|
|
192
192
|
__decorate([
|
|
193
193
|
(0, decoration_1.syncRule)(manifestPropertyUtils_1.standardSyncRuleForManifestSettingsProperty),
|
|
194
|
-
(0, decoration_1.descriptionSrcURL)('https://ui5.sap.com/sdk/#/topic/
|
|
194
|
+
(0, decoration_1.descriptionSrcURL)('https://ui5.sap.com/sdk/#/topic/e3b12f41d70c442f9d4cc2e7722bbb17')
|
|
195
195
|
], CommonFilterBar.prototype, "smartVariantManagement", void 0);
|
|
196
196
|
__decorate([
|
|
197
197
|
(0, decoration_1.syncRule)(manifestPropertyUtils_1.standardSyncRuleForManifestSettingsProperty),
|
|
198
|
-
(0, decoration_1.descriptionSrcURL)('https://ui5.sap.com/sdk/#/topic/
|
|
198
|
+
(0, decoration_1.descriptionSrcURL)('https://ui5.sap.com/sdk/#/topic/e3b12f41d70c442f9d4cc2e7722bbb17')
|
|
199
199
|
], CommonFilterBar.prototype, "variantManagementHidden", void 0);
|
|
200
200
|
__decorate([
|
|
201
201
|
(0, decoration_1.syncRule)(manifestPropertyUtils_1.standardSyncRuleForManifestSettingsProperty),
|
|
202
|
-
(0, decoration_1.descriptionSrcURL)('https://ui5.sap.com/sdk/#/topic/
|
|
202
|
+
(0, decoration_1.descriptionSrcURL)('https://ui5.sap.com/sdk/#/topic/e3b12f41d70c442f9d4cc2e7722bbb17')
|
|
203
203
|
], CommonFilterBar.prototype, "subTitleIfVariantMgmtHidden", void 0);
|
|
204
204
|
__decorate([
|
|
205
205
|
(0, decoration_1.syncRule)(syncRuleForFlexSmartFilterBar)
|
|
@@ -271,7 +271,7 @@ __decorate([
|
|
|
271
271
|
processingRule.manifestPath = manifestPath;
|
|
272
272
|
}
|
|
273
273
|
}),
|
|
274
|
-
(0, decoration_1.descriptionSrcURL)('https://ui5.sap.com/sdk/#/topic/
|
|
274
|
+
(0, decoration_1.descriptionSrcURL)('https://ui5.sap.com/sdk/#/topic/22e32b7241e843c1a84fee142e9d8ef0'),
|
|
275
275
|
(0, decoration_1.validity)({
|
|
276
276
|
since: '1.86.0'
|
|
277
277
|
})
|
|
@@ -77,7 +77,7 @@ exports.MultiViewsVariants = MultiViewsVariants = __decorate([
|
|
|
77
77
|
};
|
|
78
78
|
propertyDefinition[ux_specification_types_1.SchemaTag.propertyIndex] = i;
|
|
79
79
|
propertyDefinition[ux_specification_types_1.SchemaTag.descriptionSrcURL] =
|
|
80
|
-
'https://ui5.sap.com/sdk/#/topic/
|
|
80
|
+
'https://ui5.sap.com/sdk/#/topic/97dfeea4a8c346368cea6bf7a3e85478';
|
|
81
81
|
propertyDefinition[ux_specification_types_1.SchemaTag.icon] = variantInfo.isChart ? 'Chart' : 'Table';
|
|
82
82
|
propertyDefinition[ux_specification_types_1.SchemaTag.deletable] = true;
|
|
83
83
|
propertyDefinition.description = variantInfo.description;
|
|
@@ -132,7 +132,7 @@ function getEntityDefinition(variantDefinition, entityType, generateParameters)
|
|
|
132
132
|
const entitySetName = variantDefinition['entitySet']; // if undefined the main entity set of the LR is used
|
|
133
133
|
const entitySetDefinition = entitySetName
|
|
134
134
|
? generateParameters.serviceAVT.entitySets.find((entitySetDefinition) => entitySetDefinition.name === entitySetName)
|
|
135
|
-
:
|
|
135
|
+
: generateParameters.entitySet;
|
|
136
136
|
if (entitySetName && !entitySetDefinition) {
|
|
137
137
|
// illegal entity set specified in the manifest
|
|
138
138
|
(0, extensionLogger_1.log)(generateParameters.logger, {
|
|
@@ -213,7 +213,7 @@ function getVariantInfo(variantSelector, variantDefinition, usedTableTypes, gene
|
|
|
213
213
|
const smartControlId = `${tableParams.tableId}-${variantDefinition['key']}`;
|
|
214
214
|
const metaInfo = getEntityDefinition(variantDefinition, tableParams.entityType, generateParameters);
|
|
215
215
|
const entityTypeDefinition = metaInfo?.entityTypeDefinition;
|
|
216
|
-
if (!entityTypeDefinition
|
|
216
|
+
if (!entityTypeDefinition?.annotations?.UI) {
|
|
217
217
|
return {
|
|
218
218
|
accessor: variantSelector,
|
|
219
219
|
iconTabFilterKey: (0, stableIdUtils_1.replaceSpecialCharsInId)(variantDefinition['key'], generateParameters),
|