@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,48 @@
|
|
|
1
|
+
<Dialog id="addNewBBFragmentDialog"
|
|
2
|
+
xmlns="sap.m"
|
|
3
|
+
xmlns:core="sap.ui.core"
|
|
4
|
+
xmlns:l="sap.ui.layout"
|
|
5
|
+
xmlns:f="sap.ui.layout.form"
|
|
6
|
+
title="{/title}"
|
|
7
|
+
contentWidth="500px"
|
|
8
|
+
initialFocus="aggregationName"
|
|
9
|
+
class="sapUiRTABorder">
|
|
10
|
+
<content>
|
|
11
|
+
<f:SimpleForm id="addNewBBFragmentDialog_Form"
|
|
12
|
+
editable="true"
|
|
13
|
+
layout="ResponsiveGridLayout"
|
|
14
|
+
labelSpanS="4"
|
|
15
|
+
singleContainerFullSize="false">
|
|
16
|
+
<f:content>
|
|
17
|
+
<Label visible="{/isCustomColumnFragment}" text="{i18n>ADP_ADD_CUSTOM_FRAGMENT_DIALOG_COLUMN_ID_LABEL}" required="true" />
|
|
18
|
+
<Input
|
|
19
|
+
value="{/id}"
|
|
20
|
+
visible="{/isCustomColumnFragment}"
|
|
21
|
+
liveChange="onIdInputChange">
|
|
22
|
+
</Input>
|
|
23
|
+
<Label text="{i18n>ADP_ADD_FRAGMENT_DIALOG_FRAGMENT_NAME_LABEL}" required="true" />
|
|
24
|
+
<Input
|
|
25
|
+
id="bbFragmentName"
|
|
26
|
+
description=".fragment.xml"
|
|
27
|
+
value="{/newFragmentName}"
|
|
28
|
+
liveChange="onFragmentNameInputChange">
|
|
29
|
+
</Input>
|
|
30
|
+
</f:content>
|
|
31
|
+
</f:SimpleForm>
|
|
32
|
+
</content>
|
|
33
|
+
<beginButton>
|
|
34
|
+
<Button
|
|
35
|
+
id="createDialogBtn"
|
|
36
|
+
text="Create"
|
|
37
|
+
press="onCreateBtnPress"
|
|
38
|
+
enabled="false"
|
|
39
|
+
type="Emphasized" />
|
|
40
|
+
</beginButton>
|
|
41
|
+
<endButton>
|
|
42
|
+
<Button
|
|
43
|
+
id="closeDialogBtn"
|
|
44
|
+
text="Cancel"
|
|
45
|
+
press="handleDialogClose"
|
|
46
|
+
type="Reject" />
|
|
47
|
+
</endButton>
|
|
48
|
+
</Dialog>
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
<Dialog id="addNewFragmentDialog"
|
|
2
|
+
xmlns="sap.m"
|
|
3
|
+
xmlns:core="sap.ui.core"
|
|
4
|
+
xmlns:l="sap.ui.layout"
|
|
5
|
+
xmlns:f="sap.ui.layout.form"
|
|
6
|
+
title="{/title}"
|
|
7
|
+
contentWidth="500px"
|
|
8
|
+
initialFocus="aggregationName"
|
|
9
|
+
class="sapUiRTABorder">
|
|
10
|
+
<content>
|
|
11
|
+
<f:SimpleForm id="addNewFragmentDialog_Form"
|
|
12
|
+
editable="true"
|
|
13
|
+
layout="ResponsiveGridLayout"
|
|
14
|
+
labelSpanS="4"
|
|
15
|
+
singleContainerFullSize="false">
|
|
16
|
+
<f:content>
|
|
17
|
+
<Label visible="{/completeView}" text="{i18n>ADP_ADD_FRAGMENT_DIALOG_CONTROL_TYPE_LABEL}" />
|
|
18
|
+
<Input
|
|
19
|
+
id="controlType"
|
|
20
|
+
visible="{/completeView}"
|
|
21
|
+
value="{/selectedControlName}"
|
|
22
|
+
editable="false" />
|
|
23
|
+
<Label visible="{/completeView}" text="{i18n>ADP_ADD_FRAGMENT_DIALOG_AGGREGATION_LABEL}" />
|
|
24
|
+
<Select
|
|
25
|
+
id="aggregationName"
|
|
26
|
+
visible="{/completeView}"
|
|
27
|
+
change="onAggregationChanged"
|
|
28
|
+
selectedKey="{/selectedAggregation/key}"
|
|
29
|
+
items="{
|
|
30
|
+
path: '/targetAggregation',
|
|
31
|
+
sorter: { path: 'text' }
|
|
32
|
+
}">
|
|
33
|
+
<core:Item key="{key}" text="{value}" />
|
|
34
|
+
</Select>
|
|
35
|
+
<Label text="{i18n>ADP_ADD_FRAGMENT_DIALOG_INDEX_LABEL}" />
|
|
36
|
+
<Select
|
|
37
|
+
id="aggregationIndex"
|
|
38
|
+
enabled="{/indexHandlingFlag}"
|
|
39
|
+
selectedKey="{path: '/selectedIndex', type: 'sap.ui.model.type.Integer'}"
|
|
40
|
+
items="{
|
|
41
|
+
path: '/index',
|
|
42
|
+
sorter: { path: 'text' }
|
|
43
|
+
}">
|
|
44
|
+
<core:Item key="{key}" text="{value}" />
|
|
45
|
+
</Select>
|
|
46
|
+
<core:Icon
|
|
47
|
+
id="aggregationIndexInfoIcon"
|
|
48
|
+
useIconTooltip="false"
|
|
49
|
+
visible="{/specialIndexHandlingIcon}"
|
|
50
|
+
src="sap-icon://message-information"
|
|
51
|
+
width="1rem"
|
|
52
|
+
height="2rem"
|
|
53
|
+
tooltip="{/iconTooltip}">
|
|
54
|
+
<core:layoutData>
|
|
55
|
+
<l:GridData span="S6" />
|
|
56
|
+
</core:layoutData>
|
|
57
|
+
</core:Icon>
|
|
58
|
+
<Label text="{i18n>ADP_ADD_FRAGMENT_DIALOG_FRAGMENT_NAME_LABEL}" required="true" />
|
|
59
|
+
<Input
|
|
60
|
+
id="fragmentName"
|
|
61
|
+
description=".fragment.xml"
|
|
62
|
+
value="{/newFragmentName}"
|
|
63
|
+
liveChange="onFragmentNameInputChange">
|
|
64
|
+
</Input>
|
|
65
|
+
</f:content>
|
|
66
|
+
</f:SimpleForm>
|
|
67
|
+
</content>
|
|
68
|
+
<beginButton>
|
|
69
|
+
<Button
|
|
70
|
+
id="createDialogBtn"
|
|
71
|
+
text="Create"
|
|
72
|
+
press="onCreateBtnPress"
|
|
73
|
+
enabled="false"
|
|
74
|
+
type="Emphasized" />
|
|
75
|
+
</beginButton>
|
|
76
|
+
<endButton>
|
|
77
|
+
<Button
|
|
78
|
+
id="closeDialogBtn"
|
|
79
|
+
text="Cancel"
|
|
80
|
+
press="handleDialogClose"
|
|
81
|
+
type="Reject" />
|
|
82
|
+
</endButton>
|
|
83
|
+
</Dialog>
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
<Dialog
|
|
2
|
+
id="addSubpageDialog"
|
|
3
|
+
xmlns="sap.m"
|
|
4
|
+
xmlns:core="sap.ui.core"
|
|
5
|
+
xmlns:l="sap.ui.layout"
|
|
6
|
+
xmlns:f="sap.ui.layout.form"
|
|
7
|
+
title="{/title}"
|
|
8
|
+
contentWidth="500px"
|
|
9
|
+
initialFocus="aggregationName"
|
|
10
|
+
class="sapUiRTABorder"
|
|
11
|
+
>
|
|
12
|
+
<content>
|
|
13
|
+
<f:SimpleForm
|
|
14
|
+
id="addSubpageDialog_Form"
|
|
15
|
+
editable="true"
|
|
16
|
+
layout="ResponsiveGridLayout"
|
|
17
|
+
labelSpanS="4"
|
|
18
|
+
singleContainerFullSize="false"
|
|
19
|
+
>
|
|
20
|
+
<f:content>
|
|
21
|
+
<Label text="{i18n>ADP_ADD_SUB_PAGE_DIALOG_PAGE_TYPE_LABEL}" />
|
|
22
|
+
<Select
|
|
23
|
+
id="pageType"
|
|
24
|
+
change="onPageTypeChange"
|
|
25
|
+
selectedKey="{/selectedPageType/key}"
|
|
26
|
+
editable="false"
|
|
27
|
+
items="{
|
|
28
|
+
path: '/pageTypeOptions',
|
|
29
|
+
sorter: { path: 'text' }
|
|
30
|
+
}"
|
|
31
|
+
>
|
|
32
|
+
<core:Item
|
|
33
|
+
key="{key}"
|
|
34
|
+
text="{value}"
|
|
35
|
+
/>
|
|
36
|
+
</Select>
|
|
37
|
+
<Label text="{i18n>ADP_ADD_SUB_PAGE_DIALOG_NAVIGATION_LABEL}" />
|
|
38
|
+
<Select
|
|
39
|
+
id="navigation"
|
|
40
|
+
visible="true"
|
|
41
|
+
change="onNavigationChange"
|
|
42
|
+
selectedKey="{/selectedNavigation/key}"
|
|
43
|
+
items="{
|
|
44
|
+
path: '/navigationOptions',
|
|
45
|
+
sorter: { path: 'text' }
|
|
46
|
+
}"
|
|
47
|
+
>
|
|
48
|
+
<core:Item
|
|
49
|
+
key="{key}"
|
|
50
|
+
text="{value}"
|
|
51
|
+
/>
|
|
52
|
+
</Select>
|
|
53
|
+
</f:content>
|
|
54
|
+
</f:SimpleForm>
|
|
55
|
+
</content>
|
|
56
|
+
<beginButton>
|
|
57
|
+
<Button
|
|
58
|
+
id="createDialogBtn"
|
|
59
|
+
text="{i18n>CREATE_BUTTON_LABEL}"
|
|
60
|
+
press="onCreateBtnPress"
|
|
61
|
+
enabled="true"
|
|
62
|
+
type="Emphasized"
|
|
63
|
+
/>
|
|
64
|
+
</beginButton>
|
|
65
|
+
<endButton>
|
|
66
|
+
<Button
|
|
67
|
+
id="closeDialogBtn"
|
|
68
|
+
text="{i18n>CANCEL_BUTTON_LABEL}"
|
|
69
|
+
press="handleDialogClose"
|
|
70
|
+
type="Reject"
|
|
71
|
+
/>
|
|
72
|
+
</endButton>
|
|
73
|
+
</Dialog>
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
<Dialog id="addNewTableColumnFragmentsDialog"
|
|
2
|
+
xmlns="sap.m"
|
|
3
|
+
xmlns:core="sap.ui.core"
|
|
4
|
+
xmlns:f="sap.ui.layout.form"
|
|
5
|
+
title="{/title}"
|
|
6
|
+
contentWidth="500px"
|
|
7
|
+
class="sapUiRTABorder">
|
|
8
|
+
<content>
|
|
9
|
+
<f:SimpleForm id="addNewTableColumnFragmentsDialog_Form"
|
|
10
|
+
editable="true"
|
|
11
|
+
layout="ResponsiveGridLayout"
|
|
12
|
+
labelSpanS="4"
|
|
13
|
+
singleContainerFullSize="false">
|
|
14
|
+
<f:content>
|
|
15
|
+
<Label text="{i18n>ADP_ADD_FRAGMENT_DIALOG_INDEX_LABEL}" />
|
|
16
|
+
<HBox alignItems="Center">
|
|
17
|
+
<Select
|
|
18
|
+
enabled="{/indexHandlingFlag}"
|
|
19
|
+
selectedKey="{path: '/selectedIndex', type: 'sap.ui.model.type.Integer'}"
|
|
20
|
+
items="{
|
|
21
|
+
path: '/index',
|
|
22
|
+
sorter: { path: 'text' }
|
|
23
|
+
}">
|
|
24
|
+
<core:Item key="{key}" text="{value}" />
|
|
25
|
+
</Select>
|
|
26
|
+
<core:Icon
|
|
27
|
+
useIconTooltip="false"
|
|
28
|
+
visible="{/specialIndexHandlingIcon}"
|
|
29
|
+
src="sap-icon://message-information"
|
|
30
|
+
class= "sapUiTinyMarginBegin"
|
|
31
|
+
tooltip="{/iconTooltip}" />
|
|
32
|
+
</HBox>
|
|
33
|
+
<Label text="{i18n>ADP_ADD_FRAGMENT_DIALOG_COLUMN_FRAGMENT_NAME_LABEL}" />
|
|
34
|
+
<Input
|
|
35
|
+
description=".fragment.xml"
|
|
36
|
+
value="{/newColumnFragmentName}"
|
|
37
|
+
liveChange="onColumnFragmentNameInputChange">
|
|
38
|
+
</Input>
|
|
39
|
+
<Label text="{i18n>ADP_ADD_FRAGMENT_DIALOG_CELL_FRAGMENT_NAME_LABEL}" />
|
|
40
|
+
<Input
|
|
41
|
+
description=".fragment.xml"
|
|
42
|
+
value="{/newCellFragmentName}"
|
|
43
|
+
liveChange="onCellFragmentNameInputChange">
|
|
44
|
+
</Input>
|
|
45
|
+
</f:content>
|
|
46
|
+
</f:SimpleForm>
|
|
47
|
+
</content>
|
|
48
|
+
<beginButton>
|
|
49
|
+
<Button
|
|
50
|
+
id="createDialogBtn"
|
|
51
|
+
text="Create"
|
|
52
|
+
press="onCreateBtnPress"
|
|
53
|
+
enabled="false"
|
|
54
|
+
type="Emphasized" />
|
|
55
|
+
</beginButton>
|
|
56
|
+
<endButton>
|
|
57
|
+
<Button
|
|
58
|
+
id="closeDialogBtn"
|
|
59
|
+
text="Cancel"
|
|
60
|
+
press="handleDialogClose"
|
|
61
|
+
type="Reject" />
|
|
62
|
+
</endButton>
|
|
63
|
+
</Dialog>
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
<Dialog id="controllerExtensionDialog"
|
|
2
|
+
xmlns:mvc="sap.ui.core.mvc"
|
|
3
|
+
xmlns="sap.m"
|
|
4
|
+
xmlns:core="sap.ui.core"
|
|
5
|
+
xmlns:f="sap.ui.layout.form"
|
|
6
|
+
title="Extend With Controller"
|
|
7
|
+
contentWidth="450px"
|
|
8
|
+
class="sapUiRTABorder">
|
|
9
|
+
<content>
|
|
10
|
+
<f:SimpleForm
|
|
11
|
+
editable="true"
|
|
12
|
+
layout="ResponsiveGridLayout"
|
|
13
|
+
labelSpanS="4"
|
|
14
|
+
singleContainerFullSize="false"
|
|
15
|
+
visible="{/inputFormVisibility}">
|
|
16
|
+
<f:content>
|
|
17
|
+
<Label text="Controller Name" />
|
|
18
|
+
<Input
|
|
19
|
+
id="controllerName"
|
|
20
|
+
description="{/controllerExtension}"
|
|
21
|
+
value="{/newControllerName}"
|
|
22
|
+
liveChange="onControllerNameInputChange">
|
|
23
|
+
</Input>
|
|
24
|
+
</f:content>
|
|
25
|
+
</f:SimpleForm>
|
|
26
|
+
<f:SimpleForm
|
|
27
|
+
editable="true"
|
|
28
|
+
layout="ResponsiveGridLayout"
|
|
29
|
+
labelSpanS="12"
|
|
30
|
+
visible="{/existingControllerFormVisibility}"
|
|
31
|
+
singleContainerFullSize="false">
|
|
32
|
+
<f:content>
|
|
33
|
+
<Label text="{i18n>ADP_CONTROLLER_EXTENSION_EXISTS}" />
|
|
34
|
+
<Text text="{/controllerPathFromRoot}" />
|
|
35
|
+
</f:content>
|
|
36
|
+
</f:SimpleForm>
|
|
37
|
+
<f:SimpleForm
|
|
38
|
+
editable="true"
|
|
39
|
+
layout="ResponsiveGridLayout"
|
|
40
|
+
labelSpanS="12"
|
|
41
|
+
visible="{/pendingChangeFormVisibility}"
|
|
42
|
+
singleContainerFullSize="false">
|
|
43
|
+
<f:content>
|
|
44
|
+
<Text text="{i18n>ADP_CONTROLLER_PENDING_CHANGE_EXISTS}" />
|
|
45
|
+
</f:content>
|
|
46
|
+
</f:SimpleForm>
|
|
47
|
+
</content>
|
|
48
|
+
<beginButton>
|
|
49
|
+
<Button
|
|
50
|
+
id="createDialogBtn"
|
|
51
|
+
text="Create"
|
|
52
|
+
press="onCreateBtnPress"
|
|
53
|
+
enabled="false"
|
|
54
|
+
type="Emphasized" />
|
|
55
|
+
</beginButton>
|
|
56
|
+
<endButton>
|
|
57
|
+
<Button
|
|
58
|
+
id="closeDialogBtn"
|
|
59
|
+
text="Cancel"
|
|
60
|
+
press="handleDialogClose"
|
|
61
|
+
type="Reject" />
|
|
62
|
+
</endButton>
|
|
63
|
+
</Dialog>
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
<Dialog id="addFragmentAtExtPointDialog"
|
|
2
|
+
xmlns:mvc="sap.ui.core.mvc"
|
|
3
|
+
xmlns="sap.m"
|
|
4
|
+
xmlns:core="sap.ui.core"
|
|
5
|
+
xmlns:f="sap.ui.layout.form"
|
|
6
|
+
title="Add XML Fragment at Extension Point"
|
|
7
|
+
contentWidth="500px"
|
|
8
|
+
class="sapUiRTABorder">
|
|
9
|
+
<content>
|
|
10
|
+
<f:SimpleForm id="addFragmentAtExtPointDialog_Form"
|
|
11
|
+
editable="true"
|
|
12
|
+
layout="ResponsiveGridLayout"
|
|
13
|
+
labelSpanS="4"
|
|
14
|
+
singleContainerFullSize="false">
|
|
15
|
+
<f:content>
|
|
16
|
+
<MessageStrip
|
|
17
|
+
text="The selected extension point has a default content. It will not be visible after adding the fragment."
|
|
18
|
+
id="extensionPointDefaultContentMessage"
|
|
19
|
+
class="sapUiTinyMarginBottom"
|
|
20
|
+
showIcon="true"
|
|
21
|
+
type="Information"
|
|
22
|
+
visible="{/hasDefaultContent}">
|
|
23
|
+
</MessageStrip>
|
|
24
|
+
<Label text="Extension Point" />
|
|
25
|
+
<Select
|
|
26
|
+
id="extensionPoint"
|
|
27
|
+
enabled="{/extensionListEnabled}"
|
|
28
|
+
change="onExtensionPointHandler"
|
|
29
|
+
selectedKey='{/extensionPointKey}'
|
|
30
|
+
items="{
|
|
31
|
+
path: '/extensionPointList',
|
|
32
|
+
sorter: { path: 'text' }
|
|
33
|
+
}">
|
|
34
|
+
<core:Item key="{key}" text="{value}" />
|
|
35
|
+
</Select>
|
|
36
|
+
<Label text="Fragment Name" />
|
|
37
|
+
<Input
|
|
38
|
+
id="fragmentName"
|
|
39
|
+
description=".fragment.xml"
|
|
40
|
+
value="{/newFragmentName}"
|
|
41
|
+
liveChange="onFragmentNameInputChange">
|
|
42
|
+
</Input>
|
|
43
|
+
</f:content>
|
|
44
|
+
</f:SimpleForm>
|
|
45
|
+
</content>
|
|
46
|
+
<beginButton>
|
|
47
|
+
<Button
|
|
48
|
+
id="createDialogBtn"
|
|
49
|
+
text="Create"
|
|
50
|
+
press="onCreateBtnPress"
|
|
51
|
+
enabled="false"
|
|
52
|
+
type="Emphasized" />
|
|
53
|
+
</beginButton>
|
|
54
|
+
<endButton>
|
|
55
|
+
<Button
|
|
56
|
+
id="closeDialogBtn"
|
|
57
|
+
text="Cancel"
|
|
58
|
+
press="handleDialogClose"
|
|
59
|
+
type="Reject" />
|
|
60
|
+
</endButton>
|
|
61
|
+
</Dialog>
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
<Dialog
|
|
2
|
+
id="fileExistsDialog"
|
|
3
|
+
xmlns:mvc="sap.ui.core.mvc"
|
|
4
|
+
xmlns="sap.m"
|
|
5
|
+
xmlns:core="sap.ui.core"
|
|
6
|
+
xmlns:f="sap.ui.layout.form"
|
|
7
|
+
title="{i18n>EXTEND_WITH_ANNOTATION}"
|
|
8
|
+
contentWidth="450px"
|
|
9
|
+
class="sapUiRTABorder"
|
|
10
|
+
>
|
|
11
|
+
<content>
|
|
12
|
+
<f:SimpleForm
|
|
13
|
+
id="showFileContentForm"
|
|
14
|
+
editable="true"
|
|
15
|
+
layout="ResponsiveGridLayout"
|
|
16
|
+
labelSpanS="12"
|
|
17
|
+
visible="false"
|
|
18
|
+
singleContainerFullSize="false"
|
|
19
|
+
>
|
|
20
|
+
<f:content>
|
|
21
|
+
<Label id="showFileFoundLabel" text="{i18n>ANNOTATION_FILE_HAS_BEEN_FOUND}" />
|
|
22
|
+
<Text id="showFilePathText" text="{/filePathFromRoot}" />
|
|
23
|
+
</f:content>
|
|
24
|
+
</f:SimpleForm>
|
|
25
|
+
</content>
|
|
26
|
+
<beginButton>
|
|
27
|
+
<Button
|
|
28
|
+
id="showFileInVscodeBtn"
|
|
29
|
+
text="{i18n>SHOW_FILE_IN_VSCODE}"
|
|
30
|
+
press="onShowFileInVscodeBtn"
|
|
31
|
+
enabled="true"
|
|
32
|
+
type="Emphasized"
|
|
33
|
+
/>
|
|
34
|
+
</beginButton>
|
|
35
|
+
<endButton>
|
|
36
|
+
<Button
|
|
37
|
+
id="closeShowFileInVsCodeBtn"
|
|
38
|
+
text="{i18n>CANCEL_BUTTON_LABEL}"
|
|
39
|
+
press="handleDialogClose"
|
|
40
|
+
type="Reject"
|
|
41
|
+
/>
|
|
42
|
+
</endButton>
|
|
43
|
+
</Dialog>
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
sap.ui.define(["sap/ui/fl/Utils", "../utils/core", "../utils/version"], function (FlexUtils, ___utils_core, ___utils_version) {
|
|
4
|
+
"use strict";
|
|
5
|
+
|
|
6
|
+
function __ui5_require_async(path) {
|
|
7
|
+
return new Promise(function (resolve, reject) {
|
|
8
|
+
sap.ui.require([path], function (module) {
|
|
9
|
+
if (!(module && module.__esModule)) {
|
|
10
|
+
module = module === null || !(typeof module === "object" && path.endsWith("/library")) ? {
|
|
11
|
+
default: module
|
|
12
|
+
} : module;
|
|
13
|
+
Object.defineProperty(module, "__esModule", {
|
|
14
|
+
value: true
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
resolve(module);
|
|
18
|
+
}, function (err) {
|
|
19
|
+
reject(err);
|
|
20
|
+
});
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
const getControlById = ___utils_core["getControlById"];
|
|
24
|
+
const isLowerThanMinimalUi5Version = ___utils_version["isLowerThanMinimalUi5Version"];
|
|
25
|
+
let reuseComponentChecker;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Resets the reuse component checker.
|
|
29
|
+
*/
|
|
30
|
+
function resetReuseComponentChecker() {
|
|
31
|
+
reuseComponentChecker = undefined;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Defers the resolution of the promise, stores resolve/reject functions so that they can be accessed at a later stage.
|
|
36
|
+
*
|
|
37
|
+
* @description A Deferred object contains an unresolved promise along with the functions to resolve or reject that promise.
|
|
38
|
+
*
|
|
39
|
+
* @returns {Deferred} Deferred object
|
|
40
|
+
*/
|
|
41
|
+
function createDeferred() {
|
|
42
|
+
let resolve = null;
|
|
43
|
+
let reject = null;
|
|
44
|
+
const promise = new Promise((res, rej) => {
|
|
45
|
+
resolve = res;
|
|
46
|
+
reject = rej;
|
|
47
|
+
});
|
|
48
|
+
if (resolve === null || reject === null) {
|
|
49
|
+
throw new Error('Failed to initialize resolve and reject functions.');
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
promise,
|
|
53
|
+
resolve,
|
|
54
|
+
reject
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Checks for the existence of a change associated with a specific fragment name in the RTA command stack.
|
|
60
|
+
*
|
|
61
|
+
* @param {RuntimeAuthoring} rta - The RuntimeAuthoring instance to check for existing changes.
|
|
62
|
+
* @param {string} commandName - The name of the fragment to check for existing changes.
|
|
63
|
+
* @param {string} propertyPath - The path to the property as string separated by dot in the change definition to check.
|
|
64
|
+
* @param {string} propertyValue - The value to match against the specified property.
|
|
65
|
+
* @returns {Promise<boolean>} A promise that resolves to `true` if a matching change is found, otherwise `false`.
|
|
66
|
+
*/
|
|
67
|
+
function checkForExistingChange(rta, commandName, propertyPath, propertyValue) {
|
|
68
|
+
const allCommands = rta.getCommandStack().getCommands();
|
|
69
|
+
return allCommands.some(command => {
|
|
70
|
+
if (typeof command.getCommands === 'function') {
|
|
71
|
+
const subCommand = command.getCommands().find(c => c?.getProperty('name') === commandName);
|
|
72
|
+
return subCommand && matchesChangeProperty(subCommand, propertyPath, propertyValue);
|
|
73
|
+
} else {
|
|
74
|
+
return matchesChangeProperty(command, propertyPath, propertyValue);
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Retrieves the value of a nested property from an object based on a dot-separated path.
|
|
81
|
+
*
|
|
82
|
+
* @param obj - The object from which to retrieve the nested property.
|
|
83
|
+
* @param path - A dot-separated string representing the path to the desired property.
|
|
84
|
+
* For example, "a.b.c" will attempt to access `obj.a.b.c`.
|
|
85
|
+
* @returns The value of the nested property if it exists, or `undefined` if any part of the path is invalid.
|
|
86
|
+
*/
|
|
87
|
+
function getNestedProperty(obj, path) {
|
|
88
|
+
return path.split('.').reduce((acc, key) => {
|
|
89
|
+
return acc?.[key];
|
|
90
|
+
}, obj);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Checks if a specific property in the command's change matches the given value.
|
|
95
|
+
*
|
|
96
|
+
* @param {FlexCommand} command - The command object containing the prepared change to be examined.
|
|
97
|
+
* @param {string} propertyPath - The path to the property in the change definition to check.
|
|
98
|
+
* @param {string} propertyValue - The value to match against the specified property.
|
|
99
|
+
* @returns {boolean} Returns true if the command's change contains the specified property with the matching value; otherwise, returns false.
|
|
100
|
+
*/
|
|
101
|
+
function matchesChangeProperty(command, propertyPath, propertyValue) {
|
|
102
|
+
if (typeof command.getPreparedChange !== 'function') {
|
|
103
|
+
return false;
|
|
104
|
+
}
|
|
105
|
+
const change = command.getPreparedChange()?.getDefinition?.();
|
|
106
|
+
if (!change) {
|
|
107
|
+
return false;
|
|
108
|
+
}
|
|
109
|
+
const nestedProperty = getNestedProperty(change, propertyPath);
|
|
110
|
+
return typeof nestedProperty === 'string' ? nestedProperty.includes(propertyValue) : false;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Gets controller name and view ID for the given UI5 control.
|
|
114
|
+
*
|
|
115
|
+
* @param control UI5 control.
|
|
116
|
+
* @returns The controller name and view ID.
|
|
117
|
+
*/
|
|
118
|
+
function getControllerInfoForControl(control) {
|
|
119
|
+
const view = FlexUtils.getViewForControl(control);
|
|
120
|
+
const moduleName = view?.getControllerModuleName?.();
|
|
121
|
+
const controllerName = moduleName ? `module:${moduleName}` : view.getController()?.getMetadata().getName();
|
|
122
|
+
const viewId = view.getId();
|
|
123
|
+
return {
|
|
124
|
+
controllerName,
|
|
125
|
+
viewId
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Gets controller name and view ID for the given overlay control.
|
|
131
|
+
*
|
|
132
|
+
* @param overlayControl The overlay control.
|
|
133
|
+
* @returns The controller name and view ID.
|
|
134
|
+
*/
|
|
135
|
+
|
|
136
|
+
function getControllerInfo(overlayControl) {
|
|
137
|
+
const control = overlayControl.getElement();
|
|
138
|
+
return getControllerInfoForControl(control);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Gets the reuse component checker function.
|
|
143
|
+
*
|
|
144
|
+
* @param ui5VersionInfo UI5 version information.
|
|
145
|
+
* @returns The reuse component checker function.
|
|
146
|
+
*/
|
|
147
|
+
async function getReuseComponentChecker(ui5VersionInfo) {
|
|
148
|
+
if (reuseComponentChecker) {
|
|
149
|
+
return reuseComponentChecker;
|
|
150
|
+
}
|
|
151
|
+
let reuseComponentApi;
|
|
152
|
+
if (!isLowerThanMinimalUi5Version(ui5VersionInfo, {
|
|
153
|
+
major: 1,
|
|
154
|
+
minor: 134
|
|
155
|
+
})) {
|
|
156
|
+
reuseComponentApi = (await __ui5_require_async('sap/ui/rta/util/isReuseComponent')).default;
|
|
157
|
+
}
|
|
158
|
+
reuseComponentChecker = function isReuseComponent(controlId) {
|
|
159
|
+
const ui5Control = getControlById(controlId);
|
|
160
|
+
if (!ui5Control) {
|
|
161
|
+
return false;
|
|
162
|
+
}
|
|
163
|
+
const component = FlexUtils.getComponentForControl(ui5Control);
|
|
164
|
+
if (reuseComponentApi) {
|
|
165
|
+
return reuseComponentApi(component);
|
|
166
|
+
}
|
|
167
|
+
if (!component) {
|
|
168
|
+
return false;
|
|
169
|
+
}
|
|
170
|
+
const appComponent = FlexUtils.getAppComponentForControl(component);
|
|
171
|
+
if (!appComponent) {
|
|
172
|
+
return false;
|
|
173
|
+
}
|
|
174
|
+
const manifest = component.getManifest();
|
|
175
|
+
const appManifest = appComponent.getManifest();
|
|
176
|
+
const componentName = manifest?.['sap.app']?.id;
|
|
177
|
+
|
|
178
|
+
// Look for component name in component usages of app component manifest
|
|
179
|
+
const componentUsages = appManifest?.['sap.ui5']?.componentUsages;
|
|
180
|
+
return Object.values(componentUsages || {}).some(componentUsage => {
|
|
181
|
+
return componentUsage.name === componentName;
|
|
182
|
+
});
|
|
183
|
+
};
|
|
184
|
+
return reuseComponentChecker;
|
|
185
|
+
}
|
|
186
|
+
var __exports = {
|
|
187
|
+
__esModule: true
|
|
188
|
+
};
|
|
189
|
+
__exports.resetReuseComponentChecker = resetReuseComponentChecker;
|
|
190
|
+
__exports.createDeferred = createDeferred;
|
|
191
|
+
__exports.checkForExistingChange = checkForExistingChange;
|
|
192
|
+
__exports.getNestedProperty = getNestedProperty;
|
|
193
|
+
__exports.matchesChangeProperty = matchesChangeProperty;
|
|
194
|
+
__exports.getControllerInfoForControl = getControllerInfoForControl;
|
|
195
|
+
__exports.getControllerInfo = getControllerInfo;
|
|
196
|
+
__exports.getReuseComponentChecker = getReuseComponentChecker;
|
|
197
|
+
return __exports;
|
|
198
|
+
});
|
|
199
|
+
//# sourceMappingURL=utils.js.map
|