Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions _i18n/i18n.properties
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,15 @@ OrganizationalUnits=Organizational units

ORDER=Order
ORDERS=Orders
OrderID=Order ID
Product=Product
NetValue=Net value
Currency=Currency
OrderItems=Items
OrderItem=Item
ProductCategory=Product category

DELIVERY=Delivery
DELIVERIES=Deliveries
DeliveryItems=Delivery items
DeliveryItem=Delivery item
6 changes: 6 additions & 0 deletions _i18n/i18n_en.properties
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,15 @@ OrganizationalUnits=Organizational units

ORDER=Order
ORDERS=Orders
OrderID=Order ID
Product=Product
NetValue=Net value
Currency=Currency
OrderItems=Items
OrderItem=Item
ProductCategory=Product category

DELIVERY=Delivery
DELIVERIES=Deliveries
DeliveryItems=Delivery items
DeliveryItem=Delivery item
45 changes: 45 additions & 0 deletions app/deliveries/annotations.cds
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
using WorkListODataService as srv from '../../srv/worklist-srv';

annotate srv.Deliveries with @(
UI.SelectionFields : [
stringProperty,
deliveryDate,
trackingId,
order.ID,
],
UI.LineItem : [
{Value: order.stringProperty, },
{Value: deliveryDate, },
{Value: trackingId, },
],
UI.HeaderInfo : {
TypeName : '{i18n>DELIVERY}',
TypeNamePlural: '{i18n>DELIVERIES}',
Title : {Value: stringProperty}
},
UI.Facets : [
{
$Type : 'UI.ReferenceFacet',
Target: '@UI.FieldGroup#props',
Label : '{i18n>generalData}'
},
{
$Type : 'UI.ReferenceFacet',
Target: 'items/@UI.LineItem',
Label : '{i18n>DeliveryItems}'
},
],
UI.FieldGroup #props: {Data: [
{Value: deliveryDate},
{Value: trackingId},
]}
);

annotate srv.DeliveryItems with @(
UI.HeaderInfo: {
TypeName : '{i18n>DeliveryItem}',
TypeNamePlural: '{i18n>DeliveryItems}',
Title : {Value: product}
},
UI.LineItem : [{Value: product}, ],
) {};
31 changes: 31 additions & 0 deletions app/deliveries/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"name": "sap.fe.showcase.deliveries",
"version": "0.0.1",
"description": "A SAP Fiori application.",
"keywords": [
"ui5",
"openui5",
"sapui5"
],
"main": "webapp/index.html",
"scripts": {
"deploy-config": "npx -p @sap/ux-ui5-tooling fiori add deploy-config cf",
"build": "ui5 build preload --clean-dest --config ui5-deploy.yaml",
"build-local": "ui5 build preload --clean-dest",
"start": "ui5 serve"
},
"devDependencies": {
"@sap/ux-ui5-tooling": "^1.14.3",
"@sapui5/types": "~1.140.0",
"@ui5/cli": "^4.0.0",
"typescript": "^5.1.6",
"ui5-task-zipper": "^3.4.1",
"ui5-tooling-transpile": "^3.7.5"
},
"ui5": {
"dependencies": [
"ui5-task-zipper",
"mbt"
]
}
}
26 changes: 26 additions & 0 deletions app/deliveries/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"compilerOptions": {
"target": "es2022",
"module": "es2022",
"skipLibCheck": true,
"allowJs": true,
"strict": true,
"strictPropertyInitialization": false,
"moduleResolution": "node",
"rootDir": "../../",
"outDir": "./dist",
"baseUrl": "./",
"paths": {
"sap/fe/showcase/deliveries/*": ["./webapp/*"],
"#cds-models/*": ["../../@cds-models/*/index.ts"]
},
"typeRoots": [
"./node_modules/@types",
"./node_modules/@sapui5/types",
"../../node_modules/@types",
"../../node_modules/@sapui5/types"
]
},
"include": ["./webapp/**/*", "../ControllerExtension.d.ts"],
"exclude": ["node_modules/**"]
}
23 changes: 23 additions & 0 deletions app/deliveries/ui5-deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# yaml-language-server: $schema=https://ui5.github.io/cli/schema/ui5.yaml.json
specVersion: "3.1"
metadata:
name: sap.fe.showcase.deliveries
type: application
resources:
configuration:
propertiesFileSourceEncoding: UTF-8
builder:
resources:
excludes:
- "/test/**"
- "/localService/**"
customTasks:
- name: ui5-task-zipper
afterTask: generateVersionInfo
configuration:
archiveName: deliveries
relativePaths: true
additionalFiles:
- xs-app.json
- name: ui5-tooling-transpile-task
afterTask: replaceVersion
46 changes: 46 additions & 0 deletions app/deliveries/ui5.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# yaml-language-server: $schema=https://ui5.github.io/cli/schema/ui5.yaml.json

specVersion: "4.0"
metadata:
name: sap.fe.showcase.deliveries
type: application
server:
customMiddleware:
- name: fiori-tools-proxy
afterMiddleware: compression
configuration:
ignoreCertError: false # If set to true, certificate errors will be ignored. E.g. self-signed certificates will be accepted
ui5:
path:
- /resources
- /test-resources
url: https://sapui5.hana.ondemand.com
- name: fiori-tools-appreload
afterMiddleware: compression
configuration:
port: 35729
path: webapp
delay: 300
- name: ui5-tooling-transpile-middleware
afterMiddleware: compression
configuration:
debug: true
transformModulesToUI5:
overridesToOverride: true
excludePatterns:
- /Component-preload.js
builder:
customTasks:
- name: ui5-tooling-transpile-task
afterTask: replaceVersion
configuration:
debug: true
transformModulesToUI5:
overridesToOverride: true
resources:
excludes:
- "/test/**"
- "/localService/**"
resources:
configuration:
propertiesFileSourceEncoding: UTF-8
10 changes: 10 additions & 0 deletions app/deliveries/webapp/Component.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import AppComponent from "sap/fe/core/AppComponent";

/**
* @namespace sap.fe.showcase.deliveries
*/
export default class Component extends AppComponent {
public static metadata = {
manifest: "json",
};
}
9 changes: 9 additions & 0 deletions app/deliveries/webapp/i18n/i18n.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# This is the resource bundle for items3

#Texts for manifest.json

#XTIT: Application name
appTitle=Work List Deliveries

#YDES: Application description
appDescription=List deliveries
9 changes: 9 additions & 0 deletions app/deliveries/webapp/i18n/i18n_en.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# This is the resource bundle for items3

#Texts for manifest.json

#XTIT: Application name
appTitle=Work List Deliveries

#YDES: Application description
appDescription=List deliveries
9 changes: 9 additions & 0 deletions app/deliveries/webapp/i18n/i18n_en_US.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# This is the resource bundle for items3

#Texts for manifest.json

#XTIT: Application name
appTitle=Work List Deliveries

#YDES: Application description
appDescription=List deliveries
Loading