@sapui5/sap.fe.core 1.117.2 → 1.117.3

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.
@@ -2,5 +2,5 @@
2
2
  * SAP UI development toolkit for HTML5 (SAPUI5)
3
3
  * (c) Copyright 2009-2023 SAP SE. All rights reserved
4
4
  */
5
- sap.ui.define(["sap/fe/core/converters/common/AnnotationConverter","sap/fe/core/helpers/TypeGuards","../helpers/StableIdHelper"],function(e,t,n){"use strict";var i={};var o=n.prepareId;var a=t.isSingleton;var r=t.isServiceObject;var l=t.isNavigationProperty;var s=t.isEntityType;var p=t.isEntitySet;var y=t.isEntityContainer;const f={Chart:true,MicroChart:true,UShell:true,IntentBasedNavigation:true,AppState:true,InsightsSupported:false};i.DefaultEnvironmentCapabilities=f;function c(e,t,n,i,o){let a;const r=typeof e;if(e===null){a={type:"Null",Null:null}}else if(r==="string"){a={type:"String",String:e}}else if(r==="boolean"){a={type:"Bool",Bool:e}}else if(r==="number"){a={type:"Int",Int:e}}else if(Array.isArray(e)){a={type:"Collection",Collection:e.map((e,a)=>u(e,`${n}/${t}/${a}`,i,o))};if(e.length>0){if(e[0].hasOwnProperty("$PropertyPath")){a.Collection.type="PropertyPath"}else if(e[0].hasOwnProperty("$Path")){a.Collection.type="Path"}else if(e[0].hasOwnProperty("$NavigationPropertyPath")){a.Collection.type="NavigationPropertyPath"}else if(e[0].hasOwnProperty("$AnnotationPath")){a.Collection.type="AnnotationPath"}else if(e[0].hasOwnProperty("$Type")){a.Collection.type="Record"}else if(e[0].hasOwnProperty("$If")){a.Collection.type="If"}else if(e[0].hasOwnProperty("$Or")){a.Collection.type="Or"}else if(e[0].hasOwnProperty("$And")){a.Collection.type="And"}else if(e[0].hasOwnProperty("$Eq")){a.Collection.type="Eq"}else if(e[0].hasOwnProperty("$Ne")){a.Collection.type="Ne"}else if(e[0].hasOwnProperty("$Not")){a.Collection.type="Not"}else if(e[0].hasOwnProperty("$Gt")){a.Collection.type="Gt"}else if(e[0].hasOwnProperty("$Ge")){a.Collection.type="Ge"}else if(e[0].hasOwnProperty("$Lt")){a.Collection.type="Lt"}else if(e[0].hasOwnProperty("$Le")){a.Collection.type="Le"}else if(e[0].hasOwnProperty("$Apply")){a.Collection.type="Apply"}else if(typeof e[0]==="object"){a.Collection.type="Record"}else{a.Collection.type="String"}}}else if(e.$Path!==undefined){a={type:"Path",Path:e.$Path}}else if(e.$Decimal!==undefined){a={type:"Decimal",Decimal:parseFloat(e.$Decimal)}}else if(e.$PropertyPath!==undefined){a={type:"PropertyPath",PropertyPath:e.$PropertyPath}}else if(e.$NavigationPropertyPath!==undefined){a={type:"NavigationPropertyPath",NavigationPropertyPath:e.$NavigationPropertyPath}}else if(e.$If!==undefined){a={type:"If",If:e.$If}}else if(e.$And!==undefined){a={type:"And",And:e.$And}}else if(e.$Or!==undefined){a={type:"Or",Or:e.$Or}}else if(e.$Not!==undefined){a={type:"Not",Not:e.$Not}}else if(e.$Eq!==undefined){a={type:"Eq",Eq:e.$Eq}}else if(e.$Ne!==undefined){a={type:"Ne",Ne:e.$Ne}}else if(e.$Gt!==undefined){a={type:"Gt",Gt:e.$Gt}}else if(e.$Ge!==undefined){a={type:"Ge",Ge:e.$Ge}}else if(e.$Lt!==undefined){a={type:"Lt",Lt:e.$Lt}}else if(e.$Le!==undefined){a={type:"Le",Le:e.$Le}}else if(e.$Apply!==undefined){a={type:"Apply",Apply:e.$Apply,Function:e.$Function}}else if(e.$AnnotationPath!==undefined){a={type:"AnnotationPath",AnnotationPath:e.$AnnotationPath}}else if(e.$EnumMember!==undefined){a={type:"EnumMember",EnumMember:e.$EnumMember}}else{a={type:"Record",Record:u(e,n,i,o)}}return{name:t,value:a}}function u(e,t,n,i){let o={};const a=typeof e;if(e===null){o={type:"Null",Null:null}}else if(a==="string"){o={type:"String",String:e}}else if(a==="boolean"){o={type:"Bool",Bool:e}}else if(a==="number"){o={type:"Int",Int:e}}else if(e.$AnnotationPath!==undefined){o={type:"AnnotationPath",AnnotationPath:e.$AnnotationPath}}else if(e.$Path!==undefined){o={type:"Path",Path:e.$Path}}else if(e.$Decimal!==undefined){o={type:"Decimal",Decimal:parseFloat(e.$Decimal)}}else if(e.$PropertyPath!==undefined){o={type:"PropertyPath",PropertyPath:e.$PropertyPath}}else if(e.$If!==undefined){o={type:"If",If:e.$If}}else if(e.$And!==undefined){o={type:"And",And:e.$And}}else if(e.$Or!==undefined){o={type:"Or",Or:e.$Or}}else if(e.$Not!==undefined){o={type:"Not",Not:e.$Not}}else if(e.$Eq!==undefined){o={type:"Eq",Eq:e.$Eq}}else if(e.$Ne!==undefined){o={type:"Ne",Ne:e.$Ne}}else if(e.$Gt!==undefined){o={type:"Gt",Gt:e.$Gt}}else if(e.$Ge!==undefined){o={type:"Ge",Ge:e.$Ge}}else if(e.$Lt!==undefined){o={type:"Lt",Lt:e.$Lt}}else if(e.$Le!==undefined){o={type:"Le",Le:e.$Le}}else if(e.$Apply!==undefined){o={type:"Apply",Apply:e.$Apply,Function:e.$Function}}else if(e.$NavigationPropertyPath!==undefined){o={type:"NavigationPropertyPath",NavigationPropertyPath:e.$NavigationPropertyPath}}else if(e.$EnumMember!==undefined){o={type:"EnumMember",EnumMember:e.$EnumMember}}else if(Array.isArray(e)){const a=o;a.collection=e.map((e,o)=>u(e,`${t}/${o}`,n,i));if(e.length>0){if(e[0].hasOwnProperty("$PropertyPath")){a.collection.type="PropertyPath"}else if(e[0].hasOwnProperty("$Path")){a.collection.type="Path"}else if(e[0].hasOwnProperty("$NavigationPropertyPath")){a.collection.type="NavigationPropertyPath"}else if(e[0].hasOwnProperty("$AnnotationPath")){a.collection.type="AnnotationPath"}else if(e[0].hasOwnProperty("$Type")){a.collection.type="Record"}else if(e[0].hasOwnProperty("$If")){a.collection.type="If"}else if(e[0].hasOwnProperty("$And")){a.collection.type="And"}else if(e[0].hasOwnProperty("$Or")){a.collection.type="Or"}else if(e[0].hasOwnProperty("$Eq")){a.collection.type="Eq"}else if(e[0].hasOwnProperty("$Ne")){a.collection.type="Ne"}else if(e[0].hasOwnProperty("$Not")){a.collection.type="Not"}else if(e[0].hasOwnProperty("$Gt")){a.collection.type="Gt"}else if(e[0].hasOwnProperty("$Ge")){a.collection.type="Ge"}else if(e[0].hasOwnProperty("$Lt")){a.collection.type="Lt"}else if(e[0].hasOwnProperty("$Le")){a.collection.type="Le"}else if(e[0].hasOwnProperty("$Apply")){a.collection.type="Apply"}else if(typeof e[0]==="object"){a.collection.type="Record"}else{a.collection.type="String"}}}else{if(e.$Type){const t=e.$Type;o.type=t}const a=[];Object.keys(e).forEach(o=>{if(o!=="$Type"&&o!=="$If"&&o!=="$Apply"&&o!=="$And"&&o!=="$Or"&&o!=="$Ne"&&o!=="$Gt"&&o!=="$Ge"&&o!=="$Lt"&&o!=="$Le"&&o!=="$Not"&&o!=="$Eq"&&!o.startsWith("@")){a.push(c(e[o],o,t,n,i))}else if(o.startsWith("@")){v({[o]:e[o]},t,n,i)}});o.propertyValues=a}return o}function $(e,t){if(!t.hasOwnProperty(e)){t[e]={target:e,annotations:[]}}return t[e]}function d(e){const t=e.ID??e.Target.$AnnotationPath;return t?o(t):t}function h(e){return e.filter(e=>{if(e.Target&&e.Target.$AnnotationPath){return e.Target.$AnnotationPath.indexOf(`@${"com.sap.vocabularies.UI.v1.Chart"}`)===-1}else{return true}})}function P(e){return e.filter(e=>e.$Type!=="com.sap.vocabularies.UI.v1.DataFieldForIntentBasedNavigation")}function m(e){return e.filter(e=>e.$AnnotationPath!==`@${"com.sap.vocabularies.UI.v1.Chart"}`)}function v(e,t,n,i){var o;if(Object.keys(e).length===0){return}const a=$(t,n);if(!i.MicroChart){delete e[`@${"com.sap.vocabularies.UI.v1.Chart"}`]}for(const r in e){let l=r;let s=e[l];switch(l){case`@${"com.sap.vocabularies.UI.v1.HeaderFacets"}`:if(!i.MicroChart){s=h(s);e[l]=s}break;case`@${"com.sap.vocabularies.UI.v1.Identification"}`:if(!i.IntentBasedNavigation){s=P(s);e[l]=s}break;case`@${"com.sap.vocabularies.UI.v1.LineItem"}`:if(!i.IntentBasedNavigation){s=P(s);e[l]=s}if(!i.MicroChart){s=h(s);e[l]=s}break;case`@${"com.sap.vocabularies.UI.v1.FieldGroup"}`:if(!i.IntentBasedNavigation){s.Data=P(s.Data);e[l]=s}if(!i.MicroChart){s.Data=h(s.Data);e[l]=s}break;case`@${"com.sap.vocabularies.UI.v1.PresentationVariant"}`:if(!i.Chart&&s.Visualizations){s.Visualizations=m(s.Visualizations);e[l]=s}break;case`@com.sap.vocabularies.Common.v1.DraftRoot`:if(e[`@Org.OData.Capabilities.V1.FilterRestrictions`]&&(o=e[`@Org.OData.Capabilities.V1.FilterRestrictions`].FilterExpressionRestrictions)!==null&&o!==void 0&&o.length){if(!e[`@Org.OData.Capabilities.V1.FilterRestrictions`].FilterExpressionRestrictions.some(e=>{var t;return e===null||e===void 0?void 0:(t=e.Property)===null||t===void 0?void 0:t.$PropertyPath.includes("DraftAdministrativeData")})){e[`@Org.OData.Capabilities.V1.FilterRestrictions`].FilterExpressionRestrictions.push({$Type:"Org.OData.Capabilities.V1.FilterExpressionRestrictionType",AllowedExpressions:"SingleRange",Property:{$PropertyPath:"DraftAdministrativeData/CreationDateTime"}},{$Type:"Org.OData.Capabilities.V1.FilterExpressionRestrictionType",AllowedExpressions:"SingleRange",Property:{$PropertyPath:"DraftAdministrativeData/LastChangeDateTime"}})}}break;default:break}let p=a;const y=l.split("@");if(y.length>2){p=$(`${t}@${y[1]}`,n);l=y[2]}else{l=y[1]}const f=l.split("#");const d=f[1];l=f[0];const g={term:l,qualifier:d};let N=`${t}@${g.term}`;if(d){N+=`#${d}`}let O=false;const b=typeof s;if(s===null){g.value={type:"Null"}}else if(b==="string"){g.value={type:"String",String:s}}else if(b==="boolean"){g.value={type:"Bool",Bool:s}}else if(b==="number"){g.value={type:"Int",Int:s}}else if(s.$If!==undefined){g.value={type:"If",If:s.$If}}else if(s.$And!==undefined){g.value={type:"And",And:s.$And}}else if(s.$Or!==undefined){g.value={type:"Or",Or:s.$Or}}else if(s.$Not!==undefined){g.value={type:"Not",Not:s.$Not}}else if(s.$Eq!==undefined){g.value={type:"Eq",Eq:s.$Eq}}else if(s.$Ne!==undefined){g.value={type:"Ne",Ne:s.$Ne}}else if(s.$Gt!==undefined){g.value={type:"Gt",Gt:s.$Gt}}else if(s.$Ge!==undefined){g.value={type:"Ge",Ge:s.$Ge}}else if(s.$Lt!==undefined){g.value={type:"Lt",Lt:s.$Lt}}else if(s.$Le!==undefined){g.value={type:"Le",Le:s.$Le}}else if(s.$Apply!==undefined){g.value={type:"Apply",Apply:s.$Apply,Function:s.$Function}}else if(s.$Path!==undefined){g.value={type:"Path",Path:s.$Path}}else if(s.$AnnotationPath!==undefined){g.value={type:"AnnotationPath",AnnotationPath:s.$AnnotationPath}}else if(s.$Decimal!==undefined){g.value={type:"Decimal",Decimal:parseFloat(s.$Decimal)}}else if(s.$EnumMember!==undefined){g.value={type:"EnumMember",EnumMember:s.$EnumMember}}else if(Array.isArray(s)){O=true;g.collection=s.map((e,t)=>u(e,`${N}/${t}`,n,i));if(s.length>0){if(s[0].hasOwnProperty("$PropertyPath")){g.collection.type="PropertyPath"}else if(s[0].hasOwnProperty("$Path")){g.collection.type="Path"}else if(s[0].hasOwnProperty("$NavigationPropertyPath")){g.collection.type="NavigationPropertyPath"}else if(s[0].hasOwnProperty("$AnnotationPath")){g.collection.type="AnnotationPath"}else if(s[0].hasOwnProperty("$Type")){g.collection.type="Record"}else if(s[0].hasOwnProperty("$If")){g.collection.type="If"}else if(s[0].hasOwnProperty("$Or")){g.collection.type="Or"}else if(s[0].hasOwnProperty("$Eq")){g.collection.type="Eq"}else if(s[0].hasOwnProperty("$Ne")){g.collection.type="Ne"}else if(s[0].hasOwnProperty("$Not")){g.collection.type="Not"}else if(s[0].hasOwnProperty("$Gt")){g.collection.type="Gt"}else if(s[0].hasOwnProperty("$Ge")){g.collection.type="Ge"}else if(s[0].hasOwnProperty("$Lt")){g.collection.type="Lt"}else if(s[0].hasOwnProperty("$Le")){g.collection.type="Le"}else if(s[0].hasOwnProperty("$And")){g.collection.type="And"}else if(s[0].hasOwnProperty("$Apply")){g.collection.type="Apply"}else if(typeof s[0]==="object"){g.collection.type="Record"}else{g.collection.type="String"}}}else{const e={propertyValues:[]};if(s.$Type){const t=s.$Type;e.type=`${t}`}const t=[];for(const e in s){if(e!=="$Type"&&!e.startsWith("@")){t.push(c(s[e],e,N,n,i))}else if(e.startsWith("@")){v({[e]:s[e]},N,n,i)}}e.propertyValues=t;g.record=e}g.isCollection=O;p.annotations.push(g)}}function g(e,t,n){return{_type:"Property",name:n,fullyQualifiedName:`${t.fullyQualifiedName}/${n}`,type:e.$Type,maxLength:e.$MaxLength,precision:e.$Precision,scale:e.$Scale,nullable:e.$Nullable}}function N(e,t,n){let i=[];if(e.$ReferentialConstraint){i=Object.keys(e.$ReferentialConstraint).map(n=>({sourceTypeName:t.name,sourceProperty:n,targetTypeName:e.$Type,targetProperty:e.$ReferentialConstraint[n]}))}const o={_type:"NavigationProperty",name:n,fullyQualifiedName:`${t.fullyQualifiedName}/${n}`,partner:e.$Partner,isCollection:e.$isCollection?e.$isCollection:false,containsTarget:e.$ContainsTarget,targetTypeName:e.$Type,referentialConstraint:i};return o}function O(e,t){if(e){return Object.fromEntries(Object.entries(e).map(e=>{let[n,i]=e;return[n,`${t}/${i}`]}))}return{}}function b(e,t,n){return{_type:"EntitySet",name:t,navigationPropertyBinding:O(e.$NavigationPropertyBinding,n),entityTypeName:e.$Type,fullyQualifiedName:`${n}/${t}`}}function A(e,t,n){return{_type:"Singleton",name:t,navigationPropertyBinding:O(e.$NavigationPropertyBinding,n),entityTypeName:e.$Type,fullyQualifiedName:`${n}/${t}`,nullable:true}}function T(e,t,n){return{_type:"ActionImport",name:t,fullyQualifiedName:`${n}/${t}`,actionName:e.$Action}}function C(e,t,n){const i={_type:"TypeDefinition",name:t.substring(n.length),fullyQualifiedName:t,underlyingType:e.$UnderlyingType};return i}function I(e,t,n){const i={_type:"ComplexType",name:t.substring(n.length),fullyQualifiedName:t,properties:[],navigationProperties:[]};const o=Object.keys(e).filter(t=>{if(t!="$Key"&&t!="$kind"){return e[t].$kind==="Property"}}).sort((e,t)=>e>t?1:-1).map(t=>g(e[t],i,t));i.properties=o;const a=Object.keys(e).filter(t=>{if(t!="$Key"&&t!="$kind"){return e[t].$kind==="NavigationProperty"}}).sort((e,t)=>e>t?1:-1).map(t=>N(e[t],i,t));i.navigationProperties=a;return i}function w(e,t){if(!e.$Key&&e.$BaseType){return w(t[e.$BaseType],t)}return e.$Key??[]}function E(e,t,n,i){var o,a,r;const l={_type:"EntityType",name:t.substring(n.length),fullyQualifiedName:t,keys:[],entityProperties:[],navigationProperties:[],actions:{}};for(const t in e){const n=e[t];switch(n.$kind){case"Property":const e=g(n,l,t);l.entityProperties.push(e);break;case"NavigationProperty":const i=N(n,l,t);l.navigationProperties.push(i);break}}l.keys=w(e,i).map(e=>l.entityProperties.find(t=>t.name===e)).filter(e=>e!==undefined);(o=i.$Annotations[l.fullyQualifiedName])===null||o===void 0?void 0:(a=o[`@${"com.sap.vocabularies.UI.v1.FilterFacets"}`])===null||a===void 0?void 0:a.forEach(e=>{e.ID=d(e)});if(!!(l!==null&&l!==void 0&&l.keys.length)&&i.$Annotations[l.fullyQualifiedName]&&!((r=i.$Annotations[l.fullyQualifiedName])!==null&&r!==void 0&&r[`@${"com.sap.vocabularies.UI.v1.HeaderInfo"}`])){const e={$Type:`${"com.sap.vocabularies.UI.v1.HeaderInfoType"}`,TypeName:`${l.name}`,TypeNamePlural:`${l.name}`,Title:{$Type:`${"com.sap.vocabularies.UI.v1.DataField"}`,Value:{$Path:`${l.keys[0].name}`}}};i.$Annotations[l.fullyQualifiedName][`@${"com.sap.vocabularies.UI.v1.HeaderInfo"}`]=e}for(const e of l.entityProperties){if(!i.$Annotations[e.fullyQualifiedName]){i.$Annotations[e.fullyQualifiedName]={}}if(!i.$Annotations[e.fullyQualifiedName][`@${"com.sap.vocabularies.UI.v1.DataFieldDefault"}`]){i.$Annotations[e.fullyQualifiedName][`@${"com.sap.vocabularies.UI.v1.DataFieldDefault"}`]={$Type:"com.sap.vocabularies.UI.v1.DataField",Value:{$Path:e.name}}}}return l}function D(e,t,n){var i,o;let a;if(e.$kind==="Function"){a=e.$Parameter??[]}else{a=e.$IsBound?[e.$Parameter[0]]:[]}const r=a.map(e=>e.$isCollection?`Collection(${e.$Type})`:e.$Type).join(",");const l=`${t}(${r})`;const s=e.$Parameter??[];return{_type:"Action",name:t.substring(n.length),fullyQualifiedName:l,isBound:e.$IsBound??false,isFunction:e.$kind==="Function",sourceType:((i=a[0])===null||i===void 0?void 0:i.$Type)??"",returnType:((o=e.$ReturnType)===null||o===void 0?void 0:o.$Type)??"",parameters:s.map(e=>({_type:"ActionParameter",fullyQualifiedName:`${l}/${e.$Name}`,isCollection:e.$isCollection??false,name:e.$Name,type:e.$Type,nullable:e.$Nullable??false,maxLength:e.$MaxLength,precision:e.$Precision,scale:e.$Scale}))}}function L(e,t,n,i){i.entityContainer={_type:"EntityContainer",name:t.substring(e.length),fullyQualifiedName:t};for(const e in n){const o=n[e];switch(o.$kind){case"EntitySet":i.entitySets.push(b(o,e,t));break;case"Singleton":i.singletons.push(A(o,e,t));break;case"ActionImport":i.actionImports.push(T(o,e,t));break}}}function G(e,t){const n={};for(const i in e){v(e[i],i,n,t)}return Object.values(n)}function k(e){const t=Object.keys(e).find(t=>e[t].$kind==="Schema")??"";const n={namespace:t.slice(0,-1),entityContainer:{_type:"EntityContainer",name:"",fullyQualifiedName:""},entitySets:[],entityTypes:[],complexTypes:[],typeDefinitions:[],singletons:[],associations:[],associationSets:[],actions:[],actionImports:[],annotations:{}};const i=(i,o)=>{switch(o.$kind){case"EntityContainer":L(t,i,o,n);break;case"Action":case"Function":n.actions.push(D(o,i,t));break;case"EntityType":n.entityTypes.push(E(o,i,t,e));break;case"ComplexType":n.complexTypes.push(I(o,i,t));break;case"TypeDefinition":n.typeDefinitions.push(C(o,i,t));break}};for(const t in e){const n=e[t];if(Array.isArray(n)){for(const e of n){i(t,e)}}else{i(t,n)}}return n}function S(t){let n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:f;const i={identification:"metamodelResult",version:"4.0",references:[]};e.lazy(i,"schema",()=>{const i=t.getObject("/$");const o=k(i);e.lazy(o.annotations,"metamodelResult",()=>G(i.$Annotations,n));return o});return i}i.parseMetaModel=S;const F={};function M(t,n){const i=t.id;if(!F.hasOwnProperty(i)){const o=S(t,n);try{F[i]=e.convert(o)}catch(e){throw new Error(e)}}return F[i]}i.convertTypes=M;function j(e){const t=e.getModel();if(!t.isA("sap.ui.model.odata.v4.ODataMetaModel")){throw new Error("This should only be called on a ODataMetaModel")}return M(t)}i.getConvertedTypes=j;function B(e){delete F[e.id]}i.deleteModelCacheData=B;function R(e){let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;const n=M(e.getModel());const i=e.getPath();const o=i.split("/");let a=o[1];let r=2;if(n.entityContainer.fullyQualifiedName===a){a=o[2];r++}let l=n.entitySets.find(e=>e.name===a);if(!l){l=n.singletons.find(e=>e.name===a)}let s=o.slice(r).join("/");const p=[l];while(s&&s.length>0&&s.startsWith("$NavigationPropertyBinding")){var y;let e=s.split("/");let t=0;let n,i;e=e.slice(1);while(!n&&e.length>t){if(e[t]!=="$NavigationPropertyBinding"){i=e.slice(0,t+1).join("/").replace("/$NavigationPropertyBinding","");n=l&&l.navigationPropertyBinding[i]}t++}if(!n){i=e[0]}const o=((y=i)===null||y===void 0?void 0:y.split("/"))||[];let a=l&&l.entityType;for(const e of o){const t=a&&a.navigationProperties.find(t=>t.name===e);if(t){p.push(t);a=t.targetType}else{break}}l=l&&n||l&&l.navigationPropertyBinding[e[0]];if(l){p.push(l)}e=e.slice(o.length||1);if(e.length&&e[0]==="$"){e.shift()}s=e.join("/")}if(s.startsWith("$Type")){if(s.startsWith("$Type@")){s=s.replace("$Type","")}else{s=o.slice(3).join("/")}}if(l&&s.length){const e=l.entityType.resolvePath(s,t);if(e){if(t){e.visitedObjects=p.concat(e.visitedObjects)}}else if(l.entityType&&l.entityType.actions){const e=l.entityType&&l.entityType.actions;const t=s.split("/");if(e[t[0]]){const n=e[t[0]];if(t[1]&&n.parameters){const e=t[1];return n.parameters.find(t=>t.fullyQualifiedName.endsWith(`/${e}`))}else if(s.length===1){return n}}}return e}else{if(t){return{target:l,visitedObjects:p}}return l}}i.convertMetaModelContext=R;function Q(e,t){const n=M(e.getModel());const i=R(e,true);let o;if(t&&t.getPath()!=="/"){o=Q(t)}return x(i,n,o)}i.getInvolvedDataModelObjects=Q;function x(e,t,n){let i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:false;const o=e.visitedObjects.filter(e=>r(e)&&!s(e)&&!y(e));if(r(e.target)&&!s(e.target)&&o[o.length-1]!==e.target&&!i){o.push(e.target)}const f=[];const c=o[0];let u=c;let $=c.entityType;let d;let h=[];for(let e=1;e<o.length;e++){d=o[e];if(l(d)){var P;h.push(d.name);f.push(d);$=d.targetType;const e=(P=u)===null||P===void 0?void 0:P.navigationPropertyBinding[h.join("/")];if(e!==undefined){u=e;h=[]}}if(p(d)||a(d)){u=d;$=u.entityType}}if(h.length>0){u=undefined}if(n&&n.startingEntitySet!==c){const e=o.indexOf(n.startingEntitySet);if(e!==-1){const t=o.slice(0,e);n.startingEntitySet=c;n.navigationProperties=t.filter(l).concat(n.navigationProperties)}}const m={startingEntitySet:c,targetEntitySet:u,targetEntityType:$,targetObject:e.target,navigationProperties:f,contextLocation:n,convertedTypes:t};if(!r(m.targetObject)&&i){m.targetObject=r(d)?d:undefined}if(!m.contextLocation){m.contextLocation=m}return m}i.getInvolvedDataModelObjectFromPath=x;return i},false);
5
+ sap.ui.define(["sap/fe/core/converters/common/AnnotationConverter","sap/fe/core/helpers/TypeGuards","../helpers/StableIdHelper"],function(e,t,n){"use strict";var i={};var o=n.prepareId;var a=t.isSingleton;var r=t.isServiceObject;var l=t.isNavigationProperty;var s=t.isEntityType;var p=t.isEntitySet;var y=t.isEntityContainer;const f={Chart:true,MicroChart:true,UShell:true,IntentBasedNavigation:true,AppState:true,InsightsSupported:false};i.DefaultEnvironmentCapabilities=f;function c(e,t,n,i,o){let a;const r=typeof e;if(e===null){a={type:"Null",Null:null}}else if(r==="string"){a={type:"String",String:e}}else if(r==="boolean"){a={type:"Bool",Bool:e}}else if(r==="number"){a={type:"Int",Int:e}}else if(Array.isArray(e)){a={type:"Collection",Collection:e.map((e,a)=>u(e,`${n}/${t}/${a}`,i,o))};if(e.length>0){if(e[0].hasOwnProperty("$PropertyPath")){a.Collection.type="PropertyPath"}else if(e[0].hasOwnProperty("$Path")){a.Collection.type="Path"}else if(e[0].hasOwnProperty("$NavigationPropertyPath")){a.Collection.type="NavigationPropertyPath"}else if(e[0].hasOwnProperty("$AnnotationPath")){a.Collection.type="AnnotationPath"}else if(e[0].hasOwnProperty("$Type")){a.Collection.type="Record"}else if(e[0].hasOwnProperty("$If")){a.Collection.type="If"}else if(e[0].hasOwnProperty("$Or")){a.Collection.type="Or"}else if(e[0].hasOwnProperty("$And")){a.Collection.type="And"}else if(e[0].hasOwnProperty("$Eq")){a.Collection.type="Eq"}else if(e[0].hasOwnProperty("$Ne")){a.Collection.type="Ne"}else if(e[0].hasOwnProperty("$Not")){a.Collection.type="Not"}else if(e[0].hasOwnProperty("$Gt")){a.Collection.type="Gt"}else if(e[0].hasOwnProperty("$Ge")){a.Collection.type="Ge"}else if(e[0].hasOwnProperty("$Lt")){a.Collection.type="Lt"}else if(e[0].hasOwnProperty("$Le")){a.Collection.type="Le"}else if(e[0].hasOwnProperty("$Apply")){a.Collection.type="Apply"}else if(typeof e[0]==="object"){a.Collection.type="Record"}else{a.Collection.type="String"}}}else if(e.$Path!==undefined){a={type:"Path",Path:e.$Path}}else if(e.$Decimal!==undefined){a={type:"Decimal",Decimal:parseFloat(e.$Decimal)}}else if(e.$PropertyPath!==undefined){a={type:"PropertyPath",PropertyPath:e.$PropertyPath}}else if(e.$NavigationPropertyPath!==undefined){a={type:"NavigationPropertyPath",NavigationPropertyPath:e.$NavigationPropertyPath}}else if(e.$If!==undefined){a={type:"If",If:e.$If}}else if(e.$And!==undefined){a={type:"And",And:e.$And}}else if(e.$Or!==undefined){a={type:"Or",Or:e.$Or}}else if(e.$Not!==undefined){a={type:"Not",Not:e.$Not}}else if(e.$Eq!==undefined){a={type:"Eq",Eq:e.$Eq}}else if(e.$Ne!==undefined){a={type:"Ne",Ne:e.$Ne}}else if(e.$Gt!==undefined){a={type:"Gt",Gt:e.$Gt}}else if(e.$Ge!==undefined){a={type:"Ge",Ge:e.$Ge}}else if(e.$Lt!==undefined){a={type:"Lt",Lt:e.$Lt}}else if(e.$Le!==undefined){a={type:"Le",Le:e.$Le}}else if(e.$Apply!==undefined){a={type:"Apply",Apply:e.$Apply,Function:e.$Function}}else if(e.$AnnotationPath!==undefined){a={type:"AnnotationPath",AnnotationPath:e.$AnnotationPath}}else if(e.$EnumMember!==undefined){a={type:"EnumMember",EnumMember:e.$EnumMember}}else{a={type:"Record",Record:u(e,n,i,o)}}return{name:t,value:a}}function u(e,t,n,i){let o={};const a=typeof e;if(e===null){o={type:"Null",Null:null}}else if(a==="string"){o={type:"String",String:e}}else if(a==="boolean"){o={type:"Bool",Bool:e}}else if(a==="number"){o={type:"Int",Int:e}}else if(e.$AnnotationPath!==undefined){o={type:"AnnotationPath",AnnotationPath:e.$AnnotationPath}}else if(e.$Path!==undefined){o={type:"Path",Path:e.$Path}}else if(e.$Decimal!==undefined){o={type:"Decimal",Decimal:parseFloat(e.$Decimal)}}else if(e.$PropertyPath!==undefined){o={type:"PropertyPath",PropertyPath:e.$PropertyPath}}else if(e.$If!==undefined){o={type:"If",If:e.$If}}else if(e.$And!==undefined){o={type:"And",And:e.$And}}else if(e.$Or!==undefined){o={type:"Or",Or:e.$Or}}else if(e.$Not!==undefined){o={type:"Not",Not:e.$Not}}else if(e.$Eq!==undefined){o={type:"Eq",Eq:e.$Eq}}else if(e.$Ne!==undefined){o={type:"Ne",Ne:e.$Ne}}else if(e.$Gt!==undefined){o={type:"Gt",Gt:e.$Gt}}else if(e.$Ge!==undefined){o={type:"Ge",Ge:e.$Ge}}else if(e.$Lt!==undefined){o={type:"Lt",Lt:e.$Lt}}else if(e.$Le!==undefined){o={type:"Le",Le:e.$Le}}else if(e.$Apply!==undefined){o={type:"Apply",Apply:e.$Apply,Function:e.$Function}}else if(e.$NavigationPropertyPath!==undefined){o={type:"NavigationPropertyPath",NavigationPropertyPath:e.$NavigationPropertyPath}}else if(e.$EnumMember!==undefined){o={type:"EnumMember",EnumMember:e.$EnumMember}}else if(Array.isArray(e)){const a=o;a.collection=e.map((e,o)=>u(e,`${t}/${o}`,n,i));if(e.length>0){if(e[0].hasOwnProperty("$PropertyPath")){a.collection.type="PropertyPath"}else if(e[0].hasOwnProperty("$Path")){a.collection.type="Path"}else if(e[0].hasOwnProperty("$NavigationPropertyPath")){a.collection.type="NavigationPropertyPath"}else if(e[0].hasOwnProperty("$AnnotationPath")){a.collection.type="AnnotationPath"}else if(e[0].hasOwnProperty("$Type")){a.collection.type="Record"}else if(e[0].hasOwnProperty("$If")){a.collection.type="If"}else if(e[0].hasOwnProperty("$And")){a.collection.type="And"}else if(e[0].hasOwnProperty("$Or")){a.collection.type="Or"}else if(e[0].hasOwnProperty("$Eq")){a.collection.type="Eq"}else if(e[0].hasOwnProperty("$Ne")){a.collection.type="Ne"}else if(e[0].hasOwnProperty("$Not")){a.collection.type="Not"}else if(e[0].hasOwnProperty("$Gt")){a.collection.type="Gt"}else if(e[0].hasOwnProperty("$Ge")){a.collection.type="Ge"}else if(e[0].hasOwnProperty("$Lt")){a.collection.type="Lt"}else if(e[0].hasOwnProperty("$Le")){a.collection.type="Le"}else if(e[0].hasOwnProperty("$Apply")){a.collection.type="Apply"}else if(typeof e[0]==="object"){a.collection.type="Record"}else{a.collection.type="String"}}}else{if(e.$Type){const t=e.$Type;o.type=t}const a=[];Object.keys(e).forEach(o=>{if(o!=="$Type"&&o!=="$If"&&o!=="$Apply"&&o!=="$And"&&o!=="$Or"&&o!=="$Ne"&&o!=="$Gt"&&o!=="$Ge"&&o!=="$Lt"&&o!=="$Le"&&o!=="$Not"&&o!=="$Eq"&&!o.startsWith("@")){a.push(c(e[o],o,t,n,i))}else if(o.startsWith("@")){v({[o]:e[o]},t,n,i)}});o.propertyValues=a}return o}function $(e,t){if(!t.hasOwnProperty(e)){t[e]={target:e,annotations:[]}}return t[e]}function d(e){const t=e.ID??e.Target.$AnnotationPath;return t?o(t):t}function h(e){return e.filter(e=>{if(e.Target&&e.Target.$AnnotationPath){return e.Target.$AnnotationPath.indexOf(`@${"com.sap.vocabularies.UI.v1.Chart"}`)===-1}else{return true}})}function P(e){return e.filter(e=>e.$Type!=="com.sap.vocabularies.UI.v1.DataFieldForIntentBasedNavigation")}function m(e){return e.filter(e=>e.$AnnotationPath!==`@${"com.sap.vocabularies.UI.v1.Chart"}`)}function v(e,t,n,i){var o;if(Object.keys(e).length===0){return}const a=$(t,n);if(!i.MicroChart){delete e[`@${"com.sap.vocabularies.UI.v1.Chart"}`]}for(const r in e){let l=r;let s=e[l];switch(l){case`@${"com.sap.vocabularies.UI.v1.HeaderFacets"}`:if(!i.MicroChart){s=h(s);e[l]=s}break;case`@${"com.sap.vocabularies.UI.v1.Identification"}`:if(!i.IntentBasedNavigation){s=P(s);e[l]=s}break;case`@${"com.sap.vocabularies.UI.v1.LineItem"}`:if(!i.IntentBasedNavigation){s=P(s);e[l]=s}if(!i.MicroChart){s=h(s);e[l]=s}break;case`@${"com.sap.vocabularies.UI.v1.FieldGroup"}`:if(!i.IntentBasedNavigation){s.Data=P(s.Data);e[l]=s}if(!i.MicroChart){s.Data=h(s.Data);e[l]=s}break;case`@${"com.sap.vocabularies.UI.v1.PresentationVariant"}`:if(!i.Chart&&s.Visualizations){s.Visualizations=m(s.Visualizations);e[l]=s}break;case`@com.sap.vocabularies.Common.v1.DraftRoot`:if(e[`@Org.OData.Capabilities.V1.FilterRestrictions`]&&(o=e[`@Org.OData.Capabilities.V1.FilterRestrictions`].FilterExpressionRestrictions)!==null&&o!==void 0&&o.length){if(!e[`@Org.OData.Capabilities.V1.FilterRestrictions`].FilterExpressionRestrictions.some(e=>{var t;return e===null||e===void 0?void 0:(t=e.Property)===null||t===void 0?void 0:t.$PropertyPath.includes("DraftAdministrativeData")})){e[`@Org.OData.Capabilities.V1.FilterRestrictions`].FilterExpressionRestrictions.push({$Type:"Org.OData.Capabilities.V1.FilterExpressionRestrictionType",AllowedExpressions:"SingleRange",Property:{$PropertyPath:"DraftAdministrativeData/CreationDateTime"}},{$Type:"Org.OData.Capabilities.V1.FilterExpressionRestrictionType",AllowedExpressions:"SingleRange",Property:{$PropertyPath:"DraftAdministrativeData/LastChangeDateTime"}})}}break;default:break}let p=a;const y=l.split("@");if(y.length>2){p=$(`${t}@${y[1]}`,n);l=y[2]}else{l=y[1]}const f=l.split("#");const d=f[1];l=f[0];const g={term:l,qualifier:d};let N=`${t}@${g.term}`;if(d){N+=`#${d}`}let O=false;const b=typeof s;if(s===null){g.value={type:"Null"}}else if(b==="string"){g.value={type:"String",String:s}}else if(b==="boolean"){g.value={type:"Bool",Bool:s}}else if(b==="number"){g.value={type:"Int",Int:s}}else if(s.$If!==undefined){g.value={type:"If",If:s.$If}}else if(s.$And!==undefined){g.value={type:"And",And:s.$And}}else if(s.$Or!==undefined){g.value={type:"Or",Or:s.$Or}}else if(s.$Not!==undefined){g.value={type:"Not",Not:s.$Not}}else if(s.$Eq!==undefined){g.value={type:"Eq",Eq:s.$Eq}}else if(s.$Ne!==undefined){g.value={type:"Ne",Ne:s.$Ne}}else if(s.$Gt!==undefined){g.value={type:"Gt",Gt:s.$Gt}}else if(s.$Ge!==undefined){g.value={type:"Ge",Ge:s.$Ge}}else if(s.$Lt!==undefined){g.value={type:"Lt",Lt:s.$Lt}}else if(s.$Le!==undefined){g.value={type:"Le",Le:s.$Le}}else if(s.$Apply!==undefined){g.value={type:"Apply",Apply:s.$Apply,Function:s.$Function}}else if(s.$Path!==undefined){g.value={type:"Path",Path:s.$Path}}else if(s.$AnnotationPath!==undefined){g.value={type:"AnnotationPath",AnnotationPath:s.$AnnotationPath}}else if(s.$Decimal!==undefined){g.value={type:"Decimal",Decimal:parseFloat(s.$Decimal)}}else if(s.$EnumMember!==undefined){g.value={type:"EnumMember",EnumMember:s.$EnumMember}}else if(Array.isArray(s)){O=true;g.collection=s.map((e,t)=>u(e,`${N}/${t}`,n,i));if(s.length>0){if(s[0].hasOwnProperty("$PropertyPath")){g.collection.type="PropertyPath"}else if(s[0].hasOwnProperty("$Path")){g.collection.type="Path"}else if(s[0].hasOwnProperty("$NavigationPropertyPath")){g.collection.type="NavigationPropertyPath"}else if(s[0].hasOwnProperty("$AnnotationPath")){g.collection.type="AnnotationPath"}else if(s[0].hasOwnProperty("$Type")){g.collection.type="Record"}else if(s[0].hasOwnProperty("$If")){g.collection.type="If"}else if(s[0].hasOwnProperty("$Or")){g.collection.type="Or"}else if(s[0].hasOwnProperty("$Eq")){g.collection.type="Eq"}else if(s[0].hasOwnProperty("$Ne")){g.collection.type="Ne"}else if(s[0].hasOwnProperty("$Not")){g.collection.type="Not"}else if(s[0].hasOwnProperty("$Gt")){g.collection.type="Gt"}else if(s[0].hasOwnProperty("$Ge")){g.collection.type="Ge"}else if(s[0].hasOwnProperty("$Lt")){g.collection.type="Lt"}else if(s[0].hasOwnProperty("$Le")){g.collection.type="Le"}else if(s[0].hasOwnProperty("$And")){g.collection.type="And"}else if(s[0].hasOwnProperty("$Apply")){g.collection.type="Apply"}else if(typeof s[0]==="object"){g.collection.type="Record"}else{g.collection.type="String"}}}else{const e={propertyValues:[]};if(s.$Type){const t=s.$Type;e.type=`${t}`}const t=[];for(const e in s){if(e!=="$Type"&&!e.startsWith("@")){t.push(c(s[e],e,N,n,i))}else if(e.startsWith("@")){v({[e]:s[e]},N,n,i)}}e.propertyValues=t;g.record=e}g.isCollection=O;p.annotations.push(g)}}function g(e,t,n){return{_type:"Property",name:n,fullyQualifiedName:`${t.fullyQualifiedName}/${n}`,type:e.$Type,maxLength:e.$MaxLength,precision:e.$Precision,scale:e.$Scale,nullable:e.$Nullable}}function N(e,t,n){let i=[];if(e.$ReferentialConstraint){i=Object.keys(e.$ReferentialConstraint).map(n=>({sourceTypeName:t.name,sourceProperty:n,targetTypeName:e.$Type,targetProperty:e.$ReferentialConstraint[n]}))}const o={_type:"NavigationProperty",name:n,fullyQualifiedName:`${t.fullyQualifiedName}/${n}`,partner:e.$Partner,isCollection:e.$isCollection?e.$isCollection:false,containsTarget:e.$ContainsTarget,targetTypeName:e.$Type,referentialConstraint:i};return o}function O(e,t){if(e){return Object.fromEntries(Object.entries(e).map(e=>{let[n,i]=e;return[n,`${t}/${i}`]}))}return{}}function b(e,t,n){return{_type:"EntitySet",name:t,navigationPropertyBinding:O(e.$NavigationPropertyBinding,n),entityTypeName:e.$Type,fullyQualifiedName:`${n}/${t}`}}function A(e,t,n){return{_type:"Singleton",name:t,navigationPropertyBinding:O(e.$NavigationPropertyBinding,n),entityTypeName:e.$Type,fullyQualifiedName:`${n}/${t}`,nullable:true}}function T(e,t,n){return{_type:"ActionImport",name:t,fullyQualifiedName:`${n}/${t}`,actionName:e.$Action}}function C(e,t,n){const i={_type:"TypeDefinition",name:t.substring(n.length),fullyQualifiedName:t,underlyingType:e.$UnderlyingType};return i}function I(e,t,n){const i={_type:"ComplexType",name:t.substring(n.length),fullyQualifiedName:t,properties:[],navigationProperties:[]};const o=Object.keys(e).filter(t=>{if(t!="$Key"&&t!="$kind"){return e[t].$kind==="Property"}}).sort((e,t)=>e>t?1:-1).map(t=>g(e[t],i,t));i.properties=o;const a=Object.keys(e).filter(t=>{if(t!="$Key"&&t!="$kind"){return e[t].$kind==="NavigationProperty"}}).sort((e,t)=>e>t?1:-1).map(t=>N(e[t],i,t));i.navigationProperties=a;return i}function w(e,t){if(!e.$Key&&e.$BaseType){return w(t[e.$BaseType],t)}return e.$Key??[]}function E(e,t,n,i){var o,a,r;const l={_type:"EntityType",name:t.substring(n.length),fullyQualifiedName:t,keys:[],entityProperties:[],navigationProperties:[],actions:{}};for(const t in e){const n=e[t];switch(n.$kind){case"Property":const e=g(n,l,t);l.entityProperties.push(e);break;case"NavigationProperty":const i=N(n,l,t);l.navigationProperties.push(i);break}}l.keys=w(e,i).map(e=>l.entityProperties.find(t=>t.name===e)).filter(e=>e!==undefined);(o=i.$Annotations[l.fullyQualifiedName])===null||o===void 0?void 0:(a=o[`@${"com.sap.vocabularies.UI.v1.FilterFacets"}`])===null||a===void 0?void 0:a.forEach(e=>{e.ID=d(e)});if(!!(l!==null&&l!==void 0&&l.keys.length)&&i.$Annotations[l.fullyQualifiedName]&&!((r=i.$Annotations[l.fullyQualifiedName])!==null&&r!==void 0&&r[`@${"com.sap.vocabularies.UI.v1.HeaderInfo"}`])){const e={$Type:`${"com.sap.vocabularies.UI.v1.HeaderInfoType"}`,TypeName:`${l.name}`,TypeNamePlural:"",Title:{$Type:`${"com.sap.vocabularies.UI.v1.DataField"}`,Value:{$Path:`${l.keys[0].name}`}}};i.$Annotations[l.fullyQualifiedName][`@${"com.sap.vocabularies.UI.v1.HeaderInfo"}`]=e}for(const e of l.entityProperties){if(!i.$Annotations[e.fullyQualifiedName]){i.$Annotations[e.fullyQualifiedName]={}}if(!i.$Annotations[e.fullyQualifiedName][`@${"com.sap.vocabularies.UI.v1.DataFieldDefault"}`]){i.$Annotations[e.fullyQualifiedName][`@${"com.sap.vocabularies.UI.v1.DataFieldDefault"}`]={$Type:"com.sap.vocabularies.UI.v1.DataField",Value:{$Path:e.name}}}}return l}function D(e,t,n){var i,o;let a;if(e.$kind==="Function"){a=e.$Parameter??[]}else{a=e.$IsBound?[e.$Parameter[0]]:[]}const r=a.map(e=>e.$isCollection?`Collection(${e.$Type})`:e.$Type).join(",");const l=`${t}(${r})`;const s=e.$Parameter??[];return{_type:"Action",name:t.substring(n.length),fullyQualifiedName:l,isBound:e.$IsBound??false,isFunction:e.$kind==="Function",sourceType:((i=a[0])===null||i===void 0?void 0:i.$Type)??"",returnType:((o=e.$ReturnType)===null||o===void 0?void 0:o.$Type)??"",parameters:s.map(e=>({_type:"ActionParameter",fullyQualifiedName:`${l}/${e.$Name}`,isCollection:e.$isCollection??false,name:e.$Name,type:e.$Type,nullable:e.$Nullable??false,maxLength:e.$MaxLength,precision:e.$Precision,scale:e.$Scale}))}}function L(e,t,n,i){i.entityContainer={_type:"EntityContainer",name:t.substring(e.length),fullyQualifiedName:t};for(const e in n){const o=n[e];switch(o.$kind){case"EntitySet":i.entitySets.push(b(o,e,t));break;case"Singleton":i.singletons.push(A(o,e,t));break;case"ActionImport":i.actionImports.push(T(o,e,t));break}}}function G(e,t){const n={};for(const i in e){v(e[i],i,n,t)}return Object.values(n)}function k(e){const t=Object.keys(e).find(t=>e[t].$kind==="Schema")??"";const n={namespace:t.slice(0,-1),entityContainer:{_type:"EntityContainer",name:"",fullyQualifiedName:""},entitySets:[],entityTypes:[],complexTypes:[],typeDefinitions:[],singletons:[],associations:[],associationSets:[],actions:[],actionImports:[],annotations:{}};const i=(i,o)=>{switch(o.$kind){case"EntityContainer":L(t,i,o,n);break;case"Action":case"Function":n.actions.push(D(o,i,t));break;case"EntityType":n.entityTypes.push(E(o,i,t,e));break;case"ComplexType":n.complexTypes.push(I(o,i,t));break;case"TypeDefinition":n.typeDefinitions.push(C(o,i,t));break}};for(const t in e){const n=e[t];if(Array.isArray(n)){for(const e of n){i(t,e)}}else{i(t,n)}}return n}function S(t){let n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:f;const i={identification:"metamodelResult",version:"4.0",references:[]};e.lazy(i,"schema",()=>{const i=t.getObject("/$");const o=k(i);e.lazy(o.annotations,"metamodelResult",()=>G(i.$Annotations,n));return o});return i}i.parseMetaModel=S;const F={};function M(t,n){const i=t.id;if(!F.hasOwnProperty(i)){const o=S(t,n);try{F[i]=e.convert(o)}catch(e){throw new Error(e)}}return F[i]}i.convertTypes=M;function j(e){const t=e.getModel();if(!t.isA("sap.ui.model.odata.v4.ODataMetaModel")){throw new Error("This should only be called on a ODataMetaModel")}return M(t)}i.getConvertedTypes=j;function B(e){delete F[e.id]}i.deleteModelCacheData=B;function R(e){let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;const n=M(e.getModel());const i=e.getPath();const o=i.split("/");let a=o[1];let r=2;if(n.entityContainer.fullyQualifiedName===a){a=o[2];r++}let l=n.entitySets.find(e=>e.name===a);if(!l){l=n.singletons.find(e=>e.name===a)}let s=o.slice(r).join("/");const p=[l];while(s&&s.length>0&&s.startsWith("$NavigationPropertyBinding")){var y;let e=s.split("/");let t=0;let n,i;e=e.slice(1);while(!n&&e.length>t){if(e[t]!=="$NavigationPropertyBinding"){i=e.slice(0,t+1).join("/").replace("/$NavigationPropertyBinding","");n=l&&l.navigationPropertyBinding[i]}t++}if(!n){i=e[0]}const o=((y=i)===null||y===void 0?void 0:y.split("/"))||[];let a=l&&l.entityType;for(const e of o){const t=a&&a.navigationProperties.find(t=>t.name===e);if(t){p.push(t);a=t.targetType}else{break}}l=l&&n||l&&l.navigationPropertyBinding[e[0]];if(l){p.push(l)}e=e.slice(o.length||1);if(e.length&&e[0]==="$"){e.shift()}s=e.join("/")}if(s.startsWith("$Type")){if(s.startsWith("$Type@")){s=s.replace("$Type","")}else{s=o.slice(3).join("/")}}if(l&&s.length){const e=l.entityType.resolvePath(s,t);if(e){if(t){e.visitedObjects=p.concat(e.visitedObjects)}}else if(l.entityType&&l.entityType.actions){const e=l.entityType&&l.entityType.actions;const t=s.split("/");if(e[t[0]]){const n=e[t[0]];if(t[1]&&n.parameters){const e=t[1];return n.parameters.find(t=>t.fullyQualifiedName.endsWith(`/${e}`))}else if(s.length===1){return n}}}return e}else{if(t){return{target:l,visitedObjects:p}}return l}}i.convertMetaModelContext=R;function Q(e,t){const n=M(e.getModel());const i=R(e,true);let o;if(t&&t.getPath()!=="/"){o=Q(t)}return x(i,n,o)}i.getInvolvedDataModelObjects=Q;function x(e,t,n){let i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:false;const o=e.visitedObjects.filter(e=>r(e)&&!s(e)&&!y(e));if(r(e.target)&&!s(e.target)&&o[o.length-1]!==e.target&&!i){o.push(e.target)}const f=[];const c=o[0];let u=c;let $=c.entityType;let d;let h=[];for(let e=1;e<o.length;e++){d=o[e];if(l(d)){var P;h.push(d.name);f.push(d);$=d.targetType;const e=(P=u)===null||P===void 0?void 0:P.navigationPropertyBinding[h.join("/")];if(e!==undefined){u=e;h=[]}}if(p(d)||a(d)){u=d;$=u.entityType}}if(h.length>0){u=undefined}if(n&&n.startingEntitySet!==c){const e=o.indexOf(n.startingEntitySet);if(e!==-1){const t=o.slice(0,e);n.startingEntitySet=c;n.navigationProperties=t.filter(l).concat(n.navigationProperties)}}const m={startingEntitySet:c,targetEntitySet:u,targetEntityType:$,targetObject:e.target,navigationProperties:f,contextLocation:n,convertedTypes:t};if(!r(m.targetObject)&&i){m.targetObject=r(d)?d:undefined}if(!m.contextLocation){m.contextLocation=m}return m}i.getInvolvedDataModelObjectFromPath=x;return i},false);
6
6
  //# sourceMappingURL=MetaModelConverter.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"MetaModelConverter.js","names":["sap","ui","define","AnnotationConverter","TypeGuards","StableIdHelper","_exports","prepareId","isSingleton","isServiceObject","isNavigationProperty","isEntityType","isEntitySet","isEntityContainer","DefaultEnvironmentCapabilities","Chart","MicroChart","UShell","IntentBasedNavigation","AppState","InsightsSupported","parsePropertyValue","annotationObject","propertyKey","currentTarget","annotationsLists","oCapabilities","value","typeOfAnnotation","type","Null","String","Bool","Int","Array","isArray","Collection","map","subAnnotationObject","subAnnotationObjectIndex","parseAnnotationObject","length","hasOwnProperty","$Path","undefined","Path","$Decimal","Decimal","parseFloat","$PropertyPath","PropertyPath","$NavigationPropertyPath","NavigationPropertyPath","$If","If","$And","And","$Or","Or","$Not","Not","$Eq","Eq","$Ne","Ne","$Gt","Gt","$Ge","Ge","$Lt","Lt","$Le","Le","$Apply","Apply","Function","$Function","$AnnotationPath","AnnotationPath","$EnumMember","EnumMember","Record","name","currentObjectTarget","parsedAnnotationObject","typeOfObject","parsedAnnotationCollection","collection","subAnnotationIndex","$Type","typeValue","propertyValues","Object","keys","forEach","startsWith","push","createAnnotationLists","getOrCreateAnnotationList","target","annotations","createReferenceFacetId","referenceFacet","id","ID","Target","removeChartAnnotations","filter","oRecord","indexOf","removeIBNAnnotations","handlePresentationVariant","annotationObjects","annotationTarget","annotationLists","_annotationObjects$Fi","outAnnotationObject","annotationObjectKey","annotationKey","Data","Visualizations","FilterExpressionRestrictions","some","FilterExpressionRestriction","_FilterExpressionRest","Property","includes","AllowedExpressions","currentOutAnnotationObject","annotationOfAnnotationSplit","split","annotationQualifierSplit","qualifier","term","currentAnnotationTarget","isCollection","typeofAnnotation","record","prepareProperty","propertyDefinition","entityTypeObject","propertyName","_type","fullyQualifiedName","maxLength","$MaxLength","precision","$Precision","scale","$Scale","nullable","$Nullable","prepareNavigationProperty","navPropertyDefinition","navPropertyName","referentialConstraint","$ReferentialConstraint","sourcePropertyName","sourceTypeName","sourceProperty","targetTypeName","targetProperty","navigationProperty","partner","$Partner","$isCollection","containsTarget","$ContainsTarget","prepareNavigationPropertyBinding","navigationPropertyBinding","entityContainerName","fromEntries","entries","_ref","path","prepareEntitySet","entitySetDefinition","entitySetName","$NavigationPropertyBinding","entityTypeName","prepareSingleton","singletonDefinition","singletonName","prepareActionImport","actionImport","actionImportName","actionName","$Action","prepareTypeDefinition","typeDefinition","typeName","namespacePrefix","typeObject","substring","underlyingType","$UnderlyingType","prepareComplexType","complexTypeDefinition","complexTypeName","complexTypeObject","properties","navigationProperties","complexTypeProperties","propertyNameOrNot","$kind","sort","a","b","complexTypeNavigationProperties","prepareEntityKeys","entityTypeDefinition","oMetaModelData","$Key","$BaseType","prepareEntityType","metaModelData","_metaModelData$$Annot","_metaModelData$$Annot2","_metaModelData$$Annot3","entityType","entityProperties","actions","key","property","entityKey","find","$Annotations","filterFacetAnnotation","headerInfoAnnotation","TypeName","TypeNamePlural","Title","Value","entityProperty","prepareAction","actionRawData","_overloadParameters$","_actionRawData$$Retur","overloadParameters","$Parameter","$IsBound","overload","parameter","join","parameters","isBound","isFunction","sourceType","returnType","$ReturnType","param","$Name","parseEntityContainer","entityContainerMetadata","schema","entityContainer","elementName","elementValue","entitySets","singletons","actionImports","parseAnnotations","capabilities","values","parseSchema","namespace","slice","entityTypes","complexTypes","typeDefinitions","associations","associationSets","parseMetaModelElement","subElementValue","parseMetaModel","metaModel","arguments","result","identification","version","references","lazy","getObject","mMetaModelMap","convertTypes","oMetaModel","sMetaModelId","parsedOutput","convert","oError","Error","getConvertedTypes","oContext","getModel","isA","deleteModelCacheData","convertMetaModelContext","oMetaModelContext","bIncludeVisitedObjects","oConvertedMetadata","sPath","getPath","aPathSplit","firstPart","beginIndex","targetEntitySet","entitySet","singleton","relativePath","localObjects","_sNavPropToCheck","relativeSplit","idx","currentEntitySet","sNavPropToCheck","replace","aNavProps","targetEntityType","sNavProp","targetNavProp","navProp","targetType","shift","oTarget","resolvePath","visitedObjects","concat","action","parameterName","endsWith","getInvolvedDataModelObjects","oEntitySetMetaModelContext","metaModelContext","targetEntitySetLocation","getInvolvedDataModelObjectFromPath","convertedTypes","onlyServiceObjects","dataModelObjects","visitedObject","rootEntitySet","currentEntityType","currentObject","navigatedPath","i","_currentEntitySet","boundEntitySet","startingEntitySet","startingIndex","requiredDataModelObjects","outDataModelPath","targetObject","contextLocation"],"sources":["MetaModelConverter-dbg.js"],"mappings":";;;;AAIAA,IAAIC,GAAGC,OAAO,CAAC,oDAAqD,iCAAkC,6BAA8B,SAAUC,EAAqBC,EAAYC,GAC7K,aAEA,IAAIC,EAAW,CAAC,EAChB,IAAIC,EAAYF,EAAeE,UAC/B,IAAIC,EAAcJ,EAAWI,YAC7B,IAAIC,EAAkBL,EAAWK,gBACjC,IAAIC,EAAuBN,EAAWM,qBACtC,IAA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AAY6U,GAAgB,CAC5D5B,EAAmB4B,EACnBD,EAAoB3B,EAAiB9F,UACvC,CACF,CACA,GAAI2H,EAAc7S,OAAS,EAAG,CAE5BgR,EAAmB7Q,SACrB,CACA,GAAIiS,GAA2BA,EAAwBa,oBAAsBP,EAAe,CAG1F,MAAMQ,EAAgBV,EAAiBpO,QAAQgO,EAAwBa,mBACvE,GAAIC,KAAmB,EAAG,CAExB,MAAMC,EAA2BX,EAAiBvE,MAAM,EAAGiF,GAC3Dd,EAAwBa,kBAAoBP,EAC5CN,EAAwBpI,qBAAuBmJ,EAAyBjP,OAAOjG,GAAsB4T,OAAOO,EAAwBpI,qBACtI,CACF,CACA,MAAMoJ,EAAmB,CACvBH,kBAAmBP,EACnBlC,gBAAiBQ,EACjBI,iBAAkBuB,EAClBU,aAAclB,EAAiBzO,OAC/BsG,uBACAsJ,gBAAiBlB,EACjBE,eAAgBA,GAElB,IAAKtU,EAAgBoV,EAAiBC,eAAiBd,EAAoB,CACzEa,EAAiBC,aAAerV,EAAgB4U,GAAiBA,EAAgBzS,SACnF,CACA,IAAKiT,EAAiBE,gBAAiB,CACrCF,EAAiBE,gBAAkBF,CACrC,CACA,OAAOA,CACT,CACAvV,EAASwU,mCAAqCA,EAC9C,OAAOxU,CACT,EAAG"}
