Skip to content

Commit 59180d1

Browse files
authored
Merge branch 'main' into main
2 parents 51183c6 + 1bb7130 commit 59180d1

19 files changed

+106
-76
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 0 additions & 24 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 0 additions & 10 deletions
This file was deleted.

.github/workflows/auto_downport.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
run: |
2525
git config --global user.name 'github-actions[bot]'
2626
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
27-
git add src
27+
git add .
2828
git commit -m "Downport changes"
2929
3030
- name: Switch to Branch 702
@@ -35,4 +35,4 @@ jobs:
3535
with:
3636
github_token: ${{ secrets.GITHUB_TOKEN }}
3737
branch: 702
38-
force: true
38+
force: true

.github/workflows/mirror_ajson.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: mirror_ajson
33
on:
44
workflow_dispatch:
55
schedule:
6-
- cron: '0 0 * * 1'
6+
- cron: '0 1 * * 1'
77

88
permissions:
99
contents: read
@@ -33,4 +33,4 @@ jobs:
3333
uses: peter-evans/create-pull-request@v4
3434
with:
3535
title: mirror-ajson-update
36-
branch: mirror-ajson-update
36+
branch: mirror-ajson-update

.github/workflows/mirror_srtti.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: mirror_srtti
33
on:
44
workflow_dispatch:
55
schedule:
6-
- cron: '0 0 * * 1'
6+
- cron: '0 1 * * 1'
77

88
permissions:
99
contents: read
@@ -33,4 +33,4 @@ jobs:
3333
uses: peter-evans/create-pull-request@v4
3434
with:
3535
title: mirror-srtti-update
36-
branch: mirror-srtti-update
36+
branch: mirror-srtti-update

app/webapp/Component.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ sap.ui.define(["sap/ui/core/UIComponent", "z2ui5/model/models", "z2ui5/cc/Server
88
]
99
},
1010
async init() {
11+
12+
z2ui5.oConfig = {};
13+
1114
UIComponent.prototype.init.apply(this, arguments);
1215

1316
if (typeof z2ui5 == 'undefined') {
@@ -24,7 +27,6 @@ sap.ui.define(["sap/ui/core/UIComponent", "z2ui5/model/models", "z2ui5/cc/Server
2427
z2ui5.oDeviceModel = Models.createDeviceModel();
2528
this.setModel(z2ui5.oDeviceModel, "device");
2629

27-
z2ui5.oConfig = {};
2830
z2ui5.oConfig.ComponentData = this.getComponentData();
2931

3032
try {
@@ -79,4 +81,4 @@ sap.ui.define(["sap/ui/core/UIComponent", "z2ui5/model/models", "z2ui5/cc/Server
7981
UIComponent.prototype.exit.apply(this, arguments);
8082
},
8183
});
82-
});
84+
});

app/webapp/cc/DebugTool.fragment.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
>
1212
<IconTabHeader
1313
selectedKey="PLAIN"
14-
select="onItemSelect"
14+
select=".onItemSelect"
1515
>
1616
<items>
1717
<IconTabFilter
@@ -83,7 +83,7 @@
8383
</items>
8484
</IconTabHeader>
8585
<VBox>
86-
<ToggleButton text="Source XML after Templating" visible="{/isTemplating}" pressed="{/templatingSource}" press="onTemplatingPress" />
86+
<ToggleButton text="Source XML after Templating" visible="{/isTemplating}" pressed="{/templatingSource}" press=".onTemplatingPress" />
8787
<ce:CodeEditor
8888
type="{/type}"
8989
value="{/value}"
@@ -97,7 +97,7 @@
9797
<endButton>
9898
<Button
9999
text="Close"
100-
press="onClose"
100+
press=".onClose"
101101
/>
102102
</endButton>
103103
</Dialog>

