@sapui5/sap.fe.macros 1.117.0 → 1.117.2
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/macros/.library +1 -1
- package/src/sap/fe/macros/fpm/CustomFragment.block-dbg.js +42 -5
- package/src/sap/fe/macros/fpm/CustomFragment.block.js +18 -4
- package/src/sap/fe/macros/fpm/CustomFragment.block.js.map +1 -1
- package/src/sap/fe/macros/fpm/CustomFragment.block.ts +33 -5
- package/src/sap/fe/macros/fpm/CustomFragmentFragment-dbg.js +42 -0
- package/src/sap/fe/macros/fpm/CustomFragmentFragment.js +6 -0
- package/src/sap/fe/macros/fpm/CustomFragmentFragment.js.map +1 -0
- package/src/sap/fe/macros/fpm/CustomFragmentFragment.ts +11 -0
- package/src/sap/fe/macros/internal/valuehelp/ValueListHelper-dbg.js +4 -1
- package/src/sap/fe/macros/internal/valuehelp/ValueListHelper.js +1 -1
- package/src/sap/fe/macros/internal/valuehelp/ValueListHelper.js.map +1 -1
- package/src/sap/fe/macros/internal/valuehelp/ValueListHelper.ts +2 -0
- package/src/sap/fe/macros/library-dbg.js +17 -6
- package/src/sap/fe/macros/library-preload.js +29 -10
- package/src/sap/fe/macros/library-preload.js.map +1 -1
- package/src/sap/fe/macros/library.js +1 -1
- package/src/sap/fe/macros/library.js.map +1 -1
- package/src/sap/fe/macros/library.ts +23 -7
- package/src/sap/fe/macros/manifest.json +1 -1
- package/src/sap/fe/macros/messages/MessageButton-dbg.js +5 -2
- package/src/sap/fe/macros/messages/MessageButton.js +1 -1
- package/src/sap/fe/macros/messages/MessageButton.js.map +1 -1
- package/src/sap/fe/macros/messages/MessageButton.ts +13 -4
- package/src/sap/fe/macros/table/CustomColumn.fragment.xml +5 -2
- package/src/sap/fe/macros/table/TableHelper-dbg.js +11 -33
- package/src/sap/fe/macros/table/TableHelper.js +1 -1
- package/src/sap/fe/macros/table/TableHelper.js.map +1 -1
- package/src/sap/fe/macros/table/TableHelper.ts +11 -37
package/package.json
CHANGED
|
@@ -5,11 +5,12 @@
|
|
|
5
5
|
sap.ui.define(["sap/fe/core/buildingBlocks/BuildingBlockBase", "sap/fe/core/buildingBlocks/BuildingBlockSupport", "sap/fe/core/buildingBlocks/BuildingBlockTemplateProcessor"], function (BuildingBlockBase, BuildingBlockSupport, BuildingBlockTemplateProcessor) {
|
|
6
6
|
"use strict";
|
|
7
7
|
|
|
8
|
-
var _dec, _dec2, _dec3, _dec4, _class, _class2, _descriptor, _descriptor2, _descriptor3;
|
|
8
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;
|
|
9
9
|
var _exports = {};
|
|
10
10
|
var xml = BuildingBlockTemplateProcessor.xml;
|
|
11
11
|
var defineBuildingBlock = BuildingBlockSupport.defineBuildingBlock;
|
|
12
12
|
var blockAttribute = BuildingBlockSupport.blockAttribute;
|
|
13
|
+
var blockAggregation = BuildingBlockSupport.blockAggregation;
|
|
13
14
|
function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }
|
|
14
15
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
15
16
|
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
|
|
@@ -35,6 +36,9 @@ sap.ui.define(["sap/fe/core/buildingBlocks/BuildingBlockBase", "sap/fe/core/buil
|
|
|
35
36
|
}), _dec4 = blockAttribute({
|
|
36
37
|
type: "string",
|
|
37
38
|
required: true
|
|
39
|
+
}), _dec5 = blockAggregation({
|
|
40
|
+
type: "sap.ui.core.CustomData",
|
|
41
|
+
slot: "childCustomData"
|
|
38
42
|
}), _dec(_class = (_class2 = /*#__PURE__*/function (_BuildingBlockBase) {
|
|
39
43
|
_inheritsLoose(CustomFragmentBlock, _BuildingBlockBase);
|
|
40
44
|
function CustomFragmentBlock() {
|
|
@@ -46,6 +50,7 @@ sap.ui.define(["sap/fe/core/buildingBlocks/BuildingBlockBase", "sap/fe/core/buil
|
|
|
46
50
|
_initializerDefineProperty(_this, "id", _descriptor, _assertThisInitialized(_this));
|
|
47
51
|
_initializerDefineProperty(_this, "contextPath", _descriptor2, _assertThisInitialized(_this));
|
|
48
52
|
_initializerDefineProperty(_this, "fragmentName", _descriptor3, _assertThisInitialized(_this));
|
|
53
|
+
_initializerDefineProperty(_this, "childCustomData", _descriptor4, _assertThisInitialized(_this));
|
|
49
54
|
return _this;
|
|
50
55
|
}
|
|
51
56
|
_exports = CustomFragmentBlock;
|
|
@@ -57,18 +62,45 @@ sap.ui.define(["sap/fe/core/buildingBlocks/BuildingBlockBase", "sap/fe/core/buil
|
|
|
57
62
|
*/
|
|
58
63
|
_proto.getTemplate = function getTemplate() {
|
|
59
64
|
const fragmentInstanceName = this.fragmentName + "-JS".replace(/\//g, ".");
|
|
60
|
-
|
|
65
|
+
const customData = this.childCustomData;
|
|
66
|
+
const customDataObj = {};
|
|
67
|
+
let child = customData === null || customData === void 0 ? void 0 : customData.firstElementChild;
|
|
68
|
+
while (child) {
|
|
69
|
+
const name = child.getAttribute("key");
|
|
70
|
+
if (name !== null) {
|
|
71
|
+
customDataObj[name] = child.getAttribute("value");
|
|
72
|
+
}
|
|
73
|
+
child = child.nextElementSibling;
|
|
74
|
+
}
|
|
75
|
+
if (Object.keys(customDataObj).length) {
|
|
76
|
+
return xml`<macros:CustomFragmentFragment
|
|
77
|
+
xmlns:compo="http://schemas.sap.com/sapui5/extension/sap.ui.core.xmlcomposite/1"
|
|
78
|
+
xmlns:macros="sap.fe.macros.fpm"
|
|
79
|
+
fragmentName="${fragmentInstanceName}"
|
|
80
|
+
childCustomData="${JSON.stringify(customDataObj)}"
|
|
81
|
+
id="${this.id}"
|
|
82
|
+
type="CUSTOM"
|
|
83
|
+
>
|
|
84
|
+
<compo:fragmentContent>
|
|
85
|
+
<core:FragmentDefinition>
|
|
86
|
+
<core:Fragment fragmentName="${this.fragmentName}" type="XML"/>
|
|
87
|
+
</core:FragmentDefinition>
|
|
88
|
+
</compo:fragmentContent>
|
|
89
|
+
</macros:CustomFragmentFragment>`;
|
|
90
|
+
}
|
|
91
|
+
return xml`<macros:CustomFragmentFragment
|
|
61
92
|
xmlns:compo="http://schemas.sap.com/sapui5/extension/sap.ui.core.xmlcomposite/1"
|
|
93
|
+
xmlns:macros="sap.fe.macros.fpm"
|
|
62
94
|
fragmentName="${fragmentInstanceName}"
|
|
63
95
|
id="${this.id}"
|
|
64
96
|
type="CUSTOM"
|
|
65
97
|
>
|
|
66
98
|
<compo:fragmentContent>
|
|
67
99
|
<core:FragmentDefinition>
|
|
68
|
-
<core:Fragment fragmentName="${this.fragmentName}" type="XML"
|
|
100
|
+
<core:Fragment fragmentName="${this.fragmentName}" type="XML"/>
|
|
69
101
|
</core:FragmentDefinition>
|
|
70
102
|
</compo:fragmentContent>
|
|
71
|
-
</
|
|
103
|
+
</macros:CustomFragmentFragment>`;
|
|
72
104
|
};
|
|
73
105
|
return CustomFragmentBlock;
|
|
74
106
|
}(BuildingBlockBase), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "id", [_dec2], {
|
|
@@ -86,8 +118,13 @@ sap.ui.define(["sap/fe/core/buildingBlocks/BuildingBlockBase", "sap/fe/core/buil
|
|
|
86
118
|
enumerable: true,
|
|
87
119
|
writable: true,
|
|
88
120
|
initializer: null
|
|
121
|
+
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "childCustomData", [_dec5], {
|
|
122
|
+
configurable: true,
|
|
123
|
+
enumerable: true,
|
|
124
|
+
writable: true,
|
|
125
|
+
initializer: null
|
|
89
126
|
})), _class2)) || _class);
|
|
90
127
|
_exports = CustomFragmentBlock;
|
|
91
128
|
return _exports;
|
|
92
129
|
}, false);
|
|
93
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
130
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJDdXN0b21GcmFnbWVudEJsb2NrIiwiZGVmaW5lQnVpbGRpbmdCbG9jayIsIm5hbWUiLCJuYW1lc3BhY2UiLCJibG9ja0F0dHJpYnV0ZSIsInR5cGUiLCJyZXF1aXJlZCIsImJsb2NrQWdncmVnYXRpb24iLCJzbG90IiwiZ2V0VGVtcGxhdGUiLCJmcmFnbWVudEluc3RhbmNlTmFtZSIsImZyYWdtZW50TmFtZSIsInJlcGxhY2UiLCJjdXN0b21EYXRhIiwiY2hpbGRDdXN0b21EYXRhIiwiY3VzdG9tRGF0YU9iaiIsImNoaWxkIiwiZmlyc3RFbGVtZW50Q2hpbGQiLCJnZXRBdHRyaWJ1dGUiLCJuZXh0RWxlbWVudFNpYmxpbmciLCJPYmplY3QiLCJrZXlzIiwibGVuZ3RoIiwieG1sIiwiSlNPTiIsInN0cmluZ2lmeSIsImlkIiwiQnVpbGRpbmdCbG9ja0Jhc2UiXSwic291cmNlUm9vdCI6Ii4iLCJzb3VyY2VzIjpbIkN1c3RvbUZyYWdtZW50LmJsb2NrLnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBCdWlsZGluZ0Jsb2NrQmFzZSBmcm9tIFwic2FwL2ZlL2NvcmUvYnVpbGRpbmdCbG9ja3MvQnVpbGRpbmdCbG9ja0Jhc2VcIjtcbmltcG9ydCB7IGJsb2NrQWdncmVnYXRpb24sIGJsb2NrQXR0cmlidXRlLCBkZWZpbmVCdWlsZGluZ0Jsb2NrIH0gZnJvbSBcInNhcC9mZS9jb3JlL2J1aWxkaW5nQmxvY2tzL0J1aWxkaW5nQmxvY2tTdXBwb3J0XCI7XG5pbXBvcnQgeyB4bWwgfSBmcm9tIFwic2FwL2ZlL2NvcmUvYnVpbG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2I7QUFDQTtBQUNBLG1CQUFtQmIsb0JBQXFCO0FBQ3hDLFNBQVMsSUFBSSxDQUFDZ0IsRUFBRztBQUNqQjtBQUNBO0FBQ0E7QUFDQTtBQUNBLG9DQUFvQyxJQUFJLENBQUNmLFlBQWE7QUFDdEQ7QUFDQTtBQUNBLG1DQUFtQztJQUNsQyxDQUFDO0lBQUE7RUFBQSxFQW5FK0NnQixpQkFBaUI7SUFBQTtJQUFBO0lBQUE7SUFBQTtFQUFBO0lBQUE7SUFBQTtJQUFBO0lBQUE7RUFBQTtJQUFBO0lBQUE7SUFBQTtJQUFBO0VBQUE7SUFBQTtJQUFBO0lBQUE7SUFBQTtFQUFBO0VBQUE7RUFBQTtBQUFBIn0=
|
|
@@ -2,16 +2,30 @@
|
|
|
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/buildingBlocks/BuildingBlockBase","sap/fe/core/buildingBlocks/BuildingBlockSupport","sap/fe/core/buildingBlocks/BuildingBlockTemplateProcessor"],function(e,r
|
|
5
|
+
sap.ui.define(["sap/fe/core/buildingBlocks/BuildingBlockBase","sap/fe/core/buildingBlocks/BuildingBlockSupport","sap/fe/core/buildingBlocks/BuildingBlockTemplateProcessor"],function(e,t,r){"use strict";var i,n,a,o,l,u,c,s,m,f,p;var g={};var d=r.xml;var b=t.defineBuildingBlock;var h=t.blockAttribute;var y=t.blockAggregation;function v(e,t,r,i){if(!r)return;Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(i):void 0})}function C(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function F(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;w(e,t)}function w(e,t){w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function e(t,r){t.__proto__=r;return t};return w(e,t)}function x(e,t,r,i,n){var a={};Object.keys(i).forEach(function(e){a[e]=i[e]});a.enumerable=!!a.enumerable;a.configurable=!!a.configurable;if("value"in a||a.initializer){a.writable=true}a=r.slice().reverse().reduce(function(r,i){return i(e,t,r)||r},a);if(n&&a.initializer!==void 0){a.value=a.initializer?a.initializer.call(n):void 0;a.initializer=undefined}if(a.initializer===void 0){Object.defineProperty(e,t,a);a=null}return a}function k(e,t){throw new Error("Decorating class property failed. Please ensure that "+"proposal-class-properties is enabled and runs after the decorators transform.")}let z=(i=b({name:"CustomFragment",namespace:"sap.fe.macros.fpm"}),n=h({type:"string",required:true}),a=h({type:"sap.ui.model.Context",required:false}),o=h({type:"string",required:true}),l=y({type:"sap.ui.core.CustomData",slot:"childCustomData"}),i(u=(c=function(e){F(t,e);function t(){var t;for(var r=arguments.length,i=new Array(r),n=0;n<r;n++){i[n]=arguments[n]}t=e.call(this,...i)||this;v(t,"id",s,C(t));v(t,"contextPath",m,C(t));v(t,"fragmentName",f,C(t));v(t,"childCustomData",p,C(t));return t}g=t;var r=t.prototype;r.getTemplate=function e(){const t=this.fragmentName+"-JS".replace(/\//g,".");const r=this.childCustomData;const i={};let n=r===null||r===void 0?void 0:r.firstElementChild;while(n){const e=n.getAttribute("key");if(e!==null){i[e]=n.getAttribute("value")}n=n.nextElementSibling}if(Object.keys(i).length){return d`<macros:CustomFragmentFragment
|
|
6
|
+
xmlns:compo="http://schemas.sap.com/sapui5/extension/sap.ui.core.xmlcomposite/1"
|
|
7
|
+
xmlns:macros="sap.fe.macros.fpm"
|
|
8
|
+
fragmentName="${t}"
|
|
9
|
+
childCustomData="${JSON.stringify(i)}"
|
|
10
|
+
id="${this.id}"
|
|
11
|
+
type="CUSTOM"
|
|
12
|
+
>
|
|
13
|
+
<compo:fragmentContent>
|
|
14
|
+
<core:FragmentDefinition>
|
|
15
|
+
<core:Fragment fragmentName="${this.fragmentName}" type="XML"/>
|
|
16
|
+
</core:FragmentDefinition>
|
|
17
|
+
</compo:fragmentContent>
|
|
18
|
+
</macros:CustomFragmentFragment>`}return d`<macros:CustomFragmentFragment
|
|
6
19
|
xmlns:compo="http://schemas.sap.com/sapui5/extension/sap.ui.core.xmlcomposite/1"
|
|
7
|
-
|
|
20
|
+
xmlns:macros="sap.fe.macros.fpm"
|
|
21
|
+
fragmentName="${t}"
|
|
8
22
|
id="${this.id}"
|
|
9
23
|
type="CUSTOM"
|
|
10
24
|
>
|
|
11
25
|
<compo:fragmentContent>
|
|
12
26
|
<core:FragmentDefinition>
|
|
13
|
-
<core:Fragment fragmentName="${this.fragmentName}" type="XML"
|
|
27
|
+
<core:Fragment fragmentName="${this.fragmentName}" type="XML"/>
|
|
14
28
|
</core:FragmentDefinition>
|
|
15
29
|
</compo:fragmentContent>
|
|
16
|
-
</
|
|
30
|
+
</macros:CustomFragmentFragment>`};return t}(e),s=x(c.prototype,"id",[n],{configurable:true,enumerable:true,writable:true,initializer:null}),m=x(c.prototype,"contextPath",[a],{configurable:true,enumerable:true,writable:true,initializer:null}),f=x(c.prototype,"fragmentName",[o],{configurable:true,enumerable:true,writable:true,initializer:null}),p=x(c.prototype,"childCustomData",[l],{configurable:true,enumerable:true,writable:true,initializer:null}),c))||u);g=z;return g},false);
|
|
17
31
|
//# sourceMappingURL=CustomFragment.block.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomFragment.block.js","names":["sap","ui","define","BuildingBlockBase","BuildingBlockSupport","BuildingBlockTemplateProcessor","_dec","_dec2","_dec3","_dec4","_class","_class2","_descriptor","_descriptor2","_descriptor3","_exports","xml","defineBuildingBlock","blockAttribute","_initializerDefineProperty","target","property","descriptor","context","Object","defineProperty","enumerable","configurable","writable","value","initializer","call","_assertThisInitialized","self","ReferenceError","_inheritsLoose","subClass","superClass","prototype","create","constructor","_setPrototypeOf","o","p","setPrototypeOf","bind","__proto__","_applyDecoratedDescriptor","decorators","desc","keys","forEach","key","slice","reverse","reduce","decorator","undefined","_initializerWarningHelper","Error","CustomFragmentBlock","name","namespace","type","required","_BuildingBlockBase","_this","_len","arguments","length","args","Array","_key","this","_proto","getTemplate","fragmentInstanceName","fragmentName","replace","id"],"sources":["CustomFragment.block-dbg.js"],"mappings":";;;;AAIAA,IAAIC,GAAGC,OAAO,CAAC,+CAAgD,kDAAmD,6DAA8D,SAAUC,EAAmBC,EAAsBC,GACjO,aAEA,IAAIC,EAAMC,EAAOC,EAAOC,EAAOC,EAAQC,EAASC,EAAaC,EAAcC,
|
|
1
|
+
{"version":3,"file":"CustomFragment.block.js","names":["sap","ui","define","BuildingBlockBase","BuildingBlockSupport","BuildingBlockTemplateProcessor","_dec","_dec2","_dec3","_dec4","_dec5","_class","_class2","_descriptor","_descriptor2","_descriptor3","_descriptor4","_exports","xml","defineBuildingBlock","blockAttribute","blockAggregation","_initializerDefineProperty","target","property","descriptor","context","Object","defineProperty","enumerable","configurable","writable","value","initializer","call","_assertThisInitialized","self","ReferenceError","_inheritsLoose","subClass","superClass","prototype","create","constructor","_setPrototypeOf","o","p","setPrototypeOf","bind","__proto__","_applyDecoratedDescriptor","decorators","desc","keys","forEach","key","slice","reverse","reduce","decorator","undefined","_initializerWarningHelper","Error","CustomFragmentBlock","name","namespace","type","required","slot","_BuildingBlockBase","_this","_len","arguments","length","args","Array","_key","this","_proto","getTemplate","fragmentInstanceName","fragmentName","replace","customData","childCustomData","customDataObj","child","firstElementChild","getAttribute","nextElementSibling","JSON","stringify","id"],"sources":["CustomFragment.block-dbg.js"],"mappings":";;;;AAIAA,IAAIC,GAAGC,OAAO,CAAC,+CAAgD,kDAAmD,6DAA8D,SAAUC,EAAmBC,EAAsBC,GACjO,aAEA,IAAIC,EAAMC,EAAOC,EAAOC,EAAOC,EAAOC,EAAQC,EAASC,EAAaC,EAAcC,EAAcC,EAChG,IAAIC,EAAW,CAAC,EAChB,IAAIC,EAAMb,EAA+Ba,IACzC,IAAIC,EAAsBf,EAAqBe,oBAC/C,IAAIC,EAAiBhB,EAAqBgB,eAC1C,I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AME,aAAa,OAChC,GAAIxB,IAAS,KAAM,CACjBqB,EAAcrB,GAAQsB,EAAME,aAAa,QAC3C,CACAF,EAAQA,EAAMG,kBAChB,CACA,GAAI9D,OAAO0B,KAAKgC,GAAeZ,OAAQ,CACrC,OAAOvD,CAAG;;;oBAGE8D;uBACGU,KAAKC,UAAUN;UAC5BR,KAAKe;;;;;qCAKsBf,KAAKI;;;oCAIpC,CACA,OAAO/D,CAAG;;;mBAGG8D;SACVH,KAAKe;;;;;oCAKsBf,KAAKI;;;mCAIrC,EACA,OAAOlB,CACT,CAhE0C,CAgExC5D,GAAqBU,EAAcqC,EAA0BtC,EAAQ6B,UAAW,KAAM,CAAClC,GAAQ,CAC/FuB,aAAc,KACdD,WAAY,KACZE,SAAU,KACVE,YAAa,OACXnB,EAAeoC,EAA0BtC,EAAQ6B,UAAW,cAAe,CAACjC,GAAQ,CACtFsB,aAAc,KACdD,WAAY,KACZE,SAAU,KACVE,YAAa,OACXlB,EAAemC,EAA0BtC,EAAQ6B,UAAW,eAAgB,CAAChC,GAAQ,CACvFqB,aAAc,KACdD,WAAY,KACZE,SAAU,KACVE,YAAa,OACXjB,EAAekC,EAA0BtC,EAAQ6B,UAAW,kBAAmB,CAAC/B,GAAQ,CAC1FoB,aAAc,KACdD,WAAY,KACZE,SAAU,KACVE,YAAa,OACVrB,KAAaD,GAClBM,EAAW8C,EACX,OAAO9C,CACT,EAAG"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import BuildingBlockBase from "sap/fe/core/buildingBlocks/BuildingBlockBase";
|
|
2
|
-
import { blockAttribute, defineBuildingBlock } from "sap/fe/core/buildingBlocks/BuildingBlockSupport";
|
|
2
|
+
import { blockAggregation, blockAttribute, defineBuildingBlock } from "sap/fe/core/buildingBlocks/BuildingBlockSupport";
|
|
3
3
|
import { xml } from "sap/fe/core/buildingBlocks/BuildingBlockTemplateProcessor";
|
|
4
4
|
import type Context from "sap/ui/model/Context";
|
|
5
5
|
|
|
@@ -32,6 +32,8 @@ export default class CustomFragmentBlock extends BuildingBlockBase {
|
|
|
32
32
|
@blockAttribute({ type: "string", required: true })
|
|
33
33
|
public fragmentName!: string;
|
|
34
34
|
|
|
35
|
+
@blockAggregation({ type: "sap.ui.core.CustomData", slot: "childCustomData" })
|
|
36
|
+
public childCustomData!: Element;
|
|
35
37
|
/**
|
|
36
38
|
* The building block template function.
|
|
37
39
|
*
|
|
@@ -39,18 +41,44 @@ export default class CustomFragmentBlock extends BuildingBlockBase {
|
|
|
39
41
|
*/
|
|
40
42
|
getTemplate() {
|
|
41
43
|
const fragmentInstanceName = this.fragmentName + "-JS".replace(/\//g, ".");
|
|
42
|
-
|
|
43
|
-
|
|
44
|
+
const customData: Element = this.childCustomData;
|
|
45
|
+
const customDataObj: Record<string, string | null> = {};
|
|
46
|
+
let child = customData?.firstElementChild;
|
|
47
|
+
while (child) {
|
|
48
|
+
const name = child.getAttribute("key");
|
|
49
|
+
if (name !== null) {
|
|
50
|
+
customDataObj[name] = child.getAttribute("value");
|
|
51
|
+
}
|
|
52
|
+
child = child.nextElementSibling;
|
|
53
|
+
}
|
|
54
|
+
if (Object.keys(customDataObj).length) {
|
|
55
|
+
return xml`<macros:CustomFragmentFragment
|
|
56
|
+
xmlns:compo="http://schemas.sap.com/sapui5/extension/sap.ui.core.xmlcomposite/1"
|
|
57
|
+
xmlns:macros="sap.fe.macros.fpm"
|
|
58
|
+
fragmentName="${fragmentInstanceName}"
|
|
59
|
+
childCustomData="${JSON.stringify(customDataObj)}"
|
|
60
|
+
id="${this.id}"
|
|
61
|
+
type="CUSTOM"
|
|
62
|
+
>
|
|
63
|
+
<compo:fragmentContent>
|
|
64
|
+
<core:FragmentDefinition>
|
|
65
|
+
<core:Fragment fragmentName="${this.fragmentName}" type="XML"/>
|
|
66
|
+
</core:FragmentDefinition>
|
|
67
|
+
</compo:fragmentContent>
|
|
68
|
+
</macros:CustomFragmentFragment>`;
|
|
69
|
+
}
|
|
70
|
+
return xml`<macros:CustomFragmentFragment
|
|
44
71
|
xmlns:compo="http://schemas.sap.com/sapui5/extension/sap.ui.core.xmlcomposite/1"
|
|
72
|
+
xmlns:macros="sap.fe.macros.fpm"
|
|
45
73
|
fragmentName="${fragmentInstanceName}"
|
|
46
74
|
id="${this.id}"
|
|
47
75
|
type="CUSTOM"
|
|
48
76
|
>
|
|
49
77
|
<compo:fragmentContent>
|
|
50
78
|
<core:FragmentDefinition>
|
|
51
|
-
<core:Fragment fragmentName="${this.fragmentName}" type="XML"
|
|
79
|
+
<core:Fragment fragmentName="${this.fragmentName}" type="XML"/>
|
|
52
80
|
</core:FragmentDefinition>
|
|
53
81
|
</compo:fragmentContent>
|
|
54
|
-
</
|
|
82
|
+
</macros:CustomFragmentFragment>`;
|
|
55
83
|
}
|
|
56
84
|
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* SAP UI development toolkit for HTML5 (SAPUI5)
|
|
3
|
+
* (c) Copyright 2009-2023 SAP SE. All rights reserved
|
|
4
|
+
*/
|
|
5
|
+
sap.ui.define(["sap/fe/core/helpers/ClassSupport", "sap/ui/core/Fragment"], function (ClassSupport, Fragment) {
|
|
6
|
+
"use strict";
|
|
7
|
+
|
|
8
|
+
var _dec, _dec2, _class, _class2, _descriptor;
|
|
9
|
+
var _exports = {};
|
|
10
|
+
var property = ClassSupport.property;
|
|
11
|
+
var defineUI5Class = ClassSupport.defineUI5Class;
|
|
12
|
+
function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }
|
|
13
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
14
|
+
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
|
|
15
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
16
|
+
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
|
|
17
|
+
function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }
|
|
18
|
+
let CustomFragmentFragment = (_dec = defineUI5Class("sap.fe.macros.fpm.CustomFragmentFragment"), _dec2 = property({
|
|
19
|
+
type: "string"
|
|
20
|
+
}), _dec(_class = (_class2 = /*#__PURE__*/function (_Fragment) {
|
|
21
|
+
_inheritsLoose(CustomFragmentFragment, _Fragment);
|
|
22
|
+
function CustomFragmentFragment() {
|
|
23
|
+
var _this;
|
|
24
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
25
|
+
args[_key] = arguments[_key];
|
|
26
|
+
}
|
|
27
|
+
_this = _Fragment.call(this, ...args) || this;
|
|
28
|
+
_initializerDefineProperty(_this, "childCustomData", _descriptor, _assertThisInitialized(_this));
|
|
29
|
+
return _this;
|
|
30
|
+
}
|
|
31
|
+
_exports = CustomFragmentFragment;
|
|
32
|
+
return CustomFragmentFragment;
|
|
33
|
+
}(Fragment), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "childCustomData", [_dec2], {
|
|
34
|
+
configurable: true,
|
|
35
|
+
enumerable: true,
|
|
36
|
+
writable: true,
|
|
37
|
+
initializer: null
|
|
38
|
+
})), _class2)) || _class);
|
|
39
|
+
_exports = CustomFragmentFragment;
|
|
40
|
+
return _exports;
|
|
41
|
+
}, false);
|
|
42
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJDdXN0b21GcmFnbWVudEZyYWdtZW50IiwiZGVmaW5lVUk1Q2xhc3MiLCJwcm9wZXJ0eSIsInR5cGUiLCJGcmFnbWVudCJdLCJzb3VyY2VSb290IjoiLiIsInNvdXJjZXMiOlsiQ3VzdG9tRnJhZ21lbnRGcmFnbWVudC50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBkZWZpbmVVSTVDbGFzcywgcHJvcGVydHkgfSBmcm9tIFwic2FwL2ZlL2NvcmUvaGVscGVycy9DbGFzc1N1cHBvcnRcIjtcbmltcG9ydCBGcmFnbWVudCBmcm9tIFwic2FwL3VpL2NvcmUvRnJhZ21lbnRcIjtcblxuQGRlZmluZVVJNUNsYXNzKFwic2FwLmZlLm1hY3Jvcy5mcG0uQ3VzdG9tRnJhZ21lbnRGcmFnbWVudFwiKVxuZXhwb3J0IGRlZmF1bHQgY2xhc3MgQ3VzdG9tRnJhZ21lbnRGcmFnbWVudCBleHRlbmRzIEZyYWdtZW50IHtcblx0Lypcblx0ICogRXZlbnQgdG8gaG9sZCBhbmQgcmVzb2x2ZSBmdW5jdGlvbnMgZm9yIHJ1bnRpbWUgYnVpbGRpbmcgYmxvY2tzXG5cdCAqL1xuXHRAcHJvcGVydHkoeyB0eXBlOiBcInN0cmluZ1wiIH0pXG5cdGNoaWxkQ3VzdG9tRGF0YSE6IG9iamVjdDtcbn1cbiJdLCJtYXBwaW5ncyI6IjtBQUFBO0FBQUE7QUFBQTs7Ozs7Ozs7Ozs7Ozs7TUFJcUJBLHNCQUFzQixXQUQxQ0MsY0FBYyxDQUFDLDBDQUEwQyxDQUFDLFVBS3pEQyxRQUFRLENBQUM7SUFBRUMsSUFBSSxFQUFFO0VBQVMsQ0FBQyxDQUFDO0lBQUE7SUFBQTtNQUFBO01BQUE7UUFBQTtNQUFBO01BQUE7TUFBQTtNQUFBO0lBQUE7SUFBQTtJQUFBO0VBQUEsRUFKc0JDLFFBQVE7SUFBQTtJQUFBO0lBQUE7SUFBQTtFQUFBO0VBQUE7RUFBQTtBQUFBIn0=
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* SAP UI development toolkit for HTML5 (SAPUI5)
|
|
3
|
+
* (c) Copyright 2009-2023 SAP SE. All rights reserved
|
|
4
|
+
*/
|
|
5
|
+
sap.ui.define(["sap/fe/core/helpers/ClassSupport","sap/ui/core/Fragment"],function(e,r){"use strict";var t,i,n,a,o;var l={};var u=e.property;var c=e.defineUI5Class;function s(e,r,t,i){if(!t)return;Object.defineProperty(e,r,{enumerable:t.enumerable,configurable:t.configurable,writable:t.writable,value:t.initializer?t.initializer.call(i):void 0})}function f(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function p(e,r){e.prototype=Object.create(r.prototype);e.prototype.constructor=e;b(e,r)}function b(e,r){b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function e(r,t){r.__proto__=t;return r};return b(e,r)}function d(e,r,t,i,n){var a={};Object.keys(i).forEach(function(e){a[e]=i[e]});a.enumerable=!!a.enumerable;a.configurable=!!a.configurable;if("value"in a||a.initializer){a.writable=true}a=t.slice().reverse().reduce(function(t,i){return i(e,r,t)||t},a);if(n&&a.initializer!==void 0){a.value=a.initializer?a.initializer.call(n):void 0;a.initializer=undefined}if(a.initializer===void 0){Object.defineProperty(e,r,a);a=null}return a}function v(e,r){throw new Error("Decorating class property failed. Please ensure that "+"proposal-class-properties is enabled and runs after the decorators transform.")}let h=(t=c("sap.fe.macros.fpm.CustomFragmentFragment"),i=u({type:"string"}),t(n=(a=function(e){p(r,e);function r(){var r;for(var t=arguments.length,i=new Array(t),n=0;n<t;n++){i[n]=arguments[n]}r=e.call(this,...i)||this;s(r,"childCustomData",o,f(r));return r}l=r;return r}(r),o=d(a.prototype,"childCustomData",[i],{configurable:true,enumerable:true,writable:true,initializer:null}),a))||n);l=h;return l},false);
|
|
6
|
+
//# sourceMappingURL=CustomFragmentFragment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CustomFragmentFragment.js","names":["sap","ui","define","ClassSupport","Fragment","_dec","_dec2","_class","_class2","_descriptor","_exports","property","defineUI5Class","_initializerDefineProperty","target","descriptor","context","Object","defineProperty","enumerable","configurable","writable","value","initializer","call","_assertThisInitialized","self","ReferenceError","_inheritsLoose","subClass","superClass","prototype","create","constructor","_setPrototypeOf","o","p","setPrototypeOf","bind","__proto__","_applyDecoratedDescriptor","decorators","desc","keys","forEach","key","slice","reverse","reduce","decorator","undefined","_initializerWarningHelper","Error","CustomFragmentFragment","type","_Fragment","_this","_len","arguments","length","args","Array","_key","this"],"sources":["CustomFragmentFragment-dbg.js"],"mappings":";;;;AAIAA,IAAIC,GAAGC,OAAO,CAAC,mCAAoC,wBAAyB,SAAUC,EAAcC,GAClG,aAEA,IAAIC,EAAMC,EAAOC,EAAQC,EAASC,EAClC,IAAIC,EAAW,CAAC,EAChB,IAAIC,EAAWR,EAAaQ,SAC5B,IAAIC,EAAiBT,EAAaS,eAClC,SAASC,EAA2BC,EAAQH,EAAUI,EAAYC,GAAW,IAAKD,EAAY,OAAQE,OAAOC,eAAeJ,EAAQH,EAAU,CAAEQ,WAAYJ,EAAWI,WAAYC,aAAcL,EAAWK,aAAcC,SAAUN,EAAWM,SAAUC,MAAOP,EAAWQ,YAAcR,EAAWQ,YAAYC,KAAKR,QAAgB,GAAM,CAC3U,SAASS,EAAuBC,GAAQ,GAAIA,SAAc,EAAG,CAAE,MAAM,IAAIC,eAAe,4DAA8D,CAAE,OAAOD,CAAM,CACrK,SAASE,EAAeC,EAAUC,GAAcD,EAASE,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AIC,MAAMJ,GAAOK,EAAO,EAAGA,EAAOL,EAAMK,IAAQ,CACvFF,EAAKE,GAAQJ,UAAUI,EACzB,CACAN,EAAQD,EAAU/B,KAAKuC,QAASH,IAASG,KACzClD,EAA2B2C,EAAO,kBAAmB/C,EAAagB,EAAuB+B,IACzF,OAAOA,CACT,CACA9C,EAAW2C,EACX,OAAOA,CACT,CAb0C,CAaxCjD,GAAYK,EAAc+B,EAA0BhC,EAAQuB,UAAW,kBAAmB,CAACzB,GAAQ,CACnGc,aAAc,KACdD,WAAY,KACZE,SAAU,KACVE,YAAa,OACVf,KAAaD,GAClBG,EAAW2C,EACX,OAAO3C,CACT,EAAG"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { defineUI5Class, property } from "sap/fe/core/helpers/ClassSupport";
|
|
2
|
+
import Fragment from "sap/ui/core/Fragment";
|
|
3
|
+
|
|
4
|
+
@defineUI5Class("sap.fe.macros.fpm.CustomFragmentFragment")
|
|
5
|
+
export default class CustomFragmentFragment extends Fragment {
|
|
6
|
+
/*
|
|
7
|
+
* Event to hold and resolve functions for runtime building blocks
|
|
8
|
+
*/
|
|
9
|
+
@property({ type: "string" })
|
|
10
|
+
childCustomData!: object;
|
|
11
|
+
}
|