@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,321 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
sap.ui.define(["../../utils/version", "sap/ui/core/util/reflection/JsControlTreeModifier", "sap/base/Log", "../../utils/error", "../../utils/fe-v4"], function (____utils_version, JsControlTreeModifier, Log, ____utils_error, ____utils_fe_v4) {
|
|
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 getUi5Version = ____utils_version["getUi5Version"];
|
|
24
|
+
const isLowerThanMinimalUi5Version = ____utils_version["isLowerThanMinimalUi5Version"];
|
|
25
|
+
const getError = ____utils_error["getError"];
|
|
26
|
+
const getConfigMapControlIdMap = ____utils_fe_v4["getConfigMapControlIdMap"];
|
|
27
|
+
const ADD_NEW_ANNOTATION_FILE_CHANGE = 'appdescr_app_addAnnotationsToOData';
|
|
28
|
+
const RENAME_CHANGE = 'rename';
|
|
29
|
+
const MOVE_CHANGE = 'moveControls';
|
|
30
|
+
const ADD_XML_CHANGE = 'addXML';
|
|
31
|
+
const PROPERTY_CHANGE = 'propertyChange';
|
|
32
|
+
const PROPERTY_BINDING_CHANGE = 'propertyBindingChange';
|
|
33
|
+
const MANIFEST_V4_CHANGE = 'appdescr_fe_changePageConfiguration';
|
|
34
|
+
const MANIFEST_V2_CHANGE = 'appdescr_ui_generic_app_changePageConfiguration';
|
|
35
|
+
/**
|
|
36
|
+
* Returns a shortened version of the given configuration path segments by removing excess segments,
|
|
37
|
+
* leaving only the most relevant parts for display. For example, the configuration path
|
|
38
|
+
* `controlConfiguration/com.sap.UI.v1.LineItem/tableSettings` will be shortened to
|
|
39
|
+
* `LineItem/tableSettings`.
|
|
40
|
+
*
|
|
41
|
+
* @param propertyPathSeg string[]
|
|
42
|
+
* @returns string
|
|
43
|
+
*/
|
|
44
|
+
function getCompactV4ConfigPath(propertyPathSeg) {
|
|
45
|
+
return propertyPathSeg.join('/').replace(/^controlConfiguration\/(?:([^/]+\/))?@[^/]+\.v1\./, '$1');
|
|
46
|
+
}
|
|
47
|
+
function assertProperties(properties, target) {
|
|
48
|
+
for (const property of properties) {
|
|
49
|
+
const value = target[property];
|
|
50
|
+
if (value === null || value === undefined) {
|
|
51
|
+
throw new Error(`Invalid change, missing ${property} in the change file`);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Assert change for its validity. Throws error if no value found in saved changes.
|
|
57
|
+
*
|
|
58
|
+
* @param change Change object
|
|
59
|
+
*/
|
|
60
|
+
function assertChange(change) {
|
|
61
|
+
assertProperties(['fileName', 'selector', 'content'], change);
|
|
62
|
+
assertProperties(['id'], change.selector);
|
|
63
|
+
assertProperties(['property'], change.content);
|
|
64
|
+
}
|
|
65
|
+
function assertManifestChange(change) {
|
|
66
|
+
assertProperties(['fileName', 'content'], change);
|
|
67
|
+
assertProperties(['page', 'entityPropertyChange'], change.content);
|
|
68
|
+
assertProperties(['propertyPath', 'operation', 'propertyValue'], change.content.entityPropertyChange);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Get FlexObject from change object based on UI5 version.
|
|
73
|
+
*
|
|
74
|
+
* @param change change object
|
|
75
|
+
* @returns FlexChange
|
|
76
|
+
*/
|
|
77
|
+
async function getFlexObject(change) {
|
|
78
|
+
if (isLowerThanMinimalUi5Version(await getUi5Version(), {
|
|
79
|
+
major: 1,
|
|
80
|
+
minor: 109
|
|
81
|
+
})) {
|
|
82
|
+
const Change = (await __ui5_require_async('sap/ui/fl/Change')).default;
|
|
83
|
+
return new Change(change);
|
|
84
|
+
}
|
|
85
|
+
const FlexObjectFactory = (await __ui5_require_async('sap/ui/fl/apply/_internal/flexObjects/FlexObjectFactory')).default;
|
|
86
|
+
return FlexObjectFactory.createFromFileContent(change);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Get element id by change.
|
|
91
|
+
*
|
|
92
|
+
* @param change to be executed for creating change
|
|
93
|
+
* @param appComponent app component
|
|
94
|
+
* @returns element id or empty string
|
|
95
|
+
*/
|
|
96
|
+
async function getControlIdByChange(change, appComponent) {
|
|
97
|
+
const selector = typeof change.getSelector === 'function' ? change.getSelector() : undefined;
|
|
98
|
+
const changeType = change.getChangeType();
|
|
99
|
+
const layer = change.getLayer();
|
|
100
|
+
if (!selector?.id) {
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
try {
|
|
104
|
+
const control = JsControlTreeModifier.bySelector(selector, appComponent);
|
|
105
|
+
if (!control) {
|
|
106
|
+
return selector.id;
|
|
107
|
+
}
|
|
108
|
+
const changeHandlerAPI = (await __ui5_require_async('sap/ui/fl/write/api/ChangesWriteAPI')).default;
|
|
109
|
+
if (typeof changeHandlerAPI?.getChangeHandler !== 'function') {
|
|
110
|
+
return selector.id;
|
|
111
|
+
}
|
|
112
|
+
const changeHandler = await changeHandlerAPI.getChangeHandler({
|
|
113
|
+
changeType,
|
|
114
|
+
element: control,
|
|
115
|
+
modifier: JsControlTreeModifier,
|
|
116
|
+
layer
|
|
117
|
+
});
|
|
118
|
+
if (changeHandler && typeof changeHandler.getChangeVisualizationInfo === 'function') {
|
|
119
|
+
const result = await changeHandler.getChangeVisualizationInfo(change, appComponent);
|
|
120
|
+
return JsControlTreeModifier.getControlIdBySelector(result?.affectedControls?.[0] ?? selector, appComponent);
|
|
121
|
+
}
|
|
122
|
+
return JsControlTreeModifier.getControlIdBySelector(selector, appComponent);
|
|
123
|
+
} catch (error) {
|
|
124
|
+
Log.error('Getting element ID from change has failed:', getError(error));
|
|
125
|
+
return selector.id;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
async function getPropertyChange(change, {
|
|
129
|
+
appComponent
|
|
130
|
+
}) {
|
|
131
|
+
const propertyChange = change;
|
|
132
|
+
const flexObject = await getFlexObject(change);
|
|
133
|
+
const selectorId = await getControlIdByChange(flexObject, appComponent);
|
|
134
|
+
const changeTitle = change.selector.type ? change.selector.type.split('.').pop() : '';
|
|
135
|
+
assertChange(propertyChange);
|
|
136
|
+
if ([propertyChange.content.newValue, propertyChange.content.newBinding].every(item => item === undefined || item === null)) {
|
|
137
|
+
throw new Error('Invalid change, missing new value in the change file');
|
|
138
|
+
}
|
|
139
|
+
if (change.changeType !== PROPERTY_CHANGE && change.changeType !== PROPERTY_BINDING_CHANGE) {
|
|
140
|
+
throw new Error('Unknown Change Type');
|
|
141
|
+
}
|
|
142
|
+
return {
|
|
143
|
+
changeTitle: changeTitle,
|
|
144
|
+
controlId: selectorId,
|
|
145
|
+
changeType: 'property',
|
|
146
|
+
properties: [{
|
|
147
|
+
label: propertyChange.content.property,
|
|
148
|
+
value: propertyChange.content.newValue ?? propertyChange.content.newBinding,
|
|
149
|
+
displayValueWithIcon: true
|
|
150
|
+
}]
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
function getV2ConfigurationChange(change, {
|
|
154
|
+
textBundle
|
|
155
|
+
}) {
|
|
156
|
+
const {
|
|
157
|
+
entityPropertyChange,
|
|
158
|
+
parentPage
|
|
159
|
+
} = change.content;
|
|
160
|
+
const propertyPathSegments = entityPropertyChange.propertyPath.split('/');
|
|
161
|
+
const propertyName = Object.keys(entityPropertyChange.propertyValue)?.[0] ?? propertyPathSegments[propertyPathSegments.length - 1];
|
|
162
|
+
const propertyValue = entityPropertyChange.propertyValue?.[propertyName] ?? entityPropertyChange.propertyValue;
|
|
163
|
+
return {
|
|
164
|
+
changeTitle: textBundle?.getText('CONFIGURATION_CHANGE'),
|
|
165
|
+
controlId: [],
|
|
166
|
+
changeType: 'configuration',
|
|
167
|
+
subtitle: entityPropertyChange.propertyPath ?? parentPage.component,
|
|
168
|
+
properties: [{
|
|
169
|
+
label: propertyName ?? '',
|
|
170
|
+
value: propertyValue,
|
|
171
|
+
displayValueWithIcon: true
|
|
172
|
+
}]
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
function getV4ConfigurationChange(change, {
|
|
176
|
+
configPropertyControlIdMap,
|
|
177
|
+
textBundle
|
|
178
|
+
}) {
|
|
179
|
+
assertManifestChange(change);
|
|
180
|
+
if ([change.content.entityPropertyChange.propertyValue].every(item => item === undefined || item === null)) {
|
|
181
|
+
throw new Error('Invalid change, missing property value on change file');
|
|
182
|
+
}
|
|
183
|
+
const propertyPathSegments = change.content.entityPropertyChange.propertyPath.split('/');
|
|
184
|
+
const propertyName = propertyPathSegments.pop();
|
|
185
|
+
if (!propertyName) {
|
|
186
|
+
throw new Error('No property name found');
|
|
187
|
+
}
|
|
188
|
+
const configMapKey = getConfigMapControlIdMap(change.content.page, propertyPathSegments);
|
|
189
|
+
const controlIds = configPropertyControlIdMap?.get(configMapKey) || [];
|
|
190
|
+
const value = change.content.entityPropertyChange.propertyValue;
|
|
191
|
+
const properties = typeof value === 'object' ? [{
|
|
192
|
+
label: propertyName,
|
|
193
|
+
displayValueWithIcon: true
|
|
194
|
+
}, ...Object.keys(value).map(key => {
|
|
195
|
+
if (typeof value[key] === 'object') {
|
|
196
|
+
return undefined;
|
|
197
|
+
}
|
|
198
|
+
return {
|
|
199
|
+
label: key,
|
|
200
|
+
value: value[key],
|
|
201
|
+
displayValueWithIcon: true
|
|
202
|
+
};
|
|
203
|
+
}).filter(item => !!item)] : [{
|
|
204
|
+
label: propertyName,
|
|
205
|
+
value,
|
|
206
|
+
displayValueWithIcon: true
|
|
207
|
+
}];
|
|
208
|
+
return {
|
|
209
|
+
changeTitle: textBundle?.getText('CONFIGURATION_CHANGE'),
|
|
210
|
+
controlId: controlIds,
|
|
211
|
+
changeType: 'configuration',
|
|
212
|
+
subtitle: getCompactV4ConfigPath(propertyPathSegments),
|
|
213
|
+
properties
|
|
214
|
+
};
|
|
215
|
+
}
|
|
216
|
+
const GENERIC_CHANGE_HANDLER = {
|
|
217
|
+
[ADD_NEW_ANNOTATION_FILE_CHANGE]: (annotationFileChange, {
|
|
218
|
+
textBundle
|
|
219
|
+
}) => {
|
|
220
|
+
const dataSourceId = annotationFileChange.content.dataSourceId;
|
|
221
|
+
const sourceKey = Object.keys(annotationFileChange.content.dataSource)[0];
|
|
222
|
+
return {
|
|
223
|
+
changeTitle: textBundle?.getText('ADD_NEW_ANNOTATION_FILE'),
|
|
224
|
+
changeType: 'configuration',
|
|
225
|
+
properties: [{
|
|
226
|
+
label: textBundle?.getText('SERVICE_NAME'),
|
|
227
|
+
value: dataSourceId
|
|
228
|
+
}, {
|
|
229
|
+
label: textBundle?.getText('ANNOTATION_FILE_URI'),
|
|
230
|
+
value: annotationFileChange.content.dataSource[sourceKey].uri
|
|
231
|
+
}]
|
|
232
|
+
};
|
|
233
|
+
},
|
|
234
|
+
[RENAME_CHANGE]: (renameChange, {
|
|
235
|
+
textBundle
|
|
236
|
+
}) => {
|
|
237
|
+
const selectorId = renameChange.selector.id;
|
|
238
|
+
return {
|
|
239
|
+
changeTitle: textBundle?.getText('RENAME_CHANGE'),
|
|
240
|
+
controlId: selectorId,
|
|
241
|
+
properties: [{
|
|
242
|
+
label: textBundle?.getText('SELECTOR_ID'),
|
|
243
|
+
value: selectorId
|
|
244
|
+
}, {
|
|
245
|
+
label: textBundle?.getText('NEW_VALUE'),
|
|
246
|
+
value: renameChange.texts.newText.value
|
|
247
|
+
}, {
|
|
248
|
+
label: textBundle?.getText('TEXT_TYPE'),
|
|
249
|
+
value: renameChange.texts.newText.type
|
|
250
|
+
}]
|
|
251
|
+
};
|
|
252
|
+
},
|
|
253
|
+
[MOVE_CHANGE]: (moveChange, {
|
|
254
|
+
textBundle
|
|
255
|
+
}) => {
|
|
256
|
+
const movedControlId = moveChange.content.movedElements[0].selector.id;
|
|
257
|
+
return {
|
|
258
|
+
changeTitle: textBundle?.getText('MOVE_CONTROLS_CHANGE'),
|
|
259
|
+
controlId: movedControlId,
|
|
260
|
+
properties: [{
|
|
261
|
+
label: textBundle?.getText('TARGET_CONTROL_ID'),
|
|
262
|
+
value: moveChange.content.target.selector.id
|
|
263
|
+
}, {
|
|
264
|
+
label: textBundle?.getText('MOVE_FROM_INDEX'),
|
|
265
|
+
value: String(moveChange.content.movedElements[0].sourceIndex)
|
|
266
|
+
}, {
|
|
267
|
+
label: textBundle?.getText('MOVE_TO_INDEX'),
|
|
268
|
+
value: String(moveChange.content.movedElements[0].targetIndex)
|
|
269
|
+
}, {
|
|
270
|
+
label: textBundle?.getText('MOVED_CONTROL_ID'),
|
|
271
|
+
value: movedControlId
|
|
272
|
+
}]
|
|
273
|
+
};
|
|
274
|
+
},
|
|
275
|
+
[ADD_XML_CHANGE]: (addXmlChange, {
|
|
276
|
+
textBundle
|
|
277
|
+
}) => {
|
|
278
|
+
return {
|
|
279
|
+
changeTitle: textBundle?.getText('ADD_XML_CHANGE'),
|
|
280
|
+
controlId: addXmlChange.selector.id,
|
|
281
|
+
properties: [{
|
|
282
|
+
label: textBundle?.getText('AGGREGATION'),
|
|
283
|
+
value: addXmlChange.content.targetAggregation
|
|
284
|
+
}, {
|
|
285
|
+
label: textBundle?.getText('FRAGMENT_PATH'),
|
|
286
|
+
value: addXmlChange.content.fragmentPath
|
|
287
|
+
}]
|
|
288
|
+
};
|
|
289
|
+
},
|
|
290
|
+
[PROPERTY_CHANGE]: async (change, handlerOptions) => {
|
|
291
|
+
return getPropertyChange(change, handlerOptions);
|
|
292
|
+
},
|
|
293
|
+
[PROPERTY_BINDING_CHANGE]: async (change, handlerOptions) => {
|
|
294
|
+
return getPropertyChange(change, handlerOptions);
|
|
295
|
+
},
|
|
296
|
+
[MANIFEST_V4_CHANGE]: (change, handlerOptions) => {
|
|
297
|
+
return getV4ConfigurationChange(change, handlerOptions);
|
|
298
|
+
},
|
|
299
|
+
[MANIFEST_V2_CHANGE]: (change, handlerOptions) => {
|
|
300
|
+
return getV2ConfigurationChange(change, handlerOptions);
|
|
301
|
+
}
|
|
302
|
+
};
|
|
303
|
+
var __exports = {
|
|
304
|
+
__esModule: true
|
|
305
|
+
};
|
|
306
|
+
__exports.ADD_NEW_ANNOTATION_FILE_CHANGE = ADD_NEW_ANNOTATION_FILE_CHANGE;
|
|
307
|
+
__exports.RENAME_CHANGE = RENAME_CHANGE;
|
|
308
|
+
__exports.MOVE_CHANGE = MOVE_CHANGE;
|
|
309
|
+
__exports.ADD_XML_CHANGE = ADD_XML_CHANGE;
|
|
310
|
+
__exports.PROPERTY_CHANGE = PROPERTY_CHANGE;
|
|
311
|
+
__exports.PROPERTY_BINDING_CHANGE = PROPERTY_BINDING_CHANGE;
|
|
312
|
+
__exports.MANIFEST_V4_CHANGE = MANIFEST_V4_CHANGE;
|
|
313
|
+
__exports.MANIFEST_V2_CHANGE = MANIFEST_V2_CHANGE;
|
|
314
|
+
__exports.assertProperties = assertProperties;
|
|
315
|
+
__exports.assertChange = assertChange;
|
|
316
|
+
__exports.getFlexObject = getFlexObject;
|
|
317
|
+
__exports.getControlIdByChange = getControlIdByChange;
|
|
318
|
+
__exports.GENERIC_CHANGE_HANDLER = GENERIC_CHANGE_HANDLER;
|
|
319
|
+
return __exports;
|
|
320
|
+
});
|
|
321
|
+
//# sourceMappingURL=generic-change.js.map
|