app/webapp/controller/App.controller.js

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -851,8 +851,9 @@ sap.ui.define("z2ui5/SmartMultiInputExt", ["sap/ui/core/Control", "sap/m/Token",
851851
sap.ui.define("z2ui5/CameraPicture", [
852852
"sap/ui/core/Control",
853853
"sap/m/Dialog",
854-
"sap/m/Button"
855-
], function (Control, Dialog, Button) {
854+
"sap/m/Button",
855+
"sap/ui/core/HTML"
856+
], function (Control, Dialog, Button, HTML) {
856857
"use strict";
857858
return Control.extend("z2ui5.CameraPicture", {
858859
metadata: {
@@ -900,7 +901,7 @@ sap.ui.define("z2ui5/CameraPicture", [
900901
verticalScrolling: false,
901902
stretch: true,
902903
content: [
903-
new sap.ui.core.HTML({
904+
new HTML({
904905
id: this.getId() + 'PictureContainer',
905906
content: '<video width="600px" height="400px" autoplay="true" id="zvideo">'
906907
}),
@@ -911,7 +912,7 @@ sap.ui.define("z2ui5/CameraPicture", [
911912
this._oScanDialog.close();
912913
}.bind(this)
913914
}),
914-
new sap.ui.core.HTML({
915+
new HTML({
915916
content: '<canvas hidden id="zcanvas" style="overflow:auto"></canvas>'
916917
}),
917918
],
@@ -1035,7 +1036,7 @@ sap.ui.define("z2ui5/Favicon", ["sap/ui/core/Control"], (Control) => {
10351036
}
10361037
);
10371038

1038-
sap.ui.define("z2ui5/Dirty", ["sap/ui/core/Control", "sap/ushell/Container"], (Control, Container) => {
1039+
sap.ui.define("z2ui5/Dirty", ["sap/ui/core/Control"], (Control) => {
10391040
"use strict";
10401041
return Control.extend("z2ui5.Dirty", {
10411042
metadata: {
@@ -1046,15 +1047,22 @@ sap.ui.define("z2ui5/Dirty", ["sap/ui/core/Control", "sap/ushell/Container"], (C
10461047
}
10471048
},
10481049
setIsDirty(val) {
1049-
if (Container) {
1050-
Container.setDirtyFlag(val);
1051-
} else {
1052-
window.onbeforeunload = function (e) {
1050+
1051+
sap.ui.require([ "sap/ushell/Container"
1052+
], async (Container) => {
1053+
1054+
if (Container) {
1055+
Container.setDirtyFlag(val);
1056+
} else {
1057+
window.onbeforeunload = function (e) {
10531058
if (val) {
10541059
e.preventDefault();
10551060
}
10561061
}
10571062
}
1063+
1064+
});
1065+
10581066
},
10591067
renderer(oRm, oControl) { }
10601068
});

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"description": "Developing UI5 Apps Purely in ABAP.",
66
"scripts": {
77
"syfixes": "find . -type f -name '*.abap' -exec sed -i -e 's/ RAISE EXCEPTION TYPE cx_sy_itab_line_not_found/ ASSERT 1 = 0/g' {} + ",
8-
"auto_downport": "abaplint --fix .github/abaplint/abap_702.jsonc && npm run syfixes && cp -r src node/downport",
8+
"auto_downport": "abaplint --fix .github/abaplint/abap_702.jsonc && npm run syfixes && cp -r src node/downport && cp -f .github/abaplint/abap_702.jsonc abaplint.jsonc",
99
"auto_app2abap": "node .github/app2abap/trans2abap.js",
1010
"auto_abaplint": "npx abaplint .github/abaplint/auto_abaplint_fix.jsonc --fix",
1111
"auto_transpile": "rm -rf node/output && cp node/srv/*.abap node/downport && abap_transpile ./node/setup/abap_transpile.json",
@@ -43,4 +43,4 @@
4343
"dependencies": {
4444
"npm-check-updates": "^17.1.14"
4545
}
46-
}
46+
}

src/00/01/z2ui5_cl_ajson.clas.abap

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -848,6 +848,8 @@ CLASS z2ui5_cl_ajson IMPLEMENTATION.
848848
DATA lv_path_pattern TYPE string.
849849

850850
CREATE OBJECT lo_section.
851+
lo_section->mi_custom_mapping = mi_custom_mapping.
852+
851853
lv_normalized_path = lcl_utils=>normalize_path( iv_path ).
852854
lv_path_len = strlen( lv_normalized_path ).
853855
ls_path_parts = lcl_utils=>split_path( lv_normalized_path ).

0 commit comments

Comments
 (0)