├── .gitignore ├── advanced ├── content-package-template │ ├── card │ │ ├── src │ │ │ ├── .card │ │ │ │ └── card.project │ │ │ ├── i18n │ │ │ │ ├── i18n.properties │ │ │ │ └── i18n_en.properties │ │ │ ├── ext │ │ │ │ └── extension.js │ │ │ └── configuration │ │ │ │ └── configuration.js │ │ ├── scripts │ │ │ └── build.js │ │ ├── .editorconfig │ │ ├── ui5.yaml │ │ ├── package.json │ │ ├── .eslintrc │ │ └── .gitignore │ ├── journey │ │ ├── card │ │ │ ├── src │ │ │ │ ├── .card │ │ │ │ │ └── card.project │ │ │ │ ├── i18n │ │ │ │ │ ├── i18n.properties │ │ │ │ │ └── i18n_en.properties │ │ │ │ ├── ext │ │ │ │ │ └── extension.js │ │ │ │ └── configuration │ │ │ │ │ └── configuration.js │ │ │ ├── scripts │ │ │ │ └── build.js │ │ │ ├── .editorconfig │ │ │ ├── ui5.yaml │ │ │ ├── package.json │ │ │ ├── .eslintrc │ │ │ └── .gitignore │ │ └── workflow │ │ │ ├── scripts │ │ │ └── build.js │ │ │ ├── .gitignore │ │ │ ├── src │ │ │ ├── i18n │ │ │ │ ├── i18n.properties │ │ │ │ └── i18n_en.properties │ │ │ ├── workflow │ │ │ │ └── sample-data │ │ │ │ │ └── SimpleApproval.json │ │ │ ├── mta.yaml │ │ │ └── manifest.json │ │ │ └── package.json │ ├── index.js │ ├── .gitignore │ ├── homepage │ │ ├── scripts │ │ │ └── build.js │ │ ├── src │ │ │ ├── homepage.zip │ │ │ ├── i18n │ │ │ │ ├── i18n.properties │ │ │ │ ├── i18n_en.properties │ │ │ │ ├── i18n_en_GB.properties │ │ │ │ └── i18n_en_US.properties │ │ │ └── manifest.json │ │ └── package.json │ ├── workflow │ │ ├── scripts │ │ │ └── build.js │ │ ├── .gitignore │ │ ├── src │ │ │ ├── i18n │ │ │ │ ├── i18n.properties │ │ │ │ └── i18n_en.properties │ │ │ ├── workflow │ │ │ │ └── sample-data │ │ │ │ │ └── SimpleApproval.json │ │ │ ├── mta.yaml │ │ │ └── manifest.json │ │ └── package.json │ ├── workspace │ │ ├── scripts │ │ │ └── build.js │ │ ├── src │ │ │ ├── workspace.zip │ │ │ ├── i18n │ │ │ │ ├── i18n.properties │ │ │ │ ├── i18n_en.properties │ │ │ │ ├── i18n_en_GB.properties │ │ │ │ └── i18n_en_US.properties │ │ │ └── manifest.json │ │ └── package.json │ ├── content-package │ │ ├── scripts │ │ │ ├── build.js │ │ │ ├── pull.js │ │ │ └── validate.js │ │ ├── .gitignore │ │ ├── local │ │ │ ├── validate.js │ │ │ ├── build.js │ │ │ └── pull.js │ │ ├── i18n │ │ │ ├── i18n_en.properties │ │ │ └── i18n.properties │ │ ├── package.json │ │ ├── manifest.json │ │ └── content.json │ ├── workspace-template │ │ ├── scripts │ │ │ └── build.js │ │ ├── .gitignore │ │ ├── src │ │ │ ├── workspace-template.zip │ │ │ ├── i18n │ │ │ │ ├── i18n.properties │ │ │ │ └── i18n_en.properties │ │ │ └── manifest.json │ │ └── package.json │ └── package.json ├── wizard │ ├── sample-cards │ │ ├── wz-todo-card │ │ │ ├── bundle │ │ │ │ ├── i18n │ │ │ │ │ └── i18n.properties │ │ │ │ ├── img │ │ │ │ │ └── app_icon.png │ │ │ │ ├── css │ │ │ │ │ └── styles.css │ │ │ │ ├── Component.js │ │ │ │ ├── manifest.json │ │ │ │ └── view │ │ │ │ │ └── Widget.view.xml │ │ │ └── README.md │ │ ├── wz-vaccination-confirm-card │ │ │ ├── bundle │ │ │ │ ├── i18n │ │ │ │ │ ├── i18n.properties │ │ │ │ │ ├── i18n_de.properties │ │ │ │ │ └── i18n_en.properties │ │ │ │ ├── Component.js │ │ │ │ ├── manifest.json │ │ │ │ └── view │ │ │ │ │ └── Widget.view.xml │ │ │ └── README.md │ │ ├── images │ │ │ ├── home.png │ │ │ ├── wz-todo-card.png │ │ │ ├── wz-favorite-card.png │ │ │ ├── wz-vaccination-card.png │ │ │ └── wz-vaccination-confirm-card.png │ │ ├── wz-vaccination-card │ │ │ ├── bundle │ │ │ │ ├── i18n │ │ │ │ │ ├── i18n.properties │ │ │ │ │ ├── i18n_de.properties │ │ │ │ │ └── i18n_en.properties │ │ │ │ ├── img │ │ │ │ │ └── app_icon.png │ │ │ │ ├── Component.js │ │ │ │ └── manifest.json │ │ │ └── README.md │ │ ├── bundle │ │ │ ├── wz-todo-card.zip │ │ │ ├── wz-favorite-card.zip │ │ │ ├── wz-vaccination-card.zip │ │ │ └── wz-vaccination-confirm-card.zip │ │ ├── wz-favorite-card │ │ │ ├── README.md │ │ │ └── bundle │ │ │ │ └── manifest.json │ │ ├── package.json │ │ └── README.md │ └── images │ │ ├── wizard.png │ │ ├── card-extension.png │ │ ├── error-message.png │ │ ├── submit-wizard.png │ │ ├── onReady-extension.png │ │ ├── update-host-context.png │ │ ├── retrieve-wizard-context.png │ │ └── retrieve-wizard-context-in-controller.png ├── context-awareness │ ├── images │ │ ├── filter-bar.png │ │ ├── brand-paremeter.png │ │ ├── region-parameter.png │ │ ├── update-card-context.png │ │ ├── card-preview-in-local.png │ │ └── retrieve-card-context.png │ └── sample-cards │ │ ├── bundles │ │ ├── analytical-card.zip │ │ ├── brand-list-card.zip │ │ └── regions-list-card.zip │ │ ├── brand-list-card │ │ ├── README.md │ │ └── bundle │ │ │ ├── Component.js │ │ │ ├── View.view.xml │ │ │ └── manifest.json │ │ ├── regions-list-card │ │ ├── README.md │ │ └── bundle │ │ │ ├── Component.js │ │ │ ├── View.view.xml │ │ │ ├── manifest.json │ │ │ └── Main.controller.js │ │ ├── analytical-card │ │ └── README.md │ │ ├── package.json │ │ └── README.md └── README.md └── standard ├── content-package-template ├── index.js ├── tools │ ├── .gitignore │ ├── test │ │ ├── card.js │ │ ├── zip.js │ │ └── validatePackage.js │ ├── content-package │ │ └── artifactBuild.js │ ├── resources │ │ ├── card-ui5.yaml.template │ │ ├── package.json.template │ │ └── card-package.json.template │ ├── util │ │ └── validation.js │ ├── README.md │ ├── package.json │ ├── workflow │ │ └── build.js │ ├── workspace │ │ └── build.js │ ├── homepage │ │ └── build.js │ ├── index.js │ └── card │ │ └── build.js ├── card-samples │ ├── list-card-samples │ │ ├── data-list-card-sample │ │ │ ├── src │ │ │ │ ├── .card │ │ │ │ │ └── card.project │ │ │ │ ├── i18n │ │ │ │ │ ├── i18n.properties │ │ │ │ │ ├── i18n_en.properties │ │ │ │ │ └── i18n_de.properties │ │ │ │ ├── test │ │ │ │ │ └── testpage.html │ │ │ │ └── manifest.json │ │ │ ├── scripts │ │ │ │ └── build.js │ │ │ ├── ui5.yaml │ │ │ └── package.json │ │ └── static-list-card-sample │ │ │ ├── src │ │ │ ├── .card │ │ │ │ └── card.project │ │ │ ├── test │ │ │ │ └── testpage.html │ │ │ └── i18n │ │ │ │ ├── i18n.properties │ │ │ │ ├── i18n_en.properties │ │ │ │ └── i18n_de.properties │ │ │ ├── scripts │ │ │ └── build.js │ │ │ ├── ui5.yaml │ │ │ └── package.json │ ├── object-card-samples │ │ ├── data-object-card-sample │ │ │ ├── src │ │ │ │ ├── .card │ │ │ │ │ └── card.project │ │ │ │ ├── DonnaMoore.png │ │ │ │ ├── AlainChevalier.png │ │ │ │ ├── test │ │ │ │ │ └── testpage.html │ │ │ │ ├── data.json │ │ │ │ └── i18n │ │ │ │ │ ├── i18n.properties │ │ │ │ │ ├── i18n_en.properties │ │ │ │ │ └── i18n_de.properties │ │ │ ├── scripts │ │ │ │ └── build.js │ │ │ ├── ui5.yaml │ │ │ └── package.json │ │ └── static-object-card-sample │ │ │ ├── src │ │ │ ├── .card │ │ │ │ └── card.project │ │ │ ├── DonnaMoore.png │ │ │ ├── AlainChevalier.png │ │ │ ├── test │ │ │ │ └── testpage.html │ │ │ └── i18n │ │ │ │ ├── i18n_en.properties │ │ │ │ ├── i18n.properties │ │ │ │ └── i18n_de.properties │ │ │ ├── scripts │ │ │ └── build.js │ │ │ ├── ui5.yaml │ │ │ └── package.json │ └── analytical-card-samples │ │ ├── bubble-chart-card-sample │ │ ├── src │ │ │ ├── .card │ │ │ │ └── card.project │ │ │ ├── i18n │ │ │ │ ├── i18n_de.properties │ │ │ │ ├── i18n.properties │ │ │ │ └── i18n_en.properties │ │ │ ├── test │ │ │ │ └── testpage.html │ │ │ └── data.json │ │ ├── scripts │ │ │ └── build.js │ │ ├── ui5.yaml │ │ └── package.json │ │ ├── donut-chart-card-sample │ │ ├── src │ │ │ ├── .card │ │ │ │ └── card.project │ │ │ ├── test │ │ │ │ └── testpage.html │ │ │ └── i18n │ │ │ │ ├── i18n.properties │ │ │ │ ├── i18n_en.properties │ │ │ │ └── i18n_de.properties │ │ ├── scripts │ │ │ └── build.js │ │ ├── ui5.yaml │ │ └── package.json │ │ └── line-chart-card-sample │ │ ├── src │ │ ├── .card │ │ │ └── card.project │ │ ├── test │ │ │ └── testpage.html │ │ └── i18n │ │ │ ├── i18n.properties │ │ │ ├── i18n_de.properties │ │ │ └── i18n_en.properties │ │ ├── scripts │ │ └── build.js │ │ ├── ui5.yaml │ │ └── package.json ├── content-package │ ├── scripts │ │ ├── build.js │ │ ├── pull.js │ │ └── validate.js │ ├── package.zip │ ├── package-sample.zip │ ├── package-sample-all.zip │ ├── package-sample-OnePageSevenCards.zip │ ├── package │ │ ├── artifacts │ │ │ ├── bubble-chart-card-sample │ │ │ │ ├── data.zip │ │ │ │ ├── i18n │ │ │ │ │ ├── i18n_de.properties │ │ │ │ │ ├── i18n_de_CH.properties │ │ │ │ │ ├── i18n_de_DE.properties │ │ │ │ │ ├── i18n.properties │ │ │ │ │ ├── i18n_en.properties │ │ │ │ │ ├── i18n_en_GB.properties │ │ │ │ │ └── i18n_en_US.properties │ │ │ │ └── manifest.json │ │ │ ├── data-object-card-sample │ │ │ │ ├── data.zip │ │ │ │ ├── manifest.json │ │ │ │ └── i18n │ │ │ │ │ ├── i18n.properties │ │ │ │ │ ├── i18n_en.properties │ │ │ │ │ ├── i18n_en_GB.properties │ │ │ │ │ ├── i18n_en_US.properties │ │ │ │ │ ├── i18n_de.properties │ │ │ │ │ ├── i18n_de_CH.properties │ │ │ │ │ └── i18n_de_DE.properties │ │ │ └── static-list-card-sample │ │ │ │ ├── data.zip │ │ │ │ ├── i18n │ │ │ │ ├── i18n.properties │ │ │ │ ├── i18n_en.properties │ │ │ │ ├── i18n_en_GB.properties │ │ │ │ ├── i18n_en_US.properties │ │ │ │ ├── i18n_de.properties │ │ │ │ ├── i18n_de_CH.properties │ │ │ │ └── i18n_de_DE.properties │ │ │ │ └── manifest.json │ │ └── i18n │ │ │ ├── i18n_en.properties │ │ │ ├── i18n_en_GB.properties │ │ │ ├── i18n_en_US.properties │ │ │ ├── i18n.properties │ │ │ ├── i18n_de.properties │ │ │ ├── i18n_de_CH.properties │ │ │ └── i18n_de_DE.properties │ ├── i18n │ │ ├── i18n_en.properties │ │ ├── i18n.properties │ │ └── i18n_de.properties │ ├── package.json │ ├── manifest.json │ ├── content-part.json │ └── content.json ├── docs │ ├── cdm │ │ ├── CDM-Model.png │ │ └── schema │ │ │ ├── workpagecell-config.json │ │ │ ├── workpagecolumn-config.json │ │ │ ├── space-config.json │ │ │ ├── workpage-config.json │ │ │ ├── texts.json │ │ │ ├── viz.json │ │ │ ├── identification.json │ │ │ ├── businessapp.json │ │ │ ├── page.json │ │ │ ├── workpagerow-config.json │ │ │ ├── space.json │ │ │ └── viz-commons.json │ └── images │ │ ├── listcards.png │ │ ├── objectcards.png │ │ ├── intentnavcard.png │ │ ├── staticlistcard.png │ │ ├── analyticalcards.png │ │ ├── static_listcard_test.png │ │ └── contentpackage_workpage1.png ├── cdm-samples │ └── src │ │ ├── businessapp1.json │ │ ├── i18n │ │ ├── i18n.properties │ │ ├── i18n_de.properties │ │ └── i18n_en.properties │ │ ├── space1.json │ │ ├── space1_1page.json │ │ ├── space1_2pages.json │ │ ├── role1.json │ │ ├── role2.json │ │ └── workpage1.json └── package.json ├── html5-content-provider-sample ├── ManageProducts │ ├── products │ │ ├── webapp │ │ │ ├── css │ │ │ │ └── style.css │ │ │ ├── controller │ │ │ │ ├── View1.controller.js │ │ │ │ ├── NotFound.controller.js │ │ │ │ ├── App.controller.js │ │ │ │ └── BaseController.js │ │ │ ├── logout-page.html │ │ │ ├── view │ │ │ │ ├── App.view.xml │ │ │ │ ├── View1.view.xml │ │ │ │ ├── NotFound.view.xml │ │ │ │ └── ObjectNotFound.view.xml │ │ │ ├── model │ │ │ │ ├── models.js │ │ │ │ └── formatter.js │ │ │ └── index.html │ │ ├── ui5-deploy.yaml │ │ ├── ui5.yaml │ │ ├── ui5-local.yaml │ │ ├── README.md │ │ ├── xs-app.json │ │ └── package.json │ ├── xs-security.json │ ├── package.json │ ├── README.md │ └── workzone │ │ └── cdm.json └── README.md └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules 3 | dist -------------------------------------------------------------------------------- /advanced/content-package-template/card/src/.card/card.project: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /advanced/content-package-template/journey/card/src/.card/card.project: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /advanced/content-package-template/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./tools/index"); -------------------------------------------------------------------------------- /standard/content-package-template/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./tools/index"); -------------------------------------------------------------------------------- /standard/content-package-template/tools/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | package-lock.json -------------------------------------------------------------------------------- /advanced/content-package-template/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_* 2 | node_modules 3 | package-lock.json 4 | launch.json -------------------------------------------------------------------------------- /standard/content-package-template/card-samples/list-card-samples/data-list-card-sample/src/.card/card.project: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /standard/content-package-template/card-samples/list-card-samples/static-list-card-sample/src/.card/card.project: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /standard/content-package-template/card-samples/object-card-samples/data-object-card-sample/src/.card/card.project: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /advanced/content-package-template/card/scripts/build.js: -------------------------------------------------------------------------------- 1 | require("sap-workzone-cpkg-tools").card.build(__dirname); 2 | -------------------------------------------------------------------------------- /standard/content-package-template/card-samples/analytical-card-samples/bubble-chart-card-sample/src/.card/card.project: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /standard/content-package-template/card-samples/analytical-card-samples/donut-chart-card-sample/src/.card/card.project: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /standard/content-package-template/card-samples/analytical-card-samples/line-chart-card-sample/src/.card/card.project: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /standard/content-package-template/card-samples/object-card-samples/static-object-card-sample/src/.card/card.project: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /standard/html5-content-provider-sample/ManageProducts/products/webapp/css/style.css: -------------------------------------------------------------------------------- 1 | /* Enter your custom styles here */ -------------------------------------------------------------------------------- /advanced/content-package-template/homepage/scripts/build.js: -------------------------------------------------------------------------------- 1 | require("sap-workzone-cpkg-tools")["homepage"].build(__dirname); -------------------------------------------------------------------------------- /advanced/content-package-template/journey/card/scripts/build.js: -------------------------------------------------------------------------------- 1 | require("sap-workzone-cpkg-tools").card.build(__dirname); -------------------------------------------------------------------------------- /advanced/content-package-template/workflow/scripts/build.js: -------------------------------------------------------------------------------- 1 | require("sap-workzone-cpkg-tools").workflow.build(__dirname); -------------------------------------------------------------------------------- /advanced/content-package-template/journey/workflow/scripts/build.js: -------------------------------------------------------------------------------- 1 | require("sap-workzone-cpkg-tools").workflow.build(__dirname); -------------------------------------------------------------------------------- /advanced/content-package-template/workspace/scripts/build.js: -------------------------------------------------------------------------------- 1 | require("sap-workzone-cpkg-tools")["workspace"].build(__dirname); -------------------------------------------------------------------------------- /advanced/wizard/sample-cards/wz-todo-card/bundle/i18n/i18n.properties: -------------------------------------------------------------------------------- 1 | TITLE=Workzone Todo Card 2 | DESCRIPTION=Workzone Todo Card -------------------------------------------------------------------------------- /advanced/content-package-template/content-package/scripts/build.js: -------------------------------------------------------------------------------- 1 | require("sap-workzone-cpkg-tools").contentpackage.build(__dirname); -------------------------------------------------------------------------------- /advanced/content-package-template/content-package/scripts/pull.js: -------------------------------------------------------------------------------- 1 | require("sap-workzone-cpkg-tools").contentpackage.pull(__dirname); -------------------------------------------------------------------------------- /advanced/content-package-template/workflow/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | package-lock.json 3 | .DS_Store 4 | *.zip 5 | *.mtar 6 | dist -------------------------------------------------------------------------------- /advanced/wizard/sample-cards/wz-vaccination-confirm-card/bundle/i18n/i18n.properties: -------------------------------------------------------------------------------- 1 | TITLE=Confirm Vaccination Status 2 | DESCRIPTION= -------------------------------------------------------------------------------- /standard/content-package-template/content-package/scripts/build.js: -------------------------------------------------------------------------------- 1 | require("sap-workzone-cpkg-tools").contentpackage.build(__dirname); -------------------------------------------------------------------------------- /standard/content-package-template/content-package/scripts/pull.js: -------------------------------------------------------------------------------- 1 | require("sap-workzone-cpkg-tools").contentpackage.pull(__dirname); -------------------------------------------------------------------------------- /advanced/content-package-template/content-package/.gitignore: -------------------------------------------------------------------------------- 1 | __contents 2 | node_modules 3 | package 4 | package.zip 5 | package-lock.json -------------------------------------------------------------------------------- /advanced/content-package-template/content-package/local/validate.js: -------------------------------------------------------------------------------- 1 | require(__dirname + "../../tools/index.js").validate(__dirname + "/.."); -------------------------------------------------------------------------------- /advanced/content-package-template/journey/workflow/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | package-lock.json 3 | .DS_Store 4 | *.zip 5 | *.mtar 6 | dist -------------------------------------------------------------------------------- /advanced/content-package-template/workspace-template/scripts/build.js: -------------------------------------------------------------------------------- 1 | require("sap-workzone-cpkg-tools")["workspace-template"].build(__dirname); -------------------------------------------------------------------------------- /advanced/wizard/images/wizard.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP-samples/build-workzone-integration/HEAD/advanced/wizard/images/wizard.png -------------------------------------------------------------------------------- /advanced/wizard/sample-cards/wz-vaccination-confirm-card/bundle/i18n/i18n_de.properties: -------------------------------------------------------------------------------- 1 | TITLE=Confirm Vaccination Status (DE) 2 | DESCRIPTION= -------------------------------------------------------------------------------- /advanced/wizard/sample-cards/wz-vaccination-confirm-card/bundle/i18n/i18n_en.properties: -------------------------------------------------------------------------------- 1 | TITLE=Confirm Vaccination Status (EN) 2 | DESCRIPTION= -------------------------------------------------------------------------------- /advanced/content-package-template/content-package/local/build.js: -------------------------------------------------------------------------------- 1 | require(__dirname + "/../../tools/index.js").contentpackage.build(__dirname); 2 | -------------------------------------------------------------------------------- /advanced/content-package-template/content-package/scripts/validate.js: -------------------------------------------------------------------------------- 1 | require("sap-workzone-cpkg-tools").contentpackage.validate(__dirname + "/.."); -------------------------------------------------------------------------------- /advanced/content-package-template/workspace-template/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules 3 | *.zip 4 | !src/*.zip 5 | dist 6 | package-lock.json -------------------------------------------------------------------------------- /standard/content-package-template/content-package/scripts/validate.js: -------------------------------------------------------------------------------- 1 | require("sap-workzone-cpkg-tools").contentpackage.validate(__dirname + "/.."); -------------------------------------------------------------------------------- /advanced/content-package-template/content-package/local/pull.js: -------------------------------------------------------------------------------- 1 | require(__dirname + "/../../tools/index.js").contentpackage.pull(__dirname, "local"); 2 | -------------------------------------------------------------------------------- /advanced/wizard/images/card-extension.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP-samples/build-workzone-integration/HEAD/advanced/wizard/images/card-extension.png -------------------------------------------------------------------------------- /advanced/wizard/images/error-message.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP-samples/build-workzone-integration/HEAD/advanced/wizard/images/error-message.png -------------------------------------------------------------------------------- /advanced/wizard/images/submit-wizard.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP-samples/build-workzone-integration/HEAD/advanced/wizard/images/submit-wizard.png -------------------------------------------------------------------------------- /advanced/wizard/images/onReady-extension.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP-samples/build-workzone-integration/HEAD/advanced/wizard/images/onReady-extension.png -------------------------------------------------------------------------------- /advanced/wizard/sample-cards/images/home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP-samples/build-workzone-integration/HEAD/advanced/wizard/sample-cards/images/home.png -------------------------------------------------------------------------------- /standard/content-package-template/card-samples/list-card-samples/data-list-card-sample/scripts/build.js: -------------------------------------------------------------------------------- 1 | require("sap-workzone-cpkg-tools").card.build(__dirname); -------------------------------------------------------------------------------- /standard/content-package-template/card-samples/list-card-samples/static-list-card-sample/scripts/build.js: -------------------------------------------------------------------------------- 1 | require("sap-workzone-cpkg-tools").card.build(__dirname); -------------------------------------------------------------------------------- /advanced/wizard/images/update-host-context.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP-samples/build-workzone-integration/HEAD/advanced/wizard/images/update-host-context.png -------------------------------------------------------------------------------- /advanced/wizard/sample-cards/wz-vaccination-card/bundle/i18n/i18n.properties: -------------------------------------------------------------------------------- 1 | TITLE=Submit Vaccination Status 2 | DESCRIPTION=Submit Status change for you vaccination -------------------------------------------------------------------------------- /standard/content-package-template/card-samples/analytical-card-samples/donut-chart-card-sample/scripts/build.js: -------------------------------------------------------------------------------- 1 | require("sap-workzone-cpkg-tools").card.build(__dirname); -------------------------------------------------------------------------------- /standard/content-package-template/card-samples/analytical-card-samples/line-chart-card-sample/scripts/build.js: -------------------------------------------------------------------------------- 1 | require("sap-workzone-cpkg-tools").card.build(__dirname); -------------------------------------------------------------------------------- /standard/content-package-template/card-samples/object-card-samples/data-object-card-sample/scripts/build.js: -------------------------------------------------------------------------------- 1 | require("sap-workzone-cpkg-tools").card.build(__dirname); -------------------------------------------------------------------------------- /standard/content-package-template/card-samples/object-card-samples/static-object-card-sample/scripts/build.js: -------------------------------------------------------------------------------- 1 | require("sap-workzone-cpkg-tools").card.build(__dirname); -------------------------------------------------------------------------------- /advanced/context-awareness/images/filter-bar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP-samples/build-workzone-integration/HEAD/advanced/context-awareness/images/filter-bar.png -------------------------------------------------------------------------------- /standard/content-package-template/card-samples/analytical-card-samples/bubble-chart-card-sample/scripts/build.js: -------------------------------------------------------------------------------- 1 | require("sap-workzone-cpkg-tools").card.build(__dirname); -------------------------------------------------------------------------------- /advanced/wizard/images/retrieve-wizard-context.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP-samples/build-workzone-integration/HEAD/advanced/wizard/images/retrieve-wizard-context.png -------------------------------------------------------------------------------- /advanced/wizard/sample-cards/bundle/wz-todo-card.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP-samples/build-workzone-integration/HEAD/advanced/wizard/sample-cards/bundle/wz-todo-card.zip -------------------------------------------------------------------------------- /advanced/wizard/sample-cards/images/wz-todo-card.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP-samples/build-workzone-integration/HEAD/advanced/wizard/sample-cards/images/wz-todo-card.png -------------------------------------------------------------------------------- /advanced/wizard/sample-cards/wz-vaccination-card/bundle/i18n/i18n_de.properties: -------------------------------------------------------------------------------- 1 | TITLE=Submit Vaccination Status (DE) 2 | DESCRIPTION=Submit Status change for you vaccination (DE) -------------------------------------------------------------------------------- /advanced/wizard/sample-cards/wz-vaccination-card/bundle/i18n/i18n_en.properties: -------------------------------------------------------------------------------- 1 | TITLE=Submit Vaccination Status (EN) 2 | DESCRIPTION=Submit Status change for you vaccination (EN) -------------------------------------------------------------------------------- /advanced/context-awareness/images/brand-paremeter.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP-samples/build-workzone-integration/HEAD/advanced/context-awareness/images/brand-paremeter.png -------------------------------------------------------------------------------- /advanced/context-awareness/images/region-parameter.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP-samples/build-workzone-integration/HEAD/advanced/context-awareness/images/region-parameter.png -------------------------------------------------------------------------------- /advanced/context-awareness/images/update-card-context.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP-samples/build-workzone-integration/HEAD/advanced/context-awareness/images/update-card-context.png -------------------------------------------------------------------------------- /advanced/wizard/sample-cards/bundle/wz-favorite-card.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP-samples/build-workzone-integration/HEAD/advanced/wizard/sample-cards/bundle/wz-favorite-card.zip -------------------------------------------------------------------------------- /advanced/wizard/sample-cards/images/wz-favorite-card.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP-samples/build-workzone-integration/HEAD/advanced/wizard/sample-cards/images/wz-favorite-card.png -------------------------------------------------------------------------------- /standard/content-package-template/docs/cdm/CDM-Model.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP-samples/build-workzone-integration/HEAD/standard/content-package-template/docs/cdm/CDM-Model.png -------------------------------------------------------------------------------- /advanced/content-package-template/homepage/src/homepage.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP-samples/build-workzone-integration/HEAD/advanced/content-package-template/homepage/src/homepage.zip -------------------------------------------------------------------------------- /advanced/context-awareness/images/card-preview-in-local.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP-samples/build-workzone-integration/HEAD/advanced/context-awareness/images/card-preview-in-local.png -------------------------------------------------------------------------------- /advanced/context-awareness/images/retrieve-card-context.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP-samples/build-workzone-integration/HEAD/advanced/context-awareness/images/retrieve-card-context.png -------------------------------------------------------------------------------- /advanced/wizard/sample-cards/bundle/wz-vaccination-card.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP-samples/build-workzone-integration/HEAD/advanced/wizard/sample-cards/bundle/wz-vaccination-card.zip -------------------------------------------------------------------------------- /advanced/wizard/sample-cards/images/wz-vaccination-card.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP-samples/build-workzone-integration/HEAD/advanced/wizard/sample-cards/images/wz-vaccination-card.png -------------------------------------------------------------------------------- /standard/content-package-template/docs/images/listcards.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP-samples/build-workzone-integration/HEAD/standard/content-package-template/docs/images/listcards.png -------------------------------------------------------------------------------- /standard/content-package-template/tools/test/card.js: -------------------------------------------------------------------------------- 1 | var build = require("../card/build"), 2 | path = require("path"); 3 | 4 | build.build(path.join(__dirname, "..", "..", "card")); 5 | 6 | -------------------------------------------------------------------------------- /advanced/content-package-template/workspace/src/workspace.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP-samples/build-workzone-integration/HEAD/advanced/content-package-template/workspace/src/workspace.zip -------------------------------------------------------------------------------- /standard/content-package-template/content-package/package.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP-samples/build-workzone-integration/HEAD/standard/content-package-template/content-package/package.zip -------------------------------------------------------------------------------- /standard/content-package-template/docs/images/objectcards.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP-samples/build-workzone-integration/HEAD/standard/content-package-template/docs/images/objectcards.png -------------------------------------------------------------------------------- /advanced/wizard/images/retrieve-wizard-context-in-controller.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP-samples/build-workzone-integration/HEAD/advanced/wizard/images/retrieve-wizard-context-in-controller.png -------------------------------------------------------------------------------- /standard/content-package-template/docs/images/intentnavcard.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP-samples/build-workzone-integration/HEAD/standard/content-package-template/docs/images/intentnavcard.png -------------------------------------------------------------------------------- /standard/content-package-template/docs/images/staticlistcard.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP-samples/build-workzone-integration/HEAD/standard/content-package-template/docs/images/staticlistcard.png -------------------------------------------------------------------------------- /advanced/context-awareness/sample-cards/bundles/analytical-card.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP-samples/build-workzone-integration/HEAD/advanced/context-awareness/sample-cards/bundles/analytical-card.zip -------------------------------------------------------------------------------- /advanced/context-awareness/sample-cards/bundles/brand-list-card.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP-samples/build-workzone-integration/HEAD/advanced/context-awareness/sample-cards/bundles/brand-list-card.zip -------------------------------------------------------------------------------- /advanced/wizard/sample-cards/bundle/wz-vaccination-confirm-card.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP-samples/build-workzone-integration/HEAD/advanced/wizard/sample-cards/bundle/wz-vaccination-confirm-card.zip -------------------------------------------------------------------------------- /advanced/wizard/sample-cards/images/wz-vaccination-confirm-card.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP-samples/build-workzone-integration/HEAD/advanced/wizard/sample-cards/images/wz-vaccination-confirm-card.png -------------------------------------------------------------------------------- /advanced/wizard/sample-cards/wz-todo-card/bundle/img/app_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP-samples/build-workzone-integration/HEAD/advanced/wizard/sample-cards/wz-todo-card/bundle/img/app_icon.png -------------------------------------------------------------------------------- /standard/content-package-template/docs/images/analyticalcards.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP-samples/build-workzone-integration/HEAD/standard/content-package-template/docs/images/analyticalcards.png -------------------------------------------------------------------------------- /advanced/context-awareness/sample-cards/bundles/regions-list-card.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP-samples/build-workzone-integration/HEAD/advanced/context-awareness/sample-cards/bundles/regions-list-card.zip -------------------------------------------------------------------------------- /standard/content-package-template/content-package/package-sample.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP-samples/build-workzone-integration/HEAD/standard/content-package-template/content-package/package-sample.zip -------------------------------------------------------------------------------- /advanced/wizard/sample-cards/wz-vaccination-card/bundle/img/app_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP-samples/build-workzone-integration/HEAD/advanced/wizard/sample-cards/wz-vaccination-card/bundle/img/app_icon.png -------------------------------------------------------------------------------- /standard/content-package-template/content-package/package-sample-all.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP-samples/build-workzone-integration/HEAD/standard/content-package-template/content-package/package-sample-all.zip -------------------------------------------------------------------------------- /standard/content-package-template/docs/images/static_listcard_test.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP-samples/build-workzone-integration/HEAD/standard/content-package-template/docs/images/static_listcard_test.png -------------------------------------------------------------------------------- /standard/content-package-template/docs/images/contentpackage_workpage1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP-samples/build-workzone-integration/HEAD/standard/content-package-template/docs/images/contentpackage_workpage1.png -------------------------------------------------------------------------------- /standard/content-package-template/tools/test/zip.js: -------------------------------------------------------------------------------- 1 | var util = require("../util/util"), 2 | path = require("path"); 3 | 4 | util.zip.folder(path.join(__dirname, "..", "test.zip"), path.join(__dirname, ".."), "util"); 5 | 6 | -------------------------------------------------------------------------------- /advanced/content-package-template/workspace-template/src/workspace-template.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP-samples/build-workzone-integration/HEAD/advanced/content-package-template/workspace-template/src/workspace-template.zip -------------------------------------------------------------------------------- /advanced/wizard/sample-cards/wz-todo-card/bundle/css/styles.css: -------------------------------------------------------------------------------- 1 | .todo-title[data-todo-item-completed="true"] { 2 | text-decoration: line-through; 3 | } 4 | 5 | .todo-complete { 6 | margin-left: 0.5rem; 7 | color: #666; 8 | } 9 | -------------------------------------------------------------------------------- /advanced/content-package-template/homepage/src/i18n/i18n.properties: -------------------------------------------------------------------------------- 1 | TITLE=Home Page Title 2 | SUBTITLE=Home Page Subitle 3 | SHORTTITLE=Home Page Short Title 4 | INFO=Home Page Info 5 | DESCRIPTION=Home Page Description 6 | KEYWORD1=Keyword -------------------------------------------------------------------------------- /advanced/content-package-template/homepage/src/i18n/i18n_en.properties: -------------------------------------------------------------------------------- 1 | TITLE=Home Page Title 2 | SUBTITLE=Home Page Subitle 3 | SHORTTITLE=Home Page Short Title 4 | INFO=Home Page Info 5 | DESCRIPTION=Home Page Description 6 | KEYWORD1=Keyword -------------------------------------------------------------------------------- /advanced/content-package-template/workspace/src/i18n/i18n.properties: -------------------------------------------------------------------------------- 1 | TITLE=Workspace Title 2 | SUBTITLE=Workspace Subitle 3 | SHORTTITLE=Workspace Short Title 4 | INFO=Workspace Info 5 | DESCRIPTION=Workspace Description 6 | KEYWORD1=Keyword -------------------------------------------------------------------------------- /advanced/content-package-template/workspace/src/i18n/i18n_en.properties: -------------------------------------------------------------------------------- 1 | TITLE=Workspace Title 2 | SUBTITLE=Workspace Subitle 3 | SHORTTITLE=Workspace Short Title 4 | INFO=Workspace Info 5 | DESCRIPTION=Workspace Description 6 | KEYWORD1=Keyword -------------------------------------------------------------------------------- /advanced/context-awareness/sample-cards/brand-list-card/README.md: -------------------------------------------------------------------------------- 1 | ## Workzone Brand Card 2 | 3 | - Lists all available brands in a dropdown list. Once a brand is selected, it is added to the current card context as the `brand` parameter. 4 | -------------------------------------------------------------------------------- /advanced/content-package-template/homepage/src/i18n/i18n_en_GB.properties: -------------------------------------------------------------------------------- 1 | TITLE=Home Page Title 2 | SUBTITLE=Home Page Subitle 3 | SHORTTITLE=Home Page Short Title 4 | INFO=Home Page Info 5 | DESCRIPTION=Home Page Description 6 | KEYWORD1=Keyword -------------------------------------------------------------------------------- /advanced/content-package-template/homepage/src/i18n/i18n_en_US.properties: -------------------------------------------------------------------------------- 1 | TITLE=Home Page Title 2 | SUBTITLE=Home Page Subitle 3 | SHORTTITLE=Home Page Short Title 4 | INFO=Home Page Info 5 | DESCRIPTION=Home Page Description 6 | KEYWORD1=Keyword -------------------------------------------------------------------------------- /advanced/content-package-template/workspace/src/i18n/i18n_en_GB.properties: -------------------------------------------------------------------------------- 1 | TITLE=Workspace Title 2 | SUBTITLE=Workspace Subitle 3 | SHORTTITLE=Workspace Short Title 4 | INFO=Workspace Info 5 | DESCRIPTION=Workspace Description 6 | KEYWORD1=Keyword -------------------------------------------------------------------------------- /advanced/content-package-template/workspace/src/i18n/i18n_en_US.properties: -------------------------------------------------------------------------------- 1 | TITLE=Workspace Title 2 | SUBTITLE=Workspace Subitle 3 | SHORTTITLE=Workspace Short Title 4 | INFO=Workspace Info 5 | DESCRIPTION=Workspace Description 6 | KEYWORD1=Keyword -------------------------------------------------------------------------------- /advanced/context-awareness/sample-cards/regions-list-card/README.md: -------------------------------------------------------------------------------- 1 | ## Workzone Brand Card 2 | 3 | - Lists all available regions in a dropdown list. Once a region is selected, it is added to the current card context as the `region` parameter. 4 | -------------------------------------------------------------------------------- /standard/content-package-template/content-package/package-sample-OnePageSevenCards.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP-samples/build-workzone-integration/HEAD/standard/content-package-template/content-package/package-sample-OnePageSevenCards.zip -------------------------------------------------------------------------------- /advanced/content-package-template/card/src/i18n/i18n.properties: -------------------------------------------------------------------------------- 1 | TITLE=Card Template Title 2 | SUBTITLE=Card Template Subitle 3 | SHORTTITLE=Card Template Short Title 4 | INFO=Card Template Info 5 | DESCRIPTION=Card Template Description 6 | KEYWORD1=Keyword -------------------------------------------------------------------------------- /advanced/content-package-template/card/src/i18n/i18n_en.properties: -------------------------------------------------------------------------------- 1 | TITLE=Card Template Title 2 | SUBTITLE=Card Template Subitle 3 | SHORTTITLE=Card Template Short Title 4 | INFO=Card Template Info 5 | DESCRIPTION=Card Template Description 6 | KEYWORD1=Keyword -------------------------------------------------------------------------------- /advanced/content-package-template/journey/card/src/i18n/i18n.properties: -------------------------------------------------------------------------------- 1 | TITLE=Card Template Title 2 | SUBTITLE=Card Template Subitle 3 | SHORTTITLE=Card Template Short Title 4 | INFO=Card Template Info 5 | DESCRIPTION=Card Template Description 6 | KEYWORD1=Keyword -------------------------------------------------------------------------------- /advanced/content-package-template/journey/card/src/i18n/i18n_en.properties: -------------------------------------------------------------------------------- 1 | TITLE=Card Template Title 2 | SUBTITLE=Card Template Subitle 3 | SHORTTITLE=Card Template Short Title 4 | INFO=Card Template Info 5 | DESCRIPTION=Card Template Description 6 | KEYWORD1=Keyword -------------------------------------------------------------------------------- /standard/content-package-template/content-package/package/artifacts/bubble-chart-card-sample/data.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP-samples/build-workzone-integration/HEAD/standard/content-package-template/content-package/package/artifacts/bubble-chart-card-sample/data.zip -------------------------------------------------------------------------------- /standard/content-package-template/content-package/package/artifacts/data-object-card-sample/data.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP-samples/build-workzone-integration/HEAD/standard/content-package-template/content-package/package/artifacts/data-object-card-sample/data.zip -------------------------------------------------------------------------------- /standard/content-package-template/content-package/package/artifacts/static-list-card-sample/data.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP-samples/build-workzone-integration/HEAD/standard/content-package-template/content-package/package/artifacts/static-list-card-sample/data.zip -------------------------------------------------------------------------------- /advanced/content-package-template/workflow/src/i18n/i18n.properties: -------------------------------------------------------------------------------- 1 | TITLE=Workflow Template Title 2 | SUBTITLE=Workflow Template Subitle 3 | SHORTTITLE=Workflow Template Short Title 4 | INFO=Workflow Template Info 5 | DESCRIPTION=Workflow Template Description 6 | KEYWORD1=Keyword -------------------------------------------------------------------------------- /advanced/content-package-template/workflow/src/i18n/i18n_en.properties: -------------------------------------------------------------------------------- 1 | TITLE=Workflow Template Title 2 | SUBTITLE=Workflow Template Subitle 3 | SHORTTITLE=Workflow Template Short Title 4 | INFO=Workflow Template Info 5 | DESCRIPTION=Workflow Template Description 6 | KEYWORD1=Keyword -------------------------------------------------------------------------------- /advanced/content-package-template/journey/workflow/src/i18n/i18n.properties: -------------------------------------------------------------------------------- 1 | TITLE=Workflow Template Title 2 | SUBTITLE=Workflow Template Subitle 3 | SHORTTITLE=Workflow Template Short Title 4 | INFO=Workflow Template Info 5 | DESCRIPTION=Workflow Template Description 6 | KEYWORD1=Keyword -------------------------------------------------------------------------------- /advanced/content-package-template/journey/workflow/src/i18n/i18n_en.properties: -------------------------------------------------------------------------------- 1 | TITLE=Workflow Template Title 2 | SUBTITLE=Workflow Template Subitle 3 | SHORTTITLE=Workflow Template Short Title 4 | INFO=Workflow Template Info 5 | DESCRIPTION=Workflow Template Description 6 | KEYWORD1=Keyword -------------------------------------------------------------------------------- /standard/content-package-template/card-samples/object-card-samples/data-object-card-sample/src/DonnaMoore.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP-samples/build-workzone-integration/HEAD/standard/content-package-template/card-samples/object-card-samples/data-object-card-sample/src/DonnaMoore.png -------------------------------------------------------------------------------- /standard/content-package-template/tools/test/validatePackage.js: -------------------------------------------------------------------------------- 1 | var validate = require("../contentpackage/validate"), 2 | path = require("path"); 3 | 4 | var dir = process.argv[2].split("/"); 5 | dir = __dirname.split("/").concat(dir); 6 | validate.validate("/" + path.join.apply(path, dir)); -------------------------------------------------------------------------------- /advanced/content-package-template/workspace-template/src/i18n/i18n.properties: -------------------------------------------------------------------------------- 1 | TITLE=Workspace Template Title 2 | SUBTITLE=Workspace Template Subitle 3 | SHORTTITLE=Workspace Template Short Title 4 | INFO=Workspace Template Info 5 | DESCRIPTION=Workspace Template Description 6 | KEYWORD1=Keyword -------------------------------------------------------------------------------- /advanced/content-package-template/workspace-template/src/i18n/i18n_en.properties: -------------------------------------------------------------------------------- 1 | TITLE=Workspace Template Title 2 | SUBTITLE=Workspace Template Subitle 3 | SHORTTITLE=Workspace Template Short Title 4 | INFO=Workspace Template Info 5 | DESCRIPTION=Workspace Template Description 6 | KEYWORD1=Keyword -------------------------------------------------------------------------------- /advanced/context-awareness/sample-cards/analytical-card/README.md: -------------------------------------------------------------------------------- 1 | ## Workzone Analytical Card 2 | 3 | - An analytical card that subscribes to the `brand` and `region` card context parameters 4 | - The analytical chart automatically refreshes when the `brand` or `region` parameter is updated. 5 | -------------------------------------------------------------------------------- /standard/content-package-template/card-samples/object-card-samples/static-object-card-sample/src/DonnaMoore.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP-samples/build-workzone-integration/HEAD/standard/content-package-template/card-samples/object-card-samples/static-object-card-sample/src/DonnaMoore.png -------------------------------------------------------------------------------- /standard/content-package-template/card-samples/object-card-samples/data-object-card-sample/src/AlainChevalier.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP-samples/build-workzone-integration/HEAD/standard/content-package-template/card-samples/object-card-samples/data-object-card-sample/src/AlainChevalier.png -------------------------------------------------------------------------------- /standard/content-package-template/card-samples/object-card-samples/static-object-card-sample/src/AlainChevalier.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP-samples/build-workzone-integration/HEAD/standard/content-package-template/card-samples/object-card-samples/static-object-card-sample/src/AlainChevalier.png -------------------------------------------------------------------------------- /standard/content-package-template/cdm-samples/src/businessapp1.json: -------------------------------------------------------------------------------- 1 | { 2 | "_version": "3.2.0", 3 | "identification": { 4 | "id": "my.company.ns.contentpackage.app1", 5 | "title": "{{BUSINESSAPP_TITLE1}}", 6 | "entityType": "businessapp", 7 | "description": "{{BUSINESSAPP_DESC1}}" 8 | } 9 | } -------------------------------------------------------------------------------- /standard/README.md: -------------------------------------------------------------------------------- 1 | # SAP Work Zone Standard Integration Sample Repository 2 | 3 | This repository serves as a template for SAP Work Zone Standard integration samples, providing a structured starting point for developers. 4 | 5 | - **Content Package Template:** 6 | [Standard](./content-package-template/README.md) code samples -------------------------------------------------------------------------------- /standard/html5-content-provider-sample/ManageProducts/products/webapp/controller/View1.controller.js: -------------------------------------------------------------------------------- 1 | sap.ui.define([ 2 | "sap/ui/core/mvc/Controller" 3 | ], function (Controller) { 4 | "use strict"; 5 | 6 | return Controller.extend("products.controller.View1", { 7 | onInit: function () { 8 | 9 | } 10 | }); 11 | }); -------------------------------------------------------------------------------- /advanced/content-package-template/content-package/i18n/i18n_en.properties: -------------------------------------------------------------------------------- 1 | PACKAGE_TITLE=Package Title 2 | PACKAGE_SUBTITLE=Package Subtitle 3 | PACKAGE_SHORTTITLE=Package Shorttitle 4 | PACKAGE_INFO=Package Info 5 | PACKAGE_DESCRIPTION=Package Description 6 | PACKAGE_KEYWORD1=Keyword 1 7 | PACKAGE_KEYWORD2=Keyword 2 8 | 9 | 10 | -------------------------------------------------------------------------------- /standard/html5-content-provider-sample/ManageProducts/products/webapp/logout-page.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Logout 4 | 5 | 6 |

Logout

7 |

You are now logged out!

8 |

You may return to the application

9 | 10 | -------------------------------------------------------------------------------- /advanced/content-package-template/content-package/i18n/i18n.properties: -------------------------------------------------------------------------------- 1 | PACKAGE_TITLE=Package Title 2 | PACKAGE_SUBTITLE=Package Subtitle 3 | PACKAGE_SHORTTITLE=Package Shorttitle 4 | PACKAGE_INFO=Package Info 5 | PACKAGE_DESCRIPTION=Package Description 6 | PACKAGE_KEYWORD1=Keyword 1 7 | PACKAGE_KEYWORD2=Keyword 2 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /standard/content-package-template/cdm-samples/src/i18n/i18n.properties: -------------------------------------------------------------------------------- 1 | ROLE_TITLE1=Content Package Role 1 2 | ROLE_TITLE2=Content Package Role 2 3 | 4 | SPACE_TITLE1=Content Package Space 1 5 | 6 | PAGE_TITLE1=Workpage 1 7 | PAGE_TITLE2=Workpage 2 8 | 9 | BUSINESSAPP_TITLE1=Business App 1 10 | BUSINESSAPP_DESC1=Business App Description 1 11 | -------------------------------------------------------------------------------- /standard/content-package-template/docs/cdm/schema/workpagecell-config.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-07/schema#", 3 | "title": "Work Page Cell Configuration", 4 | "description": "Configuration of a work page cell", 5 | "type": "object", 6 | "$comment": "FIXME list of attributes not yet finalized", 7 | "properties": {} 8 | } -------------------------------------------------------------------------------- /standard/content-package-template/cdm-samples/src/i18n/i18n_de.properties: -------------------------------------------------------------------------------- 1 | ROLE_TITLE1=Content Package Role 1 2 | ROLE_TITLE2=Content Package Role 2 3 | 4 | SPACE_TITLE1=Content Package Space 1 5 | 6 | PAGE_TITLE1=Workpage 1 7 | PAGE_TITLE2=Workpage 2 8 | 9 | BUSINESSAPP_TITLE1=Business App 1 10 | BUSINESSAPP_DESC1=Business App Description 1 11 | -------------------------------------------------------------------------------- /standard/content-package-template/cdm-samples/src/i18n/i18n_en.properties: -------------------------------------------------------------------------------- 1 | ROLE_TITLE1=Content Package Role 1 2 | ROLE_TITLE2=Content Package Role 2 3 | 4 | SPACE_TITLE1=Content Package Space 1 5 | 6 | PAGE_TITLE1=Workpage 1 7 | PAGE_TITLE2=Workpage 2 8 | 9 | BUSINESSAPP_TITLE1=Business App 1 10 | BUSINESSAPP_DESC1=Business App Description 1 11 | -------------------------------------------------------------------------------- /standard/content-package-template/docs/cdm/schema/workpagecolumn-config.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-07/schema#", 3 | "title": "Work Page Column Configuration", 4 | "description": "Configuration of a work page column", 5 | "type": "object", 6 | "$comment": "FIXME list of attributes not yet finalized", 7 | "properties": {} 8 | } -------------------------------------------------------------------------------- /advanced/content-package-template/workflow/src/workflow/sample-data/SimpleApproval.json: -------------------------------------------------------------------------------- 1 | { 2 | "general": { 3 | "subject": "Approve investment into project Avatar", 4 | "description": "Approve investment into project Avatar" 5 | }, 6 | "recipients": { 7 | "firstApprover": "john.doe@mycorp.com", 8 | "secondApprover": "john.doe@mycorp.com" 9 | } 10 | } -------------------------------------------------------------------------------- /standard/html5-content-provider-sample/ManageProducts/products/webapp/view/App.view.xml: -------------------------------------------------------------------------------- 1 | 6 | 7 | 10 | 11 | -------------------------------------------------------------------------------- /advanced/content-package-template/journey/workflow/src/workflow/sample-data/SimpleApproval.json: -------------------------------------------------------------------------------- 1 | { 2 | "general": { 3 | "subject": "Approve investment into project Avatar", 4 | "description": "Approve investment into project Avatar" 5 | }, 6 | "recipients": { 7 | "firstApprover": "john.doe@mycorp.com", 8 | "secondApprover": "john.doe@mycorp.com" 9 | } 10 | } -------------------------------------------------------------------------------- /advanced/context-awareness/sample-cards/brand-list-card/bundle/Component.js: -------------------------------------------------------------------------------- 1 | sap.ui.define([ 2 | "sap/ui/core/UIComponent" 3 | ], function (UIComponent) { 4 | "use strict"; 5 | 6 | return UIComponent.extend("sap.workzone.samples.context.brandCard.Component", { 7 | onCardReady: function (oCard) { 8 | this.oCard = oCard; 9 | } 10 | }); 11 | }); 12 | -------------------------------------------------------------------------------- /advanced/context-awareness/sample-cards/regions-list-card/bundle/Component.js: -------------------------------------------------------------------------------- 1 | sap.ui.define([ 2 | "sap/ui/core/UIComponent" 3 | ], function (UIComponent) { 4 | "use strict"; 5 | 6 | return UIComponent.extend("sap.workzone.samples.context.regionCard.Component", { 7 | onCardReady: function (oCard) { 8 | this.oCard = oCard; 9 | } 10 | }); 11 | }); 12 | -------------------------------------------------------------------------------- /advanced/wizard/sample-cards/wz-todo-card/bundle/Component.js: -------------------------------------------------------------------------------- 1 | sap.ui.define([ 2 | "sap/ui/core/UIComponent" 3 | ], function (UIComponent) { 4 | "use strict"; 5 | 6 | var Component = UIComponent.extend("sap.workzone.samples.todo", { 7 | onCardReady: function (oCard) { 8 | this.oCard = oCard; 9 | } 10 | }); 11 | 12 | return Component; 13 | }); 14 | -------------------------------------------------------------------------------- /standard/content-package-template/tools/content-package/artifactBuild.js: -------------------------------------------------------------------------------- 1 | const process = require('process'); 2 | try { 3 | let args = process.argv; 4 | let projPath = args[2]; 5 | let artifactType = args[3]; 6 | var build = require("../" + artifactType + "/build.js"); 7 | build.build(projPath); 8 | } catch(err) { 9 | console.error(err.message); 10 | } 11 | -------------------------------------------------------------------------------- /advanced/wizard/sample-cards/wz-vaccination-card/bundle/Component.js: -------------------------------------------------------------------------------- 1 | sap.ui.define([ 2 | "sap/ui/core/UIComponent" 3 | ], function (UIComponent) { 4 | "use strict"; 5 | 6 | var Component = UIComponent.extend("sap.workzone.samples.vaccination", { 7 | onCardReady: function (oCard) { 8 | this.oCard = oCard; 9 | } 10 | }); 11 | 12 | return Component; 13 | }); 14 | -------------------------------------------------------------------------------- /advanced/wizard/sample-cards/wz-todo-card/README.md: -------------------------------------------------------------------------------- 1 | ## Work Zone Todo Component Cards 2 | 3 | - Utilizes the Work Zone Wizard to persist Todo items along with their status. 4 | - Validates for any incomplete Todo items during the Wizard `Submission` event. 5 | 6 | ## Card Bundle 7 | - Card bundle is available [here](../bundle/wz-todo-card.zip) 8 | 9 | ![Card Preview](../images/wz-todo-card.png) -------------------------------------------------------------------------------- /standard/content-package-template/tools/resources/card-ui5.yaml.template: -------------------------------------------------------------------------------- 1 | specVersion: "2.0" 2 | metadata: 3 | name: {{CardName}} 4 | copyright: |- 5 | * (c) Copyright 2009-${currentYear} 6 | type: application 7 | resources: 8 | configuration: 9 | paths: 10 | webapp: src 11 | builder: 12 | resources: 13 | excludes: 14 | - "test/**" 15 | - ".card/**" 16 | -------------------------------------------------------------------------------- /advanced/wizard/sample-cards/wz-vaccination-confirm-card/bundle/Component.js: -------------------------------------------------------------------------------- 1 | sap.ui.define([ 2 | "sap/ui/core/UIComponent" 3 | ], function (UIComponent) { 4 | "use strict"; 5 | 6 | var Component = UIComponent.extend("sap.workzone.samples.component.vaccinationStatus", { 7 | onCardReady: function (oCard) { 8 | this.oCard = oCard; 9 | } 10 | }); 11 | 12 | return Component; 13 | }); 14 | -------------------------------------------------------------------------------- /advanced/wizard/sample-cards/wz-favorite-card/README.md: -------------------------------------------------------------------------------- 1 | ## Work Zone Favorite Declarative Card 2 | 3 | - Utilizes the Work Zone Wizard to persist Favorite Items. 4 | - Validates whether the user has favorited at least one item during the Wizard `Submission` event. 5 | 6 | ## Card Bundle 7 | - Card bundle is available [here](../bundle/wz-favorite-card.zip) 8 | 9 | ![Card Preview](../images/wz-favorite-card.png) -------------------------------------------------------------------------------- /standard/content-package-template/content-package/i18n/i18n_en.properties: -------------------------------------------------------------------------------- 1 | PACKAGE_TITLE=Sample Content Package of Own Content 2 | PACKAGE_SUBTITLE=Sample Content Package of Own Content 3 | PACKAGE_SHORTTITLE=Own Content Content Package 4 | PACKAGE_INFO=Sample Content Package of Own Content 5 | PACKAGE_DESCRIPTION=Sample Content Package of Own Content 6 | PACKAGE_KEYWORD1=Own 7 | PACKAGE_KEYWORD2=Content 8 | 9 | -------------------------------------------------------------------------------- /standard/html5-content-provider-sample/ManageProducts/products/webapp/view/View1.view.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /standard/content-package-template/content-package/package/i18n/i18n_en.properties: -------------------------------------------------------------------------------- 1 | PACKAGE_TITLE=Sample Content Package of Own Content 2 | PACKAGE_SUBTITLE=Sample Content Package of Own Content 3 | PACKAGE_SHORTTITLE=Own Content Content Package 4 | PACKAGE_INFO=Sample Content Package of Own Content 5 | PACKAGE_DESCRIPTION=Sample Content Package of Own Content 6 | PACKAGE_KEYWORD1=Own 7 | PACKAGE_KEYWORD2=Content 8 | 9 | -------------------------------------------------------------------------------- /standard/content-package-template/content-package/package/i18n/i18n_en_GB.properties: -------------------------------------------------------------------------------- 1 | PACKAGE_TITLE=Sample Content Package of Own Content 2 | PACKAGE_SUBTITLE=Sample Content Package of Own Content 3 | PACKAGE_SHORTTITLE=Own Content Content Package 4 | PACKAGE_INFO=Sample Content Package of Own Content 5 | PACKAGE_DESCRIPTION=Sample Content Package of Own Content 6 | PACKAGE_KEYWORD1=Own 7 | PACKAGE_KEYWORD2=Content 8 | 9 | -------------------------------------------------------------------------------- /standard/content-package-template/content-package/package/i18n/i18n_en_US.properties: -------------------------------------------------------------------------------- 1 | PACKAGE_TITLE=Sample Content Package of Own Content 2 | PACKAGE_SUBTITLE=Sample Content Package of Own Content 3 | PACKAGE_SHORTTITLE=Own Content Content Package 4 | PACKAGE_INFO=Sample Content Package of Own Content 5 | PACKAGE_DESCRIPTION=Sample Content Package of Own Content 6 | PACKAGE_KEYWORD1=Own 7 | PACKAGE_KEYWORD2=Content 8 | 9 | -------------------------------------------------------------------------------- /standard/content-package-template/tools/util/validation.js: -------------------------------------------------------------------------------- 1 | function isObject(o) { 2 | return typeof o === "object" && !Array.isArray(o); 3 | } 4 | function hasStringEntry(o, s, min = 1, start = "", end = "") { 5 | return o[s] && typeof o[s] === "string" && o[s].length >= min && o[s].startsWith(start) && o[s].endsWith(end); 6 | } 7 | 8 | module.exports.validation = { 9 | isObject: isObject, 10 | hasStringEntry: hasStringEntry 11 | } -------------------------------------------------------------------------------- /advanced/content-package-template/card/.editorconfig: -------------------------------------------------------------------------------- 1 | # see http://editorconfig.org 2 | 3 | root = true 4 | 5 | [*] 6 | indent_style = tab 7 | end_of_line = lf 8 | charset = utf-8 9 | trim_trailing_whitespace = true 10 | insert_final_newline = true 11 | 12 | # npm is using 2 spaces when modifying package.json 13 | [package.json] 14 | indent_style = space 15 | indent_size = 2 16 | 17 | [*.md] 18 | trim_trailing_whitespace = false 19 | -------------------------------------------------------------------------------- /advanced/content-package-template/card/ui5.yaml: -------------------------------------------------------------------------------- 1 | specVersion: "2.0" 2 | metadata: 3 | name: sap-workzone-cpkg-card-sample 4 | copyright: |- 5 | SAP Work Zone 6 | * (c) Copyright 2009-${currentYear} SAP SE or an SAP affiliate company. 7 | type: application 8 | resources: 9 | configuration: 10 | paths: 11 | webapp: src 12 | builder: 13 | resources: 14 | excludes: 15 | - "test/**" 16 | - ".card/**" 17 | -------------------------------------------------------------------------------- /standard/content-package-template/cdm-samples/src/space1.json: -------------------------------------------------------------------------------- 1 | { 2 | "_version": "3.1.0", 3 | "identification": { 4 | "id": "my.company.ns.contentpackage.space1", 5 | "title": "{{SPACE_TITLE1}}", 6 | "entityType": "space" 7 | }, 8 | "payload": { 9 | "contentNodes": [ 10 | { 11 | "type": "workpage", 12 | "id": "my.company.ns.contentpackage.workpage1" 13 | } 14 | ] 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /standard/content-package-template/cdm-samples/src/space1_1page.json: -------------------------------------------------------------------------------- 1 | { 2 | "_version": "3.1.0", 3 | "identification": { 4 | "id": "my.company.ns.contentpackage.space1", 5 | "title": "{{SPACE_TITLE1}}", 6 | "entityType": "space" 7 | }, 8 | "payload": { 9 | "contentNodes": [ 10 | { 11 | "type": "workpage", 12 | "id": "my.company.ns.contentpackage.workpage1" 13 | } 14 | ] 15 | } 16 | } -------------------------------------------------------------------------------- /standard/content-package-template/content-package/i18n/i18n.properties: -------------------------------------------------------------------------------- 1 | PACKAGE_TITLE=Sample Content Package of Own Content 2 | PACKAGE_SUBTITLE=Sample Content Package of Own Content 3 | PACKAGE_SHORTTITLE=Own Content Content Package 4 | PACKAGE_INFO=Sample Content Package of Own Content 5 | PACKAGE_DESCRIPTION=Sample Content Package of Own Content 6 | PACKAGE_KEYWORD1=Own 7 | PACKAGE_KEYWORD2=Content 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /advanced/content-package-template/journey/card/.editorconfig: -------------------------------------------------------------------------------- 1 | # see http://editorconfig.org 2 | 3 | root = true 4 | 5 | [*] 6 | indent_style = tab 7 | end_of_line = lf 8 | charset = utf-8 9 | trim_trailing_whitespace = true 10 | insert_final_newline = true 11 | 12 | # npm is using 2 spaces when modifying package.json 13 | [package.json] 14 | indent_style = space 15 | indent_size = 2 16 | 17 | [*.md] 18 | trim_trailing_whitespace = false 19 | -------------------------------------------------------------------------------- /advanced/content-package-template/journey/card/ui5.yaml: -------------------------------------------------------------------------------- 1 | specVersion: "2.0" 2 | metadata: 3 | name: sap-workzone-cpkg-card-sample 4 | copyright: |- 5 | SAP Work Zone 6 | * (c) Copyright 2009-${currentYear} SAP SE or an SAP affiliate company. 7 | type: application 8 | resources: 9 | configuration: 10 | paths: 11 | webapp: src 12 | builder: 13 | resources: 14 | excludes: 15 | - "test/**" 16 | - ".card/**" 17 | -------------------------------------------------------------------------------- /standard/content-package-template/content-package/package/i18n/i18n.properties: -------------------------------------------------------------------------------- 1 | PACKAGE_TITLE=Sample Content Package of Own Content 2 | PACKAGE_SUBTITLE=Sample Content Package of Own Content 3 | PACKAGE_SHORTTITLE=Own Content Content Package 4 | PACKAGE_INFO=Sample Content Package of Own Content 5 | PACKAGE_DESCRIPTION=Sample Content Package of Own Content 6 | PACKAGE_KEYWORD1=Own 7 | PACKAGE_KEYWORD2=Content 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /standard/content-package-template/content-package/i18n/i18n_de.properties: -------------------------------------------------------------------------------- 1 | PACKAGE_TITLE=Beispiel Content Package mit eigenem Inhalt 2 | PACKAGE_SUBTITLE=Beispiel Content Package mit eigenem Inhalt 3 | PACKAGE_SHORTTITLE=Eigener Inhalt im Content Content Package 4 | PACKAGE_INFO=Beispiel Content Package mit eigenem Inhalt 5 | PACKAGE_DESCRIPTION=Beispiel Content Package mit eigenem Inhalt 6 | PACKAGE_KEYWORD1=Eigener 7 | PACKAGE_KEYWORD2=Inhalt 8 | 9 | -------------------------------------------------------------------------------- /standard/content-package-template/content-package/package/i18n/i18n_de.properties: -------------------------------------------------------------------------------- 1 | PACKAGE_TITLE=Beispiel Content Package mit eigenem Inhalt 2 | PACKAGE_SUBTITLE=Beispiel Content Package mit eigenem Inhalt 3 | PACKAGE_SHORTTITLE=Eigener Inhalt im Content Content Package 4 | PACKAGE_INFO=Beispiel Content Package mit eigenem Inhalt 5 | PACKAGE_DESCRIPTION=Beispiel Content Package mit eigenem Inhalt 6 | PACKAGE_KEYWORD1=Eigener 7 | PACKAGE_KEYWORD2=Inhalt 8 | 9 | -------------------------------------------------------------------------------- /standard/content-package-template/content-package/package/i18n/i18n_de_CH.properties: -------------------------------------------------------------------------------- 1 | PACKAGE_TITLE=Beispiel Content Package mit eigenem Inhalt 2 | PACKAGE_SUBTITLE=Beispiel Content Package mit eigenem Inhalt 3 | PACKAGE_SHORTTITLE=Eigener Inhalt im Content Content Package 4 | PACKAGE_INFO=Beispiel Content Package mit eigenem Inhalt 5 | PACKAGE_DESCRIPTION=Beispiel Content Package mit eigenem Inhalt 6 | PACKAGE_KEYWORD1=Eigener 7 | PACKAGE_KEYWORD2=Inhalt 8 | 9 | -------------------------------------------------------------------------------- /standard/content-package-template/content-package/package/i18n/i18n_de_DE.properties: -------------------------------------------------------------------------------- 1 | PACKAGE_TITLE=Beispiel Content Package mit eigenem Inhalt 2 | PACKAGE_SUBTITLE=Beispiel Content Package mit eigenem Inhalt 3 | PACKAGE_SHORTTITLE=Eigener Inhalt im Content Content Package 4 | PACKAGE_INFO=Beispiel Content Package mit eigenem Inhalt 5 | PACKAGE_DESCRIPTION=Beispiel Content Package mit eigenem Inhalt 6 | PACKAGE_KEYWORD1=Eigener 7 | PACKAGE_KEYWORD2=Inhalt 8 | 9 | -------------------------------------------------------------------------------- /standard/content-package-template/tools/resources/package.json.template: -------------------------------------------------------------------------------- 1 | { 2 | "name": "{{ArtifactName}}", 3 | "version": "1.0.0", 4 | "description": "Sample project structure for a artifact that will be included into a content package", 5 | "scripts": { 6 | "build": "node scripts/build.js" 7 | }, 8 | "repository": { 9 | "type": "", 10 | "url": "", 11 | "directory": "" 12 | }, 13 | "devDependencies": { 14 | }, 15 | "author": "", 16 | "license": "" 17 | } 18 | -------------------------------------------------------------------------------- /standard/content-package-template/card-samples/list-card-samples/data-list-card-sample/ui5.yaml: -------------------------------------------------------------------------------- 1 | specVersion: "2.0" 2 | metadata: 3 | name: my.company.ns.data.list.card 4 | copyright: |- 5 | * SAP Fiori Launchpad Service (c) Copyright 2009-${currentYear} SAP SE or an SAP affiliate company. 6 | type: application 7 | resources: 8 | configuration: 9 | paths: 10 | webapp: src 11 | builder: 12 | resources: 13 | excludes: 14 | - "test/**" 15 | - ".card/**" -------------------------------------------------------------------------------- /standard/content-package-template/card-samples/list-card-samples/static-list-card-sample/ui5.yaml: -------------------------------------------------------------------------------- 1 | specVersion: "2.0" 2 | metadata: 3 | name: my.company.ns.static.list.card 4 | copyright: |- 5 | * SAP Fiori Launchpad Service (c) Copyright 2009-${currentYear} SAP SE or an SAP affiliate company. 6 | type: application 7 | resources: 8 | configuration: 9 | paths: 10 | webapp: src 11 | builder: 12 | resources: 13 | excludes: 14 | - "test/**" 15 | - ".card/**" -------------------------------------------------------------------------------- /standard/content-package-template/card-samples/object-card-samples/data-object-card-sample/ui5.yaml: -------------------------------------------------------------------------------- 1 | specVersion: "2.0" 2 | metadata: 3 | name: my.company.ns.data.object.card 4 | copyright: |- 5 | * SAP Fiori Launchpad Service (c) Copyright 2009-${currentYear} SAP SE or an SAP affiliate company. 6 | type: application 7 | resources: 8 | configuration: 9 | paths: 10 | webapp: src 11 | builder: 12 | resources: 13 | excludes: 14 | - "test/**" 15 | - ".card/**" -------------------------------------------------------------------------------- /standard/html5-content-provider-sample/ManageProducts/products/webapp/controller/NotFound.controller.js: -------------------------------------------------------------------------------- 1 | sap.ui.define([ 2 | "./BaseController" 3 | ], function (BaseController) { 4 | "use strict"; 5 | 6 | return BaseController.extend("products.controller.NotFound", { 7 | 8 | /** 9 | * Navigates to the worklist when the link is pressed 10 | * @public 11 | */ 12 | onLinkPressed : function () { 13 | this.getRouter().navTo("worklist"); 14 | } 15 | 16 | }); 17 | 18 | }); -------------------------------------------------------------------------------- /standard/content-package-template/card-samples/analytical-card-samples/donut-chart-card-sample/ui5.yaml: -------------------------------------------------------------------------------- 1 | specVersion: "2.0" 2 | metadata: 3 | name: my.company.ns.donut.chart.card 4 | copyright: |- 5 | * SAP Fiori Launchpad Service (c) Copyright 2009-${currentYear} SAP SE or an SAP affiliate company. 6 | type: application 7 | resources: 8 | configuration: 9 | paths: 10 | webapp: src 11 | builder: 12 | resources: 13 | excludes: 14 | - "test/**" 15 | - ".card/**" -------------------------------------------------------------------------------- /standard/content-package-template/card-samples/analytical-card-samples/line-chart-card-sample/ui5.yaml: -------------------------------------------------------------------------------- 1 | specVersion: "2.0" 2 | metadata: 3 | name: my.company.ns.line.chart.card 4 | copyright: |- 5 | * SAP Fiori Launchpad Service (c) Copyright 2009-${currentYear} SAP SE or an SAP affiliate company. 6 | type: application 7 | resources: 8 | configuration: 9 | paths: 10 | webapp: src 11 | builder: 12 | resources: 13 | excludes: 14 | - "test/**" 15 | - ".card/**" -------------------------------------------------------------------------------- /standard/content-package-template/card-samples/object-card-samples/static-object-card-sample/ui5.yaml: -------------------------------------------------------------------------------- 1 | specVersion: "2.0" 2 | metadata: 3 | name: my.company.ns.static.object.card 4 | copyright: |- 5 | * SAP Fiori Launchpad Service (c) Copyright 2009-${currentYear} SAP SE or an SAP affiliate company. 6 | type: application 7 | resources: 8 | configuration: 9 | paths: 10 | webapp: src 11 | builder: 12 | resources: 13 | excludes: 14 | - "test/**" 15 | - ".card/**" -------------------------------------------------------------------------------- /standard/content-package-template/card-samples/analytical-card-samples/bubble-chart-card-sample/ui5.yaml: -------------------------------------------------------------------------------- 1 | specVersion: "2.0" 2 | metadata: 3 | name: my.company.ns.bubble.chart.card 4 | copyright: |- 5 | * SAP Fiori Launchpad Service (c) Copyright 2009-${currentYear} SAP SE or an SAP affiliate company. 6 | type: application 7 | resources: 8 | configuration: 9 | paths: 10 | webapp: src 11 | builder: 12 | resources: 13 | excludes: 14 | - "test/**" 15 | - ".card/**" -------------------------------------------------------------------------------- /standard/content-package-template/tools/README.md: -------------------------------------------------------------------------------- 1 | # Content Builder Tools for SAP Work Zone 2 | 3 | This package contains scripts to create 4 | 5 | - Home Pages 6 | - Cards 7 | - Workflows 8 | - Workspace 9 | - Workspace Templates 10 | 11 | This package contains scripts to combine the above artifacts into 12 | 13 | - Content Packages 14 | 15 | ## Package Validation 16 | 17 | For package validation consider to run 18 | 19 | `node test/validatePackage.js (e.g. ../../cpkg-project-template)` 20 | -------------------------------------------------------------------------------- /standard/html5-content-provider-sample/ManageProducts/xs-security.json: -------------------------------------------------------------------------------- 1 | { 2 | "xsappname": "manageproductscdm", 3 | "tenant-mode": "dedicated", 4 | "description": "Security profile of called application", 5 | "scopes": [ 6 | { 7 | "name": "uaa.user", 8 | "description": "UAA" 9 | } 10 | ], 11 | "role-templates": [ 12 | { 13 | "name": "Token_Exchange", 14 | "description": "UAA", 15 | "scope-references": [ 16 | "uaa.user" 17 | ] 18 | } 19 | ] 20 | } 21 | -------------------------------------------------------------------------------- /advanced/content-package-template/workflow/src/mta.yaml: -------------------------------------------------------------------------------- 1 | ID: simple-approval 2 | _schema-version: '2.1' 3 | version: 1.0.0 4 | modules: 5 | - name: workflow 6 | type: com.sap.application.content 7 | path: workflow 8 | requires: 9 | - name: workflow_simple-approval 10 | parameters: 11 | content-target: true 12 | resources: 13 | - name: workflow_simple-approval 14 | parameters: 15 | service-plan: standard 16 | service: workflow 17 | type: org.cloudfoundry.managed-service 18 | -------------------------------------------------------------------------------- /advanced/content-package-template/journey/workflow/src/mta.yaml: -------------------------------------------------------------------------------- 1 | ID: simple-approval 2 | _schema-version: '2.1' 3 | version: 1.0.0 4 | modules: 5 | - name: workflow 6 | type: com.sap.application.content 7 | path: workflow 8 | requires: 9 | - name: workflow_simple-approval 10 | parameters: 11 | content-target: true 12 | resources: 13 | - name: workflow_simple-approval 14 | parameters: 15 | service-plan: standard 16 | service: workflow 17 | type: org.cloudfoundry.managed-service 18 | -------------------------------------------------------------------------------- /standard/html5-content-provider-sample/ManageProducts/products/webapp/model/models.js: -------------------------------------------------------------------------------- 1 | sap.ui.define([ 2 | "sap/ui/model/json/JSONModel", 3 | "sap/ui/Device" 4 | ], function (JSONModel, Device) { 5 | "use strict"; 6 | 7 | return { 8 | 9 | createDeviceModel : function () { 10 | var oModel = new JSONModel(Device); 11 | oModel.setDefaultBindingMode("OneWay"); 12 | return oModel; 13 | }, 14 | 15 | createCommentsModel: function() { 16 | return new JSONModel({ productComments : [] }); 17 | } 18 | 19 | }; 20 | 21 | }); -------------------------------------------------------------------------------- /standard/html5-content-provider-sample/ManageProducts/products/webapp/view/NotFound.view.xml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /advanced/content-package-template/workflow/src/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "_version": "1.18.0", 3 | "sap.artifact": { 4 | "id": "cpkg.project.template.workflow", 5 | "type": "workflow", 6 | "i18n": "i18n/i18n.properties", 7 | "title": "{{TITLE}}", 8 | "subTitle": "{{SUBTITLE}}", 9 | "artifactVersion": { 10 | "version": "1.0.0" 11 | }, 12 | "shortTitle": "{{SHORTTITLE}}", 13 | "info": "{{INFO}}", 14 | "description": "{{DESCRIPTION}}", 15 | "tags": { 16 | "keywords": [ 17 | "{{KEYWORD1}}" 18 | ] 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /advanced/content-package-template/journey/workflow/src/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "_version": "1.18.0", 3 | "sap.artifact": { 4 | "id": "cpkg.project.template.workflow", 5 | "type": "workflow", 6 | "i18n": "i18n/i18n.properties", 7 | "title": "{{TITLE}}", 8 | "subTitle": "{{SUBTITLE}}", 9 | "artifactVersion": { 10 | "version": "1.0.0" 11 | }, 12 | "shortTitle": "{{SHORTTITLE}}", 13 | "info": "{{INFO}}", 14 | "description": "{{DESCRIPTION}}", 15 | "tags": { 16 | "keywords": [ 17 | "{{KEYWORD1}}" 18 | ] 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /standard/html5-content-provider-sample/ManageProducts/products/webapp/view/ObjectNotFound.view.xml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /standard/content-package-template/card-samples/list-card-samples/data-list-card-sample/src/i18n/i18n.properties: -------------------------------------------------------------------------------- 1 | DYNAMIC_LIST_TITLE=Dynamic List Card 2 | DYNAMIC_LIST_SUBTITLE=Dynamic List Card 3 | DYNAMIC_LIST_SHORTTITLE=List Card 4 | DYNAMIC_LIST_INFO=Dynamic List Card Info 5 | DYNAMIC_LIST_DESCRIPTION=Dynamic List Card Description 6 | DYNAMIC_LIST_KEYWORD1=List 7 | DYNAMIC_LIST_KEYWORD2=Card 8 | DYNAMIC_LIST_KEYWORD3=Data 9 | DYNAMIC_LIST_KEYWORD4=Sample 10 | 11 | DYNAMIC_LIST_CARDTITLE=Products 12 | DYNAMIC_LIST_CARDSUBTITLE=In Stock Information 13 | -------------------------------------------------------------------------------- /standard/content-package-template/card-samples/list-card-samples/data-list-card-sample/src/i18n/i18n_en.properties: -------------------------------------------------------------------------------- 1 | DYNAMIC_LIST_TITLE=Dynamic List Card 2 | DYNAMIC_LIST_SUBTITLE=Dynamic List Card 3 | DYNAMIC_LIST_SHORTTITLE=List Card 4 | DYNAMIC_LIST_INFO=Dynamic List Card Info 5 | DYNAMIC_LIST_DESCRIPTION=Dynamic List Card Description 6 | DYNAMIC_LIST_KEYWORD1=List 7 | DYNAMIC_LIST_KEYWORD2=Card 8 | DYNAMIC_LIST_KEYWORD3=Data 9 | DYNAMIC_LIST_KEYWORD4=Sample 10 | 11 | DYNAMIC_LIST_CARDTITLE=Products 12 | DYNAMIC_LIST_CARDSUBTITLE=In Stock Information 13 | -------------------------------------------------------------------------------- /standard/content-package-template/cdm-samples/src/space1_2pages.json: -------------------------------------------------------------------------------- 1 | { 2 | "_version": "3.1.0", 3 | "identification": { 4 | "id": "my.company.ns.contentpackage.space1", 5 | "title": "{{SPACE_TITLE1}}", 6 | "entityType": "space" 7 | }, 8 | "payload": { 9 | "contentNodes": [ 10 | { 11 | "type": "workpage", 12 | "id": "my.company.ns.contentpackage.workpage1" 13 | }, 14 | { 15 | "type": "workpage", 16 | "id": "my.company.ns.contentpackage.workpage2" 17 | } 18 | ] 19 | } 20 | } -------------------------------------------------------------------------------- /standard/content-package-template/content-package/package/artifacts/bubble-chart-card-sample/i18n/i18n_de.properties: -------------------------------------------------------------------------------- 1 | BUBBLE_CHART_TITLE=Bubble Chart Karte 2 | BUBBLE_CHART_SUBTITLE=Bubble Chart Karte 3 | BUBBLE_CHART_SHORTTITLE=Bubble Karte 4 | BUBBLE_CHART_INFO=Bubble Chart Karte Info 5 | BUBBLE_CHART_DESCRIPTION=Bubble Chart Karte Description 6 | BUBBLE_CHART_KEYWORD1=Bubble 7 | BUBBLE_CHART_KEYWORD2=Karte 8 | BUBBLE_CHART_KEYWORD3=Analytical 9 | BUBBLE_CHART_KEYWORD4=Beispiel 10 | 11 | BUBBLE_CHART_CARDTITLE=Januar Gewinn von Milch 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /standard/content-package-template/card-samples/list-card-samples/data-list-card-sample/src/i18n/i18n_de.properties: -------------------------------------------------------------------------------- 1 | DYNAMIC_LIST_TITLE=Dynamische List Karte 2 | DYNAMIC_LIST_SUBTITLE=Dynamische List Karte 3 | DYNAMIC_LIST_SHORTTITLE=List Karte 4 | DYNAMIC_LIST_INFO=Dynamische List Karte Info 5 | DYNAMIC_LIST_DESCRIPTION=Dynamische List Karte Description 6 | DYNAMIC_LIST_KEYWORD1=List 7 | DYNAMIC_LIST_KEYWORD2=Karte 8 | DYNAMIC_LIST_KEYWORD3=Daten 9 | DYNAMIC_LIST_KEYWORD4=Beispiel 10 | 11 | DYNAMIC_LIST_CARDTITLE=Produkte 12 | DYNAMIC_LIST_CARDSUBTITLE=Auf Lager -------------------------------------------------------------------------------- /standard/content-package-template/content-package/package/artifacts/bubble-chart-card-sample/i18n/i18n_de_CH.properties: -------------------------------------------------------------------------------- 1 | BUBBLE_CHART_TITLE=Bubble Chart Karte 2 | BUBBLE_CHART_SUBTITLE=Bubble Chart Karte 3 | BUBBLE_CHART_SHORTTITLE=Bubble Karte 4 | BUBBLE_CHART_INFO=Bubble Chart Karte Info 5 | BUBBLE_CHART_DESCRIPTION=Bubble Chart Karte Description 6 | BUBBLE_CHART_KEYWORD1=Bubble 7 | BUBBLE_CHART_KEYWORD2=Karte 8 | BUBBLE_CHART_KEYWORD3=Analytical 9 | BUBBLE_CHART_KEYWORD4=Beispiel 10 | 11 | BUBBLE_CHART_CARDTITLE=Januar Gewinn von Milch 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /standard/content-package-template/content-package/package/artifacts/bubble-chart-card-sample/i18n/i18n_de_DE.properties: -------------------------------------------------------------------------------- 1 | BUBBLE_CHART_TITLE=Bubble Chart Karte 2 | BUBBLE_CHART_SUBTITLE=Bubble Chart Karte 3 | BUBBLE_CHART_SHORTTITLE=Bubble Karte 4 | BUBBLE_CHART_INFO=Bubble Chart Karte Info 5 | BUBBLE_CHART_DESCRIPTION=Bubble Chart Karte Description 6 | BUBBLE_CHART_KEYWORD1=Bubble 7 | BUBBLE_CHART_KEYWORD2=Karte 8 | BUBBLE_CHART_KEYWORD3=Analytical 9 | BUBBLE_CHART_KEYWORD4=Beispiel 10 | 11 | BUBBLE_CHART_CARDTITLE=Januar Gewinn von Milch 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /advanced/content-package-template/workspace-template/src/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "_version": "1.18.0", 3 | "sap.artifact": { 4 | "id": "cpkg.project.template.workspace", 5 | "type": "workspace-template", 6 | "i18n": "i18n/i18n.properties", 7 | "title": "{{TITLE}}", 8 | "subTitle": "{{SUBTITLE}}", 9 | "artifactVersion": { 10 | "version": "1.0.0" 11 | }, 12 | "shortTitle": "{{SHORTTITLE}}", 13 | "info": "{{INFO}}", 14 | "description": "{{DESCRIPTION}}", 15 | "tags": { 16 | "keywords": [ 17 | "{{KEYWORD1}}" 18 | ] 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /advanced/content-package-template/workspace/src/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "_version": "1.18.0", 3 | "sap.artifact": { 4 | "id": "cpkg.project.template.workspace", 5 | "type": "workspace", 6 | "i18n": "i18n/i18n.properties", 7 | "title": "{{TITLE}}", 8 | "subTitle": "{{SUBTITLE}}", 9 | "artifactVersion": { 10 | "version": "1.0.0" 11 | }, 12 | "shortTitle": "{{SHORTTITLE}}", 13 | "info": "{{INFO}}", 14 | "description": "{{DESCRIPTION}}", 15 | "tags": { 16 | "keywords": ["{{KEYWORD1}}"] 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /standard/content-package-template/card-samples/analytical-card-samples/bubble-chart-card-sample/src/i18n/i18n_de.properties: -------------------------------------------------------------------------------- 1 | BUBBLE_CHART_TITLE=Bubble Chart Karte 2 | BUBBLE_CHART_SUBTITLE=Bubble Chart Karte 3 | BUBBLE_CHART_SHORTTITLE=Bubble Karte 4 | BUBBLE_CHART_INFO=Bubble Chart Karte Info 5 | BUBBLE_CHART_DESCRIPTION=Bubble Chart Karte Description 6 | BUBBLE_CHART_KEYWORD1=Bubble 7 | BUBBLE_CHART_KEYWORD2=Karte 8 | BUBBLE_CHART_KEYWORD3=Analytical 9 | BUBBLE_CHART_KEYWORD4=Beispiel 10 | 11 | BUBBLE_CHART_CARDTITLE=Januar Gewinn von Milch 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /standard/content-package-template/card-samples/list-card-samples/data-list-card-sample/src/test/testpage.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /standard/content-package-template/content-package/package/artifacts/bubble-chart-card-sample/i18n/i18n.properties: -------------------------------------------------------------------------------- 1 | BUBBLE_CHART_TITLE=Bubble Chart Card 2 | BUBBLE_CHART_SUBTITLE=Bubble Chart Card 3 | BUBBLE_CHART_SHORTTITLE=Bubble Card 4 | BUBBLE_CHART_INFO=Bubble Chart Card Info 5 | BUBBLE_CHART_DESCRIPTION=Bubble Chart Card Description 6 | BUBBLE_CHART_KEYWORD1=Bubble 7 | BUBBLE_CHART_KEYWORD2=Card 8 | BUBBLE_CHART_KEYWORD3=Analytical 9 | BUBBLE_CHART_KEYWORD4=Sample 10 | 11 | BUBBLE_CHART_CARDTITLE=Milk Stores - Revenue, Cost and Consumption 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /standard/content-package-template/tools/resources/card-package.json.template: -------------------------------------------------------------------------------- 1 | { 2 | "name": "{{CardName}}", 3 | "version": "1.0.0", 4 | "description": "Sample project structure for a card artifact that will be included into a content package", 5 | "scripts": { 6 | "start": "ui5 serve -o test/manual/index.html", 7 | "eslint": "eslint src", 8 | "build": "node scripts/build.js" 9 | }, 10 | "repository": { 11 | "type": "", 12 | "url": "", 13 | "directory": "" 14 | }, 15 | "devDependencies": { 16 | }, 17 | "author": "", 18 | "license": "" 19 | } 20 | -------------------------------------------------------------------------------- /advanced/content-package-template/homepage/src/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "_version": "1.18.0", 3 | "sap.artifact": { 4 | "id": "cpkg.project.template.homepage", 5 | "type": "company-pages", 6 | "i18n": "i18n/i18n.properties", 7 | "title": "{{TITLE}}", 8 | "subTitle": "{{SUBTITLE}}", 9 | "artifactVersion": { 10 | "version": "1.0.0" 11 | }, 12 | "shortTitle": "{{SHORTTITLE}}", 13 | "info": "{{INFO}}", 14 | "description": "{{DESCRIPTION}}", 15 | "tags": { 16 | "keywords": ["{{KEYWORD1}}"] 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /standard/content-package-template/card-samples/list-card-samples/static-list-card-sample/src/test/testpage.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /standard/content-package-template/card-samples/object-card-samples/data-object-card-sample/src/test/testpage.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /standard/content-package-template/card-samples/object-card-samples/static-object-card-sample/src/test/testpage.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /standard/content-package-template/content-package/package/artifacts/bubble-chart-card-sample/i18n/i18n_en.properties: -------------------------------------------------------------------------------- 1 | BUBBLE_CHART_TITLE=Bubble Chart Card 2 | BUBBLE_CHART_SUBTITLE=Bubble Chart Card 3 | BUBBLE_CHART_SHORTTITLE=Bubble Card 4 | BUBBLE_CHART_INFO=Bubble Chart Card Info 5 | BUBBLE_CHART_DESCRIPTION=Bubble Chart Card Description 6 | BUBBLE_CHART_KEYWORD1=Bubble 7 | BUBBLE_CHART_KEYWORD2=Card 8 | BUBBLE_CHART_KEYWORD3=Analytical 9 | BUBBLE_CHART_KEYWORD4=Sample 10 | 11 | BUBBLE_CHART_CARDTITLE=Milk Stores - Revenue, Cost and Consumption 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /standard/content-package-template/content-package/package/artifacts/bubble-chart-card-sample/i18n/i18n_en_GB.properties: -------------------------------------------------------------------------------- 1 | BUBBLE_CHART_TITLE=Bubble Chart Card 2 | BUBBLE_CHART_SUBTITLE=Bubble Chart Card 3 | BUBBLE_CHART_SHORTTITLE=Bubble Card 4 | BUBBLE_CHART_INFO=Bubble Chart Card Info 5 | BUBBLE_CHART_DESCRIPTION=Bubble Chart Card Description 6 | BUBBLE_CHART_KEYWORD1=Bubble 7 | BUBBLE_CHART_KEYWORD2=Card 8 | BUBBLE_CHART_KEYWORD3=Analytical 9 | BUBBLE_CHART_KEYWORD4=Sample 10 | 11 | BUBBLE_CHART_CARDTITLE=Milk Stores - Revenue, Cost and Consumption 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /standard/content-package-template/content-package/package/artifacts/bubble-chart-card-sample/i18n/i18n_en_US.properties: -------------------------------------------------------------------------------- 1 | BUBBLE_CHART_TITLE=Bubble Chart Card 2 | BUBBLE_CHART_SUBTITLE=Bubble Chart Card 3 | BUBBLE_CHART_SHORTTITLE=Bubble Card 4 | BUBBLE_CHART_INFO=Bubble Chart Card Info 5 | BUBBLE_CHART_DESCRIPTION=Bubble Chart Card Description 6 | BUBBLE_CHART_KEYWORD1=Bubble 7 | BUBBLE_CHART_KEYWORD2=Card 8 | BUBBLE_CHART_KEYWORD3=Analytical 9 | BUBBLE_CHART_KEYWORD4=Sample 10 | 11 | BUBBLE_CHART_CARDTITLE=Milk Stores - Revenue, Cost and Consumption 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /standard/content-package-template/card-samples/analytical-card-samples/bubble-chart-card-sample/src/i18n/i18n.properties: -------------------------------------------------------------------------------- 1 | BUBBLE_CHART_TITLE=Bubble Chart Card 2 | BUBBLE_CHART_SUBTITLE=Bubble Chart Card 3 | BUBBLE_CHART_SHORTTITLE=Bubble Card 4 | BUBBLE_CHART_INFO=Bubble Chart Card Info 5 | BUBBLE_CHART_DESCRIPTION=Bubble Chart Card Description 6 | BUBBLE_CHART_KEYWORD1=Bubble 7 | BUBBLE_CHART_KEYWORD2=Card 8 | BUBBLE_CHART_KEYWORD3=Analytical 9 | BUBBLE_CHART_KEYWORD4=Sample 10 | 11 | BUBBLE_CHART_CARDTITLE=Milk Stores - Revenue, Cost and Consumption 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /standard/content-package-template/card-samples/analytical-card-samples/bubble-chart-card-sample/src/i18n/i18n_en.properties: -------------------------------------------------------------------------------- 1 | BUBBLE_CHART_TITLE=Bubble Chart Card 2 | BUBBLE_CHART_SUBTITLE=Bubble Chart Card 3 | BUBBLE_CHART_SHORTTITLE=Bubble Card 4 | BUBBLE_CHART_INFO=Bubble Chart Card Info 5 | BUBBLE_CHART_DESCRIPTION=Bubble Chart Card Description 6 | BUBBLE_CHART_KEYWORD1=Bubble 7 | BUBBLE_CHART_KEYWORD2=Card 8 | BUBBLE_CHART_KEYWORD3=Analytical 9 | BUBBLE_CHART_KEYWORD4=Sample 10 | 11 | BUBBLE_CHART_CARDTITLE=Milk Stores - Revenue, Cost and Consumption 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /standard/content-package-template/card-samples/analytical-card-samples/bubble-chart-card-sample/src/test/testpage.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /standard/content-package-template/card-samples/analytical-card-samples/donut-chart-card-sample/src/test/testpage.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /standard/content-package-template/card-samples/analytical-card-samples/line-chart-card-sample/src/test/testpage.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /standard/content-package-template/card-samples/list-card-samples/static-list-card-sample/src/i18n/i18n.properties: -------------------------------------------------------------------------------- 1 | STATIC_LIST_TITLE=Static List Card 2 | STATIC_LIST_SUBTITLE=Static List Card 3 | STATIC_LIST_SHORTTITLE=List Card 4 | STATIC_LIST_INFO=Static List Card Info 5 | STATIC_LIST_DESCRIPTION=Static List Card Description 6 | STATIC_LIST_KEYWORD1=List 7 | STATIC_LIST_KEYWORD2=Card 8 | STATIC_LIST_KEYWORD3=Static 9 | STATIC_LIST_KEYWORD4=Sample 10 | 11 | STATIC_LIST_CARDTITLE=List Card with Top 4 Products 12 | STATIC_LIST_CARDSUBTITLE=These are the top sellers this month 13 | -------------------------------------------------------------------------------- /standard/content-package-template/card-samples/list-card-samples/static-list-card-sample/src/i18n/i18n_en.properties: -------------------------------------------------------------------------------- 1 | STATIC_LIST_TITLE=Static List Card 2 | STATIC_LIST_SUBTITLE=Static List Card 3 | STATIC_LIST_SHORTTITLE=List Card 4 | STATIC_LIST_INFO=Static List Card Info 5 | STATIC_LIST_DESCRIPTION=Static List Card Description 6 | STATIC_LIST_KEYWORD1=List 7 | STATIC_LIST_KEYWORD2=Card 8 | STATIC_LIST_KEYWORD3=Static 9 | STATIC_LIST_KEYWORD4=Sample 10 | 11 | STATIC_LIST_CARDTITLE=List Card with Top 4 Products 12 | STATIC_LIST_CARDSUBTITLE=These are the top sellers this month 13 | -------------------------------------------------------------------------------- /standard/content-package-template/card-samples/object-card-samples/static-object-card-sample/src/i18n/i18n_en.properties: -------------------------------------------------------------------------------- 1 | STATIC_OBJECT_TITLE=Static Object Card 2 | STATIC_OBJECT_SUBTITLE=Static Object Card 3 | STATIC_OBJECT_SHORTTITLE=Object Card 4 | STATIC_OBJECT_INFO=Static Object Card Info 5 | STATIC_OBJECT_DESCRIPTION=Static Object Card Description 6 | STATIC_OBJECT_KEYWORD1=Object 7 | STATIC_OBJECT_KEYWORD2=Card 8 | STATIC_OBJECT_KEYWORD3=Contact 9 | STATIC_OBJECT_KEYWORD4=Sample 10 | 11 | STATIC_OBJECT_CARD_TITLE=ACME Consulting 12 | STATIC_OBJECT_CARD_SUBTITLE=Overdue Billing -------------------------------------------------------------------------------- /standard/content-package-template/content-package/package/artifacts/static-list-card-sample/i18n/i18n.properties: -------------------------------------------------------------------------------- 1 | STATIC_LIST_TITLE=Static List Card 2 | STATIC_LIST_SUBTITLE=Static List Card 3 | STATIC_LIST_SHORTTITLE=List Card 4 | STATIC_LIST_INFO=Static List Card Info 5 | STATIC_LIST_DESCRIPTION=Static List Card Description 6 | STATIC_LIST_KEYWORD1=List 7 | STATIC_LIST_KEYWORD2=Card 8 | STATIC_LIST_KEYWORD3=Static 9 | STATIC_LIST_KEYWORD4=Sample 10 | 11 | STATIC_LIST_CARDTITLE=List Card with Top 4 Products 12 | STATIC_LIST_CARDSUBTITLE=These are the top sellers this month 13 | -------------------------------------------------------------------------------- /standard/content-package-template/content-package/package/artifacts/static-list-card-sample/i18n/i18n_en.properties: -------------------------------------------------------------------------------- 1 | STATIC_LIST_TITLE=Static List Card 2 | STATIC_LIST_SUBTITLE=Static List Card 3 | STATIC_LIST_SHORTTITLE=List Card 4 | STATIC_LIST_INFO=Static List Card Info 5 | STATIC_LIST_DESCRIPTION=Static List Card Description 6 | STATIC_LIST_KEYWORD1=List 7 | STATIC_LIST_KEYWORD2=Card 8 | STATIC_LIST_KEYWORD3=Static 9 | STATIC_LIST_KEYWORD4=Sample 10 | 11 | STATIC_LIST_CARDTITLE=List Card with Top 4 Products 12 | STATIC_LIST_CARDSUBTITLE=These are the top sellers this month 13 | -------------------------------------------------------------------------------- /standard/content-package-template/card-samples/object-card-samples/static-object-card-sample/src/i18n/i18n.properties: -------------------------------------------------------------------------------- 1 | STATIC_OBJECT_TITLE=Static Object Card 2 | STATIC_OBJECT_SUBTITLE=Static Object Card 3 | STATIC_OBJECT_SHORTTITLE=Object Card 4 | STATIC_OBJECT_INFO=Static Object Card Info 5 | STATIC_OBJECT_DESCRIPTION=Static Object Card Description 6 | STATIC_OBJECT_KEYWORD1=Object 7 | STATIC_OBJECT_KEYWORD2=Card 8 | STATIC_OBJECT_KEYWORD3=Contact 9 | STATIC_OBJECT_KEYWORD4=Sample 10 | 11 | STATIC_OBJECT_CARD_TITLE=ACME Consulting 12 | STATIC_OBJECT_CARD_SUBTITLE=Overdue Billing 13 | -------------------------------------------------------------------------------- /standard/content-package-template/content-package/package/artifacts/static-list-card-sample/i18n/i18n_en_GB.properties: -------------------------------------------------------------------------------- 1 | STATIC_LIST_TITLE=Static List Card 2 | STATIC_LIST_SUBTITLE=Static List Card 3 | STATIC_LIST_SHORTTITLE=List Card 4 | STATIC_LIST_INFO=Static List Card Info 5 | STATIC_LIST_DESCRIPTION=Static List Card Description 6 | STATIC_LIST_KEYWORD1=List 7 | STATIC_LIST_KEYWORD2=Card 8 | STATIC_LIST_KEYWORD3=Static 9 | STATIC_LIST_KEYWORD4=Sample 10 | 11 | STATIC_LIST_CARDTITLE=List Card with Top 4 Products 12 | STATIC_LIST_CARDSUBTITLE=These are the top sellers this month 13 | -------------------------------------------------------------------------------- /standard/content-package-template/content-package/package/artifacts/static-list-card-sample/i18n/i18n_en_US.properties: -------------------------------------------------------------------------------- 1 | STATIC_LIST_TITLE=Static List Card 2 | STATIC_LIST_SUBTITLE=Static List Card 3 | STATIC_LIST_SHORTTITLE=List Card 4 | STATIC_LIST_INFO=Static List Card Info 5 | STATIC_LIST_DESCRIPTION=Static List Card Description 6 | STATIC_LIST_KEYWORD1=List 7 | STATIC_LIST_KEYWORD2=Card 8 | STATIC_LIST_KEYWORD3=Static 9 | STATIC_LIST_KEYWORD4=Sample 10 | 11 | STATIC_LIST_CARDTITLE=List Card with Top 4 Products 12 | STATIC_LIST_CARDSUBTITLE=These are the top sellers this month 13 | -------------------------------------------------------------------------------- /standard/content-package-template/content-package/package/artifacts/static-list-card-sample/i18n/i18n_de.properties: -------------------------------------------------------------------------------- 1 | STATIC_LIST_TITLE=Statische List Karte 2 | STATIC_LIST_SUBTITLE=Statische List Card 3 | STATIC_LIST_SHORTTITLE=List Karte 4 | STATIC_LIST_INFO=Static List Karten Info 5 | STATIC_LIST_DESCRIPTION=Static List Karte Beschreibung 6 | STATIC_LIST_KEYWORD1=List 7 | STATIC_LIST_KEYWORD2=Karte 8 | STATIC_LIST_KEYWORD3=Statisch 9 | STATIC_LIST_KEYWORD4=Sample 10 | 11 | STATIC_LIST_CARDTITLE=List Karte der 4 besten Produkte 12 | STATIC_LIST_CARDSUBTITLE=Die meist verkauften Produkte 13 | -------------------------------------------------------------------------------- /standard/content-package-template/card-samples/list-card-samples/static-list-card-sample/src/i18n/i18n_de.properties: -------------------------------------------------------------------------------- 1 | STATIC_LIST_TITLE=Statische List Karte 2 | STATIC_LIST_SUBTITLE=Statische List Card 3 | STATIC_LIST_SHORTTITLE=List Karte 4 | STATIC_LIST_INFO=Static List Karten Info 5 | STATIC_LIST_DESCRIPTION=Static List Karte Beschreibung 6 | STATIC_LIST_KEYWORD1=List 7 | STATIC_LIST_KEYWORD2=Karte 8 | STATIC_LIST_KEYWORD3=Statisch 9 | STATIC_LIST_KEYWORD4=Sample 10 | 11 | STATIC_LIST_CARDTITLE=List Karte der 4 besten Produkte 12 | STATIC_LIST_CARDSUBTITLE=Die meist verkauften Produkte 13 | -------------------------------------------------------------------------------- /standard/content-package-template/content-package/package/artifacts/static-list-card-sample/i18n/i18n_de_CH.properties: -------------------------------------------------------------------------------- 1 | STATIC_LIST_TITLE=Statische List Karte 2 | STATIC_LIST_SUBTITLE=Statische List Card 3 | STATIC_LIST_SHORTTITLE=List Karte 4 | STATIC_LIST_INFO=Static List Karten Info 5 | STATIC_LIST_DESCRIPTION=Static List Karte Beschreibung 6 | STATIC_LIST_KEYWORD1=List 7 | STATIC_LIST_KEYWORD2=Karte 8 | STATIC_LIST_KEYWORD3=Statisch 9 | STATIC_LIST_KEYWORD4=Sample 10 | 11 | STATIC_LIST_CARDTITLE=List Karte der 4 besten Produkte 12 | STATIC_LIST_CARDSUBTITLE=Die meist verkauften Produkte 13 | -------------------------------------------------------------------------------- /standard/content-package-template/content-package/package/artifacts/static-list-card-sample/i18n/i18n_de_DE.properties: -------------------------------------------------------------------------------- 1 | STATIC_LIST_TITLE=Statische List Karte 2 | STATIC_LIST_SUBTITLE=Statische List Card 3 | STATIC_LIST_SHORTTITLE=List Karte 4 | STATIC_LIST_INFO=Static List Karten Info 5 | STATIC_LIST_DESCRIPTION=Static List Karte Beschreibung 6 | STATIC_LIST_KEYWORD1=List 7 | STATIC_LIST_KEYWORD2=Karte 8 | STATIC_LIST_KEYWORD3=Statisch 9 | STATIC_LIST_KEYWORD4=Sample 10 | 11 | STATIC_LIST_CARDTITLE=List Karte der 4 besten Produkte 12 | STATIC_LIST_CARDSUBTITLE=Die meist verkauften Produkte 13 | -------------------------------------------------------------------------------- /standard/content-package-template/card-samples/analytical-card-samples/donut-chart-card-sample/src/i18n/i18n.properties: -------------------------------------------------------------------------------- 1 | DONUT_CHART_TITLE=Donut Chart Card 2 | DONUT_CHART_SUBTITLE=Donut Chart Card 3 | DONUT_CHART_SHORTTITLE=Donut Card 4 | DONUT_CHART_INFO=Donut Chart Card Info 5 | DONUT_CHART_DESCRIPTION=Donut Chart Card Description 6 | DONUT_CHART_KEYWORD1=Donut 7 | DONUT_CHART_KEYWORD2=Chart 8 | DONUT_CHART_KEYWORD3=Analytical 9 | DONUT_CHART_KEYWORD4=Sample 10 | 11 | DONUT_CHART_CARDTITLE=January Milk Revenue 12 | DONUT_CHART_STORENAME=Store Name 13 | DONUT_CHART_REVENUE=Revenue 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /standard/content-package-template/card-samples/analytical-card-samples/donut-chart-card-sample/src/i18n/i18n_en.properties: -------------------------------------------------------------------------------- 1 | DONUT_CHART_TITLE=Donut Chart Card 2 | DONUT_CHART_SUBTITLE=Donut Chart Card 3 | DONUT_CHART_SHORTTITLE=Donut Card 4 | DONUT_CHART_INFO=Donut Chart Card Info 5 | DONUT_CHART_DESCRIPTION=Donut Chart Card Description 6 | DONUT_CHART_KEYWORD1=Donut 7 | DONUT_CHART_KEYWORD2=Chart 8 | DONUT_CHART_KEYWORD3=Analytical 9 | DONUT_CHART_KEYWORD4=Sample 10 | 11 | DONUT_CHART_CARDTITLE=January Milk Revenue 12 | DONUT_CHART_STORENAME=Store Name 13 | DONUT_CHART_REVENUE=Revenue 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /standard/content-package-template/card-samples/object-card-samples/static-object-card-sample/src/i18n/i18n_de.properties: -------------------------------------------------------------------------------- 1 | DYNAMIC_OBJECT_TITLE=Statische Object Karte 2 | DYNAMIC_OBJECT_SUBTITLE=Statische Object Karte 3 | DYNAMIC_OBJECT_SHORTTITLE=Object Karte 4 | DYNAMIC_OBJECT_INFO=Statische Object Karte Info 5 | DYNAMIC_OBJECT_DESCRIPTION=Statische Object Karte Beschreibung 6 | DYNAMIC_OBJECT_KEYWORD1=Object 7 | DYNAMIC_OBJECT_KEYWORD2=Karte 8 | DYNAMIC_OBJECT_KEYWORD3=Mahnungen 9 | DYNAMIC_OBJECT_KEYWORD4=Beispiel 10 | 11 | STATIC_OBJECT_CARD_TITLE=ACME Consulting 12 | STATIC_OBJECT_CARD_SUBTITLE=Mahnungen -------------------------------------------------------------------------------- /standard/content-package-template/card-samples/analytical-card-samples/donut-chart-card-sample/src/i18n/i18n_de.properties: -------------------------------------------------------------------------------- 1 | DONUT_CHART_TITLE=Donut Chart Karte 2 | DONUT_CHART_SUBTITLE=Donut Chart Karte 3 | DONUT_CHART_SHORTTITLE=Donut Karte 4 | DONUT_CHART_INFO=Donut Chart Karte Info 5 | DONUT_CHART_DESCRIPTION=Donut Chart Karte Description 6 | DONUT_CHART_KEYWORD1=Donut 7 | DONUT_CHART_KEYWORD2=Karte 8 | DONUT_CHART_KEYWORD3=Analytical 9 | DONUT_CHART_KEYWORD4=Beispiel 10 | 11 | DONUT_CHART_CARDTITLE=Januar Gewinn von Milch 12 | DONUT_CHART_STORENAME=Geschäftsstelle 13 | DONUT_CHART_REVENUE=Gewinn 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /standard/html5-content-provider-sample/ManageProducts/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "mta-project", 3 | "version": "0.0.1", 4 | "description": "Build and deployment scripts", 5 | "scripts": { 6 | "clean": "rimraf resources mta_archives mta-op*", 7 | "build": "rimraf resources mta_archives && mbt build --mtar archive", 8 | "deploy": "cf deploy mta_archives/archive.mtar --retries 1", 9 | "undeploy": "cf undeploy manageproductscdm --delete-services --delete-service-keys --delete-service-brokers" 10 | }, 11 | "devDependencies": { 12 | "mbt": "^1.2.27", 13 | "rimraf": "^5.0.5" 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /standard/content-package-template/card-samples/list-card-samples/data-list-card-sample/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "my.company.ns.data.list.card", 3 | "version": "1.0.0", 4 | "description": "my.company.ns.data.list.card artifact that will be included into a content package", 5 | "scripts": { 6 | "start": "ui5 serve -o ./test/testpage.html", 7 | "build": "node scripts/build.js" 8 | }, 9 | "devDependencies": { 10 | "sap-workzone-cpkg-tools": "git+https://git@github.com/SAP-samples/build-workzone-integration.git", 11 | "express": "4.17.1" 12 | }, 13 | "author": "SAP SE", 14 | "license": "ISC" 15 | } 16 | -------------------------------------------------------------------------------- /standard/content-package-template/card-samples/object-card-samples/data-object-card-sample/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "my.company.ns.data.object.card", 3 | "version": "1.0.0", 4 | "description": "my.company.ns.data.object.card artifact that will be included into a content package", 5 | "scripts": { 6 | "start": "ui5 serve -o ./test/testpage.html", 7 | "build": "node scripts/build.js" 8 | }, 9 | "devDependencies": { 10 | "sap-workzone-cpkg-tools": "git+https://git@github.com/SAP-samples/build-workzone-integration.git", 11 | "express": "4.17.1" 12 | }, 13 | "author": "SAP SE", 14 | "license": "ISC" 15 | } 16 | -------------------------------------------------------------------------------- /advanced/wizard/sample-cards/wz-vaccination-confirm-card/README.md: -------------------------------------------------------------------------------- 1 | ## Work Zone Vaccination Confirmation Component Card 2 | 3 | - **Context Reading:** 4 | - Reads context from the Vaccination Card and displays it in a read-only mode. 5 | 6 | - **Confirmation Prompt:** 7 | - Prompts the user to confirm the Vaccination Information. 8 | 9 | - **Update Restrictions:** 10 | - Once confirmed, the user is restricted from updating the Vaccination Status further. 11 | 12 | 13 | ## Card Bundle 14 | - Card bundle is available [here](../bundle/wz-vaccination-confirm-card.zip) 15 | 16 | ![Card Preview](../images/wz-vaccination-confirm-card.png) -------------------------------------------------------------------------------- /standard/content-package-template/card-samples/analytical-card-samples/line-chart-card-sample/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "my.company.ns.line.chart.card", 3 | "version": "1.0.0", 4 | "description": "my.company.ns.line.chart.card artifact that will be included into a content package", 5 | "scripts": { 6 | "start": "ui5 serve -o ./test/testpage.html", 7 | "build": "node scripts/build.js" 8 | }, 9 | "devDependencies": { 10 | "sap-workzone-cpkg-tools": "git+https://git@github.com/SAP-samples/build-workzone-integration.git", 11 | "express": "4.17.1" 12 | }, 13 | "author": "SAP SE", 14 | "license": "ISC" 15 | } 16 | -------------------------------------------------------------------------------- /standard/content-package-template/card-samples/list-card-samples/static-list-card-sample/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "my.company.ns.static.list.card", 3 | "version": "1.0.0", 4 | "description": "my.company.ns.bubble.chart.card card artifact that will be included into a content package", 5 | "scripts": { 6 | "start": "ui5 serve -o ./test/testpage.html", 7 | "build": "node scripts/build.js" 8 | }, 9 | "devDependencies": { 10 | "sap-workzone-cpkg-tools": "git+https://git@github.com/SAP-samples/build-workzone-integration.git", 11 | "express": "4.17.1" 12 | }, 13 | "author": "SAP SE", 14 | "license": "ISC" 15 | } 16 | -------------------------------------------------------------------------------- /standard/content-package-template/card-samples/analytical-card-samples/donut-chart-card-sample/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "my.company.ns.donut.chart.card", 3 | "version": "1.0.0", 4 | "description": "my.company.ns.donut.chart.card card artifact that will be included into a content package", 5 | "scripts": { 6 | "start": "ui5 serve -o ./test/testpage.html", 7 | "build": "node scripts/build.js" 8 | }, 9 | "devDependencies": { 10 | "sap-workzone-cpkg-tools": "git+https://git@github.com/SAP-samples/build-workzone-integration.git", 11 | "express": "4.17.1" 12 | }, 13 | "author": "SAP SE", 14 | "license": "ISC" 15 | } 16 | -------------------------------------------------------------------------------- /standard/content-package-template/card-samples/object-card-samples/static-object-card-sample/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "my.company.ns.static.object.card", 3 | "version": "1.0.0", 4 | "description": "my.company.ns.static.object.card artifact that will be included into a content package", 5 | "scripts": { 6 | "start": "ui5 serve -o ./test/testpage.html", 7 | "build": "node scripts/build.js" 8 | }, 9 | "devDependencies": { 10 | "sap-workzone-cpkg-tools": "git+https://git@github.com/SAP-samples/build-workzone-integration.git", 11 | "express": "4.17.1" 12 | }, 13 | "author": "SAP SE", 14 | "license": "ISC" 15 | } 16 | -------------------------------------------------------------------------------- /standard/content-package-template/docs/cdm/schema/space-config.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-07/schema#", 3 | "title": "Space Configuration", 4 | "description": "Configuration of a space", 5 | "type": "object", 6 | "$comment": "FIXME list of attributes not yet finalized", 7 | "properties": { 8 | "title": { 9 | "description": "Represents the title of the Space", 10 | "type": "string", 11 | "default": "" 12 | }, 13 | "description": { 14 | "description": "Represents an additional description of the Space ", 15 | "type": "string", 16 | "default": "" 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /standard/content-package-template/cdm-samples/src/role1.json: -------------------------------------------------------------------------------- 1 | { 2 | "_version": "3.2.0", 3 | "identification": { 4 | "id": "my.company.ns.contentpackage.role1", 5 | "title": "{{ROLE_TITLE1}}", 6 | "entityType": "role" 7 | }, 8 | "payload": { 9 | "spaces": [ 10 | { 11 | "id": "my.company.ns.contentpackage.space1" 12 | } 13 | ], 14 | "apps": [ 15 | { 16 | "id": "my.company.ns.data.object.card.app" 17 | }, 18 | { 19 | "id": "my.company.ns.static.list.card.app" 20 | }, 21 | { 22 | "id": "my.company.ns.contentpackage.app1" 23 | } 24 | ] 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /standard/content-package-template/card-samples/analytical-card-samples/line-chart-card-sample/src/i18n/i18n.properties: -------------------------------------------------------------------------------- 1 | LINE_CHART_TITLE=Line Chart Card 2 | LINE_CHART_SUBTITLE=Line Chart Card 3 | LINE_CHART_SHORTTITLE=Line Card 4 | LINE_CHART_INFO=Line Chart Card Info 5 | LINE_CHART_DESCRIPTION=Line Chart Card Description 6 | LINE_CHART_KEYWORD1=Line 7 | LINE_CHART_KEYWORD2=Chart 8 | LINE_CHART_KEYWORD3=Analytical 9 | LINE_CHART_KEYWORD4=Sample 10 | 11 | LINE_CHART_CARDTITLE=Project Cloud Transformation 12 | LINE_CHART_CARDSUBTITLE=Revenue 13 | LINE_CHART_CARDTARGET=Target 14 | LINE_CHART_CARDDEVIATION=Deviation 15 | LINE_CHART_CHARTTITLE=Line Chart 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /standard/content-package-template/card-samples/analytical-card-samples/line-chart-card-sample/src/i18n/i18n_de.properties: -------------------------------------------------------------------------------- 1 | LINE_CHART_TITLE=Line Chart Karte 2 | LINE_CHART_SUBTITLE=Line Chart Karte 3 | LINE_CHART_SHORTTITLE=Line Karte 4 | LINE_CHART_INFO=Line Chart Karte Info 5 | LINE_CHART_DESCRIPTION=Line Chart Karte Description 6 | LINE_CHART_KEYWORD1=Line 7 | LINE_CHART_KEYWORD2=Karte 8 | LINE_CHART_KEYWORD3=Analytical 9 | LINE_CHART_KEYWORD4=Beispiel 10 | 11 | LINE_CHART_CARDTITLE=Projekt Cloud Transformation 12 | LINE_CHART_CARDSUBTITLE=Gewinn 13 | LINE_CHART_CARDTARGET=Ziel 14 | LINE_CHART_CARDDEVIATION=Abweichung 15 | LINE_CHART_CHARTTITLE=Line Chart 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /standard/content-package-template/card-samples/analytical-card-samples/bubble-chart-card-sample/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "my.company.ns.bubble.chart.card", 3 | "version": "1.0.0", 4 | "description": "my.company.ns.bubble.chart.card card artifact that will be included into a content package", 5 | "scripts": { 6 | "start": "ui5 serve -o ./test/testpage.html", 7 | "eslint": "eslint src", 8 | "build": "node scripts/build.js" 9 | }, 10 | "devDependencies": { 11 | "sap-workzone-cpkg-tools": "git+https://git@github.com/SAP-samples/build-workzone-integration.git", 12 | "express": "4.17.1" 13 | }, 14 | "author": "SAP SE", 15 | "license": "ISC" 16 | } 17 | -------------------------------------------------------------------------------- /standard/content-package-template/card-samples/analytical-card-samples/line-chart-card-sample/src/i18n/i18n_en.properties: -------------------------------------------------------------------------------- 1 | LINE_CHART_TITLE=Line Chart Card 2 | LINE_CHART_SUBTITLE=Line Chart Card 3 | LINE_CHART_SHORTTITLE=Line Card 4 | LINE_CHART_INFO=Line Chart Card Info 5 | LINE_CHART_DESCRIPTION=Line Chart Card Description 6 | LINE_CHART_KEYWORD1=Line 7 | LINE_CHART_KEYWORD2=Chart 8 | LINE_CHART_KEYWORD3=Analytical 9 | LINE_CHART_KEYWORD4=Sample 10 | 11 | LINE_CHART_CARDTITLE=Project Cloud Transformation 12 | LINE_CHART_CARDSUBTITLE=Revenue 13 | LINE_CHART_CARDTARGET=Target 14 | LINE_CHART_CARDDEVIATION=Deviation 15 | LINE_CHART_CHARTTITLE=Line Chart 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /advanced/content-package-template/homepage/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "sap-workzone-cpkg-homepage-sample", 3 | "version": "1.0.0", 4 | "description": "Sample project structure for a homepage artifact that will be included into a content package", 5 | "scripts": { 6 | "build": "node ./scripts/build.js" 7 | }, 8 | "repository": { 9 | "type": "git", 10 | "url": "https://github.com:SAP-samples/build-workzone-integration.git", 11 | "directory": "homepage" 12 | }, 13 | "devDependencies": { 14 | "sap-workzone-cpkg-tools": "git+https://git@github.com/SAP-samples/workzone-content-package-templates.git" 15 | }, 16 | "author": "SAP SE", 17 | "license": "ISC" 18 | } 19 | -------------------------------------------------------------------------------- /advanced/content-package-template/workflow/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "sap-workzone-cpkg-workflow-sample", 3 | "version": "1.0.0", 4 | "description": "Sample project structure for a workflow artifact that will be included into a content package", 5 | "scripts": { 6 | "build": "node scripts/build.js" 7 | }, 8 | "repository": { 9 | "type": "git", 10 | "url": "https://github.com:SAP-samples/build-workzone-integration.git", 11 | "directory": "workflow" 12 | }, 13 | "devDependencies": { 14 | "sap-workzone-cpkg-tools": "git+https://git@github.com/SAP-samples/workzone-content-package-templates.git" 15 | }, 16 | "author": "SAP SE", 17 | "license": "ISC" 18 | } 19 | -------------------------------------------------------------------------------- /standard/content-package-template/docs/cdm/schema/workpage-config.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-07/schema#", 3 | "title": "Work Page Configuration", 4 | "description": "Configuration of a work page", 5 | "type": "object", 6 | "$comment": "FIXME list of attributes not yet finalized", 7 | "required": ["title"], 8 | "properties": { 9 | "title": { 10 | "description": "Represents the title of the WorkPage", 11 | "type": "string", 12 | "default": "" 13 | }, 14 | "description": { 15 | "description": "Represents an additional description of the WorkPage ", 16 | "type": "string", 17 | "default": "" 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /standard/content-package-template/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "sap-workzone-cpkg-templates", 3 | "version": "1.0.0", 4 | "description": "Sample project structure for a cdm artifact that will be included into a content package", 5 | "repository": { 6 | "type": "git", 7 | "url": "https://github.com:SAP-samples/build-workzone-integration.git" 8 | }, 9 | "dependencies": { 10 | "glob": "8.0.3", 11 | "rimraf": "3.0.2", 12 | "fs-extra": "10.1.0", 13 | "properties-reader": ">=2.2.0", 14 | "handlebars": "4.7.7", 15 | "bestzip": "2.2.1", 16 | "@ui5/cli": "2.14.14", 17 | "jszip": "3.7.0" 18 | }, 19 | "author": "SAP SE", 20 | "license": "ISC" 21 | } 22 | -------------------------------------------------------------------------------- /standard/html5-content-provider-sample/README.md: -------------------------------------------------------------------------------- 1 | # Sample HTML5 Business Solution as Content Provider 2 | 3 | In order to enable any HTML5 business solution (could be a simple UI5 application or advanced CAP application with multiple Fiori applications) to be accessed in SAP Build Work Zone as Content Provider, the app must include the Work Zone content definition which must be provided as per Content Data Model (CDM) schema defined [here](https://help.sap.com/docs/build-work-zone-advanced-edition/sap-build-work-zone-advanced-edition/creating-cdm-json-file-for-multi-tenancy-html5-app). 4 | 5 | Here you can find the sample HTML5 business solution projects that contain cdm.json as reference examples. 6 | -------------------------------------------------------------------------------- /advanced/content-package-template/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "sap-workzone-cpkg-templates", 3 | "version": "1.0.0", 4 | "description": "Sample project structure for a workflow artifact that will be included into a content package", 5 | "repository": { 6 | "type": "git", 7 | "url": "https://github.com:SAP-samples/build-workzone-integration.git" 8 | }, 9 | "dependencies": { 10 | "glob": "8.0.3", 11 | "rimraf": "3.0.2", 12 | "fs-extra": "10.1.0", 13 | "properties-reader": ">=2.2.0", 14 | "handlebars": "4.7.7", 15 | "bestzip": "2.2.1", 16 | "@ui5/cli": "2.14.14", 17 | "jszip": "3.7.0" 18 | }, 19 | "author": "SAP SE", 20 | "license": "ISC" 21 | } 22 | -------------------------------------------------------------------------------- /advanced/content-package-template/workspace/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "sap-workzone-cpkg-workspace-sample", 3 | "version": "1.0.0", 4 | "description": "Sample project structure for a workspace artifact that will be included into a content package", 5 | "scripts": { 6 | "build": "node ./scripts/build.js" 7 | }, 8 | "repository": { 9 | "type": "git", 10 | "url": "https://github.com:SAP-samples/build-workzone-integration.git", 11 | "directory": "workspace" 12 | }, 13 | "devDependencies": { 14 | "sap-workzone-cpkg-tools": "git+https://git@github.com/SAP-samples/workzone-content-package-templates.git" 15 | }, 16 | "author": "SAP SE", 17 | "license": "ISC" 18 | } 19 | -------------------------------------------------------------------------------- /advanced/content-package-template/journey/workflow/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "sap-workzone-cpkg-journey-workflow-sample", 3 | "version": "1.0.0", 4 | "description": "Sample project structure for a workflow artifact that will be included into a content package", 5 | "scripts": { 6 | "build": "node scripts/build.js" 7 | }, 8 | "repository": { 9 | "type": "git", 10 | "url": "https://github.com:SAP-samples/build-workzone-integration.git", 11 | "directory": "workflow" 12 | }, 13 | "devDependencies": { 14 | "sap-workzone-cpkg-tools": "git+https://git@github.com/SAP-samples/workzone-content-package-templates.git" 15 | }, 16 | "author": "SAP SE", 17 | "license": "ISC" 18 | } 19 | -------------------------------------------------------------------------------- /standard/content-package-template/content-package/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "content-package-sap-start-sample", 3 | "version": "1.0.0", 4 | "scripts": { 5 | "build": "node scripts/build.js", 6 | "pull": "node scripts/pull.js", 7 | "build-local": "node scripts/pull.js && node scripts/build.js", 8 | "build-all": "node scripts/pull.js && node scripts/build.js", 9 | "validate": "node scripts/validate.js" 10 | }, 11 | "author": "SAP SE", 12 | "license": "ISC", 13 | "devDependencies": { 14 | "sap-workzone-cpkg-tools": "git+https://git@github.com/SAP-samples/build-workzone-integration.git" 15 | }, 16 | "dependencies": { 17 | "@ui5/cli": "^3.3.1" 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /advanced/content-package-template/workspace-template/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "sap-workzone-cpkg-workspace-template-sample", 3 | "version": "1.0.0", 4 | "description": "Sample project structure for a workspace-template artifact that will be included into a content package", 5 | "scripts": { 6 | "build": "node ./scripts/build.js" 7 | }, 8 | "repository": { 9 | "type": "git", 10 | "url": "https://github.com:SAP-samples/build-workzone-integration.git", 11 | "directory": "workspace-template" 12 | }, 13 | "devDependencies": { 14 | "sap-workzone-cpkg-tools": "git+https://git@github.com/SAP-samples/workzone-content-package-templates.git" 15 | }, 16 | "author": "SAP SE", 17 | "license": "ISC" 18 | } 19 | -------------------------------------------------------------------------------- /standard/content-package-template/cdm-samples/src/role2.json: -------------------------------------------------------------------------------- 1 | { 2 | "_version": "3.2.0", 3 | "identification": { 4 | "id": "my.company.ns.contentpackage.role2", 5 | "title": "{{ROLE_TITLE2}}", 6 | "entityType": "role" 7 | }, 8 | "payload": { 9 | "spaces": [ 10 | { 11 | "id": "my.company.ns.contentpackage.space1" 12 | } 13 | ], 14 | "apps": [ 15 | { 16 | "id": "my.company.ns.line.chart.card.app" 17 | }, 18 | { 19 | "id": "my.company.ns.donut.chart.card.app" 20 | }, 21 | { 22 | "id": "my.company.ns.static.object.card.app" 23 | }, 24 | { 25 | "id": "my.company.ns.data.list.card.app" 26 | } 27 | ] 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /standard/html5-content-provider-sample/ManageProducts/products/ui5-deploy.yaml: -------------------------------------------------------------------------------- 1 | # yaml-language-server: $schema=https://sap.github.io/ui5-tooling/schema/ui5.yaml.json 2 | specVersion: '2.4' 3 | metadata: 4 | name: products 5 | type: application 6 | resources: 7 | configuration: 8 | propertiesFileSourceEncoding: UTF-8 9 | builder: 10 | resources: 11 | excludes: 12 | - "/test/**" 13 | - "/localService/**" 14 | customTasks: 15 | - name: webide-extension-task-updateManifestJson 16 | afterTask: replaceVersion 17 | configuration: 18 | appFolder: webapp 19 | destDir: dist 20 | - name: ui5-task-zipper 21 | afterTask: generateCachebusterInfo 22 | configuration: 23 | archiveName: products 24 | additionalFiles: 25 | - xs-app.json 26 | -------------------------------------------------------------------------------- /standard/content-package-template/content-package/package/artifacts/static-list-card-sample/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "_version": "1.27.0", 3 | "_generator": "cpkg-project-template", 4 | "sap.artifact": { 5 | "id": "my.company.ns.static.list.card", 6 | "type": "card", 7 | "i18n": "i18n/i18n.properties", 8 | "title": "{{STATIC_LIST_TITLE}}", 9 | "subTitle": "{{STATIC_LIST_SUBTITLE}}", 10 | "shortTitle": "{{STATIC_LIST_SHORTTITLE}}", 11 | "info": "{{STATIC_LIST_INFO}}", 12 | "description": "{{STATIC_LIST_DESCRIPTION}}", 13 | "tags": { 14 | "keywords": [ 15 | "{{STATIC_LIST_KEYWORD1}}", 16 | "{{STATIC_LIST_KEYWORD2}}", 17 | "{{STATIC_LIST_KEYWORD4}}", 18 | "{{STATIC_LIST_KEYWORD4}}" 19 | ] 20 | }, 21 | "artifactVersion": { 22 | "version": "1.0.0" 23 | } 24 | } 25 | } -------------------------------------------------------------------------------- /advanced/content-package-template/journey/card/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "sap-workzone-cpkg-journey-card-sample", 3 | "version": "1.0.0", 4 | "description": "Sample project structure for a card artifact that will be included into a content package", 5 | "scripts": { 6 | "start": "ui5 serve -o test/manual/index.html", 7 | "eslint": "eslint src", 8 | "build": "node scripts/build.js" 9 | }, 10 | "repository": { 11 | "type": "git", 12 | "url": "https://github.com:SAP-samples/build-workzone-integration.git", 13 | "directory": "card" 14 | }, 15 | "devDependencies": { 16 | "sap-workzone-cpkg-tools": "git+https://git@github.com/SAP-samples/workzone-content-package-templates.git", 17 | "express": "4.18.2" 18 | }, 19 | "author": "SAP SE", 20 | "license": "ISC" 21 | } 22 | -------------------------------------------------------------------------------- /advanced/context-awareness/sample-cards/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "wz-context-card", 3 | "version": "1.0.0", 4 | "description": "", 5 | "scripts": { 6 | "start": "http-server . -p 8010", 7 | "clean": "rm -r dist", 8 | "build": "npm run build:all", 9 | "build:all": "npm run build:analytical && npm run build:brand && npm run build:region", 10 | "build:analytical": "cd analytical-card && mkdir -p ../dist && zip -r ../dist/analytical-card.zip bundle", 11 | "build:brand": "cd brand-list-card && mkdir -p ../dist && zip -r ../dist/brand-list-card.zip bundle", 12 | "build:region": "cd regions-list-card && mkdir -p ../dist && zip -r ../dist/regions-list-card.zip bundle" 13 | }, 14 | "author": "Ricky Jiao", 15 | "dependencies": { 16 | "http-server": "14.1.1" 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /standard/html5-content-provider-sample/ManageProducts/products/webapp/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | manageproducts 7 | 16 | 17 | 18 |
19 | 20 | -------------------------------------------------------------------------------- /standard/content-package-template/content-package/package/artifacts/bubble-chart-card-sample/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "_version": "1.27.0", 3 | "_generator": "cpkg-project-template", 4 | "sap.artifact": { 5 | "id": "my.company.ns.bubble.chart.card", 6 | "type": "card", 7 | "i18n": "i18n/i18n.properties", 8 | "title": "{{BUBBLE_CHART_TITLE}}", 9 | "subTitle": "{{BUBBLE_CHART_SUBTITLE}}", 10 | "shortTitle": "{{BUBBLE_CHART_SHORTTITLE}}", 11 | "info": "{{BUBBLE_CHART_INFO}}", 12 | "description": "{{BUBBLE_CHART_DESCRIPTION}}", 13 | "tags": { 14 | "keywords": [ 15 | "{{BUBBLE_CHART_KEYWORD1}}", 16 | "{{BUBBLE_CHART_KEYWORD2}}", 17 | "{{BUBBLE_CHART_KEYWORD4}}", 18 | "{{BUBBLE_CHART_KEYWORD4}}" 19 | ] 20 | }, 21 | "artifactVersion": { 22 | "version": "1.0.0" 23 | } 24 | } 25 | } -------------------------------------------------------------------------------- /standard/content-package-template/content-package/package/artifacts/data-object-card-sample/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "_version": "1.27.0", 3 | "_generator": "cpkg-project-template", 4 | "sap.artifact": { 5 | "id": "my.company.ns.data.object.card", 6 | "type": "card", 7 | "i18n": "i18n/i18n.properties", 8 | "title": "{{DYNAMIC_OBJECT_TITLE}}", 9 | "subTitle": "{{DYNAMIC_OBJECT_SUBTITLE}}", 10 | "shortTitle": "{{DYNAMIC_OBJECT_SHORTTITLE}}", 11 | "info": "{{DYNAMIC_OBJECT_INFO}}", 12 | "description": "{{DYNAMIC_OBJECT_DESCRIPTION}}", 13 | "tags": { 14 | "keywords": [ 15 | "{{DYNAMIC_OBJECT_KEYWORD1}}", 16 | "{{DYNAMIC_OBJECT_KEYWORD2}}", 17 | "{{DYNAMIC_OBJECT_KEYWORD4}}", 18 | "{{DYNAMIC_OBJECT_KEYWORD4}}" 19 | ] 20 | }, 21 | "artifactVersion": { 22 | "version": "1.0.0" 23 | } 24 | } 25 | } -------------------------------------------------------------------------------- /advanced/wizard/sample-cards/wz-vaccination-card/README.md: -------------------------------------------------------------------------------- 1 | ## Work Zone Vaccination Component Cards 2 | 3 | - **Vaccination Status Card:** 4 | - Collects and persists the user's Vaccination Status. 5 | 6 | - **Usage of Work Zone Wizard:** 7 | - Leverages the Work Zone Wizard to manage and persist the Vaccination Status. 8 | 9 | - **Inter-Card Context Reading:** 10 | - Checks whether the user has confirmed their Vaccination in the Vaccination Confirmation Card. This serves as an example of reading context from other cards. 11 | 12 | - **Update Restrictions:** 13 | - Once the Vaccination is confirmed, users are restricted from updating their Vaccination status further. 14 | 15 | ## Card Bundle 16 | - Card bundle is available [here](../bundle/wz-vaccination-card.zip) 17 | 18 | ![Card Preview](../images/wz-vaccination-card.png) -------------------------------------------------------------------------------- /advanced/README.md: -------------------------------------------------------------------------------- 1 | # SAP Build Work Zone Advanced Integration Samples 2 | 3 | This folder provides a structured starting point for developers of Work Zone Advanced product. 4 | 5 | ## Description 6 | 7 | The repository contains samples to demonstrate and document how to integrate and develop for SAP Build Work Zone Advanced. Explore the code samples for different feature areas: 8 | 9 | - **Guide Experience(Wizard):** 10 | [Explore Guide Experience](./wizard/README.md) code samples 11 | 12 | - **Built-in Workzone Card Context:** 13 | [Explore Built-in Workzone Card Context](./built-in-card-context/README.md) 14 | 15 | - **Context awareness:** 16 | [Explore Context awareness](./context-awareness/README.md) code samples 17 | 18 | - **Content Package Template:** 19 | [Advanced](./content-package-template/README.md) code samples 20 | -------------------------------------------------------------------------------- /advanced/content-package-template/card/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "sap-workzone-cpkg-card-sample", 3 | "version": "1.0.0", 4 | "description": "Sample project structure for a card artifact that will be included into a content package", 5 | "scripts": { 6 | "start": "ui5 serve -o test/manual/index.html", 7 | "eslint": "eslint src", 8 | "build": "node scripts/build.js" 9 | }, 10 | "repository": { 11 | "type": "git", 12 | "url": "https://github.com:SAP-samples/build-workzone-integration.git", 13 | "directory": "card" 14 | }, 15 | "devDependencies": { 16 | "sap-workzone-cpkg-tools": "git+https://git@github.com/SAP-samples/workzone-content-package-templates.git", 17 | "express": "4.18.2" 18 | }, 19 | "author": "SAP SE", 20 | "license": "ISC", 21 | "ui5": { 22 | "buildParams": "" 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /standard/content-package-template/tools/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@content/sap-workzone-cpkg-tools", 3 | "description": "Build tools to create content packages and their content artifacts", 4 | "version": "1.2.0", 5 | "repository": { 6 | "type": "git", 7 | "url": "https://github.com:SAP-samples/build-workzone-integration.git", 8 | "directory": "tools" 9 | }, 10 | "publishConfig": { 11 | "@content:registry": "https://common.repositories.cloud.sap/artifactory/api/npm/jam-npm/" 12 | }, 13 | "main": "index.js", 14 | "author": "SAP SE", 15 | "license": "ISC", 16 | "dependencies": { 17 | "@ui5/cli": "3.3.1", 18 | "bestzip": "2.2.1", 19 | "fs-extra": "10.1.0", 20 | "glob": "8.0.3", 21 | "handlebars": "4.7.7", 22 | "properties-reader": ">=2.2.0", 23 | "rimraf": "3.0.2", 24 | "jszip": "3.8.0" 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /advanced/content-package-template/content-package/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "sap-workzone-content-package-sample", 3 | "description": "Template for a content package", 4 | "version": "1.0.0", 5 | "scripts": { 6 | "build": "node scripts/build.js", 7 | "pull": "node scripts/pull.js", 8 | "build-all": "node scripts/pull.js && node scripts/build.js", 9 | "build-local": "node local/pull.js && node local/build.js", 10 | "validate": "node scripts/validate.js" 11 | }, 12 | "repository": { 13 | "type": "git", 14 | "url": "https://github.com:SAP-samples/build-workzone-integration.git", 15 | "directory": "content-package" 16 | }, 17 | "author": "SAP SE", 18 | "license": "ISC", 19 | "devDependencies": { 20 | "sap-workzone-cpkg-tools": "git+https://git@github.com/SAP-samples/workzone-content-package-templates.git" 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /standard/content-package-template/docs/cdm/schema/texts.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-07/schema#", 3 | "title": "texts", 4 | "type": "array", 5 | "description": "CDM Design Time - Entity Texts", 6 | "items": { 7 | "type": "object", 8 | "description": "Contains translation dictionary of a specific locale", 9 | "properties": { 10 | "locale": { 11 | "type": "string", 12 | "description": "The locale of the specific translated dictionary", 13 | "pattern": "^([a-z]{2})?([-_]([A-Z]){2})?([-_]([\\w])+)?$" 14 | }, 15 | "textDictionary": { 16 | "type": "object", 17 | "patternProperties": { 18 | "^[\\w\\W]*$": { 19 | "type": "string", 20 | "description": "The translated string value" 21 | } 22 | } 23 | } 24 | } 25 | }, 26 | "definitions": { 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /advanced/wizard/sample-cards/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "wz-wizard-card", 3 | "version": "1.0.0", 4 | "description": "", 5 | "scripts": { 6 | "start": "http-server . -p 8010", 7 | "clean": "rm -r dist", 8 | "build:all": "npm run build:favorite && npm run build:vaccination && npm run build:confirm && npm run build:todo", 9 | "build:favorite": "cd wz-favorite-card && mkdir -p ../dist && zip -r ../dist/wz-favorite-card.zip bundle", 10 | "build:vaccination": "cd wz-vaccination-card && mkdir -p ../dist && zip -r ../dist/wz-vaccination-card.zip bundle", 11 | "build:confirm": "cd wz-vaccination-confirm-card && mkdir -p ../dist && zip -r ../dist/wz-vaccination-confirm-card.zip bundle", 12 | "build:todo": "cd wz-todo-card && mkdir -p ../dist && zip -r ../dist/wz-todo-card.zip bundle" 13 | }, 14 | "author": "Ricky Jiao", 15 | "dependencies": { 16 | "http-server": "14.1.1" 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /standard/html5-content-provider-sample/ManageProducts/README.md: -------------------------------------------------------------------------------- 1 | # Simple Business Solution that can be accessed as Content Provider 2 | 3 | ## Developers should find here - 4 | 1. Simple UI5 application called manage products that shows a list of products from generic Northwind service. 5 | 2. Very basic cdm.json file in workzone folder that contains 1 Role, 1 Group, 1 Catalog and 1 App. 6 | 3. Build script entry in mta.yaml to copy the cdm.json from workzone folder to resources folder. 7 | 4. Sap.cloud.service defined in the UI app manifest that denotes the business solution. 8 | 5. CDM and RT destinations defined within mta.yaml which can be used as reference while create the destinations in the consumer sub-account. 9 | 10 | Refer the documentation [here](https://help.sap.com/docs/build-work-zone-advanced-edition/sap-build-work-zone-advanced-edition/developing-html5-apps-for-cross-subaccount-consumption) for details. 11 | -------------------------------------------------------------------------------- /standard/content-package-template/card-samples/object-card-samples/data-object-card-sample/src/data.json: -------------------------------------------------------------------------------- 1 | { 2 | "firstName": "Donna", 3 | "lastName": "Moore", 4 | "position": "Sales Executive", 5 | "phone": "+1 202 555 5555", 6 | "email": "my@mymail.com", 7 | "phoneTooltip": "Make a call", 8 | "emailTooltip": "Write an e-mail", 9 | "agendaTooltip": "Open a calendar", 10 | "photo": "./DonnaMoore.png", 11 | "agendaUrl": "/agenda", 12 | "manager": { 13 | "firstName": "Alain", 14 | "lastName": "Chevalier", 15 | "photo": "./AlainChevalier.png" 16 | }, 17 | "company": { 18 | "name": "Robert Brown Entertainment", 19 | "address": "481 West Street, Anytown OH 45066, USA", 20 | "email": "mail@mycompany.com", 21 | "emailTooltip": "Write an e-mail", 22 | "websiteTooltip": "Visit website", 23 | "emailSubject": "Subject", 24 | "website": "www.company_a.example.com", 25 | "url": "https://www.company_a.example.com" 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /advanced/context-awareness/sample-cards/README.md: -------------------------------------------------------------------------------- 1 | ### Getting Started 2 | 3 | 1. **Install Dependencies:** 4 | Run the following command to install the necessary packages: 5 | ```bash 6 | npm install 7 | ``` 8 | 9 | 2. **Start Card Preview:** 10 | To launch the card preview, use the following command: 11 | ```bash 12 | npm start 13 | ``` 14 | 15 | 3. **Generate Card Bundles:** 16 | To generate card bundles and store them in the `dist` folder, run: 17 | ```bash 18 | npm run build:all 19 | ``` 20 | 21 | ### Navigating Through Different Cards 22 | 23 | 1. After executing `npm start`, access `http://localhost:8010` to view the cards locally. 24 | 25 | 2. **Update Card Context:** 26 | - Select `Regions` or `Brands` from the Cards in left panel 27 | - Once the Card context is updated, the `Analytical Card` in right panel is automatically refreshed 28 | - Current context is shown on the top panel 29 | 30 | ![Card Preview](../images/card-preview-in-local.png) -------------------------------------------------------------------------------- /standard/content-package-template/tools/workflow/build.js: -------------------------------------------------------------------------------- 1 | module.exports.build = function (dir) { 2 | const path = require("path"), 3 | util = require("../util/util.js"), 4 | rimraf = require("rimraf"), 5 | fs = require("fs-extra"), 6 | root = path.join(dir, util.relativeDir(dir)), 7 | packagejson = util.json.fromFile(path.join(root, "package.json")), 8 | name = packagejson.name, 9 | dist = path.join(root, "dist"), 10 | src = path.join(root, "src"), 11 | out = path.join(root, name + ".zip"); 12 | 13 | 14 | util.log.fancy("Building Workflow Package..."); 15 | console.log(" - Clean files and folders"); 16 | 17 | rimraf.sync(dist); 18 | fs.removeSync(out); 19 | 20 | console.log(" - Create dist folder with sources"); 21 | fs.copySync(src, dist); 22 | util.i18n.process(path.join(dist, "manifest.json")); 23 | 24 | console.log(" - Zip content to " + name + ".zip"); 25 | util.zip.folder(out, dist); 26 | 27 | util.log.fancy("Building Workflow Package finished successful"); 28 | } -------------------------------------------------------------------------------- /standard/content-package-template/tools/workspace/build.js: -------------------------------------------------------------------------------- 1 | module.exports.build = function (dir) { 2 | var path = require("path"), 3 | util = require("../util/util.js"), 4 | rimraf = require("rimraf"), 5 | fs = require("fs-extra"), 6 | root = path.join(dir, util.relativeDir(dir)), 7 | packagejson = util.json.fromFile(path.join(root, "package.json")), 8 | name = packagejson.name, 9 | dist = path.join(root, "dist"), 10 | src = path.join(root, "src"), 11 | out = path.join(root, name + ".zip"); 12 | 13 | 14 | util.log.fancy("Building Workspace Package"); 15 | console.log(" - Clean files and folders"); 16 | 17 | rimraf.sync(dist); 18 | fs.removeSync(out); 19 | 20 | console.log(" - Create dist folder and content"); 21 | fs.copySync(src, dist); 22 | util.i18n.process(path.join(dist, "manifest.json")); 23 | 24 | console.log(" - Zip content to " + name + ".zip"); 25 | util.zip.folder(out, dist); 26 | 27 | util.log.fancy("Building Workspace Package finished successful"); 28 | } -------------------------------------------------------------------------------- /advanced/context-awareness/sample-cards/regions-list-card/bundle/View.view.xml: -------------------------------------------------------------------------------- 1 | 7 | 10 | 12 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /advanced/wizard/sample-cards/README.md: -------------------------------------------------------------------------------- 1 | ### Getting Started 2 | 3 | 1. **Install Dependencies:** 4 | Run the following command to install the necessary packages: 5 | ```bash 6 | npm install 7 | ``` 8 | 9 | 2. **Start Card Preview:** 10 | To launch the card preview, use the following command: 11 | ```bash 12 | npm start 13 | ``` 14 | 15 | 3. **Generate Card Bundles:** 16 | To generate card bundles and store them in the `dist` folder, run: 17 | ```bash 18 | npm run build:all 19 | ``` 20 | 21 | ### Navigating Through Different Cards 22 | 23 | 1. After executing `npm start`, access `http://localhost:8010` to view the cards locally. 24 | 25 | 2. **Switching Cards:** 26 | - Click on the top buttons to navigate and preview specific cards. 27 | 28 | 3. **Simulate Events:** 29 | - Click the **Submit** button to simulate the submit event of the Work Zone Wizard. 30 | - Click the **Clear** button to remove the Wizard Context. 31 | 32 | ![Card Preview](./images/home.png) -------------------------------------------------------------------------------- /advanced/context-awareness/sample-cards/brand-list-card/bundle/View.view.xml: -------------------------------------------------------------------------------- 1 | 7 | 10 | 12 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /standard/html5-content-provider-sample/ManageProducts/products/ui5.yaml: -------------------------------------------------------------------------------- 1 | # yaml-language-server: $schema=https://sap.github.io/ui5-tooling/schema/ui5.yaml.json 2 | 3 | specVersion: "3.1" 4 | metadata: 5 | name: products 6 | type: application 7 | server: 8 | customMiddleware: 9 | - name: fiori-tools-proxy 10 | afterMiddleware: compression 11 | configuration: 12 | ignoreCertError: false # If set to true, certificate errors will be ignored. E.g. self-signed certificates will be accepted 13 | ui5: 14 | path: 15 | - /resources 16 | - /test-resources 17 | url: https://ui5.sap.com 18 | - name: fiori-tools-appreload 19 | afterMiddleware: compression 20 | configuration: 21 | port: 35729 22 | path: webapp 23 | delay: 300 24 | - name: fiori-tools-preview 25 | afterMiddleware: fiori-tools-appreload 26 | configuration: 27 | component: products 28 | ui5Theme: sap_horizon 29 | -------------------------------------------------------------------------------- /standard/content-package-template/tools/homepage/build.js: -------------------------------------------------------------------------------- 1 | module.exports.build = function (dir) { 2 | var path = require("path"), 3 | util = require("../util/util.js"), 4 | rimraf = require("rimraf"), 5 | fs = require("fs-extra"), 6 | root = path.join(dir, util.relativeDir(dir)), 7 | packagejson = util.json.fromFile(path.join(root, "package.json")), 8 | name = packagejson.name, 9 | dist = path.join(root, "dist"), 10 | src = path.join(root, "src"), 11 | out = path.join(root, name + ".zip"); 12 | 13 | 14 | util.log.fancy("Building Home Page Package"); 15 | console.log(" - Clean files and folders"); 16 | 17 | rimraf.sync(dist); 18 | fs.removeSync(out); 19 | 20 | console.log(" - Create dist folder and content"); 21 | fs.copySync(src, dist); 22 | util.i18n.process(path.join(dist, "manifest.json")); 23 | 24 | console.log(" - Zip content to " + name + ".zip"); 25 | util.zip.folder(out, dist); 26 | 27 | util.log.fancy("Building Home Page Package finished successful"); 28 | } -------------------------------------------------------------------------------- /standard/content-package-template/tools/index.js: -------------------------------------------------------------------------------- 1 | const homepagebuild = require("./homepage/build.js"), 2 | contentpackagebuild = require("./content-package/build.js"), 3 | contentpackagepull = require("./content-package/pull.js"), 4 | contentpackagevalidate = require("./content-package/validate.js"), 5 | cardbuild = require("./card/build.js"), 6 | workspacebuild = require("./workspace/build.js"), 7 | workspacetemplatebuild = require("./workspace-template/build.js"), 8 | workflowbuild = require("./workflow/build.js"); 9 | 10 | module.exports = { 11 | "homepage": { 12 | build: homepagebuild.build 13 | }, 14 | "contentpackage": { 15 | build: contentpackagebuild.build, 16 | pull: contentpackagepull.pull, 17 | validate: contentpackagevalidate.validate 18 | }, 19 | "card": { 20 | build: cardbuild.build 21 | }, 22 | "workspace-template": { 23 | build: workspacetemplatebuild.build 24 | }, 25 | "workspace": { 26 | build: workspacebuild.build 27 | }, 28 | "workflow": { 29 | build: workflowbuild.build 30 | } 31 | } -------------------------------------------------------------------------------- /advanced/context-awareness/sample-cards/brand-list-card/bundle/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "sap.app": { 3 | "id": "sap.workzone.samples.context.brandCard", 4 | "type": "card", 5 | "title": "List Of Brands", 6 | "subTitle": "List Of Brands", 7 | "applicationVersion": { 8 | "version": "1.0.0" 9 | }, 10 | "shortTitle": "List Of Brands", 11 | "info": "List Of Brands", 12 | "description": "List Of Brands", 13 | "tags": { 14 | "keywords": ["Component", "Card", "Sample"] 15 | } 16 | }, 17 | "sap.ui": { 18 | "technology": "UI5", 19 | "icons": { 20 | "icon": "sap-icon://globe" 21 | } 22 | }, 23 | "sap.ui5": { 24 | "rootView": { 25 | "viewName": "sap.workzone.samples.context.brandCard.View", 26 | "type": "XML", 27 | "async": true, 28 | "id": "app" 29 | }, 30 | "dependencies": { 31 | "minUI5Version": "1.38", 32 | "libs": { 33 | "sap.m": {} 34 | } 35 | } 36 | }, 37 | "sap.card": { 38 | "type": "Component", 39 | "header": { 40 | "title": "List Of Brands" 41 | } 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /standard/content-package-template/docs/cdm/schema/viz.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-07/schema#", 3 | "title": "Visualization", 4 | "description": "Abstraction of controls for launching apps", 5 | "type": "object", 6 | "required": ["vizType", "vizConfig"], 7 | "additionalProperties": false, 8 | "properties": { 9 | "vizType": { 10 | "type": "string", 11 | "description": "Reference to a concrete visualization type", 12 | "example": [ 13 | "sap.ushell.StaticAppLauncher", 14 | "sap.ushell.DynamicAppLauncher", 15 | "sap.ushell.CustomAppLauncher", 16 | "sap.card" 17 | ] 18 | }, 19 | "vizConfig": { 20 | "$ref": "viz-config.json" 21 | }, 22 | "vizResources": { 23 | "type": "object", 24 | "additionalProperties": true, 25 | "properties": { 26 | "artifactId": { 27 | "type": "string", 28 | "description": "Reference to an artifact declared as content item in the manifest of the content package that contains this visualization" 29 | } 30 | } 31 | } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /standard/content-package-template/content-package/package/artifacts/data-object-card-sample/i18n/i18n.properties: -------------------------------------------------------------------------------- 1 | DYNAMIC_OBJECT_TITLE=Dynamic Object Card 2 | DYNAMIC_OBJECT_SUBTITLE=Dynamic Object Card 3 | DYNAMIC_OBJECT_SHORTTITLE=Object Card 4 | DYNAMIC_OBJECT_INFO=Dynamic Object Card Info 5 | DYNAMIC_OBJECT_DESCRIPTION=Dynamic Object Card Description 6 | DYNAMIC_OBJECT_KEYWORD1=Object 7 | DYNAMIC_OBJECT_KEYWORD2=Card 8 | DYNAMIC_OBJECT_KEYWORD3=Contact 9 | DYNAMIC_OBJECT_KEYWORD4=Sample 10 | 11 | DYNAMIC_OBJECT_CARD_CONTACT=Contact Details 12 | DYNAMIC_OBJECT_CARD_FIRSTNAME=First Name 13 | DYNAMIC_OBJECT_CARD_LASTNAME=Last Name 14 | DYNAMIC_OBJECT_CARD_PHONE=Phone 15 | DYNAMIC_OBJECT_CARD_MAIL=EMail 16 | DYNAMIC_OBJECT_CARD_AGENDA=Agenda 17 | DYNAMIC_OBJECT_CARD_COMPANYDETAILS=Company Details 18 | DYNAMIC_OBJECT_CARD_COMPANYNAME=Company Name 19 | DYNAMIC_OBJECT_CARD_COMPANYADDRESS=Adresse 20 | DYNAMIC_OBJECT_CARD_BOOK=Book a meeting 21 | DYNAMIC_OBJECT_CARD_COMPANYMAIL=EMail 22 | DYNAMIC_OBJECT_CARD_WEBPAGE=Webpage 23 | DYNAMIC_OBJECT_CARD_COMPANYORGDETAILS=Organization Details 24 | DYNAMIC_OBJECT_CARD_DIRECTMANAGER=Direct Manager 25 | 26 | 27 | -------------------------------------------------------------------------------- /standard/content-package-template/card-samples/object-card-samples/data-object-card-sample/src/i18n/i18n.properties: -------------------------------------------------------------------------------- 1 | DYNAMIC_OBJECT_TITLE=Dynamic Object Card 2 | DYNAMIC_OBJECT_SUBTITLE=Dynamic Object Card 3 | DYNAMIC_OBJECT_SHORTTITLE=Object Card 4 | DYNAMIC_OBJECT_INFO=Dynamic Object Card Info 5 | DYNAMIC_OBJECT_DESCRIPTION=Dynamic Object Card Description 6 | DYNAMIC_OBJECT_KEYWORD1=Object 7 | DYNAMIC_OBJECT_KEYWORD2=Card 8 | DYNAMIC_OBJECT_KEYWORD3=Contact 9 | DYNAMIC_OBJECT_KEYWORD4=Sample 10 | 11 | DYNAMIC_OBJECT_CARD_CONTACT=Contact Details 12 | DYNAMIC_OBJECT_CARD_FIRSTNAME=First Name 13 | DYNAMIC_OBJECT_CARD_LASTNAME=Last Name 14 | DYNAMIC_OBJECT_CARD_PHONE=Phone 15 | DYNAMIC_OBJECT_CARD_MAIL=EMail 16 | DYNAMIC_OBJECT_CARD_AGENDA=Agenda 17 | DYNAMIC_OBJECT_CARD_COMPANYDETAILS=Company Details 18 | DYNAMIC_OBJECT_CARD_COMPANYNAME=Company Name 19 | DYNAMIC_OBJECT_CARD_COMPANYADDRESS=Adresse 20 | DYNAMIC_OBJECT_CARD_BOOK=Book a meeting 21 | DYNAMIC_OBJECT_CARD_COMPANYMAIL=EMail 22 | DYNAMIC_OBJECT_CARD_WEBPAGE=Webpage 23 | DYNAMIC_OBJECT_CARD_COMPANYORGDETAILS=Organization Details 24 | DYNAMIC_OBJECT_CARD_DIRECTMANAGER=Direct Manager 25 | 26 | 27 | -------------------------------------------------------------------------------- /standard/content-package-template/content-package/package/artifacts/data-object-card-sample/i18n/i18n_en.properties: -------------------------------------------------------------------------------- 1 | DYNAMIC_OBJECT_TITLE=Dynamic Object Card 2 | DYNAMIC_OBJECT_SUBTITLE=Dynamic Object Card 3 | DYNAMIC_OBJECT_SHORTTITLE=Object Card 4 | DYNAMIC_OBJECT_INFO=Dynamic Object Card Info 5 | DYNAMIC_OBJECT_DESCRIPTION=Dynamic Object Card Description 6 | DYNAMIC_OBJECT_KEYWORD1=Object 7 | DYNAMIC_OBJECT_KEYWORD2=Card 8 | DYNAMIC_OBJECT_KEYWORD3=Contact 9 | DYNAMIC_OBJECT_KEYWORD4=Sample 10 | 11 | DYNAMIC_OBJECT_CARD_CONTACT=Contact Details 12 | DYNAMIC_OBJECT_CARD_FIRSTNAME=First Name 13 | DYNAMIC_OBJECT_CARD_LASTNAME=Last Name 14 | DYNAMIC_OBJECT_CARD_PHONE=Phone 15 | DYNAMIC_OBJECT_CARD_MAIL=EMail 16 | DYNAMIC_OBJECT_CARD_AGENDA=Agenda 17 | DYNAMIC_OBJECT_CARD_COMPANYDETAILS=Company Details 18 | DYNAMIC_OBJECT_CARD_COMPANYNAME=Company Name 19 | DYNAMIC_OBJECT_CARD_COMPANYADDRESS=Adresse 20 | DYNAMIC_OBJECT_CARD_BOOK=Book a meeting 21 | DYNAMIC_OBJECT_CARD_COMPANYMAIL=EMail 22 | DYNAMIC_OBJECT_CARD_WEBPAGE=Webpage 23 | DYNAMIC_OBJECT_CARD_COMPANYORGDETAILS=Organization Details 24 | DYNAMIC_OBJECT_CARD_DIRECTMANAGER=Direct Manager 25 | 26 | 27 | -------------------------------------------------------------------------------- /standard/content-package-template/card-samples/object-card-samples/data-object-card-sample/src/i18n/i18n_en.properties: -------------------------------------------------------------------------------- 1 | DYNAMIC_OBJECT_TITLE=Dynamic Object Card 2 | DYNAMIC_OBJECT_SUBTITLE=Dynamic Object Card 3 | DYNAMIC_OBJECT_SHORTTITLE=Object Card 4 | DYNAMIC_OBJECT_INFO=Dynamic Object Card Info 5 | DYNAMIC_OBJECT_DESCRIPTION=Dynamic Object Card Description 6 | DYNAMIC_OBJECT_KEYWORD1=Object 7 | DYNAMIC_OBJECT_KEYWORD2=Card 8 | DYNAMIC_OBJECT_KEYWORD3=Contact 9 | DYNAMIC_OBJECT_KEYWORD4=Sample 10 | 11 | DYNAMIC_OBJECT_CARD_CONTACT=Contact Details 12 | DYNAMIC_OBJECT_CARD_FIRSTNAME=First Name 13 | DYNAMIC_OBJECT_CARD_LASTNAME=Last Name 14 | DYNAMIC_OBJECT_CARD_PHONE=Phone 15 | DYNAMIC_OBJECT_CARD_MAIL=EMail 16 | DYNAMIC_OBJECT_CARD_AGENDA=Agenda 17 | DYNAMIC_OBJECT_CARD_COMPANYDETAILS=Company Details 18 | DYNAMIC_OBJECT_CARD_COMPANYNAME=Company Name 19 | DYNAMIC_OBJECT_CARD_COMPANYADDRESS=Adresse 20 | DYNAMIC_OBJECT_CARD_BOOK=Book a meeting 21 | DYNAMIC_OBJECT_CARD_COMPANYMAIL=EMail 22 | DYNAMIC_OBJECT_CARD_WEBPAGE=Webpage 23 | DYNAMIC_OBJECT_CARD_COMPANYORGDETAILS=Organization Details 24 | DYNAMIC_OBJECT_CARD_DIRECTMANAGER=Direct Manager 25 | 26 | 27 | -------------------------------------------------------------------------------- /standard/content-package-template/content-package/package/artifacts/data-object-card-sample/i18n/i18n_en_GB.properties: -------------------------------------------------------------------------------- 1 | DYNAMIC_OBJECT_TITLE=Dynamic Object Card 2 | DYNAMIC_OBJECT_SUBTITLE=Dynamic Object Card 3 | DYNAMIC_OBJECT_SHORTTITLE=Object Card 4 | DYNAMIC_OBJECT_INFO=Dynamic Object Card Info 5 | DYNAMIC_OBJECT_DESCRIPTION=Dynamic Object Card Description 6 | DYNAMIC_OBJECT_KEYWORD1=Object 7 | DYNAMIC_OBJECT_KEYWORD2=Card 8 | DYNAMIC_OBJECT_KEYWORD3=Contact 9 | DYNAMIC_OBJECT_KEYWORD4=Sample 10 | 11 | DYNAMIC_OBJECT_CARD_CONTACT=Contact Details 12 | DYNAMIC_OBJECT_CARD_FIRSTNAME=First Name 13 | DYNAMIC_OBJECT_CARD_LASTNAME=Last Name 14 | DYNAMIC_OBJECT_CARD_PHONE=Phone 15 | DYNAMIC_OBJECT_CARD_MAIL=EMail 16 | DYNAMIC_OBJECT_CARD_AGENDA=Agenda 17 | DYNAMIC_OBJECT_CARD_COMPANYDETAILS=Company Details 18 | DYNAMIC_OBJECT_CARD_COMPANYNAME=Company Name 19 | DYNAMIC_OBJECT_CARD_COMPANYADDRESS=Adresse 20 | DYNAMIC_OBJECT_CARD_BOOK=Book a meeting 21 | DYNAMIC_OBJECT_CARD_COMPANYMAIL=EMail 22 | DYNAMIC_OBJECT_CARD_WEBPAGE=Webpage 23 | DYNAMIC_OBJECT_CARD_COMPANYORGDETAILS=Organization Details 24 | DYNAMIC_OBJECT_CARD_DIRECTMANAGER=Direct Manager 25 | 26 | 27 | -------------------------------------------------------------------------------- /standard/content-package-template/content-package/package/artifacts/data-object-card-sample/i18n/i18n_en_US.properties: -------------------------------------------------------------------------------- 1 | DYNAMIC_OBJECT_TITLE=Dynamic Object Card 2 | DYNAMIC_OBJECT_SUBTITLE=Dynamic Object Card 3 | DYNAMIC_OBJECT_SHORTTITLE=Object Card 4 | DYNAMIC_OBJECT_INFO=Dynamic Object Card Info 5 | DYNAMIC_OBJECT_DESCRIPTION=Dynamic Object Card Description 6 | DYNAMIC_OBJECT_KEYWORD1=Object 7 | DYNAMIC_OBJECT_KEYWORD2=Card 8 | DYNAMIC_OBJECT_KEYWORD3=Contact 9 | DYNAMIC_OBJECT_KEYWORD4=Sample 10 | 11 | DYNAMIC_OBJECT_CARD_CONTACT=Contact Details 12 | DYNAMIC_OBJECT_CARD_FIRSTNAME=First Name 13 | DYNAMIC_OBJECT_CARD_LASTNAME=Last Name 14 | DYNAMIC_OBJECT_CARD_PHONE=Phone 15 | DYNAMIC_OBJECT_CARD_MAIL=EMail 16 | DYNAMIC_OBJECT_CARD_AGENDA=Agenda 17 | DYNAMIC_OBJECT_CARD_COMPANYDETAILS=Company Details 18 | DYNAMIC_OBJECT_CARD_COMPANYNAME=Company Name 19 | DYNAMIC_OBJECT_CARD_COMPANYADDRESS=Adresse 20 | DYNAMIC_OBJECT_CARD_BOOK=Book a meeting 21 | DYNAMIC_OBJECT_CARD_COMPANYMAIL=EMail 22 | DYNAMIC_OBJECT_CARD_WEBPAGE=Webpage 23 | DYNAMIC_OBJECT_CARD_COMPANYORGDETAILS=Organization Details 24 | DYNAMIC_OBJECT_CARD_DIRECTMANAGER=Direct Manager 25 | 26 | 27 | -------------------------------------------------------------------------------- /standard/html5-content-provider-sample/ManageProducts/products/webapp/model/formatter.js: -------------------------------------------------------------------------------- 1 | sap.ui.define([ 2 | "sap/ui/core/library" 3 | ] , function (coreLibrary) { 4 | "use strict"; 5 | 6 | // shortcut for sap.ui.core.ValueState 7 | var ValueState = coreLibrary.ValueState; 8 | 9 | return { 10 | 11 | /** 12 | * Rounds the number unit value to 2 digits 13 | * @public 14 | * @param {string} sValue the number string to be rounded 15 | * @returns {string} sValue with 2 digits rounded 16 | */ 17 | numberUnit : function (sValue) { 18 | if (!sValue) { 19 | return ""; 20 | } 21 | return parseFloat(sValue).toFixed(2); 22 | }, 23 | 24 | /** 25 | * Defines a value state based on the stock level 26 | * 27 | * @public 28 | * @param {number} iValue the stock level of a product 29 | * @returns {string} sValue the state for the stock level 30 | */ 31 | quantityState: function(iValue) { 32 | if (iValue === 0) { 33 | return ValueState.Error; 34 | } else if (iValue <= 10) { 35 | return ValueState.Warning; 36 | } else { 37 | return ValueState.Success; 38 | } 39 | } 40 | 41 | }; 42 | 43 | }); -------------------------------------------------------------------------------- /advanced/content-package-template/card/src/ext/extension.js: -------------------------------------------------------------------------------- 1 | sap.ui.define(["sap/ui/integration/Extension"], function (Extension) { 2 | "use strict"; 3 | 4 | //this extension is not used in the template. 5 | //please delete this file if it is not needed. 6 | //to enable the usage of an extenstion, add a extension entry in the manifest "sap.card": { "extension": "ext/extension", ...} 7 | 8 | var CardExtension = Extension.extend("sap.workzone.cpkg.card.sample.ext.extension"); 9 | 10 | CardExtension.prototype.init = function () { 11 | Extension.prototype.init.apply(this, arguments); 12 | //set custom action 13 | this.setActions([{ 14 | type: "Navigation", 15 | parameters: { 16 | url: "https://training.sap.com/" 17 | }, 18 | icon: "sap-icon://learning-assistant", 19 | target: "_blank", 20 | text: "External Link" 21 | }]); 22 | 23 | //set custom formatters 24 | this.setFormatters({ 25 | toUpperCase: function (sName) { 26 | return sName.toUpperCase(); 27 | } 28 | }); 29 | }; 30 | 31 | // should return a promise 32 | CardExtension.prototype.getData = function () { 33 | 34 | }; 35 | 36 | return CardExtension; 37 | }); -------------------------------------------------------------------------------- /advanced/context-awareness/sample-cards/regions-list-card/bundle/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "_version": "1.15.0", 3 | "sap.app": { 4 | "id": "sap.workzone.samples.context.regionCard", 5 | "type": "card", 6 | "title": "List Of Regions", 7 | "subTitle": "List Of Regions", 8 | "applicationVersion": { 9 | "version": "1.0.0" 10 | }, 11 | "shortTitle": "List Of Regions", 12 | "info": "List Of Regions", 13 | "description": "List Of Regions", 14 | "tags": { 15 | "keywords": ["Component", "Card", "Sample"] 16 | } 17 | }, 18 | "sap.ui": { 19 | "technology": "UI5", 20 | "icons": { 21 | "icon": "sap-icon://globe" 22 | } 23 | }, 24 | "sap.ui5": { 25 | "rootView": { 26 | "viewName": "sap.workzone.samples.context.regionCard.View", 27 | "type": "XML", 28 | "async": true, 29 | "id": "app" 30 | }, 31 | "dependencies": { 32 | "minUI5Version": "1.38", 33 | "libs": { 34 | "sap.m": {} 35 | } 36 | } 37 | }, 38 | "sap.card": { 39 | "type": "Component", 40 | "header": { 41 | "title": "List Of Regions" 42 | } 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /advanced/content-package-template/content-package/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "sap.package": { 3 | "id": "sap.workzone.content.package.sample", 4 | "packageVersion": { 5 | "version": "1.0.0", 6 | "upgradeNotification": "all" 7 | }, 8 | "i18n": "i18n/i18n.properties", 9 | "icon": "sap-icon://accept", 10 | "title": "{{PACKAGE_TITLE}}", 11 | "subTitle": "{{PACKAGE_SUBTITLE}}", 12 | "shortTitle": "{{PACKAGE_SHORTTITLE}}", 13 | "info": "{{PACKAGE_INFO}}", 14 | "description": "{{PACKAGE_DESCRIPTION}}", 15 | "tags": { 16 | "keywords": [ 17 | "{{PACKAGE_KEYWORD1}}", 18 | "{{PACKAGE_KEYWORD2}}" 19 | ] 20 | }, 21 | "products": "", 22 | "categories": "", 23 | "scope": "external", 24 | "license": { 25 | "text": "", 26 | "url": "" 27 | }, 28 | "homepage": { 29 | "text": "", 30 | "url": "https://sap.com" 31 | }, 32 | "support": { 33 | "url": "https://support.sap.com" 34 | }, 35 | "contents": [ 36 | "__BUILD__" 37 | ], 38 | "documentation": { 39 | "url": "" 40 | }, 41 | "consumption": [], 42 | "dependencies": { 43 | "products": [], 44 | "services": [] 45 | }, 46 | "destinations": [] 47 | } 48 | } -------------------------------------------------------------------------------- /advanced/content-package-template/journey/card/src/ext/extension.js: -------------------------------------------------------------------------------- 1 | sap.ui.define(["sap/ui/integration/Extension"], function (Extension) { 2 | "use strict"; 3 | 4 | //this extension is not used in the template. 5 | //please delete this file if it is not needed. 6 | //to enable the usage of an extenstion, add a extension entry in the manifest "sap.card": { "extension": "ext/extension", ...} 7 | 8 | var CardExtension = Extension.extend("sap.workzone.cpkg.card.sample.ext.extension"); 9 | 10 | CardExtension.prototype.init = function () { 11 | Extension.prototype.init.apply(this, arguments); 12 | //set custom action 13 | this.setActions([{ 14 | type: "Navigation", 15 | parameters: { 16 | url: "https://training.sap.com/" 17 | }, 18 | icon: "sap-icon://learning-assistant", 19 | target: "_blank", 20 | text: "External Link" 21 | }]); 22 | 23 | //set custom formatters 24 | this.setFormatters({ 25 | toUpperCase: function (sName) { 26 | return sName.toUpperCase(); 27 | } 28 | }); 29 | }; 30 | 31 | // should return a promise 32 | CardExtension.prototype.getData = function () { 33 | 34 | }; 35 | 36 | return CardExtension; 37 | }); -------------------------------------------------------------------------------- /standard/content-package-template/content-package/package/artifacts/data-object-card-sample/i18n/i18n_de.properties: -------------------------------------------------------------------------------- 1 | DYNAMIC_OBJECT_TITLE=Dynamische Object Karte 2 | DYNAMIC_OBJECT_SUBTITLE=Dynamische Object Karte 3 | DYNAMIC_OBJECT_SHORTTITLE=Object Karte 4 | DYNAMIC_OBJECT_INFO=Dynamische Object Karte Info 5 | DYNAMIC_OBJECT_DESCRIPTION=Dynamische Object Karte Beschreibung 6 | DYNAMIC_OBJECT_KEYWORD1=Object 7 | DYNAMIC_OBJECT_KEYWORD2=Karte 8 | DYNAMIC_OBJECT_KEYWORD3=Kontakt 9 | DYNAMIC_OBJECT_KEYWORD4=Beispiel 10 | 11 | DYNAMIC_OBJECT_CARD_CONTACT=Kontakt Details 12 | DYNAMIC_OBJECT_CARD_FIRSTNAME=Vorname 13 | DYNAMIC_OBJECT_CARD_LASTNAME=Nachname 14 | DYNAMIC_OBJECT_CARD_PHONE=Telefon 15 | DYNAMIC_OBJECT_CARD_MAIL=EMail 16 | DYNAMIC_OBJECT_CARD_AGENDA=Agenda 17 | DYNAMIC_OBJECT_CARD_COMPANYDETAILS=Firmen Details 18 | DYNAMIC_OBJECT_CARD_COMPANYNAME=Firmenname 19 | DYNAMIC_OBJECT_CARD_BOOK=Termin vereinbaren 20 | DYNAMIC_OBJECT_CARD_COMPANYADDRESS=Adresse 21 | DYNAMIC_OBJECT_CARD_COMPANYMAIL=EMail 22 | DYNAMIC_OBJECT_CARD_WEBPAGE=Webpage 23 | DYNAMIC_OBJECT_CARD_COMPANYORGDETAILS=Details der Organisation 24 | DYNAMIC_OBJECT_CARD_DIRECTMANAGER=Direkter Vorgesetzter 25 | 26 | 27 | -------------------------------------------------------------------------------- /standard/content-package-template/card-samples/object-card-samples/data-object-card-sample/src/i18n/i18n_de.properties: -------------------------------------------------------------------------------- 1 | DYNAMIC_OBJECT_TITLE=Dynamische Object Karte 2 | DYNAMIC_OBJECT_SUBTITLE=Dynamische Object Karte 3 | DYNAMIC_OBJECT_SHORTTITLE=Object Karte 4 | DYNAMIC_OBJECT_INFO=Dynamische Object Karte Info 5 | DYNAMIC_OBJECT_DESCRIPTION=Dynamische Object Karte Beschreibung 6 | DYNAMIC_OBJECT_KEYWORD1=Object 7 | DYNAMIC_OBJECT_KEYWORD2=Karte 8 | DYNAMIC_OBJECT_KEYWORD3=Kontakt 9 | DYNAMIC_OBJECT_KEYWORD4=Beispiel 10 | 11 | DYNAMIC_OBJECT_CARD_CONTACT=Kontakt Details 12 | DYNAMIC_OBJECT_CARD_FIRSTNAME=Vorname 13 | DYNAMIC_OBJECT_CARD_LASTNAME=Nachname 14 | DYNAMIC_OBJECT_CARD_PHONE=Telefon 15 | DYNAMIC_OBJECT_CARD_MAIL=EMail 16 | DYNAMIC_OBJECT_CARD_AGENDA=Agenda 17 | DYNAMIC_OBJECT_CARD_COMPANYDETAILS=Firmen Details 18 | DYNAMIC_OBJECT_CARD_COMPANYNAME=Firmenname 19 | DYNAMIC_OBJECT_CARD_BOOK=Termin vereinbaren 20 | DYNAMIC_OBJECT_CARD_COMPANYADDRESS=Adresse 21 | DYNAMIC_OBJECT_CARD_COMPANYMAIL=EMail 22 | DYNAMIC_OBJECT_CARD_WEBPAGE=Webpage 23 | DYNAMIC_OBJECT_CARD_COMPANYORGDETAILS=Details der Organisation 24 | DYNAMIC_OBJECT_CARD_DIRECTMANAGER=Direkter Vorgesetzter 25 | 26 | 27 | -------------------------------------------------------------------------------- /standard/content-package-template/content-package/package/artifacts/data-object-card-sample/i18n/i18n_de_CH.properties: -------------------------------------------------------------------------------- 1 | DYNAMIC_OBJECT_TITLE=Dynamische Object Karte 2 | DYNAMIC_OBJECT_SUBTITLE=Dynamische Object Karte 3 | DYNAMIC_OBJECT_SHORTTITLE=Object Karte 4 | DYNAMIC_OBJECT_INFO=Dynamische Object Karte Info 5 | DYNAMIC_OBJECT_DESCRIPTION=Dynamische Object Karte Beschreibung 6 | DYNAMIC_OBJECT_KEYWORD1=Object 7 | DYNAMIC_OBJECT_KEYWORD2=Karte 8 | DYNAMIC_OBJECT_KEYWORD3=Kontakt 9 | DYNAMIC_OBJECT_KEYWORD4=Beispiel 10 | 11 | DYNAMIC_OBJECT_CARD_CONTACT=Kontakt Details 12 | DYNAMIC_OBJECT_CARD_FIRSTNAME=Vorname 13 | DYNAMIC_OBJECT_CARD_LASTNAME=Nachname 14 | DYNAMIC_OBJECT_CARD_PHONE=Telefon 15 | DYNAMIC_OBJECT_CARD_MAIL=EMail 16 | DYNAMIC_OBJECT_CARD_AGENDA=Agenda 17 | DYNAMIC_OBJECT_CARD_COMPANYDETAILS=Firmen Details 18 | DYNAMIC_OBJECT_CARD_COMPANYNAME=Firmenname 19 | DYNAMIC_OBJECT_CARD_BOOK=Termin vereinbaren 20 | DYNAMIC_OBJECT_CARD_COMPANYADDRESS=Adresse 21 | DYNAMIC_OBJECT_CARD_COMPANYMAIL=EMail 22 | DYNAMIC_OBJECT_CARD_WEBPAGE=Webpage 23 | DYNAMIC_OBJECT_CARD_COMPANYORGDETAILS=Details der Organisation 24 | DYNAMIC_OBJECT_CARD_DIRECTMANAGER=Direkter Vorgesetzter 25 | 26 | 27 | -------------------------------------------------------------------------------- /standard/content-package-template/content-package/package/artifacts/data-object-card-sample/i18n/i18n_de_DE.properties: -------------------------------------------------------------------------------- 1 | DYNAMIC_OBJECT_TITLE=Dynamische Object Karte 2 | DYNAMIC_OBJECT_SUBTITLE=Dynamische Object Karte 3 | DYNAMIC_OBJECT_SHORTTITLE=Object Karte 4 | DYNAMIC_OBJECT_INFO=Dynamische Object Karte Info 5 | DYNAMIC_OBJECT_DESCRIPTION=Dynamische Object Karte Beschreibung 6 | DYNAMIC_OBJECT_KEYWORD1=Object 7 | DYNAMIC_OBJECT_KEYWORD2=Karte 8 | DYNAMIC_OBJECT_KEYWORD3=Kontakt 9 | DYNAMIC_OBJECT_KEYWORD4=Beispiel 10 | 11 | DYNAMIC_OBJECT_CARD_CONTACT=Kontakt Details 12 | DYNAMIC_OBJECT_CARD_FIRSTNAME=Vorname 13 | DYNAMIC_OBJECT_CARD_LASTNAME=Nachname 14 | DYNAMIC_OBJECT_CARD_PHONE=Telefon 15 | DYNAMIC_OBJECT_CARD_MAIL=EMail 16 | DYNAMIC_OBJECT_CARD_AGENDA=Agenda 17 | DYNAMIC_OBJECT_CARD_COMPANYDETAILS=Firmen Details 18 | DYNAMIC_OBJECT_CARD_COMPANYNAME=Firmenname 19 | DYNAMIC_OBJECT_CARD_BOOK=Termin vereinbaren 20 | DYNAMIC_OBJECT_CARD_COMPANYADDRESS=Adresse 21 | DYNAMIC_OBJECT_CARD_COMPANYMAIL=EMail 22 | DYNAMIC_OBJECT_CARD_WEBPAGE=Webpage 23 | DYNAMIC_OBJECT_CARD_COMPANYORGDETAILS=Details der Organisation 24 | DYNAMIC_OBJECT_CARD_DIRECTMANAGER=Direkter Vorgesetzter 25 | 26 | 27 | -------------------------------------------------------------------------------- /standard/html5-content-provider-sample/ManageProducts/products/webapp/controller/App.controller.js: -------------------------------------------------------------------------------- 1 | sap.ui.define([ 2 | "./BaseController", 3 | "sap/ui/model/json/JSONModel" 4 | ], function (BaseController, JSONModel) { 5 | "use strict"; 6 | 7 | return BaseController.extend("products.controller.App", { 8 | 9 | onInit : function () { 10 | var oViewModel, 11 | fnSetAppNotBusy, 12 | iOriginalBusyDelay = this.getView().getBusyIndicatorDelay(); 13 | 14 | oViewModel = new JSONModel({ 15 | busy : true, 16 | delay : 0 17 | }); 18 | this.setModel(oViewModel, "appView"); 19 | 20 | fnSetAppNotBusy = function() { 21 | oViewModel.setProperty("/busy", false); 22 | oViewModel.setProperty("/delay", iOriginalBusyDelay); 23 | }; 24 | 25 | // disable busy indication when the metadata is loaded and in case of errors 26 | this.getOwnerComponent().getModel().metadataLoaded(). 27 | then(fnSetAppNotBusy); 28 | this.getOwnerComponent().getModel().attachMetadataFailed(fnSetAppNotBusy); 29 | 30 | // apply content density mode to root view 31 | this.getView().addStyleClass(this.getOwnerComponent().getContentDensityClass()); 32 | } 33 | 34 | }); 35 | 36 | }); -------------------------------------------------------------------------------- /standard/html5-content-provider-sample/ManageProducts/products/ui5-local.yaml: -------------------------------------------------------------------------------- 1 | # yaml-language-server: $schema=https://sap.github.io/ui5-tooling/schema/ui5.yaml.json 2 | 3 | specVersion: "3.1" 4 | metadata: 5 | name: products 6 | type: application 7 | framework: 8 | name: SAPUI5 9 | version: 1.124.0 10 | libraries: 11 | - name: sap.m 12 | - name: sap.ui.core 13 | - name: sap.f 14 | - name: sap.suite.ui.generic.template 15 | - name: sap.ui.comp 16 | - name: sap.ui.generic.app 17 | - name: sap.ui.table 18 | - name: sap.ushell 19 | - name: themelib_sap_horizon 20 | server: 21 | customMiddleware: 22 | - name: fiori-tools-appreload 23 | afterMiddleware: compression 24 | configuration: 25 | port: 35729 26 | path: webapp 27 | delay: 300 28 | - name: fiori-tools-proxy 29 | afterMiddleware: compression 30 | configuration: 31 | ignoreCertError: false # If set to true, certificate errors will be ignored. E.g. self-signed certificates will be accepted 32 | - name: fiori-tools-preview 33 | afterMiddleware: fiori-tools-appreload 34 | configuration: 35 | component: products 36 | ui5Theme: sap_horizon 37 | -------------------------------------------------------------------------------- /advanced/content-package-template/card/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "globals": { 3 | "sap": true, 4 | "jQuery": true, 5 | "FLP": true 6 | }, 7 | "rules": { 8 | "no-console": 1, 9 | "no-debugger": 2, 10 | "no-dupe-args": 2, 11 | "no-unreachable": 2, 12 | "valid-typeof": 2, 13 | "eqeqeq": 2, 14 | "curly": 2, 15 | "no-alert": 2, 16 | "no-redeclare": 2, 17 | "no-script-url": 2, 18 | "strict": [0, "global"], 19 | "no-unused-vars": [ 20 | 2, 21 | { 22 | "exceptions": "all", 23 | "argsIgnorePattern": "^next" 24 | } 25 | ], 26 | "global-require": 1, 27 | "no-duplicate-imports": 1, 28 | "semi": [2, "always"], 29 | "no-multiple-empty-lines": [ 30 | 2, 31 | { 32 | "max": 2 33 | } 34 | ], 35 | "space-infix-ops": 2, 36 | "keyword-spacing": [ 37 | 2, 38 | { 39 | "before": true, 40 | "after": true 41 | } 42 | ], 43 | "key-spacing": [ 44 | 2, 45 | { 46 | "afterColon": true 47 | } 48 | ] 49 | }, 50 | "env": { 51 | "node": true, 52 | "es6": true 53 | }, 54 | "parserOptions": { 55 | "ecmaVersion": 2018 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /advanced/content-package-template/journey/card/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "globals": { 3 | "sap": true, 4 | "jQuery": true, 5 | "FLP": true 6 | }, 7 | "rules": { 8 | "no-console": 1, 9 | "no-debugger": 2, 10 | "no-dupe-args": 2, 11 | "no-unreachable": 2, 12 | "valid-typeof": 2, 13 | "eqeqeq": 2, 14 | "curly": 2, 15 | "no-alert": 2, 16 | "no-redeclare": 2, 17 | "no-script-url": 2, 18 | "strict": [0, "global"], 19 | "no-unused-vars": [ 20 | 2, 21 | { 22 | "exceptions": "all", 23 | "argsIgnorePattern": "^next" 24 | } 25 | ], 26 | "global-require": 1, 27 | "no-duplicate-imports": 1, 28 | "semi": [2, "always"], 29 | "no-multiple-empty-lines": [ 30 | 2, 31 | { 32 | "max": 2 33 | } 34 | ], 35 | "space-infix-ops": 2, 36 | "keyword-spacing": [ 37 | 2, 38 | { 39 | "before": true, 40 | "after": true 41 | } 42 | ], 43 | "key-spacing": [ 44 | 2, 45 | { 46 | "afterColon": true 47 | } 48 | ] 49 | }, 50 | "env": { 51 | "node": true, 52 | "es6": true 53 | }, 54 | "parserOptions": { 55 | "ecmaVersion": 2018 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /standard/content-package-template/card-samples/analytical-card-samples/bubble-chart-card-sample/src/data.json: -------------------------------------------------------------------------------- 1 | { 2 | "milk": [ 3 | { 4 | "Store Name": "24-Seven", 5 | "Revenue": 428214.13, 6 | "Cost": 94383.52, 7 | "Consumption": 76855.15368 8 | }, 9 | { 10 | "Store Name": "A&A", 11 | "Revenue": 1722148.36, 12 | "Cost": 274735.17, 13 | "Consumption": 310292.22 14 | }, 15 | { 16 | "Store Name": "Alexei's Specialities", 17 | "Revenue": 1331176.706884, 18 | "Cost": 233160.58, 19 | "Consumption": 143432.18 20 | }, 21 | { 22 | "Store Name": "24-Seven", 23 | "Revenue": 1878466.82, 24 | "Cost": 235072.19, 25 | "Consumption": 487910.26 26 | }, 27 | { 28 | "Store Name": "Choices Franchise 3", 29 | "Revenue": 2090030.97, 30 | "Cost": 397952.77, 31 | "Consumption": 304964.8856125 32 | }, 33 | { 34 | "Store Name": "Choices Franchise 6", 35 | "Revenue": 1932991.59, 36 | "Cost": 343427.25, 37 | "Consumption": 291191.83 38 | }, 39 | { 40 | "Store Name": "Dairy World", 41 | "Revenue": 752565.16, 42 | "Cost": 115844.26, 43 | "Consumption": 98268.9597904 44 | } 45 | ] 46 | } 47 | -------------------------------------------------------------------------------- /standard/html5-content-provider-sample/ManageProducts/products/README.md: -------------------------------------------------------------------------------- 1 | ## Application Details 2 | | | 3 | | ------------- | 4 | |**Generation Date and Time**
Mon May 27 2024 07:32:56 GMT+0000 (Coordinated Universal Time)| 5 | |**App Generator**
@sap/generator-fiori-freestyle| 6 | |**App Generator Version**
1.13.5| 7 | |**Generation Platform**
SAP Business Application Studio| 8 | |**Template Used**
simple| 9 | |**Service Type**
None| 10 | |**Service URL**
N/A 11 | |**Module Name**
products| 12 | |**Application Title**
Products| 13 | |**Namespace**
| 14 | |**UI5 Theme**
sap_horizon| 15 | |**UI5 Version**
1.124.0| 16 | |**Enable Code Assist Libraries**
False| 17 | |**Enable TypeScript**
False| 18 | |**Add Eslint configuration**
False| 19 | 20 | ## products 21 | 22 | An SAP Fiori application. 23 | 24 | ### Starting the generated app 25 | 26 | - This app has been generated using the SAP Fiori tools - App Generator, as part of the SAP Fiori tools suite. In order to launch the generated app, simply run the following from the generated app root folder: 27 | 28 | ``` 29 | npm start 30 | ``` 31 | 32 | #### Pre-requisites: 33 | 34 | 1. Active NodeJS LTS (Long Term Support) version and associated supported NPM version. (See https://nodejs.org) 35 | 36 | 37 | -------------------------------------------------------------------------------- /advanced/content-package-template/card/src/configuration/configuration.js: -------------------------------------------------------------------------------- 1 | sap.ui.define(["sap/ui/integration/Designtime" 2 | ], function (Designtime) { 3 | "use strict"; 4 | 5 | var Configuration = Designtime.extend("sap.workzone.cpkg.card.sample.Configuration"); 6 | Configuration.prototype.create = function () { 7 | return { 8 | form: { 9 | items: { 10 | "string": { 11 | "manifestpath": "/sap.card/configuration/parameters/string/value", 12 | "defaultValue": "StringValue", 13 | "label": "Fixed Label Text", 14 | "type": "string" 15 | }, 16 | "boolean": { 17 | "manifestpath": "/sap.card/configuration/parameters/boolean/value", 18 | "defaultValue": true, 19 | "label": "Fixed Label Text", 20 | "type": "boolean" 21 | }, 22 | "integer": { 23 | "manifestpath": "/sap.card/configuration/parameters/integer/value", 24 | "defaultValue": 1, 25 | "label": "Fixed Label Text", 26 | "type": "integer" 27 | }, 28 | "date": { 29 | "manifestpath": "/sap.card/configuration/parameters/date/value", 30 | "defaultValue": "", 31 | "label": "Fixed Label Text", 32 | "type": "date" 33 | } 34 | } 35 | }, 36 | preview: { 37 | modes: "Abstract" 38 | } 39 | }; 40 | }; 41 | return Configuration; 42 | }); 43 | 44 | 45 | -------------------------------------------------------------------------------- /advanced/content-package-template/journey/card/src/configuration/configuration.js: -------------------------------------------------------------------------------- 1 | sap.ui.define(["sap/ui/integration/Designtime" 2 | ], function (Designtime) { 3 | "use strict"; 4 | 5 | var Configuration = Designtime.extend("sap.workzone.cpkg.card.sample.Configuration"); 6 | Configuration.prototype.create = function () { 7 | return { 8 | form: { 9 | items: { 10 | "string": { 11 | "manifestpath": "/sap.card/configuration/parameters/string/value", 12 | "defaultValue": "StringValue", 13 | "label": "Fixed Label Text", 14 | "type": "string" 15 | }, 16 | "boolean": { 17 | "manifestpath": "/sap.card/configuration/parameters/boolean/value", 18 | "defaultValue": true, 19 | "label": "Fixed Label Text", 20 | "type": "boolean" 21 | }, 22 | "integer": { 23 | "manifestpath": "/sap.card/configuration/parameters/integer/value", 24 | "defaultValue": 1, 25 | "label": "Fixed Label Text", 26 | "type": "integer" 27 | }, 28 | "date": { 29 | "manifestpath": "/sap.card/configuration/parameters/date/value", 30 | "defaultValue": "", 31 | "label": "Fixed Label Text", 32 | "type": "date" 33 | } 34 | } 35 | }, 36 | preview: { 37 | modes: "Abstract" 38 | } 39 | }; 40 | }; 41 | return Configuration; 42 | }); 43 | 44 | 45 | -------------------------------------------------------------------------------- /standard/content-package-template/content-package/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "sap.package": { 3 | "id": "my.comp.ns.cpkg", 4 | "__id": "my.company.ns.contentpackage.sample", 5 | "packageVersion": { 6 | "version": "1.0.0", 7 | "upgradeNotification": "all" 8 | }, 9 | "i18n": "i18n/i18n.properties", 10 | "icon": "sap-icon://accept", 11 | "title": "{{PACKAGE_TITLE}}", 12 | "subTitle": "{{PACKAGE_SUBTITLE}}", 13 | "shortTitle": "{{PACKAGE_SHORTTITLE}}", 14 | "info": "{{PACKAGE_INFO}}", 15 | "description": "{{PACKAGE_DESCRIPTION}}", 16 | "tags": { 17 | "keywords": [ 18 | "{{PACKAGE_KEYWORD1}}", 19 | "{{PACKAGE_KEYWORD2}}" 20 | ] 21 | }, 22 | "products": "", 23 | "vendor": { 24 | "id": "", 25 | "name": "YourCompany", 26 | "url": "www.yourcompany.com" 27 | }, 28 | "categories": "", 29 | "scope": "external", 30 | "license": { 31 | "text": "", 32 | "url": "" 33 | }, 34 | "homepage": { 35 | "text": "", 36 | "url": "https://sap.com" 37 | }, 38 | "support": { 39 | "url": "https://support.sap.com" 40 | }, 41 | "contents": [ 42 | "__BUILD__" 43 | ], 44 | "documentation": { 45 | "url": "" 46 | }, 47 | "consumption": [], 48 | "dependencies": { 49 | "products": [], 50 | "services": [] 51 | }, 52 | "destinations": [] 53 | } 54 | } -------------------------------------------------------------------------------- /advanced/content-package-template/card/.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | 8 | # Runtime data 9 | pids 10 | *.pid 11 | *.seed 12 | *.pid.lock 13 | 14 | # Directory for instrumented libs generated by jscoverage/JSCover 15 | lib-cov 16 | 17 | # Coverage directory used by tools like istanbul 18 | coverage 19 | 20 | # nyc test coverage 21 | .nyc_output 22 | 23 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) 24 | .grunt 25 | 26 | # Bower dependency directory (https://bower.io/) 27 | bower_components 28 | 29 | # node-waf configuration 30 | .lock-wscript 31 | 32 | # Compiled binary addons (http://nodejs.org/api/addons.html) 33 | build/Release 34 | 35 | # Dependency directories 36 | node_modules/ 37 | jspm_packages/ 38 | 39 | # Typescript v1 declaration files 40 | typings/ 41 | 42 | # Optional npm cache directory 43 | .npm 44 | 45 | # Optional eslint cache 46 | .eslintcache 47 | 48 | # Optional REPL history 49 | .node_repl_history 50 | 51 | # Output of 'npm pack' 52 | *.tgz 53 | *.zip 54 | 55 | # Yarn Integrity file 56 | .yarn-integrity 57 | 58 | # dotenv environment variables file 59 | .env 60 | 61 | dist/ 62 | 63 | # Don't use package-lock.json to always have the latest dependencies 64 | package-lock.json 65 | 66 | # vsocde project folder 67 | .vscode 68 | 69 | .DS_Store 70 | -------------------------------------------------------------------------------- /advanced/wizard/sample-cards/wz-vaccination-card/bundle/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "_version": "1.17.0", 3 | "sap.app": { 4 | "id": "sap.workzone.samples.vaccination", 5 | "type": "card", 6 | "title": "{{TITLE}}", 7 | "i18n": "i18n/i18n.properties", 8 | "author": "Ricky Jiao", 9 | "applicationVersion": { 10 | "version": "1.0.0" 11 | }, 12 | "info": "{{DESCRIPTION}}", 13 | "description": "{{DESCRIPTION}}" 14 | }, 15 | "sap.ui": { 16 | "technology": "UI5", 17 | "icons": { 18 | "icon": "sap-icon://technical-object" 19 | } 20 | }, 21 | "sap.ui5": { 22 | "dependencies": { 23 | "minUI5Version": "1.67.0", 24 | "libs": { 25 | "sap.ui.core": {}, 26 | "sap.m": {} 27 | } 28 | }, 29 | "rootView": { 30 | "viewName": "sap.workzone.samples.vaccination.view.Widget", 31 | "type": "XML", 32 | "async": true, 33 | "id": "app" 34 | } 35 | }, 36 | "sap.card": { 37 | "configuration": { 38 | "parameters": { 39 | "host.context": { 40 | "value": {}, 41 | "type": "object", 42 | "visible": false 43 | } 44 | } 45 | }, 46 | "type": "component", 47 | "header": { 48 | "title": "Submit Vaccination Status", 49 | "icon": { 50 | "src": "/img/app_icon.png" 51 | } 52 | } 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /standard/html5-content-provider-sample/ManageProducts/products/xs-app.json: -------------------------------------------------------------------------------- 1 | 2 | { 3 | "welcomeFile": "/index.html", 4 | "authenticationMethod": "route", 5 | "logout": { 6 | "logoutEndpoint": "/my/logout", 7 | "logoutPage": "/logout-page.html" 8 | }, 9 | "routes": [ 10 | { 11 | "source": "^/northwind/(.*)$", 12 | "target": "$1", 13 | "destination": "northwind", 14 | "authenticationType": "none", 15 | "csrfProtection": false 16 | }, 17 | { 18 | "source": "^/logout-page.html$", 19 | "service": "html5-apps-repo-rt", 20 | "authenticationType": "none" 21 | }, 22 | { 23 | "source": "^/resources/(.*)$", 24 | "target": "/resources/$1", 25 | "authenticationType": "none", 26 | "destination": "ui5" 27 | }, 28 | { 29 | "source": "^/test-resources/(.*)$", 30 | "target": "/test-resources/$1", 31 | "authenticationType": "none", 32 | "destination": "ui5" 33 | }, 34 | { 35 | "source": "^/user-api(.*)", 36 | "service": "sap-approuter-userapi" 37 | }, 38 | { 39 | "source": "^/index.html$", 40 | "service": "html5-apps-repo-rt", 41 | "cacheControl": "no-cache, no-store, must-revalidate" 42 | }, 43 | { 44 | "source": "^(.*)$", 45 | "target": "$1", 46 | "service": "html5-apps-repo-rt" 47 | } 48 | ] 49 | } -------------------------------------------------------------------------------- /advanced/content-package-template/journey/card/.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | 8 | # Runtime data 9 | pids 10 | *.pid 11 | *.seed 12 | *.pid.lock 13 | 14 | # Directory for instrumented libs generated by jscoverage/JSCover 15 | lib-cov 16 | 17 | # Coverage directory used by tools like istanbul 18 | coverage 19 | 20 | # nyc test coverage 21 | .nyc_output 22 | 23 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) 24 | .grunt 25 | 26 | # Bower dependency directory (https://bower.io/) 27 | bower_components 28 | 29 | # node-waf configuration 30 | .lock-wscript 31 | 32 | # Compiled binary addons (http://nodejs.org/api/addons.html) 33 | build/Release 34 | 35 | # Dependency directories 36 | node_modules/ 37 | jspm_packages/ 38 | 39 | # Typescript v1 declaration files 40 | typings/ 41 | 42 | # Optional npm cache directory 43 | .npm 44 | 45 | # Optional eslint cache 46 | .eslintcache 47 | 48 | # Optional REPL history 49 | .node_repl_history 50 | 51 | # Output of 'npm pack' 52 | *.tgz 53 | *.zip 54 | 55 | # Yarn Integrity file 56 | .yarn-integrity 57 | 58 | # dotenv environment variables file 59 | .env 60 | 61 | dist/ 62 | 63 | # Don't use package-lock.json to always have the latest dependencies 64 | package-lock.json 65 | 66 | # vsocde project folder 67 | .vscode 68 | 69 | .DS_Store 70 | -------------------------------------------------------------------------------- /advanced/wizard/sample-cards/wz-vaccination-confirm-card/bundle/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "_version": "1.17.0", 3 | "sap.app": { 4 | "id": "sap.workzone.samples.component.vaccinationStatus", 5 | "type": "card", 6 | "title": "{{TITLE}}", 7 | "i18n": "i18n/i18n.properties", 8 | "author": "Ricky Jiao", 9 | "applicationVersion": { 10 | "version": "1.0.0" 11 | }, 12 | "info": "{{DESCRIPTION}}", 13 | "description": "{{DESCRIPTION}}" 14 | }, 15 | "sap.ui": { 16 | "technology": "UI5", 17 | "icons": { 18 | "icon": "sap-icon://survey" 19 | } 20 | }, 21 | "sap.ui5": { 22 | "dependencies": { 23 | "minUI5Version": "1.67.0", 24 | "libs": { 25 | "sap.ui.core": {}, 26 | "sap.m": {} 27 | } 28 | }, 29 | "rootView": { 30 | "viewName": "sap.workzone.samples.component.vaccinationStatus.view.Widget", 31 | "type": "XML", 32 | "async": true, 33 | "id": "app" 34 | } 35 | }, 36 | "sap.card": { 37 | "configuration": { 38 | "parameters": { 39 | "host.context": { 40 | "value": {}, 41 | "type": "object", 42 | "visible": false 43 | } 44 | } 45 | }, 46 | "type": "component", 47 | "header": { 48 | "title": "Confirm Vaccination Status", 49 | "icon": { 50 | "src": "sap-icon://survey" 51 | } 52 | } 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /advanced/wizard/sample-cards/wz-todo-card/bundle/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "_version": "1.17.0", 3 | "sap.app": { 4 | "id": "sap.workzone.samples.todo", 5 | "type": "card", 6 | "title": "Workzone todo cards", 7 | "i18n": "i18n/i18n.properties", 8 | "author": "Ricky Jiao", 9 | "applicationVersion": { 10 | "version": "1.0.0" 11 | }, 12 | "info": "{{DESCRIPTION}}", 13 | "description": "{{DESCRIPTION}}" 14 | }, 15 | "sap.ui": { 16 | "technology": "UI5", 17 | "icons": { 18 | "icon": "sap-icon://technical-object" 19 | } 20 | }, 21 | "sap.ui5": { 22 | "dependencies": { 23 | "minUI5Version": "1.67.0", 24 | "libs": { 25 | "sap.ui.core": {}, 26 | "sap.m": {} 27 | } 28 | }, 29 | "rootView": { 30 | "viewName": "sap.workzone.samples.todo.view.Widget", 31 | "type": "XML", 32 | "async": true, 33 | "id": "app" 34 | }, 35 | "resources": { 36 | "css": [ 37 | { 38 | "uri": "css/styles.css" 39 | } 40 | ] 41 | } 42 | }, 43 | "sap.card": { 44 | "configuration": { 45 | "parameters": { 46 | "host.context": { 47 | "value": {}, 48 | "type": "object", 49 | "visible": false 50 | } 51 | } 52 | }, 53 | "type": "component", 54 | "header": { 55 | "title": "Todos", 56 | "icon": { 57 | "src": "/img/app_icon.png" 58 | } 59 | } 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /standard/content-package-template/docs/cdm/schema/identification.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-07/schema#", 3 | "title": "identification", 4 | "type": "object", 5 | "description": "CDM Identification defines identifiers and other meta attributes which are common for all entities", 6 | "required": [ 7 | "id", 8 | "entityType" 9 | ], 10 | "properties": { 11 | "title": { 12 | "description": "Title of the entity", 13 | "$ref": "commons.json#/definitions/i18nKey" 14 | }, 15 | "description": { 16 | "description": "Description of the entity", 17 | "$ref": "commons.json#/definitions/i18nKey" 18 | }, 19 | "entityType": { 20 | "description": "Type (enumeration) of the entity", 21 | "type": "string", 22 | "enum": [ 23 | "group", 24 | "catalog", 25 | "role", 26 | "businessapp", 27 | "urltemplate", 28 | "viztype", 29 | "page", 30 | "space", 31 | "workpage" 32 | ] 33 | }, 34 | "id": { 35 | "description": "ID of the entity, needs to be unique per type in content package", 36 | "$ref": "commons.json#/definitions/id" 37 | }, 38 | "providerId": { 39 | "description": "The parent content provider of the entity", 40 | "type": "string", 41 | "maxLength": 128, 42 | "pattern": "^[\\w-:@+~.#\\/]+$" 43 | }, 44 | "i18n": { 45 | "type": "string" 46 | }, 47 | "softComponent": { 48 | "type": "string" 49 | } 50 | }, 51 | "definitions": { 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /standard/content-package-template/card-samples/list-card-samples/data-list-card-sample/src/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "_version": "1.14.0", 3 | "sap.app": { 4 | "id": "my.company.ns.data.list.card", 5 | "type": "card", 6 | "i18n": "i18n/i18n.properties", 7 | "title": "{{DYNAMIC_LIST_TITLE}}", 8 | "subTitle": "{{DYNAMIC_LIST_SUBTITLE}}", 9 | "applicationVersion": { 10 | "version": "1.0.0" 11 | }, 12 | "shortTitle": "{{DYNAMIC_LIST_SHORTTITLE}}", 13 | "info": "{{DYNAMIC_LIST_INFO}}", 14 | "description": "{{DYNAMIC_LIST_DESCRIPTION}}", 15 | "tags": { 16 | "keywords": [ 17 | "{{DYNAMIC_LIST_KEYWORD1}}", 18 | "{{DYNAMIC_LIST_KEYWORD2}}", 19 | "{{DYNAMIC_LIST_KEYWORD4}}", 20 | "{{DYNAMIC_LIST_KEYWORD4}}" 21 | ] 22 | } 23 | }, 24 | "sap.card": { 25 | "type": "List", 26 | "header": { 27 | "title": "{{DYNAMIC_LIST_CARDTITLE}}", 28 | "subTitle": "{{DYNAMIC_LIST_CARDSUBTITLE}}", 29 | "icon": { 30 | "src": "sap-icon://product" 31 | } 32 | }, 33 | "content": { 34 | "data": { 35 | "request": { 36 | "url": "https://services.odata.org/V4/Northwind/Northwind.svc/Products", 37 | "parameters": { 38 | "$format": "json" 39 | } 40 | }, 41 | "path": "/value" 42 | }, 43 | "item": { 44 | "title": "{ProductName}", 45 | "description": "{UnitsInStock} units in stock", 46 | "highlight": "{= ${Discontinued} ? 'Error' : 'Success'}" 47 | }, 48 | "maxItems": 5 49 | } 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /advanced/wizard/sample-cards/wz-vaccination-confirm-card/bundle/view/Widget.view.xml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 11 | 12 | 13 | <Label text="{flow>/caseInstanceId}"></Label> 14 | 15 | <Title class="sapUiSmallMarginTop" text="Confirm Vaccination Status?"/> 16 | <Label text="Have you been vaccinated once?"></Label> 17 | <Label text="{context>/vaccinated}"></Label> 18 | 19 | <Label class="sapUiSmallMarginTop" text="What's your vaccination status?"></Label> 20 | <Label text="{context>/vaccinatedStatus}"></Label> 21 | 22 | <Label class="sapUiSmallMarginTop" text="First Does Date?"></Label> 23 | <Label text="{context>/firstDoesDate}"></Label> 24 | 25 | <Label class="sapUiSmallMarginTop" text="Second Does Date?"></Label> 26 | <Label text="{context>/secondDoesDate}"></Label> 27 | 28 | <Label class="sapUiSmallMarginTop" visible="{= ${context>/confirmed} === true }" text="You have confirmed the vaccination"></Label> 29 | <Button visible="false" class="sapUiSmallMarginTop" enabled="{= ${context>/confirmed} !== true }" text="Confirm" press=".press"></Button> 30 | </l:VerticalLayout> 31 | </Panel> 32 | </mvc:View> 33 | -------------------------------------------------------------------------------- /standard/content-package-template/docs/cdm/schema/businessapp.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-07/schema#", 3 | "title": "businessapp", 4 | "type": "object", 5 | "description": "Business App defines the target, navigation, ui and integration attributes of an application", 6 | "required": [ 7 | "_version", 8 | "identification", 9 | "payload" 10 | ], 11 | "properties": { 12 | "_version": { 13 | "$ref": "commons.json#/definitions/_version" 14 | }, 15 | "identification": { 16 | "$ref": "identification.json" 17 | }, 18 | "payload": { 19 | "type": "object", 20 | "anyOf": [{ 21 | "required": ["commonAppConfig", "targetAppConfig", "visualizations"] 22 | }, { 23 | "required": ["targetAppConfig"] 24 | }, { 25 | "required": ["visualizations"] 26 | } 27 | ], 28 | "properties": { 29 | "commonAppConfig": { 30 | "$ref": "AppDescriptor.extension.json" 31 | }, 32 | "targetAppConfig": { 33 | "$ref": "AppDescriptor.extension.json" 34 | }, 35 | "visualizations": { 36 | "type": "object", 37 | "description": "App Visualizations - abstraction of controls for launching apps", 38 | "patternProperties": { 39 | "^(.*)$": { 40 | "$ref": "viz.json" 41 | } 42 | } 43 | }, 44 | "defaultViz": { 45 | "type": "string", 46 | "description": "ID of the default visualization for the current application" 47 | } 48 | } 49 | }, 50 | "texts": { 51 | "$ref": "texts.json" 52 | } 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /standard/html5-content-provider-sample/ManageProducts/products/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "products", 3 | "version": "0.0.1", 4 | "private": true, 5 | "description": "An SAP Fiori application.", 6 | "keywords": [ 7 | "ui5", 8 | "openui5", 9 | "sapui5" 10 | ], 11 | "main": "webapp/index.html", 12 | "dependencies": {}, 13 | "devDependencies": { 14 | "@ui5/cli": "^3.0.0", 15 | "@sap/ux-ui5-tooling": "1", 16 | "@sap/ui5-builder-webide-extension": "^1.1.9", 17 | "ui5-task-zipper": "^3.1.3", 18 | "mbt": "^1.2.27" 19 | }, 20 | "scripts": { 21 | "start": "fiori run --open \"test/flpSandbox.html?sap-ui-xx-viewCache=false#products-display\"", 22 | "start-local": "fiori run --config ./ui5-local.yaml --open \"test/flpSandbox.html?sap-ui-xx-viewCache=false#products-display\"", 23 | "build": "ui5 build --config=ui5.yaml --clean-dest --dest dist", 24 | "deploy": "fiori verify", 25 | "deploy-config": "fiori add deploy-config", 26 | "start-noflp": "fiori run --open \"index.html?sap-ui-xx-viewCache=false\"", 27 | "start-variants-management": "fiori run --open \"preview.html?sap-ui-xx-viewCache=false&fiori-tools-rta-mode=true&sap-ui-rta-skip-flex-validation=true#preview-app\"", 28 | "unit-tests": "fiori run --open 'test/unit/unitTests.qunit.html'", 29 | "int-tests": "fiori run --open 'test/integration/opaTests.qunit.html'", 30 | "build:cf": "ui5 build preload --clean-dest --config ui5-deploy.yaml --include-task=generateCachebusterInfo" 31 | }, 32 | "sapuxLayer": "VENDOR", 33 | "ui5": { 34 | "dependencies": [ 35 | "@sap/ui5-builder-webide-extension", 36 | "ui5-task-zipper", 37 | "mbt" 38 | ] 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /standard/content-package-template/docs/cdm/schema/page.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-07/schema#", 3 | "title": "page", 4 | "type": "object", 5 | "description": "Pages define the layout of sections", 6 | "required": [ 7 | "_version", 8 | "identification", 9 | "payload" 10 | ], 11 | "properties": { 12 | "_version": { 13 | "description": "Pages have been introduced with CDM version 3.1", 14 | "type": "string", 15 | "enum": [ 16 | "3.2.0", 17 | "3.2", 18 | "3.1.0", 19 | "3.1" 20 | ] 21 | }, 22 | "identification": { 23 | "$ref": "identification.json" 24 | }, 25 | "payload": { 26 | "type": "object", 27 | "required": ["sections"], 28 | "properties": { 29 | "sections": { 30 | "description": "a list of the assigned page sections", 31 | "type": "array", 32 | "items": { 33 | "$ref": "#/definitions/section" 34 | } 35 | } 36 | } 37 | }, 38 | "texts": { 39 | "$ref": "texts.json" 40 | } 41 | }, 42 | "definitions": { 43 | "section": { 44 | "type": "object", 45 | "required": ["id"], 46 | "additionalProperties": false, 47 | "properties": { 48 | "id": { 49 | "$ref": "commons.json#/definitions/id" 50 | }, 51 | "title": { 52 | "$ref": "commons.json#/definitions/i18nKey" 53 | }, 54 | "viz": { 55 | "description": "a list of the assigned app visualizations", 56 | "type": "array", 57 | "items": { 58 | "$ref": "viz-commons.json#/definitions/vizReferenceWithDisplayFormatHints" 59 | } 60 | } 61 | } 62 | } 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /standard/content-package-template/docs/cdm/schema/workpagerow-config.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-07/schema#", 3 | "title": "Work Page Row Configuration", 4 | "description": "Configuration of a work page row", 5 | "type": "object", 6 | "$comment": "FIXME list of attributes not yet finalized", 7 | "properties": { 8 | "title": { 9 | "description": "Represents the title of the Row", 10 | "type": "string" 11 | }, 12 | "info": { 13 | "description": "Represents an additional info of the Row shown next to the title", 14 | "type": "string", 15 | "default": "" 16 | }, 17 | "fillRowHeight": { 18 | "description": "Indicates whether the last Widget contained in each Column->Cell of this Row should stretch to the height of the row. This visually unifies the height of all contents.", 19 | "type": "boolean", 20 | "default": true 21 | }, 22 | "fullWidth": { 23 | "description": "Visually expands the Rows width to the maximum available width. The expansion only applies to background setting", 24 | "type": "boolean", 25 | "default": false 26 | }, 27 | "backgroundColor": { 28 | "description": "CSS color value used as a background for this Row", 29 | "type": "string", 30 | "default": "" 31 | }, 32 | "backgroundURL": { 33 | "description": "Url to a background image for this Row", 34 | "type": "string", 35 | "format": "uri-template", 36 | "default": "" 37 | }, 38 | "paddingTop": { 39 | "description": "Padding on top of the Row", 40 | "type": "string", 41 | "default": "" 42 | }, 43 | "paddingBottom": { 44 | "description": "Padding on bottom of the Row", 45 | "type": "string", 46 | "default": "" 47 | } 48 | } 49 | } -------------------------------------------------------------------------------- /standard/html5-content-provider-sample/ManageProducts/workzone/cdm.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "_version": "3.0", 4 | "identification": { 5 | "id": "manageProductCatalogId", 6 | "title": "{{title}}", 7 | "entityType": "catalog" 8 | }, 9 | "payload": { 10 | "viz": [ 11 | { 12 | "appId": "products", 13 | "vizId": "mngprd" 14 | } 15 | ] 16 | }, 17 | "texts": [ 18 | { 19 | "locale": "", 20 | "textDictionary": { 21 | "title": "Manage Product Catalog" 22 | } 23 | } 24 | ] 25 | }, 26 | { 27 | "_version": "3.0", 28 | "identification": { 29 | "id": "manageProductGroupId", 30 | "title": "{{title}}", 31 | "entityType": "group" 32 | }, 33 | "payload": { 34 | "viz": [ 35 | { 36 | "appId": "products", 37 | "vizId": "mngprd" 38 | } 39 | ] 40 | }, 41 | "texts": [ 42 | { 43 | "locale": "", 44 | "textDictionary": { 45 | "title": "Manage Product Group" 46 | } 47 | } 48 | ] 49 | }, 50 | { 51 | "_version": "3.0", 52 | "identification": { 53 | "id": "manageProductRole", 54 | "entityType": "role", 55 | "title": "Manage Product Role" 56 | }, 57 | "payload": { 58 | "apps": [ 59 | { 60 | "id": "products" 61 | } 62 | ], 63 | "catalogs": [ 64 | { 65 | "id": "manageProductCatalogId" 66 | } 67 | ], 68 | "groups": [ 69 | { 70 | "id": "manageProductGroupId" 71 | } 72 | ] 73 | } 74 | } 75 | ] 76 | -------------------------------------------------------------------------------- /standard/content-package-template/content-package/content-part.json: -------------------------------------------------------------------------------- 1 | { 2 | "sample-role1": { 3 | "type": "role", 4 | "src": { 5 | "from": "../cdm-samples/src", 6 | "content": "role1.json" 7 | } 8 | }, 9 | "sample-space1": { 10 | "type": "space", 11 | "src": { 12 | "from": "../cdm-samples/src", 13 | "content": "space1.json" 14 | } 15 | }, 16 | "sample-workpage1": { 17 | "type": "workpage", 18 | "src": { 19 | "from": "../cdm-samples/src", 20 | "content": "workpage1.json" 21 | } 22 | }, 23 | "sample-businessapp1": { 24 | "type": "businessapp", 25 | "src": { 26 | "from": "../cdm-samples/src", 27 | "content": "businessapp1.json" 28 | } 29 | }, 30 | "bubble-chart-card-sample": { 31 | "type": "card", 32 | "src": { 33 | "appId": "my.company.ns.contentpackage.app1", 34 | "vizId": "my.company.ns.contentpackage.app1.viz1", 35 | "from": "../card-samples/analytical-card-samples/bubble-chart-card-sample", 36 | "build": "npm i && npm run-script build", 37 | "package": "my.company.ns.bubble.chart.card.zip", 38 | "manifest": "src/manifest.json" 39 | } 40 | }, 41 | "data-object-card-sample": { 42 | "type": "card", 43 | "src": { 44 | "from": "../card-samples/object-card-samples/data-object-card-sample", 45 | "build": "npm i && npm run-script build", 46 | "package": "my.company.ns.data.object.card.zip", 47 | "manifest": "src/manifest.json" 48 | } 49 | }, 50 | "static-list-card-sample": { 51 | "type": "card", 52 | "src": { 53 | "from": "../card-samples/list-card-samples/static-list-card-sample", 54 | "build": "npm i && npm run-script build", 55 | "package": "my.company.ns.static.list.card.zip", 56 | "manifest": "src/manifest.json" 57 | } 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /standard/content-package-template/content-package/content.json: -------------------------------------------------------------------------------- 1 | { 2 | "sample-role1": { 3 | "type": "role", 4 | "src": { 5 | "from": "../cdm-samples/src", 6 | "content": "role1.json" 7 | } 8 | }, 9 | "sample-space1": { 10 | "type": "space", 11 | "src": { 12 | "from": "../cdm-samples/src", 13 | "content": "space1.json" 14 | } 15 | }, 16 | "sample-workpage1": { 17 | "type": "workpage", 18 | "src": { 19 | "from": "../cdm-samples/src", 20 | "content": "workpage1.json" 21 | } 22 | }, 23 | "sample-businessapp1": { 24 | "type": "businessapp", 25 | "src": { 26 | "from": "../cdm-samples/src", 27 | "content": "businessapp1.json" 28 | } 29 | }, 30 | "bubble-chart-card-sample": { 31 | "type": "card", 32 | "src": { 33 | "appId": "my.company.ns.contentpackage.app1", 34 | "vizId": "my.company.ns.contentpackage.app1.viz1", 35 | "from": "../card-samples/analytical-card-samples/bubble-chart-card-sample", 36 | "build": "npm i && npm run-script build", 37 | "package": "my.company.ns.bubble.chart.card.zip", 38 | "manifest": "src/manifest.json" 39 | } 40 | }, 41 | "data-object-card-sample": { 42 | "type": "card", 43 | "src": { 44 | "from": "../card-samples/object-card-samples/data-object-card-sample", 45 | "build": "npm i && npm run-script build", 46 | "package": "my.company.ns.data.object.card.zip", 47 | "manifest": "src/manifest.json" 48 | } 49 | }, 50 | "static-list-card-sample": { 51 | "type": "card", 52 | "src": { 53 | "from": "../card-samples/list-card-samples/static-list-card-sample", 54 | "build": "npm i && npm run-script build", 55 | "package": "my.company.ns.static.list.card.zip", 56 | "manifest": "src/manifest.json" 57 | } 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /standard/html5-content-provider-sample/ManageProducts/products/webapp/controller/BaseController.js: -------------------------------------------------------------------------------- 1 | sap.ui.define([ 2 | "sap/ui/core/mvc/Controller", 3 | "sap/ui/core/UIComponent", 4 | "sap/m/library" 5 | ], function (Controller, UIComponent, mobileLibrary) { 6 | "use strict"; 7 | 8 | return Controller.extend("products.controller.BaseController", { 9 | /** 10 | * Convenience method for accessing the router. 11 | * @public 12 | * @returns {sap.ui.core.routing.Router} the router for this component 13 | */ 14 | getRouter : function () { 15 | return UIComponent.getRouterFor(this); 16 | }, 17 | 18 | /** 19 | * Convenience method for getting the view model by name. 20 | * @public 21 | * @param {string} [sName] the model name 22 | * @returns {sap.ui.model.Model} the model instance 23 | */ 24 | getModel : function (sName) { 25 | return this.getView().getModel(sName); 26 | }, 27 | 28 | /** 29 | * Convenience method for setting the view model. 30 | * @public 31 | * @param {sap.ui.model.Model} oModel the model instance 32 | * @param {string} sName the model name 33 | * @returns {sap.ui.mvc.View} the view instance 34 | */ 35 | setModel : function (oModel, sName) { 36 | return this.getView().setModel(oModel, sName); 37 | }, 38 | 39 | /** 40 | * Getter for the resource bundle. 41 | * @public 42 | * @returns {sap.ui.model.resource.ResourceModel} the resourceModel of the component 43 | */ 44 | getResourceBundle : function () { 45 | return this.getOwnerComponent().getModel("i18n").getResourceBundle(); 46 | }, 47 | 48 | /** 49 | * Event handler when the share by E-Mail button has been clicked 50 | * @public 51 | */ 52 | onShareEmailPress : function () { 53 | var oViewModel = (this.getModel("objectView") || this.getModel("worklistView")); 54 | mobileLibrary.URLHelper.triggerEmail( 55 | null, 56 | oViewModel.getProperty("/shareSendEmailSubject"), 57 | oViewModel.getProperty("/shareSendEmailMessage") 58 | ); 59 | } 60 | 61 | }); 62 | 63 | }); -------------------------------------------------------------------------------- /standard/content-package-template/tools/card/build.js: -------------------------------------------------------------------------------- 1 | module.exports.build = function (dir) { 2 | const path = require("path"), 3 | util = require("../util/util.js"), 4 | rimraf = require("rimraf"), 5 | fs = require("fs-extra"), 6 | root = path.join(dir, util.relativeDir(dir)), 7 | packagejson = util.json.fromFile(path.join(root, "package.json")), 8 | name = packagejson.name, 9 | ui5BuildParams = packagejson.ui5 && packagejson.ui5.buildParams ? packagejson.ui5.buildParams : "", 10 | dist = path.join(root, "dist"), 11 | out = path.join(root, name + ".zip"); 12 | 13 | util.log.fancy("Building Card Package: " + dir + "/src"); 14 | console.log(" - Clean files and folders"); 15 | 16 | rimraf.sync(dist); 17 | 18 | fs.removeSync(out); 19 | 20 | //if ui5 cli does not exist, install it. 21 | var ret = util.spawn.Advancedsync("which ui5", root, process.env); 22 | if (ret.status) { 23 | var ui5path = path.join(__dirname, "..", "..", "..", "node_modules", ".bin", "ui5"); 24 | console.log(ui5path); 25 | if (!fs.existsSync(ui5path)) { 26 | console.log("install @ui5/cli"); 27 | util.spawn.sync("npm install @ui5/cli@3.3.1", path.join(__dirname, "..", "..", ".."), "fail to install ui5"); 28 | } 29 | if (fs.existsSync(ui5path)) { 30 | process.env.PATH += ":"+path.dirname(ui5path); 31 | } 32 | } 33 | 34 | console.log(" - Create dist folder and content"); 35 | 36 | if (!fs.existsSync(path.join(root, 'node_modules'))) { 37 | console.log("Do npm install first"); 38 | util.spawn.sync("npm install", root, "fail to do npm install"); 39 | } 40 | 41 | console.log(" - Run UI5 build: " + "ui5 build " + ui5BuildParams); 42 | util.spawn.sync("ui5 build " + ui5BuildParams, root, "UI5 build failed"); 43 | 44 | util.i18n.process(path.join(dist, "manifest.json")); 45 | 46 | console.log(" - Zip content to " + name + ".zip"); 47 | 48 | util.zip.folder(out, root, "dist"); 49 | 50 | util.log.fancy("Building Card Package finished successful"); 51 | } -------------------------------------------------------------------------------- /advanced/wizard/sample-cards/wz-todo-card/bundle/view/Widget.view.xml: -------------------------------------------------------------------------------- 1 | <mvc:View xmlns:mvc="sap.ui.core.mvc" 2 | xmlns="sap.m" 3 | xmlns:l="sap.ui.layout" 4 | xmlns:core="sap.ui.core" 5 | controllerName="sap.workzone.samples.todo.controller.Widget" 6 | displayBlock="true"> 7 | <Panel backgroundDesign="Transparent" class="sapUiNoContentPadding"> 8 | <headerToolbar> 9 | <Toolbar id="toolbar" class="sapUiTinyMarginTopBottom" height="2.75rem"> 10 | <Input id="addTodoItemInput" value="{context>/newTodo}" 11 | placeholder="What needs to be done?" change=".addTodo" /> 12 | <ToolbarSpacer /> 13 | <SegmentedButton selectedKey="all" selectionChange=".onFilter"> 14 | <items> 15 | <SegmentedButtonItem text="All" key="all" /> 16 | <SegmentedButtonItem text="Active" key="active" /> 17 | <SegmentedButtonItem text="Completed" key="completed" /> 18 | </items> 19 | </SegmentedButton> 20 | </Toolbar> 21 | </headerToolbar> 22 | 23 | <List id="todoList" 24 | items="{ path: 'context>/todos', events: { change: '.updateTodoList' } }" 25 | mode="None" 26 | growing="true" 27 | growingScrollToLoad="true" 28 | showNoData="false" 29 | showSeparators="None"> 30 | <CustomListItem> 31 | <FlexBox alignItems="Center" class="sapUiTinyMarginBeginEnd"> 32 | <CheckBox selected="{context>completed}" /> 33 | <HBox> 34 | <layoutData> 35 | <FlexItemData growFactor="1" /> 36 | </layoutData> 37 | <Text text="{context>title}" class="todo-title"> 38 | <customData> 39 | <core:CustomData key="todo-item-completed" 40 | value="{= String(${context>completed})}" 41 | writeToDom="true" /> 42 | </customData> 43 | </Text> 44 | <Text class="todo-complete" text="(completed at: {context>completedAt})" 45 | visible="{= !!${context>completed} }"> 46 | </Text> 47 | </HBox> 48 | <Button icon="sap-icon://delete" type="Reject" press=".remove" /> 49 | </FlexBox> 50 | </CustomListItem> 51 | </List> 52 | 53 | </Panel> 54 | </mvc:View> -------------------------------------------------------------------------------- /standard/content-package-template/docs/cdm/schema/space.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-07/schema#", 3 | "title": "space", 4 | "type": "object", 5 | "description": "Spaces are grouping content, currently only pages", 6 | "required": [ 7 | "_version", 8 | "identification", 9 | "payload" 10 | ], 11 | "properties": { 12 | "_version": { 13 | "description": "Spaces have been introduced with CDM version 3.1", 14 | "type": "string", 15 | "enum": [ 16 | "3.2.0", 17 | "3.2", 18 | "3.1.0", 19 | "3.1" 20 | ] 21 | }, 22 | "identification": { 23 | "$ref": "identification.json" 24 | }, 25 | "payload": { 26 | "type": "object", 27 | "required": ["contentNodes"], 28 | "properties": { 29 | "spaceConfig": { 30 | "$ref": "space-config.json" 31 | }, 32 | "contentNodes": { 33 | "description": "List of the assigned content nodes; so far restricted to a flat list of pages, might be extended in subsequent versions", 34 | "type": "array", 35 | "items": { 36 | "$ref": "#/definitions/contentNode" 37 | } 38 | }, 39 | "sortNumber": { 40 | "description": "Determines an order of all spaces: The space comes after other spaces with smaller sortNumber and before spaces with larger sortNumber; spaces with no sort number come after all spaces with a sortNumber.", 41 | "type": "number", 42 | "multipleOf" : 0.001, 43 | "exclusiveMinimum": -10000, 44 | "exclusiveMaximum": 10000 45 | } 46 | } 47 | }, 48 | "texts": { 49 | "$ref": "texts.json" 50 | } 51 | }, 52 | "definitions": { 53 | "contentNode": { 54 | "type": "object", 55 | "required": ["type", "id"], 56 | "additionalProperties": false, 57 | "properties": { 58 | "type": { 59 | "enum": ["page", "workpage"] 60 | }, 61 | "id": { 62 | "$ref": "commons.json#/definitions/id" 63 | } 64 | } 65 | } 66 | } 67 | } 68 | -------------------------------------------------------------------------------- /advanced/wizard/sample-cards/wz-favorite-card/bundle/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "sap.app": { 3 | "type": "card", 4 | "id": "sap.workzone.samples.favoriteCard", 5 | "title": "Favorite sample cards", 6 | "info": "Favorite card to demonstrate WZ Wizard interactive interface", 7 | "description": "Favorite card to demonstrate WZ Wizard interactive interface", 8 | "author": "Ricky Jiao", 9 | "applicationVersion": { 10 | "version": "1.0.0" 11 | } 12 | }, 13 | "sap.card": { 14 | "extension": "./QuickActionsExtension", 15 | "type": "List", 16 | "configuration": { 17 | "parameters": { 18 | "host.context": { 19 | "value": {}, 20 | "type": "object", 21 | "visible": false 22 | } 23 | } 24 | }, 25 | "data": { 26 | "extension": { 27 | "method": "getData" 28 | }, 29 | "applicationVersion": { 30 | "version": "1.1.1" 31 | } 32 | }, 33 | "header": { 34 | "title": "List Card with Products", 35 | "subTitle": "The Top Sellers This Month", 36 | "status": { 37 | "text": { 38 | "format": { 39 | "translationKey": "i18n>CARD.COUNT_X_OF_Y", 40 | "parts": ["parameters>/visibleItems", "/count"] 41 | } 42 | } 43 | }, 44 | "icon": { 45 | "src": "sap-icon://desktop-mobile" 46 | } 47 | }, 48 | "content": { 49 | "data": { 50 | "path": "/products" 51 | }, 52 | "item": { 53 | "title": "{Name}", 54 | "description": "{Description}", 55 | "info": { 56 | "value": "{= ${isFavorite} ? 'Favorite' : ''}", 57 | "state": "Warning" 58 | }, 59 | "actionsStrip": [ 60 | { 61 | "text": "Add to Favorites", 62 | "actions": [ 63 | { 64 | "type": "Custom", 65 | "parameters": { 66 | "method": "addToFavorites", 67 | "id": "{Id}" 68 | } 69 | } 70 | ] 71 | } 72 | ] 73 | }, 74 | "maxItems": 3 75 | } 76 | } 77 | } 78 | -------------------------------------------------------------------------------- /standard/content-package-template/docs/cdm/schema/viz-commons.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-07/schema#", 3 | "type": "object", 4 | "description": "Common definitions for viz-related attributes", 5 | "properties": { 6 | }, 7 | "definitions": { 8 | "vizReference": { 9 | "type": "object", 10 | "required": ["appId", "vizId"], 11 | "additionalProperties": false, 12 | "properties": { 13 | "id": { 14 | "$ref": "commons.json#/definitions/id" 15 | }, 16 | "appId": { 17 | "$ref": "commons.json#/definitions/id" 18 | }, 19 | "vizId": { 20 | "$ref": "commons.json#/definitions/id" 21 | } 22 | } 23 | }, 24 | "vizReferenceWithDisplayFormatHints": { 25 | "type": "object", 26 | "required": ["appId", "vizId"], 27 | "additionalProperties": false, 28 | "properties": { 29 | "id": { 30 | "$ref": "commons.json#/definitions/id" 31 | }, 32 | "appId": { 33 | "$ref": "commons.json#/definitions/id" 34 | }, 35 | "vizId": { 36 | "$ref": "commons.json#/definitions/id" 37 | }, 38 | "displayFormatHint": { 39 | "description": "A hint for how this vizReference should be displayed; compact format could be rendered as link", 40 | "$ref": "#/definitions/displayFormatEnum" 41 | } 42 | } 43 | }, 44 | "vizOptions": { 45 | "description": "Options a visualization is offering with regards to rendering, for example", 46 | "type": "object", 47 | "properties": { 48 | "displayFormats": { 49 | "description": "Defines what display formats a visualization type can render itself in. The value 'default' is deprecated - please use 'standard' instead!", 50 | "type": "object", 51 | "properties": { 52 | "default": { 53 | "$ref": "#/definitions/displayFormatEnum" 54 | } 55 | } 56 | } 57 | } 58 | }, 59 | "displayFormatEnum": { 60 | "type": "string", 61 | "enum": ["default", "standard", "standardWide", "flat", "flatWide", "compact"] 62 | } 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /advanced/context-awareness/sample-cards/regions-list-card/bundle/Main.controller.js: -------------------------------------------------------------------------------- 1 | sap.ui.define([ 2 | "sap/ui/core/mvc/Controller", 3 | "sap/ui/model/json/JSONModel" 4 | ], function (Controller, JSONModel) { 5 | "use strict"; 6 | 7 | return Controller.extend("my.region.Main", { 8 | onInit: function () { 9 | // Gets the component of the controller's view 10 | // https://sapui5.hana.ondemand.com/sdk/#/api/sap.ui.core.mvc.Controller/methods/getOwnerComponent 11 | var oComponent = this.getOwnerComponent(), 12 | oSelect = this.byId('regionCombobox'), 13 | oCard = oComponent.oCard 14 | // Region list data. 15 | var oModel = new JSONModel({ 16 | "regions": [ 17 | { 18 | "text": "APJ", 19 | "key": "APJ" 20 | }, 21 | { 22 | "text": "EU", 23 | "key": "EU" 24 | }, 25 | { 26 | "text": "US", 27 | "key": "US" 28 | } 29 | ] 30 | }); 31 | this.getView().setModel(oModel); 32 | // Get Context Value from Workzone, getContextValue will return a promise. 33 | // https://sapui5untested.int.sap.eu2.hana.ondemand.com/#/api/sap.ui.integration.Host%23methods/getContextValue 34 | oCard.getHostInstance().getContextValue("sap.workzone.samples.context/region").then(function (value) { 35 | // set comboBox selected key 36 | // https://sapui5.hana.ondemand.com/sdk/#/api/sap.m.ComboBox/methods/setSelectedKey 37 | oSelect.setSelectedKey(value); 38 | }); 39 | }, 40 | 41 | handleChange: function (oEvent) { 42 | var oComponent = this.getOwnerComponent(), 43 | oCard = oComponent.oCard, 44 | region = oEvent.mParameters.value; 45 | 46 | // Update Workzone context by trigger action. 47 | // https://sapui5untested.int.sap.eu2.hana.ondemand.com/#/api/sap.ui.integration.widgets.Card%23methods/triggerAction 48 | oCard.triggerAction({ 49 | type: "updateContext", 50 | parameters: { 51 | "namespace": "sap.workzone.samples.context", 52 | "context": { 53 | "region": region 54 | } 55 | } 56 | }); 57 | } 58 | }); 59 | }); -------------------------------------------------------------------------------- /advanced/content-package-template/content-package/content.json: -------------------------------------------------------------------------------- 1 | { 2 | "card-sample": { 3 | "type": "card", 4 | "src": { 5 | "from": "../card", 6 | "path": "./", 7 | "build": "npm i && npm run-script build", 8 | "package": "sap-workzone-cpkg-card-sample.zip", 9 | "manifest": "src/manifest.json" 10 | } 11 | }, 12 | "journey-card-sample": { 13 | "type": "card", 14 | "src": { 15 | "from": "../journey", 16 | "path": "./card", 17 | "build": "npm i && npm run-script build", 18 | "package": "sap-workzone-cpkg-journey-card-sample.zip", 19 | "manifest": "src/manifest.json" 20 | } 21 | }, 22 | "journey-workflow-sample": { 23 | "type": "workflow", 24 | "src": { 25 | "from": "../journey", 26 | "path": "./workflow", 27 | "build": "npm i && npm run-script build", 28 | "package": "sap-workzone-cpkg-journey-workflow-sample.zip", 29 | "manifest": "src/manifest.json" 30 | } 31 | }, 32 | "workflow-sample": { 33 | "type": "workflow", 34 | "src": { 35 | "from": "../workflow", 36 | "path": "./", 37 | "build": "npm i && npm run-script build", 38 | "package": "sap-workzone-cpkg-workflow-sample.zip", 39 | "manifest": "src/manifest.json" 40 | } 41 | }, 42 | "workspace-template-sample": { 43 | "type": "workspace-template", 44 | "src": { 45 | "from": "../workspace-template", 46 | "path": "./", 47 | "build": "npm i && npm run-script build", 48 | "package": "sap-workzone-cpkg-workspace-template-sample.zip", 49 | "manifest": "src/manifest.json" 50 | } 51 | }, 52 | "workspace-sample": { 53 | "type": "workspace", 54 | "src": { 55 | "from": "../workspace", 56 | "path": "./", 57 | "build": "npm i && npm run-script build", 58 | "package": "sap-workzone-cpkg-workspace-sample.zip", 59 | "manifest": "src/manifest.json" 60 | } 61 | }, 62 | "homepage-sample": { 63 | "type": "homepage", 64 | "src": { 65 | "from": "../homepage", 66 | "path": "./", 67 | "build": "npm i && npm run-script build", 68 | "package": "sap-workzone-cpkg-homepage-sample.zip", 69 | "manifest": "src/manifest.json" 70 | } 71 | } 72 | } 73 | -------------------------------------------------------------------------------- /standard/content-package-template/cdm-samples/src/workpage1.json: -------------------------------------------------------------------------------- 1 | { 2 | "_version": "3.2.0", 3 | "identification": { 4 | "id": "my.company.ns.contentpackage.workpage1", 5 | "entityType": "workpage" 6 | }, 7 | "payload": { 8 | "workpageConfig": { 9 | "title": "{{PAGE_TITLE1}}" 10 | }, 11 | "rows": [ 12 | { 13 | "id": "row-1", 14 | "rowConfig": {}, 15 | "columns": [ 16 | { 17 | "id": "col-11", 18 | "columnConfig": {}, 19 | "cells": [ 20 | { 21 | "id": "cell-111", 22 | "cellConfig": {}, 23 | "widgets": [ 24 | { 25 | "id": "widg-1111", 26 | "viz": { 27 | "appId": "my.company.ns.bubble.chart.card.app", 28 | "vizId": "my.company.ns.bubble.chart.card.viz" 29 | } 30 | } 31 | ] 32 | } 33 | ] 34 | }, 35 | { 36 | "id": "col-12", 37 | "columnConfig": {}, 38 | "cells": [ 39 | { 40 | "id": "cell-121", 41 | "cellConfig": {}, 42 | "widgets": [ 43 | { 44 | "id": "widg-1211", 45 | "viz": { 46 | "appId": "my.company.ns.data.object.card.app", 47 | "vizId": "my.company.ns.data.object.card.viz" 48 | } 49 | } 50 | ] 51 | } 52 | ] 53 | }, 54 | { 55 | "id": "col-13", 56 | "columnConfig": {}, 57 | "cells": [ 58 | { 59 | "id": "cell-131", 60 | "cellConfig": {}, 61 | "widgets": [ 62 | { 63 | "id": "widg-1311", 64 | "viz": { 65 | "appId": "my.company.ns.static.list.card.app", 66 | "vizId": "my.company.ns.static.list.card.viz" 67 | } 68 | } 69 | ] 70 | } 71 | ] 72 | } 73 | ] 74 | } 75 | ] 76 | } 77 | } 78 | --------------------------------------------------------------------------------