@sap/ux-ui5-tooling 1.20.4 → 1.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +60 -0
- package/dist/adp-tooling/templates/cf/_gitignore +6 -0
- package/dist/adp-tooling/templates/cf/approuter/package.json +13 -0
- package/dist/adp-tooling/templates/cf/approuter/xs-app.json +15 -0
- package/dist/adp-tooling/templates/cf/i18n/i18n.properties +3 -0
- package/dist/adp-tooling/templates/cf/package.json +35 -0
- package/dist/adp-tooling/templates/cf/ui5.yaml +5 -0
- package/dist/adp-tooling/templates/cf/xs-security.json +7 -0
- package/dist/adp-tooling/templates/changes/annotation.xml +18 -0
- package/dist/adp-tooling/templates/project/gitignore.tmpl +5 -0
- package/dist/adp-tooling/templates/project/package.json +31 -0
- package/dist/adp-tooling/templates/project/ui5.yaml +6 -0
- package/dist/adp-tooling/templates/project/webapp/i18n/i18n.properties +6 -0
- package/dist/adp-tooling/templates/project/webapp/manifest.appdescr_variant +10 -0
- package/dist/adp-tooling/templates/rta/common/analytical-custom-column.xml +25 -0
- package/dist/adp-tooling/templates/rta/common/custom-action.xml +8 -0
- package/dist/adp-tooling/templates/rta/common/grid-tree-custom-column.xml +22 -0
- package/dist/adp-tooling/templates/rta/common/header-field.xml +13 -0
- package/dist/adp-tooling/templates/rta/common/op-custom-section.xml +20 -0
- package/dist/adp-tooling/templates/rta/common/v4-table-action.xml +8 -0
- package/dist/adp-tooling/templates/rta/controller.ejs +80 -0
- package/dist/adp-tooling/templates/rta/fragment.xml +7 -0
- package/dist/adp-tooling/templates/rta/ts-controller.ejs +18 -0
- package/dist/adp-tooling/templates/rta/v2/m-table-custom-column-cell.xml +7 -0
- package/dist/adp-tooling/templates/rta/v2/m-table-custom-column.xml +18 -0
- package/dist/adp-tooling/templates/rta/v4/custom-section.xml +12 -0
- package/dist/adp-tooling/templates/rta/v4/mdc-custom-column-config.xml +6 -0
- package/dist/adp-tooling/templates/rta/v4/mdc-custom-column.xml +11 -0
- package/dist/adp-tooling/templates/typescript/tsconfig.json +19 -0
- package/dist/cli/index.js +17761 -11603
- package/dist/control-property-editor/app.css +2 -0
- package/dist/control-property-editor/app.js +175 -0
- package/dist/livereload-js/livereload.js +3795 -0
- package/dist/middlewares/fiori-tools-appreload.js +44007 -41669
- package/dist/middlewares/fiori-tools-preview.js +66889 -4176
- package/dist/middlewares/fiori-tools-proxy.js +38049 -5767
- package/dist/middlewares/fiori-tools-servestatic.js +32893 -347
- package/dist/preview-middleware/dist/client/adp/add-fragment.js +48 -0
- package/dist/preview-middleware/dist/client/adp/add-fragment.ts +51 -0
- package/dist/preview-middleware/dist/client/adp/api-handler.js +165 -0
- package/dist/preview-middleware/dist/client/adp/api-handler.ts +191 -0
- package/dist/preview-middleware/dist/client/adp/command-executor.js +100 -0
- package/dist/preview-middleware/dist/client/adp/command-executor.ts +105 -0
- package/dist/preview-middleware/dist/client/adp/control-utils.js +46 -0
- package/dist/preview-middleware/dist/client/adp/control-utils.ts +48 -0
- package/dist/preview-middleware/dist/client/adp/controllers/AddActionFragment.controller.js +198 -0
- package/dist/preview-middleware/dist/client/adp/controllers/AddActionFragment.controller.ts +232 -0
- package/dist/preview-middleware/dist/client/adp/controllers/AddCustomFragment.controller.js +223 -0
- package/dist/preview-middleware/dist/client/adp/controllers/AddCustomFragment.controller.ts +257 -0
- package/dist/preview-middleware/dist/client/adp/controllers/AddFragment.controller.js +195 -0
- package/dist/preview-middleware/dist/client/adp/controllers/AddFragment.controller.ts +264 -0
- package/dist/preview-middleware/dist/client/adp/controllers/AddSubpage.controller.js +146 -0
- package/dist/preview-middleware/dist/client/adp/controllers/AddSubpage.controller.ts +209 -0
- package/dist/preview-middleware/dist/client/adp/controllers/AddTableColumnFragments.controller.js +232 -0
- package/dist/preview-middleware/dist/client/adp/controllers/AddTableColumnFragments.controller.ts +306 -0
- package/dist/preview-middleware/dist/client/adp/controllers/BaseDialog.controller.js +187 -0
- package/dist/preview-middleware/dist/client/adp/controllers/BaseDialog.controller.ts +254 -0
- package/dist/preview-middleware/dist/client/adp/controllers/ControllerExtension.controller.js +330 -0
- package/dist/preview-middleware/dist/client/adp/controllers/ControllerExtension.controller.ts +408 -0
- package/dist/preview-middleware/dist/client/adp/controllers/ExtensionPoint.controller.js +160 -0
- package/dist/preview-middleware/dist/client/adp/controllers/ExtensionPoint.controller.ts +195 -0
- package/dist/preview-middleware/dist/client/adp/controllers/FileExistsDialog.controller.js +68 -0
- package/dist/preview-middleware/dist/client/adp/controllers/FileExistsDialog.controller.ts +86 -0
- package/dist/preview-middleware/dist/client/adp/controllers/types.js +2 -0
- package/dist/preview-middleware/dist/client/adp/controllers/types.ts +10 -0
- package/dist/preview-middleware/dist/client/adp/dialog-factory.js +151 -0
- package/dist/preview-middleware/dist/client/adp/dialog-factory.ts +210 -0
- package/dist/preview-middleware/dist/client/adp/extend-controller.js +48 -0
- package/dist/preview-middleware/dist/client/adp/extend-controller.ts +49 -0
- package/dist/preview-middleware/dist/client/adp/extension-point.js +83 -0
- package/dist/preview-middleware/dist/client/adp/extension-point.ts +116 -0
- package/dist/preview-middleware/dist/client/adp/init-dialogs.js +142 -0
- package/dist/preview-middleware/dist/client/adp/init-dialogs.ts +178 -0
- package/dist/preview-middleware/dist/client/adp/init.js +111 -0
- package/dist/preview-middleware/dist/client/adp/init.ts +92 -0
- package/dist/preview-middleware/dist/client/adp/ovp-window-functions.js +130 -0
- package/dist/preview-middleware/dist/client/adp/ovp-window-functions.ts +171 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/add-new-subpage-quick-action-base.js +97 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/add-new-subpage-quick-action-base.ts +140 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/common/add-controller-to-page.js +74 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/common/add-controller-to-page.ts +92 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/common/add-new-annotation-file.js +171 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/common/add-new-annotation-file.ts +174 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/common/create-page-action.js +56 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/common/create-page-action.ts +56 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/common/op-add-custom-section.js +41 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/common/op-add-custom-section.ts +51 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/common/op-add-header-field.js +69 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/common/op-add-header-field.ts +81 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/common/utils.js +20 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/common/utils.ts +7 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/control-types.js +25 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/control-types.ts +7 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/dialog-enablement-validator.js +26 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/dialog-enablement-validator.ts +18 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/enablement-validator.js +2 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/enablement-validator.ts +19 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v2/add-new-subpage.js +82 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v2/add-new-subpage.ts +87 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v2/change-table-actions.js +69 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v2/change-table-actions.ts +71 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v2/change-table-columns.js +103 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v2/change-table-columns.ts +105 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v2/create-table-action.js +111 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v2/create-table-action.ts +110 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v2/create-table-custom-column.js +108 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v2/create-table-custom-column.ts +141 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v2/lr-enable-semantic-date-range-filter-bar.js +80 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v2/lr-enable-semantic-date-range-filter-bar.ts +93 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v2/lr-enable-table-filtering.js +79 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v2/lr-enable-table-filtering.ts +102 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v2/lr-enable-variant-management.js +71 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v2/lr-enable-variant-management.ts +98 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v2/lr-toggle-clear-filter-bar.js +61 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v2/lr-toggle-clear-filter-bar.ts +77 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v2/op-enable-empty-row-mode.js +95 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v2/op-enable-empty-row-mode.ts +102 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v2/op-enable-variant-management.js +86 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v2/op-enable-variant-management.ts +116 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v2/registry.js +79 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v2/registry.ts +121 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v2/utils.js +138 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v2/utils.ts +134 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v4/add-new-subpage.js +140 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v4/add-new-subpage.ts +181 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v4/change-table-actions.js +81 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v4/change-table-actions.ts +81 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v4/change-table-columns.js +90 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v4/change-table-columns.ts +97 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v4/create-page-action.js +81 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v4/create-page-action.ts +98 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v4/create-table-action-config-change.js +129 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v4/create-table-action-config-change.ts +149 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v4/create-table-custom-column-config-change.js +142 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v4/create-table-custom-column-config-change.ts +178 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v4/enable-variant-management.js +83 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v4/enable-variant-management.ts +96 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v4/lr-enable-semantic-date-range-filter-bar.js +58 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v4/lr-enable-semantic-date-range-filter-bar.ts +70 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v4/lr-enable-table-filtering.js +86 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v4/lr-enable-table-filtering.ts +96 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v4/lr-toggle-clear-filter-bar.js +55 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v4/lr-toggle-clear-filter-bar.ts +61 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v4/op-add-custom-section.js +73 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v4/op-add-custom-section.ts +91 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v4/op-enable-empty-row-mode.js +91 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v4/op-enable-empty-row-mode.ts +88 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v4/registry.js +62 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v4/registry.ts +86 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v4/utils.js +158 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/fe-v4/utils.ts +175 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/load.js +46 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/load.ts +23 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/quick-action-base.js +64 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/quick-action-base.ts +71 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/simple-quick-action-base.js +44 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/simple-quick-action-base.ts +51 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/supported-ui5versions.md +40 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/table-quick-action-base.js +372 -0
- package/dist/preview-middleware/dist/client/adp/quick-actions/table-quick-action-base.ts +433 -0
- package/dist/preview-middleware/dist/client/adp/sync-views-utils.js +123 -0
- package/dist/preview-middleware/dist/client/adp/sync-views-utils.ts +90 -0
- package/dist/preview-middleware/dist/client/adp/ui/AddAction.fragment.xml +49 -0
- package/dist/preview-middleware/dist/client/adp/ui/AddCustomFragment.fragment.xml +48 -0
- package/dist/preview-middleware/dist/client/adp/ui/AddFragment.fragment.xml +83 -0
- package/dist/preview-middleware/dist/client/adp/ui/AddSubpage.fragment.xml +73 -0
- package/dist/preview-middleware/dist/client/adp/ui/AddTableColumnFragments.fragment.xml +63 -0
- package/dist/preview-middleware/dist/client/adp/ui/ControllerExtension.fragment.xml +63 -0
- package/dist/preview-middleware/dist/client/adp/ui/ExtensionPoint.fragment.xml +61 -0
- package/dist/preview-middleware/dist/client/adp/ui/FileExistsDialog.fragment.xml +43 -0
- package/dist/preview-middleware/dist/client/adp/utils.js +199 -0
- package/dist/preview-middleware/dist/client/adp/utils.ts +200 -0
- package/dist/preview-middleware/dist/client/cpe/additional-change-info/add-xml-additional-info.js +85 -0
- package/dist/preview-middleware/dist/client/cpe/additional-change-info/add-xml-additional-info.ts +107 -0
- package/dist/preview-middleware/dist/client/cpe/changes/flex-change.js +66 -0
- package/dist/preview-middleware/dist/client/cpe/changes/flex-change.ts +66 -0
- package/dist/preview-middleware/dist/client/cpe/changes/generic-change.js +321 -0
- package/dist/preview-middleware/dist/client/cpe/changes/generic-change.ts +462 -0
- package/dist/preview-middleware/dist/client/cpe/changes/index.js +12 -0
- package/dist/preview-middleware/dist/client/cpe/changes/index.ts +1 -0
- package/dist/preview-middleware/dist/client/cpe/changes/service.js +527 -0
- package/dist/preview-middleware/dist/client/cpe/changes/service.ts +595 -0
- package/dist/preview-middleware/dist/client/cpe/changes/validator.js +41 -0
- package/dist/preview-middleware/dist/client/cpe/changes/validator.ts +35 -0
- package/dist/preview-middleware/dist/client/cpe/communication-service.js +44 -0
- package/dist/preview-middleware/dist/client/cpe/communication-service.ts +41 -0
- package/dist/preview-middleware/dist/client/cpe/connector-service.js +88 -0
- package/dist/preview-middleware/dist/client/cpe/connector-service.ts +74 -0
- package/dist/preview-middleware/dist/client/cpe/context-menu-service.js +90 -0
- package/dist/preview-middleware/dist/client/cpe/context-menu-service.ts +77 -0
- package/dist/preview-middleware/dist/client/cpe/control-data.js +366 -0
- package/dist/preview-middleware/dist/client/cpe/control-data.ts +400 -0
- package/dist/preview-middleware/dist/client/cpe/documentation.js +191 -0
- package/dist/preview-middleware/dist/client/cpe/documentation.ts +187 -0
- package/dist/preview-middleware/dist/client/cpe/feature-service.js +39 -0
- package/dist/preview-middleware/dist/client/cpe/feature-service.ts +25 -0
- package/dist/preview-middleware/dist/client/cpe/init.js +92 -0
- package/dist/preview-middleware/dist/client/cpe/init.ts +114 -0
- package/dist/preview-middleware/dist/client/cpe/logger.js +32 -0
- package/dist/preview-middleware/dist/client/cpe/logger.ts +24 -0
- package/dist/preview-middleware/dist/client/cpe/odata-health/odata-health-checker.js +136 -0
- package/dist/preview-middleware/dist/client/cpe/odata-health/odata-health-checker.ts +160 -0
- package/dist/preview-middleware/dist/client/cpe/odata-health/odata-health-status.js +63 -0
- package/dist/preview-middleware/dist/client/cpe/odata-health/odata-health-status.ts +52 -0
- package/dist/preview-middleware/dist/client/cpe/outline/editable.js +38 -0
- package/dist/preview-middleware/dist/client/cpe/outline/editable.ts +30 -0
- package/dist/preview-middleware/dist/client/cpe/outline/nodes.js +212 -0
- package/dist/preview-middleware/dist/client/cpe/outline/nodes.ts +236 -0
- package/dist/preview-middleware/dist/client/cpe/outline/service.js +62 -0
- package/dist/preview-middleware/dist/client/cpe/outline/service.ts +66 -0
- package/dist/preview-middleware/dist/client/cpe/quick-actions/quick-action-service.js +161 -0
- package/dist/preview-middleware/dist/client/cpe/quick-actions/quick-action-service.ts +184 -0
- package/dist/preview-middleware/dist/client/cpe/quick-actions/registry.js +145 -0
- package/dist/preview-middleware/dist/client/cpe/quick-actions/registry.ts +157 -0
- package/dist/preview-middleware/dist/client/cpe/quick-actions/utils.js +94 -0
- package/dist/preview-middleware/dist/client/cpe/quick-actions/utils.ts +113 -0
- package/dist/preview-middleware/dist/client/cpe/rta-service.js +94 -0
- package/dist/preview-middleware/dist/client/cpe/rta-service.ts +86 -0
- package/dist/preview-middleware/dist/client/cpe/selection.js +249 -0
- package/dist/preview-middleware/dist/client/cpe/selection.ts +267 -0
- package/dist/preview-middleware/dist/client/cpe/ui5-utils.js +35 -0
- package/dist/preview-middleware/dist/client/cpe/ui5-utils.ts +28 -0
- package/dist/preview-middleware/dist/client/cpe/utils.js +113 -0
- package/dist/preview-middleware/dist/client/cpe/utils.ts +162 -0
- package/dist/preview-middleware/dist/client/flp/WorkspaceConnector.js +97 -0
- package/dist/preview-middleware/dist/client/flp/WorkspaceConnector.ts +101 -0
- package/dist/preview-middleware/dist/client/flp/common.js +30 -0
- package/dist/preview-middleware/dist/client/flp/common.ts +28 -0
- package/dist/preview-middleware/dist/client/flp/enableFakeConnector.js +92 -0
- package/dist/preview-middleware/dist/client/flp/enableFakeConnector.ts +113 -0
- package/dist/preview-middleware/dist/client/flp/homepage/Component.js +16 -0
- package/dist/preview-middleware/dist/client/flp/homepage/Component.ts +10 -0
- package/dist/preview-middleware/dist/client/flp/homepage/controller/MyHome.controller.js +54 -0
- package/dist/preview-middleware/dist/client/flp/homepage/controller/MyHome.controller.ts +41 -0
- package/dist/preview-middleware/dist/client/flp/homepage/css/style.css +3 -0
- package/dist/preview-middleware/dist/client/flp/homepage/manifest.json +41 -0
- package/dist/preview-middleware/dist/client/flp/homepage/view/MyHome.view.xml +18 -0
- package/dist/preview-middleware/dist/client/flp/init.js +418 -0
- package/dist/preview-middleware/dist/client/flp/init.ts +448 -0
- package/dist/preview-middleware/dist/client/flp/initCdm.js +117 -0
- package/dist/preview-middleware/dist/client/flp/initCdm.ts +111 -0
- package/dist/preview-middleware/dist/client/flp/initConnectors.js +31 -0
- package/dist/preview-middleware/dist/client/flp/initConnectors.ts +20 -0
- package/dist/preview-middleware/dist/client/flp/initRta.js +180 -0
- package/dist/preview-middleware/dist/client/flp/initRta.ts +194 -0
- package/dist/preview-middleware/dist/client/i18n.js +56 -0
- package/dist/preview-middleware/dist/client/i18n.ts +49 -0
- package/dist/preview-middleware/dist/client/manifest.json +8 -0
- package/dist/preview-middleware/dist/client/messagebundle.properties +143 -0
- package/dist/preview-middleware/dist/client/thirdparty/@sap-ux-private/control-property-editor-common.js +486 -0
- package/dist/preview-middleware/dist/client/utils/additional-change-info.js +69 -0
- package/dist/preview-middleware/dist/client/utils/additional-change-info.ts +73 -0
- package/dist/preview-middleware/dist/client/utils/application.js +34 -0
- package/dist/preview-middleware/dist/client/utils/application.ts +27 -0
- package/dist/preview-middleware/dist/client/utils/core.js +144 -0
- package/dist/preview-middleware/dist/client/utils/core.ts +145 -0
- package/dist/preview-middleware/dist/client/utils/error.js +28 -0
- package/dist/preview-middleware/dist/client/utils/error.ts +18 -0
- package/dist/preview-middleware/dist/client/utils/fe-v2.js +58 -0
- package/dist/preview-middleware/dist/client/utils/fe-v2.ts +61 -0
- package/dist/preview-middleware/dist/client/utils/fe-v4.js +168 -0
- package/dist/preview-middleware/dist/client/utils/fe-v4.ts +186 -0
- package/dist/preview-middleware/dist/client/utils/info-center-message.js +60 -0
- package/dist/preview-middleware/dist/client/utils/info-center-message.ts +60 -0
- package/dist/preview-middleware/dist/client/utils/version.js +126 -0
- package/dist/preview-middleware/dist/client/utils/version.ts +138 -0
- package/dist/preview-middleware/templates/flp/cdm.base.json +47 -0
- package/dist/preview-middleware/templates/flp/cdm.ejs +72 -0
- package/dist/preview-middleware/templates/flp/editor.ejs +28 -0
- package/dist/preview-middleware/templates/flp/sandbox.ejs +88 -0
- package/dist/preview-middleware/templates/flp/sandbox2.ejs +86 -0
- package/dist/preview-middleware/templates/test/qunit.ejs +26 -0
- package/dist/preview-middleware/templates/test/qunit.js +29 -0
- package/dist/preview-middleware/templates/test/testsuite.qunit.ejs +10 -0
- package/dist/preview-middleware/templates/test/testsuite.qunit.js +8 -0
- package/dist/tasks/cf-deploy/index.js +3916 -3521
- package/dist/tasks/deploy/index.js +17204 -11133
- package/package.json +36 -39
- package/prebuilds/keyring.darwin-arm64.node +0 -0
- package/prebuilds/keyring.darwin-x64.node +0 -0
- package/prebuilds/keyring.linux-arm-gnueabihf.node +0 -0
- package/prebuilds/keyring.linux-arm64-gnu.node +0 -0
- package/prebuilds/keyring.linux-arm64-musl.node +0 -0
- package/prebuilds/keyring.linux-ia32-gnu.node +0 -0
- package/prebuilds/keyring.linux-x64-gnu.node +0 -0
- package/prebuilds/keyring.linux-x64-musl.node +0 -0
- package/prebuilds/keyring.win32-arm64-msvc.node +0 -0
- package/prebuilds/keyring.win32-ia32-msvc.node +0 -0
- package/prebuilds/keyring.win32-x64-msvc.node +0 -0
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import VersionInfo from 'sap/ui/VersionInfo';
|
|
2
|
+
import Log from 'sap/base/Log';
|
|
3
|
+
import { sendInfoCenterMessage } from './info-center-message';
|
|
4
|
+
import { MessageBarType } from '@sap-ux-private/control-property-editor-common';
|
|
5
|
+
|
|
6
|
+
type SingleVersionInfo =
|
|
7
|
+
| {
|
|
8
|
+
name: string;
|
|
9
|
+
version: string;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export type Ui5VersionInfo = {
|
|
13
|
+
major: number;
|
|
14
|
+
minor: number;
|
|
15
|
+
patch?: number;
|
|
16
|
+
label?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Indicates if the UI5 version is served from CDN.
|
|
19
|
+
*/
|
|
20
|
+
isCdn?: boolean;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Default minimal supported UI5 version
|
|
25
|
+
*/
|
|
26
|
+
export const minVersionInfo = {
|
|
27
|
+
major: 1,
|
|
28
|
+
minor: 71
|
|
29
|
+
} as Readonly<Ui5VersionInfo>;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Check if the given version info is valid.
|
|
33
|
+
*
|
|
34
|
+
* @param versionInfo to check
|
|
35
|
+
* @throws Error if the version info is invalid
|
|
36
|
+
*/
|
|
37
|
+
function checkVersionInfo(versionInfo: Ui5VersionInfo): void {
|
|
38
|
+
if (Number.isNaN(versionInfo.major) || Number.isNaN(versionInfo.minor) || Number.isNaN(versionInfo.patch ?? 0)) {
|
|
39
|
+
void sendInfoCenterMessage({
|
|
40
|
+
title: { key: 'FLP_UI_VERSION_RETRIEVAL_FAILURE_TITLE' },
|
|
41
|
+
description: { key: 'FLP_UI_INVALID_UI5_VERSION_DESCRIPTION' },
|
|
42
|
+
type: MessageBarType.error
|
|
43
|
+
});
|
|
44
|
+
throw new Error('Invalid version info');
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Retrieve the UI5 version.
|
|
50
|
+
* If no library is given, the version from 'sap.ui.core' will be retrieved.
|
|
51
|
+
* Note that the patch version of actual SAPUI5 version might differ from the lib that has been used for the version request (e.g. SAPUI5 1.96.38 contains sap.ui.core 1.96.36).
|
|
52
|
+
* For details see the patch info of the respective SAPUI5 version (e.g. https://ui5.sap.com/1.96.38/patchinfo.html).
|
|
53
|
+
*
|
|
54
|
+
* @param library - (optional) specific library name to get the version from, e.g. 'sap.m'
|
|
55
|
+
* @returns Ui5VersionInfo
|
|
56
|
+
*/
|
|
57
|
+
export async function getUi5Version(library: string = 'sap.ui.core'): Promise<Ui5VersionInfo> {
|
|
58
|
+
const versionInfo = await VersionInfo.load() as { name: string; libraries: SingleVersionInfo[] } | undefined;
|
|
59
|
+
let version = versionInfo?.libraries?.find((lib) => lib.name === library)?.version;
|
|
60
|
+
const isCdn = versionInfo?.name === 'SAPUI5 Distribution';
|
|
61
|
+
if (!version) {
|
|
62
|
+
Log.error('Could not get UI5 version of application. Using version: 1.130.9 as fallback.');
|
|
63
|
+
version = '1.130.9';
|
|
64
|
+
await sendInfoCenterMessage({
|
|
65
|
+
title: { key: 'FLP_UI_VERSION_RETRIEVAL_FAILURE_TITLE' },
|
|
66
|
+
description: { key: 'FLP_UI_VERSION_RETRIEVAL_FAILURE_DESCRIPTION', params: [version] },
|
|
67
|
+
type: MessageBarType.error
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
const [major, minor, patch] = version.split('.').map((versionPart) => Number.parseInt(versionPart, 10));
|
|
71
|
+
const label = version.split(/-(.*)/s)?.[1];
|
|
72
|
+
|
|
73
|
+
return {
|
|
74
|
+
major,
|
|
75
|
+
minor,
|
|
76
|
+
patch,
|
|
77
|
+
label,
|
|
78
|
+
isCdn
|
|
79
|
+
} satisfies Ui5VersionInfo;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Checks if the given version is lower than the required minimal version.
|
|
84
|
+
* Note that the patch version of actual SAPUI5 version might differ from the lib that has been used for the version request (e.g. SAPUI5 1.96.38 contains sap.ui.core 1.96.36).
|
|
85
|
+
* For details see the patch info of the respective SAPUI5 version (e.g. https://ui5.sap.com/1.96.38/patchinfo.html).
|
|
86
|
+
*
|
|
87
|
+
* @param ui5VersionInfo to check
|
|
88
|
+
* @param minUi5VersionInfo to check against (default is 1.71)
|
|
89
|
+
* @throws Error if the version info is invalid
|
|
90
|
+
* @returns boolean
|
|
91
|
+
*/
|
|
92
|
+
export function isLowerThanMinimalUi5Version(
|
|
93
|
+
ui5VersionInfo: Ui5VersionInfo,
|
|
94
|
+
minUi5VersionInfo: Ui5VersionInfo = minVersionInfo
|
|
95
|
+
): boolean {
|
|
96
|
+
checkVersionInfo(ui5VersionInfo);
|
|
97
|
+
checkVersionInfo(minUi5VersionInfo);
|
|
98
|
+
return (
|
|
99
|
+
ui5VersionInfo.major < minUi5VersionInfo.major ||
|
|
100
|
+
(ui5VersionInfo.major === minUi5VersionInfo.major && ui5VersionInfo.minor < minUi5VersionInfo.minor) ||
|
|
101
|
+
(ui5VersionInfo.major === minUi5VersionInfo.major &&
|
|
102
|
+
ui5VersionInfo.minor === minUi5VersionInfo.minor &&
|
|
103
|
+
(ui5VersionInfo?.patch ?? 0) < (minUi5VersionInfo?.patch ?? 0))
|
|
104
|
+
);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Checks if the given version is equal to the specified version.
|
|
109
|
+
* Note that the patch version of actual SAPUI5 version might differ from the lib that has been used for the version request (e.g. SAPUI5 1.96.38 contains sap.ui.core 1.96.36).
|
|
110
|
+
* For details see the patch info of the respective SAPUI5 version (e.g. https://ui5.sap.com/1.96.38/patchinfo.html).
|
|
111
|
+
*
|
|
112
|
+
* @param ui5VersionInfo to check
|
|
113
|
+
* @param targetUi5VersionInfo to check against (default is 1.71)
|
|
114
|
+
* @throws Error if the version info is invalid
|
|
115
|
+
* @returns boolean
|
|
116
|
+
*/
|
|
117
|
+
export function isVersionEqualOrHasNewerPatch(
|
|
118
|
+
ui5VersionInfo: Ui5VersionInfo,
|
|
119
|
+
targetUi5VersionInfo: Ui5VersionInfo = minVersionInfo
|
|
120
|
+
): boolean {
|
|
121
|
+
checkVersionInfo(ui5VersionInfo);
|
|
122
|
+
checkVersionInfo(targetUi5VersionInfo);
|
|
123
|
+
return (
|
|
124
|
+
ui5VersionInfo.major === targetUi5VersionInfo.major &&
|
|
125
|
+
ui5VersionInfo.minor === targetUi5VersionInfo.minor &&
|
|
126
|
+
(ui5VersionInfo?.patch ?? 0) >= (targetUi5VersionInfo?.patch ?? 0)
|
|
127
|
+
);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Returns the fully qualified UI5 version string - major and minor version concatenated.
|
|
132
|
+
*
|
|
133
|
+
* @param {Ui5VersionInfo} ui5VersionInfo - The ui5 version info object containing major and minor version.
|
|
134
|
+
* @returns {string} The fully qualified UI5 version string.
|
|
135
|
+
*/
|
|
136
|
+
export function getFullyQualifiedUi5Version(ui5VersionInfo: Ui5VersionInfo): string {
|
|
137
|
+
return `${ui5VersionInfo.major}.${ui5VersionInfo.minor}`;
|
|
138
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_version": "3.1.0",
|
|
3
|
+
"catalogs": {
|
|
4
|
+
"homeCatalog": {
|
|
5
|
+
"identification": {
|
|
6
|
+
"id": "homeCatalog",
|
|
7
|
+
"title": "Homepage Apps"
|
|
8
|
+
},
|
|
9
|
+
"payload": {
|
|
10
|
+
"viz": []
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"site": {
|
|
15
|
+
"payload": {
|
|
16
|
+
"groupsOrder": []
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"groups": {},
|
|
20
|
+
"visualizations": {},
|
|
21
|
+
"applications": {},
|
|
22
|
+
"pages": {
|
|
23
|
+
"SAP_BASIS_PG_UI_MYHOME": {
|
|
24
|
+
"identification": {
|
|
25
|
+
"id": "SAP_BASIS_PG_UI_MYHOME"
|
|
26
|
+
},
|
|
27
|
+
"payload": {
|
|
28
|
+
"layout": {
|
|
29
|
+
"sectionOrder": [
|
|
30
|
+
"homeAppsSection"
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
"sections": {
|
|
34
|
+
"homeAppsSection": {
|
|
35
|
+
"id": "homeAppsSection",
|
|
36
|
+
"title": "Recently Added Apps",
|
|
37
|
+
"default": true,
|
|
38
|
+
"layout": {
|
|
39
|
+
"vizOrder": []
|
|
40
|
+
},
|
|
41
|
+
"viz": {}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
<!DOCTYPE HTML>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<!-- Copyright (c) 2015 SAP AG, All Rights Reserved -->
|
|
4
|
+
|
|
5
|
+
<head>
|
|
6
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
7
|
+
<meta charset="UTF-8">
|
|
8
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
9
|
+
<title>Local FLP Sandbox</title>
|
|
10
|
+
|
|
11
|
+
<!-- Bootstrap the unified shell in sandbox mode for standalone usage.
|
|
12
|
+
|
|
13
|
+
The renderer is specified in the global Unified Shell configuration object "sap-ushell-config".
|
|
14
|
+
|
|
15
|
+
The fiori2 renderer will render the shell header allowing, for instance,
|
|
16
|
+
testing of additional application setting buttons.
|
|
17
|
+
|
|
18
|
+
The navigation target resolution service is configured in a way that the empty URL hash is
|
|
19
|
+
resolved to our own application.
|
|
20
|
+
|
|
21
|
+
This example uses relative path references for the SAPUI5 resources and test-resources;
|
|
22
|
+
it might be necessary to adapt them depending on the target runtime platform.
|
|
23
|
+
The sandbox platform is restricted to development or demo use cases and must NOT be used
|
|
24
|
+
for productive scenarios.
|
|
25
|
+
-->
|
|
26
|
+
|
|
27
|
+
<!-- Bootstrap the UI5 core library. 'data-sap-ui-frameOptions="allow"' is a NON-SECURE setting for test environments -->
|
|
28
|
+
<script id="sap-ui-bootstrap"
|
|
29
|
+
src="<%- basePath %>/resources/sap-ui-core.js"
|
|
30
|
+
data-sap-ui-libs="<%- ui5.libs %>"
|
|
31
|
+
data-sap-ui-async="true"
|
|
32
|
+
data-sap-ui-preload="async"
|
|
33
|
+
data-sap-ui-theme="<%- ui5.theme %>"
|
|
34
|
+
data-sap-ui-compatVersion="edge"
|
|
35
|
+
data-sap-ui-language="en"
|
|
36
|
+
data-sap-ui-bindingSyntax="complex"
|
|
37
|
+
data-sap-ui-flexibilityServices='<%- JSON.stringify(ui5.flex) %>'
|
|
38
|
+
data-sap-ui-resourceroots='<%- JSON.stringify(ui5.resources) %>'
|
|
39
|
+
data-sap-ui-frameOptions="allow"
|
|
40
|
+
data-sap-ui-xx-componentPreload="off"<%- ui5.bootstrapOptions %><% if (enableCardGenerator) { %>
|
|
41
|
+
data-open-ux-preview-enable-card-generator="<%- enableCardGenerator %>"
|
|
42
|
+
<% } %>
|
|
43
|
+
data-sap-ui-oninit="module:open/ux/preview/client/flp/init"<% if (locals.init) { %>
|
|
44
|
+
data-open-ux-preview-custom-init='<%- init %>'<% } if (locals.flexSettings) { %>
|
|
45
|
+
data-open-ux-preview-features='<%- JSON.stringify(features) %>'
|
|
46
|
+
data-open-ux-preview-flex-settings='<%- JSON.stringify(flexSettings) %>'<% } if (locals.locateReuseLibsScript) { %>
|
|
47
|
+
data-open-ux-preview-libs-manifests='<%- JSON.stringify(Object.values(apps).map(app => app.url)) %>'<% } %>
|
|
48
|
+
data-open-ux-preview-base-url='<%- baseUrl %>'
|
|
49
|
+
data-open-ux-preview-enhanced-homepage='true'>
|
|
50
|
+
</script>
|
|
51
|
+
|
|
52
|
+
<% if (locals.flexSettings && flexSettings?.developerMode) { %>
|
|
53
|
+
<!-- Hides Rta native toolbar -->
|
|
54
|
+
<style>
|
|
55
|
+
#shell-header, .sapUiRtaToolbar {
|
|
56
|
+
visibility: hidden;
|
|
57
|
+
height: 1px;
|
|
58
|
+
}
|
|
59
|
+
.sapUshellShellCanvas {
|
|
60
|
+
top: 0 !important;
|
|
61
|
+
}
|
|
62
|
+
.sapUiRtaMode .sapUiShellBackgroundImage.sapUiGlobalBackgroundImageForce.sapUshellShellBG {
|
|
63
|
+
background-color: transparent !important;
|
|
64
|
+
}
|
|
65
|
+
</style><% } %>
|
|
66
|
+
</head>
|
|
67
|
+
|
|
68
|
+
<!-- UI Content -->
|
|
69
|
+
<body class="sapUiBody" id="content">
|
|
70
|
+
</body>
|
|
71
|
+
|
|
72
|
+
</html>
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
6
|
+
<meta name="theme-color" content="#000000" />
|
|
7
|
+
<meta name="description" content="Web page for rendering SAP Fiori Tools Control Property Editor" />
|
|
8
|
+
<link rel="stylesheet" type="text/css" href="./editor/app.css" />
|
|
9
|
+
<title>Editing <%- appName %></title>
|
|
10
|
+
</head>
|
|
11
|
+
<body>
|
|
12
|
+
<noscript>You need to enable JavaScript to run this app.</noscript>
|
|
13
|
+
<div id="root" data-open-ux-preview-base-url="<%- baseUrl %>"></div>
|
|
14
|
+
<script type="module">
|
|
15
|
+
import { start } from './editor/app.js';
|
|
16
|
+
start({
|
|
17
|
+
previewUrl: '<%- previewUrl %>',
|
|
18
|
+
telemetry: <%- telemetry %>,
|
|
19
|
+
rootElementId: 'root',
|
|
20
|
+
scenario: '<%- scenario %>',
|
|
21
|
+
livereloadPort: <%- livereloadPort %>,
|
|
22
|
+
livereloadUrl: '<%- livereloadUrl %>',
|
|
23
|
+
features: <%- features %>
|
|
24
|
+
});
|
|
25
|
+
</script>
|
|
26
|
+
</body>
|
|
27
|
+
<!-- livereload disabled for editor </body>-->
|
|
28
|
+
</html>
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
<!DOCTYPE HTML>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<!-- Copyright (c) 2015 SAP AG, All Rights Reserved -->
|
|
4
|
+
|
|
5
|
+
<head>
|
|
6
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
7
|
+
<meta charset="UTF-8">
|
|
8
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
9
|
+
<title>Local FLP Sandbox</title>
|
|
10
|
+
|
|
11
|
+
<!-- Bootstrap the unified shell in sandbox mode for standalone usage.
|
|
12
|
+
|
|
13
|
+
The renderer is specified in the global Unified Shell configuration object "sap-ushell-config".
|
|
14
|
+
|
|
15
|
+
The fiori2 renderer will render the shell header allowing, for instance,
|
|
16
|
+
testing of additional application setting buttons.
|
|
17
|
+
|
|
18
|
+
The navigation target resolution service is configured in a way that the empty URL hash is
|
|
19
|
+
resolved to our own application.
|
|
20
|
+
|
|
21
|
+
This example uses relative path references for the SAPUI5 resources and test-resources;
|
|
22
|
+
it might be necessary to adapt them depending on the target runtime platform.
|
|
23
|
+
The sandbox platform is restricted to development or demo use cases and must NOT be used
|
|
24
|
+
for productive scenarios.
|
|
25
|
+
-->
|
|
26
|
+
<script type="text/javascript">
|
|
27
|
+
window["sap-ushell-config"] = {
|
|
28
|
+
defaultRenderer: "fiori2",
|
|
29
|
+
renderers: {
|
|
30
|
+
fiori2: {
|
|
31
|
+
componentData: {
|
|
32
|
+
config: {
|
|
33
|
+
search: "hidden",
|
|
34
|
+
enableSearch: false
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
applications: <%- JSON.stringify(apps) %>
|
|
40
|
+
};
|
|
41
|
+
</script>
|
|
42
|
+
|
|
43
|
+
<script src="<%- basePath %>/test-resources/sap/ushell/bootstrap/sandbox.js" id="sap-ushell-bootstrap"></script>
|
|
44
|
+
<!-- Bootstrap the UI5 core library. 'data-sap-ui-frameOptions="allow"' is a NON-SECURE setting for test environments -->
|
|
45
|
+
<script id="sap-ui-bootstrap"
|
|
46
|
+
src="<%- basePath %>/resources/sap-ui-core.js"
|
|
47
|
+
data-sap-ui-libs="<%- ui5.libs %>"
|
|
48
|
+
data-sap-ui-async="true"
|
|
49
|
+
data-sap-ui-preload="async"
|
|
50
|
+
data-sap-ui-theme="<%- ui5.theme %>"
|
|
51
|
+
data-sap-ui-compatVersion="edge"
|
|
52
|
+
data-sap-ui-language="en"
|
|
53
|
+
data-sap-ui-bindingSyntax="complex"
|
|
54
|
+
data-sap-ui-flexibilityServices='<%- JSON.stringify(ui5.flex) %>'
|
|
55
|
+
data-sap-ui-resourceroots='<%- JSON.stringify(ui5.resources) %>'
|
|
56
|
+
data-sap-ui-frameOptions="allow"
|
|
57
|
+
data-sap-ui-xx-componentPreload="off"<%- ui5.bootstrapOptions %><% if (enableCardGenerator) { %>
|
|
58
|
+
data-open-ux-preview-enable-card-generator="<%- enableCardGenerator %>"
|
|
59
|
+
<% } %>
|
|
60
|
+
data-sap-ui-oninit="module:open/ux/preview/client/flp/init"<% if (locals.init) { %>
|
|
61
|
+
data-open-ux-preview-custom-init='<%- init %>'<% } if (locals.flexSettings) { %>
|
|
62
|
+
data-open-ux-preview-features='<%- JSON.stringify(features) %>'
|
|
63
|
+
data-open-ux-preview-flex-settings='<%- JSON.stringify(flexSettings) %>'<% } if (locals.locateReuseLibsScript) { %>
|
|
64
|
+
data-open-ux-preview-libs-manifests='<%- JSON.stringify(Object.values(apps).map(app => app.url)) %>'<% } %>
|
|
65
|
+
data-open-ux-preview-base-url='<%- baseUrl %>'>
|
|
66
|
+
</script>
|
|
67
|
+
|
|
68
|
+
<% if (locals.flexSettings && flexSettings?.developerMode) { %>
|
|
69
|
+
<!-- Hides Rta native toolbar -->
|
|
70
|
+
<style>
|
|
71
|
+
#shell-header, .sapUiRtaToolbar {
|
|
72
|
+
visibility: hidden;
|
|
73
|
+
height: 1px;
|
|
74
|
+
}
|
|
75
|
+
.sapUshellShellCanvas {
|
|
76
|
+
top: 0 !important;
|
|
77
|
+
}
|
|
78
|
+
.sapUiRtaMode .sapUiShellBackgroundImage.sapUiGlobalBackgroundImageForce.sapUshellShellBG {
|
|
79
|
+
background-color: transparent !important;
|
|
80
|
+
}
|
|
81
|
+
</style><% } %>
|
|
82
|
+
</head>
|
|
83
|
+
|
|
84
|
+
<!-- UI Content -->
|
|
85
|
+
<body class="sapUiBody" id="content">
|
|
86
|
+
</body>
|
|
87
|
+
|
|
88
|
+
</html>
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
<!DOCTYPE HTML>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<!-- Copyright (c) 2015 SAP AG, All Rights Reserved -->
|
|
4
|
+
|
|
5
|
+
<head>
|
|
6
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
7
|
+
<meta charset="UTF-8">
|
|
8
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
9
|
+
<title>Local FLP Sandbox</title>
|
|
10
|
+
|
|
11
|
+
<!-- Bootstrap the unified shell in sandbox mode for standalone usage.
|
|
12
|
+
|
|
13
|
+
The renderer is specified in the global Unified Shell configuration object "sap-ushell-config".
|
|
14
|
+
|
|
15
|
+
The fiori2 renderer will render the shell header allowing, for instance,
|
|
16
|
+
testing of additional application setting buttons.
|
|
17
|
+
|
|
18
|
+
The navigation target resolution service is configured in a way that the empty URL hash is
|
|
19
|
+
resolved to our own application.
|
|
20
|
+
|
|
21
|
+
This example uses relative path references for the SAPUI5 resources and test-resources;
|
|
22
|
+
it might be necessary to adapt them depending on the target runtime platform.
|
|
23
|
+
The sandbox platform is restricted to development or demo use cases and must NOT be used
|
|
24
|
+
for productive scenarios.
|
|
25
|
+
-->
|
|
26
|
+
<script type="text/javascript">
|
|
27
|
+
window["sap-ushell-config"] = {
|
|
28
|
+
defaultRenderer: "fiori2",
|
|
29
|
+
renderers: {
|
|
30
|
+
fiori2: {
|
|
31
|
+
componentData: {
|
|
32
|
+
config: {
|
|
33
|
+
search: "hidden",
|
|
34
|
+
enableSearch: false
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
applications: <%- JSON.stringify(apps) %>
|
|
40
|
+
};
|
|
41
|
+
</script>
|
|
42
|
+
|
|
43
|
+
<script src="<%- basePath %>/resources/sap/ushell/bootstrap/sandbox2.js" id="sap-ushell-bootstrap"></script>
|
|
44
|
+
<!-- Bootstrap the UI5 core library. 'data-sap-ui-frameOptions="allow"' is a NON-SECURE setting for test environments -->
|
|
45
|
+
<script id="sap-ui-bootstrap"
|
|
46
|
+
src="<%- basePath %>/resources/sap-ui-core.js"
|
|
47
|
+
data-sap-ui-libs="<%- ui5.libs %>"
|
|
48
|
+
data-sap-ui-async="true"
|
|
49
|
+
data-sap-ui-theme="<%- ui5.theme %>"
|
|
50
|
+
data-sap-ui-compat-version="edge"
|
|
51
|
+
data-sap-ui-language="en"
|
|
52
|
+
data-sap-ui-flexibility-services='<%- JSON.stringify(ui5.flex) %>'
|
|
53
|
+
data-sap-ui-resource-roots='<%- JSON.stringify(ui5.resources) %>'
|
|
54
|
+
data-sap-ui-frame-options="allow"
|
|
55
|
+
data-sap-ui-xx-component-preload="off"<%- ui5.bootstrapOptions %><% if (enableCardGenerator) { %>
|
|
56
|
+
data-open-ux-preview-enable-card-generator="<%- enableCardGenerator %>"
|
|
57
|
+
<% } %>
|
|
58
|
+
data-sap-ui-on-init="module:open/ux/preview/client/flp/init"<% if (locals.init) { %>
|
|
59
|
+
data-open-ux-preview-custom-init='<%- init %>'<% } if (locals.flexSettings) { %>
|
|
60
|
+
data-open-ux-preview-features='<%- JSON.stringify(features) %>'
|
|
61
|
+
data-open-ux-preview-flex-settings='<%- JSON.stringify(flexSettings) %>'<% } if (locals.locateReuseLibsScript) { %>
|
|
62
|
+
data-open-ux-preview-libs-manifests='<%- JSON.stringify(Object.values(apps).map(app => app.url)) %>'<% } %>
|
|
63
|
+
data-open-ux-preview-base-url='<%- baseUrl %>'>
|
|
64
|
+
</script>
|
|
65
|
+
|
|
66
|
+
<% if (locals.flexSettings && flexSettings?.developerMode) { %>
|
|
67
|
+
<!-- Hides Rta native toolbar -->
|
|
68
|
+
<style>
|
|
69
|
+
#shell-header, .sapUiRtaToolbar {
|
|
70
|
+
visibility: hidden;
|
|
71
|
+
height: 1px;
|
|
72
|
+
}
|
|
73
|
+
.sapUshellShellCanvas {
|
|
74
|
+
top: 0 !important;
|
|
75
|
+
}
|
|
76
|
+
.sapUiRtaMode .sapUiShellBackgroundImage.sapUiGlobalBackgroundImageForce.sapUshellShellBG {
|
|
77
|
+
background-color: transparent !important;
|
|
78
|
+
}
|
|
79
|
+
</style><% } %>
|
|
80
|
+
</head>
|
|
81
|
+
|
|
82
|
+
<!-- UI Content -->
|
|
83
|
+
<body class="sapUiBody" id="content">
|
|
84
|
+
</body>
|
|
85
|
+
|
|
86
|
+
</html>
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<title><%- framework %> tests</title>
|
|
5
|
+
<meta charset="utf-8">
|
|
6
|
+
|
|
7
|
+
<script
|
|
8
|
+
src="<%- basePath %>/resources/sap-ui-core.js"
|
|
9
|
+
data-sap-ui-theme='<%- theme %>'
|
|
10
|
+
data-sap-ui-resourceroots='{
|
|
11
|
+
"<%- id %>": "<%- basePath %>"
|
|
12
|
+
}'
|
|
13
|
+
data-sap-ui-animation="false"
|
|
14
|
+
data-sap-ui-compatVersion="edge"
|
|
15
|
+
data-sap-ui-async="true">
|
|
16
|
+
</script>
|
|
17
|
+
|
|
18
|
+
<script src="<%- initPath %>"></script>
|
|
19
|
+
|
|
20
|
+
<link rel="stylesheet" type="text/css" href="<%- basePath %>/resources/sap/ui/thirdparty/qunit-2.css">
|
|
21
|
+
</head>
|
|
22
|
+
<body>
|
|
23
|
+
<div id="qunit"></div>
|
|
24
|
+
<div id="qunit-fixture"></div>
|
|
25
|
+
</body>
|
|
26
|
+
</html>
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
sap.ui.loader.config({
|
|
2
|
+
shim: {
|
|
3
|
+
"sap/ui/qunit/qunit-junit": {
|
|
4
|
+
deps: ["sap/ui/thirdparty/qunit-2"]
|
|
5
|
+
},
|
|
6
|
+
"sap/ui/qunit/qunit-coverage": {
|
|
7
|
+
deps: ["sap/ui/thirdparty/qunit-2"]
|
|
8
|
+
},
|
|
9
|
+
"sap/ui/thirdparty/sinon-qunit": {
|
|
10
|
+
deps: ["sap/ui/thirdparty/qunit-2", "sap/ui/thirdparty/sinon"]
|
|
11
|
+
},
|
|
12
|
+
"sap/ui/qunit/sinon-qunit-bridge": {
|
|
13
|
+
deps: ["sap/ui/thirdparty/qunit-2", "sap/ui/thirdparty/sinon-4"]
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
window.QUnit = Object.assign({}, window.QUnit, { config: { autostart: false } });
|
|
19
|
+
|
|
20
|
+
sap.ui.require([
|
|
21
|
+
"sap/ui/thirdparty/qunit-2",
|
|
22
|
+
"sap/ui/qunit/qunit-junit",
|
|
23
|
+
"sap/ui/qunit/qunit-coverage"
|
|
24
|
+
], function (QUnit) {
|
|
25
|
+
'use strict';
|
|
26
|
+
sap.ui.require(<%- JSON.stringify(tests) %>, function() {
|
|
27
|
+
QUnit.start();
|
|
28
|
+
});
|
|
29
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<title>QUnit TestSuite</title>
|
|
5
|
+
<script src="<%- basePath %>/resources/sap/ui/qunit/qunit-redirect.js"></script>
|
|
6
|
+
<script src="<%- initPath %>" data-sap-ui-testsuite></script>
|
|
7
|
+
</head>
|
|
8
|
+
<body>
|
|
9
|
+
</body>
|
|
10
|
+
</html>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
window.suite = function () {
|
|
2
|
+
const oSuite = new parent.jsUnitTestSuite();
|
|
3
|
+
var sContextPath = location.pathname.substring(0, location.pathname.lastIndexOf("/") + 1);
|
|
4
|
+
<% for (const path of locals.testPaths) { %>
|
|
5
|
+
oSuite.addTestPage(sContextPath + "<%- path %>");
|
|
6
|
+
<% } %>
|
|
7
|
+
return oSuite;
|
|
8
|
+
}
|