1
+ {"version":3,"file":"MetaModelConverter.js","names":["sap","ui","define","AnnotationConverter","TypeGuards","StableIdHelper","_exports","prepareId","isSingleton","isServiceObject","isNavigationProperty","isEntityType","isEntitySet","isEntityContainer","DefaultEnvironmentCapabilities","Chart","MicroChart","UShell","IntentBasedNavigation","AppState","InsightsSupported","parsePropertyValue","annotationObject","propertyKey","currentTarget","annotationsLists","oCapabilities","value","typeOfAnnotation","type","Null","String","Bool","Int","Array","isArray","Collection","map","subAnnotationObject","subAnnotationObjectIndex","parseAnnotationObject","length","hasOwnProperty","$Path","undefined","Path","$Decimal","Decimal","parseFloat","$PropertyPath","PropertyPath","$NavigationPropertyPath","NavigationPropertyPath","$If","If","$And","And","$Or","Or","$Not","Not","$Eq","Eq","$Ne","Ne","$Gt","Gt","$Ge","Ge","$Lt","Lt","$Le","Le","$Apply","Apply","Function","$Function","$AnnotationPath","AnnotationPath","$EnumMember","EnumMember","Record","name","currentObjectTarget","parsedAnnotationObject","typeOfObject","parsedAnnotationCollection","collection","subAnnotationIndex","$Type","typeValue","propertyValues","Object","keys","forEach","startsWith","push","createAnnotationLists","getOrCreateAnnotationList","target","annotations","createReferenceFacetId","referenceFacet","id","ID","Target","removeChartAnnotations","filter","oRecord","indexOf","removeIBNAnnotations","handlePresentationVariant","annotationObjects","annotationTarget","annotationLists","_annotationObjects$Fi","outAnnotationObject","annotationObjectKey","annotationKey","Data","Visualizations","FilterExpressionRestrictions","some","FilterExpressionRestriction","_FilterExpressionRest","Property","includes","AllowedExpressions","currentOutAnnotationObject","annotationOfAnnotationSplit","split","annotationQualifierSplit","qualifier","term","currentAnnotationTarget","isCollection","typeofAnnotation","record","prepareProperty","propertyDefinition","entityTypeObject","propertyName","_type","fullyQualifiedName","maxLength","$MaxLength","precision","$Precision","scale","$Scale","nullable","$Nullable","prepareNavigationProperty","navPropertyDefinition","navPropertyName","referentialConstraint","$ReferentialConstraint","sourcePropertyName","sourceTypeName","sourceProperty","targetTypeName","targetProperty","navigationProperty","partner","$Partner","$isCollection","containsTarget","$ContainsTarget","prepareNavigationPropertyBinding","navigationPropertyBinding","entityContainerName","fromEntries","entries","_ref","path","prepareEntitySet","entitySetDefinition","entitySetName","$NavigationPropertyBinding","entityTypeName","prepareSingleton","singletonDefinition","singletonName","prepareActionImport","actionImport","actionImportName","actionName","$Action","prepareTypeDefinition","typeDefinition","typeName","namespacePrefix","typeObject","substring","underlyingType","$UnderlyingType","prepareComplexType","complexTypeDefinition","complexTypeName","complexTypeObject","properties","navigationProperties","complexTypeProperties","propertyNameOrNot","$kind","sort","a","b","complexTypeNavigationProperties","prepareEntityKeys","entityTypeDefinition","oMetaModelData","$Key","$BaseType","prepareEntityType","metaModelData","_metaModelData$$Annot","_metaModelData$$Annot2","_metaModelData$$Annot3","entityType","entityProperties","actions","key","property","entityKey","find","$Annotations","filterFacetAnnotation","headerInfoAnnotation","TypeName","TypeNamePlural","Title","Value","entityProperty","prepareAction","actionRawData","_overloadParameters$","_actionRawData$$Retur","overloadParameters","$Parameter","$IsBound","overload","parameter","join","parameters","isBound","isFunction","sourceType","returnType","$ReturnType","param","$Name","parseEntityContainer","entityContainerMetadata","schema","entityContainer","elementName","elementValue","entitySets","singletons","actionImports","parseAnnotations","capabilities","values","parseSchema","namespace","slice","entityTypes","complexTypes","typeDefinitions","associations","associationSets","parseMetaModelElement","subElementValue","parseMetaModel","metaModel","arguments","result","identification","version","references","lazy","getObject","mMetaModelMap","convertTypes","oMetaModel","sMetaModelId","parsedOutput","convert","oError","Error","getConvertedTypes","oContext","getModel","isA","deleteModelCacheData","convertMetaModelContext","oMetaModelContext","bIncludeVisitedObjects","oConvertedMetadata","sPath","getPath","aPathSplit","firstPart","beginIndex","targetEntitySet","entitySet","singleton","relativePath","localObjects","_sNavPropToCheck","relativeSplit","idx","currentEntitySet","sNavPropToCheck","replace","aNavProps","targetEntityType","sNavProp","targetNavProp","navProp","targetType","shift","oTarget","resolvePath","visitedObjects","concat","action","parameterName","endsWith","getInvolvedDataModelObjects","oEntitySetMetaModelContext","metaModelContext","targetEntitySetLocation","getInvolvedDataModelObjectFromPath","convertedTypes","onlyServiceObjects","dataModelObjects","visitedObject","rootEntitySet","currentEntityType","currentObject","navigatedPath","i","_currentEntitySet","boundEntitySet","startingEntitySet","startingIndex","requiredDataModelObjects","outDataModelPath","targetObject","contextLocation"],"sources":["MetaModelConverter-dbg.js"],"mappings":";;;;AAIAA,IAAIC,GAAGC,OAAO,CAAC,oDAAqD,iCAAkC,6BAA8B,SAAUC,EAAqBC,EAAYC,GAC7K,aAEA,IAAIC,EAAW,CAAC,EAChB,IAAIC,EAAYF,EAAeE,UAC/B,IAAIC,EAAcJ,EAAWI,YAC7B,IAAIC,EAAk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CACA,GAAI1U,EAAYyU,IAAkB7U,EAAY6U,GAAgB,CAC5D5B,EAAmB4B,EACnBD,EAAoB3B,EAAiB9F,UACvC,CACF,CACA,GAAI2H,EAAc7S,OAAS,EAAG,CAE5BgR,EAAmB7Q,SACrB,CACA,GAAIiS,GAA2BA,EAAwBa,oBAAsBP,EAAe,CAG1F,MAAMQ,EAAgBV,EAAiBpO,QAAQgO,EAAwBa,mBACvE,GAAIC,KAAmB,EAAG,CAExB,MAAMC,EAA2BX,EAAiBvE,MAAM,EAAGiF,GAC3Dd,EAAwBa,kBAAoBP,EAC5CN,EAAwBpI,qBAAuBmJ,EAAyBjP,OAAOjG,GAAsB4T,OAAOO,EAAwBpI,qBACtI,CACF,CACA,MAAMoJ,EAAmB,CACvBH,kBAAmBP,EACnBlC,gBAAiBQ,EACjBI,iBAAkBuB,EAClBU,aAAclB,EAAiBzO,OAC/BsG,uBACAsJ,gBAAiBlB,EACjBE,eAAgBA,GAElB,IAAKtU,EAAgBoV,EAAiBC,eAAiBd,EAAoB,CACzEa,EAAiBC,aAAerV,EAAgB4U,GAAiBA,EAAgBzS,SACnF,CACA,IAAKiT,EAAiBE,gBAAiB,CACrCF,EAAiBE,gBAAkBF,CACrC,CACA,OAAOA,CACT,CACAvV,EAASwU,mCAAqCA,EAC9C,OAAOxU,CACT,EAAG"}
@@ -807,7 +807,7 @@ function prepareEntityType(entityTypeDefinition: any, entityTypeName: string, na
807
807
  const headerInfoAnnotation = {
808
808
  $Type: `${UIAnnotationTypes.HeaderInfoType}`,
809
809
  TypeName: `${entityType.name}`,
810
- TypeNamePlural: `${entityType.name}`,
810
+ TypeNamePlural: "",
811
811
  Title: {
812
812
  $Type: `${UIAnnotationTypes.DataField}`,
813
813
  Value: {
@@ -4,7 +4,7 @@
4
4
  "id": "sap.fe.core.fpm",
5
5
  "type": "component",
6
6
  "applicationVersion": {
7
- "version": "1.117.2"
7
+ "version": "1.117.3"
8
8
  },
9
9
  "title": "Object Page",
10
10
  "tags": {
@@ -47,7 +47,7 @@ sap.ui.define(["sap/base/Log", "sap/fe/core/formatters/FPMFormatter", "sap/fe/co
47
47
  controls: [],
48
48
  elements: [],
49
49
  // eslint-disable-next-line no-template-curly-in-string
50
- version: "1.117.2",
50
+ version: "1.117.3",
51
51
  noLibraryCSS: true,
52
52
  extensions: {
53
53
  //Configuration used for rule loading of Support Assistant
@@ -372,7 +372,7 @@ sap.ui.predefine("sap/fe/core/converters/ManifestWrapper", ["sap/fe/core/convert
372
372
  * SAP UI development toolkit for HTML5 (SAPUI5)
373
373
  * (c) Copyright 2009-2023 SAP SE. All rights reserved
374
374
  */
375
- sap.ui.predefine("sap/fe/core/converters/MetaModelConverter", ["sap/fe/core/converters/common/AnnotationConverter","sap/fe/core/helpers/TypeGuards","../helpers/StableIdHelper"],function(e,t,n){"use strict";var i={};var o=n.prepareId;var a=t.isSingleton;var r=t.isServiceObject;var l=t.isNavigationProperty;var s=t.isEntityType;var p=t.isEntitySet;var y=t.isEntityContainer;const f={Chart:true,MicroChart:true,UShell:true,IntentBasedNavigation:true,AppState:true,InsightsSupported:false};i.DefaultEnvironmentCapabilities=f;function c(e,t,n,i,o){let a;const r=typeof e;if(e===null){a={type:"Null",Null:null}}else if(r==="string"){a={type:"String",String:e}}else if(r==="boolean"){a={type:"Bool",Bool:e}}else if(r==="number"){a={type:"Int",Int:e}}else if(Array.isArray(e)){a={type:"Collection",Collection:e.map((e,a)=>u(e,`${n}/${t}/${a}`,i,o))};if(e.length>0){if(e[0].hasOwnProperty("$PropertyPath")){a.Collection.type="PropertyPath"}else if(e[0].hasOwnProperty("$Path")){a.Collection.type="Path"}else if(e[0].hasOwnProperty("$NavigationPropertyPath")){a.Collection.type="NavigationPropertyPath"}else if(e[0].hasOwnProperty("$AnnotationPath")){a.Collection.type="AnnotationPath"}else if(e[0].hasOwnProperty("$Type")){a.Collection.type="Record"}else if(e[0].hasOwnProperty("$If")){a.Collection.type="If"}else if(e[0].hasOwnProperty("$Or")){a.Collection.type="Or"}else if(e[0].hasOwnProperty("$And")){a.Collection.type="And"}else if(e[0].hasOwnProperty("$Eq")){a.Collection.type="Eq"}else if(e[0].hasOwnProperty("$Ne")){a.Collection.type="Ne"}else if(e[0].hasOwnProperty("$Not")){a.Collection.type="Not"}else if(e[0].hasOwnProperty("$Gt")){a.Collection.type="Gt"}else if(e[0].hasOwnProperty("$Ge")){a.Collection.type="Ge"}else if(e[0].hasOwnProperty("$Lt")){a.Collection.type="Lt"}else if(e[0].hasOwnProperty("$Le")){a.Collection.type="Le"}else if(e[0].hasOwnProperty("$Apply")){a.Collection.type="Apply"}else if(typeof e[0]==="object"){a.Collection.type="Record"}else{a.Collection.type="String"}}}else if(e.$Path!==undefined){a={type:"Path",Path:e.$Path}}else if(e.$Decimal!==undefined){a={type:"Decimal",Decimal:parseFloat(e.$Decimal)}}else if(e.$PropertyPath!==undefined){a={type:"PropertyPath",PropertyPath:e.$PropertyPath}}else if(e.$NavigationPropertyPath!==undefined){a={type:"NavigationPropertyPath",NavigationPropertyPath:e.$NavigationPropertyPath}}else if(e.$If!==undefined){a={type:"If",If:e.$If}}else if(e.$And!==undefined){a={type:"And",And:e.$And}}else if(e.$Or!==undefined){a={type:"Or",Or:e.$Or}}else if(e.$Not!==undefined){a={type:"Not",Not:e.$Not}}else if(e.$Eq!==undefined){a={type:"Eq",Eq:e.$Eq}}else if(e.$Ne!==undefined){a={type:"Ne",Ne:e.$Ne}}else if(e.$Gt!==undefined){a={type:"Gt",Gt:e.$Gt}}else if(e.$Ge!==undefined){a={type:"Ge",Ge:e.$Ge}}else if(e.$Lt!==undefined){a={type:"Lt",Lt:e.$Lt}}else if(e.$Le!==undefined){a={type:"Le",Le:e.$Le}}else if(e.$Apply!==undefined){a={type:"Apply",Apply:e.$Apply,Function:e.$Function}}else if(e.$AnnotationPath!==undefined){a={type:"AnnotationPath",AnnotationPath:e.$AnnotationPath}}else if(e.$EnumMember!==undefined){a={type:"EnumMember",EnumMember:e.$EnumMember}}else{a={type:"Record",Record:u(e,n,i,o)}}return{name:t,value:a}}function u(e,t,n,i){let o={};const a=typeof e;if(e===null){o={type:"Null",Null:null}}else if(a==="string"){o={type:"String",String:e}}else if(a==="boolean"){o={type:"Bool",Bool:e}}else if(a==="number"){o={type:"Int",Int:e}}else if(e.$AnnotationPath!==undefined){o={type:"AnnotationPath",AnnotationPath:e.$AnnotationPath}}else if(e.$Path!==undefined){o={type:"Path",Path:e.$Path}}else if(e.$Decimal!==undefined){o={type:"Decimal",Decimal:parseFloat(e.$Decimal)}}else if(e.$PropertyPath!==undefined){o={type:"PropertyPath",PropertyPath:e.$PropertyPath}}else if(e.$If!==undefined){o={type:"If",If:e.$If}}else if(e.$And!==undefined){o={type:"And",And:e.$And}}else if(e.$Or!==undefined){o={type:"Or",Or:e.$Or}}else if(e.$Not!==undefined){o={type:"Not",Not:e.$Not}}else if(e.$Eq!==undefined){o={type:"Eq",Eq:e.$Eq}}else if(e.$Ne!==undefined){o={type:"Ne",Ne:e.$Ne}}else if(e.$Gt!==undefined){o={type:"Gt",Gt:e.$Gt}}else if(e.$Ge!==undefined){o={type:"Ge",Ge:e.$Ge}}else if(e.$Lt!==undefined){o={type:"Lt",Lt:e.$Lt}}else if(e.$Le!==undefined){o={type:"Le",Le:e.$Le}}else if(e.$Apply!==undefined){o={type:"Apply",Apply:e.$Apply,Function:e.$Function}}else if(e.$NavigationPropertyPath!==undefined){o={type:"NavigationPropertyPath",NavigationPropertyPath:e.$NavigationPropertyPath}}else if(e.$EnumMember!==undefined){o={type:"EnumMember",EnumMember:e.$EnumMember}}else if(Array.isArray(e)){const a=o;a.collection=e.map((e,o)=>u(e,`${t}/${o}`,n,i));if(e.length>0){if(e[0].hasOwnProperty("$PropertyPath")){a.collection.type="PropertyPath"}else if(e[0].hasOwnProperty("$Path")){a.collection.type="Path"}else if(e[0].hasOwnProperty("$NavigationPropertyPath")){a.collection.type="NavigationPropertyPath"}else if(e[0].hasOwnProperty("$AnnotationPath")){a.collection.type="AnnotationPath"}else if(e[0].hasOwnProperty("$Type")){a.collection.type="Record"}else if(e[0].hasOwnProperty("$If")){a.collection.type="If"}else if(e[0].hasOwnProperty("$And")){a.collection.type="And"}else if(e[0].hasOwnProperty("$Or")){a.collection.type="Or"}else if(e[0].hasOwnProperty("$Eq")){a.collection.type="Eq"}else if(e[0].hasOwnProperty("$Ne")){a.collection.type="Ne"}else if(e[0].hasOwnProperty("$Not")){a.collection.type="Not"}else if(e[0].hasOwnProperty("$Gt")){a.collection.type="Gt"}else if(e[0].hasOwnProperty("$Ge")){a.collection.type="Ge"}else if(e[0].hasOwnProperty("$Lt")){a.collection.type="Lt"}else if(e[0].hasOwnProperty("$Le")){a.collection.type="Le"}else if(e[0].hasOwnProperty("$Apply")){a.collection.type="Apply"}else if(typeof e[0]==="object"){a.collection.type="Record"}else{a.collection.type="String"}}}else{if(e.$Type){const t=e.$Type;o.type=t}const a=[];Object.keys(e).forEach(o=>{if(o!=="$Type"&&o!=="$If"&&o!=="$Apply"&&o!=="$And"&&o!=="$Or"&&o!=="$Ne"&&o!=="$Gt"&&o!=="$Ge"&&o!=="$Lt"&&o!=="$Le"&&o!=="$Not"&&o!=="$Eq"&&!o.startsWith("@")){a.push(c(e[o],o,t,n,i))}else if(o.startsWith("@")){v({[o]:e[o]},t,n,i)}});o.propertyValues=a}return o}function $(e,t){if(!t.hasOwnProperty(e)){t[e]={target:e,annotations:[]}}return t[e]}function d(e){const t=e.ID??e.Target.$AnnotationPath;return t?o(t):t}function h(e){return e.filter(e=>{if(e.Target&&e.Target.$AnnotationPath){return e.Target.$AnnotationPath.indexOf(`@${"com.sap.vocabularies.UI.v1.Chart"}`)===-1}else{return true}})}function P(e){return e.filter(e=>e.$Type!=="com.sap.vocabularies.UI.v1.DataFieldForIntentBasedNavigation")}function m(e){return e.filter(e=>e.$AnnotationPath!==`@${"com.sap.vocabularies.UI.v1.Chart"}`)}function v(e,t,n,i){var o;if(Object.keys(e).length===0){return}const a=$(t,n);if(!i.MicroChart){delete e[`@${"com.sap.vocabularies.UI.v1.Chart"}`]}for(const r in e){let l=r;let s=e[l];switch(l){case`@${"com.sap.vocabularies.UI.v1.HeaderFacets"}`:if(!i.MicroChart){s=h(s);e[l]=s}break;case`@${"com.sap.vocabularies.UI.v1.Identification"}`:if(!i.IntentBasedNavigation){s=P(s);e[l]=s}break;case`@${"com.sap.vocabularies.UI.v1.LineItem"}`:if(!i.IntentBasedNavigation){s=P(s);e[l]=s}if(!i.MicroChart){s=h(s);e[l]=s}break;case`@${"com.sap.vocabularies.UI.v1.FieldGroup"}`:if(!i.IntentBasedNavigation){s.Data=P(s.Data);e[l]=s}if(!i.MicroChart){s.Data=h(s.Data);e[l]=s}break;case`@${"com.sap.vocabularies.UI.v1.PresentationVariant"}`:if(!i.Chart&&s.Visualizations){s.Visualizations=m(s.Visualizations);e[l]=s}break;case`@com.sap.vocabularies.Common.v1.DraftRoot`:if(e[`@Org.OData.Capabilities.V1.FilterRestrictions`]&&(o=e[`@Org.OData.Capabilities.V1.FilterRestrictions`].FilterExpressionRestrictions)!==null&&o!==void 0&&o.length){if(!e[`@Org.OData.Capabilities.V1.FilterRestrictions`].FilterExpressionRestrictions.some(e=>{var t;return e===null||e===void 0?void 0:(t=e.Property)===null||t===void 0?void 0:t.$PropertyPath.includes("DraftAdministrativeData")})){e[`@Org.OData.Capabilities.V1.FilterRestrictions`].FilterExpressionRestrictions.push({$Type:"Org.OData.Capabilities.V1.FilterExpressionRestrictionType",AllowedExpressions:"SingleRange",Property:{$PropertyPath:"DraftAdministrativeData/CreationDateTime"}},{$Type:"Org.OData.Capabilities.V1.FilterExpressionRestrictionType",AllowedExpressions:"SingleRange",Property:{$PropertyPath:"DraftAdministrativeData/LastChangeDateTime"}})}}break;default:break}let p=a;const y=l.split("@");if(y.length>2){p=$(`${t}@${y[1]}`,n);l=y[2]}else{l=y[1]}const f=l.split("#");const d=f[1];l=f[0];const g={term:l,qualifier:d};let N=`${t}@${g.term}`;if(d){N+=`#${d}`}let O=false;const b=typeof s;if(s===null){g.value={type:"Null"}}else if(b==="string"){g.value={type:"String",String:s}}else if(b==="boolean"){g.value={type:"Bool",Bool:s}}else if(b==="number"){g.value={type:"Int",Int:s}}else if(s.$If!==undefined){g.value={type:"If",If:s.$If}}else if(s.$And!==undefined){g.value={type:"And",And:s.$And}}else if(s.$Or!==undefined){g.value={type:"Or",Or:s.$Or}}else if(s.$Not!==undefined){g.value={type:"Not",Not:s.$Not}}else if(s.$Eq!==undefined){g.value={type:"Eq",Eq:s.$Eq}}else if(s.$Ne!==undefined){g.value={type:"Ne",Ne:s.$Ne}}else if(s.$Gt!==undefined){g.value={type:"Gt",Gt:s.$Gt}}else if(s.$Ge!==undefined){g.value={type:"Ge",Ge:s.$Ge}}else if(s.$Lt!==undefined){g.value={type:"Lt",Lt:s.$Lt}}else if(s.$Le!==undefined){g.value={type:"Le",Le:s.$Le}}else if(s.$Apply!==undefined){g.value={type:"Apply",Apply:s.$Apply,Function:s.$Function}}else if(s.$Path!==undefined){g.value={type:"Path",Path:s.$Path}}else if(s.$AnnotationPath!==undefined){g.value={type:"AnnotationPath",AnnotationPath:s.$AnnotationPath}}else if(s.$Decimal!==undefined){g.value={type:"Decimal",Decimal:parseFloat(s.$Decimal)}}else if(s.$EnumMember!==undefined){g.value={type:"EnumMember",EnumMember:s.$EnumMember}}else if(Array.isArray(s)){O=true;g.collection=s.map((e,t)=>u(e,`${N}/${t}`,n,i));if(s.length>0){if(s[0].hasOwnProperty("$PropertyPath")){g.collection.type="PropertyPath"}else if(s[0].hasOwnProperty("$Path")){g.collection.type="Path"}else if(s[0].hasOwnProperty("$NavigationPropertyPath")){g.collection.type="NavigationPropertyPath"}else if(s[0].hasOwnProperty("$AnnotationPath")){g.collection.type="AnnotationPath"}else if(s[0].hasOwnProperty("$Type")){g.collection.type="Record"}else if(s[0].hasOwnProperty("$If")){g.collection.type="If"}else if(s[0].hasOwnProperty("$Or")){g.collection.type="Or"}else if(s[0].hasOwnProperty("$Eq")){g.collection.type="Eq"}else if(s[0].hasOwnProperty("$Ne")){g.collection.type="Ne"}else if(s[0].hasOwnProperty("$Not")){g.collection.type="Not"}else if(s[0].hasOwnProperty("$Gt")){g.collection.type="Gt"}else if(s[0].hasOwnProperty("$Ge")){g.collection.type="Ge"}else if(s[0].hasOwnProperty("$Lt")){g.collection.type="Lt"}else if(s[0].hasOwnProperty("$Le")){g.collection.type="Le"}else if(s[0].hasOwnProperty("$And")){g.collection.type="And"}else if(s[0].hasOwnProperty("$Apply")){g.collection.type="Apply"}else if(typeof s[0]==="object"){g.collection.type="Record"}else{g.collection.type="String"}}}else{const e={propertyValues:[]};if(s.$Type){const t=s.$Type;e.type=`${t}`}const t=[];for(const e in s){if(e!=="$Type"&&!e.startsWith("@")){t.push(c(s[e],e,N,n,i))}else if(e.startsWith("@")){v({[e]:s[e]},N,n,i)}}e.propertyValues=t;g.record=e}g.isCollection=O;p.annotations.push(g)}}function g(e,t,n){return{_type:"Property",name:n,fullyQualifiedName:`${t.fullyQualifiedName}/${n}`,type:e.$Type,maxLength:e.$MaxLength,precision:e.$Precision,scale:e.$Scale,nullable:e.$Nullable}}function N(e,t,n){let i=[];if(e.$ReferentialConstraint){i=Object.keys(e.$ReferentialConstraint).map(n=>({sourceTypeName:t.name,sourceProperty:n,targetTypeName:e.$Type,targetProperty:e.$ReferentialConstraint[n]}))}const o={_type:"NavigationProperty",name:n,fullyQualifiedName:`${t.fullyQualifiedName}/${n}`,partner:e.$Partner,isCollection:e.$isCollection?e.$isCollection:false,containsTarget:e.$ContainsTarget,targetTypeName:e.$Type,referentialConstraint:i};return o}function O(e,t){if(e){return Object.fromEntries(Object.entries(e).map(e=>{let[n,i]=e;return[n,`${t}/${i}`]}))}return{}}function b(e,t,n){return{_type:"EntitySet",name:t,navigationPropertyBinding:O(e.$NavigationPropertyBinding,n),entityTypeName:e.$Type,fullyQualifiedName:`${n}/${t}`}}function A(e,t,n){return{_type:"Singleton",name:t,navigationPropertyBinding:O(e.$NavigationPropertyBinding,n),entityTypeName:e.$Type,fullyQualifiedName:`${n}/${t}`,nullable:true}}function T(e,t,n){return{_type:"ActionImport",name:t,fullyQualifiedName:`${n}/${t}`,actionName:e.$Action}}function C(e,t,n){const i={_type:"TypeDefinition",name:t.substring(n.length),fullyQualifiedName:t,underlyingType:e.$UnderlyingType};return i}function I(e,t,n){const i={_type:"ComplexType",name:t.substring(n.length),fullyQualifiedName:t,properties:[],navigationProperties:[]};const o=Object.keys(e).filter(t=>{if(t!="$Key"&&t!="$kind"){return e[t].$kind==="Property"}}).sort((e,t)=>e>t?1:-1).map(t=>g(e[t],i,t));i.properties=o;const a=Object.keys(e).filter(t=>{if(t!="$Key"&&t!="$kind"){return e[t].$kind==="NavigationProperty"}}).sort((e,t)=>e>t?1:-1).map(t=>N(e[t],i,t));i.navigationProperties=a;return i}function w(e,t){if(!e.$Key&&e.$BaseType){return w(t[e.$BaseType],t)}return e.$Key??[]}function E(e,t,n,i){var o,a,r;const l={_type:"EntityType",name:t.substring(n.length),fullyQualifiedName:t,keys:[],entityProperties:[],navigationProperties:[],actions:{}};for(const t in e){const n=e[t];switch(n.$kind){case"Property":const e=g(n,l,t);l.entityProperties.push(e);break;case"NavigationProperty":const i=N(n,l,t);l.navigationProperties.push(i);break}}l.keys=w(e,i).map(e=>l.entityProperties.find(t=>t.name===e)).filter(e=>e!==undefined);(o=i.$Annotations[l.fullyQualifiedName])===null||o===void 0?void 0:(a=o[`@${"com.sap.vocabularies.UI.v1.FilterFacets"}`])===null||a===void 0?void 0:a.forEach(e=>{e.ID=d(e)});if(!!(l!==null&&l!==void 0&&l.keys.length)&&i.$Annotations[l.fullyQualifiedName]&&!((r=i.$Annotations[l.fullyQualifiedName])!==null&&r!==void 0&&r[`@${"com.sap.vocabularies.UI.v1.HeaderInfo"}`])){const e={$Type:`${"com.sap.vocabularies.UI.v1.HeaderInfoType"}`,TypeName:`${l.name}`,TypeNamePlural:`${l.name}`,Title:{$Type:`${"com.sap.vocabularies.UI.v1.DataField"}`,Value:{$Path:`${l.keys[0].name}`}}};i.$Annotations[l.fullyQualifiedName][`@${"com.sap.vocabularies.UI.v1.HeaderInfo"}`]=e}for(const e of l.entityProperties){if(!i.$Annotations[e.fullyQualifiedName]){i.$Annotations[e.fullyQualifiedName]={}}if(!i.$Annotations[e.fullyQualifiedName][`@${"com.sap.vocabularies.UI.v1.DataFieldDefault"}`]){i.$Annotations[e.fullyQualifiedName][`@${"com.sap.vocabularies.UI.v1.DataFieldDefault"}`]={$Type:"com.sap.vocabularies.UI.v1.DataField",Value:{$Path:e.name}}}}return l}function D(e,t,n){var i,o;let a;if(e.$kind==="Function"){a=e.$Parameter??[]}else{a=e.$IsBound?[e.$Parameter[0]]:[]}const r=a.map(e=>e.$isCollection?`Collection(${e.$Type})`:e.$Type).join(",");const l=`${t}(${r})`;const s=e.$Parameter??[];return{_type:"Action",name:t.substring(n.length),fullyQualifiedName:l,isBound:e.$IsBound??false,isFunction:e.$kind==="Function",sourceType:((i=a[0])===null||i===void 0?void 0:i.$Type)??"",returnType:((o=e.$ReturnType)===null||o===void 0?void 0:o.$Type)??"",parameters:s.map(e=>({_type:"ActionParameter",fullyQualifiedName:`${l}/${e.$Name}`,isCollection:e.$isCollection??false,name:e.$Name,type:e.$Type,nullable:e.$Nullable??false,maxLength:e.$MaxLength,precision:e.$Precision,scale:e.$Scale}))}}function L(e,t,n,i){i.entityContainer={_type:"EntityContainer",name:t.substring(e.length),fullyQualifiedName:t};for(const e in n){const o=n[e];switch(o.$kind){case"EntitySet":i.entitySets.push(b(o,e,t));break;case"Singleton":i.singletons.push(A(o,e,t));break;case"ActionImport":i.actionImports.push(T(o,e,t));break}}}function G(e,t){const n={};for(const i in e){v(e[i],i,n,t)}return Object.values(n)}function k(e){const t=Object.keys(e).find(t=>e[t].$kind==="Schema")??"";const n={namespace:t.slice(0,-1),entityContainer:{_type:"EntityContainer",name:"",fullyQualifiedName:""},entitySets:[],entityTypes:[],complexTypes:[],typeDefinitions:[],singletons:[],associations:[],associationSets:[],actions:[],actionImports:[],annotations:{}};const i=(i,o)=>{switch(o.$kind){case"EntityContainer":L(t,i,o,n);break;case"Action":case"Function":n.actions.push(D(o,i,t));break;case"EntityType":n.entityTypes.push(E(o,i,t,e));break;case"ComplexType":n.complexTypes.push(I(o,i,t));break;case"TypeDefinition":n.typeDefinitions.push(C(o,i,t));break}};for(const t in e){const n=e[t];if(Array.isArray(n)){for(const e of n){i(t,e)}}else{i(t,n)}}return n}function S(t){let n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:f;const i={identification:"metamodelResult",version:"4.0",references:[]};e.lazy(i,"schema",()=>{const i=t.getObject("/$");const o=k(i);e.lazy(o.annotations,"metamodelResult",()=>G(i.$Annotations,n));return o});return i}i.parseMetaModel=S;const F={};function M(t,n){const i=t.id;if(!F.hasOwnProperty(i)){const o=S(t,n);try{F[i]=e.convert(o)}catch(e){throw new Error(e)}}return F[i]}i.convertTypes=M;function j(e){const t=e.getModel();if(!t.isA("sap.ui.model.odata.v4.ODataMetaModel")){throw new Error("This should only be called on a ODataMetaModel")}return M(t)}i.getConvertedTypes=j;function B(e){delete F[e.id]}i.deleteModelCacheData=B;function R(e){let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;const n=M(e.getModel());const i=e.getPath();const o=i.split("/");let a=o[1];let r=2;if(n.entityContainer.fullyQualifiedName===a){a=o[2];r++}let l=n.entitySets.find(e=>e.name===a);if(!l){l=n.singletons.find(e=>e.name===a)}let s=o.slice(r).join("/");const p=[l];while(s&&s.length>0&&s.startsWith("$NavigationPropertyBinding")){var y;let e=s.split("/");let t=0;let n,i;e=e.slice(1);while(!n&&e.length>t){if(e[t]!=="$NavigationPropertyBinding"){i=e.slice(0,t+1).join("/").replace("/$NavigationPropertyBinding","");n=l&&l.navigationPropertyBinding[i]}t++}if(!n){i=e[0]}const o=((y=i)===null||y===void 0?void 0:y.split("/"))||[];let a=l&&l.entityType;for(const e of o){const t=a&&a.navigationProperties.find(t=>t.name===e);if(t){p.push(t);a=t.targetType}else{break}}l=l&&n||l&&l.navigationPropertyBinding[e[0]];if(l){p.push(l)}e=e.slice(o.length||1);if(e.length&&e[0]==="$"){e.shift()}s=e.join("/")}if(s.startsWith("$Type")){if(s.startsWith("$Type@")){s=s.replace("$Type","")}else{s=o.slice(3).join("/")}}if(l&&s.length){const e=l.entityType.resolvePath(s,t);if(e){if(t){e.visitedObjects=p.concat(e.visitedObjects)}}else if(l.entityType&&l.entityType.actions){const e=l.entityType&&l.entityType.actions;const t=s.split("/");if(e[t[0]]){const n=e[t[0]];if(t[1]&&n.parameters){const e=t[1];return n.parameters.find(t=>t.fullyQualifiedName.endsWith(`/${e}`))}else if(s.length===1){return n}}}return e}else{if(t){return{target:l,visitedObjects:p}}return l}}i.convertMetaModelContext=R;function Q(e,t){const n=M(e.getModel());const i=R(e,true);let o;if(t&&t.getPath()!=="/"){o=Q(t)}return x(i,n,o)}i.getInvolvedDataModelObjects=Q;function x(e,t,n){let i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:false;const o=e.visitedObjects.filter(e=>r(e)&&!s(e)&&!y(e));if(r(e.target)&&!s(e.target)&&o[o.length-1]!==e.target&&!i){o.push(e.target)}const f=[];const c=o[0];let u=c;let $=c.entityType;let d;let h=[];for(let e=1;e<o.length;e++){d=o[e];if(l(d)){var P;h.push(d.name);f.push(d);$=d.targetType;const e=(P=u)===null||P===void 0?void 0:P.navigationPropertyBinding[h.join("/")];if(e!==undefined){u=e;h=[]}}if(p(d)||a(d)){u=d;$=u.entityType}}if(h.length>0){u=undefined}if(n&&n.startingEntitySet!==c){const e=o.indexOf(n.startingEntitySet);if(e!==-1){const t=o.slice(0,e);n.startingEntitySet=c;n.navigationProperties=t.filter(l).concat(n.navigationProperties)}}const m={startingEntitySet:c,targetEntitySet:u,targetEntityType:$,targetObject:e.target,navigationProperties:f,contextLocation:n,convertedTypes:t};if(!r(m.targetObject)&&i){m.targetObject=r(d)?d:undefined}if(!m.contextLocation){m.contextLocation=m}return m}i.getInvolvedDataModelObjectFromPath=x;return i},false);
375
+ sap.ui.predefine("sap/fe/core/converters/MetaModelConverter", ["sap/fe/core/converters/common/AnnotationConverter","sap/fe/core/helpers/TypeGuards","../helpers/StableIdHelper"],function(e,t,n){"use strict";var i={};var o=n.prepareId;var a=t.isSingleton;var r=t.isServiceObject;var l=t.isNavigationProperty;var s=t.isEntityType;var p=t.isEntitySet;var y=t.isEntityContainer;const f={Chart:true,MicroChart:true,UShell:true,IntentBasedNavigation:true,AppState:true,InsightsSupported:false};i.DefaultEnvironmentCapabilities=f;function c(e,t,n,i,o){let a;const r=typeof e;if(e===null){a={type:"Null",Null:null}}else if(r==="string"){a={type:"String",String:e}}else if(r==="boolean"){a={type:"Bool",Bool:e}}else if(r==="number"){a={type:"Int",Int:e}}else if(Array.isArray(e)){a={type:"Collection",Collection:e.map((e,a)=>u(e,`${n}/${t}/${a}`,i,o))};if(e.length>0){if(e[0].hasOwnProperty("$PropertyPath")){a.Collection.type="PropertyPath"}else if(e[0].hasOwnProperty("$Path")){a.Collection.type="Path"}else if(e[0].hasOwnProperty("$NavigationPropertyPath")){a.Collection.type="NavigationPropertyPath"}else if(e[0].hasOwnProperty("$AnnotationPath")){a.Collection.type="AnnotationPath"}else if(e[0].hasOwnProperty("$Type")){a.Collection.type="Record"}else if(e[0].hasOwnProperty("$If")){a.Collection.type="If"}else if(e[0].hasOwnProperty("$Or")){a.Collection.type="Or"}else if(e[0].hasOwnProperty("$And")){a.Collection.type="And"}else if(e[0].hasOwnProperty("$Eq")){a.Collection.type="Eq"}else if(e[0].hasOwnProperty("$Ne")){a.Collection.type="Ne"}else if(e[0].hasOwnProperty("$Not")){a.Collection.type="Not"}else if(e[0].hasOwnProperty("$Gt")){a.Collection.type="Gt"}else if(e[0].hasOwnProperty("$Ge")){a.Collection.type="Ge"}else if(e[0].hasOwnProperty("$Lt")){a.Collection.type="Lt"}else if(e[0].hasOwnProperty("$Le")){a.Collection.type="Le"}else if(e[0].hasOwnProperty("$Apply")){a.Collection.type="Apply"}else if(typeof e[0]==="object"){a.Collection.type="Record"}else{a.Collection.type="String"}}}else if(e.$Path!==undefined){a={type:"Path",Path:e.$Path}}else if(e.$Decimal!==undefined){a={type:"Decimal",Decimal:parseFloat(e.$Decimal)}}else if(e.$PropertyPath!==undefined){a={type:"PropertyPath",PropertyPath:e.$PropertyPath}}else if(e.$NavigationPropertyPath!==undefined){a={type:"NavigationPropertyPath",NavigationPropertyPath:e.$NavigationPropertyPath}}else if(e.$If!==undefined){a={type:"If",If:e.$If}}else if(e.$And!==undefined){a={type:"And",And:e.$And}}else if(e.$Or!==undefined){a={type:"Or",Or:e.$Or}}else if(e.$Not!==undefined){a={type:"Not",Not:e.$Not}}else if(e.$Eq!==undefined){a={type:"Eq",Eq:e.$Eq}}else if(e.$Ne!==undefined){a={type:"Ne",Ne:e.$Ne}}else if(e.$Gt!==undefined){a={type:"Gt",Gt:e.$Gt}}else if(e.$Ge!==undefined){a={type:"Ge",Ge:e.$Ge}}else if(e.$Lt!==undefined){a={type:"Lt",Lt:e.$Lt}}else if(e.$Le!==undefined){a={type:"Le",Le:e.$Le}}else if(e.$Apply!==undefined){a={type:"Apply",Apply:e.$Apply,Function:e.$Function}}else if(e.$AnnotationPath!==undefined){a={type:"AnnotationPath",AnnotationPath:e.$AnnotationPath}}else if(e.$EnumMember!==undefined){a={type:"EnumMember",EnumMember:e.$EnumMember}}else{a={type:"Record",Record:u(e,n,i,o)}}return{name:t,value:a}}function u(e,t,n,i){let o={};const a=typeof e;if(e===null){o={type:"Null",Null:null}}else if(a==="string"){o={type:"String",String:e}}else if(a==="boolean"){o={type:"Bool",Bool:e}}else if(a==="number"){o={type:"Int",Int:e}}else if(e.$AnnotationPath!==undefined){o={type:"AnnotationPath",AnnotationPath:e.$AnnotationPath}}else if(e.$Path!==undefined){o={type:"Path",Path:e.$Path}}else if(e.$Decimal!==undefined){o={type:"Decimal",Decimal:parseFloat(e.$Decimal)}}else if(e.$PropertyPath!==undefined){o={type:"PropertyPath",PropertyPath:e.$PropertyPath}}else if(e.$If!==undefined){o={type:"If",If:e.$If}}else if(e.$And!==undefined){o={type:"And",And:e.$And}}else if(e.$Or!==undefined){o={type:"Or",Or:e.$Or}}else if(e.$Not!==undefined){o={type:"Not",Not:e.$Not}}else if(e.$Eq!==undefined){o={type:"Eq",Eq:e.$Eq}}else if(e.$Ne!==undefined){o={type:"Ne",Ne:e.$Ne}}else if(e.$Gt!==undefined){o={type:"Gt",Gt:e.$Gt}}else if(e.$Ge!==undefined){o={type:"Ge",Ge:e.$Ge}}else if(e.$Lt!==undefined){o={type:"Lt",Lt:e.$Lt}}else if(e.$Le!==undefined){o={type:"Le",Le:e.$Le}}else if(e.$Apply!==undefined){o={type:"Apply",Apply:e.$Apply,Function:e.$Function}}else if(e.$NavigationPropertyPath!==undefined){o={type:"NavigationPropertyPath",NavigationPropertyPath:e.$NavigationPropertyPath}}else if(e.$EnumMember!==undefined){o={type:"EnumMember",EnumMember:e.$EnumMember}}else if(Array.isArray(e)){const a=o;a.collection=e.map((e,o)=>u(e,`${t}/${o}`,n,i));if(e.length>0){if(e[0].hasOwnProperty("$PropertyPath")){a.collection.type="PropertyPath"}else if(e[0].hasOwnProperty("$Path")){a.collection.type="Path"}else if(e[0].hasOwnProperty("$NavigationPropertyPath")){a.collection.type="NavigationPropertyPath"}else if(e[0].hasOwnProperty("$AnnotationPath")){a.collection.type="AnnotationPath"}else if(e[0].hasOwnProperty("$Type")){a.collection.type="Record"}else if(e[0].hasOwnProperty("$If")){a.collection.type="If"}else if(e[0].hasOwnProperty("$And")){a.collection.type="And"}else if(e[0].hasOwnProperty("$Or")){a.collection.type="Or"}else if(e[0].hasOwnProperty("$Eq")){a.collection.type="Eq"}else if(e[0].hasOwnProperty("$Ne")){a.collection.type="Ne"}else if(e[0].hasOwnProperty("$Not")){a.collection.type="Not"}else if(e[0].hasOwnProperty("$Gt")){a.collection.type="Gt"}else if(e[0].hasOwnProperty("$Ge")){a.collection.type="Ge"}else if(e[0].hasOwnProperty("$Lt")){a.collection.type="Lt"}else if(e[0].hasOwnProperty("$Le")){a.collection.type="Le"}else if(e[0].hasOwnProperty("$Apply")){a.collection.type="Apply"}else if(typeof e[0]==="object"){a.collection.type="Record"}else{a.collection.type="String"}}}else{if(e.$Type){const t=e.$Type;o.type=t}const a=[];Object.keys(e).forEach(o=>{if(o!=="$Type"&&o!=="$If"&&o!=="$Apply"&&o!=="$And"&&o!=="$Or"&&o!=="$Ne"&&o!=="$Gt"&&o!=="$Ge"&&o!=="$Lt"&&o!=="$Le"&&o!=="$Not"&&o!=="$Eq"&&!o.startsWith("@")){a.push(c(e[o],o,t,n,i))}else if(o.startsWith("@")){v({[o]:e[o]},t,n,i)}});o.propertyValues=a}return o}function $(e,t){if(!t.hasOwnProperty(e)){t[e]={target:e,annotations:[]}}return t[e]}function d(e){const t=e.ID??e.Target.$AnnotationPath;return t?o(t):t}function h(e){return e.filter(e=>{if(e.Target&&e.Target.$AnnotationPath){return e.Target.$AnnotationPath.indexOf(`@${"com.sap.vocabularies.UI.v1.Chart"}`)===-1}else{return true}})}function P(e){return e.filter(e=>e.$Type!=="com.sap.vocabularies.UI.v1.DataFieldForIntentBasedNavigation")}function m(e){return e.filter(e=>e.$AnnotationPath!==`@${"com.sap.vocabularies.UI.v1.Chart"}`)}function v(e,t,n,i){var o;if(Object.keys(e).length===0){return}const a=$(t,n);if(!i.MicroChart){delete e[`@${"com.sap.vocabularies.UI.v1.Chart"}`]}for(const r in e){let l=r;let s=e[l];switch(l){case`@${"com.sap.vocabularies.UI.v1.HeaderFacets"}`:if(!i.MicroChart){s=h(s);e[l]=s}break;case`@${"com.sap.vocabularies.UI.v1.Identification"}`:if(!i.IntentBasedNavigation){s=P(s);e[l]=s}break;case`@${"com.sap.vocabularies.UI.v1.LineItem"}`:if(!i.IntentBasedNavigation){s=P(s);e[l]=s}if(!i.MicroChart){s=h(s);e[l]=s}break;case`@${"com.sap.vocabularies.UI.v1.FieldGroup"}`:if(!i.IntentBasedNavigation){s.Data=P(s.Data);e[l]=s}if(!i.MicroChart){s.Data=h(s.Data);e[l]=s}break;case`@${"com.sap.vocabularies.UI.v1.PresentationVariant"}`:if(!i.Chart&&s.Visualizations){s.Visualizations=m(s.Visualizations);e[l]=s}break;case`@com.sap.vocabularies.Common.v1.DraftRoot`:if(e[`@Org.OData.Capabilities.V1.FilterRestrictions`]&&(o=e[`@Org.OData.Capabilities.V1.FilterRestrictions`].FilterExpressionRestrictions)!==null&&o!==void 0&&o.length){if(!e[`@Org.OData.Capabilities.V1.FilterRestrictions`].FilterExpressionRestrictions.some(e=>{var t;return e===null||e===void 0?void 0:(t=e.Property)===null||t===void 0?void 0:t.$PropertyPath.includes("DraftAdministrativeData")})){e[`@Org.OData.Capabilities.V1.FilterRestrictions`].FilterExpressionRestrictions.push({$Type:"Org.OData.Capabilities.V1.FilterExpressionRestrictionType",AllowedExpressions:"SingleRange",Property:{$PropertyPath:"DraftAdministrativeData/CreationDateTime"}},{$Type:"Org.OData.Capabilities.V1.FilterExpressionRestrictionType",AllowedExpressions:"SingleRange",Property:{$PropertyPath:"DraftAdministrativeData/LastChangeDateTime"}})}}break;default:break}let p=a;const y=l.split("@");if(y.length>2){p=$(`${t}@${y[1]}`,n);l=y[2]}else{l=y[1]}const f=l.split("#");const d=f[1];l=f[0];const g={term:l,qualifier:d};let N=`${t}@${g.term}`;if(d){N+=`#${d}`}let O=false;const b=typeof s;if(s===null){g.value={type:"Null"}}else if(b==="string"){g.value={type:"String",String:s}}else if(b==="boolean"){g.value={type:"Bool",Bool:s}}else if(b==="number"){g.value={type:"Int",Int:s}}else if(s.$If!==undefined){g.value={type:"If",If:s.$If}}else if(s.$And!==undefined){g.value={type:"And",And:s.$And}}else if(s.$Or!==undefined){g.value={type:"Or",Or:s.$Or}}else if(s.$Not!==undefined){g.value={type:"Not",Not:s.$Not}}else if(s.$Eq!==undefined){g.value={type:"Eq",Eq:s.$Eq}}else if(s.$Ne!==undefined){g.value={type:"Ne",Ne:s.$Ne}}else if(s.$Gt!==undefined){g.value={type:"Gt",Gt:s.$Gt}}else if(s.$Ge!==undefined){g.value={type:"Ge",Ge:s.$Ge}}else if(s.$Lt!==undefined){g.value={type:"Lt",Lt:s.$Lt}}else if(s.$Le!==undefined){g.value={type:"Le",Le:s.$Le}}else if(s.$Apply!==undefined){g.value={type:"Apply",Apply:s.$Apply,Function:s.$Function}}else if(s.$Path!==undefined){g.value={type:"Path",Path:s.$Path}}else if(s.$AnnotationPath!==undefined){g.value={type:"AnnotationPath",AnnotationPath:s.$AnnotationPath}}else if(s.$Decimal!==undefined){g.value={type:"Decimal",Decimal:parseFloat(s.$Decimal)}}else if(s.$EnumMember!==undefined){g.value={type:"EnumMember",EnumMember:s.$EnumMember}}else if(Array.isArray(s)){O=true;g.collection=s.map((e,t)=>u(e,`${N}/${t}`,n,i));if(s.length>0){if(s[0].hasOwnProperty("$PropertyPath")){g.collection.type="PropertyPath"}else if(s[0].hasOwnProperty("$Path")){g.collection.type="Path"}else if(s[0].hasOwnProperty("$NavigationPropertyPath")){g.collection.type="NavigationPropertyPath"}else if(s[0].hasOwnProperty("$AnnotationPath")){g.collection.type="AnnotationPath"}else if(s[0].hasOwnProperty("$Type")){g.collection.type="Record"}else if(s[0].hasOwnProperty("$If")){g.collection.type="If"}else if(s[0].hasOwnProperty("$Or")){g.collection.type="Or"}else if(s[0].hasOwnProperty("$Eq")){g.collection.type="Eq"}else if(s[0].hasOwnProperty("$Ne")){g.collection.type="Ne"}else if(s[0].hasOwnProperty("$Not")){g.collection.type="Not"}else if(s[0].hasOwnProperty("$Gt")){g.collection.type="Gt"}else if(s[0].hasOwnProperty("$Ge")){g.collection.type="Ge"}else if(s[0].hasOwnProperty("$Lt")){g.collection.type="Lt"}else if(s[0].hasOwnProperty("$Le")){g.collection.type="Le"}else if(s[0].hasOwnProperty("$And")){g.collection.type="And"}else if(s[0].hasOwnProperty("$Apply")){g.collection.type="Apply"}else if(typeof s[0]==="object"){g.collection.type="Record"}else{g.collection.type="String"}}}else{const e={propertyValues:[]};if(s.$Type){const t=s.$Type;e.type=`${t}`}const t=[];for(const e in s){if(e!=="$Type"&&!e.startsWith("@")){t.push(c(s[e],e,N,n,i))}else if(e.startsWith("@")){v({[e]:s[e]},N,n,i)}}e.propertyValues=t;g.record=e}g.isCollection=O;p.annotations.push(g)}}function g(e,t,n){return{_type:"Property",name:n,fullyQualifiedName:`${t.fullyQualifiedName}/${n}`,type:e.$Type,maxLength:e.$MaxLength,precision:e.$Precision,scale:e.$Scale,nullable:e.$Nullable}}function N(e,t,n){let i=[];if(e.$ReferentialConstraint){i=Object.keys(e.$ReferentialConstraint).map(n=>({sourceTypeName:t.name,sourceProperty:n,targetTypeName:e.$Type,targetProperty:e.$ReferentialConstraint[n]}))}const o={_type:"NavigationProperty",name:n,fullyQualifiedName:`${t.fullyQualifiedName}/${n}`,partner:e.$Partner,isCollection:e.$isCollection?e.$isCollection:false,containsTarget:e.$ContainsTarget,targetTypeName:e.$Type,referentialConstraint:i};return o}function O(e,t){if(e){return Object.fromEntries(Object.entries(e).map(e=>{let[n,i]=e;return[n,`${t}/${i}`]}))}return{}}function b(e,t,n){return{_type:"EntitySet",name:t,navigationPropertyBinding:O(e.$NavigationPropertyBinding,n),entityTypeName:e.$Type,fullyQualifiedName:`${n}/${t}`}}function A(e,t,n){return{_type:"Singleton",name:t,navigationPropertyBinding:O(e.$NavigationPropertyBinding,n),entityTypeName:e.$Type,fullyQualifiedName:`${n}/${t}`,nullable:true}}function T(e,t,n){return{_type:"ActionImport",name:t,fullyQualifiedName:`${n}/${t}`,actionName:e.$Action}}function C(e,t,n){const i={_type:"TypeDefinition",name:t.substring(n.length),fullyQualifiedName:t,underlyingType:e.$UnderlyingType};return i}function I(e,t,n){const i={_type:"ComplexType",name:t.substring(n.length),fullyQualifiedName:t,properties:[],navigationProperties:[]};const o=Object.keys(e).filter(t=>{if(t!="$Key"&&t!="$kind"){return e[t].$kind==="Property"}}).sort((e,t)=>e>t?1:-1).map(t=>g(e[t],i,t));i.properties=o;const a=Object.keys(e).filter(t=>{if(t!="$Key"&&t!="$kind"){return e[t].$kind==="NavigationProperty"}}).sort((e,t)=>e>t?1:-1).map(t=>N(e[t],i,t));i.navigationProperties=a;return i}function w(e,t){if(!e.$Key&&e.$BaseType){return w(t[e.$BaseType],t)}return e.$Key??[]}function E(e,t,n,i){var o,a,r;const l={_type:"EntityType",name:t.substring(n.length),fullyQualifiedName:t,keys:[],entityProperties:[],navigationProperties:[],actions:{}};for(const t in e){const n=e[t];switch(n.$kind){case"Property":const e=g(n,l,t);l.entityProperties.push(e);break;case"NavigationProperty":const i=N(n,l,t);l.navigationProperties.push(i);break}}l.keys=w(e,i).map(e=>l.entityProperties.find(t=>t.name===e)).filter(e=>e!==undefined);(o=i.$Annotations[l.fullyQualifiedName])===null||o===void 0?void 0:(a=o[`@${"com.sap.vocabularies.UI.v1.FilterFacets"}`])===null||a===void 0?void 0:a.forEach(e=>{e.ID=d(e)});if(!!(l!==null&&l!==void 0&&l.keys.length)&&i.$Annotations[l.fullyQualifiedName]&&!((r=i.$Annotations[l.fullyQualifiedName])!==null&&r!==void 0&&r[`@${"com.sap.vocabularies.UI.v1.HeaderInfo"}`])){const e={$Type:`${"com.sap.vocabularies.UI.v1.HeaderInfoType"}`,TypeName:`${l.name}`,TypeNamePlural:"",Title:{$Type:`${"com.sap.vocabularies.UI.v1.DataField"}`,Value:{$Path:`${l.keys[0].name}`}}};i.$Annotations[l.fullyQualifiedName][`@${"com.sap.vocabularies.UI.v1.HeaderInfo"}`]=e}for(const e of l.entityProperties){if(!i.$Annotations[e.fullyQualifiedName]){i.$Annotations[e.fullyQualifiedName]={}}if(!i.$Annotations[e.fullyQualifiedName][`@${"com.sap.vocabularies.UI.v1.DataFieldDefault"}`]){i.$Annotations[e.fullyQualifiedName][`@${"com.sap.vocabularies.UI.v1.DataFieldDefault"}`]={$Type:"com.sap.vocabularies.UI.v1.DataField",Value:{$Path:e.name}}}}return l}function D(e,t,n){var i,o;let a;if(e.$kind==="Function"){a=e.$Parameter??[]}else{a=e.$IsBound?[e.$Parameter[0]]:[]}const r=a.map(e=>e.$isCollection?`Collection(${e.$Type})`:e.$Type).join(",");const l=`${t}(${r})`;const s=e.$Parameter??[];return{_type:"Action",name:t.substring(n.length),fullyQualifiedName:l,isBound:e.$IsBound??false,isFunction:e.$kind==="Function",sourceType:((i=a[0])===null||i===void 0?void 0:i.$Type)??"",returnType:((o=e.$ReturnType)===null||o===void 0?void 0:o.$Type)??"",parameters:s.map(e=>({_type:"ActionParameter",fullyQualifiedName:`${l}/${e.$Name}`,isCollection:e.$isCollection??false,name:e.$Name,type:e.$Type,nullable:e.$Nullable??false,maxLength:e.$MaxLength,precision:e.$Precision,scale:e.$Scale}))}}function L(e,t,n,i){i.entityContainer={_type:"EntityContainer",name:t.substring(e.length),fullyQualifiedName:t};for(const e in n){const o=n[e];switch(o.$kind){case"EntitySet":i.entitySets.push(b(o,e,t));break;case"Singleton":i.singletons.push(A(o,e,t));break;case"ActionImport":i.actionImports.push(T(o,e,t));break}}}function G(e,t){const n={};for(const i in e){v(e[i],i,n,t)}return Object.values(n)}function k(e){const t=Object.keys(e).find(t=>e[t].$kind==="Schema")??"";const n={namespace:t.slice(0,-1),entityContainer:{_type:"EntityContainer",name:"",fullyQualifiedName:""},entitySets:[],entityTypes:[],complexTypes:[],typeDefinitions:[],singletons:[],associations:[],associationSets:[],actions:[],actionImports:[],annotations:{}};const i=(i,o)=>{switch(o.$kind){case"EntityContainer":L(t,i,o,n);break;case"Action":case"Function":n.actions.push(D(o,i,t));break;case"EntityType":n.entityTypes.push(E(o,i,t,e));break;case"ComplexType":n.complexTypes.push(I(o,i,t));break;case"TypeDefinition":n.typeDefinitions.push(C(o,i,t));break}};for(const t in e){const n=e[t];if(Array.isArray(n)){for(const e of n){i(t,e)}}else{i(t,n)}}return n}function S(t){let n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:f;const i={identification:"metamodelResult",version:"4.0",references:[]};e.lazy(i,"schema",()=>{const i=t.getObject("/$");const o=k(i);e.lazy(o.annotations,"metamodelResult",()=>G(i.$Annotations,n));return o});return i}i.parseMetaModel=S;const F={};function M(t,n){const i=t.id;if(!F.hasOwnProperty(i)){const o=S(t,n);try{F[i]=e.convert(o)}catch(e){throw new Error(e)}}return F[i]}i.convertTypes=M;function j(e){const t=e.getModel();if(!t.isA("sap.ui.model.odata.v4.ODataMetaModel")){throw new Error("This should only be called on a ODataMetaModel")}return M(t)}i.getConvertedTypes=j;function B(e){delete F[e.id]}i.deleteModelCacheData=B;function R(e){let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;const n=M(e.getModel());const i=e.getPath();const o=i.split("/");let a=o[1];let r=2;if(n.entityContainer.fullyQualifiedName===a){a=o[2];r++}let l=n.entitySets.find(e=>e.name===a);if(!l){l=n.singletons.find(e=>e.name===a)}let s=o.slice(r).join("/");const p=[l];while(s&&s.length>0&&s.startsWith("$NavigationPropertyBinding")){var y;let e=s.split("/");let t=0;let n,i;e=e.slice(1);while(!n&&e.length>t){if(e[t]!=="$NavigationPropertyBinding"){i=e.slice(0,t+1).join("/").replace("/$NavigationPropertyBinding","");n=l&&l.navigationPropertyBinding[i]}t++}if(!n){i=e[0]}const o=((y=i)===null||y===void 0?void 0:y.split("/"))||[];let a=l&&l.entityType;for(const e of o){const t=a&&a.navigationProperties.find(t=>t.name===e);if(t){p.push(t);a=t.targetType}else{break}}l=l&&n||l&&l.navigationPropertyBinding[e[0]];if(l){p.push(l)}e=e.slice(o.length||1);if(e.length&&e[0]==="$"){e.shift()}s=e.join("/")}if(s.startsWith("$Type")){if(s.startsWith("$Type@")){s=s.replace("$Type","")}else{s=o.slice(3).join("/")}}if(l&&s.length){const e=l.entityType.resolvePath(s,t);if(e){if(t){e.visitedObjects=p.concat(e.visitedObjects)}}else if(l.entityType&&l.entityType.actions){const e=l.entityType&&l.entityType.actions;const t=s.split("/");if(e[t[0]]){const n=e[t[0]];if(t[1]&&n.parameters){const e=t[1];return n.parameters.find(t=>t.fullyQualifiedName.endsWith(`/${e}`))}else if(s.length===1){return n}}}return e}else{if(t){return{target:l,visitedObjects:p}}return l}}i.convertMetaModelContext=R;function Q(e,t){const n=M(e.getModel());const i=R(e,true);let o;if(t&&t.getPath()!=="/"){o=Q(t)}return x(i,n,o)}i.getInvolvedDataModelObjects=Q;function x(e,t,n){let i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:false;const o=e.visitedObjects.filter(e=>r(e)&&!s(e)&&!y(e));if(r(e.target)&&!s(e.target)&&o[o.length-1]!==e.target&&!i){o.push(e.target)}const f=[];const c=o[0];let u=c;let $=c.entityType;let d;let h=[];for(let e=1;e<o.length;e++){d=o[e];if(l(d)){var P;h.push(d.name);f.push(d);$=d.targetType;const e=(P=u)===null||P===void 0?void 0:P.navigationPropertyBinding[h.join("/")];if(e!==undefined){u=e;h=[]}}if(p(d)||a(d)){u=d;$=u.entityType}}if(h.length>0){u=undefined}if(n&&n.startingEntitySet!==c){const e=o.indexOf(n.startingEntitySet);if(e!==-1){const t=o.slice(0,e);n.startingEntitySet=c;n.navigationProperties=t.filter(l).concat(n.navigationProperties)}}const m={startingEntitySet:c,targetEntitySet:u,targetEntityType:$,targetObject:e.target,navigationProperties:f,contextLocation:n,convertedTypes:t};if(!r(m.targetObject)&&i){m.targetObject=r(d)?d:undefined}if(!m.contextLocation){m.contextLocation=m}return m}i.getInvolvedDataModelObjectFromPath=x;return i},false);
376
376
  /*!
377
377
  * SAP UI development toolkit for HTML5 (SAPUI5)
378
378
  * (c) Copyright 2009-2023 SAP SE. All rights reserved
@@ -737,7 +737,7 @@ sap.ui.predefine("sap/fe/core/jsx-runtime/useMDXComponents", ["sap/base/Log","sa
737
737
  * SAP UI development toolkit for HTML5 (SAPUI5)
738
738
  * (c) Copyright 2009-2023 SAP SE. All rights reserved
739
739
  */
740
- sap.ui.predefine("sap/fe/core/library", ["sap/base/Log","sap/fe/core/formatters/FPMFormatter","sap/fe/core/formatters/StandardFormatter","sap/fe/core/formatters/ValueFormatter","sap/fe/core/services/AsyncComponentServiceFactory","sap/fe/core/services/CacheHandlerServiceFactory","sap/fe/core/services/EnvironmentServiceFactory","sap/fe/core/services/NavigationServiceFactory","sap/fe/core/services/ResourceModelServiceFactory","sap/fe/core/services/RoutingServiceFactory","sap/fe/core/services/ShellServicesFactory","sap/fe/core/services/SideEffectsServiceFactory","sap/fe/core/services/TemplatedViewServiceFactory","sap/fe/core/type/DateTimeWithTimezone","sap/fe/core/type/Email","sap/fe/core/type/FiscalDate","sap/fe/navigation/library","sap/fe/placeholder/library","sap/ui/base/DataType","sap/ui/core/Core","sap/ui/core/library","sap/ui/core/service/ServiceFactoryRegistry","sap/ui/fl/library","sap/ui/mdc/library"],function(e,a,r,i,o,t,s,n,c,l,p,f,d,v,u,y,S,m,g,C,b,F,w,D){"use strict";var E={};var M=s.EnvironmentServiceFactory;const N="sap.fe";E.feNamespace=N;const I="sap.fe.core";E.feCoreNamespace=I;const h="sap.fe.core.controllerextensions";E.feCextNamespace=h;const A="sap.fe.core.fpm";E.feFpmNamespace=A;const R=C.initLibrary({name:"sap.fe.core",dependencies:["sap.ui.core","sap.fe.navigation","sap.fe.placeholder","sap.ui.fl","sap.ui.mdc","sap.f"],types:["sap.fe.core.CreationMode","sap.fe.core.VariantManagement"],interfaces:[],controls:[],elements:[],version:"1.117.2",noLibraryCSS:true,extensions:{"sap.ui.support":{publicRules:true,internalRules:true},flChangeHandlers:{"sap.fe.core.controls.FilterBar":"sap/ui/mdc/flexibility/FilterBar"}}});R.InvocationGrouping={Isolated:"Isolated",ChangeSet:"ChangeSet"};R.CreationMode={NewPage:"NewPage",Sync:"Sync",Async:"Async",Deferred:"Deferred",Inline:"Inline",CreationRow:"CreationRow",InlineCreationRows:"InlineCreationRows",External:"External"};R.VariantManagement={None:"None",Page:"Page",Control:"Control"};R.Constants={CancelActionDialog:"cancel",ActionExecutionFailed:"actionExecutionFailed",CreationFailed:"creationFailed"};R.ProgrammingModel={Draft:"Draft",Sticky:"Sticky",NonDraft:"NonDraft"};R.DraftStatus={Saving:"Saving",Saved:"Saved",Clear:"Clear"};R.EditMode={Display:"Display",Editable:"Editable"};R.TemplateContentView={Hybrid:"Hybrid",Chart:"Chart",Table:"Table"};let L;(function(e){e["Enabled"]="Enabled";e["Disabled"]="Disabled";e["Auto"]="Auto"})(L||(L={}));E.InitialLoadMode=L;R.InitialLoadMode=L;R.StartupMode={Normal:"Normal",Deeplink:"Deeplink",Create:"Create",AutoCreate:"AutoCreate"};const T=g.createType("sap.fe.core.InitialLoadMode",{defaultValue:R.InitialLoadMode.Auto,isValid:function(a){if(typeof a==="boolean"){e.warning("DEPRECATED: boolean value not allowed for 'initialLoad' manifest setting - supported values are: Disabled|Enabled|Auto")}return a===undefined||a===null||typeof a==="boolean"||R.InitialLoadMode.hasOwnProperty(a)}});T.setNormalizer(function(e){if(!e){return R.InitialLoadMode.Disabled}return e===true?R.InitialLoadMode.Enabled:e});F.register("sap.fe.core.services.TemplatedViewService",new d);F.register("sap.fe.core.services.ResourceModelService",new c);F.register("sap.fe.core.services.CacheHandlerService",new t);F.register("sap.fe.core.services.NavigationService",new n);F.register("sap.fe.core.services.RoutingService",new l);F.register("sap.fe.core.services.SideEffectsService",new f);F.register("sap.fe.core.services.ShellServices",new p);F.register("sap.fe.core.services.EnvironmentService",new M);F.register("sap.fe.core.services.AsyncComponentService",new o);return R},false);
740
+ sap.ui.predefine("sap/fe/core/library", ["sap/base/Log","sap/fe/core/formatters/FPMFormatter","sap/fe/core/formatters/StandardFormatter","sap/fe/core/formatters/ValueFormatter","sap/fe/core/services/AsyncComponentServiceFactory","sap/fe/core/services/CacheHandlerServiceFactory","sap/fe/core/services/EnvironmentServiceFactory","sap/fe/core/services/NavigationServiceFactory","sap/fe/core/services/ResourceModelServiceFactory","sap/fe/core/services/RoutingServiceFactory","sap/fe/core/services/ShellServicesFactory","sap/fe/core/services/SideEffectsServiceFactory","sap/fe/core/services/TemplatedViewServiceFactory","sap/fe/core/type/DateTimeWithTimezone","sap/fe/core/type/Email","sap/fe/core/type/FiscalDate","sap/fe/navigation/library","sap/fe/placeholder/library","sap/ui/base/DataType","sap/ui/core/Core","sap/ui/core/library","sap/ui/core/service/ServiceFactoryRegistry","sap/ui/fl/library","sap/ui/mdc/library"],function(e,a,r,i,o,t,s,n,c,l,p,f,d,v,u,y,S,m,g,C,b,F,w,D){"use strict";var E={};var M=s.EnvironmentServiceFactory;const N="sap.fe";E.feNamespace=N;const I="sap.fe.core";E.feCoreNamespace=I;const h="sap.fe.core.controllerextensions";E.feCextNamespace=h;const A="sap.fe.core.fpm";E.feFpmNamespace=A;const R=C.initLibrary({name:"sap.fe.core",dependencies:["sap.ui.core","sap.fe.navigation","sap.fe.placeholder","sap.ui.fl","sap.ui.mdc","sap.f"],types:["sap.fe.core.CreationMode","sap.fe.core.VariantManagement"],interfaces:[],controls:[],elements:[],version:"1.117.3",noLibraryCSS:true,extensions:{"sap.ui.support":{publicRules:true,internalRules:true},flChangeHandlers:{"sap.fe.core.controls.FilterBar":"sap/ui/mdc/flexibility/FilterBar"}}});R.InvocationGrouping={Isolated:"Isolated",ChangeSet:"ChangeSet"};R.CreationMode={NewPage:"NewPage",Sync:"Sync",Async:"Async",Deferred:"Deferred",Inline:"Inline",CreationRow:"CreationRow",InlineCreationRows:"InlineCreationRows",External:"External"};R.VariantManagement={None:"None",Page:"Page",Control:"Control"};R.Constants={CancelActionDialog:"cancel",ActionExecutionFailed:"actionExecutionFailed",CreationFailed:"creationFailed"};R.ProgrammingModel={Draft:"Draft",Sticky:"Sticky",NonDraft:"NonDraft"};R.DraftStatus={Saving:"Saving",Saved:"Saved",Clear:"Clear"};R.EditMode={Display:"Display",Editable:"Editable"};R.TemplateContentView={Hybrid:"Hybrid",Chart:"Chart",Table:"Table"};let L;(function(e){e["Enabled"]="Enabled";e["Disabled"]="Disabled";e["Auto"]="Auto"})(L||(L={}));E.InitialLoadMode=L;R.InitialLoadMode=L;R.StartupMode={Normal:"Normal",Deeplink:"Deeplink",Create:"Create",AutoCreate:"AutoCreate"};const T=g.createType("sap.fe.core.InitialLoadMode",{defaultValue:R.InitialLoadMode.Auto,isValid:function(a){if(typeof a==="boolean"){e.warning("DEPRECATED: boolean value not allowed for 'initialLoad' manifest setting - supported values are: Disabled|Enabled|Auto")}return a===undefined||a===null||typeof a==="boolean"||R.InitialLoadMode.hasOwnProperty(a)}});T.setNormalizer(function(e){if(!e){return R.InitialLoadMode.Disabled}return e===true?R.InitialLoadMode.Enabled:e});F.register("sap.fe.core.services.TemplatedViewService",new d);F.register("sap.fe.core.services.ResourceModelService",new c);F.register("sap.fe.core.services.CacheHandlerService",new t);F.register("sap.fe.core.services.NavigationService",new n);F.register("sap.fe.core.services.RoutingService",new l);F.register("sap.fe.core.services.SideEffectsService",new f);F.register("sap.fe.core.services.ShellServices",new p);F.register("sap.fe.core.services.EnvironmentService",new M);F.register("sap.fe.core.services.AsyncComponentService",new o);return R},false);
741
741
  /*!
742
742
  * SAP UI development toolkit for HTML5 (SAPUI5)
743
743
  * (c) Copyright 2009-2023 SAP SE. All rights reserved
@@ -924,8 +924,8 @@ sap.ui.require.preload({
924
924
  "sap/fe/core/controls/NonComputedVisibleKeyFieldsDialog.fragment.xml":'<core:FragmentDefinition\n\txmlns:template="http://schemas.sap.com/sapui5/extension/sap.ui.core.template/1"\n\txmlns="sap.m"\n\txmlns:core="sap.ui.core"\n\txmlns:mdc="sap.ui.mdc"\n\txmlns:mdcv="sap.ui.mdc.valuehelp"\n\txmlns:mdcvc="sap.ui.mdc.valuehelp.content"\n\txmlns:form="sap.ui.layout.form"\n\txmlns:customData="http://schemas.sap.com/sapui5/extension/sap.ui.core.CustomData/1"\n\ttemplate:require="{\n\t\tMODEL: \'sap/ui/model/odata/v4/AnnotationHelper\',\n\t\tCOMMON: \'sap/fe/macros/CommonHelper\',\n\t\tID: \'sap/fe/core/helpers/StableIdHelper\',\n\t\tValueHelpTemplating: \'sap/fe/macros/internal/valuehelp/ValueHelpTemplating\',\n\t\tProperty: \'sap/fe/core/templating/PropertyFormatters\',\n\t\tFIELD: \'sap/fe/macros/field/FieldHelper\',\n\t\tUI: \'sap/fe/core/templating/UIFormatters\'\n\t}"\n><template:with path="fields>" var="allFields"><form:SimpleForm><template:repeat list="{allFields>}" var="key"><template:with path="key>" helper="COMMON.getPathToKey" var="immutableKey"><Label text="{= ${immutableKey>@com.sap.vocabularies.Common.v1.Label}}" /><mdc:Field\n\t\t\t\t\t\tdelegate="{name:\'sap/fe/macros/field/FieldBaseDelegate\', payload:{retrieveTextFromValueList:true}}"\n\t\t\t\t\t\tid="{= ID.generate([\'CreateDialog\', ${entitySet>@sapui.name}, ${immutableKey>@sapui.name}]) }"\n\t\t\t\t\t\tvalue="{immutableKey>@@MODEL.format}"\n\t\t\t\t\t\tplaceholder="{immutableKey>@com.sap.vocabularies.UI.v1.Placeholder@@MODEL.value}"\n\t\t\t\t\t\twidth="100%"\n\t\t\t\t\t\trequired="{= FIELD.getRequired(${immutableKey>@sapui.name}, ${immutableKey>@@UI.getDataModelObjectPath}, ${requiredProperties>})}"\n\t\t\t\t\t\tdisplay="{immutableKey>@@FIELD.getAPDialogDisplayFormat}"\n\t\t\t\t\t\tchange="{= \'.handleChange($event, \\\'\' + ${immutableKey>@sapui.name} + \'\\\')\' }"\n\t\t\t\t\t\tliveChange=".handleLiveChange"\n\t\t\t\t\t\tfieldHelp="{= ${immutableKey>@@Property.hasValueHelp} ? ID.generate([${immutableKey>@sapui.name},\'VH\']) : undefined }"\n\t\t\t\t\t\tcustomData:fieldName="{immutableKey>@sapui.name}"\n\t\t\t\t\t\teditMode="{= ${immutableKey>@com.sap.vocabularies.Common.v1.FieldControl} &amp;&amp; ${immutableKey>@com.sap.vocabularies.Common.v1.FieldControl/$EnumMember} &amp;&amp; ${immutableKey>@com.sap.vocabularies.Common.v1.FieldControl/$EnumMember} === \'com.sap.vocabularies.Common.v1.FieldControlType/ReadOnly\' ? \'Display\' : \'Editable\'}"\n\t\t\t\t\t><template:if test="{immutableKey>@@Property.hasValueHelp}"><template:then><mdc:dependents><mdc:ValueHelp\n\t\t\t\t\t\t\t\t\t\tid="{= ID.generate([${immutableKey>@sapui.name},\'VH\']) }"\n\t\t\t\t\t\t\t\t\t\tdelegate="{= FIELD.getValueHelpDelegateForNonComputedVisibleKeyField(${immutableKey>@@Property.getPropertyPath}) }"\n\t\t\t\t\t\t\t\t\t\tvalidateInput="{= ValueHelpTemplating.requiresValidation(${immutableKey>@@Property.getProperty})}"\n\t\t\t\t\t\t\t\t\t><mdc:typeahead><mdcv:Popover><mdcvc:MTable\n\t\t\t\t\t\t\t\t\t\t\t\t\tid="{= ID.generate([${immutableKey>@sapui.name},\'VH\']) }::Popover::qualifier::"\n\t\t\t\t\t\t\t\t\t\t\t\t\tcaseSensitive="{= ValueHelpTemplating.useCaseSensitiveFilterRequests(${immutableKey>@@Property.getPropertyObjectPath}, ${immutableKey>/@Org.OData.Capabilities.V1.FilterFunctions})}"\n\t\t\t\t\t\t\t\t\t\t\t\t\tuseAsValueHelp="{= ${immutableKey>@com.sap.vocabularies.Common.v1.ValueListWithFixedValues} || false}"\n\t\t\t\t\t\t\t\t\t\t\t\t/></mdcv:Popover></mdc:typeahead><template:if\n\t\t\t\t\t\t\t\t\t\t\ttest="{= ${immutableKey>@com.sap.vocabularies.Common.v1.ValueListWithFixedValues} ? (${immutableKey>@com.sap.vocabularies.Common.v1.ValueListWithFixedValues} === \'true\') : true}"\n\t\t\t\t\t\t\t\t\t\t><mdc:dialog><mdcv:Dialog /></mdc:dialog></template:if></mdc:ValueHelp></mdc:dependents></template:then></template:if></mdc:Field></template:with></template:repeat></form:SimpleForm></template:with></core:FragmentDefinition>\n',
925
925
  "sap/fe/core/controls/massEdit/MassEditDialog.fragment.xml":'<core:FragmentDefinition\n\txmlns:template="http://schemas.sap.com/sapui5/extension/sap.ui.core.template/1"\n\txmlns:core="sap.ui.core"\n\txmlns="sap.m"\n\txmlns:mdc="sap.ui.mdc"\n\txmlns:mdcField="sap.ui.mdc.field"\n\txmlns:f="sap.ui.layout.form"\n\txmlns:l="sap.ui.layout"\n\ttemplate:require="{\n\t\tMED: \'sap/fe/core/helpers/MassEditHelper\'\n\t}"\n><f:Form visible="{= MED.helpers.hasEditableFieldsBinding(${dataFieldModel>}, true) }"><f:layout><f:ResponsiveGridLayout\n\t\t\t\tlabelSpanXL="4"\n\t\t\t\tlabelSpanL="4"\n\t\t\t\tlabelSpanM="12"\n\t\t\t\tlabelSpanS="12"\n\t\t\t\tadjustLabelSpan="false"\n\t\t\t\temptySpanXL="0"\n\t\t\t\temptySpanL="0"\n\t\t\t\temptySpanM="0"\n\t\t\t\temptySpanS="0"\n\t\t\t\tcolumnsXL="2"\n\t\t\t\tcolumnsL="2"\n\t\t\t\tcolumnsM="1"\n\t\t\t\tsingleContainerFullSize="false"\n\t\t\t/></f:layout><f:formContainers><f:FormContainer><f:formElements><template:repeat list="{dataFieldModel>}" var="dataField"><f:FormElement\n\t\t\t\t\t\t\tlabel="{dataField>label}"\n\t\t\t\t\t\t\tvisible="{= \'{fieldsInfo>/values/\' + ${dataField>dataProperty} + \'/visible}\' }"\n\t\t\t\t\t\t><f:fields><template:with path="dataField>propertyInfo" var="property"><core:Fragment fragmentName="sap.fe.core.controls.massEdit.MassEditField" type="XML" /></template:with><template:if test="{dataField>unitInfo}"><template:with path="dataField>unitInfo" var="property"><core:Fragment fragmentName="sap.fe.core.controls.massEdit.MassEditField" type="XML" /></template:with></template:if></f:fields></f:FormElement></template:repeat></f:formElements></f:FormContainer></f:formContainers></f:Form><Text\n\t\tvisible="{= MED.helpers.hasEditableFieldsBinding(${dataFieldModel>}, false) }"\n\t\ttext="{fieldsInfo>/noFields}"\n\t\tclass="sapUiSmallMargin"\n\t/>\n\t/></core:FragmentDefinition>\n',
926
926
  "sap/fe/core/controls/massEdit/MassEditField.fragment.xml":'<core:FragmentDefinition\n\txmlns:template="http://schemas.sap.com/sapui5/extension/sap.ui.core.template/1"\n\txmlns:core="sap.ui.core"\n\txmlns="sap.m"\n\txmlns:mdc="sap.ui.mdc"\n\txmlns:mdcField="sap.ui.mdc.field"\n\txmlns:control="sap.fe.core.controls"\n\txmlns:macro="sap.fe.macros"\n\txmlns:f="sap.ui.layout.form"\n\txmlns:l="sap.ui.layout"\n\txmlns:customData="http://schemas.sap.com/sapui5/extension/sap.ui.core.CustomData/1"\n\ttemplate:require="{\n\t\tProperty: \'sap/fe/core/templating/PropertyFormatters\',\n\t\tID: \'sap/fe/core/helpers/StableIdHelper\',\n\t\tValueHelpTemplating: \'sap/fe/macros/internal/valuehelp/ValueHelpTemplating\'\n\t}"\n><template:if test="{property>hasVH}"><template:then><template:with path="property>propertyPathForValueHelp" var="vhProperty"><mdc:Field\n\t\t\t\t\tdelegate="{name: \'sap/ui/mdc/odata/v4/FieldBaseDelegate\'}"\n\t\t\t\t\tid="{= ID.generate([\'MED_\', ${dataField>entitySet}, ${property>relativePath}, \'_MDCField\']) }"\n\t\t\t\t\tcore:require="{MassEditHandlers: \'sap/fe/core/controls/massEdit/MassEditHandlers\'}"\n\t\t\t\t\tchange="{= \'MassEditHandlers.handleMDCFieldChange($event, \\\'\' + ${property>relativePath} + \'\\\')\' }"\n\t\t\t\t\tlabel="{dataField>label}"\n\t\t\t\t\twidth="100%"\n\t\t\t\t\trequired="{dataField>isFieldRequired}"\n\t\t\t\t\tfieldHelp="{= ID.generate([\'MED_\', ${dataField>entitySet}, \'VHD\', ${vhProperty>@@Property.getRelativePropertyPath} ]) }"\n\t\t\t\t\tdisplay="{dataField>display}"\n\t\t\t\t\tvalue="{= ${property>relativePath} ? \'{path: \\\'\' + ${property>relativePath} + \'\\\', parameters: {$$noPatch: true} }\' : undefined }"\n\t\t\t\t\tadditionalValue="{= ${dataField>descriptionPath} ? \'{path: \\\'\' + ${dataField>descriptionPath} + \'\\\', parameters: {$$noPatch: true} }\' : undefined }"\n\t\t\t\t><mdc:layoutData><l:GridData\n\t\t\t\t\t\t\tspan="{= (!${dataField>unitProperty}) ? \'XL12 L12 M12 S12\' : ((${property>relativePath} === ${dataField>unitProperty}) ? \'XL4 L4 M4 S4\' : \'XL8 L8 M8 S8\') }"\n\t\t\t\t\t\t/></mdc:layoutData><control:MassEditSelect\n\t\t\t\t\t\tcore:require="{MassEditHandlers: \'sap/fe/core/controls/massEdit/MassEditHandlers\'}"\n\t\t\t\t\t\tid="{= ID.generate([\'MED_\', ${dataField>entitySet}, ${property>relativePath}]) }"\n\t\t\t\t\t\titems="{= \'{path : \\\'\' + ${property>runtimePath} + ${property>relativePath} + \'\\\'}\' }"\n\t\t\t\t\t\tchange="MassEditHandlers.handleSelectionChange($event)"\n\t\t\t\t\t\tselectedKey="{= \'{\' + ${property>runtimePath} + ${property>relativePath} + \'/selectedKey}\' }"\n\t\t\t\t\t\tselectValue="{= (${dataField>inputType} !== \'CheckBox\') &amp;&amp; (\'{ parts : [{ path:\\\'\' + ${property>relativePath} + \'\\\'}, {value: \\\'\' + ${property>relativePath} + \'\\\' }, {value: \\\'\' + ID.generate([\'MED_\', ${dataField>entitySet}, ${property>relativePath}, \'_MDCField\']) + \'\\\' }], formatter: \\\'MassEditHandlers.contextPropertyChange\\\' }\') }"\n\t\t\t\t\t\twidth="100%"\n\t\t\t\t\t\tcustomData:fieldPath="{property>relativePath}"\n\t\t\t\t\t\tcustomData:propertyFullyQualifiedName="{property>propertyFullyQualifiedName}"\n\t\t\t\t\t><control:items><core:Item key="{fieldsInfo>key}" text="{fieldsInfo>text}" /></control:items><control:layoutData><l:GridData span="XL12 L12 M12 S12" /></control:layoutData></control:MassEditSelect><template:if test="{= ${dataField>inputType} !== \'CheckBox\' }"><mdc:dependents><macro:ValueHelp\n\t\t\t\t\t\t\t\tcontextPath="{contextPath>}"\n\t\t\t\t\t\t\t\tidPrefix="{= ID.generate([\'MED_\', ${dataField>entitySet}, \'VHD\' ]) }"\n\t\t\t\t\t\t\t\tproperty="{vhProperty>}"\n\t\t\t\t\t\t\t\tuseMultiValueField="true"\n\t\t\t\t\t\t\t/></mdc:dependents></template:if></mdc:Field></template:with></template:then><template:else><ComboBox\n\t\t\t\tid="{= ID.generate([\'MED_\', ${dataField>entitySet}, ${property>relativePath}]) }"\n\t\t\t\tcore:require="{MassEditHandlers: \'sap/fe/core/controls/massEdit/MassEditHandlers\'}"\n\t\t\t\titems="{= \'{path : \\\'\' + ${property>runtimePath} + ${property>relativePath} + \'\\\'}\' }"\n\t\t\t\tchange="MassEditHandlers.handleSelectionChange($event)"\n\t\t\t\tselectedKey="{= \'{\' + ${property>runtimePath} + ${property>relativePath} + \'/selectedKey}\' }"\n\t\t\t\tvisible="{= \'{\' + ${property>runtimePath} + ${property>relativePath} + \'/visible}\' }"\n\t\t\t\tcustomData:fieldPath="{property>relativePath}"\n\t\t\t\tcustomData:propertyFullyQualifiedName="{property>propertyFullyQualifiedName}"\n\t\t\t><items><core:Item key="{fieldsInfo>key}" text="{fieldsInfo>text}" /></items><layoutData><l:GridData\n\t\t\t\t\t\tspan="{= (!${dataField>unitProperty}) ? \'XL12 L12 M12 S12\' : ((${property>relativePath} === ${dataField>unitProperty}) ? \'XL4 L4 M4 S4\' : \'XL8 L8 M8 S8\') }"\n\t\t\t\t\t/></layoutData></ComboBox></template:else></template:if></core:FragmentDefinition>\n',
927
- "sap/fe/core/fpm/manifest.json":'{"_version":"1.14.0","sap.app":{"id":"sap.fe.core.fpm","type":"component","applicationVersion":{"version":"1.117.2"},"title":"Object Page","tags":{"keywords":["Object Page"]},"ach":"CA-UI5-FE","offline":false,"resources":"resources.json"},"sap.ui":{"technology":"UI5","deviceTypes":{"desktop":true,"tablet":true,"phone":true},"supportedThemes":["sap_fiori_3","sap_hcb","sap_bluecrystal","sap_belize","sap_belize_plus","sap_belize_hcw"]},"sap.ui5":{"config":{"sapFiori2Adaptation":{"style":true,"hierarchy":true}},"services":{"templatedViewService":{"factoryName":"sap.fe.core.services.TemplatedViewService","startup":"waitFor","settings":{"converterType":"None"}},"asyncComponentService":{"factoryName":"sap.fe.core.services.AsyncComponentService","startup":"waitFor"}},"handleValidation":true,"dependencies":{"minUI5Version":"${sap.ui5.core.version}","libs":{"sap.f":{},"sap.fe.macros":{},"sap.m":{},"sap.ui.core":{},"sap.ui.layout":{},"sap.ui.mdc":{},"sap.ui.fl":{}}},"contentDensities":{"compact":true,"cozy":true}}}',
928
- "sap/fe/core/manifest.json":'{"_version":"1.21.0","sap.app":{"id":"sap.fe.core","type":"library","embeds":["fpm"],"applicationVersion":{"version":"1.117.2"},"title":"UI5 library: sap.fe.core","description":"UI5 library: sap.fe.core","ach":"CA-UI5-FE","resources":"resources.json","offline":true},"sap.ui":{"technology":"UI5","supportedThemes":[]},"sap.ui5":{"dependencies":{"libs":{"sap.ui.core":{},"sap.f":{},"sap.fe.navigation":{},"sap.fe.placeholder":{},"sap.m":{},"sap.ui.layout":{"lazy":true},"sap.ui.mdc":{},"sap.ui.fl":{}}},"library":{"i18n":{"bundleUrl":"messagebundle.properties","supportedLocales":["","ar","bg","ca","cs","cy","da","de","el","en","en-GB","en-US-sappsd","en-US-saprigi","en-US-saptrc","es","es-MX","et","fi","fr","fr-CA","hi","hr","hu","id","it","iw","ja","kk","ko","lt","lv","ms","nl","no","pl","pt","pt-PT","ro","ru","sh","sk","sl","sv","th","tr","uk","vi","zh-CN","zh-TW"]},"content":{"controls":[],"elements":[],"types":[],"interfaces":[]}}}}',
927
+ "sap/fe/core/fpm/manifest.json":'{"_version":"1.14.0","sap.app":{"id":"sap.fe.core.fpm","type":"component","applicationVersion":{"version":"1.117.3"},"title":"Object Page","tags":{"keywords":["Object Page"]},"ach":"CA-UI5-FE","offline":false,"resources":"resources.json"},"sap.ui":{"technology":"UI5","deviceTypes":{"desktop":true,"tablet":true,"phone":true},"supportedThemes":["sap_fiori_3","sap_hcb","sap_bluecrystal","sap_belize","sap_belize_plus","sap_belize_hcw"]},"sap.ui5":{"config":{"sapFiori2Adaptation":{"style":true,"hierarchy":true}},"services":{"templatedViewService":{"factoryName":"sap.fe.core.services.TemplatedViewService","startup":"waitFor","settings":{"converterType":"None"}},"asyncComponentService":{"factoryName":"sap.fe.core.services.AsyncComponentService","startup":"waitFor"}},"handleValidation":true,"dependencies":{"minUI5Version":"${sap.ui5.core.version}","libs":{"sap.f":{},"sap.fe.macros":{},"sap.m":{},"sap.ui.core":{},"sap.ui.layout":{},"sap.ui.mdc":{},"sap.ui.fl":{}}},"contentDensities":{"compact":true,"cozy":true}}}',
928
+ "sap/fe/core/manifest.json":'{"_version":"1.21.0","sap.app":{"id":"sap.fe.core","type":"library","embeds":["fpm"],"applicationVersion":{"version":"1.117.3"},"title":"UI5 library: sap.fe.core","description":"UI5 library: sap.fe.core","ach":"CA-UI5-FE","resources":"resources.json","offline":true},"sap.ui":{"technology":"UI5","supportedThemes":[]},"sap.ui5":{"dependencies":{"libs":{"sap.ui.core":{},"sap.f":{},"sap.fe.navigation":{},"sap.fe.placeholder":{},"sap.m":{},"sap.ui.layout":{"lazy":true},"sap.ui.mdc":{},"sap.ui.fl":{}}},"library":{"i18n":{"bundleUrl":"messagebundle.properties","supportedLocales":["","ar","bg","ca","cs","cy","da","de","el","en","en-GB","en-US-sappsd","en-US-saprigi","en-US-saptrc","es","es-MX","et","fi","fr","fr-CA","hi","hr","hu","id","it","iw","ja","kk","ko","lt","lv","ms","nl","no","pl","pt","pt-PT","ro","ru","sh","sk","sl","sv","th","tr","uk","vi","zh-CN","zh-TW"]},"content":{"controls":[],"elements":[],"types":[],"interfaces":[]}}}}',
929
929
  "sap/fe/core/rootView/Fcl.view.xml":'<mvc:View xmlns:mvc="sap.ui.core.mvc" xmlns="sap.f" displayBlock="true" height="100%" controllerName="sap.fe.core.rootView.Fcl"><FlexibleColumnLayout id="appContent" backgroundDesign="Transparent" restoreFocusOnBackNavigation="true" autoFocus="false" /></mvc:View>\n',
930
930
  "sap/fe/core/rootView/NavContainer.view.xml":'<mvc:View xmlns:mvc="sap.ui.core.mvc" xmlns="sap.m" displayBlock="true" height="100%" controllerName="sap.fe.core.rootView.NavContainer"><NavContainer id="appContent" autoFocus="false" /></mvc:View>\n',
931
931
  "sap/fe/core/services/view/TemplatingErrorPage.view.xml":'<mvc:View xmlns:mvc="sap.ui.core.mvc" xmlns="sap.m" controllerName="sap.fe.core.services.view.TemplatingErrorPage"><MessagePage\n\t\tshowHeader="false"\n\t\ticon="sap-icon://message-error"\n\t\ttext="{sap.fe.i18n>T_TEMPLATING_ERROR_PAGE_SAPFE_APPSTART_TEMPLATING_FAILED}"\n\t\tdescription="{= ${error>/message} ? ${error>/message} : \'\'}"\n\t/></mvc:View>\n'