@sapui5/sap.fe.core 1.111.0 → 1.111.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/sap/fe/core/.library +1 -1
- package/src/sap/fe/core/buildingBlocks/BuildingBlockRuntime-dbg.js +30 -14
- package/src/sap/fe/core/buildingBlocks/BuildingBlockRuntime.js +3 -3
- package/src/sap/fe/core/buildingBlocks/BuildingBlockRuntime.js.map +1 -1
- package/src/sap/fe/core/buildingBlocks/BuildingBlockRuntime.ts +29 -13
- package/src/sap/fe/core/formatters/FiscalFormat-dbg.js +1 -1
- package/src/sap/fe/core/fpm/manifest.json +1 -1
- package/src/sap/fe/core/library-dbg.js +1 -1
- package/src/sap/fe/core/library-preload.js +6 -6
- package/src/sap/fe/core/library-preload.js.map +1 -1
- package/src/sap/fe/core/library.js +1 -1
- package/src/sap/fe/core/manifest.json +1 -1
- package/src/sap/fe/core/type/FiscalDate-dbg.js +1 -1
|
@@ -2,10 +2,10 @@
|
|
|
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/base/Log","sap/base/util/deepClone","sap/base/util/uid","sap/fe/core/buildingBlocks/AttributeModel","sap/fe/core/converters/helpers/ConfigurableObject","sap/fe/core/helpers/BindingToolkit","sap/fe/core/helpers/TypeGuards","sap/fe/macros/ResourceModel","sap/ui/base/BindingParser","sap/ui/core/util/XMLPreprocessor","./TraceInfo"],function(e,t,n,i,o,s,r,a,l,c,f){"use strict";var d={};var u=r.isFunctionArray;var p=r.isContext;var m=s.isBindingToolkitExpression;var g=s.compileExpression;var h=o.Placement;const b="sap.fe.core.buildingBlocks.BuildingBlockRuntime";const x=new DOMParser;let y=false;function v(e){return e.apiVersion===undefined||e.apiVersion===1}function C(e,t,n,i){const o=t[i];const s=o===null||o===void 0?void 0:o.getObject();if(n.required===true&&(!o||s===null)){throw new Error(`${e}: Required metadataContext '${i}' is missing`)}else if(s){if(s.hasOwnProperty("$kind")&&s.$kind!==undefined&&n.$kind!==undefined){if(n.$kind.indexOf(s.$kind)===-1){throw new Error(`${e}: '${i}' must be '$kind' '${n["$kind"]}' but is '${s.$kind}': ${o.getPath()}`)}}else if(s.hasOwnProperty("$Type")&&s.$Type!==undefined&&n.$Type){if(n.$Type.indexOf(s.$Type)===-1){throw new Error(`${e}: '${i}' must be '$Type' '${n["$Type"]}' but is '${s.$Type}': ${o.getPath()}`)}}}}function $(t,n,i,o){const s=n.metadataContexts&&Object.keys(n.metadataContexts)||[],r=n.properties&&Object.keys(n.properties)||[],a={};const l=o.getAttributeNames();for(const e of l){a[e]=true}s.forEach(function(e){const o=n.metadataContexts[e];C(t,i,o,e);delete a[e]});r.forEach(function(e){const i=n.properties[e];if(!o.hasAttribute(e)){if(i.required&&!i.hasOwnProperty("defaultValue")){throw new Error(`${t}: `+`Required property '${e}' is missing`)}}else{delete a[e]}});Object.keys(a).forEach(function(n){if(n.indexOf(":")<0&&!n.startsWith("xmlns")){e.warning(`Unchecked parameter: ${t}: ${n}`,undefined,b)}})}d.validateMacroSignature=$;const w="sap.ui.core.Element";const k="sap.ui.model.Context";d.SAP_UI_MODEL_CONTEXT=k;function O(e){let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;let n=arguments.length>2?arguments[2]:undefined;if(e){const i={};const o={dependents:{type:w},customData:{type:w}};if(n===2){o.dependents.slot="dependents"}const s={};let r;Object.keys(e.properties).forEach(function(t){if(e.properties[t].type!==k){i[t]=e.properties[t]}else{s[t]=e.properties[t]}});if(e.events!==undefined){Object.keys(e.events).forEach(function(t){i[t]={type:"function",...e.events[t]}})}if(e.aggregations!==undefined){Object.keys(e.aggregations).forEach(function(t){o[t]=e.aggregations[t];if(o[t].isDefault){r=t}})}return{properties:i,aggregations:o,defaultAggregation:r,metadataContexts:s,isOpen:t}}else{return{metadataContexts:{},aggregations:{dependents:{type:w},customData:{type:w}},properties:{},isOpen:t}}}function P(e,t){let n;if(t&&t.startsWith("/")){n=t}else{let i=e.currentContextPath.getPath();if(!i.endsWith("/")){i+="/"}n=i+t}return{model:"metaModel",path:n}}function A(e,t,n){let i;if(n.startsWith("/uid--")){const t=W[n];e.models.converterContext.setProperty(n,t);i={model:"converterContext",path:n};delete W[n]}else if(t==="metaPath"&&e.currentContextPath||t==="contextPath"){i=P(e,n)}else if(n&&n.startsWith("/")){i={model:"metaModel",path:n}}else{i={model:"metaModel",path:e.bindingContexts.entitySet?e.bindingContexts.entitySet.getPath(n):n}}return i}function E(e,t,n,i,o,s){let r;if(!o&&t.hasAttribute(n)){const i=t.getAttribute(n);r=l.complexParser(i);if(!r){r=A(e,n,i)}}else if(e.bindingContexts.hasOwnProperty(n)){r={model:n,path:""}}else if(s){try{if(i.getContext(`${n}>`)){r={model:n,path:""}}}catch(e){return undefined}}return r}async function T(n,i,o,s,r){const a=n.properties;const l=Object.keys(a);const c={};for(const n of l){if(a[n].type==="object"){c[n]=t(a[n].defaultValue||{})}else{c[n]=a[n].defaultValue}if(i.hasAttribute(n)&&o&&a[n].isPublic===false){e.error(`Property ${n} was ignored as it is not intended for public usage`)}else if(i.hasAttribute(n)){await s.visitAttribute(i,i.attributes.getNamedItem(n));let e=i.getAttribute(n);if(e!==undefined&&e!==null){if(r===2&&typeof e==="string"&&!e.startsWith("{")){switch(a[n].type){case"boolean":e=e==="true";break;case"number":e=Number(e);break}}e=e===null?undefined:e;c[n]=e}}}return c}function j(e,t,n,i,o,s,r){t.currentContextPath=t.bindingContexts.contextPath;const a={};const l={};const c=e.metadataContexts;const f=Object.keys(c);const d=f.indexOf("contextPath");if(d!==-1){const e=f.splice(d,1);f.splice(0,0,e[0])}for(const d of f){const f=i&&c[d].isPublic===false&&n.hasAttribute(d);const u=E(t,n,d,o,f,e.isOpen);if(u){u.name=d;I(s,o,u,r);if((d==="entitySet"||d==="contextPath")&&!t.bindingContexts.hasOwnProperty(d)){t.bindingContexts[d]=s[d]}if(d==="contextPath"){t.currentContextPath=s[d]}l[d]=s[d]}else{a[d]=true}}return{mMissingContext:a,propertyValues:l}}function N(e,t){const n={};if(e&&e.children.length>0){const i=e.children;for(let e=0;e<i.length;e++){const o=i[e];let s=o.getAttribute("key")||o.getAttribute("id");if(s){s=`InlineXML_${s}`;o.setAttribute("key",s);let e={key:s,position:{placement:o.getAttribute("placement")||h.After,anchor:o.getAttribute("anchor")||undefined},type:"Slot"};if(t){e=t(o,e)}n[e.key]=e}}}return n}async function B(e,t,n,i,o,s){const r={};if(e.firstElementChild!==null){let a=e.firstElementChild;if(s===2){while(a!==null){const e=a.localName;let t=e;if(t[0].toUpperCase()===t[0]){t=n.defaultAggregation||""}const i=n.aggregations[t];if(i!==undefined&&!i.slot){const e=N(a,i.processAggregations);o[t]=e;for(const t in e){n.aggregations[t]=e[t]}}a=a.nextElementSibling}}if(s!==2){await t.visitChildNodes(e)}a=e.firstElementChild;while(a!==null){const l=a.nextElementSibling;const c=a.localName;let f=c;if(f[0].toUpperCase()===f[0]){f=n.defaultAggregation||""}if(Object.keys(n.aggregations).indexOf(f)!==-1&&(!i||n.aggregations[f].isPublic===true)){if(s===2){const i=n.aggregations[f];if(!i.slot&&a!==null&&a.children.length>0){await t.visitNode(a);let n=a.firstElementChild;while(n){const t=n.nextElementSibling;if(!i.hasVirtualNode){const t=document.createElementNS(e.namespaceURI,n.getAttribute("key"));t.appendChild(n);r[n.getAttribute("key")]=t}else{r[n.getAttribute("key")]=n}n.removeAttribute("key");n=t}}else if(i.slot){if(f!==c){if(!r[f]){const t=document.createElementNS(e.namespaceURI,f);r[f]=t}r[f].appendChild(a)}else{r[f]=a}}}else{await t.visitNode(a);r[a.localName]=a}}else if(Object.keys(n.properties).indexOf(f)!==-1){await t.visitNode(a);if(n.properties[f].type==="object"){const e={};const t=a.getAttributeNames();for(const n of t){e[n]=a.getAttribute(n)}if(a.children.length){for(let t=0;t<a.children.length;t++){const n=a.children[t];const i=n.localName;const o={};const s=n.getAttributeNames();for(const e of s){o[e]=n.getAttribute(e)}e[i]=o}}o[f]=e}else if(n.properties[f].type==="array"){if(a!==null&&a.children.length>0){const e=a.children;const t=[];for(let n=0;n<e.length;n++){const i=e[n];const o={};const s=i.getAttributeNames();for(const e of s){o[e]=i.getAttribute(e)}t.push(o)}o[f]=t}}}a=l}}return r}function S(e,t,n){let i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:false;if(Object.keys(e).length>0){Object.keys(e).forEach(function(o){const s=e[o];if(n!==null&&n!==undefined&&s){const e=s.firstElementChild;if(o!=="customData"&&o!=="dependents"){const i=t[o]!==undefined&&t[o].slot||o;const s=n.querySelector(`slot[name='${i}']`);if(s!==null){const t=M(n,o,e);s.replaceWith(...t.children)}}else if(i&&e!==null){const t=M(n,o,e);n.appendChild(t)}}})}}function M(e,t,n){const i=document.createElementNS(e.namespaceURI,t.replace(/:/gi,"_"));while(n){const e=n.nextElementSibling;i.appendChild(n);n=e}return i}async function V(t,n,o){let s=arguments.length>3&&arguments[3]!==undefined?arguments[3]:false;const r=t.fragment||`${t.namespace}.${t.xmlTag||t.name}`;const l="this";const c={};const d={};const u=o.getSettings();if(u.models["sap.fe.i18n"]){u.models["sap.fe.i18n"].getResourceBundle().then(function(e){a.setApplicationI18nBundle(e)}).catch(function(t){e.error(t)})}const m=O(t.metadata,t.isOpen,t.apiVersion);if(!u[r]){u[r]={}}let g=await T(m,n,s,o,t.apiVersion);const{mMissingContext:h,propertyValues:b}=j(m,u,n,s,o,c,d);g=Object.assign(g,b);const x=Object.keys(g);try{const a=await B(n,o,m,s,g,t.apiVersion);let d;let b={};if(u.models.viewData){b=u.models.viewData.getProperty("/controlConfiguration")}let x=g;if(v(t)&&t.create){x=t.create.call(t,g,b,u,a,s);Object.keys(m.metadataContexts).forEach(function(e){if(m.metadataContexts[e].computed===true){c[e]=x[e]}});Object.keys(h).forEach(function(e){if(x.hasOwnProperty(e)){c[e]=x[e]}})}else if(t.apiVersion===2){Object.keys(g).forEach(e=>{var n,i,o;let s=g[e];const r=t===null||t===void 0?void 0:(n=t.metadata)===null||n===void 0?void 0:n.properties[e];if(r!==null&&r!==void 0&&r.validate){s=r.validate(s)||s}if((i=s)!==null&&i!==void 0&&(o=i.isA)!==null&&o!==void 0&&o.call(i,k)&&!s.getModel().isA("sap.ui.model.odata.v4.ODataMetaModel")){g[e]=s.getObject()}});const e=t;g.isPublic=s;d=new e({...g,...a},b,u);x=d.getProperties();Object.keys(m.metadataContexts).forEach(function(e){if(x.hasOwnProperty(e)){const t=x[e];if(typeof t==="object"&&!p(t)){const n=F(t);u.models.converterContext.setProperty(n,t);const i=u.models.converterContext.createBindingContext(n);delete W[n];c[e]=i}else if(!c.hasOwnProperty(e)&&t!==undefined){c[e]=t}}})}const w=new i(n,x,t);c[l]=w.createBindingContext("/");let O;if(f.isTraceInfoActive()){const e=f.traceMacroCalls(r,m,c,n,o);if(e!==null&&e!==void 0&&e.macroInfo){O=u["_macroInfo"];u["_macroInfo"]=e.macroInfo}}$(r,m,c,n);const P=o.with(c,t.isOpen!==undefined?!t.isOpen:true);const A=n.parentNode;let E;let T;let j=true;if(A){E=Array.from(A.children).indexOf(n);if(v(t)&&t.getTemplate||t.apiVersion===2&&!t.fragment){let i;let o=false;if(t.apiVersion===2&&d!==undefined){i=await d.getTemplate(n);if(t.isRuntime===true){for(const e in W){const t=W[e];u.models.converterContext.setProperty(e,t);delete W[e]}}o=true}else if(t.getTemplate){i=await t.getTemplate(x)}let s="";if(i){let r=false;let l=R(i,o);for(const e of l){const t=document.createNodeIterator(e,NodeFilter.SHOW_TEXT);let n=t.nextNode();if(e.localName==="parsererror"){r=true}while(n){if(n.textContent&&n.textContent.trim().length>0){s=n.textContent}n=t.nextNode()}}if(r){e.error(`Error while processing building block ${t.xmlTag||t.name}`);try{var C;y=true;const e=(C=d)!==null&&C!==void 0&&C.getTemplate?await d.getTemplate(n):await t.getTemplate(x);l=R(e,true)}finally{y=false}}else if(s.length>0){e.error(`Error while processing building block ${t.xmlTag||t.name}`);const n=L([`Error while processing building block ${t.xmlTag||t.name}`,`Trailing text was found in the XML: ${s}`],l.map(e=>e.outerHTML).join("\n"));l=R(n,true)}n.replaceWith(...l);n=A.children[E];S(a,m.aggregations,n,j);j=false;T=P.visitNode(n)}else{n.remove();T=Promise.resolve()}}else{T=P.insertFragment(r,n)}await T;const i=A.children[E];S(a,m.aggregations,i,j);if(i!==undefined){const e=i.querySelectorAll("slot");e.forEach(function(e){e.remove()})}}if(O){u["_macroInfo"]=O}else{delete u["_macroInfo"]}}catch(i){const o={initialProperties:{},resolvedProperties:{},missingContexts:h};for(const e of x){const t=g[e];if(p(t)){o.initialProperties[e]={path:t.getPath(),value:t.getObject()}}else{o.initialProperties[e]=t}}for(const e in g){const t=g[e];if(!x.includes(e)){if(p(t)){o.resolvedProperties[e]={path:t.getPath(),value:t.getObject()}}else{o.resolvedProperties[e]=t}}}e.error(i);const s=L([`Error while processing building block ${t.name}`],n.outerHTML,o,i.stack);const r=R(s,true);n.replaceWith(...r)}}function I(e,t,n,i){const o=n.name||n.model||undefined;if(i[o]){return}try{let s=n.path;if(n.model!==null){s=`${n.model}>${s}`}const r=t.getSettings();if(n.model==="converterContext"&&n.path.length>0){e[o]=r.models[n.model].getContext(n.path)}else if(!r.bindingContexts[n.model]&&r.models[n.model]){e[o]=r.models[n.model].getContext(n.path)}else{e[o]=t.getContext(s)}i[o]=e[o]}catch(e){}}function D(e){c.plugIn(async(t,n)=>V(e,t,n),e.namespace,e.xmlTag||e.name);if(e.publicNamespace){c.plugIn(async(t,n)=>V(e,t,n,true),e.publicNamespace,e.xmlTag||e.name)}}d.registerBuildingBlock=D;function L(e,t,n,i){const o=e.map(e=>U`<m:Label text="${_(e)}"/>`);let s="";if(i){const e=btoa(`<pre>${i}</pre>`);s=U`<m:FormattedText htmlText="${`{= BBF.base64Decode('${e}') }`}" />`}let r="";if(n){r=U`<m:VBox>
|
|
5
|
+
sap.ui.define(["sap/base/Log","sap/base/util/deepClone","sap/base/util/uid","sap/fe/core/buildingBlocks/AttributeModel","sap/fe/core/converters/helpers/ConfigurableObject","sap/fe/core/helpers/BindingToolkit","sap/fe/core/helpers/TypeGuards","sap/fe/macros/ResourceModel","sap/ui/base/BindingParser","sap/ui/core/util/XMLPreprocessor","./TraceInfo"],function(e,t,n,i,o,s,r,a,l,c,f){"use strict";var d={};var u=r.isFunctionArray;var p=r.isContext;var m=s.isBindingToolkitExpression;var g=s.compileExpression;var h=o.Placement;const b="sap.fe.core.buildingBlocks.BuildingBlockRuntime";const x="http://schemas.sap.com/sapui5/extension/sap.ui.core.template/1";const y=new DOMParser;let v=false;function C(e){return e.apiVersion===undefined||e.apiVersion===1}function $(e,t,n,i){const o=t[i];const s=o===null||o===void 0?void 0:o.getObject();if(n.required===true&&(!o||s===null)){throw new Error(`${e}: Required metadataContext '${i}' is missing`)}else if(s){if(s.hasOwnProperty("$kind")&&s.$kind!==undefined&&n.$kind!==undefined){if(n.$kind.indexOf(s.$kind)===-1){throw new Error(`${e}: '${i}' must be '$kind' '${n["$kind"]}' but is '${s.$kind}': ${o.getPath()}`)}}else if(s.hasOwnProperty("$Type")&&s.$Type!==undefined&&n.$Type){if(n.$Type.indexOf(s.$Type)===-1){throw new Error(`${e}: '${i}' must be '$Type' '${n["$Type"]}' but is '${s.$Type}': ${o.getPath()}`)}}}}function w(t,n,i,o){const s=n.metadataContexts&&Object.keys(n.metadataContexts)||[],r=n.properties&&Object.keys(n.properties)||[],a={};const l=o.getAttributeNames();for(const e of l){a[e]=true}s.forEach(function(e){const o=n.metadataContexts[e];$(t,i,o,e);delete a[e]});r.forEach(function(e){const i=n.properties[e];if(!o.hasAttribute(e)){if(i.required&&!i.hasOwnProperty("defaultValue")){throw new Error(`${t}: `+`Required property '${e}' is missing`)}}else{delete a[e]}});Object.keys(a).forEach(function(n){if(n.indexOf(":")<0&&!n.startsWith("xmlns")){e.warning(`Unchecked parameter: ${t}: ${n}`,undefined,b)}})}d.validateMacroSignature=w;const O="sap.ui.core.Element";const k="sap.ui.model.Context";d.SAP_UI_MODEL_CONTEXT=k;function P(e){let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;let n=arguments.length>2?arguments[2]:undefined;if(e){const i={};const o={dependents:{type:O},customData:{type:O}};if(n===2){o.dependents.slot="dependents";o.customData.slot="customData"}const s={};let r;Object.keys(e.properties).forEach(function(t){if(e.properties[t].type!==k){i[t]=e.properties[t]}else{s[t]=e.properties[t]}});if(e.events!==undefined){Object.keys(e.events).forEach(function(t){i[t]={type:"function",...e.events[t]}})}if(e.aggregations!==undefined){Object.keys(e.aggregations).forEach(function(t){o[t]=e.aggregations[t];if(o[t].isDefault){r=t}})}return{properties:i,aggregations:o,defaultAggregation:r,metadataContexts:s,isOpen:t}}else{return{metadataContexts:{},aggregations:{dependents:{type:O},customData:{type:O}},properties:{},isOpen:t}}}function A(e,t){let n;if(t&&t.startsWith("/")){n=t}else{let i=e.currentContextPath.getPath();if(!i.endsWith("/")){i+="/"}n=i+t}return{model:"metaModel",path:n}}function E(e,t,n){let i;if(n.startsWith("/uid--")){const t=R[n];e.models.converterContext.setProperty(n,t);i={model:"converterContext",path:n};delete R[n]}else if(t==="metaPath"&&e.currentContextPath||t==="contextPath"){i=A(e,n)}else if(n&&n.startsWith("/")){i={model:"metaModel",path:n}}else{i={model:"metaModel",path:e.bindingContexts.entitySet?e.bindingContexts.entitySet.getPath(n):n}}return i}function T(e,t,n,i,o,s){let r;if(!o&&t.hasAttribute(n)){const i=t.getAttribute(n);r=l.complexParser(i);if(!r){r=E(e,n,i)}}else if(e.bindingContexts.hasOwnProperty(n)){r={model:n,path:""}}else if(s){try{if(i.getContext(`${n}>`)){r={model:n,path:""}}}catch(e){return undefined}}return r}async function N(n,i,o,s,r){const a=n.properties;const l=Object.keys(a);const c={};for(const n of l){if(a[n].type==="object"){c[n]=t(a[n].defaultValue||{})}else{c[n]=a[n].defaultValue}if(i.hasAttribute(n)&&o&&a[n].isPublic===false){e.error(`Property ${n} was ignored as it is not intended for public usage`)}else if(i.hasAttribute(n)){await s.visitAttribute(i,i.attributes.getNamedItem(n));let e=i.getAttribute(n);if(e!==undefined&&e!==null){if(r===2&&typeof e==="string"&&!e.startsWith("{")){switch(a[n].type){case"boolean":e=e==="true";break;case"number":e=Number(e);break}}e=e===null?undefined:e;c[n]=e}}}return c}function j(e,t,n,i,o,s,r){t.currentContextPath=t.bindingContexts.contextPath;const a={};const l={};const c=e.metadataContexts;const f=Object.keys(c);const d=f.indexOf("contextPath");if(d!==-1){const e=f.splice(d,1);f.splice(0,0,e[0])}for(const d of f){const f=i&&c[d].isPublic===false&&n.hasAttribute(d);const u=T(t,n,d,o,f,e.isOpen);if(u){u.name=d;D(s,o,u,r);if((d==="entitySet"||d==="contextPath")&&!t.bindingContexts.hasOwnProperty(d)){t.bindingContexts[d]=s[d]}if(d==="contextPath"){t.currentContextPath=s[d]}l[d]=s[d]}else{a[d]=true}}return{mMissingContext:a,propertyValues:l}}function B(e,t){const n={};if(e&&e.children.length>0){const i=e.children;for(let e=0;e<i.length;e++){const o=i[e];let s=o.getAttribute("key")||o.getAttribute("id");if(s){s=`InlineXML_${s}`;o.setAttribute("key",s);let e={key:s,position:{placement:o.getAttribute("placement")||h.After,anchor:o.getAttribute("anchor")||undefined},type:"Slot"};if(t){e=t(o,e)}n[e.key]=e}}}return n}async function S(e,t,n,i,o,s){const r={};if(e.firstElementChild!==null){let a=e.firstElementChild;if(s===2){while(a!==null){if(a.namespaceURI===x){const e=a.parentNode;let n;if(e){n=Array.from(e.children).indexOf(a);await t.visitNode(a);a=e.children[n]?e.children[n]:null}else{a=a.nextElementSibling}}else{const e=a.localName;let t=e;if(t[0].toUpperCase()===t[0]){t=n.defaultAggregation||""}const i=n.aggregations[t];if(i!==undefined&&!i.slot){const e=B(a,i.processAggregations);o[t]=e;for(const t in e){n.aggregations[t]=e[t]}}a=a.nextElementSibling}}}if(s!==2){await t.visitChildNodes(e)}a=e.firstElementChild;while(a!==null){const l=a.nextElementSibling;const c=a.localName;let f=c;if(f[0].toUpperCase()===f[0]){f=n.defaultAggregation||""}if(Object.keys(n.aggregations).indexOf(f)!==-1&&(!i||n.aggregations[f].isPublic===true)){if(s===2){const i=n.aggregations[f];if(!i.slot&&a!==null&&a.children.length>0){await t.visitNode(a);let n=a.firstElementChild;while(n){const t=n.nextElementSibling;if(!i.hasVirtualNode){const t=document.createElementNS(e.namespaceURI,n.getAttribute("key"));t.appendChild(n);r[n.getAttribute("key")]=t}else{r[n.getAttribute("key")]=n}n.removeAttribute("key");n=t}}else if(i.slot){if(f!==c){if(!r[f]){const t=document.createElementNS(e.namespaceURI,f);r[f]=t}r[f].appendChild(a)}else{r[f]=a}}}else{await t.visitNode(a);r[a.localName]=a}}else if(Object.keys(n.properties).indexOf(f)!==-1){await t.visitNode(a);if(n.properties[f].type==="object"){const e={};const t=a.getAttributeNames();for(const n of t){e[n]=a.getAttribute(n)}if(a.children.length){for(let t=0;t<a.children.length;t++){const n=a.children[t];const i=n.localName;const o={};const s=n.getAttributeNames();for(const e of s){o[e]=n.getAttribute(e)}e[i]=o}}o[f]=e}else if(n.properties[f].type==="array"){if(a!==null&&a.children.length>0){const e=a.children;const t=[];for(let n=0;n<e.length;n++){const i=e[n];const o={};const s=i.getAttributeNames();for(const e of s){o[e]=i.getAttribute(e)}t.push(o)}o[f]=t}}}a=l}}return r}function M(e,t,n){let i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:false;if(Object.keys(e).length>0){Object.keys(e).forEach(function(o){const s=e[o];if(n!==null&&n!==undefined&&s){const e=s.firstElementChild;if(o!=="customData"&&o!=="dependents"){const i=t[o]!==undefined&&t[o].slot||o;const s=n.querySelector(`slot[name='${i}']`);if(s!==null){const t=V(n,o,e);s.replaceWith(...t.children)}}else if(i&&e!==null){const t=V(n,o,e);n.appendChild(t)}}})}}function V(e,t,n){const i=document.createElementNS(e.namespaceURI,t.replace(/:/gi,"_"));while(n){const e=n.nextElementSibling;i.appendChild(n);n=e}return i}async function I(t,n,o){let s=arguments.length>3&&arguments[3]!==undefined?arguments[3]:false;const r=t.fragment||`${t.namespace}.${t.xmlTag||t.name}`;const l="this";const c={};const d={};const u=o.getSettings();if(u.models["sap.fe.i18n"]){u.models["sap.fe.i18n"].getResourceBundle().then(function(e){a.setApplicationI18nBundle(e)}).catch(function(t){e.error(t)})}const m=P(t.metadata,t.isOpen,t.apiVersion);if(!u[r]){u[r]={}}let g=await N(m,n,s,o,t.apiVersion);const{mMissingContext:h,propertyValues:b}=j(m,u,n,s,o,c,d);g=Object.assign(g,b);const x=Object.keys(g);try{const a=await S(n,o,m,s,g,t.apiVersion);let d;let b={};if(u.models.viewData){b=u.models.viewData.getProperty("/controlConfiguration")}let x=g;if(C(t)&&t.create){x=t.create.call(t,g,b,u,a,s);Object.keys(m.metadataContexts).forEach(function(e){if(m.metadataContexts[e].computed===true){c[e]=x[e]}});Object.keys(h).forEach(function(e){if(x.hasOwnProperty(e)){c[e]=x[e]}})}else if(t.apiVersion===2){Object.keys(g).forEach(e=>{var n,i,o;let s=g[e];const r=t===null||t===void 0?void 0:(n=t.metadata)===null||n===void 0?void 0:n.properties[e];if(r!==null&&r!==void 0&&r.validate){s=r.validate(s)||s}if((i=s)!==null&&i!==void 0&&(o=i.isA)!==null&&o!==void 0&&o.call(i,k)&&!s.getModel().isA("sap.ui.model.odata.v4.ODataMetaModel")){g[e]=s.getObject()}});const e=t;g.isPublic=s;d=new e({...g,...a},b,u);x=d.getProperties();Object.keys(m.metadataContexts).forEach(function(e){if(x.hasOwnProperty(e)){const t=x[e];if(typeof t==="object"&&!p(t)){const n=F(t);u.models.converterContext.setProperty(n,t);const i=u.models.converterContext.createBindingContext(n);delete R[n];c[e]=i}else if(!c.hasOwnProperty(e)&&t!==undefined){c[e]=t}}})}const $=new i(n,x,t);c[l]=$.createBindingContext("/");let O;if(f.isTraceInfoActive()){const e=f.traceMacroCalls(r,m,c,n,o);if(e!==null&&e!==void 0&&e.macroInfo){O=u["_macroInfo"];u["_macroInfo"]=e.macroInfo}}w(r,m,c,n);const P=o.with(c,t.isOpen!==undefined?!t.isOpen:true);const A=n.parentNode;let E;let T;let N=true;if(A){E=Array.from(A.children).indexOf(n);if(C(t)&&t.getTemplate||t.apiVersion===2&&!t.fragment){let i;let o=false;if(t.apiVersion===2&&d!==undefined){i=await d.getTemplate(n);if(t.isRuntime===true){for(const e in R){const t=R[e];u.models.converterContext.setProperty(e,t);delete R[e]}}o=true}else if(t.getTemplate){i=await t.getTemplate(x)}let s="";if(i){let r=false;let l=_(i,o);for(const e of l){const t=document.createNodeIterator(e,NodeFilter.SHOW_TEXT);let n=t.nextNode();if(e.localName==="parsererror"){r=true}while(n){if(n.textContent&&n.textContent.trim().length>0){s=n.textContent}n=t.nextNode()}}if(r){e.error(`Error while processing building block ${t.xmlTag||t.name}`);try{var y;v=true;const e=(y=d)!==null&&y!==void 0&&y.getTemplate?await d.getTemplate(n):await t.getTemplate(x);l=_(e,true)}finally{v=false}}else if(s.length>0){e.error(`Error while processing building block ${t.xmlTag||t.name}`);const n=W([`Error while processing building block ${t.xmlTag||t.name}`,`Trailing text was found in the XML: ${s}`],l.map(e=>e.outerHTML).join("\n"));l=_(n,true)}n.replaceWith(...l);n=A.children[E];M(a,m.aggregations,n,N);N=false;T=P.visitNode(n)}else{n.remove();T=Promise.resolve()}}else{T=P.insertFragment(r,n)}await T;const i=A.children[E];M(a,m.aggregations,i,N);if(i!==undefined){const e=i.querySelectorAll("slot");e.forEach(function(e){e.remove()})}}if(O){u["_macroInfo"]=O}else{delete u["_macroInfo"]}}catch(i){const o={initialProperties:{},resolvedProperties:{},missingContexts:h};for(const e of x){const t=g[e];if(p(t)){o.initialProperties[e]={path:t.getPath(),value:t.getObject()}}else{o.initialProperties[e]=t}}for(const e in g){const t=g[e];if(!x.includes(e)){if(p(t)){o.resolvedProperties[e]={path:t.getPath(),value:t.getObject()}}else{o.resolvedProperties[e]=t}}}e.error(i);const s=W([`Error while processing building block ${t.name}`],n.outerHTML,o,i.stack);const r=_(s,true);n.replaceWith(...r)}}function D(e,t,n,i){const o=n.name||n.model||undefined;if(i[o]){return}try{let s=n.path;if(n.model!==null){s=`${n.model}>${s}`}const r=t.getSettings();if(n.model==="converterContext"&&n.path.length>0){e[o]=r.models[n.model].getContext(n.path)}else if(!r.bindingContexts[n.model]&&r.models[n.model]){e[o]=r.models[n.model].getContext(n.path)}else{e[o]=t.getContext(s)}i[o]=e[o]}catch(e){}}function L(e){c.plugIn(async(t,n)=>I(e,t,n),e.namespace,e.xmlTag||e.name);if(e.publicNamespace){c.plugIn(async(t,n)=>I(e,t,n,true),e.publicNamespace,e.xmlTag||e.name)}}d.registerBuildingBlock=L;function W(e,t,n,i){const o=e.map(e=>X`<m:Label text="${q(e)}"/>`);let s="";if(i){const e=btoa(`<pre>${i}</pre>`);s=X`<m:FormattedText htmlText="${`{= BBF.base64Decode('${e}') }`}" />`}let r="";if(n){r=X`<m:VBox>
|
|
6
6
|
<m:Label text="Trace Info"/>
|
|
7
7
|
<code:CodeEditor type="json" value="${`{= BBF.base64Decode('${btoa(JSON.stringify(n,null,4))}') }`}" height="300px" />
|
|
8
|
-
</m:VBox>`}return
|
|
8
|
+
</m:VBox>`}return X`<m:VBox xmlns:m="sap.m" xmlns:code="sap.ui.codeeditor" core:require="{BBF:'sap/fe/core/buildingBlocks/BuildingBlockFormatter'}">
|
|
9
9
|
${o}
|
|
10
10
|
${s}
|
|
11
11
|
<grid:CSSGrid gridTemplateRows="fr" gridTemplateColumns="repeat(2,1fr)" gridGap="1rem" xmlns:grid="sap.ui.layout.cssgrid" >
|
|
@@ -15,5 +15,5 @@ sap.ui.define(["sap/base/Log","sap/base/util/deepClone","sap/base/util/uid","sap
|
|
|
15
15
|
</m:VBox>
|
|
16
16
|
${r}
|
|
17
17
|
</grid:CSSGrid>
|
|
18
|
-
</m:VBox>`}const
|
|
18
|
+
</m:VBox>`}const R={};function F(e){const t=`/uid--${n()}`;R[t]=e;return t}function _(e){var t,n;let i=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;if(i){e=`<template\n\t\t\t\t\t\txmlns:template="http://schemas.sap.com/sapui5/extension/sap.ui.core.template/1"\n\t\t\t\t\t\txmlns:m="sap.m"\n\t\t\t\t\t\txmlns:macros="sap.fe.macros"\n\t\t\t\t\t\txmlns:core="sap.ui.core"\n\t\t\t\t\t\txmlns:mdc="sap.ui.mdc"\n\t\t\t\t\t\txmlns:customData="http://schemas.sap.com/sapui5/extension/sap.ui.core.CustomData/1">${e}</template>`}const o=y.parseFromString(e,"text/xml");let s=o.firstElementChild;while(((r=s)===null||r===void 0?void 0:r.localName)==="template"){var r;s=s.firstElementChild}const a=(t=s)!==null&&t!==void 0&&t.parentElement?(n=s)===null||n===void 0?void 0:n.parentElement.children:[s];return Array.from(a)}d.parseXMLString=_;function q(e){return e===null||e===void 0?void 0:e.replace(/&/g,"&").replace(/</g,"<").replace(/"/g,""").replace(/'/g,"'")}d.escapeXMLAttributeValue=q;function U(e){var t;const n=_(e,true);if((n===null||n===void 0?void 0:n.length)>0&&((t=n[0])===null||t===void 0?void 0:t.localName)==="parsererror"){const t=n[0].innerText||n[0].innerHTML;return W([t.split("\n")[0]],e)}else{return e}}const X=function(e){let t="";let n;for(var i=arguments.length,o=new Array(i>1?i-1:0),s=1;s<i;s++){o[s-1]=arguments[s]}for(n=0;n<o.length;n++){t+=e[n];const i=o[n];if(Array.isArray(i)&&i.length>0&&typeof i[0]==="string"){t+=i.flat(5).join("\n").trim()}else if(u(i)){t+=i.map(e=>e()).join("\n")}else if(m(i)){const e=g(i);t+=q(e)}else if(typeof i==="undefined"){t+="{this>undefinedValue}"}else if(typeof i==="function"){t+=i()}else if(typeof i==="object"&&i!==null){if(p(i)){t+=i.getPath()}else{const e=F(i);t+=`${e}`}}else if(i&&typeof i==="string"&&!i.startsWith("<")&&!i.startsWith("<")){t+=q(i)}else{t+=i}}t+=e[n];t=t.trim();if(v){return U(t)}return t};d.xml=X;return d},false);
|
|
19
19
|
//# sourceMappingURL=BuildingBlockRuntime.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BuildingBlockRuntime.js","names":["sap","ui","define","Log","deepClone","uid","AttributeModel","ConfigurableObject","BindingToolkit","TypeGuards","ResourceModel","BindingParser","XMLPreprocessor","TraceInfo","_exports","isFunctionArray","isContext","isBindingToolkitExpression","compileExpression","Placement","LOGGER_SCOPE","DOMParserInstance","DOMParser","isTraceMode","isV1MacroDef","buildingBlockDefinition","apiVersion","undefined","validateMacroMetadataContext","sName","mContexts","oContextSettings","sKey","oContext","oContextObject","getObject","required","Error","hasOwnProperty","$kind","indexOf","getPath","$Type","validateMacroSignature","oMetadata","oNode","aMetadataContextKeys","metadataContexts","Object","keys","aProperties","properties","oAttributeNames","attributeNames","getAttributeNames","attributeName","forEach","oPropertySettings","hasAttribute","startsWith","warning","SAP_UI_CORE_ELEMENT","SAP_UI_MODEL_CONTEXT","prepareMetadata","buildingBlockMetadata","isOpen","arguments","length","oProperties","oAggregations","dependents","type","customData","slot","oMetadataContexts","foundDefaultAggregation","sPropertyName","events","sEventName","aggregations","isDefault","defaultAggregation","_checkAbsoluteAndContextPaths","oSettings","sAttributeValue","sMetaPath","sContextPath","currentContextPath","endsWith","model","path","_createInitialMetadataContext","sAttributeName","returnContext","oData","myStore","models","converterContext","setProperty","bindingContexts","entitySet","_getMetadataContext","oVisitor","bDoNotResolve","oMetadataContext","getAttribute","complexParser","getContext","e","async","processProperties","isPublic","oDefinitionProperties","aDefinitionPropertiesKeys","propertyValues","sKeyValue","defaultValue","error","visitAttribute","attributes","getNamedItem","value","Number","processContexts","contextPath","mMissingContext","oDefinitionContexts","aDefinitionContextsKeys","contextPathIndex","contextPathDefinition","splice","name","addSingleContext","parseAggregation","oAggregation","processAggregations","oOutObjects","children","childIdx","childDefinition","childKey","setAttribute","aggregationObject","key","position","placement","After","anchor","processChildren","firstElementChild","oFirstElementChild","sChildName","localName","sAggregationName","toUpperCase","aggregationDefinition","parsedAggregation","parsedAggregationKey","nextElementSibling","visitChildNodes","oNextChild","visitNode","nextChild","hasVirtualNode","childWrapper","document","createElementNS","namespaceURI","appendChild","removeAttribute","oNewChild","aggregationPropertyValues","childIndex","subChild","subObjectKey","subObject","subChildAttributeNames","subChildAttributeName","myChild","push","processSlots","oMetadataAggregations","processCustomData","oAggregationElement","oElementChild","sSlotName","oTargetElement","querySelector","prepareAggregationElement","replaceWith","replace","processBuildingBlock","sFragmentName","fragment","namespace","xmlTag","getSettings","getResourceBundle","then","oResourceBundle","setApplicationI18nBundle","catch","metadata","extraPropertyValues","assign","initialKeys","oInstance","oControlConfig","viewData","getProperty","processedPropertyValues","create","call","sMetadataName","computed","sContextName","propName","_buildingBlockDefinit","_oData","_oData$isA","originalDefinition","validate","isA","getModel","BuildingBlockClass","getProperties","targetObject","storeValue","newContext","createBindingContext","oAttributesModel","oPreviousMacroInfo","isTraceInfoActive","oTraceInfo","traceMacroCalls","macroInfo","oContextVisitor","with","oParent","parentNode","iChildIndex","oPromise","Array","from","getTemplate","templateString","addDefaultNamespace","isRuntime","myStoreKey","hasError","hasParseError","parsedTemplate","parseXMLString","element","iter","createNodeIterator","NodeFilter","SHOW_TEXT","textnode","nextNode","textContent","trim","_oInstance","initialTemplate","oErrorText","createErrorXML","map","template","outerHTML","join","remove","Promise","resolve","insertFragment","oMacroElement","oRemainingSlots","querySelectorAll","oSlotElement","traceDetails","initialProperties","resolvedProperties","missingContexts","propertyName","propertyValue","includes","oError","stack","oTemplate","oCtx","mSetting","ex","registerBuildingBlock","plugIn","publicNamespace","errorMessages","xmlFragment","additionalData","errorLabels","errorMessage","xml","escapeXMLAttributeValue","errorStack","stackFormatted","btoa","additionalText","JSON","stringify","replaceAll","values","propertyUID","xmlString","_output2","_output3","addDefaultNamespaces","xmlDocument","parseFromString","output","_output","parentElement","renderInTraceMode","outStr","_xmlResult$","xmlResult","innerText","innerHTML","split","strings","i","_len","_key","isArray","flat","valuefn","comp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IAAIkE,GAAWA,KAAW/D,KAAK,KACjD,MAAO,GAAI5P,EAA2BwG,GAAQ,CAC5C,MAAMoN,EAAqB3T,EAAkBuG,GAC7CuM,GAAUpB,EAAwBiC,EACpC,MAAO,UAAWpN,IAAU,YAAa,CACvCuM,GAAU,uBACZ,MAAO,UAAWvM,IAAU,WAAY,CACtCuM,GAAUvM,GACZ,MAAO,UAAWA,IAAU,UAAYA,IAAU,KAAM,CACtD,GAAIzG,EAAUyG,GAAQ,CACpBuM,GAAUvM,EAAMhF,SAClB,KAAO,CACL,MAAMqS,EAAc3G,EAAW1G,GAC/BuM,GAAU,GAAGc,GACf,CACF,MAAO,GAAIrN,UAAgBA,IAAU,WAAaA,EAAM9D,WAAW,OAAS8D,EAAM9D,WAAW,QAAS,CACpGqQ,GAAUpB,EAAwBnL,EACpC,KAAO,CACLuM,GAAUvM,CACZ,CACF,CACAuM,GAAUM,EAAQC,GAClBP,EAASA,EAAO3D,OAChB,GAAI9O,EAAa,CACf,OAAOwS,EAAkBC,EAC3B,CACA,OAAOA,CACT,EACAlT,EAAS6R,IAAMA,EACf,OAAO7R,CACT,EAAG"}
|
|
1
|
+
{"version":3,"file":"BuildingBlockRuntime.js","names":["sap","ui","define","Log","deepClone","uid","AttributeModel","ConfigurableObject","BindingToolkit","TypeGuards","ResourceModel","BindingParser","XMLPreprocessor","TraceInfo","_exports","isFunctionArray","isContext","isBindingToolkitExpression","compileExpression","Placement","LOGGER_SCOPE","XMLTEMPLATING_NS","DOMParserInstance","DOMParser","isTraceMode","isV1MacroDef","buildingBlockDefinition","apiVersion","undefined","validateMacroMetadataContext","sName","mContexts","oContextSettings","sKey","oContext","oContextObject","getObject","required","Error","hasOwnProperty","$kind","indexOf","getPath","$Type","validateMacroSignature","oMetadata","oNode","aMetadataContextKeys","metadataContexts","Object","keys","aProperties","properties","oAttributeNames","attributeNames","getAttributeNames","attributeName","forEach","oPropertySettings","hasAttribute","startsWith","warning","SAP_UI_CORE_ELEMENT","SAP_UI_MODEL_CONTEXT","prepareMetadata","buildingBlockMetadata","isOpen","arguments","length","oProperties","oAggregations","dependents","type","customData","slot","oMetadataContexts","foundDefaultAggregation","sPropertyName","events","sEventName","aggregations","isDefault","defaultAggregation","_checkAbsoluteAndContextPaths","oSettings","sAttributeValue","sMetaPath","sContextPath","currentContextPath","endsWith","model","path","_createInitialMetadataContext","sAttributeName","returnContext","oData","myStore","models","converterContext","setProperty","bindingContexts","entitySet","_getMetadataContext","oVisitor","bDoNotResolve","oMetadataContext","getAttribute","complexParser","getContext","e","async","processProperties","isPublic","oDefinitionProperties","aDefinitionPropertiesKeys","propertyValues","sKeyValue","defaultValue","error","visitAttribute","attributes","getNamedItem","value","Number","processContexts","contextPath","mMissingContext","oDefinitionContexts","aDefinitionContextsKeys","contextPathIndex","contextPathDefinition","splice","name","addSingleContext","parseAggregation","oAggregation","processAggregations","oOutObjects","children","childIdx","childDefinition","childKey","setAttribute","aggregationObject","key","position","placement","After","anchor","processChildren","firstElementChild","oFirstElementChild","namespaceURI","oParent","parentNode","iChildIndex","Array","from","visitNode","nextElementSibling","sChildName","localName","sAggregationName","toUpperCase","aggregationDefinition","parsedAggregation","parsedAggregationKey","visitChildNodes","oNextChild","nextChild","hasVirtualNode","childWrapper","document","createElementNS","appendChild","removeAttribute","oNewChild","aggregationPropertyValues","childIndex","subChild","subObjectKey","subObject","subChildAttributeNames","subChildAttributeName","myChild","push","processSlots","oMetadataAggregations","processCustomData","oAggregationElement","oElementChild","sSlotName","oTargetElement","querySelector","prepareAggregationElement","replaceWith","replace","processBuildingBlock","sFragmentName","fragment","namespace","xmlTag","getSettings","getResourceBundle","then","oResourceBundle","setApplicationI18nBundle","catch","metadata","extraPropertyValues","assign","initialKeys","oInstance","oControlConfig","viewData","getProperty","processedPropertyValues","create","call","sMetadataName","computed","sContextName","propName","_buildingBlockDefinit","_oData","_oData$isA","originalDefinition","validate","isA","getModel","BuildingBlockClass","getProperties","targetObject","storeValue","newContext","createBindingContext","oAttributesModel","oPreviousMacroInfo","isTraceInfoActive","oTraceInfo","traceMacroCalls","macroInfo","oContextVisitor","with","oPromise","getTemplate","templateString","addDefaultNamespace","isRuntime","myStoreKey","hasError","hasParseError","parsedTemplate","parseXMLString","element","iter","createNodeIterator","NodeFilter","SHOW_TEXT","textnode","nextNode","textContent","trim","_oInstance","initialTemplate","oErrorText","createErrorXML","map","template","outerHTML","join","remove","Promise","resolve","insertFragment","oMacroElement","oRemainingSlots","querySelectorAll","oSlotElement","traceDetails","initialProperties","resolvedProperties","missingContexts","propertyName","propertyValue","includes","oError","stack","oTemplate","oCtx","mSetting","ex","registerBuildingBlock","plugIn","publicNamespace","errorMessages","xmlFragment","additionalData","errorLabels","errorMessage","xml","escapeXMLAttributeValue","errorStack","stackFormatted","btoa","additionalText","JSON","stringify","replaceAll","values","propertyUID","xmlString","_output2","_output3","addDefaultNamespaces","xmlDocument","parseFromString","output","_output","parentElement","renderInTraceMode","outStr","_xmlResult$","xmlResult","innerText","innerHTML","split","strings","i","_len","_key","isArray","flat","valuefn","compiledExpression","propertyUId"],"sources":["BuildingBlockRuntime-dbg.js"],"mappings":";;;;AAIAA,IAAIC,GAAGC,OAAO,CAAC,eAAgB,0BAA2B,oBAAqB,4CAA6C,oDAAqD,qCAAsC,iCAAkC,8BAA+B,4BAA6B,mCAAoC,eAAgB,SAAUC,EAAKC,EAAWC,EAAKC,EAAgBC,EAAoBC,EAAgBC,EAAYC,EAAeC,EAAeC,EAAiBC,GACrf,aAEA,IAAIC,EAAW,CAAC,EAChB,IAAIC,EAAkBN,EAAWM,gBACjC,IAAIC,EAAYP,EAAWO,UAC3B,IAAIC,EAA6BT,EAAeS,2BAChD,IAAIC,EAAoBV,EAAeU,kBACvC,IAAIC,EAAYZ,EAAmBY,UACnC,MAAMC,EAAe,kDACrB,MAAMC,EAAmB,iEACzB,MAAMC,EAAoB,IAAIC,UAC9B,IAAIC,EAAc,MAOlB,SAASC,EAAaC,GACpB,OAAOA,EAAwBC,aAAeC,W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,IAAU,UAAYA,IAAU,KAAM,CACtD,GAAI1G,EAAU0G,GAAQ,CACpBuM,GAAUvM,EAAMhF,SAClB,KAAO,CACL,MAAMqS,EAActG,EAAW/G,GAC/BuM,GAAU,GAAGc,GACf,CACF,MAAO,GAAIrN,UAAgBA,IAAU,WAAaA,EAAM9D,WAAW,OAAS8D,EAAM9D,WAAW,QAAS,CACpGqQ,GAAUpB,EAAwBnL,EACpC,KAAO,CACLuM,GAAUvM,CACZ,CACF,CACAuM,GAAUM,EAAQC,GAClBP,EAASA,EAAO3D,OAChB,GAAI9O,EAAa,CACf,OAAOwS,EAAkBC,EAC3B,CACA,OAAOA,CACT,EACAnT,EAAS8R,IAAMA,EACf,OAAO9R,CACT,EAAG"}
|
|
@@ -33,6 +33,7 @@ import type { MacroInfo, TraceMetadataContext } from "./TraceInfo";
|
|
|
33
33
|
import TraceInfo from "./TraceInfo";
|
|
34
34
|
|
|
35
35
|
const LOGGER_SCOPE = "sap.fe.core.buildingBlocks.BuildingBlockRuntime";
|
|
36
|
+
const XMLTEMPLATING_NS = "http://schemas.sap.com/sapui5/extension/sap.ui.core.template/1";
|
|
36
37
|
const DOMParserInstance = new DOMParser();
|
|
37
38
|
let isTraceMode = false;
|
|
38
39
|
|
|
@@ -268,6 +269,7 @@ function prepareMetadata(
|
|
|
268
269
|
|
|
269
270
|
if (apiVersion === 2) {
|
|
270
271
|
oAggregations.dependents.slot = "dependents";
|
|
272
|
+
oAggregations.customData.slot = "customData";
|
|
271
273
|
}
|
|
272
274
|
|
|
273
275
|
const oMetadataContexts: Record<string, BuildingBlockPropertyDefinition> = {};
|
|
@@ -581,21 +583,35 @@ async function processChildren(
|
|
|
581
583
|
let oFirstElementChild: Element | null = oNode.firstElementChild as Element | null;
|
|
582
584
|
if (apiVersion === 2) {
|
|
583
585
|
while (oFirstElementChild !== null) {
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
586
|
+
if (oFirstElementChild.namespaceURI === XMLTEMPLATING_NS) {
|
|
587
|
+
// In case we encounter a templating tag, run the visitor on it and continue with the resulting child
|
|
588
|
+
const oParent = oFirstElementChild.parentNode;
|
|
589
|
+
let iChildIndex: number;
|
|
590
|
+
if (oParent) {
|
|
591
|
+
iChildIndex = Array.from(oParent.children).indexOf(oFirstElementChild);
|
|
592
|
+
await oVisitor.visitNode(oFirstElementChild);
|
|
593
|
+
oFirstElementChild = oParent.children[iChildIndex] ? oParent.children[iChildIndex] : null;
|
|
594
|
+
} else {
|
|
595
|
+
// Not sure how this could happen but i also don't want to create infinite loops
|
|
596
|
+
oFirstElementChild = oFirstElementChild.nextElementSibling;
|
|
597
|
+
}
|
|
598
|
+
} else {
|
|
599
|
+
const sChildName = oFirstElementChild.localName;
|
|
600
|
+
let sAggregationName = sChildName;
|
|
601
|
+
if (sAggregationName[0].toUpperCase() === sAggregationName[0]) {
|
|
602
|
+
// not a sub aggregation, go back to default Aggregation
|
|
603
|
+
sAggregationName = oMetadata.defaultAggregation || "";
|
|
604
|
+
}
|
|
605
|
+
const aggregationDefinition = oMetadata.aggregations[sAggregationName];
|
|
606
|
+
if (aggregationDefinition !== undefined && !aggregationDefinition.slot) {
|
|
607
|
+
const parsedAggregation = parseAggregation(oFirstElementChild, aggregationDefinition.processAggregations);
|
|
608
|
+
propertyValues[sAggregationName] = parsedAggregation;
|
|
609
|
+
for (const parsedAggregationKey in parsedAggregation) {
|
|
610
|
+
oMetadata.aggregations[parsedAggregationKey] = parsedAggregation[parsedAggregationKey];
|
|
611
|
+
}
|
|
596
612
|
}
|
|
613
|
+
oFirstElementChild = oFirstElementChild.nextElementSibling;
|
|
597
614
|
}
|
|
598
|
-
oFirstElementChild = oFirstElementChild.nextElementSibling;
|
|
599
615
|
}
|
|
600
616
|
}
|
|
601
617
|
|
|
@@ -17,7 +17,7 @@ sap.ui.define(["sap/ui/core/Locale", "sap/ui/core/LocaleData"], function (Locale
|
|
|
17
17
|
*
|
|
18
18
|
* Formatting, Validating and Parsing Fiscal Dates
|
|
19
19
|
* @author SAP SE
|
|
20
|
-
* @version 1.111.
|
|
20
|
+
* @version 1.111.1
|
|
21
21
|
* @experimental This module is only for internal/experimental use!
|
|
22
22
|
* @hideconstructor
|
|
23
23
|
*/
|
|
@@ -50,7 +50,7 @@ sap.ui.define(["sap/base/Log", "sap/fe/core/formatters/FPMFormatter", "sap/fe/co
|
|
|
50
50
|
controls: [],
|
|
51
51
|
elements: [],
|
|
52
52
|
// eslint-disable-next-line no-template-curly-in-string
|
|
53
|
-
version: "1.111.
|
|
53
|
+
version: "1.111.1",
|
|
54
54
|
noLibraryCSS: true,
|
|
55
55
|
extensions: {
|
|
56
56
|
//Configuration used for rule loading of Support Assistant
|
|
@@ -77,10 +77,10 @@ sap.ui.predefine("sap/fe/core/buildingBlocks/BuildingBlockFragment", ["sap/fe/co
|
|
|
77
77
|
* SAP UI development toolkit for HTML5 (SAPUI5)
|
|
78
78
|
* (c) Copyright 2009-2023 SAP SE. All rights reserved
|
|
79
79
|
*/
|
|
80
|
-
sap.ui.predefine("sap/fe/core/buildingBlocks/BuildingBlockRuntime", ["sap/base/Log","sap/base/util/deepClone","sap/base/util/uid","sap/fe/core/buildingBlocks/AttributeModel","sap/fe/core/converters/helpers/ConfigurableObject","sap/fe/core/helpers/BindingToolkit","sap/fe/core/helpers/TypeGuards","sap/fe/macros/ResourceModel","sap/ui/base/BindingParser","sap/ui/core/util/XMLPreprocessor","./TraceInfo"],function(e,t,n,i,o,s,r,a,l,c,f){"use strict";var d={};var u=r.isFunctionArray;var p=r.isContext;var m=s.isBindingToolkitExpression;var g=s.compileExpression;var h=o.Placement;const b="sap.fe.core.buildingBlocks.BuildingBlockRuntime";const x=new DOMParser;let y=false;function v(e){return e.apiVersion===undefined||e.apiVersion===1}function C(e,t,n,i){const o=t[i];const s=o===null||o===void 0?void 0:o.getObject();if(n.required===true&&(!o||s===null)){throw new Error(`${e}: Required metadataContext '${i}' is missing`)}else if(s){if(s.hasOwnProperty("$kind")&&s.$kind!==undefined&&n.$kind!==undefined){if(n.$kind.indexOf(s.$kind)===-1){throw new Error(`${e}: '${i}' must be '$kind' '${n["$kind"]}' but is '${s.$kind}': ${o.getPath()}`)}}else if(s.hasOwnProperty("$Type")&&s.$Type!==undefined&&n.$Type){if(n.$Type.indexOf(s.$Type)===-1){throw new Error(`${e}: '${i}' must be '$Type' '${n["$Type"]}' but is '${s.$Type}': ${o.getPath()}`)}}}}function $(t,n,i,o){const s=n.metadataContexts&&Object.keys(n.metadataContexts)||[],r=n.properties&&Object.keys(n.properties)||[],a={};const l=o.getAttributeNames();for(const e of l){a[e]=true}s.forEach(function(e){const o=n.metadataContexts[e];C(t,i,o,e);delete a[e]});r.forEach(function(e){const i=n.properties[e];if(!o.hasAttribute(e)){if(i.required&&!i.hasOwnProperty("defaultValue")){throw new Error(`${t}: `+`Required property '${e}' is missing`)}}else{delete a[e]}});Object.keys(a).forEach(function(n){if(n.indexOf(":")<0&&!n.startsWith("xmlns")){e.warning(`Unchecked parameter: ${t}: ${n}`,undefined,b)}})}d.validateMacroSignature=$;const w="sap.ui.core.Element";const k="sap.ui.model.Context";d.SAP_UI_MODEL_CONTEXT=k;function O(e){let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;let n=arguments.length>2?arguments[2]:undefined;if(e){const i={};const o={dependents:{type:w},customData:{type:w}};if(n===2){o.dependents.slot="dependents"}const s={};let r;Object.keys(e.properties).forEach(function(t){if(e.properties[t].type!==k){i[t]=e.properties[t]}else{s[t]=e.properties[t]}});if(e.events!==undefined){Object.keys(e.events).forEach(function(t){i[t]={type:"function",...e.events[t]}})}if(e.aggregations!==undefined){Object.keys(e.aggregations).forEach(function(t){o[t]=e.aggregations[t];if(o[t].isDefault){r=t}})}return{properties:i,aggregations:o,defaultAggregation:r,metadataContexts:s,isOpen:t}}else{return{metadataContexts:{},aggregations:{dependents:{type:w},customData:{type:w}},properties:{},isOpen:t}}}function P(e,t){let n;if(t&&t.startsWith("/")){n=t}else{let i=e.currentContextPath.getPath();if(!i.endsWith("/")){i+="/"}n=i+t}return{model:"metaModel",path:n}}function A(e,t,n){let i;if(n.startsWith("/uid--")){const t=W[n];e.models.converterContext.setProperty(n,t);i={model:"converterContext",path:n};delete W[n]}else if(t==="metaPath"&&e.currentContextPath||t==="contextPath"){i=P(e,n)}else if(n&&n.startsWith("/")){i={model:"metaModel",path:n}}else{i={model:"metaModel",path:e.bindingContexts.entitySet?e.bindingContexts.entitySet.getPath(n):n}}return i}function E(e,t,n,i,o,s){let r;if(!o&&t.hasAttribute(n)){const i=t.getAttribute(n);r=l.complexParser(i);if(!r){r=A(e,n,i)}}else if(e.bindingContexts.hasOwnProperty(n)){r={model:n,path:""}}else if(s){try{if(i.getContext(`${n}>`)){r={model:n,path:""}}}catch(e){return undefined}}return r}async function T(n,i,o,s,r){const a=n.properties;const l=Object.keys(a);const c={};for(const n of l){if(a[n].type==="object"){c[n]=t(a[n].defaultValue||{})}else{c[n]=a[n].defaultValue}if(i.hasAttribute(n)&&o&&a[n].isPublic===false){e.error(`Property ${n} was ignored as it is not intended for public usage`)}else if(i.hasAttribute(n)){await s.visitAttribute(i,i.attributes.getNamedItem(n));let e=i.getAttribute(n);if(e!==undefined&&e!==null){if(r===2&&typeof e==="string"&&!e.startsWith("{")){switch(a[n].type){case"boolean":e=e==="true";break;case"number":e=Number(e);break}}e=e===null?undefined:e;c[n]=e}}}return c}function j(e,t,n,i,o,s,r){t.currentContextPath=t.bindingContexts.contextPath;const a={};const l={};const c=e.metadataContexts;const f=Object.keys(c);const d=f.indexOf("contextPath");if(d!==-1){const e=f.splice(d,1);f.splice(0,0,e[0])}for(const d of f){const f=i&&c[d].isPublic===false&&n.hasAttribute(d);const u=E(t,n,d,o,f,e.isOpen);if(u){u.name=d;I(s,o,u,r);if((d==="entitySet"||d==="contextPath")&&!t.bindingContexts.hasOwnProperty(d)){t.bindingContexts[d]=s[d]}if(d==="contextPath"){t.currentContextPath=s[d]}l[d]=s[d]}else{a[d]=true}}return{mMissingContext:a,propertyValues:l}}function N(e,t){const n={};if(e&&e.children.length>0){const i=e.children;for(let e=0;e<i.length;e++){const o=i[e];let s=o.getAttribute("key")||o.getAttribute("id");if(s){s=`InlineXML_${s}`;o.setAttribute("key",s);let e={key:s,position:{placement:o.getAttribute("placement")||h.After,anchor:o.getAttribute("anchor")||undefined},type:"Slot"};if(t){e=t(o,e)}n[e.key]=e}}}return n}async function B(e,t,n,i,o,s){const r={};if(e.firstElementChild!==null){let a=e.firstElementChild;if(s===2){while(a!==null){const e=a.localName;let t=e;if(t[0].toUpperCase()===t[0]){t=n.defaultAggregation||""}const i=n.aggregations[t];if(i!==undefined&&!i.slot){const e=N(a,i.processAggregations);o[t]=e;for(const t in e){n.aggregations[t]=e[t]}}a=a.nextElementSibling}}if(s!==2){await t.visitChildNodes(e)}a=e.firstElementChild;while(a!==null){const l=a.nextElementSibling;const c=a.localName;let f=c;if(f[0].toUpperCase()===f[0]){f=n.defaultAggregation||""}if(Object.keys(n.aggregations).indexOf(f)!==-1&&(!i||n.aggregations[f].isPublic===true)){if(s===2){const i=n.aggregations[f];if(!i.slot&&a!==null&&a.children.length>0){await t.visitNode(a);let n=a.firstElementChild;while(n){const t=n.nextElementSibling;if(!i.hasVirtualNode){const t=document.createElementNS(e.namespaceURI,n.getAttribute("key"));t.appendChild(n);r[n.getAttribute("key")]=t}else{r[n.getAttribute("key")]=n}n.removeAttribute("key");n=t}}else if(i.slot){if(f!==c){if(!r[f]){const t=document.createElementNS(e.namespaceURI,f);r[f]=t}r[f].appendChild(a)}else{r[f]=a}}}else{await t.visitNode(a);r[a.localName]=a}}else if(Object.keys(n.properties).indexOf(f)!==-1){await t.visitNode(a);if(n.properties[f].type==="object"){const e={};const t=a.getAttributeNames();for(const n of t){e[n]=a.getAttribute(n)}if(a.children.length){for(let t=0;t<a.children.length;t++){const n=a.children[t];const i=n.localName;const o={};const s=n.getAttributeNames();for(const e of s){o[e]=n.getAttribute(e)}e[i]=o}}o[f]=e}else if(n.properties[f].type==="array"){if(a!==null&&a.children.length>0){const e=a.children;const t=[];for(let n=0;n<e.length;n++){const i=e[n];const o={};const s=i.getAttributeNames();for(const e of s){o[e]=i.getAttribute(e)}t.push(o)}o[f]=t}}}a=l}}return r}function S(e,t,n){let i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:false;if(Object.keys(e).length>0){Object.keys(e).forEach(function(o){const s=e[o];if(n!==null&&n!==undefined&&s){const e=s.firstElementChild;if(o!=="customData"&&o!=="dependents"){const i=t[o]!==undefined&&t[o].slot||o;const s=n.querySelector(`slot[name='${i}']`);if(s!==null){const t=M(n,o,e);s.replaceWith(...t.children)}}else if(i&&e!==null){const t=M(n,o,e);n.appendChild(t)}}})}}function M(e,t,n){const i=document.createElementNS(e.namespaceURI,t.replace(/:/gi,"_"));while(n){const e=n.nextElementSibling;i.appendChild(n);n=e}return i}async function V(t,n,o){let s=arguments.length>3&&arguments[3]!==undefined?arguments[3]:false;const r=t.fragment||`${t.namespace}.${t.xmlTag||t.name}`;const l="this";const c={};const d={};const u=o.getSettings();if(u.models["sap.fe.i18n"]){u.models["sap.fe.i18n"].getResourceBundle().then(function(e){a.setApplicationI18nBundle(e)}).catch(function(t){e.error(t)})}const m=O(t.metadata,t.isOpen,t.apiVersion);if(!u[r]){u[r]={}}let g=await T(m,n,s,o,t.apiVersion);const{mMissingContext:h,propertyValues:b}=j(m,u,n,s,o,c,d);g=Object.assign(g,b);const x=Object.keys(g);try{const a=await B(n,o,m,s,g,t.apiVersion);let d;let b={};if(u.models.viewData){b=u.models.viewData.getProperty("/controlConfiguration")}let x=g;if(v(t)&&t.create){x=t.create.call(t,g,b,u,a,s);Object.keys(m.metadataContexts).forEach(function(e){if(m.metadataContexts[e].computed===true){c[e]=x[e]}});Object.keys(h).forEach(function(e){if(x.hasOwnProperty(e)){c[e]=x[e]}})}else if(t.apiVersion===2){Object.keys(g).forEach(e=>{var n,i,o;let s=g[e];const r=t===null||t===void 0?void 0:(n=t.metadata)===null||n===void 0?void 0:n.properties[e];if(r!==null&&r!==void 0&&r.validate){s=r.validate(s)||s}if((i=s)!==null&&i!==void 0&&(o=i.isA)!==null&&o!==void 0&&o.call(i,k)&&!s.getModel().isA("sap.ui.model.odata.v4.ODataMetaModel")){g[e]=s.getObject()}});const e=t;g.isPublic=s;d=new e({...g,...a},b,u);x=d.getProperties();Object.keys(m.metadataContexts).forEach(function(e){if(x.hasOwnProperty(e)){const t=x[e];if(typeof t==="object"&&!p(t)){const n=F(t);u.models.converterContext.setProperty(n,t);const i=u.models.converterContext.createBindingContext(n);delete W[n];c[e]=i}else if(!c.hasOwnProperty(e)&&t!==undefined){c[e]=t}}})}const w=new i(n,x,t);c[l]=w.createBindingContext("/");let O;if(f.isTraceInfoActive()){const e=f.traceMacroCalls(r,m,c,n,o);if(e!==null&&e!==void 0&&e.macroInfo){O=u["_macroInfo"];u["_macroInfo"]=e.macroInfo}}$(r,m,c,n);const P=o.with(c,t.isOpen!==undefined?!t.isOpen:true);const A=n.parentNode;let E;let T;let j=true;if(A){E=Array.from(A.children).indexOf(n);if(v(t)&&t.getTemplate||t.apiVersion===2&&!t.fragment){let i;let o=false;if(t.apiVersion===2&&d!==undefined){i=await d.getTemplate(n);if(t.isRuntime===true){for(const e in W){const t=W[e];u.models.converterContext.setProperty(e,t);delete W[e]}}o=true}else if(t.getTemplate){i=await t.getTemplate(x)}let s="";if(i){let r=false;let l=R(i,o);for(const e of l){const t=document.createNodeIterator(e,NodeFilter.SHOW_TEXT);let n=t.nextNode();if(e.localName==="parsererror"){r=true}while(n){if(n.textContent&&n.textContent.trim().length>0){s=n.textContent}n=t.nextNode()}}if(r){e.error(`Error while processing building block ${t.xmlTag||t.name}`);try{var C;y=true;const e=(C=d)!==null&&C!==void 0&&C.getTemplate?await d.getTemplate(n):await t.getTemplate(x);l=R(e,true)}finally{y=false}}else if(s.length>0){e.error(`Error while processing building block ${t.xmlTag||t.name}`);const n=L([`Error while processing building block ${t.xmlTag||t.name}`,`Trailing text was found in the XML: ${s}`],l.map(e=>e.outerHTML).join("\n"));l=R(n,true)}n.replaceWith(...l);n=A.children[E];S(a,m.aggregations,n,j);j=false;T=P.visitNode(n)}else{n.remove();T=Promise.resolve()}}else{T=P.insertFragment(r,n)}await T;const i=A.children[E];S(a,m.aggregations,i,j);if(i!==undefined){const e=i.querySelectorAll("slot");e.forEach(function(e){e.remove()})}}if(O){u["_macroInfo"]=O}else{delete u["_macroInfo"]}}catch(i){const o={initialProperties:{},resolvedProperties:{},missingContexts:h};for(const e of x){const t=g[e];if(p(t)){o.initialProperties[e]={path:t.getPath(),value:t.getObject()}}else{o.initialProperties[e]=t}}for(const e in g){const t=g[e];if(!x.includes(e)){if(p(t)){o.resolvedProperties[e]={path:t.getPath(),value:t.getObject()}}else{o.resolvedProperties[e]=t}}}e.error(i);const s=L([`Error while processing building block ${t.name}`],n.outerHTML,o,i.stack);const r=R(s,true);n.replaceWith(...r)}}function I(e,t,n,i){const o=n.name||n.model||undefined;if(i[o]){return}try{let s=n.path;if(n.model!==null){s=`${n.model}>${s}`}const r=t.getSettings();if(n.model==="converterContext"&&n.path.length>0){e[o]=r.models[n.model].getContext(n.path)}else if(!r.bindingContexts[n.model]&&r.models[n.model]){e[o]=r.models[n.model].getContext(n.path)}else{e[o]=t.getContext(s)}i[o]=e[o]}catch(e){}}function D(e){c.plugIn(async(t,n)=>V(e,t,n),e.namespace,e.xmlTag||e.name);if(e.publicNamespace){c.plugIn(async(t,n)=>V(e,t,n,true),e.publicNamespace,e.xmlTag||e.name)}}d.registerBuildingBlock=D;function L(e,t,n,i){const o=e.map(e=>U`<m:Label text="${_(e)}"/>`);let s="";if(i){const e=btoa(`<pre>${i}</pre>`);s=U`<m:FormattedText htmlText="${`{= BBF.base64Decode('${e}') }`}" />`}let r="";if(n){r=U`<m:VBox>
|
|
80
|
+
sap.ui.predefine("sap/fe/core/buildingBlocks/BuildingBlockRuntime", ["sap/base/Log","sap/base/util/deepClone","sap/base/util/uid","sap/fe/core/buildingBlocks/AttributeModel","sap/fe/core/converters/helpers/ConfigurableObject","sap/fe/core/helpers/BindingToolkit","sap/fe/core/helpers/TypeGuards","sap/fe/macros/ResourceModel","sap/ui/base/BindingParser","sap/ui/core/util/XMLPreprocessor","./TraceInfo"],function(e,t,n,i,o,s,r,a,l,c,f){"use strict";var d={};var u=r.isFunctionArray;var p=r.isContext;var m=s.isBindingToolkitExpression;var g=s.compileExpression;var h=o.Placement;const b="sap.fe.core.buildingBlocks.BuildingBlockRuntime";const x="http://schemas.sap.com/sapui5/extension/sap.ui.core.template/1";const y=new DOMParser;let v=false;function C(e){return e.apiVersion===undefined||e.apiVersion===1}function $(e,t,n,i){const o=t[i];const s=o===null||o===void 0?void 0:o.getObject();if(n.required===true&&(!o||s===null)){throw new Error(`${e}: Required metadataContext '${i}' is missing`)}else if(s){if(s.hasOwnProperty("$kind")&&s.$kind!==undefined&&n.$kind!==undefined){if(n.$kind.indexOf(s.$kind)===-1){throw new Error(`${e}: '${i}' must be '$kind' '${n["$kind"]}' but is '${s.$kind}': ${o.getPath()}`)}}else if(s.hasOwnProperty("$Type")&&s.$Type!==undefined&&n.$Type){if(n.$Type.indexOf(s.$Type)===-1){throw new Error(`${e}: '${i}' must be '$Type' '${n["$Type"]}' but is '${s.$Type}': ${o.getPath()}`)}}}}function w(t,n,i,o){const s=n.metadataContexts&&Object.keys(n.metadataContexts)||[],r=n.properties&&Object.keys(n.properties)||[],a={};const l=o.getAttributeNames();for(const e of l){a[e]=true}s.forEach(function(e){const o=n.metadataContexts[e];$(t,i,o,e);delete a[e]});r.forEach(function(e){const i=n.properties[e];if(!o.hasAttribute(e)){if(i.required&&!i.hasOwnProperty("defaultValue")){throw new Error(`${t}: `+`Required property '${e}' is missing`)}}else{delete a[e]}});Object.keys(a).forEach(function(n){if(n.indexOf(":")<0&&!n.startsWith("xmlns")){e.warning(`Unchecked parameter: ${t}: ${n}`,undefined,b)}})}d.validateMacroSignature=w;const O="sap.ui.core.Element";const k="sap.ui.model.Context";d.SAP_UI_MODEL_CONTEXT=k;function P(e){let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;let n=arguments.length>2?arguments[2]:undefined;if(e){const i={};const o={dependents:{type:O},customData:{type:O}};if(n===2){o.dependents.slot="dependents";o.customData.slot="customData"}const s={};let r;Object.keys(e.properties).forEach(function(t){if(e.properties[t].type!==k){i[t]=e.properties[t]}else{s[t]=e.properties[t]}});if(e.events!==undefined){Object.keys(e.events).forEach(function(t){i[t]={type:"function",...e.events[t]}})}if(e.aggregations!==undefined){Object.keys(e.aggregations).forEach(function(t){o[t]=e.aggregations[t];if(o[t].isDefault){r=t}})}return{properties:i,aggregations:o,defaultAggregation:r,metadataContexts:s,isOpen:t}}else{return{metadataContexts:{},aggregations:{dependents:{type:O},customData:{type:O}},properties:{},isOpen:t}}}function A(e,t){let n;if(t&&t.startsWith("/")){n=t}else{let i=e.currentContextPath.getPath();if(!i.endsWith("/")){i+="/"}n=i+t}return{model:"metaModel",path:n}}function E(e,t,n){let i;if(n.startsWith("/uid--")){const t=R[n];e.models.converterContext.setProperty(n,t);i={model:"converterContext",path:n};delete R[n]}else if(t==="metaPath"&&e.currentContextPath||t==="contextPath"){i=A(e,n)}else if(n&&n.startsWith("/")){i={model:"metaModel",path:n}}else{i={model:"metaModel",path:e.bindingContexts.entitySet?e.bindingContexts.entitySet.getPath(n):n}}return i}function T(e,t,n,i,o,s){let r;if(!o&&t.hasAttribute(n)){const i=t.getAttribute(n);r=l.complexParser(i);if(!r){r=E(e,n,i)}}else if(e.bindingContexts.hasOwnProperty(n)){r={model:n,path:""}}else if(s){try{if(i.getContext(`${n}>`)){r={model:n,path:""}}}catch(e){return undefined}}return r}async function N(n,i,o,s,r){const a=n.properties;const l=Object.keys(a);const c={};for(const n of l){if(a[n].type==="object"){c[n]=t(a[n].defaultValue||{})}else{c[n]=a[n].defaultValue}if(i.hasAttribute(n)&&o&&a[n].isPublic===false){e.error(`Property ${n} was ignored as it is not intended for public usage`)}else if(i.hasAttribute(n)){await s.visitAttribute(i,i.attributes.getNamedItem(n));let e=i.getAttribute(n);if(e!==undefined&&e!==null){if(r===2&&typeof e==="string"&&!e.startsWith("{")){switch(a[n].type){case"boolean":e=e==="true";break;case"number":e=Number(e);break}}e=e===null?undefined:e;c[n]=e}}}return c}function j(e,t,n,i,o,s,r){t.currentContextPath=t.bindingContexts.contextPath;const a={};const l={};const c=e.metadataContexts;const f=Object.keys(c);const d=f.indexOf("contextPath");if(d!==-1){const e=f.splice(d,1);f.splice(0,0,e[0])}for(const d of f){const f=i&&c[d].isPublic===false&&n.hasAttribute(d);const u=T(t,n,d,o,f,e.isOpen);if(u){u.name=d;D(s,o,u,r);if((d==="entitySet"||d==="contextPath")&&!t.bindingContexts.hasOwnProperty(d)){t.bindingContexts[d]=s[d]}if(d==="contextPath"){t.currentContextPath=s[d]}l[d]=s[d]}else{a[d]=true}}return{mMissingContext:a,propertyValues:l}}function B(e,t){const n={};if(e&&e.children.length>0){const i=e.children;for(let e=0;e<i.length;e++){const o=i[e];let s=o.getAttribute("key")||o.getAttribute("id");if(s){s=`InlineXML_${s}`;o.setAttribute("key",s);let e={key:s,position:{placement:o.getAttribute("placement")||h.After,anchor:o.getAttribute("anchor")||undefined},type:"Slot"};if(t){e=t(o,e)}n[e.key]=e}}}return n}async function S(e,t,n,i,o,s){const r={};if(e.firstElementChild!==null){let a=e.firstElementChild;if(s===2){while(a!==null){if(a.namespaceURI===x){const e=a.parentNode;let n;if(e){n=Array.from(e.children).indexOf(a);await t.visitNode(a);a=e.children[n]?e.children[n]:null}else{a=a.nextElementSibling}}else{const e=a.localName;let t=e;if(t[0].toUpperCase()===t[0]){t=n.defaultAggregation||""}const i=n.aggregations[t];if(i!==undefined&&!i.slot){const e=B(a,i.processAggregations);o[t]=e;for(const t in e){n.aggregations[t]=e[t]}}a=a.nextElementSibling}}}if(s!==2){await t.visitChildNodes(e)}a=e.firstElementChild;while(a!==null){const l=a.nextElementSibling;const c=a.localName;let f=c;if(f[0].toUpperCase()===f[0]){f=n.defaultAggregation||""}if(Object.keys(n.aggregations).indexOf(f)!==-1&&(!i||n.aggregations[f].isPublic===true)){if(s===2){const i=n.aggregations[f];if(!i.slot&&a!==null&&a.children.length>0){await t.visitNode(a);let n=a.firstElementChild;while(n){const t=n.nextElementSibling;if(!i.hasVirtualNode){const t=document.createElementNS(e.namespaceURI,n.getAttribute("key"));t.appendChild(n);r[n.getAttribute("key")]=t}else{r[n.getAttribute("key")]=n}n.removeAttribute("key");n=t}}else if(i.slot){if(f!==c){if(!r[f]){const t=document.createElementNS(e.namespaceURI,f);r[f]=t}r[f].appendChild(a)}else{r[f]=a}}}else{await t.visitNode(a);r[a.localName]=a}}else if(Object.keys(n.properties).indexOf(f)!==-1){await t.visitNode(a);if(n.properties[f].type==="object"){const e={};const t=a.getAttributeNames();for(const n of t){e[n]=a.getAttribute(n)}if(a.children.length){for(let t=0;t<a.children.length;t++){const n=a.children[t];const i=n.localName;const o={};const s=n.getAttributeNames();for(const e of s){o[e]=n.getAttribute(e)}e[i]=o}}o[f]=e}else if(n.properties[f].type==="array"){if(a!==null&&a.children.length>0){const e=a.children;const t=[];for(let n=0;n<e.length;n++){const i=e[n];const o={};const s=i.getAttributeNames();for(const e of s){o[e]=i.getAttribute(e)}t.push(o)}o[f]=t}}}a=l}}return r}function M(e,t,n){let i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:false;if(Object.keys(e).length>0){Object.keys(e).forEach(function(o){const s=e[o];if(n!==null&&n!==undefined&&s){const e=s.firstElementChild;if(o!=="customData"&&o!=="dependents"){const i=t[o]!==undefined&&t[o].slot||o;const s=n.querySelector(`slot[name='${i}']`);if(s!==null){const t=V(n,o,e);s.replaceWith(...t.children)}}else if(i&&e!==null){const t=V(n,o,e);n.appendChild(t)}}})}}function V(e,t,n){const i=document.createElementNS(e.namespaceURI,t.replace(/:/gi,"_"));while(n){const e=n.nextElementSibling;i.appendChild(n);n=e}return i}async function I(t,n,o){let s=arguments.length>3&&arguments[3]!==undefined?arguments[3]:false;const r=t.fragment||`${t.namespace}.${t.xmlTag||t.name}`;const l="this";const c={};const d={};const u=o.getSettings();if(u.models["sap.fe.i18n"]){u.models["sap.fe.i18n"].getResourceBundle().then(function(e){a.setApplicationI18nBundle(e)}).catch(function(t){e.error(t)})}const m=P(t.metadata,t.isOpen,t.apiVersion);if(!u[r]){u[r]={}}let g=await N(m,n,s,o,t.apiVersion);const{mMissingContext:h,propertyValues:b}=j(m,u,n,s,o,c,d);g=Object.assign(g,b);const x=Object.keys(g);try{const a=await S(n,o,m,s,g,t.apiVersion);let d;let b={};if(u.models.viewData){b=u.models.viewData.getProperty("/controlConfiguration")}let x=g;if(C(t)&&t.create){x=t.create.call(t,g,b,u,a,s);Object.keys(m.metadataContexts).forEach(function(e){if(m.metadataContexts[e].computed===true){c[e]=x[e]}});Object.keys(h).forEach(function(e){if(x.hasOwnProperty(e)){c[e]=x[e]}})}else if(t.apiVersion===2){Object.keys(g).forEach(e=>{var n,i,o;let s=g[e];const r=t===null||t===void 0?void 0:(n=t.metadata)===null||n===void 0?void 0:n.properties[e];if(r!==null&&r!==void 0&&r.validate){s=r.validate(s)||s}if((i=s)!==null&&i!==void 0&&(o=i.isA)!==null&&o!==void 0&&o.call(i,k)&&!s.getModel().isA("sap.ui.model.odata.v4.ODataMetaModel")){g[e]=s.getObject()}});const e=t;g.isPublic=s;d=new e({...g,...a},b,u);x=d.getProperties();Object.keys(m.metadataContexts).forEach(function(e){if(x.hasOwnProperty(e)){const t=x[e];if(typeof t==="object"&&!p(t)){const n=F(t);u.models.converterContext.setProperty(n,t);const i=u.models.converterContext.createBindingContext(n);delete R[n];c[e]=i}else if(!c.hasOwnProperty(e)&&t!==undefined){c[e]=t}}})}const $=new i(n,x,t);c[l]=$.createBindingContext("/");let O;if(f.isTraceInfoActive()){const e=f.traceMacroCalls(r,m,c,n,o);if(e!==null&&e!==void 0&&e.macroInfo){O=u["_macroInfo"];u["_macroInfo"]=e.macroInfo}}w(r,m,c,n);const P=o.with(c,t.isOpen!==undefined?!t.isOpen:true);const A=n.parentNode;let E;let T;let N=true;if(A){E=Array.from(A.children).indexOf(n);if(C(t)&&t.getTemplate||t.apiVersion===2&&!t.fragment){let i;let o=false;if(t.apiVersion===2&&d!==undefined){i=await d.getTemplate(n);if(t.isRuntime===true){for(const e in R){const t=R[e];u.models.converterContext.setProperty(e,t);delete R[e]}}o=true}else if(t.getTemplate){i=await t.getTemplate(x)}let s="";if(i){let r=false;let l=_(i,o);for(const e of l){const t=document.createNodeIterator(e,NodeFilter.SHOW_TEXT);let n=t.nextNode();if(e.localName==="parsererror"){r=true}while(n){if(n.textContent&&n.textContent.trim().length>0){s=n.textContent}n=t.nextNode()}}if(r){e.error(`Error while processing building block ${t.xmlTag||t.name}`);try{var y;v=true;const e=(y=d)!==null&&y!==void 0&&y.getTemplate?await d.getTemplate(n):await t.getTemplate(x);l=_(e,true)}finally{v=false}}else if(s.length>0){e.error(`Error while processing building block ${t.xmlTag||t.name}`);const n=W([`Error while processing building block ${t.xmlTag||t.name}`,`Trailing text was found in the XML: ${s}`],l.map(e=>e.outerHTML).join("\n"));l=_(n,true)}n.replaceWith(...l);n=A.children[E];M(a,m.aggregations,n,N);N=false;T=P.visitNode(n)}else{n.remove();T=Promise.resolve()}}else{T=P.insertFragment(r,n)}await T;const i=A.children[E];M(a,m.aggregations,i,N);if(i!==undefined){const e=i.querySelectorAll("slot");e.forEach(function(e){e.remove()})}}if(O){u["_macroInfo"]=O}else{delete u["_macroInfo"]}}catch(i){const o={initialProperties:{},resolvedProperties:{},missingContexts:h};for(const e of x){const t=g[e];if(p(t)){o.initialProperties[e]={path:t.getPath(),value:t.getObject()}}else{o.initialProperties[e]=t}}for(const e in g){const t=g[e];if(!x.includes(e)){if(p(t)){o.resolvedProperties[e]={path:t.getPath(),value:t.getObject()}}else{o.resolvedProperties[e]=t}}}e.error(i);const s=W([`Error while processing building block ${t.name}`],n.outerHTML,o,i.stack);const r=_(s,true);n.replaceWith(...r)}}function D(e,t,n,i){const o=n.name||n.model||undefined;if(i[o]){return}try{let s=n.path;if(n.model!==null){s=`${n.model}>${s}`}const r=t.getSettings();if(n.model==="converterContext"&&n.path.length>0){e[o]=r.models[n.model].getContext(n.path)}else if(!r.bindingContexts[n.model]&&r.models[n.model]){e[o]=r.models[n.model].getContext(n.path)}else{e[o]=t.getContext(s)}i[o]=e[o]}catch(e){}}function L(e){c.plugIn(async(t,n)=>I(e,t,n),e.namespace,e.xmlTag||e.name);if(e.publicNamespace){c.plugIn(async(t,n)=>I(e,t,n,true),e.publicNamespace,e.xmlTag||e.name)}}d.registerBuildingBlock=L;function W(e,t,n,i){const o=e.map(e=>X`<m:Label text="${q(e)}"/>`);let s="";if(i){const e=btoa(`<pre>${i}</pre>`);s=X`<m:FormattedText htmlText="${`{= BBF.base64Decode('${e}') }`}" />`}let r="";if(n){r=X`<m:VBox>
|
|
81
81
|
<m:Label text="Trace Info"/>
|
|
82
82
|
<code:CodeEditor type="json" value="${`{= BBF.base64Decode('${btoa(JSON.stringify(n,null,4))}') }`}" height="300px" />
|
|
83
|
-
</m:VBox>`}return
|
|
83
|
+
</m:VBox>`}return X`<m:VBox xmlns:m="sap.m" xmlns:code="sap.ui.codeeditor" core:require="{BBF:'sap/fe/core/buildingBlocks/BuildingBlockFormatter'}">
|
|
84
84
|
${o}
|
|
85
85
|
${s}
|
|
86
86
|
<grid:CSSGrid gridTemplateRows="fr" gridTemplateColumns="repeat(2,1fr)" gridGap="1rem" xmlns:grid="sap.ui.layout.cssgrid" >
|
|
@@ -90,7 +90,7 @@ sap.ui.predefine("sap/fe/core/buildingBlocks/BuildingBlockRuntime", ["sap/base/L
|
|
|
90
90
|
</m:VBox>
|
|
91
91
|
${r}
|
|
92
92
|
</grid:CSSGrid>
|
|
93
|
-
</m:VBox>`}const
|
|
93
|
+
</m:VBox>`}const R={};function F(e){const t=`/uid--${n()}`;R[t]=e;return t}function _(e){var t,n;let i=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;if(i){e=`<template\n\t\t\t\t\t\txmlns:template="http://schemas.sap.com/sapui5/extension/sap.ui.core.template/1"\n\t\t\t\t\t\txmlns:m="sap.m"\n\t\t\t\t\t\txmlns:macros="sap.fe.macros"\n\t\t\t\t\t\txmlns:core="sap.ui.core"\n\t\t\t\t\t\txmlns:mdc="sap.ui.mdc"\n\t\t\t\t\t\txmlns:customData="http://schemas.sap.com/sapui5/extension/sap.ui.core.CustomData/1">${e}</template>`}const o=y.parseFromString(e,"text/xml");let s=o.firstElementChild;while(((r=s)===null||r===void 0?void 0:r.localName)==="template"){var r;s=s.firstElementChild}const a=(t=s)!==null&&t!==void 0&&t.parentElement?(n=s)===null||n===void 0?void 0:n.parentElement.children:[s];return Array.from(a)}d.parseXMLString=_;function q(e){return e===null||e===void 0?void 0:e.replace(/&/g,"&").replace(/</g,"<").replace(/"/g,""").replace(/'/g,"'")}d.escapeXMLAttributeValue=q;function U(e){var t;const n=_(e,true);if((n===null||n===void 0?void 0:n.length)>0&&((t=n[0])===null||t===void 0?void 0:t.localName)==="parsererror"){const t=n[0].innerText||n[0].innerHTML;return W([t.split("\n")[0]],e)}else{return e}}const X=function(e){let t="";let n;for(var i=arguments.length,o=new Array(i>1?i-1:0),s=1;s<i;s++){o[s-1]=arguments[s]}for(n=0;n<o.length;n++){t+=e[n];const i=o[n];if(Array.isArray(i)&&i.length>0&&typeof i[0]==="string"){t+=i.flat(5).join("\n").trim()}else if(u(i)){t+=i.map(e=>e()).join("\n")}else if(m(i)){const e=g(i);t+=q(e)}else if(typeof i==="undefined"){t+="{this>undefinedValue}"}else if(typeof i==="function"){t+=i()}else if(typeof i==="object"&&i!==null){if(p(i)){t+=i.getPath()}else{const e=F(i);t+=`${e}`}}else if(i&&typeof i==="string"&&!i.startsWith("<")&&!i.startsWith("<")){t+=q(i)}else{t+=i}}t+=e[n];t=t.trim();if(v){return U(t)}return t};d.xml=X;return d},false);
|
|
94
94
|
/*!
|
|
95
95
|
* SAP UI development toolkit for HTML5 (SAPUI5)
|
|
96
96
|
* (c) Copyright 2009-2023 SAP SE. All rights reserved
|
|
@@ -705,7 +705,7 @@ sap.ui.predefine("sap/fe/core/jsx-runtime/useMDXComponents", ["sap/base/Log","sa
|
|
|
705
705
|
* SAP UI development toolkit for HTML5 (SAPUI5)
|
|
706
706
|
* (c) Copyright 2009-2023 SAP SE. All rights reserved
|
|
707
707
|
*/
|
|
708
|
-
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={};const M="sap.fe";E.feNamespace=M;const N="sap.fe.core";E.feCoreNamespace=N;const I="sap.fe.controllerextensions";E.feCextNamespace=I;const h="sap.fe.core.fpm";E.feFpmNamespace=h;const A=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.111.
|
|
708
|
+
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={};const M="sap.fe";E.feNamespace=M;const N="sap.fe.core";E.feCoreNamespace=N;const I="sap.fe.controllerextensions";E.feCextNamespace=I;const h="sap.fe.core.fpm";E.feFpmNamespace=h;const A=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.111.1",noLibraryCSS:true,extensions:{"sap.ui.support":{publicRules:true,internalRules:true},flChangeHandlers:{"sap.fe.core.controls.FilterBar":"sap/ui/mdc/flexibility/FilterBar"}}});A.InvocationGrouping={Isolated:"Isolated",ChangeSet:"ChangeSet"};A.CreationMode={NewPage:"NewPage",Sync:"Sync",Async:"Async",Deferred:"Deferred",Inline:"Inline",CreationRow:"CreationRow",InlineCreationRows:"InlineCreationRows",External:"External"};A.VariantManagement={None:"None",Page:"Page",Control:"Control"};A.Constants={CancelActionDialog:"cancel",ActionExecutionFailed:"actionExecutionFailed",CreationFailed:"creationFailed"};A.ProgrammingModel={Draft:"Draft",Sticky:"Sticky",NonDraft:"NonDraft"};A.DraftStatus={Saving:"Saving",Saved:"Saved",Clear:"Clear"};A.EditMode={Display:"Display",Editable:"Editable"};A.TemplateContentView={Hybrid:"Hybrid",Chart:"Chart",Table:"Table"};let R;(function(e){e["Enabled"]="Enabled";e["Disabled"]="Disabled";e["Auto"]="Auto"})(R||(R={}));E.InitialLoadMode=R;A.InitialLoadMode=R;A.StartupMode={Normal:"Normal",Deeplink:"Deeplink",Create:"Create",AutoCreate:"AutoCreate"};const L=g.createType("sap.fe.core.InitialLoadMode",{defaultValue:A.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"||A.InitialLoadMode.hasOwnProperty(a)}});L.setNormalizer(function(e){if(!e){return A.InitialLoadMode.Disabled}return e===true?A.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 s);F.register("sap.fe.core.services.AsyncComponentService",new o);return A},false);
|
|
709
709
|
/*!
|
|
710
710
|
* SAP UI development toolkit for HTML5 (SAPUI5)
|
|
711
711
|
* (c) Copyright 2009-2023 SAP SE. All rights reserved
|
|
@@ -891,8 +891,8 @@ sap.ui.require.preload({
|
|
|
891
891
|
"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\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} && ${immutableKey>@com.sap.vocabularies.Common.v1.FieldControl/$EnumMember} && ${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',
|
|
892
892
|
"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:control="sap.fe.core.controls"\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',
|
|
893
893
|
"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\') && (\'{ 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><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><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',
|
|
894
|
-
"sap/fe/core/fpm/manifest.json":'{"_version":"1.14.0","sap.app":{"id":"sap.fe.core.fpm","type":"component","applicationVersion":{"version":"1.111.
|
|
895
|
-
"sap/fe/core/manifest.json":'{"_version":"1.21.0","sap.app":{"id":"sap.fe.core","type":"library","embeds":["fpm"],"applicationVersion":{"version":"1.111.
|
|
894
|
+
"sap/fe/core/fpm/manifest.json":'{"_version":"1.14.0","sap.app":{"id":"sap.fe.core.fpm","type":"component","applicationVersion":{"version":"1.111.1"},"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}}}',
|
|
895
|
+
"sap/fe/core/manifest.json":'{"_version":"1.21.0","sap.app":{"id":"sap.fe.core","type":"library","embeds":["fpm"],"applicationVersion":{"version":"1.111.1"},"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":[]}}}}',
|
|
896
896
|
"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',
|
|
897
897
|
"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',
|
|
898
898
|
"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'
|