Skip to content

Commit 8e1c718

Browse files
committed
feat(SAP): agrega demo SAP-UI5
1 parent 722bbc2 commit 8e1c718

40 files changed

Lines changed: 1536 additions & 0 deletions

dist/Component-dbg.js

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
sap.ui.define([
2+
"sap/ui/core/UIComponent",
3+
"sap/ui/model/json/JSONModel",
4+
"sap/f/library",
5+
"sap/f/FlexibleColumnLayoutSemanticHelper"
6+
], function (UIComponent, JSONModel, library, FlexibleColumnLayoutSemanticHelper) {
7+
"use strict";
8+
9+
var LayoutType = library.LayoutType;
10+
11+
var Component = UIComponent.extend("sap.f.ShellBarWithFlexibleColumnLayout.Component", {
12+
metadata: {
13+
manifest: "json"
14+
},
15+
16+
init: function () {
17+
UIComponent.prototype.init.apply(this, arguments);
18+
19+
var oModel = new JSONModel();
20+
this.setModel(oModel);
21+
22+
// set products demo model on this sample
23+
var oProductsModel = new JSONModel(sap.ui.require.toUrl("sap/ui/demo/mock/cuentas.json"));
24+
oProductsModel.setSizeLimit(1000);
25+
this.setModel(oProductsModel, "products");
26+
27+
28+
this.getRouter().initialize();
29+
},
30+
31+
/**
32+
* Returns an instance of the semantic helper
33+
* @returns {sap.f.FlexibleColumnLayoutSemanticHelper} An instance of the semantic helper
34+
*/
35+
getHelper: function () {
36+
var oFCL = this.getRootControl().byId("fcl"),
37+
oParams = new URLSearchParams(window.location.search),
38+
oSettings = {
39+
defaultTwoColumnLayoutType: LayoutType.TwoColumnsMidExpanded,
40+
defaultThreeColumnLayoutType: LayoutType.ThreeColumnsMidExpanded,
41+
initialColumnsCount: oParams.get("initial"),
42+
maxColumnsCount: oParams.get("max")
43+
};
44+
45+
return FlexibleColumnLayoutSemanticHelper.getInstanceFor(oFCL, oSettings);
46+
}
47+
});
48+
return Component;
49+
});

dist/Component-preload.js

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/Component-preload.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/Component.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/Component.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/assets/img/aysa__logo.jpg

24.5 KB
Loading

dist/assets/img/qr-code.jpg

52.7 KB
Loading

dist/assets/scss/styles.scss

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
:root {
2+
--fontFamily: Arial, Helvetica, sans-serif;
3+
--primary: #0055A6;
4+
--secondary: #009BDB;
5+
--tertiary: #EE6436;
6+
--fontSize: 1.75rem;
7+
--panelGap: 1rem;
8+
}
9+
10+
body {
11+
font-family: var(--fontFamily);
12+
}
13+
14+
.sidepanel__subtitle {
15+
font-size: 20px!important;
16+
font-weight: lighter!important;
17+
}
18+
19+
.kpi__container {
20+
gap: var(--panelGap)!important;
21+
22+
.kpi__count {
23+
font-size: var(--fontSize)!important;
24+
font-weight: 700;
25+
26+
&--primary {
27+
color: var(--primary)!important;
28+
}
29+
30+
&--secondary {
31+
color: var(--secondary)!important;
32+
}
33+
34+
&--tertiary {
35+
color: var(--tertiary)!important;
36+
}
37+
}
38+
}
39+
40+
41+
@media screen and (max-width: 780px) {
42+
.kpi__count {
43+
--fontSize: 1rem;
44+
font-size: var(--fontSize)!important;
45+
}
46+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
sap.ui.define([
2+
"sap/ui/model/json/JSONModel",
3+
"sap/ui/core/mvc/Controller"
4+
], function (JSONModel, Controller) {
5+
"use strict";
6+
7+
return Controller.extend("sap.f.ShellBarWithFlexibleColumnLayout.controller.AboutPage", {
8+
onInit: function () {
9+
this.oRouter = this.getOwnerComponent().getRouter();
10+
this.oModel = this.getOwnerComponent().getModel();
11+
},
12+
onBack: function () {
13+
window.history.go(-1);
14+
}
15+
});
16+
});

dist/controller/AboutPage.controller.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)